:root {
    --font-family: "Geometria", sans-serif;
    --second-family: "NT Somic", sans-serif;
    --main-color: #000000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    font-family: var(--font-family);
    color: var(--main-color);
    font-weight: 400;
    line-height: 1.2;
}

a {
    color: var(--main-color);
    text-decoration: none;
    transition: color .3s ease;
}

.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

.header {
    height: 70px;
    background: #c68e99;
}

.header .container {
    height: 100%;
}

.header-wrapper {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-phone {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15px;
    line-height: 160%;
    color: #fff;
}

.header-catalog {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15px;
    line-height: 160%;
    color: #fff;
}

.footer {
    min-height: 80px;
    background: #c68e99;
    color: #ffffff;
}

.survey-page {
    padding: 40px 0;
}

.survey-page>.container {}

.survey-title {
    margin: 0 0 34px;
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 36px;
    line-height: 122%;
    text-transform: none;
    text-align: center;
    color: #7e0f3a;
}

.survey-slide {
    padding-bottom: 18px;
}

.survey-card {
    position: relative;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 6px 4px 19px 0 rgba(0, 0, 0, 0.15);
    background-color: #fff;
    height: 640px;
    display: flex;
    flex-direction: column;
}

.survey-card--form {
    background-image: url('../img/form-bg.svg');
    background-repeat: no-repeat;
    background-position: top 20px right 20px;
}

.survey-card--question {
    background-image: url('../img/question-bg.svg');
    background-repeat: no-repeat;
    background-position: left 20px bottom 20px;
}

.survey-card--thanks {
    background-color: #facdd6;
    background-image: url('../img/form-bg.svg'), url('../img/question-bg.svg');
    background-repeat: no-repeat, no-repeat;
    background-position: right 20px top 20px, left 20px bottom 20px;
}

.survey-card-label {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: rgba(205, 202, 201, 0.78);
    margin-bottom: 57px;
}

.survey-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
    gap: 42px;
}

.survey-form-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.survey-form-caption {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 20px;
    line-height: 125%;
    color: #000;
    margin-bottom: 32px;
}

.survey-form-left input {
    font-family: var(--second-family);
    width: 100%;
    height: 62px;
    border: 1px solid #dedede;
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 0 18px;
    font-weight: 600;
    font-size: 13px;
    text-transform: none;
    color: #7e0f3a;
}

.survey-form-left input:focus {
    border-color: #7e0f3a;
    outline: none;
}

.survey-form-left input:last-child {
    margin-bottom: 0;
}

.survey-form-left input::placeholder {
    color: #7b1743;
    opacity: 1;
    text-transform: uppercase;
} 



.survey-form-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.survey-consents {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.consent-line {
    display: flex;
    align-items: flex-start;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    line-height: 1.35;
}

.consent-line input {
    margin-top: 2px;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1.84px solid #e6e6e6;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.consent-line input:checked::after {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: #7e0f3a;
}

.consent-line span {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 13px;
    line-height: 138%;
    color: #000;
}

.survey-error {
    min-height: 24px;
    color: #be1537;
    margin-bottom: 12px;
    font-size: 18px;
}

.btn-main {
    border: 0;
    border-radius: 10px;
    background: #efc0d0;
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 20px;
    text-transform: uppercase;
    color: #7e0f3a;
    height: 64px;
    min-width: 260px;
    padding: 0 30px;
    cursor: pointer;
    transition: .2s ease;
}

.btn-main:hover {
    background: #e9aac0;
}

.btn-main.is-loading,
.btn-main:disabled {
    opacity: .7;
    cursor: wait;
}

.btn-alt {
    background: #edd6de;
}

.question-step {
    font-size: 16px;
    text-transform: uppercase;
    color: #d1d1d1;
    margin-bottom: 26px;
}

.question-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
    gap: 32px;
    height: 100%;
}

.question-title {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 40px;
    line-height: 100%;
    color: #000;
    max-width: 640px;
}

.question-options {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.question-options-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.option-line {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 30px;
}

.option-line input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1.84px solid #e6e6e6;
    border-radius: 7px;
    /* 0 если нужен совсем прямой квадрат */
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.option-line input[type="radio"]:checked {
    background: #fff;
}

.option-line input[type="radio"]:checked::after {
    content: "";
    width: 23px;
    height: 23px;
    border-radius: 6px;
    background: #7e0f3a;
}

.option-line span {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 20px;
    color: #000;
}

.question-actions {
    display: flex;
    justify-content: flex-start;
    gap: 18px;
    margin-top: 24px;
}

.question-actions .btn-prev {
    width: 140px;
    min-width: 140px;
    flex: 0 0 140px;
    background: #fff2f5;
}

.question-actions .btn-next {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.thanks-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.thanks-card h3 {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 36px;
    text-transform: uppercase;
    text-align: center;
    color: #7e0f3a;
    margin-bottom: 54px;
}

.thanks-card p {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 26px;
    text-transform: uppercase;
    text-align: center;
    color: #7e0f3a;
}

.thanks-card p:not(:last-child) {
    margin-bottom: 24px;
}

.footer {
    padding: 40px 0;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 12px;
    line-height: 135%;
    text-align: center;
    color: #fff;
    margin-bottom: 10px;
}

.footer-bottom p a {
    color: #fff;
    text-decoration: underline;
}


.footer-delim {
    background-image: url('../img/footer_delim.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    height: 32px;
    margin-bottom: 20px;
    width: 100%;
}

@media (max-width: 1200px) {
    .survey-title {
        font-size: 22px;
    }

    .survey-card-label {
        font-size: 12px;
        margin-bottom: 40px;
    }

    .survey-form-caption {
        font-size: 16px;
        max-width: 200px;
    }

    .survey-card--form {
        background-image: url('../img/form-bg-mob.svg');
    }

    .survey-form-left input {
        height: 50px;
        font-size: 12px;
    }

    .consent-line span {
        font-size: 12px;
    }

    .btn-main {
        width: 100%;
        min-width: unset;
        font-size: 16px;
        height: 50px;
        padding: 0 15px;
    }

    .question-step {
        font-size: 12px;
    }

    .question-title {
        font-size: 22px;
    }


    .option-line,
    .consent-line {
        font-size: 22px;
    }
}

@media (max-width: 900px) {

    .header-wrapper {
        flex-direction: row-reverse;
    }

    .header-catalog {
        display: none;
    }
    
    .survey-card {
        height: 805px;
    }

    .survey-form-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    
    .question-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        align-items: start;
        height: auto;
    }

    .question-options {
        justify-content: flex-start;
        height: auto;
    }

    .option-line span {
        font-size: 16px;
    }

    .option-line input[type="radio"] {
        width: 30px;
        height: 30px;
    }

    .option-line input[type="radio"]:checked::after {       
        width: 16px;
        height: 16px;
    }

    .question-actions .btn-prev {
        width: 105px;
        min-width: 105px;
        flex: 0 0 105px;
    }

    .question-actions {
        margin-top: 24px;
        justify-content: stretch;
    }

    .thanks-card h3 {
        font-size: 22px;
    }

    .thanks-card p {
        font-size: 18px;
    }
}