/*
 * Лендинг chatgtcom.ru.
 *
 * Стили перенесены один в один из дизайн-экспорта (~/Downloads/export/index.html,
 * блок <style> внутри <helmet>). Инлайновые style="" у элементов сохранены в
 * разметке; сюда вынесено то, что инлайном не выражается: keyframes,
 * медиазапросы и hover/focus-состояния (в экспорте — нестандартные атрибуты
 * style-hover / style-focus, которые браузер не понимает).
 */

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Onest', system-ui, sans-serif;
    color: #0F1420;
    background: #FFFFFF;
    -webkit-font-smoothing: antialiased;
}

a { color: #2B5CFF; text-decoration: none; }
a:hover { color: #1E44C9; }

@keyframes mqL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mqR { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.mq:hover .mqt { animation-play-state: paused; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

[data-reveal] { animation: fadeUp .55s ease .1s backwards; }

:focus-visible { outline: 2px solid #2B5CFF; outline-offset: 2px; }

.navlinks { display: flex; gap: 32px; align-items: center; }
.burger { display: none; }

@media (max-width: 900px) {
    .navlinks { display: none; }
    .burger { display: inline-flex; }
}

.vidwrap { display: grid; grid-template-columns: 1.7fr 1fr; }

@media (max-width: 960px) {
    .vidwrap { grid-template-columns: 1fr; }
}

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.span2 { grid-column: span 2; }

@media (max-width: 1024px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .bento { grid-template-columns: 1fr; }
    .span2 { grid-column: auto; }
}

.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.gal > div { display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 640px) {
    .gal { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .mqt { animation: none !important; }
    [data-reveal] { animation: none; }
}

/* --- hover/focus из style-hover / style-focus экспорта --- */

/* style-hover="background:#1E44C9;color:#fff" — основные синие кнопки */
.btn-primary:hover { background: #1E44C9; color: #fff; }

/* style-hover="background:rgba(255,255,255,0.08);color:#fff" — ссылка на тёмном блоке */
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* style-hover="opacity:0.9" — кнопка в карточке тарифа */
.btn-plan:hover { opacity: 0.9; }

/* style-hover="color:#2B5CFF" — названия моделей в бегущей строке */
.mq-item:hover { color: #2B5CFF; }

/* --- состояния, которыми в экспорте управлял рантайм билдера (sc-if) --- */

/*
 * Мобильное меню скрыто атрибутом hidden, который снимает JS. !important
 * обязателен: раскладку блока задаёт инлайновый style="display:flex" (как в
 * экспорте), а инлайн-стиль бьёт любой селектор — без !important меню было бы
 * видно всегда.
 */
.mobnav[hidden] { display: none !important; }

/*
 * land.base печатает кнопку «Наверх» (#btnScrollTop) всем брендам, а её внешний
 * вид задаёт main.min.css соседних проектов. У нас такого правила нет, и она
 * вылезала неоформленным прямоугольником в левом верхнем углу. В дизайн-экспорте
 * этого элемента не было — прячем.
 */
#btnScrollTop { display: none; }

.faq-answer[hidden] { display: none; }

.faq-chev { transition: transform 0.2s; transform: rotate(0deg); }
.faq-item.is-open .faq-chev { transform: rotate(45deg); }

/* ==========================================================================
   Модульные страницы: /reg (land.pay) и /auth/login.
   Разметка у них общая на все бренды (.auth / .auth__form / .auth__input /
   .check / .payment__*), внешний вид задаёт бренд — здесь она натянута на
   язык лендинга: Unbounded в заголовках, Onest в тексте, синий #2B5CFF,
   границы #E6E9EF, радиусы 12-14px. Значения продублированы в
   /css/brand/chatgtcom.tokens.css как var(--form-*) для общего слоя форм.
   ========================================================================== */

/*
 * Форма прижата к шапке, а не отцентрована по высоте экрана: центрирование
 * (min-height 100vh + align-items:center) отбрасывало её на середину и
 * оставляло над ней пустой экран.
 */
.page__main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(20px, 3vw, 36px) 24px clamp(48px, 7vw, 88px);
    background: #FFFFFF;
}

.auth {
    width: 100%;
    max-width: 440px;
}

.auth__form {
    background: #fff;
    border: 1px solid #E6E9EF;
    border-radius: 20px;
    padding: clamp(24px, 4vw, 36px) clamp(20px, 3.5vw, 32px);
    box-shadow: 0 24px 60px rgba(15, 20, 32, 0.06);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Общий скрипт форм переключает видимость классом active. */
.auth__form:not(.active) { display: none; }

.auth__form-head { text-align: center; margin-bottom: 2px; }

.auth__title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.2;
    margin: 0 0 8px;
    color: #0F1420;
}

.auth__description {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #5A6472;
}

.auth__field { position: relative; display: flex; flex-direction: column; gap: 6px; }

.auth__input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #E6E9EF;
    border-radius: 12px;
    padding: 13px 16px;
    font-family: inherit;
    font-size: 15px;
    color: #0F1420;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}

.auth__input::placeholder { color: #9AA3B0; }
.auth__input:focus { border-color: #2B5CFF; }
.auth__input.input-error { border-color: #E5484D; }
.auth__input.has-toggle { padding-right: 46px; }

/* Глазик показа пароля на /auth/login. Поле выше — position:relative у .auth__field. */
.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: #9AA3B0;
    cursor: pointer;
    padding: 0;
}

.password-toggle:hover { color: #2B5CFF; }

.auth__btn,
.btn.auth__btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    background: #2B5CFF;
    color: #fff;
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}

.auth__btn:hover:not(:disabled) { background: #1E44C9; color: #fff; }
.auth__btn:disabled { opacity: 0.5; cursor: not-allowed; }

.auth__switch,
.auth__note { text-align: center; font-size: 14px; color: #5A6472; }
.auth__switch-link { color: #2B5CFF; font-weight: 600; }

.auth__msg:empty { display: none; }

.auth__error-text {
    display: none;
    color: #E5484D;
    font-size: 12px;
    line-height: 1.4;
}

.text-danger { color: #E5484D; font-size: 12px; }

/* Карточка выбранного тарифа на /reg?t=… */
.plan-summary {
    background: #F5F7FA;
    border: 1px solid #E6E9EF;
    border-radius: 14px;
    padding: 14px 16px;
}

.plan-summary__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.plan-summary__name { font-size: 14px; font-weight: 600; color: #0F1420; }

.plan-summary__price {
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: #0F1420;
}

.plan-summary__note { margin-top: 6px; font-size: 12px; line-height: 1.5; color: #5A6472; }

/* Чекбоксы согласий */
.form__footer { display: flex; flex-direction: column; gap: 10px; }

.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.5;
    color: #5A6472;
    cursor: pointer;
}

.check__input {
    flex: none;
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
    accent-color: #2B5CFF;
}

/* Разметка модуля рисует бокс отдельным span'ом; нативного чекбокса достаточно. */
.check__box { display: none; }

.check__link { color: #2B5CFF; text-decoration: underline; }
.check.is-error { color: #E5484D; }
.check.is-error .check__link { color: #E5484D; }

/* Плашки безопасности и логотипы платёжных систем */
.payment__security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #5A6472;
}

.payment__logos { display: flex; justify-content: center; }
.payment__logos img { max-width: 100%; height: auto; }

@media (max-width: 480px) {
    .page__main { padding: 24px 16px; }
    .auth__title { font-size: 21px; }
}
