@font-face {
    font-family: 'TTLivretDisplay';
    src: url('../fonts/TT_Livret_Display_Regular.woff2') format('woff2'),
    url('../fonts/TT_Livret_Display_Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'TTNormsPro';
    src: url('../fonts/TT_Norms_Pro_Regular.woff2') format('woff2'),
    url('../fonts/TT_Norms_Pro_Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-text: #1a1a1a;
    --color-muted: #8c8c8c;
    --color-border: #1a1a1a;
    --color-field-border: #d9d9d9;
    --color-disabled: #c4c4c4;

    --font-title: 'TTLivretDisplay', Georgia, serif;
    --font-text: TTNormsPro, Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.4;
    color: var(--color-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
    font: inherit;
    color: inherit;
}

a {
    color: inherit;
}

.header {
    display: flex;
    align-items: center;
    height: 88px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    background-color: transparent;
}

.logo {
    display: block;
    width: 160px;
}

.logo img {
    width: 100%;
    height: auto;
}

/* ---------- Обертка ---------- */

.nps {
    position: relative;
    padding: 27px 20px 160px;
    margin: 0 auto 40px;
}

.container {
    margin: 43px auto 0;
    max-width: 954px;
}

.paddingLeft {
    padding-left: 121px;
}

/* ---------- Заголовок ---------- */

.title {
    display: block;
    margin: 0 0 56px;
    font-family: var(--font-title);
    font-weight: 400;
    font-size: 36px;
    line-height: 40px;
}

/* ---------- Вопросы ---------- */

.questions {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.question {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 58px;
}

.number {
    font-size: 24px;
    line-height: 28px;
}

.content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.question-title {
    margin: 0 0 17px;
    font-size: 24px;
    line-height: 28px;
    font-weight: 400;
}

.question-title span {
    display: none;
}

.description {
    margin: 0 0 11px;
    font-size: 12px;
    line-height: 16px;
    color: var(--color-muted);
}

/* ---------- Табы (шкала оценок) ---------- */

.tabs {
    display: grid;
    grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
    gap: 4px;
}

.tab {
    height: 48px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.tab:hover {
    background: #474747;
    color: #fff;
}

.tab.is-selected {
    background: var(--color-border);
    color: #fff;
}

.tab:focus-visible {
    outline: 2px solid var(--color-border);
    outline-offset: 2px;
}

/* ---------- Комментарий и поля ввода ---------- */

.comment {
    display: flex;
    flex-direction: column;
    margin-top: 17px;
}

.comment-label {
    margin-bottom: 14px;
    font-size: 18px;
    line-height: 24px;
}

.input,
.textarea {
    width: 100%;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--color-field-border);
    border-radius: 0;
    font-size: 16px;
}

.input {
    height: 48px;
    padding: 0 16px;
}

.textarea {
    min-height: 48px;
    resize: vertical;
}

.textarea--large {
    height: 192px;
}

.input::placeholder,
.textarea::placeholder {
    color: var(--color-muted);
    text-transform: uppercase;
}

.input:focus,
.textarea:focus {
    outline: none;
    border-color: var(--color-border);
}

/* ---------- Низ формы ---------- */

.bottom {
    margin-top: 40px;
}

.checkbox {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox__box {
    position: relative;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 1px solid var(--color-muted);
}

.checkbox input:checked + .checkbox__box {
    background-color: var(--color-border);
}

.checkbox input:checked + .checkbox__box::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 7px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -70%) rotate(45deg);
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    background: var(--color-border);
}

.checkbox input:focus-visible + .checkbox__box {
    outline: 2px solid var(--color-border);
    outline-offset: 2px;
}

.checkbox__text {
    font-size: 12px;
    line-height: 16px;
    color: var(--color-muted);
}

.checkbox__text a {
    text-decoration: underline;
}

.submit-button {
    display: block;
    width: 100%;
    height: 48px;
    margin-top: 32px;
    padding: 0;
    background: var(--color-border);
    border: 0;
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
}

.submit-button:disabled {
    background: var(--color-disabled);
    cursor: default;
}

.submit-button.is-loading {
    opacity: 0.7;
    cursor: wait;
}

/* ---------- Кнопка-ссылка в тексте чекбокса ---------- */

.link-button {
    display: inline;
    padding: 0;
    background: none;
    border: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

/* ---------- Статус отправки ---------- */

.status {
    max-width: 708px;
    margin: 165px auto 0;

    @media (max-width: 1600px) {
        margin: 130px auto 0;
        max-width: 790px;
    }

    @media (max-width: 1280px) {
        margin: 176px auto 0;
        max-width: 630px;
    }

    @media (max-width: 1024px) {
        max-width: 100%;
        margin: 160px auto 0;
    }

    @media (max-width: 768px) {
        margin: 150px auto 0;
    }
}

.status-title {
    font-size: 54px;
    line-height: 64px;
    text-transform: uppercase;
    font-family: 'TTLivretDisplay', serif;
    font-weight: 400;
    margin-bottom: 24px;

    @media (max-width: 1280px) {
        font-size: 40px;
        line-height: 48px;
    }

    @media (max-width: 768px) {
        font-size: 24px;
        line-height: 28px;
    }
}

.status-text {
    font-size: 24px;
    line-height: 28px;
    margin-bottom: 56px;

    @media (max-width: 1280px) {
        font-size: 18px;
        line-height: 24px;
    }
}

.status-button {
    height: 48px;
    padding: 0 32px;
    background: var(--color-border);
    border: 0;
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
}

/* ---------- Модальное окно ---------- */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 608px;
    max-height: 90vh;
    padding: 24px 24px 0;
    background: #fff;
}

.modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.modal__title {
    margin: 0;
    font-size: 20px;
    line-height: 26px;
    font-weight: 400;
}

.modal__close {
    position: absolute;
    right: 0;
    top: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--color-border);
    border: 0;
    color: #fff;
    cursor: pointer;
}

.modal__body {
    overflow-y: auto;
    padding-right: 12px;
    padding-bottom: 24px;
    font-size: 14px;
    line-height: 18px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}

.modal__body h3 {
    font-weight: 700;
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 10px;
}

.modal__body ul {
    margin-top: 0;
    margin-bottom: 20px;
    padding-left: 16px;
}

.modal__body p {
    margin: 0 0 20px;
}

.modal__body p:last-child {
    margin-bottom: 0;
}

.is-modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .modal {
        padding: 16px;
    }

    .modal__dialog {
        padding: 16px 16px 0;
    }

    .modal__title {
        font-size: 18px;
        line-height: 24px;
    }

    .modal__body {
        padding-right: 8px;
        font-size: 14px;
        line-height: 20px;
    }
}

.policy section {
    margin-bottom: 30px;
}

.policy h3 {
    margin: 32px 0 16px;
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
}

.policy h3:first-child {
    margin-top: 0;
}

.policy h4 {
    margin: 24px 0 8px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
}

.policy ol,
.policy ul {
    margin: 0 0 16px;
    padding-left: 24px;
}

.policy li + li {
    margin-top: 4px;
}

.clause {
    display: flex;
    gap: 8px;
}

.clause__num {
    flex-shrink: 0;
}

.requisites dt {
    margin-top: 12px;
    color: var(--color-muted);
    font-size: 14px;
}

.requisites dd {
    margin: 4px 0 0;
}

/* ---------- Адаптив ---------- */

@media (max-width: 1600px) {
    .nps {
        padding-bottom: 120px;
        margin-bottom: 25px;
    }

    .container {
        max-width: 792px;
    }

    .paddingLeft,
    .status {
        padding-left: 0;
    }

    .question {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .number {
        display: none;
    }

    .question-title {
        margin: 0 0 25px;
    }

    .question-title span {
        display: inline-block;
    }

    .bottom {
        margin-top: 15px;
    }
}

@media (max-width: 1280px) {
    .nps {
        padding-bottom: 94px;
        margin-bottom: 10px;
    }

    .container {
        max-width: 704px;
        margin-top: 32px;
    }

    .title {
        margin-bottom: 40px;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        margin-top: 42px;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 24px;
        line-height: 28px;
    }

    .container {
        margin-top: 20px;
    }

    .questions {
        gap: 30px;
    }

    .question-title {
        margin-bottom: 15px;
        font-size: 20px;
        line-height: 26px;
    }

    .tab {
        height: 44px;
        font-size: 14px;
    }

    .comment-label {
        font-size: 16px;
        line-height: 22px;
    }

    .status-title {
        font-size: 24px;
        line-height: 28px;
    }
}