/* ============================================================
   MyTravelClub — updates.css
   ОБНОВЛЕНИЕ 2026-08 · «Выбери подписку» + окна Travorium / Whieda
   ------------------------------------------------------------
   Здесь ТОЛЬКО новые блоки. style.css не изменялся.
   Все цвета/радиусы/отступы берутся из :root в style.css.
   Разметка, которая это использует, помечена в index.html
   комментариями <!-- UPD-2026-08 ... -->
   ============================================================ */

/* ---- 1. Широкая модалка (базовая .modal = 640px, нам мало) ---- */
.modal--wide { max-width: 920px; padding: 0; overflow: hidden; }
.modal--wide .modal__close { background: rgba(255,255,255,.18); color: #fff; z-index: 3; }
.modal--wide .modal__close:hover { background: rgba(255,255,255,.32); }
.modal__scroll { max-height: 90vh; overflow-y: auto; }
.modal__section { padding: var(--s5); }
.modal__section + .modal__section { border-top: 1px solid var(--line); }

/* ---- 2. Шапка окна подписки (бренд-полоса) ---- */
.subhead { position: relative; padding: var(--s5) var(--s5) var(--s4); color: #fff; }
.subhead--trv { background: var(--grad-dark); }
.subhead--whi { background: linear-gradient(160deg, #0C4A2E 0%, #146B41 100%); }
.subhead__kicker { font-size: 15px; opacity: .85; margin-bottom: 4px; }
.subhead__title { font-size: 38px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.subhead__title span { color: var(--gold); }
.subhead--whi .subhead__title span { color: #7BD9A5; }
.subhead__rule { width: 120px; height: 2px; margin: var(--s2) 0 var(--s3); background: currentColor; opacity: .35; }
.subhead__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* ---- 3. Сравнительная таблица подписок ---- */
.cmp-wrap { overflow-x: auto; border-radius: var(--r-card); border: 1px solid var(--line); }
.cmp { width: 100%; min-width: 720px; border-collapse: collapse; background: #fff; }
.cmp th, .cmp td { padding: var(--s3) var(--s3); text-align: center; vertical-align: middle; }
.cmp thead th { font-size: 17px; font-weight: 800; color: #fff; }
.cmp thead th:first-child { background: var(--navy); font-size: 15px; line-height: 20px; }
.cmp thead th.cmp__brand--trv { background: var(--navy-2); }
.cmp thead th.cmp__brand--whi { background: #146B41; }
.cmp__brand-inner { display: inline-flex; align-items: center; gap: 10px; justify-content: center; }
.cmp__logo { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: inline-flex;
             align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.cmp tbody tr + tr { border-top: 1px solid var(--line); }
.cmp tbody tr:nth-child(even) { background: var(--bg-soft); }
.cmp__row-label { text-align: left; font-size: 15px; font-weight: 600; color: var(--ink); }
.cmp__row-label-inner { display: flex; align-items: center; gap: 12px; }
.cmp__row-icon { font-size: 20px; line-height: 1; flex-shrink: 0; }
.cmp__val { font-size: 17px; font-weight: 700; line-height: 22px; color: var(--navy); }
.cmp__val--whi { color: #146B41; }
.cmp__val small { display: block; font-size: 14px; font-weight: 600; color: var(--muted); }

/* ---- 4. «Что получает каждый участник» ---- */
.perks { margin-top: var(--s3); background: var(--t-violet); border-radius: var(--r-card); padding: var(--s4); }
.perks__title { display: flex; align-items: center; justify-content: center; gap: 10px;
                font-size: 21px; font-weight: 800; color: var(--violet); margin-bottom: var(--s3); }
.perks__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px var(--s4);
               list-style: none; margin: 0 0 var(--s4); padding: 0; }
.perks__item { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 21px; color: var(--ink); }
.perks__check { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
                background: var(--violet); color: #fff; font-size: 12px;
                display: inline-flex; align-items: center; justify-content: center; }
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.btn--whieda { background: #146B41; border-color: #146B41; color: #fff; }
.btn--whieda:hover { background: #0C4A2E; border-color: #0C4A2E; }

/* ---- 5. Реферальная ссылка с копированием ---- */
.reflink { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.reflink__copy { flex-shrink: 0; width: 30px; height: 30px; border-radius: var(--r-sm);
                 background: var(--bg-soft); border: 1px solid var(--line);
                 display: inline-flex; align-items: center; justify-content: center;
                 font-size: 14px; cursor: pointer; transition: background .2s var(--ease); }
.reflink__copy:hover { background: var(--line); }
.reflink__copy.is-copied { background: var(--t-green); border-color: var(--green); }

/* ---- 6. Статус «Я в пути!» ---- */
.badge--onway { background: var(--t-gold); color: var(--gold-d); }

/* ---- 7. Регистрация по прямой реферальной ссылке ---- */
.direct { margin-top: var(--s3); background: #fff; border: 1px solid var(--line);
          border-radius: var(--r-card); padding: var(--s3) var(--s4); }
.direct__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: var(--s2); }
.direct__title { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.direct__text { font-size: 14px; line-height: 20px; color: var(--muted); }
.direct__row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }

/* ---- 8. Адаптив ---- */
@media (max-width: 860px) {
  .subhead__title { font-size: 30px; }
  .perks__list { grid-template-columns: 1fr; }
  .choose { grid-template-columns: 1fr; }
  .direct__row { grid-template-columns: 1fr; }
  .modal__section { padding: var(--s4) var(--s3); }
  .subhead { padding: var(--s4) var(--s3) var(--s3); }
  .reflink { justify-content: flex-start; }
}

/* ---- 9. Якоря: чтобы липкая шапка не перекрывала заголовок секции ---- */
.scroll-anchor { scroll-margin-top: 96px; }

/* ---- 10. Блок набора личных партнёров внутри окна ---- */
.subslot { border: 2px solid var(--gold); border-radius: var(--r-card); padding: var(--s4); background: #fff; }
.subslot--whi { border-color: #146B41; }
.subslot__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: var(--s3); }
.subslot__title { font-size: 21px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.subslot--whi .subslot__title { color: #0C4A2E; }
.subslot__text { font-size: 14px; line-height: 20px; color: var(--muted); }
.subslot__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--s3); align-items: start; }
.subslot__fields { display: flex; flex-direction: column; gap: 14px; }
.subslot__fields .q-slot-field:last-child { border-bottom: 0; padding-bottom: 0; }
.subslot__cta { margin-top: var(--s3); }
@media (max-width: 860px) {
  .subslot { padding: var(--s3); }
  .subslot__grid { grid-template-columns: 1fr; }
}

/* Whieda: партнёров двое, а базовая .q-slot-steps рассчитана на трёх */
.subslot--whi .q-slot-steps { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) {
  .subslot--whi .q-slot-steps { grid-template-columns: 1fr; }
}

/* ============================================================
   11. ПОЧИНКА .reveal
   style.css:1058 задаёт .reveal { opacity: 0 } и рассчитывает,
   что main.js навесит класс .is-in. На сохранённой странице
   main.js и GSAP вырезаны, поэтому весь контент с этим классом
   был невидимым. Анимацию не воскрешаем: она была бы ещё одной
   зависимостью от JS. Просто делаем блоки видимыми всегда.
   ============================================================ */
.reveal { opacity: 1 !important; transform: none !important; }

/* Заголовки карточек внутри окна: базовый line-height страницы слишком крупный */
.modal--wide .fcard__title { line-height: 1.3; }

/* ============================================================
   12. Видеоблок первого экрана
   Стоит в .hero__aside под стеклянной карточкой со статистикой.
   ============================================================ */
.hero-video { margin-top: var(--s3); padding: var(--s3); cursor: pointer;
              background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
              border-radius: var(--r-card);
              max-width: 480px; margin-left: auto; margin-right: auto;
              transition: border-color .25s var(--ease), background .25s var(--ease); display: block;}
.hero-video:hover,
.hero-video:focus-visible { background: rgba(255,255,255,.13); border-color: var(--gold); outline: none; }
.hero-video__title { font-size: 19px; font-weight: 700; line-height: 1.35; color: #fff; margin-bottom: var(--s2); }
.hero-video__frame { position: relative; aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden;
                     background: var(--grad-brand); display: flex; align-items: center; justify-content: center; }
.hero-video__frame::after { content: ''; position: absolute; inset: 0;
                            background: var(--mtc-video-image) center/cover; opacity: .8; }
.hero-video__play { position: relative; z-index: 1; width: 74px; height: 74px; border-radius: 50%;
                    display: inline-flex; align-items: center; justify-content: center;
                    font-size: 26px; color: #fff; padding-left: 5px;
                    background: rgba(14,42,71,.55); border: 3px solid #fff;
                    transition: transform .25s var(--ease), background .25s var(--ease); }
.hero-video:hover .hero-video__play { transform: scale(1.08); background: var(--gold); color: var(--navy); }
.hero-video__bar { display: flex; align-items: center; gap: 12px; margin-top: var(--s2); }
.hero-video__time { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.8); flex-shrink: 0; }
.hero-video__track { position: relative; flex: 1; height: 4px; border-radius: var(--r-pill);
                     background: rgba(255,255,255,.28); }
.hero-video__dot { position: absolute; left: 0; top: 50%; width: 12px; height: 12px;
                   margin-top: -6px; border-radius: 50%; background: #fff; }

@media (max-width: 860px) {
  .hero-video__title { font-size: 17px; }
  .hero-video__play { width: 58px; height: 58px; font-size: 20px; }
}

/* ============================================================
   13. Hero в две колонки: текст слева, видео справа (как в макете)
   style.css:605 задаёт .hero__grid { grid-template-columns: 1fr },
   то есть одну колонку. Возвращаем две — только на десктопе.
   На ≤1024px style.css сам схлопывает сетку в одну колонку,
   и видео уезжает под текст. Это ожидаемо.
   ============================================================ */
@media (min-width: 1025px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; align-items: center; }
  .hero-video { margin-top: 0; max-width: none; margin-left: 0; margin-right: 0; }
}

.q-slot-field__value.reflink a {
    max-width: 150px;
}