.puku-match-coffee,
.pmc-quiz {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    color: #111;
}

.puku-match-coffee *,
.pmc-quiz * {
    box-sizing: border-box;
}

.pmc-quiz {
    padding: 72px 48px;
}

.pmc-quiz__inner {
    max-width: 1000px;
    min-height: 610px;
    margin: 0 auto;
    padding: 72px 96px 54px;
    background: #fff;
    border-radius: 22px;
    border-bottom: 2px solid #a40000;
    box-shadow: 0 30px 85px rgba(0, 0, 0, .34);
    transition: opacity .2s ease;
}

.pmc-quiz__inner.is-loading {
    opacity: .95;
}

.pmc-empty {
    padding: 32px;
    background: #fff;
    border-radius: 18px;
    text-align: center;
}

.pmc-progress {
    width: min(600px, 100%);
    display: grid;
    grid-template-columns: repeat(var(--pmc-segments, 5), 1fr);
    gap: 10px;
    margin: 0 auto 34px;
}

.pmc-progress[hidden] {
    display: none;
}

.pmc-progress__segment {
    height: 5px;
    border-radius: 999px;
    background: #e7e7e7;
}

.pmc-progress__segment.is-active {
    background: #a40000;
}

.pmc-step {
    display: none;
    width: min(620px, 100%);
    margin: 0 auto;
    animation: pmcFade .25s ease;
}

.pmc-step.is-active {
    display: block;
}

.pmc-step__counter {
    margin: 0 0 24px;
    color: #696969;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.pmc-step__title {
    margin: 0 0 52px;
    color: #9b0000;
    font-family: inherit;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.22;
}

.pmc-options {
    display: grid;
    gap: 18px;
}

.pmc-options--list {
    grid-template-columns: 1fr;
}

.pmc-options--cards {
    width: min(620px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.pmc-option {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 80px;
    padding: 18px 34px;
    border: 0;
    border-left: 2px solid #a40000;
    border-radius: 16px;
    background: #fff;
    color: #666;
    text-align: left;
    box-shadow: 4px 5px 9px rgba(0, 0, 0, .18);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.pmc-option::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -2px;
    width: 18px;
    height: 22px;
    border-top: 2px solid #a40000;
    border-left: 2px solid #a40000;
    border-top-left-radius: 16px;
}

.pmc-option:hover,
.pmc-option.is-selected {
    transform: translateY(-2px);
    background: #fffafa;
    box-shadow: 4px 8px 18px rgba(0, 0, 0, .22);
}

.pmc-option.is-selected {
    outline: 2px solid rgba(164, 0, 0, .12);
}

.pmc-option__icon {
    width: 64px;
    min-width: 64px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pmc-option__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pmc-option__icon--empty {
    border-radius: 12px;
    background: #f3f3f3;
}

.pmc-option__content {
    display: block;
    min-width: 0;
}

.pmc-option strong {
    display: block;
    color: #666;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
}

.pmc-option small {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.25;
}

.pmc-options--cards .pmc-option {
    min-height: 210px;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 32px 28px;
    text-align: center;
}

.pmc-options--cards .pmc-option__icon {
    width: 120px;
    min-width: 120px;
    height: 70px;
}

.pmc-options--cards .pmc-option strong {
    font-size: 25px;
}

.pmc-options--cards .pmc-option small {
    font-size: 18px;
}

.pmc-actions {
    width: min(920px, 100%);
    margin: 52px auto 0;
}

.pmc-actions[hidden] {
    display: none;
}

.pmc-back {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #666;
    font-size: 22px;
    cursor: pointer;
}

.pmc-back span:first-child {
    color: #a40000;
    font-size: 26px;
    line-height: 1;
}

.pmc-back:disabled {
    opacity: .35;
    cursor: default;
}

.pmc-result[hidden] {
    display: none;
}

.pmc-loading {
    width: min(620px, 100%);
    min-height: 360px;
    margin: 55px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9b0000;
    text-align: center;
    animation: pmcFade .25s ease;
}

.pmc-loading__cup {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 999px;
    background: #a40000;
    color: #fff;
    font-size: 38px;
    box-shadow: 0 12px 24px rgba(164, 0, 0, .22);
    animation: pmcPulse 1.05s ease-in-out infinite;
}

.pmc-loading h2 {
    margin: 0 0 8px;
    color: #9b0000;
    font-size: 28px;
    font-weight: 800;
}

.pmc-loading p {
    margin: 0;
    color: #666;
    font-size: 18px;
}

.pmc-loading__dots::after {
    content: '';
    animation: pmcDots 1.2s steps(4, end) infinite;
}

.pmc-result-card {
    animation: pmcFade .25s ease;
}

.pmc-result-label {
    margin: 0 0 28px;
    color: #666;
    font-size: 18px;
    text-transform: uppercase;
}

.pmc-result-main {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 42px;
    align-items: center;
}

.pmc-product-card {
    padding: 12px 12px 22px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.pmc-product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
}

.pmc-product-image--empty {
    background: #f5f5f5;
}

.pmc-product-info {
    padding: 16px 8px 0;
}

.pmc-product-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.pmc-product-info h3 {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.3;
}

.pmc-rating {
    white-space: nowrap;
    color: #111;
    font-size: 13px;
    font-weight: 700;
}

.pmc-rating span {
    color: #f4a11a;
}

.pmc-product-description {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
    line-height: 1.35;
}

.pmc-product-description p {
    margin: 0;
}

.pmc-price {
    margin-top: 18px;
    color: #a40000;
    font-size: 20px;
    font-weight: 800;
}

.pmc-profile-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 28px;
    align-items: start;
}

.pmc-result-star {
    color: #a40000;
    font-size: 96px;
    line-height: .85;
}

.pmc-profile-card h2 {
    margin: 4px 0 12px;
    color: #111;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.08;
}

.pmc-profile-kicker {
    margin: 0;
    color: #9b0000;
    font-size: 22px;
    font-weight: 800;
}

.pmc-compatibility {
    width: min(260px, 100%);
    margin: 0 0 16px;
    padding: 3px 16px;
    border: 1px solid #a40000;
    border-radius: 999px;
    color: #a40000;
    font-size: 14px;
    text-align: center;
    text-transform: uppercase;
}

.pmc-profile-card h3 {
    margin: 0 0 10px;
    color: #666;
    font-size: 16px;
    font-weight: 800;
}

.pmc-profile-description {
    color: #111;
    font-size: 16px;
    line-height: 1.45;
}

.pmc-profile-description p {
    margin: 0 0 10px;
}

.pmc-result-levels {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e5e5e5;
}

.pmc-level span:first-child {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.pmc-level-bar {
    display: flex;
    gap: 4px;
}

.pmc-level-dot {
    display: inline-block;
    position: relative;
    overflow: hidden;
    width: 8px;
    height: 8px;
    border: 1px solid #a40000;
    border-radius: 999px;
    background: #fff;
}

.pmc-level-dot.is-active {
    background: #a40000;
}

.pmc-result-bottom {
    margin-top: 34px;
}

.pmc-feature-card {
    width: min(560px, 100%);
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 18px;
    padding: 22px 28px;
    border-left: 2px solid #a40000;
    border-radius: 14px;
    box-shadow: 4px 5px 9px rgba(0, 0, 0, .16);
}

.pmc-feature-icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #a40000;
    color: #fff;
    font-size: 24px;
}

.pmc-feature-card strong {
    display: block;
    margin-bottom: 4px;
    color: #a40000;
    font-size: 16px;
}

.pmc-feature-card p {
    margin: 0 0 14px;
}

.pmc-features {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pmc-features li {
    position: relative;
    margin: 0 0 12px;
    padding-left: 22px;
    font-size: 15px;
    font-weight: 700;
}

.pmc-features li::before {
    content: '♡';
    position: absolute;
    left: 0;
    color: #a40000;
}

.pmc-result-actions {
    display: grid;
    gap: 18px;
    width: min(520px, 100%);
    margin: 42px auto 0;
    text-align: center;
}

.pmc-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 52px;
    padding: 14px 28px;
    border: 0;
    border-radius: 999px;
    background: #a40000;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 20px rgba(164, 0, 0, .26);
    cursor: pointer;
}

.pmc-primary:hover,
.pmc-primary:focus {
    color: #fff;
    background: #850000;
}

.pmc-primary:disabled,
.pmc-primary.is-loading {
    opacity: .75;
    cursor: wait;
}

.pmc-restart {
    border: 0;
    background: transparent;
    color: #666;
    font-size: 16px;
    cursor: pointer;
}

.pmc-result-error {
    color: #a40000;
    text-align: center;
}

@keyframes pmcFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pmcPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes pmcDots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75%, 100% { content: '...'; }
}

@media (max-width: 980px) {
    .pmc-quiz {
        padding: 48px 20px;
    }

    .pmc-quiz__inner {
        min-height: auto;
        padding: 48px 36px;
    }

    .pmc-result-main,
    .pmc-profile-card {
        grid-template-columns: 1fr;
    }

    .pmc-result-star {
        display: none;
    }

    .pmc-product-card {
        max-width: 300px;
    }
}

@media (max-width: 640px) {
    .pmc-quiz {
        padding: 28px 0;
    }

    .pmc-quiz__inner {
        padding: 34px 22px;
        border-radius: 18px;
    }

    .pmc-step__counter,
    .pmc-back {
        font-size: 17px;
    }

    .pmc-step__title {
        margin-bottom: 34px;
        font-size: 28px;
    }

    .pmc-options--cards {
        grid-template-columns: 1fr;
    }

    .pmc-option {
        gap: 16px;
        padding: 16px 22px;
    }

    .pmc-option strong {
        font-size: 19px;
    }

    .pmc-option small {
        font-size: 15px;
    }

    .pmc-result-levels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pmc-profile-card h2 {
        font-size: 34px;
    }

    .pmc-feature-card {
        grid-template-columns: 1fr;
    }
}

.pmc-level-dot.is-half {
    background: #fff;
}

.pmc-level-dot.is-half::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50%;
    background: #a40000;
}

.pmc-no-result {
    width: min(620px, 100%);
    min-height: 430px;
    margin: 20px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: pmcFade .25s ease;
}

.pmc-no-result__icon {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 999px;
    background: #a40000;
    color: #fff;
    font-size: 38px;
    box-shadow: 0 12px 24px rgba(164, 0, 0, .22);
}

.pmc-no-result h2 {
    max-width: 520px;
    margin: 0 0 14px;
    color: #9b0000;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
}

.pmc-no-result p {
    max-width: 520px;
    margin: 0;
    color: #666;
    font-size: 18px;
    line-height: 1.45;
}

.pmc-no-result__actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.pmc-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 28px;
    border: 1px solid #a40000;
    border-radius: 999px;
    background: #fff;
    color: #a40000;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.pmc-secondary:hover,
.pmc-secondary:focus {
    color: #850000;
    border-color: #850000;
}

@media (max-width: 640px) {
    .pmc-no-result h2 {
        font-size: 28px;
    }

    .pmc-no-result__actions {
        width: 100%;
        flex-direction: column;
    }
}
