/*
==========================================================
PRIVATE APARTMENTS
QUIZ STYLES
==========================================================
*/


/*
==========================================================
QUIZ VARIABLES
==========================================================
*/

:root {

    --quiz-height: 720px;

    --quiz-bg: #1b1b1b;
    --quiz-card-bg: #202020;
    --quiz-card-hover: #252525;

    --quiz-gold: #d6aa55;
    --quiz-gold-light: #f0d18a;

    --quiz-border:
        rgba(214, 170, 85, 0.30);

    --quiz-border-active:
        rgba(214, 170, 85, 0.85);

}


/*
==========================================================
QUIZ SECTION
==========================================================
*/

.quiz-section {

    position: relative;

}


/*
==========================================================
QUIZ MAIN CONTAINER
==========================================================

Квиз имеет постоянную высоту.

Структура:

progress
   ↓
content
   ↓
navigation

Меняется только content.
==========================================================
*/

.quiz {

    position: relative;

    display: flex;

    flex-direction: column;

    height: var(--quiz-height);

    max-height:
        calc(100vh - 40px);

    min-height: 600px;

    overflow: hidden;

}


/*
==========================================================
QUIZ PROGRESS
==========================================================
*/

.quiz__progress {

    flex: 0 0 auto;

}


/*
==========================================================
QUIZ CONTENT
==========================================================

Именно эта область меняется
при переходе между шагами.
==========================================================
*/

.quiz__content {

    position: relative;

    flex: 1 1 auto;

    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding-right: 8px;

}


/*
==========================================================
QUIZ CONTENT SCROLLBAR
==========================================================
*/

.quiz__content {

    scrollbar-width: thin;

    scrollbar-color:
        rgba(214, 170, 85, 0.45) rgba(255, 255, 255, 0.04);

}


.quiz__content::-webkit-scrollbar {

    width: 5px;

}


.quiz__content::-webkit-scrollbar-track {

    background:
        rgba(255, 255, 255, 0.03);

    border-radius: 20px;

}


.quiz__content::-webkit-scrollbar-thumb {

    background:
        rgba(214, 170, 85, 0.45);

    border-radius: 20px;

}


/*
==========================================================
QUIZ NAVIGATION
==========================================================
*/

.quiz__navigation {

    flex: 0 0 auto;

    margin-top: 22px;
    padding-top: 20px;

    border-top:
        1px solid rgba(255, 255, 255, 0.06);

}


/*
==========================================================
QUIZ STEP
==========================================================
*/

.quiz-step {

    width: 100%;

    animation:
        quizStepFade 0.35s ease;

}


/*
==========================================================
QUIZ STEP ANIMATION
==========================================================
*/

@keyframes quizStepFade {

    from {

        opacity: 0;

        transform:
            translateY(12px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


/*
==========================================================
QUIZ STEP HEADING
==========================================================
*/

.quiz-step__heading {

    margin-bottom: 26px;

}


.quiz-step__heading h3 {

    margin: 0;

}


.quiz-step__heading p {

    max-width: 700px;

}


/*
==========================================================
GENERIC OPTIONS GRID
==========================================================
*/

.quiz-options {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;

}


/*
==========================================================
GENERIC OPTION
==========================================================
*/

.quiz-option {

    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 82px;

    padding: 18px;

    text-align: center;

    color: var(--text-main);

    background:
        var(--quiz-card-bg);

    border:
        1px solid var(--quiz-border);

    border-radius:
        14px;

    cursor: pointer;

    user-select: none;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;

}


.quiz-option:hover {

    transform:
        translateY(-2px);

    background:
        var(--quiz-card-hover);

    border-color:
        rgba(214, 170, 85, 0.65);

    box-shadow:
        0 0 16px rgba(214, 170, 85, 0.08);

}


/*
==========================================================
SELECTED OPTION
==========================================================
*/

.quiz-option.selected {

    color: var(--quiz-gold-light);

    background:
        rgba(214, 170, 85, 0.08);

    border-color:
        var(--quiz-border-active);

    box-shadow:
        0 0 12px rgba(214, 170, 85, 0.18),
        inset 0 0 12px rgba(214, 170, 85, 0.04);

}


/*
==========================================================
SELECTED CHECK
==========================================================
*/

.quiz-option.selected::after {

    content: "✓";

    position: absolute;

    top: 8px;
    right: 10px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 21px;
    height: 21px;

    border-radius: 50%;

    color: #151515;

    background:
        var(--quiz-gold);

    font-size: 12px;
    font-weight: 800;

}


/*
==========================================================
DURATION
==========================================================
*/

.quiz-duration {

    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 12px;

}


/*
==========================================================
DURATION BUTTON
==========================================================
*/

.quiz-duration__button {

    min-height: 80px;

    padding: 12px;

    color: var(--text-main);

    background:
        var(--quiz-card-bg);

    border:
        1px solid var(--quiz-border);

    border-radius: 14px;

    font-size: 18px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;

}


.quiz-duration__button:hover {

    transform:
        translateY(-2px);

    border-color:
        rgba(214, 170, 85, 0.7);

}


.quiz-duration__button.selected {

    color: var(--quiz-gold-light);

    background:
        rgba(214, 170, 85, 0.08);

    border-color:
        var(--quiz-gold);

    box-shadow:
        0 0 15px rgba(214, 170, 85, 0.15);

}

/*
==========================================================
DURATION BUTTON CONTENT
==========================================================
*/

.quiz-duration__button {

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 3px;

}


.quiz-duration__number {

    display: block;

    font-size: 24px;

    font-weight: 700;

    line-height: 1;

}


.quiz-duration__label {

    display: block;

    font-size: 12px;

    font-weight: 500;

    color: var(--text-muted);

    transition:
        color 0.25s ease;

}


.quiz-duration__button:hover .quiz-duration__label {

    color:
        var(--text-secondary);

}


.quiz-duration__button.selected .quiz-duration__label {

    color:
        var(--quiz-gold-light);

}


/*
==========================================================
+1 BUTTON
==========================================================
*/

.quiz-duration__button--plus {

    border-style: dashed;

    background:
        rgba(214, 170, 85, 0.025);

}


.quiz-duration__button--plus .quiz-duration__number {

    color:
        var(--quiz-gold);

}


/*
==========================================================
DURATION RESULT
==========================================================
*/

.quiz-duration__result {

    gap: 6px;

}


.quiz-duration__result strong {

    color:
        var(--quiz-gold-light);

    font-size: 18px;

}


/*
==========================================================
DURATION RESULT
==========================================================
*/

.quiz-duration__result {

    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 60px;

    margin-top: 20px;

    padding: 14px 20px;

    background:
        rgba(214, 170, 85, 0.04);

    border:
        1px solid rgba(214, 170, 85, 0.18);

    border-radius: 12px;

    font-size: 17px;

    color: var(--text-secondary);

}


.quiz-duration__result strong {

    margin-left: 6px;

    color: var(--quiz-gold-light);

}


/*
==========================================================
IMAGE GRID
==========================================================

Используется для:

апартаментов
моделей
боксов
==========================================================
*/

.quiz-image-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;

}


/*
==========================================================
IMAGE CARD
==========================================================
*/

.quiz-image-card {

    position: relative;

    min-width: 0;

    overflow: hidden;

    background:
        var(--quiz-card-bg);

    border:
        1px solid var(--quiz-border);

    border-radius: 15px;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;

}


.quiz-image-card:hover {

    transform:
        translateY(-3px);

    border-color:
        rgba(214, 170, 85, 0.7);

    box-shadow:
        0 0 18px rgba(214, 170, 85, 0.10);

}


.quiz-image-card.selected {

    border-color:
        var(--quiz-gold);

    box-shadow:
        0 0 15px rgba(214, 170, 85, 0.22);

}


/*
==========================================================
IMAGE
==========================================================
*/

.quiz-image-card__image {

    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #111;

}


.quiz-image-card__image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    pointer-events: none;

    transition:
        transform 0.4s ease;

}


.quiz-image-card:hover .quiz-image-card__image img {

    transform:
        scale(1.035);

}


/*
==========================================================
IMAGE CARD TITLE
==========================================================
*/

.quiz-image-card__title {

    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 45px;

    padding: 8px 12px;

    text-align: center;

    font-size: 14px;
    font-weight: 600;

}


/*
==========================================================
SELECTED IMAGE CHECK
==========================================================
*/

.quiz-image-card.selected::after {

    content: "✓";

    position: absolute;

    z-index: 4;

    top: 10px;
    left: 10px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 26px;
    height: 26px;

    color: #151515;

    background:
        var(--quiz-gold);

    border-radius: 50%;

    font-size: 13px;
    font-weight: 800;

    box-shadow:
        0 0 12px rgba(214, 170, 85, 0.35);

}


/*
==========================================================
INFO / QUESTION BUTTON
==========================================================
*/

.quiz-info {

    position: absolute;

    z-index: 5;

    top: 10px;
    right: 10px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    padding: 0;

    color: #151515;

    background:
        var(--quiz-gold-light);

    border: 0;

    border-radius: 50%;

    font-size: 15px;
    font-weight: 800;

    cursor: help;

    box-shadow:
        0 0 12px rgba(214, 170, 85, 0.25);

}


/*
==========================================================
TOOLTIP
==========================================================
*/

.quiz-tooltip {

    position: absolute;

    z-index: 20;

    top: 45px;
    right: 10px;

    width: min(230px,
            calc(100% - 20px));

    padding: 12px 14px;

    color: var(--text-main);

    background:
        rgba(12, 12, 12, 0.96);

    border:
        1px solid rgba(214, 170, 85, 0.4);

    border-radius: 10px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.45);

    font-size: 12px;
    line-height: 1.5;

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-5px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;

    pointer-events: none;

}


.quiz-info:hover+.quiz-tooltip,
.quiz-info:focus+.quiz-tooltip {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);

}


/*
==========================================================
QUIZ EXTRAS
==========================================================
*/

.quiz-extras {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

}


/*
==========================================================
QUIZ EXTRA
==========================================================
*/

.quiz-extra {

    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr) auto;

    align-items: center;

    gap: 15px;

    min-height: 72px;

    padding: 14px 16px;

    background:
        var(--quiz-card-bg);

    border:
        1px solid var(--quiz-border);

    border-radius: 12px;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease;

}


.quiz-extra:hover {

    background:
        var(--quiz-card-hover);

    border-color:
        rgba(214, 170, 85, 0.6);

}


.quiz-extra.selected {

    background:
        rgba(214, 170, 85, 0.06);

    border-color:
        var(--quiz-gold);

}


/*
==========================================================
QUIZ EXTRA TEXT
==========================================================
*/

.quiz-extra__content {

    display: flex;

    flex-direction: column;

    gap: 2px;

}


.quiz-extra__title {

    font-size: 14px;
    font-weight: 700;

}


.quiz-extra__price {

    font-size: 13px;

    color: var(--quiz-gold);

}


/*
==========================================================
QUIZ CHECKBOX
==========================================================
*/

.quiz-checkbox {

    position: relative;

    flex: 0 0 auto;

    width: 24px;
    height: 24px;

    border:
        1px solid rgba(214, 170, 85, 0.6);

    border-radius: 6px;

}


.quiz-extra.selected .quiz-checkbox {

    background:
        var(--quiz-gold);

    border-color:
        var(--quiz-gold);

}


.quiz-extra.selected .quiz-checkbox::after {

    content: "";

    position: absolute;

    top: 4px;
    left: 7px;

    width: 6px;
    height: 10px;

    border-right:
        2px solid #151515;

    border-bottom:
        2px solid #151515;

    transform:
        rotate(45deg);

}


/*
==========================================================
FORM GRID
==========================================================
*/

.quiz-form-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

}


/*
==========================================================
FULL WIDTH FIELD
==========================================================
*/

.quiz-form-field--full {

    grid-column:
        1 / -1;

}


/*
==========================================================
QUIZ FORM FIELD
==========================================================
*/

.quiz-form-field {

    display: flex;

    flex-direction: column;

    gap: 7px;

}


.quiz-form-field label {

    font-size: 13px;
    font-weight: 600;

}


/*
==========================================================
QUIZ INPUT
==========================================================
*/

.quiz-input {

    width: 100%;

    min-height: 52px;

    padding: 12px 15px;

    color: var(--text-main);

    background:
        rgba(0, 0, 0, 0.18);

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius: 10px;

    outline: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;

}


.quiz-input:focus {

    border-color:
        var(--quiz-gold);

    box-shadow:
        0 0 0 3px rgba(214, 170, 85, 0.06);

}


/*
==========================================================
DATE AND TIME
==========================================================
*/

.quiz-date-time {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

}


/*
==========================================================
TIMEZONE
==========================================================
*/

.quiz-timezone {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 15px;

    color: var(--text-muted);

    font-size: 12px;

}


.quiz-timezone::before {

    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background:
        var(--quiz-gold);

    box-shadow:
        0 0 8px rgba(214, 170, 85, 0.6);

}


/*
==========================================================
MESSENGERS
==========================================================
*/

.quiz-messengers {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 8px;

}


/*
==========================================================
MESSENGER BUTTON
==========================================================
*/

.quiz-messenger {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 46px;

    padding: 10px 16px;

    color: var(--text-secondary);

    background:
        var(--quiz-card-bg);

    border:
        1px solid rgba(255, 255, 255, 0.10);

    border-radius: 10px;

    cursor: pointer;

    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;

}


.quiz-messenger:hover {

    color: var(--text-main);

    border-color:
        rgba(214, 170, 85, 0.5);

}


.quiz-messenger.selected {

    color:
        var(--quiz-gold-light);

    background:
        rgba(214, 170, 85, 0.07);

    border-color:
        var(--quiz-gold);

}


/*
==========================================================
SUMMARY
==========================================================
*/

.quiz-summary {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

}


/*
==========================================================
SUMMARY ITEM
==========================================================
*/

.quiz-summary__item {

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    min-height: 58px;

    padding: 12px 15px;

    background:
        rgba(255, 255, 255, 0.025);

    border:
        1px solid rgba(255, 255, 255, 0.07);

    border-radius: 10px;

}


.quiz-summary__label {

    font-size: 12px;

    color: var(--text-muted);

}


.quiz-summary__value {

    text-align: right;

    font-size: 13px;
    font-weight: 600;

    color: var(--text-main);

}


/*
==========================================================
SUMMARY FULL WIDTH
==========================================================
*/

.quiz-summary__item--full {

    grid-column:
        1 / -1;

}


/*
==========================================================
QUIZ MESSAGE
==========================================================
*/

.quiz-message {

    display: none;

    margin-top: 15px;

    padding: 13px 15px;

    border-radius: 10px;

    font-size: 13px;

}


/*
==========================================================
ERROR MESSAGE
==========================================================
*/

.quiz-message.error {

    display: block;

    color: #ffaaaa;

    background:
        rgba(255, 80, 80, 0.07);

    border:
        1px solid rgba(255, 80, 80, 0.22);

}


/*
==========================================================
SUCCESS MESSAGE
==========================================================
*/

.quiz-message.success {

    display: block;

    color: #c9efc9;

    background:
        rgba(100, 220, 120, 0.07);

    border:
        1px solid rgba(100, 220, 120, 0.22);

}


/*
==========================================================
LOADING BUTTON
==========================================================
*/

.quiz__navigation .button.loading {

    position: relative;

    pointer-events: none;

    color: transparent;

}


/*
==========================================================
LOADING SPINNER
==========================================================
*/

.quiz__navigation .button.loading::after {

    content: "";

    position: absolute;

    width: 20px;
    height: 20px;

    border:
        2px solid rgba(20, 20, 20, 0.3);

    border-top-color:
        #151515;

    border-radius: 50%;

    animation:
        quizSpinner 0.7s linear infinite;

}


@keyframes quizSpinner {

    to {

        transform:
            rotate(360deg);

    }

}


/*
==========================================================
TABLET
==========================================================
*/

@media (max-width: 1023px) {

    :root {

        --quiz-height: 700px;

    }


    .quiz-options {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }


    .quiz-duration {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

    }


    .quiz-image-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

    }

}


/*
==========================================================
MOBILE
==========================================================
*/

@media (max-width: 767px) {

    /*
    На телефоне используем высоту экрана.

    100dvh корректнее обычного 100vh,
    потому что учитывает интерфейс
    мобильного браузера.
    */

    .quiz {

        height:
            calc(100dvh - 24px);

        max-height:
            760px;

        min-height:
            580px;

    }


    .quiz__content {

        padding-right: 4px;

    }


    .quiz-options {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;

    }


    .quiz-option {

        min-height: 68px;

        padding: 12px;

        font-size: 13px;

    }


    /*
    ------------------------------------------------------
    DURATION
    ------------------------------------------------------
    */

    .quiz-duration {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 9px;

    }


    .quiz-duration__button {

        min-height: 62px;

        font-size: 15px;

    }


    /*
    ------------------------------------------------------
    IMAGE GRID
    ------------------------------------------------------
    */

    .quiz-image-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;

    }


    .quiz-image-card__title {

        min-height: 40px;

        padding: 7px 8px;

        font-size: 12px;

    }


    /*
    ------------------------------------------------------
    EXTRAS
    ------------------------------------------------------
    */

    .quiz-extras {

        grid-template-columns:
            1fr;

    }


    /*
    ------------------------------------------------------
    FORM
    ------------------------------------------------------
    */

    .quiz-form-grid {

        grid-template-columns:
            1fr;

        gap: 14px;

    }


    .quiz-form-field--full {

        grid-column: auto;

    }


    /*
    ------------------------------------------------------
    DATE TIME
    ------------------------------------------------------
    */

    .quiz-date-time {

        grid-template-columns:
            1fr;

        gap: 14px;

    }


    /*
    ------------------------------------------------------
    SUMMARY
    ------------------------------------------------------
    */

    .quiz-summary {

        grid-template-columns:
            1fr;

    }


    .quiz-summary__item--full {

        grid-column: auto;

    }

}


/*
==========================================================
SMALL MOBILE
==========================================================
*/

@media (max-width: 479px) {

    .quiz {

        height:
            calc(100dvh - 16px);

        min-height:
            560px;

    }


    .quiz-step__heading {

        margin-bottom: 18px;

    }


    .quiz-step__heading h3 {

        font-size: 24px;

    }


    .quiz-step__heading p {

        margin-top: 6px;

        font-size: 13px;

    }


    /*
    ------------------------------------------------------
    IMAGE CARDS
    ------------------------------------------------------
    */

    .quiz-image-card__image {

        aspect-ratio:
            4 / 3;

    }


    /*
    ------------------------------------------------------
    NAVIGATION
    ------------------------------------------------------
    */

    .quiz__navigation {

        margin-top: 14px;

        padding-top: 14px;

    }

}


/*
==========================================================
VERY SHORT DESKTOP SCREENS
==========================================================

Например ноутбуки с небольшой
высотой экрана.
==========================================================
*/

@media (max-height: 760px) and (min-width: 768px) {

    :root {

        --quiz-height: 620px;

    }


    .quiz {

        min-height: 560px;

    }


    .quiz-step__heading {

        margin-bottom: 18px;

    }


    .quiz-image-card__image {

        aspect-ratio:
            16 / 8;

    }


    .quiz__navigation {

        margin-top: 15px;

        padding-top: 15px;

    }

}


/*
==========================================================
REDUCED MOTION
==========================================================
*/

@media (prefers-reduced-motion: reduce) {

    .quiz-step {

        animation: none;

    }

}

/*
==========================================================
QUIZ APARTMENTS
==========================================================
*/

.quiz-apartments {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;

}


/*
==========================================================
APARTMENT CARD
==========================================================
*/

.quiz-apartment-card {

    position: relative;

    display: flex;

    flex-direction: column;

    min-width: 0;

    padding: 0;

    overflow: hidden;

    color: var(--text-main);

    text-align: left;

    background:
        var(--quiz-card-bg);

    border:
        1px solid var(--quiz-border);

    border-radius: 16px;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;

}


.quiz-apartment-card:hover {

    transform:
        translateY(-3px);

    background:
        var(--quiz-card-hover);

    border-color:
        rgba(214, 170, 85, 0.65);

    box-shadow:
        0 0 18px rgba(214, 170, 85, 0.10);

}


/*
==========================================================
SELECTED APARTMENT
==========================================================
*/

.quiz-apartment-card.selected {

    border-color:
        var(--quiz-gold);

    box-shadow:
        0 0 18px rgba(214, 170, 85, 0.20),
        inset 0 0 12px rgba(214, 170, 85, 0.03);

}


/*
==========================================================
APARTMENT IMAGE
==========================================================
*/

.quiz-apartment-card__image {

    position: relative;

    width: 100%;

    aspect-ratio:
        16 / 10;

    overflow: hidden;

    background: #111;

}


.quiz-apartment-card__image::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(to top,
            rgba(0, 0, 0, 0.35),
            transparent 55%);

    pointer-events: none;

}


.quiz-apartment-card__image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.45s ease;

}


.quiz-apartment-card:hover .quiz-apartment-card__image img {

    transform:
        scale(1.04);

}


/*
==========================================================
SELECTED CHECK
==========================================================
*/

.quiz-apartment-card.selected .quiz-apartment-card__image::before {

    content: "✓";

    position: absolute;

    z-index: 3;

    top: 12px;
    right: 12px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    color: #151515;

    background:
        var(--quiz-gold);

    border-radius: 50%;

    font-size: 14px;
    font-weight: 800;

    box-shadow:
        0 0 14px rgba(214, 170, 85, 0.35);

}


/*
==========================================================
APARTMENT CONTENT
==========================================================
*/

.quiz-apartment-card__content {

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    min-height: 60px;

    padding:
        12px 14px;

}


.quiz-apartment-card__title {

    min-width: 0;

    font-size: 15px;
    font-weight: 700;

    line-height: 1.3;

}


/*
==========================================================
SELECT LABEL
==========================================================
*/

.quiz-apartment-card__select {

    flex: 0 0 auto;

    color:
        var(--text-muted);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing:
        0.05em;

    transition:
        color 0.25s ease;

}


.quiz-apartment-card:hover .quiz-apartment-card__select {

    color:
        var(--quiz-gold-light);

}


.quiz-apartment-card.selected .quiz-apartment-card__select {

    color:
        var(--quiz-gold);

}


/*
==========================================================
TABLET
==========================================================
*/

@media (max-width: 1023px) {

    .quiz-apartments {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 12px;

    }


    .quiz-apartment-card__title {

        font-size: 13px;

    }


    .quiz-apartment-card__select {

        font-size: 10px;

    }

}


/*
==========================================================
MOBILE
==========================================================
*/

@media (max-width: 767px) {

    .quiz-apartments {

        grid-template-columns:
            1fr;

    }


    .quiz-apartment-card {

        display: grid;

        grid-template-columns:
            130px minmax(0, 1fr);

    }


    .quiz-apartment-card__image {

        height: 90px;

        aspect-ratio: auto;

    }


    .quiz-apartment-card__content {

        min-height: 90px;

    }

}


/*
==========================================================
SMALL MOBILE
==========================================================
*/

@media (max-width: 479px) {

    .quiz-apartment-card {

        grid-template-columns:
            105px minmax(0, 1fr);

    }


    .quiz-apartment-card__image {

        height: 82px;

    }


    .quiz-apartment-card__content {

        min-height: 82px;

        padding:
            10px 12px;

    }


    .quiz-apartment-card__title {

        font-size: 12px;

    }

}

/*
==========================================================
QUIZ MODELS
==========================================================
*/

.quiz-models {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;

}


/*
==========================================================
MODEL CARD
==========================================================
*/

.quiz-model-card {

    position: relative;

    display: block;

    width: 100%;

    aspect-ratio:
        4 / 3;

    padding: 0;

    overflow: hidden;

    background: #111;

    border:
        1px solid var(--quiz-border);

    border-radius: 15px;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;

}


.quiz-model-card:hover {

    transform:
        translateY(-3px);

    border-color:
        rgba(214, 170, 85, 0.65);

    box-shadow:
        0 0 18px rgba(214, 170, 85, 0.10);

}


/*
==========================================================
MODEL IMAGE
==========================================================
*/

.quiz-model-card img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.45s ease,
        filter 0.3s ease;

}


.quiz-model-card:hover img {

    transform:
        scale(1.04);

}


/*
==========================================================
MODEL OVERLAY
==========================================================
*/

.quiz-model-card::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(to top,
            rgba(0, 0, 0, 0.28),
            transparent 55%);

    pointer-events: none;

}


/*
==========================================================
SELECTED MODEL
==========================================================
*/

.quiz-model-card.selected {

    border-color:
        var(--quiz-gold);

    box-shadow:
        0 0 18px rgba(214, 170, 85, 0.22),
        inset 0 0 12px rgba(214, 170, 85, 0.03);

}


.quiz-model-card.selected img {

    transform:
        scale(1.025);

}


/*
==========================================================
SELECTED CHECK
==========================================================
*/

.quiz-model-card__check {

    position: absolute;

    z-index: 5;

    top: 10px;
    right: 10px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    color: #151515;

    background:
        var(--quiz-gold);

    border-radius: 50%;

    font-size: 14px;
    font-weight: 800;

    box-shadow:
        0 0 14px rgba(214, 170, 85, 0.38);

    opacity: 0;

    transform:
        scale(0.7);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;

}


.quiz-model-card.selected .quiz-model-card__check {

    opacity: 1;

    transform:
        scale(1);

}


/*
==========================================================
TABLET
==========================================================
*/

@media (max-width: 1023px) {

    .quiz-models {

        gap: 11px;

    }

}


/*
==========================================================
MOBILE
==========================================================
*/

@media (max-width: 767px) {

    .quiz-models {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;

    }


    .quiz-model-card {

        aspect-ratio:
            4 / 6;

    }

}


/*
==========================================================
SMALL MOBILE
==========================================================
*/

@media (max-width: 479px) {

    .quiz-models {

        gap: 8px;

    }


    .quiz-model-card {

        border-radius: 11px;

    }


    .quiz-model-card__check {

        top: 7px;
        right: 7px;

        width: 24px;
        height: 24px;

        font-size: 12px;

    }

}


/*
==========================================================
SHORT DESKTOP SCREEN
==========================================================
*/

@media (max-height: 760px) and (min-width: 768px) {

    .quiz-model-card {

        aspect-ratio:
            16 / 9;

    }

}

/*
==========================================================
QUIZ BOXES
==========================================================
*/

.quiz-boxes {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;

}


/*
==========================================================
BOX CARD
==========================================================
*/

.quiz-box-card {

    position: relative;

    display: block;

    width: 100%;

    aspect-ratio:
        4 / 3;

    padding: 0;

    overflow: hidden;

    background: #111;

    border:
        1px solid var(--quiz-border);

    border-radius: 15px;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;

}


.quiz-box-card:hover {

    transform:
        translateY(-3px);

    border-color:
        rgba(214, 170, 85, 0.65);

    box-shadow:
        0 0 18px rgba(214, 170, 85, 0.10);

}


/*
==========================================================
BOX IMAGE
==========================================================
*/

.quiz-box-card img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.45s ease;

}


.quiz-box-card:hover img {

    transform:
        scale(1.04);

}


/*
==========================================================
BOX OVERLAY
==========================================================
*/

.quiz-box-card::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(to top,
            rgba(0, 0, 0, 0.30),
            transparent 55%);

    pointer-events: none;

}


/*
==========================================================
SELECTED BOX
==========================================================
*/

.quiz-box-card.selected {

    border-color:
        var(--quiz-gold);

    box-shadow:
        0 0 18px rgba(214, 170, 85, 0.22),
        inset 0 0 12px rgba(214, 170, 85, 0.03);

}


/*
==========================================================
QUESTION BUTTON
==========================================================
*/

.quiz-box-card__info {

    position: absolute;

    z-index: 6;

    top: 10px;
    left: 10px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    color:
        var(--quiz-gold-light);

    background:
        rgba(15, 15, 15, 0.78);

    border:
        1px solid rgba(214, 170, 85, 0.55);

    border-radius: 50%;

    font-size: 14px;
    font-weight: 700;

    line-height: 1;

    cursor: help;

    backdrop-filter:
        blur(8px);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;

}


.quiz-box-card__info:hover,
.quiz-box-card__info:focus {

    outline: none;

    background:
        rgba(214, 170, 85, 0.14);

    border-color:
        var(--quiz-gold);

    box-shadow:
        0 0 12px rgba(214, 170, 85, 0.25);

}


/*
==========================================================
TOOLTIP
==========================================================
*/

.quiz-box-card__tooltip {

    position: absolute;

    z-index: 8;

    top: 46px;
    left: 10px;
    right: 10px;

    padding:
        10px 12px;

    color:
        var(--text-main);

    background:
        rgba(12, 12, 12, 0.94);

    border:
        1px solid rgba(214, 170, 85, 0.35);

    border-radius:
        10px;

    font-size:
        12px;

    line-height:
        1.45;

    text-align:
        left;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.35);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-6px);

    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;

}


/*
==========================================================
SHOW TOOLTIP
==========================================================
*/

.quiz-box-card__info:hover+.quiz-box-card__tooltip,

.quiz-box-card__info:focus+.quiz-box-card__tooltip {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);

}


/*
==========================================================
SELECTED CHECK
==========================================================
*/

.quiz-box-card__check {

    position: absolute;

    z-index: 6;

    top: 10px;
    right: 10px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    color: #151515;

    background:
        var(--quiz-gold);

    border-radius:
        50%;

    font-size:
        14px;

    font-weight:
        800;

    opacity: 0;

    transform:
        scale(0.7);

    box-shadow:
        0 0 14px rgba(214, 170, 85, 0.38);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;

}


.quiz-box-card.selected .quiz-box-card__check {

    opacity: 1;

    transform:
        scale(1);

}


/*
==========================================================
TABLET
==========================================================
*/

@media (max-width: 1023px) {

    .quiz-boxes {

        gap: 11px;

    }

}


/*
==========================================================
MOBILE
==========================================================
*/

@media (max-width: 767px) {

    .quiz-boxes {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;

    }

}


/*
==========================================================
SMALL MOBILE
==========================================================
*/

@media (max-width: 479px) {

    .quiz-boxes {

        gap: 8px;

    }


    .quiz-box-card {

        border-radius:
            11px;

    }


    .quiz-box-card__info,
    .quiz-box-card__check {

        top: 7px;

        width: 16px;
        height: 16px;

        font-size: 12px;

    }


    .quiz-box-card__info {

        left: 7px;

    }


    .quiz-box-card__check {

        right: 7px;

    }


    .quiz-box-card__tooltip {

        bottom: 0px;
        left: 7px;
        right: 7px;
        padding: 8px 10px;
        font-size: 6px;
        top: auto;

    }

}


/*
==========================================================
SHORT SCREEN
==========================================================
*/

@media (max-height: 760px) and (min-width: 768px) {

    .quiz-box-card {

        aspect-ratio:
            16 / 9;

    }

}

/*
==========================================================
QUIZ EXTRAS LIST
==========================================================
*/

.quiz-extras-list {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

}


/*
==========================================================
EXTRA ITEM
==========================================================
*/

.quiz-extra-item {

    display: grid;

    grid-template-columns:
        34px minmax(0, 1fr) auto;

    align-items: center;

    gap: 12px;

    width: 100%;

    min-height: 66px;

    padding:
        12px 14px;

    color:
        var(--text-main);

    text-align: left;

    background:
        var(--quiz-card-bg);

    border:
        1px solid var(--quiz-border);

    border-radius:
        14px;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;

}


.quiz-extra-item:hover {

    transform:
        translateY(-2px);

    background:
        var(--quiz-card-hover);

    border-color:
        rgba(214, 170, 85, 0.55);

}


/*
==========================================================
SELECTED EXTRA
==========================================================
*/

.quiz-extra-item.selected {

    border-color:
        var(--quiz-gold);

    background:
        rgba(214, 170, 85, 0.055);

    box-shadow:
        0 0 15px rgba(214, 170, 85, 0.12);

}


/*
==========================================================
CUSTOM CHECKBOX
==========================================================
*/

.quiz-extra-item__checkbox {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border:
        1px solid rgba(255, 255, 255, 0.16);

    border-radius:
        8px;

    background:
        rgba(255, 255, 255, 0.025);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;

}


.quiz-extra-item__check {

    color:
        #151515;

    font-size:
        13px;

    font-weight:
        900;

    opacity: 0;

    transform:
        scale(0.6);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;

}


.quiz-extra-item.selected .quiz-extra-item__checkbox {

    background:
        var(--quiz-gold);

    border-color:
        var(--quiz-gold);

    box-shadow:
        0 0 12px rgba(214, 170, 85, 0.28);

}


.quiz-extra-item.selected .quiz-extra-item__check {

    opacity: 1;

    transform:
        scale(1);

}


/*
==========================================================
EXTRA CONTENT
==========================================================
*/

.quiz-extra-item__content {

    display: flex;

    flex-direction: column;

    min-width: 0;

}


.quiz-extra-item__title {

    color:
        var(--text-main);

    font-size:
        14px;

    font-weight:
        600;

    line-height:
        1.35;

}


/*
==========================================================
EXTRA PRICE
==========================================================
*/

.quiz-extra-item__price {

    flex: 0 0 auto;

    color:
        var(--quiz-gold-light);

    font-size:
        13px;

    font-weight:
        700;

    white-space:
        nowrap;

}


/*
==========================================================
EXTRAS RESULT
==========================================================
*/

.quiz-extras-result {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 5px;

    margin-top:
        18px;

    color:
        var(--text-muted);

    font-size:
        13px;

}


.quiz-extras-result strong {

    color:
        var(--quiz-gold-light);

    font-size:
        15px;

}


/*
==========================================================
MOBILE
==========================================================
*/

@media (max-width: 767px) {

    .quiz-extras-list {

        grid-template-columns:
            1fr;

        gap:
            9px;

    }


    .quiz-extra-item {

        min-height:
            58px;

        padding:
            10px 12px;

    }


    .quiz-extra-item__title {

        font-size:
            13px;

    }

}


/*
==========================================================
SMALL MOBILE
==========================================================
*/

@media (max-width: 479px) {

    .quiz-extra-item {

        grid-template-columns:
            30px minmax(0, 1fr) auto;

        gap:
            9px;

    }


    .quiz-extra-item__checkbox {

        width:
            25px;

        height:
            25px;

    }


    .quiz-extra-item__price {

        font-size:
            12px;

    }

}

/*
==========================================================
QUIZ ARRIVAL
==========================================================
*/

.quiz-arrival {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        16px;

    max-width:
        720px;

    margin:
        0 auto;

}


/*
==========================================================
ARRIVAL FIELD
==========================================================
*/

.quiz-arrival__field {

    display: flex;

    flex-direction: column;

    gap:
        8px;

}


.quiz-arrival__label {

    color:
        var(--text-secondary);

    font-size:
        13px;

    font-weight:
        600;

}


/*
==========================================================
DATE / TIME INPUT
==========================================================
*/

.quiz-arrival .quiz-input {

    width:
        100%;

    min-height:
        56px;

    padding:
        0 16px;

    color:
        var(--text-main);

    background:
        var(--quiz-card-bg);

    border:
        1px solid var(--quiz-border);

    border-radius:
        13px;

    font-family:
        inherit;

    font-size:
        15px;

    outline:
        none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;

}


.quiz-arrival .quiz-input:hover {

    border-color:
        rgba(214, 170, 85, 0.45);

}


.quiz-arrival .quiz-input:focus {

    background:
        var(--quiz-card-hover);

    border-color:
        var(--quiz-gold);

    box-shadow:
        0 0 15px rgba(214, 170, 85, 0.12);

}


/*
==========================================================
CALENDAR ICON COLOR
==========================================================
*/

.quiz-arrival input[type="date"]::-webkit-calendar-picker-indicator,

.quiz-arrival input[type="time"]::-webkit-calendar-picker-indicator {

    cursor:
        pointer;

    filter:
        invert(82%) sepia(29%) saturate(731%) hue-rotate(358deg) brightness(91%) contrast(89%);

}


/*
==========================================================
TIMEZONE
==========================================================
*/

.quiz-timezone {

    display: flex;

    align-items: center;
    justify-content: center;

    gap:
        8px;

    margin-top:
        18px;

    color:
        var(--text-muted);

    font-size:
        12px;

}


.quiz-timezone__icon {

    display: flex;

    align-items: center;
    justify-content: center;

    width:
        24px;

    height:
        24px;

    color:
        var(--quiz-gold-light);

    background:
        rgba(214, 170, 85, 0.07);

    border:
        1px solid rgba(214, 170, 85, 0.20);

    border-radius:
        50%;

}


/*
==========================================================
ARRIVAL RESULT
==========================================================
*/

.quiz-arrival__result {

    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap:
        5px;

    min-height:
        24px;

    margin-top:
        14px;

    color:
        var(--text-muted);

    font-size:
        13px;

}


.quiz-arrival__result strong {

    color:
        var(--quiz-gold-light);

    font-weight:
        700;

}


/*
==========================================================
MOBILE
==========================================================
*/

@media (max-width: 767px) {

    .quiz-arrival {

        grid-template-columns:
            1fr;

        gap:
            12px;

    }


    .quiz-arrival .quiz-input {

        min-height:
            52px;

    }

}


/*
==========================================================
SMALL MOBILE
==========================================================
*/

@media (max-width: 479px) {

    .quiz-arrival .quiz-input {

        min-height:
            48px;

        padding:
            0 12px;

        font-size:
            14px;

    }


    .quiz-timezone {

        margin-top:
            14px;

    }

}

/*
==========================================================
QUIZ CONTACTS
==========================================================
*/

.quiz-contacts {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        16px;

    max-width:
        760px;

    margin:
        0 auto;

}


/*
==========================================================
CONTACT FIELD
==========================================================
*/

.quiz-contact-field {

    display: flex;

    flex-direction: column;

    gap:
        8px;

}


.quiz-contact-field__label {

    color:
        var(--text-secondary);

    font-size:
        13px;

    font-weight:
        600;

}


/*
==========================================================
CONTACT INPUT
==========================================================
*/

.quiz-contacts .quiz-input {

    width:
        100%;

    min-height:
        56px;

    padding:
        0 16px;

    color:
        var(--text-main);

    background:
        var(--quiz-card-bg);

    border:
        1px solid var(--quiz-border);

    border-radius:
        13px;

    font-family:
        inherit;

    font-size:
        15px;

    outline:
        none;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;

}


.quiz-contacts .quiz-input::placeholder {

    color:
        var(--text-muted);

}


.quiz-contacts .quiz-input:hover {

    border-color:
        rgba(214, 170, 85, 0.45);

}


.quiz-contacts .quiz-input:focus {

    background:
        var(--quiz-card-hover);

    border-color:
        var(--quiz-gold);

    box-shadow:
        0 0 15px rgba(214, 170, 85, 0.12);

}


/*
==========================================================
MESSENGER BLOCK
==========================================================
*/

.quiz-messenger-block {

    max-width:
        760px;

    margin:
        24px auto 0;

}


.quiz-messenger-block__label {

    display:
        block;

    margin-bottom:
        10px;

    color:
        var(--text-secondary);

    font-size:
        13px;

    font-weight:
        600;

}


/*
==========================================================
MESSENGERS
==========================================================
*/

.quiz-messengers {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap:
        10px;

}


.quiz-messenger {

    display: flex;

    align-items: center;
    justify-content: center;

    gap:
        8px;

    min-height:
        54px;

    padding:
        10px 12px;

    color:
        var(--text-secondary);

    background:
        var(--quiz-card-bg);

    border:
        1px solid var(--quiz-border);

    border-radius:
        13px;

    cursor:
        pointer;

    transition:
        transform 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;

}


.quiz-messenger:hover {

    transform:
        translateY(-2px);

    color:
        var(--text-main);

    border-color:
        rgba(214, 170, 85, 0.5);

}


/*
==========================================================
SELECTED MESSENGER
==========================================================
*/

.quiz-messenger.selected {

    color:
        var(--quiz-gold-light);

    background:
        rgba(214, 170, 85, 0.06);

    border-color:
        var(--quiz-gold);

    box-shadow:
        0 0 14px rgba(214, 170, 85, 0.12);

}


/*
==========================================================
MESSENGER ICON
==========================================================
*/

.quiz-messenger__icon {

    display: flex;

    align-items: center;
    justify-content: center;

    width:
        28px;

    height:
        28px;

    flex:
        0 0 28px;

    color:
        var(--quiz-gold-light);

    background:
        rgba(214, 170, 85, 0.07);

    border:
        1px solid rgba(214, 170, 85, 0.22);

    border-radius:
        50%;

    font-size:
        10px;

    font-weight:
        800;

}


.quiz-messenger__text {

    font-size:
        13px;

    font-weight:
        600;

}


/*
==========================================================
CONTACT MESSAGE
==========================================================
*/

#quizContactsMessage {

    max-width:
        760px;

    margin:
        14px auto 0;

    text-align:
        center;

}


/*
==========================================================
MOBILE
==========================================================
*/

@media (max-width: 767px) {

    .quiz-contacts {

        grid-template-columns:
            1fr;

        gap:
            12px;

    }


    .quiz-messengers {

        grid-template-columns:
            1fr;

    }


    .quiz-messenger {

        justify-content:
            flex-start;

        min-height:
            50px;

    }

}


/*
==========================================================
SMALL MOBILE
==========================================================
*/

@media (max-width: 479px) {

    .quiz-contacts .quiz-input {

        min-height:
            48px;

        padding:
            0 12px;

        font-size:
            14px;

    }


    .quiz-messenger-block {

        margin-top:
            18px;

    }

}

/*
==========================================================
FINAL QUIZ SUMMARY
==========================================================
*/

.quiz-summary-final {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        10px;

    max-width:
        820px;

    margin:
        0 auto;

}


/*
==========================================================
SUMMARY ITEM
==========================================================
*/

.quiz-summary-final__item {

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap:
        15px;

    min-height:
        54px;

    padding:
        11px 14px;

    background:
        var(--quiz-card-bg);

    border:
        1px solid var(--quiz-border);

    border-radius:
        12px;

}


.quiz-summary-final__item--wide {

    grid-column:
        1 / -1;

}


/*
==========================================================
SUMMARY LABEL
==========================================================
*/

.quiz-summary-final__label {

    flex:
        0 0 auto;

    color:
        var(--text-muted);

    font-size:
        12px;

    line-height:
        1.3;

}


/*
==========================================================
SUMMARY VALUE
==========================================================
*/

.quiz-summary-final__value {

    min-width:
        0;

    color:
        var(--text-main);

    font-size:
        13px;

    font-weight:
        600;

    line-height:
        1.4;

    text-align:
        right;

}


/*
==========================================================
SUMMARY NOTE
==========================================================
*/

.quiz-summary-note {

    display: flex;

    align-items: center;
    justify-content: center;

    gap:
        9px;

    max-width:
        820px;

    margin:
        16px auto 0;

    padding:
        11px 14px;

    color:
        var(--text-secondary);

    background:
        rgba(214, 170, 85, 0.04);

    border:
        1px solid rgba(214, 170, 85, 0.20);

    border-radius:
        12px;

    font-size:
        12px;

    line-height:
        1.45;

}


.quiz-summary-note__icon {

    display: flex;

    align-items: center;
    justify-content: center;

    flex:
        0 0 24px;

    width:
        24px;

    height:
        24px;

    color:
        #151515;

    background:
        var(--quiz-gold);

    border-radius:
        50%;

    font-size:
        12px;

    font-weight:
        900;

    box-shadow:
        0 0 12px rgba(214, 170, 85, 0.25);

}


/*
==========================================================
SUMMARY MESSAGE
==========================================================
*/

#quizSummaryMessage {

    max-width:
        820px;

    margin:
        12px auto 0;

    text-align:
        center;

}


/*
==========================================================
MOBILE
==========================================================
*/

@media (max-width: 767px) {

    .quiz-summary-final {

        grid-template-columns:
            1fr;

    }


    .quiz-summary-final__item--wide {

        grid-column:
            auto;

    }


    .quiz-summary-final__item {

        min-height:
            50px;

    }

}


/*
==========================================================
SMALL MOBILE
==========================================================
*/

@media (max-width: 479px) {

    .quiz-summary-final {

        gap:
            7px;

    }


    .quiz-summary-final__item {

        padding:
            9px 11px;

    }


    .quiz-summary-final__label {

        font-size:
            11px;

    }


    .quiz-summary-final__value {

        font-size:
            12px;

    }


    .quiz-summary-note {

        align-items:
            flex-start;

        margin-top:
            12px;

        padding:
            10px 11px;

        font-size:
            11px;

    }

}


/*
==========================================================
SHORT SCREEN
==========================================================
*/

@media (max-height: 760px) and (min-width: 768px) {

    .quiz-summary-final {

        gap:
            7px;

    }


    .quiz-summary-final__item {

        min-height:
            44px;

        padding:
            8px 12px;

    }


    .quiz-summary-note {

        margin-top:
            10px;

        padding:
            8px 12px;

    }

}

/*
==========================================================
DELIVERY TYPES
==========================================================
*/

.quiz-delivery-types {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;

    max-width: 820px;

    margin:
        0 auto;

}


/*
==========================================================
DELIVERY TYPE CARD
==========================================================
*/

.quiz-delivery-type {

    position: relative;

    display: flex;

    align-items: center;

    gap: 18px;

    min-height: 135px;

    padding:
        22px;

    text-align: left;

    color:
        var(--text-main);

    background:
        var(--quiz-card-bg);

    border:
        1px solid var(--quiz-border);

    border-radius:
        16px;

    cursor: pointer;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;

}


.quiz-delivery-type:hover {

    transform:
        translateY(-3px);

    background:
        var(--quiz-card-hover);

    border-color:
        rgba(214, 170, 85, 0.55);

    box-shadow:
        0 0 18px rgba(214, 170, 85, 0.08);

}


/*
==========================================================
NUMBER
==========================================================
*/

.quiz-delivery-type__number {

    flex:
        0 0 auto;

    color:
        var(--quiz-gold);

    font-size:
        27px;

    font-weight:
        700;

    line-height:
        1;

}


/*
==========================================================
CONTENT
==========================================================
*/

.quiz-delivery-type__content {

    display: flex;

    flex-direction: column;

    gap: 6px;

    min-width: 0;

}


.quiz-delivery-type__title {

    color:
        var(--text-main);

    font-size:
        20px;

    line-height:
        1.25;

}


.quiz-delivery-type__description {

    max-width:
        280px;

    color:
        var(--text-muted);

    font-size:
        13px;

    line-height:
        1.5;

}


/*
==========================================================
CHECK
==========================================================
*/

.quiz-delivery-type__check {

    position: absolute;

    top:
        13px;

    right:
        13px;

    display: flex;

    align-items: center;
    justify-content: center;

    width:
        25px;

    height:
        25px;

    color:
        #151515;

    background:
        var(--quiz-gold);

    border-radius:
        50%;

    font-size:
        13px;

    font-weight:
        900;

    opacity:
        0;

    transform:
        scale(0.7);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;

}


/*
==========================================================
SELECTED
==========================================================
*/

.quiz-delivery-type.selected {

    background:
        rgba(214, 170, 85, 0.06);

    border-color:
        var(--quiz-gold);

    box-shadow:
        0 0 18px rgba(214, 170, 85, 0.12);

}


.quiz-delivery-type.selected .quiz-delivery-type__title {

    color:
        var(--quiz-gold-light);

}


.quiz-delivery-type.selected .quiz-delivery-type__check {

    opacity:
        1;

    transform:
        scale(1);

}


/*
==========================================================
DELIVERY TYPE MOBILE
==========================================================
*/

@media (max-width: 767px) {

    .quiz-delivery-types {

        grid-template-columns:
            1fr;

        gap:
            10px;

    }


    .quiz-delivery-type {

        min-height:
            105px;

        padding:
            17px;

    }


    .quiz-delivery-type__number {

        font-size:
            22px;

    }


    .quiz-delivery-type__title {

        font-size:
            17px;

    }

}

/*
==========================================================
DELIVERY FORM
==========================================================
*/

.quiz-delivery-form {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        16px;

    max-width:
        820px;

    margin:
        0 auto;

}


/*
==========================================================
DELIVERY FIELD
==========================================================
*/

.quiz-delivery-field {

    display: flex;

    flex-direction: column;

    gap:
        8px;

}


.quiz-delivery-field--full {

    grid-column:
        1 / -1;

}


.quiz-delivery-field__label {

    color:
        var(--text-secondary);

    font-size:
        13px;

    font-weight:
        600;

}


/*
==========================================================
DELIVERY INPUT
==========================================================
*/

.quiz-delivery-form .quiz-input {

    width:
        100%;

    min-height:
        56px;

    padding:
        0 16px;

    color:
        var(--text-main);

    background:
        var(--quiz-card-bg);

    border:
        1px solid var(--quiz-border);

    border-radius:
        13px;

    outline:
        none;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;

}


.quiz-delivery-form .quiz-input::placeholder {

    color:
        var(--text-muted);

}


.quiz-delivery-form .quiz-input:hover {

    border-color:
        rgba(214, 170, 85, 0.45);

}


.quiz-delivery-form .quiz-input:focus {

    background:
        var(--quiz-card-hover);

    border-color:
        var(--quiz-gold);

    box-shadow:
        0 0 15px rgba(214, 170, 85, 0.12);

}


/*
==========================================================
DELIVERY RESULT
==========================================================
*/

.quiz-delivery-result {

    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap:
        5px 8px;

    max-width:
        820px;

    margin:
        14px auto 0;

    padding:
        11px 14px;

    color:
        var(--text-muted);

    background:
        rgba(255, 255, 255, 0.025);

    border:
        1px solid rgba(255, 255, 255, 0.06);

    border-radius:
        12px;

    font-size:
        12px;

    text-align:
        center;

}


.quiz-delivery-result strong {

    color:
        var(--quiz-gold-light);

    font-weight:
        600;

}


/*
==========================================================
DELIVERY MOBILE
==========================================================
*/

@media (max-width: 767px) {

    .quiz-delivery-form {

        grid-template-columns:
            1fr;

        gap:
            12px;

    }


    .quiz-delivery-field--full {

        grid-column:
            auto;

    }

}


@media (max-width: 479px) {

    .quiz-delivery-form .quiz-input {

        min-height:
            48px;

        padding:
            0 12px;

        font-size:
            14px;

    }

}

/*
==========================================================
CERTIFICATE VALUES
==========================================================
*/

.quiz-certificate-values {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap:
        14px;

    max-width:
        820px;

    margin:
        0 auto;

}


/*
==========================================================
CERTIFICATE VALUE
==========================================================
*/

.quiz-certificate-value {

    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    min-height:
        100px;

    padding:
        18px;

    color:
        var(--text-main);

    background:
        var(--quiz-card-bg);

    border:
        1px solid var(--quiz-border);

    border-radius:
        15px;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;

}


.quiz-certificate-value:hover {

    transform:
        translateY(-3px);

    background:
        var(--quiz-card-hover);

    border-color:
        rgba(214, 170, 85, 0.55);

    box-shadow:
        0 0 16px rgba(214, 170, 85, 0.08);

}


/*
==========================================================
TITLE
==========================================================
*/

.quiz-certificate-value__title {

    color:
        var(--text-main);

    font-size:
        20px;

    font-weight:
        700;

    line-height:
        1.2;

}


/*
==========================================================
CHECK
==========================================================
*/

.quiz-certificate-value__check {

    position: absolute;

    top:
        10px;

    right:
        10px;

    display: flex;

    align-items: center;
    justify-content: center;

    width:
        24px;

    height:
        24px;

    color:
        #151515;

    background:
        var(--quiz-gold);

    border-radius:
        50%;

    font-size:
        12px;

    font-weight:
        900;

    opacity:
        0;

    transform:
        scale(0.7);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;

}


/*
==========================================================
SELECTED
==========================================================
*/

.quiz-certificate-value.selected {

    background:
        rgba(214, 170, 85, 0.06);

    border-color:
        var(--quiz-gold);

    box-shadow:
        0 0 16px rgba(214, 170, 85, 0.12);

}


.quiz-certificate-value.selected .quiz-certificate-value__title {

    color:
        var(--quiz-gold-light);

}


.quiz-certificate-value.selected .quiz-certificate-value__check {

    opacity:
        1;

    transform:
        scale(1);

}


/*
==========================================================
CERTIFICATE MOBILE
==========================================================
*/

@media (max-width: 767px) {

    .quiz-certificate-values {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            10px;

    }


    .quiz-certificate-value {

        min-height:
            82px;

        padding:
            14px;

    }


    .quiz-certificate-value__title {

        font-size:
            17px;

    }

}


@media (max-width: 479px) {

    .quiz-certificate-values {

        grid-template-columns:
            1fr;

    }


    .quiz-certificate-value {

        min-height:
            66px;

    }

}

/*
==========================================================
CERTIFICATE CUSTOM VALUE
==========================================================
*/

.quiz-certificate-custom {

    display: none;

    max-width:
        520px;

    margin:
        20px auto 0;

}


.quiz-certificate-custom.active {

    display: block;

    animation:
        quizCertificateFieldFade 0.3s ease;

}


/*
==========================================================
CERTIFICATE CUSTOM FIELD
==========================================================
*/

.quiz-certificate-custom__field {

    display: flex;

    flex-direction: column;

    gap:
        8px;

}


.quiz-certificate-custom__label {

    color:
        var(--text-secondary);

    font-size:
        13px;

    font-weight:
        600;

}


/*
==========================================================
INPUT WRAPPER
==========================================================
*/

.quiz-certificate-custom__input-wrapper {

    position: relative;

}


/*
==========================================================
INPUT
==========================================================
*/

.quiz-certificate-custom__input {

    width:
        100%;

    min-height:
        56px;

    padding:
        0 52px 0 16px;

    color:
        var(--text-main);

    background:
        var(--quiz-card-bg);

    border:
        1px solid var(--quiz-border);

    border-radius:
        13px;

    outline:
        none;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;

}


.quiz-certificate-custom__input:hover {

    border-color:
        rgba(214, 170, 85, 0.45);

}


.quiz-certificate-custom__input:focus {

    background:
        var(--quiz-card-hover);

    border-color:
        var(--quiz-gold);

    box-shadow:
        0 0 15px rgba(214, 170, 85, 0.12);

}


/*
==========================================================
CURRENCY
==========================================================
*/

.quiz-certificate-custom__currency {

    position: absolute;

    top:
        50%;

    right:
        17px;

    transform:
        translateY(-50%);

    color:
        var(--quiz-gold-light);

    font-size:
        18px;

    font-weight:
        700;

    pointer-events:
        none;

}


/*
==========================================================
ANIMATION
==========================================================
*/

@keyframes quizCertificateFieldFade {

    from {

        opacity:
            0;

        transform:
            translateY(-8px);

    }

    to {

        opacity:
            1;

        transform:
            translateY(0);

    }

}


/*
==========================================================
CERTIFICATE CUSTOM MOBILE
==========================================================
*/

@media (max-width: 767px) {

    .quiz-certificate-custom {

        margin-top:
            14px;

    }


    .quiz-certificate-custom__input {

        min-height:
            50px;

        font-size:
            15px;

    }

}

/*
==========================================================
QUIZ HONEYPOT
==========================================================
*/

.quiz-honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/*
==========================================================
QUIZ — MOBILE COMPACT LAYOUT
==========================================================
*/

@media (max-width: 767px) {




    /*
    ======================================================
    QUIZ
    ======================================================
    */

    .quiz {
        height: auto !important;
        min-height: 0;
        max-height: none;
    }


    /*
    ======================================================
    INNER
    ======================================================
    */

    .quiz__inner {
        height: auto;
        min-height: 0;

        display: flex;
        flex-direction: column;
    }


    /*
    ======================================================
    CONTENT
    ======================================================
    */

    .quiz__content {
        flex: none;

        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;

        overflow: visible;

        padding: 14px 12px;
    }


    /*
    ======================================================
    STEP
    ======================================================
    */

    .quiz-step {
        width: 100%;

        height: auto;
        min-height: 0;
        max-height: none;
    }


    /*
    ======================================================
    NAVIGATION
    ======================================================
    */

    .quiz__navigation {
        position: static;

        flex-shrink: 0;

        width: 100%;

        padding: 10px 12px 12px;
    }



    /*
    ======================================================
    STEP HEADING
    ======================================================
    */

    .quiz-step__heading {
        margin-bottom: 12px;
    }

    .quiz-step__heading h3 {
        margin: 0 0 6px;

        font-size: 21px;
        line-height: 1.15;
    }

    .quiz-step__heading p {
        margin: 0;

        font-size: 13px;
        line-height: 1.4;
    }


    /*
    ======================================================
    PROGRESS
    ======================================================
    */

    .quiz__progress {
        padding: 12px 12px 8px;
    }


    /*
    ======================================================
    NAVIGATION
    ======================================================
    */

    .quiz__navigation {
        flex-shrink: 0;

        padding: 10px 12px 12px;
    }

    .quiz__navigation button {
        min-height: 44px;

        padding: 9px 14px;

        font-size: 14px;
    }

}

@media (max-width: 767px) {

    .quiz-step__heading {
        margin-bottom: 14px;
    }

    .quiz-step__heading h3 {
        margin: 0 0 6px;

        font-size: 21px;
        line-height: 1.2;
    }

    .quiz-step__heading p {
        margin: 0;

        font-size: 13px;
        line-height: 1.4;
    }

}

@media (max-width: 767px) {

    .quiz-materials {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 7px;
    }

    .quiz-material-button {
        min-height: 42px;

        padding: 7px 8px;

        font-size: 12px;
    }

}

@media (max-width: 767px) {

    .quiz-models {
        display: grid;

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 6px;
    }


    .quiz-model-card {
        position: relative;

        min-width: 0;

        border-radius: 10px;

        overflow: hidden;
    }


    .quiz-model-card img {
        display: block;

        width: 100%;
        height: 130px;

        object-fit: cover;
    }

}

@media (max-width: 767px) {

    .quiz-boxes {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 6px;
    }

    .quiz-box-card {
        aspect-ratio: 4 / 3.5;
    }


    .quiz-box-card {
        position: relative;

        overflow: hidden;

        min-width: 0;

        border-radius: 10px;
    }


    .quiz-box-card img {
        display: block;

        width: 100%;
        height: 125px;

        object-fit: cover;
    }

}

@media (max-width: 767px) {

    .apartments-grid {
        display: grid;

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 6px;
    }


    .apartment-card img {
        width: 100%;
        height: 145px;

        object-fit: cover;
    }


    .apartment-card span {
        padding: 7px 4px;

        font-size: 11px;
        line-height: 1.25;

        text-align: center;
    }

}

@media (max-width: 767px) {

    .extras-list {
        display: flex;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 7px;
    }


    .extra-item {
        min-height: 52px;

        padding: 8px;
    }


    .extra-item__title {
        font-size: 12px;
    }


    .extra-item__price {
        font-size: 11px;
    }

}

@media (max-width: 767px) {

    .quiz-field {
        margin-bottom: 9px;
    }


    .quiz-field label {
        margin-bottom: 4px;

        font-size: 12px;
    }


    .quiz-field input {
        height: 44px;

        padding: 8px 12px;

        font-size: 15px;
    }

}

.quiz {
    height: 720px;
}

.quiz__content {
    overflow: hidden;
}

/*
==========================================================
MODEL STEP
==========================================================
*/

.quiz-models {
    width: 100%;
}


.quiz-models__photos {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}


/*
==========================================================
NO MODEL BUTTON
==========================================================
*/

.quiz-model-none {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 54px;

    margin-top: 16px;
    padding: 12px 20px;

    border: 1px solid rgba(214, 170, 85, 0.45);

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.03);

    color: #ffffff;

    font-family: inherit;
    font-size: 15px;
    font-weight: 500;

    cursor: pointer;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease;
}


.quiz-model-none:hover {
    border-color: #d6aa55;

    background:
        rgba(214, 170, 85, 0.08);
}


.quiz-model-none.selected {
    border-color: #d6aa55;

    background:
        rgba(214, 170, 85, 0.13);

    color: #f0d18a;

    box-shadow:
        0 0 18px rgba(214, 170, 85, 0.16);
}

/*
==========================================================
MODEL STEP — MOBILE
==========================================================
*/

@media (max-width: 767px) {

    .quiz-models {
        width: 100%;
        display: block;
    }


    /*
    Две фотографии в одну строку
    */

    .quiz-models__photos {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;

        width: 100%;
    }


    /*
    Карточка куклы
    */

    .quiz-model-card {
        width: 100%;
        min-width: 0;

        margin: 0;

        border-radius: 10px;

        overflow: hidden;
    }


    /*
    Фотография
    */

    .quiz-model-card img {
        display: block;

        width: 100%;
        height: 240px;

        object-fit: cover;
    }


    /*
    Без куклы
    */

    .quiz-model-none {
        width: 100%;

        min-height: 48px;

        margin-top: 10px;
        padding: 10px 14px;

        border-radius: 10px;

        font-size: 14px;
    }

}

/*
==========================================================
DISPOSABLE MATERIALS
==========================================================
*/

.quiz-materials {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

    width: 100%;
}


/*
==========================================================
MATERIAL BUTTON
==========================================================
*/

.quiz-material-button {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    min-width: 0;
    min-height: 52px;

    padding: 10px 12px;

    border: 1px solid rgba(214, 170, 85, 0.28);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.035);

    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    line-height: 1.25;

    text-align: left;

    cursor: pointer;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.quiz-material-button:hover {
    border-color:
        rgba(214, 170, 85, 0.75);

    background:
        rgba(214, 170, 85, 0.07);
}


/*
==========================================================
SELECTED
==========================================================
*/

.quiz-material-button.selected {
    border-color: #d6aa55;

    background:
        rgba(214, 170, 85, 0.13);

    box-shadow:
        0 0 15px rgba(214, 170, 85, 0.12);
}


/*
==========================================================
CHECK
==========================================================
*/

.quiz-material-button__check {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 22px;

    width: 22px;
    height: 22px;

    margin-right: 8px;

    border: 1px solid rgba(214, 170, 85, 0.45);

    border-radius: 6px;

    color: transparent;

    font-size: 13px;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}


.quiz-material-button.selected .quiz-material-button__check {

    background: #d6aa55;

    border-color: #d6aa55;

    color: #151515;
}


.quiz-material-button__title {
    min-width: 0;
}

@media (max-width: 767px) {

    .quiz-materials {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 7px;
    }


    .quiz-material-button {
        min-height: 40px;
        padding: 7px 8px;
        border-radius: 8px;
        font-size: 7px;
    }


    .quiz-material-button__check {
        flex-basis: 18px;

        width: 18px;
        height: 18px;

        margin-right: 6px;

        border-radius: 5px;

        font-size: 11px;
    }

}