
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@font-face {
    font-family: 'FoglihtenNo06';
    src: url('../fonts/FoglihtenNo06.woff2') format('woff2'),
    url('../fonts/FoglihtenNo06.woff') format('woff'),
    url('../fonts/FoglihtenNo06.svg#FoglihtenNo06') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
/* Сбросы и базовые настройки */

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

html {
    -webkit-text-size-adjust: 100%;
}

body.certs-page {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    background-color: #f5f5f7;
    color: #262626;
    line-height: 1.5;
}

a {
    color: #f3a13a;
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: #e28a18;
}

/* Контейнер страницы */

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ШАПКА САЙТА */

/* ШАПКА САЙТА */

.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #ececec;
}

.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* левая часть: соцсети + ссылка на сведения */

.site-header__left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    min-width: 0;
}

/* центр: логотип */

.site-header__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 0 auto;
}

.site-header__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.site-header__logo {
    display: block;
    height: 48px;   /* подгони под свой логотип */
    width: auto;
}

/* правая часть: "Номер службы заботы" + кнопка */

.site-header__right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

/* соцсети */

.site-header__social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #888888;
}

.site-header__social-label {
    margin-right: 4px;
    font-weight: 500;
}

/* соц-иконки без «ореола» */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;      /* фиксированная ширина иконки */
    height: 24px;     /* фиксированная высота иконки */
    padding: 0;
    margin: 0;
    border-radius: 0;
    background-color: transparent;
    border: none;
    box-shadow: none;
    cursor: pointer;
}

/* размер самих svg/картинок */
.social-link img {
    display: block;
    width: 20px;      /* сама картинка чуть меньше контейнера */
    height: 20px;
}

/* без подсветки при наведении */
.social-link:hover {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

/* убираем браузерный outline по фокусу */
.social-link:focus,
.social-link:active {
    outline: none;
}

/* ссылка "Сведения об образовательной организации" */

.site-header__link {
    font-size: 12px;
    color: #666666;
}

/* блок "Номер службы заботы" */

.site-header__care {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    font-size: 12px;
    color: #333333;
}

.site-header__care-label {
    font-weight: 600;
    margin-bottom: 2px;
}

.site-header__phones {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-header__phone {
    font-size: 13px;
    color: #333333;
    text-decoration: none;
}

.site-header__phone:hover {
    color: #f3a13a;
}

/* кнопка "Личный кабинет" */

.site-header__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 22px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #f7b347, #f39c2b);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 4px 10px rgba(243, 156, 43, 0.35);
    cursor: pointer;
    white-space: nowrap;
}

.site-header__button:hover {
    filter: brightness(0.96);
}


/* соц-иконки без «ореола» */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;        /* можно оставить фиксированный размер, если нужно */
    height: auto;
    border-radius: 0;
    background-color: transparent;
    border: none;
    padding: 0;
}

/* размер самих svg/картинок */
.social-link img {
    display: block;
    width: 20px;   /* подгони под нужный размер */
    height: 20px;
}

/* без подсветки при наведении */
.social-link:hover {
    background-color: transparent;
    border: none;
}


.site-header__phones {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
}

.site-header__phone {
    color: #333333;
}

.site-header__phone:hover {
    color: #f3a13a;
}

.site-header__button {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #f7b347, #f39c2b);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 4px 10px rgba(243, 156, 43, 0.35);
    cursor: pointer;
}

.site-header__button:hover {
    filter: brightness(0.96);
}

/* Хлебные крошки */

.breadcrumbs {
    background-color: #fafafa;
    border-bottom: 1px solid #eeeeee;
}

.breadcrumbs__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px;
    font-size: 13px;
    color: #888888;
}

.breadcrumbs__link {
    color: #888888;
}

.breadcrumbs__link:hover {
    color: #555555;
}

.breadcrumbs__separator {
    margin: 0 6px;
    color: #b5b5b5;
}

.breadcrumbs__current {
    color: #555555;
    font-weight: 500;
}

/* ОСНОВНОЙ БЛОК ОПЛАТЫ */

.payment {
    flex: 1 0 auto;
    padding: 32px 16px 48px;
}

.payment-card {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 31, 53, 0.12);
    padding: 24px 32px 32px;
}

.payment-card__header {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 16px;
    margin-bottom: 24px;
    letter-spacing:4px;text-transform: uppercase;

}
.no‑ls {
    letter-spacing: normal;
}

.payment-card__title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 600;
    color: #333333;
        font-family: 'FoglihtenNo06';
}

.payment-card__subtitle {
    margin: 0;
    font-size: 14px;
    color: #777777;
}

.payment-card__note {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px dashed #eeeeee;
    font-size: 13px;
    color: #777777;
}

/* СЕТКА ФОРМЫ */

.payment-form {
    margin: 0;
}

.payment-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.payment-layout__col {
    flex: 1;
    min-width: 0;
}

.payment-layout__col--left {
    flex: 1.1;
}

.payment-layout__col--right {
    flex: 0.9;
}

/* Общие элементы формы */

.form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
    margin-bottom: 14px;
}

.form__label {
    font-size: 13px;
    font-weight: 500;
    color: #444444;
}

.form__label-required {
    color: #d9534f;
}

.form__input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.4;
    border-radius: 6px;
    border: 1px solid #d9d9de;
    background-color: #ffffff;
    color: #262626;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form__input::placeholder {
    color: #b5b5c0;
}

.form__input:focus {
    border-color: #f3a13a;
    box-shadow: 0 0 0 2px rgba(243, 161, 58, 0.18);
}

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

.form__hint {
    margin: 0;
    font-size: 12px;
    color: #999999;
}

/* Блоки внутри формы */

.form__block {
    margin: 16px 0;
    padding: 14px 14px 12px;
    border-radius: 10px;
    border: 1px solid #f1f1f1;
    background-color: #fafafa;
}

.form__block-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #444444;
}

.form__block-title--right {
    text-align: right;
}

/* Радиокнопки */

.form__field--vertical {
    gap: 8px;
}

.radio {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.radio__input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.radio__label {
    color: #333333;
}

/* Чекбоксы */

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.checkbox__input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox__label {
    color: #555555;
}

.form__agreements {
    margin-top: 16px;
}

.form__agreements--vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form__agreements-item {
    background-color: #fafafa;
    border-radius: 8px;
    padding: 6px 8px;
}

/* Опции (для рассрочки и валюты) */

.form__options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Превью сертификата */

.form__block--preview {
    background-color: #fffdf8;
    border-color: #f8e0b9;
}

.preview-card {
    border-radius: 10px;
    border: 1px dashed #f1c27d;
    background: linear-gradient(135deg, #fff7e9, #fffdf8);
    padding: 10px 12px;
    font-size: 13px;
    color: #5a4b35;
}


.preview-card__line {
    margin-bottom: 4px;
}

.preview-card__line--title {
    font-weight: 600;
    margin-bottom: 6px;
}

.preview-card__hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #8a7656;
}

/* ПРАВАЯ КОЛОНКА */

.form__block--payment-methods {
    background-color: #fbfbfb;
}

/* Кнопки */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid #d7d7dd;
    background-color: #ffffff;
    color: #444444;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease,
        color 0.15s ease;
    white-space: nowrap;
}

.button--primary {
    border-color: transparent;
    background: linear-gradient(135deg, #f7b347, #f39c2b);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(243, 156, 43, 0.35);
}

.button--primary:hover {
    filter: brightness(0.96);
}

.button--ghost {
    background-color: transparent;
}

.button--ghost:hover {
    background-color: #f5f5f7;
}

.form__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 20px;
}

.form__footer--right {
    justify-content: flex-end;
}

/* Статус */

.status {
    min-height: 20px;
    font-size: 13px;
    color: #666666;
}

.status--error {
    color: #c0392b; /* красный для ошибок */
}

.status--success {
    color: #2e7d32; /* зелёный для успеха */
}

.status--info {
    color: #1e88e5; /* синий для инфо */
}


/* Информация о заказе */

.info-meta {
    margin-top: 8px;
    font-size: 12px;
    color: #777777;
}

.info-meta__code {
    font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
        monospace;
    font-size: 12px;
    background-color: #f5f5f5;
    padding: 2px 4px;
    border-radius: 4px;
}

/* ФУТЕР */

.site-footer {
    border-top: 1px solid #e8e8e8;
    background-color: #ffffff;
    margin-top: 16px;
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px 24px;
    display: flex;
    gap: 24px;
    font-size: 12px;
    color: #777777;
}

.site-footer__left,
.site-footer__center,
.site-footer__right {
    flex: 1;
}

.site-footer__center {
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.05em;
}

.site-footer__motto {
    font-size: 2.3vh;
    text-transform: uppercase;
    font-family: 'FoglihtenNo06';
}

.site-footer__right {
    text-align: right;
}

.site-footer__right a {
    color: #555555;
}



.site-footer__right a:hover {
    color: #f3a13a;
}
    .preview-frame-wrapper {
        position: relative;
        width: 100%;
        max-width: 1020px;          /* ширина превью в колонке */
        aspect-ratio: 8 / 5;       /* примерно 800x500 */
        margin-top: 8px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
        background: #111;          /* фон, если фрейм не загрузился */
    }
        .preview-frame-wrapper-mobile {
        position: relative;
        width: 100%;
        max-width: 1020px;          /* ширина превью в колонке */
        aspect-ratio: 8 / 6;       /* примерно 800x500 */
        margin-top: 8px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
        background: #111;          /* фон, если фрейм не загрузился */
    }


    /* сам iframe растягиваем на весь контейнер */
    .preview-frame {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }



    /* чуть центрируем всё внутри блока превью */
    .form__block--preview {
        display: flex;
        flex-direction: column;
        align-items: center;
    }


    .hide-on-mobile {
        display: block;
    }

    .hide-on-desk {
        display: none;
    }
    
.button--disabled,
.button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.form__hint--agreements {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: #a94442; /* спокойный «тёплый» красный */
}


/* АДАПТИВНОСТЬ */

@media (max-width: 1024px) {
    .site-header__inner {
        align-items: flex-start;
        flex-wrap: wrap;
        row-gap: 12px;
    }

    .site-header__center {
        order: -1;
        width: 100%;
        align-items: center;
    }

    .site-header__left,
    .site-header__right {
        width: 100%;
        justify-content: space-between;
    }

    .site-header__care {
    display: flex;
    flex-direction: column;
    align-items: flex-start;  /* текст выровнен влево внутри блока */
    text-align: left;
    font-size: 12px;
    color: #333333;
    }

    .site-header__care-label {
        font-weight: 600;
        margin-bottom: 2px;
    }

    .site-header__phones {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .site-header__phone {
        font-size: 13px;
        color: #333333;
        text-decoration: none;
    }

    .site-header__phone:hover {
        color: #f3a13a;
    }


    .payment-card {
        padding: 20px 18px 24px;
    }

    .payment-layout {
        flex-direction: column;
        gap: 20px;
    }

    .form__footer--right {
        justify-content: flex-start;
    }

    .site-footer__inner {
        flex-direction: column;
        text-align: left;
    }

    .site-footer__center {
        text-align: left;
    }

    .site-footer__right {
        text-align: left;
    }
    .preview-frame-wrapper {
        position: relative;
        width: 100%;
        max-width: 1020px;          /* ширина превью в колонке */
        aspect-ratio: 8 / 5;       /* примерно 800x500 */
        margin-top: 8px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
        background: #111;          /* фон, если фрейм не загрузился */
    }

    /* сам iframe растягиваем на весь контейнер */
    .preview-frame {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

    /* чуть центрируем всё внутри блока превью */
    .form__block--preview {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

}

@media (max-width: 640px) {
    .site-header__inner {
        padding: 10px 12px;
    }

    .breadcrumbs__inner {
        padding: 8px 12px;
    }

    .payment {
        padding: 20px 8px 32px;
    }

    .payment-card {
        padding: 18px 14px 22px;
        border-radius: 12px;
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    }

    .payment-card__title {
        font-size: 18px;
        font-family: 'FoglihtenNo06';
    }

    .form__row {
        flex-direction: column;
    }

    .button {
        width: 100%;
        justify-content: center;
    }

    .form__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .form__footer--right {
        align-items: stretch;
    }
    /* Встроенное превью сертификата */
    .preview-frame-wrapper {
        max-width: 100%;
        aspect-ratio: 4 / 3;
        border-radius: 10px;
    }

    .hide-on-mobile {
        display: none;
    }

    .hide-on-desk {
        display: block;
    }


}
