/* ============================================================
   Оформление «турагентство»: светлое (белый, голубой, жёлтый) и тёмное. Подключается ПОСЛЕ style.css на всех страницах.
   Темы: светлая — data-theme="light"; тёмная — без атрибута (графит, как раньше);
   серая тёмная в стиле Claude — тёмная тема при <html data-palette="claude"> (используется в демо).
   Все цвета новых блоков берутся из переменных --tv-*, поэтому блоки одинаково работают во всех темах.
   ============================================================ */

/* ---------- палитры ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff; --panel: #f2f7fc; --line: #cbd3dc; --line-2: #b0bcc9;
  --white: #0d2f5c; --text-2: #51606f; --muted: #6b7a89;
  --accent: #1f7fd6; --accent-text: #1566b4;
  --accent-grad: linear-gradient(180deg, #2b8fe6 0%, #1f7fd6 100%);
  --accent-glow: rgba(31, 127, 214, 0.28); --accent-haze: rgba(31, 127, 214, 0.09);
  --chrome: linear-gradient(135deg, #0d2f5c 0%, #1f7fd6 100%);
  --chrome-btn: linear-gradient(180deg, #ffd23d 0%, #ffc61a 100%);
  --card: #ffffff; --header-bg: rgba(255, 255, 255, 0.97); --input-bg: #ffffff; --ghost-line: #9fb4c9;
  --tv-surface: #ffffff; --tv-ink: #1d2b3a; --tv-ink2: #51606f; --tv-soft: #e8f3fc;
  --tv-navy: #0d2f5c; --tv-navy2: #1566b4; --tv-navy-ink: #cfe0f3; --tv-foot-ink: #b9cde4;
  --tv-shadow: rgba(13, 47, 92, 0.12); --tv-btn-ink: #3b2b00; --tv-open: #fbfdff; --tv-open-line: #b9d8f3;
  --tv-notice-bg: #fff3d1; --tv-notice-ink: #6b4a00; --tv-notice-line: #f1dd8a;
}
:root:not([data-theme="light"]) {
  color-scheme: dark;
  --tv-surface: #1e2024; --tv-ink: #f3f4f6; --tv-ink2: #c9ccd2; --tv-soft: #272a30;
  --tv-navy: #101216; --tv-navy2: #1a2230; --tv-navy-ink: #c9ccd2; --tv-foot-ink: #9aa0a8;
  --tv-shadow: rgba(0, 0, 0, 0.45); --tv-btn-ink: #16171a; --tv-open: #22252a; --tv-open-line: #4a4e55;
  --tv-notice-bg: #3a331f; --tv-notice-ink: #f2dca0; --tv-notice-line: #5a4d22;
}
/* Серая тёмная тема как в приложении Claude: тёплый серый, светлый кремовый текст, акцент цвета глины. */
:root[data-palette="claude"]:not([data-theme="light"]) {
  --bg: #262624; --graphite: #262624; --panel: #1f1e1d; --card: #30302e; --header-bg: rgba(38, 38, 36, 0.96);
  --line: #3d3d3a; --line-2: #55544f; --white: #f5f4ee; --text-2: #c9c7bd; --muted: #9a988e;
  --accent: #d97757; --accent-text: #e8a08a; --on-accent: #ffffff;
  --accent-grad: linear-gradient(180deg, #e0805f 0%, #c96442 100%);
  --accent-glow: rgba(217, 119, 87, 0.28); --accent-haze: rgba(217, 119, 87, 0.12);
  --chrome: linear-gradient(135deg, #f5f4ee 0%, #c9c7bd 100%);
  --chrome-btn: linear-gradient(180deg, #e0805f 0%, #c96442 100%);
  --hero-glow: #30302e; --input-bg: #1f1e1d; --ghost-line: #55544f; --check: #e8a08a; --shadow: rgba(0, 0, 0, 0.45);
  --tv-surface: #30302e; --tv-ink: #f5f4ee; --tv-ink2: #c9c7bd; --tv-soft: #3a3937;
  --tv-navy: #1f1e1d; --tv-navy2: #46382f; --tv-navy-ink: #c9c7bd; --tv-foot-ink: #a3a199;
  --tv-shadow: rgba(0, 0, 0, 0.4); --tv-btn-ink: #ffffff; --tv-open: #34332f; --tv-open-line: #55544f;
  --tv-notice-bg: #3b3426; --tv-notice-ink: #f1dca3; --tv-notice-line: #5a4d2a;
}

/* ---------- общая типографика и формы ---------- */
:root { --f-display: "Golos Text", "Segoe UI", Roboto, Arial, sans-serif; }
body { font-size: 16px; }
.display, .h2, .h3, .logo, .visa__title, .visa__dv, .steps__n {
  font-family: var(--f-display); font-style: normal; text-transform: none; font-weight: 800; letter-spacing: 0;
}
.h2 { margin: 0 0 30px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; }
.h3 { font-size: 20px; line-height: 1.25; font-weight: 700; }
.eyebrow { font-family: var(--f-body); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent-text); margin-bottom: 8px; }
.eyebrow::before { display: none; }
.mono { font-family: var(--f-body); letter-spacing: 0.04em; font-size: 13px; font-weight: 600; }
.lead { font-size: 18px; }
.chrome { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--white); }
.section { padding: 72px 0; border-top: 0; }
.card { border-radius: 12px; border: 1px solid var(--line); background: var(--tv-surface); box-shadow: 0 2px 10px var(--tv-shadow); }

/* кнопки: круглые */
.btn { border-radius: 999px; min-height: 48px; padding: 0 26px; }
.btn--sm { min-height: 42px; padding: 0 20px; }
.btn--chrome { background: var(--chrome-btn); text-shadow: none; }
:root[data-theme="light"] .btn--chrome, :root[data-theme="light"] .btn--chrome:hover,
:root[data-palette="claude"]:not([data-theme="light"]) .btn--chrome, :root[data-palette="claude"]:not([data-theme="light"]) .btn--chrome:hover { color: var(--tv-btn-ink); }
:root[data-theme="light"] .btn--chrome { box-shadow: 0 4px 12px rgba(240, 180, 0, 0.35); }
:root[data-theme="light"] .btn--chrome:hover { background: #f0b400; filter: none; }
:root[data-palette="claude"]:not([data-theme="light"]) .btn--chrome { box-shadow: 0 4px 14px rgba(217, 119, 87, 0.3); }
.btn--accent { text-shadow: none; }

/* ---------- шапка и логотип ---------- */
.tv-topbar { background: var(--tv-navy); color: var(--tv-navy-ink); font-size: 14px; }
.tv-topbar__row { display: flex; align-items: center; gap: 22px; min-height: 40px; }
.tv-topbar__item { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.tv-topbar__item svg { width: 16px; height: 16px; fill: #ffc61a; flex: none; }
.tv-topbar__item b { color: #fff; font-weight: 600; }
.tv-topbar__sp { flex: 1; }
a.tv-topbar__item:hover { color: #fff; }
.tv-topbar__item[hidden] { display: none; }
.header { background: var(--header-bg); border-bottom: 0; box-shadow: 0 1px 0 var(--line), 0 6px 18px var(--tv-shadow); }
.header__row { flex-wrap: nowrap; gap: 24px; min-height: 74px; padding-top: 8px; padding-bottom: 8px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; color: var(--white); padding: 0; }
.logo::before { content: ""; width: 40px; height: 40px; flex: none; background: url("../img/logo.svg") center / contain no-repeat; }
.logo:hover { color: var(--white); }
.nav { margin-left: auto; gap: 2px 6px; flex-wrap: nowrap; }
.nav a { padding: 10px 14px; border-radius: 8px; font-weight: 500; color: var(--tv-ink); }
.nav a:hover { background: var(--tv-soft); color: var(--accent-text); }
.header__end { flex: none; display: flex; align-items: center; gap: 10px; }

/* ---------- первый экран ---------- */
.tv-hero { position: relative; color: #fff; padding: 72px 0 0; }
.tv-hero__bg { position: absolute; inset: 0 0 60px; background: linear-gradient(100deg, rgba(8, 24, 48, 0.88) 0%, rgba(8, 24, 48, 0.6) 45%, rgba(8, 24, 48, 0.15) 100%), var(--tv-hero-img, url(../img/photo/hero.jpg)) center 40% / cover; }
.tv-hero > .wrap { position: relative; }
.tv-hero__in { padding-bottom: 56px; }
.tv-hero__tag { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(4px); font-size: 14px; font-weight: 600; }
.tv-hero__h1 { margin: 0; color: #fff; font-size: clamp(30px, 4.6vw, 54px); font-weight: 800; line-height: 1.12; max-width: 780px; letter-spacing: -0.01em; }
.tv-hero__lead { margin: 18px 0 0; max-width: 600px; font-size: 18px; color: #e3eefb; }
.tv-hero__bullets { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 24px; font-weight: 500; }
.tv-hero__bullets span { display: inline-flex; align-items: center; gap: 9px; }
.tv-hero__bullets i { width: 20px; height: 20px; border-radius: 50%; background: #2fb344; position: relative; flex: none; }
.tv-hero__bullets i::after { content: ""; position: absolute; left: 6.5px; top: 3.5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }
.tv-finder { position: relative; z-index: 2; margin-bottom: -48px; background: var(--tv-surface); color: var(--tv-ink); border-radius: 16px; box-shadow: 0 10px 30px var(--tv-shadow); }
.tv-finder__tabs { display: flex; gap: 4px; padding: 10px 10px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tv-finder__tabs::-webkit-scrollbar { display: none; }
.tv-finder__tabs button { padding: 12px 20px; border: 0; background: none; font: 600 15px/1 var(--f-body); color: var(--tv-ink2); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tv-finder__tabs button:hover { color: var(--accent-text); }
.tv-finder__tabs button.is-on { color: var(--accent-text); border-bottom-color: var(--accent); }
.tv-finder__body { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; padding: 22px 22px 24px; }
.tv-finder__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tv-finder__grid[hidden] { display: none; }
.tv-finder label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--tv-ink2); }
.tv-finder input, .tv-finder select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--input-bg, var(--tv-surface)); color: var(--tv-ink); font: 500 15px/1.3 var(--f-body); }
:root[data-theme="light"] .tv-finder input, :root[data-theme="light"] .tv-finder select { background: #fff; }
.tv-finder input:focus, .tv-finder select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-haze); }
.tv-finder__go { min-width: 190px; min-height: 52px; }
.tv-hero + .section, #why { padding-top: 120px; }

/* Первый экран визового агентства: фото с паспортом и анкетой вместо курорта */
.tv-hero--visa .tv-hero__bg { --tv-hero-img: url(../img/photo/visa.webp); }

/* ---------- направления ---------- */
.tv-dest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tv-dest__card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--tv-navy); box-shadow: 0 2px 8px var(--tv-shadow); }
.tv-dest__card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.tv-dest__card:hover img { transform: scale(1.06); }
.tv-dest__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(6, 18, 36, 0.82) 100%); }
.tv-dest__label { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 6px 14px; border-radius: 999px; background: #ffc61a; color: #3b2b00; font: 800 14px/1.2 var(--f-body); }
.tv-dest__info { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; color: #fff; display: grid; gap: 2px; }
.tv-dest__info b { font: 700 19px/1.25 var(--f-body); }
.tv-dest__info small { font-size: 14px; color: #d6e6f8; }

/* ---------- услуги ---------- */
.tv-svc { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.tv-svc__card { flex: 1 1 300px; max-width: 366px; display: flex; flex-direction: column; background: var(--tv-surface); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px var(--tv-shadow); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.tv-svc__card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px var(--tv-shadow); }
.tv-svc__card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.tv-svc__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.tv-svc__body h3 { margin: 0; font-size: 20px; font-weight: 700; color: var(--white); }
.tv-svc__body p { margin: 0; color: var(--text-2); font-size: 15px; }
.tv-svc__more { margin-top: auto; padding-top: 6px; color: var(--accent-text); font-weight: 700; font-size: 15px; }
.tv-svc__more::after { content: " →"; }

/* ---------- призыв ---------- */
.tv-cta { background: linear-gradient(100deg, var(--tv-navy) 0%, var(--tv-navy2) 100%); color: #fff; padding: 46px 0; }
.tv-cta__row { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.tv-cta h2 { margin: 0; color: #fff; font-size: clamp(22px, 3vw, 32px); font-weight: 800; }
.tv-cta p { margin: 8px 0 0; color: #cfe2f6; max-width: 640px; }

/* ---------- этапы, вопросы, форма ---------- */
.steps li { background: var(--tv-surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px 22px; }
.steps__n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--tv-soft); color: var(--accent-text); font-size: 20px; padding: 0; margin-bottom: 6px; -webkit-text-fill-color: currentColor; }
.steps strong { color: var(--white); font-size: 19px; }
.faq details { border-radius: 10px; box-shadow: none; }
.faq details[open] { border-left: 1px solid var(--tv-open-line); background: var(--tv-open); border-color: var(--tv-open-line); }
.faq summary { color: var(--white); }
.faq summary:hover { color: var(--accent-text); }
.faq summary:hover::after { border-color: var(--accent-text); }
.form.card, .fl.card, .ins__form.card { border-radius: 16px; box-shadow: 0 10px 30px var(--tv-shadow); }

/* ---------- подвал ---------- */
.footer, .footer a, .footer span { color: var(--tv-foot-ink); }
.footer { background: var(--tv-navy); border-top: 0; padding: 44px 0 100px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .mrz { display: none; }
.footer__row { display: flex; flex-wrap: wrap; gap: 10px 28px; }

/* ---------- объявление над сайтом ---------- */
.tv-notice { background: var(--tv-notice-bg); color: var(--tv-notice-ink); text-align: center; padding: 10px 16px; font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--tv-notice-line); }

@media (max-width: 1000px) {
  .tv-dest { grid-template-columns: repeat(2, 1fr); }
  .tv-finder__body { grid-template-columns: 1fr; }
  .tv-finder__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav a { padding: 10px 8px; font-size: 15px; }
}
@media (max-width: 820px) {
  .header__row { flex-wrap: wrap; gap: 4px 12px; }
  .nav { flex-wrap: wrap; margin-left: 0; order: 3; width: 100%; }
  .tv-hide-sm { display: none; }
  .tv-topbar__row { gap: 14px; font-size: 13px; }
  .tv-hero { padding-top: 40px; }
  .tv-hero__bg { inset: 0 0 40px; background: linear-gradient(180deg, rgba(8, 24, 48, 0.82), rgba(8, 24, 48, 0.6)), var(--tv-hero-img, url(../img/photo/hero.jpg)) center / cover; }
  .tv-hero__lead { font-size: 16px; }
  .section { padding: 56px 0; }
  .tv-hero + .section, #why { padding-top: 96px; }
}
@media (max-width: 600px) {
  .tv-dest { grid-template-columns: 1fr; }
  .tv-finder__grid { grid-template-columns: 1fr; }
  .tv-finder__go { width: 100%; }
  .tv-finder__body { padding: 16px; }
  .tv-cta__row .btn { width: 100%; }
}

/* ---------- Переключатель языка RU / EN / KY (js/i18n.js) ---------- */
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; flex: none; }
.lang button { min-height: 38px; padding: 0 11px; border: 0; background: transparent; color: var(--tv-ink2, var(--text-2)); font: 700 13px/1 var(--f-body); letter-spacing: 0.04em; cursor: pointer; }
.lang button:hover { color: var(--white); }
.lang button.is-on { background: var(--accent); color: #fff; }
.lang--float { position: fixed; top: 10px; right: 10px; z-index: 50; background: var(--tv-surface, var(--bg)); }
@media (max-width: 520px) { .lang button { padding: 0 8px; } }
/* Шапка: названия и пункты меню не переносятся, на средних экранах немного уже */
.logo, .nav a { white-space: nowrap; }
@media (max-width: 1180px) { .header__row { gap: 12px; } .nav a { padding: 10px 7px; font-size: 14.5px; } .header__end { gap: 6px; } }
