/* TOURisME HK — стили сайта по мини-дизайн-системе (design/design-system.html).
   Брейкпоинты: ≤1100 — планшет (бургер вместо меню), ≤640 — телефон. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-cyrillic.4e2553027f1d.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.65850a373e25.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* бренд — из логотипа */
  --c-brand: #92129E;
  --c-brand-hover: #7B0B85;
  --c-brand-active: #640C6C;
  --c-brand-bg: #FAECFA;
  --c-brand-light: #F3D4F5;
  /* нейтральные с оттенком фиолетового */
  --c-text: #25132B;
  --c-text-2: #5F5363;
  --c-muted: #6E6371;
  --c-field: #908794;
  --c-disabled: #8E8592;
  --c-line: #E9E4EB;
  --c-line-2: #E1D9E3;
  --c-soft: #F5F1F6;
  --c-icon-bg: #F4EEF5;
  --c-skeleton: #EEE8EF;
  --c-white: #FFFFFF;
  /* состояния формы */
  --c-success: #17703F;
  --c-success-bg: #E8F5EE;
  --c-error: #B42318;
  --c-error-bg: #FDECEA;

  --r-btn: 12px;
  --r-card: 16px;
  --sh-card: 0 1px 2px rgba(37, 19, 43, .06);
  --sh-panel: 0 16px 40px -20px rgba(37, 19, 43, .22);
  --sh-hover: 0 16px 40px -20px rgba(37, 19, 43, .3);
  --sh-hero: 0 28px 56px -18px rgba(37, 19, 43, .55);

  --container: 1248px;
  --gutter: 24px;
  --sec: 96px;
  --hdr-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-text);
  font: 400 16px/24px Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--c-text); }
a:hover { color: var(--c-brand-hover); }
:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4, p { margin: 0; }
input::placeholder, textarea::placeholder { color: var(--c-muted); opacity: 1; }
[hidden] { display: none !important; }

.icon { flex-shrink: 0; display: block; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-btn);
  background: var(--c-text); color: var(--c-white); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--c-white); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--text { max-width: 856px; }

/* ---------- типографика ---------- */
.h1 { font-size: 56px; line-height: 64px; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.h1--page { font-size: 48px; line-height: 56px; margin-top: 16px; }
.h2 { font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.h3 { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -.01em; }
.h4 { font-size: 20px; line-height: 28px; font-weight: 700; }
.lead { font-size: 18px; line-height: 28px; color: var(--c-text-2); }
.overline { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: var(--r-btn);
  font-family: inherit; font-size: 16px; line-height: 1; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--c-brand); color: var(--c-white); border-color: var(--c-brand); }
.btn--primary:hover { background: var(--c-brand-hover); border-color: var(--c-brand-hover); color: var(--c-white); }
.btn--primary:active { background: var(--c-brand-active); border-color: var(--c-brand-active); }
.btn--primary:focus-visible { outline: 2px solid var(--c-text); outline-offset: 3px; }
.btn--primary:disabled { background: var(--c-line); border-color: var(--c-line); color: var(--c-disabled); cursor: default; }
.btn--secondary { background: var(--c-white); color: var(--c-text); border-color: var(--c-text); }
.btn--secondary:hover { background: var(--c-soft); color: var(--c-text); }
.btn--secondary:active { background: var(--c-line); }
.btn--block { width: 100%; }
.btn--wide { padding: 0 36px; }
.btn.is-loading { opacity: .7; cursor: progress; }

.icon-btn {
  width: 44px; height: 44px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-btn); border: 1px solid var(--c-line); background: var(--c-white);
  color: var(--c-text); cursor: pointer; padding: 0; transition: background-color .15s;
}
.icon-btn:hover { background: var(--c-soft); color: var(--c-text); }
.icon-btn--dark { background: var(--c-text); border-color: var(--c-text); color: var(--c-white); }
.icon-btn--dark:hover { background: #3a2541; color: var(--c-white); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; text-decoration: none; text-underline-offset: 4px; white-space: nowrap;
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow:active { color: var(--c-brand-active); }

/* ---------- шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--c-white); border-bottom: 1px solid var(--c-line); transition: box-shadow .2s; }
.hdr.is-scrolled { box-shadow: 0 6px 20px -12px rgba(37, 19, 43, .28); }
.hdr__in { height: var(--hdr-h); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.hdr__logo { display: flex; flex-shrink: 0; }
.hdr__logo img { width: 148px; height: 64px; }
.hdr__nav { display: flex; align-items: center; gap: 28px; }
.hdr__nav a { font-size: 15px; line-height: 20px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hdr__nav a[aria-current="page"] {
  font-weight: 700; text-decoration: underline; text-decoration-color: var(--c-brand);
  text-decoration-thickness: 2px; text-underline-offset: 8px;
}
.hdr__tools { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.hdr__phone { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 20px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hdr__call, .hdr__burger { display: none; }

.lang-switch { display: flex; gap: 2px; padding: 3px; border-radius: 10px; border: 1px solid var(--c-line); }
.lang-switch a {
  min-width: 36px; height: 30px; display: flex; align-items: center; justify-content: center;
  border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--c-text-2); text-decoration: none;
}
.lang-switch a:hover { color: var(--c-text); background: var(--c-soft); }
.lang-switch a[aria-current="true"] { background: var(--c-text); color: var(--c-white); font-weight: 700; }

/* ---------- мобильное меню ---------- */
.mmenu { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--c-white); overflow-y: auto; }
.mmenu__hdr { position: sticky; top: 0; z-index: 1; height: 64px; flex-shrink: 0; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--c-white); border-bottom: 1px solid var(--c-line); }
.mmenu__hdr .hdr__logo img { width: 111px; height: 48px; }
.mmenu__hdr .hdr__tools { gap: 8px; }
.mmenu__nav { padding: 8px 16px 0; display: flex; flex-direction: column; }
.mmenu__nav a {
  min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--c-line); font-size: 20px; line-height: 28px; font-weight: 600; text-decoration: none;
}
.mmenu__nav a .icon { color: var(--c-muted); }
.mmenu__lang { padding: 24px 16px; display: flex; flex-direction: column; gap: 10px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--c-soft); }
.seg a {
  height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px;
  font-size: 15px; font-weight: 600; color: var(--c-text-2); text-decoration: none;
}
.seg a[aria-current="true"] { background: var(--c-white); color: var(--c-text); font-weight: 700; box-shadow: 0 1px 3px rgba(37, 19, 43, .14); }
.mmenu__foot { margin-top: auto; padding: 24px 16px 28px; display: flex; flex-direction: column; gap: 12px; background: var(--c-soft); }
.mmenu__contacts { margin-top: 6px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 20px; color: var(--c-text-2); }
.mmenu__contacts > * { display: flex; gap: 8px; align-items: flex-start; color: var(--c-text-2); text-decoration: none; }
.mmenu__contacts .icon { margin-top: 1px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #A9D3E6 0%, #5FA6C9 38%, #24719A 70%, #134264 100%); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(37, 19, 43, .62) 0%, rgba(37, 19, 43, .28) 40%, rgba(37, 19, 43, .58) 100%); }
.hero__in { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 72px; }
.hero .h1 { max-width: 1000px; color: var(--c-white); }
.hero__sub { margin-top: 16px; color: rgba(255, 255, 255, .92); font-size: 20px; line-height: 30px; }
.hero__search { margin-top: 40px; background: var(--c-white); border-radius: var(--r-card); padding: 16px; box-shadow: var(--sh-hero); }

/* ---------- слот модуля Tourvisor ----------
   Внутренности рисует скрипт Tourvisor — их не трогаем. Держим высоту (min-height),
   чтобы страница не прыгала, пока модуль грузится, и показываем мягкую заглушку. */
.tv-slot { position: relative; min-height: var(--h, 0); border-radius: var(--r-card); }
.tv-slot:not(.is-loaded):not(.tv-slot--bare) { background: linear-gradient(100deg, var(--c-soft) 30%, #FBF9FB 50%, var(--c-soft) 70%) 0 0 / 300% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .tv-slot:not(.is-loaded):not(.tv-slot--bare) { animation: tv-shimmer 1.6s linear infinite; }
}
@keyframes tv-shimmer { to { background-position: -150% 0; } }
.tv-slot.is-idle, .tv-slot.is-idle::before { animation: none !important; }
.tv-slot--card { background: var(--c-white); padding: 20px 24px 24px; min-height: calc(var(--h, 0px) + 44px); }
.tv-slot--card:not(.is-loaded) { background: var(--c-white); }
.tv-slot--card:not(.is-loaded)::before {
  content: ""; position: absolute; inset: 20px 24px 24px; border-radius: 12px;
  background: linear-gradient(100deg, var(--c-soft) 30%, #FBF9FB 50%, var(--c-soft) 70%) 0 0 / 300% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .tv-slot--card:not(.is-loaded)::before { animation: tv-shimmer 1.6s linear infinite; }
}
.tv-slot--bare { border-radius: 0; }
.hero__search .tv-slot:not(.is-loaded) { background: var(--c-soft); border-radius: 12px; }
.tv-slot + .tv-slot { margin-top: 32px; }
/* Модуль нарисовался и устоялся — запас высоты больше не держим (main.js) */
.tv-slot.is-sized { min-height: 0; }
/* Слайдер спецпредложений: на сенсорных экранах листают свайпом, стрелки Tourvisor только мешают */
@media (hover: none) {
  .tv-slot .tv-image-slider .TVNavLeft, .tv-slot .tv-image-slider .TVNavRight { display: none !important; }
}
/* Десктопная вёрстка «Гео» у Tourvisor не уже 950 px: на планшете модуль листается вбок сам, страница не уезжает */
.tv-slot:has(> .tv-geo) { overflow-x: auto; overscroll-behavior-x: contain; }
/* Поиск Tourvisor: у полей прямые углы или 4 px — скругляем ближе к кнопкам и карточкам сайта.
   Его theme2.css грузится позже нашего, поэтому селекторы на класс сильнее, чем у него. */
.tv-search-form .TVHotelTourDetailSearch, .tv-search-form .TVMainFilter,
.tv-search-form .TVMainForm :is(.TVHotelDetailSearchFilter, .TVHotelTourDetailSearchFilter) { border-radius: 10px; }
/* На телефоне форма другая: фиолетовая подложка — свой блок без скругления, рамка модуля его не обрезает */
.tv-search-form .TVMobileForm .TVFormBody { border-radius: 12px; }
.tv-search-form .TVFilterForm :is(.TVStarsFilter, .TVMealFilter, .TVHotelRatingFilter, .TVAdvancedFilters,
  .TVAccommodationFilter, .TVBeachTypesFilter, .TVBudgetFilter, .TVDetailsFilter, .TVFlightTypeFilter,
  .TVHotelsFilter, .TVInstantConfirmationFilter, .TVOperatorsFilter, .TVResortRadioListFilter,
  .TVResortsFilter, .TVRestTypesFilter, .TVHotelListFilter, .TVOperatorListFilter, .TVResortTreeFilter) { border-radius: 8px; }
/* «Цены от»: цена из кабинета тонкая и бледная, а затемнение Tourvisor берёт цвет самого фото — на светлых
   снимках цена пропадала. Белая жирная цена с «от», плюс своё затемнение снизу. Цвет цены Tourvisor
   ставит через #TVMinPrice<id> … !important — перебиваем через #main. */
.tv-min-price .TVMinPBottomGradient::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(37, 19, 43, 0) 25%, rgba(37, 19, 43, .55) 100%);
}
.tv-min-price .TVMinPDeparture { text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
#main .tv-min-price .TVCustomPriceColor {
  color: var(--c-white) !important; font-size: 18px; font-weight: 700; line-height: 24px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .4) !important;
}
/* Только цена на фото: в таблице дат при наведении у Tourvisor свои ::after */
#main .tv-min-price .TVMinPInfoBlock .TVMinPPriceValue::before { content: "от"; margin-right: .3em; font-weight: 400; color: inherit; }
html[lang="en"] #main .tv-min-price .TVMinPInfoBlock .TVMinPPriceValue::before { content: "from"; }
html[lang="uz"] #main .tv-min-price .TVMinPInfoBlock .TVMinPPriceValue::before { content: none; }
/* «Календарь»: фиолетовый низ и «Показать все страны» скругляем вслед за карточкой модуля (12px) */
.tv-calendar .TVCalendar .TVCalendarFooter { border-radius: 0 0 12px 12px; }
.tv-calendar .TVCalendarFooter .TVCalShowAll { border-radius: var(--r-btn); }
html[lang="uz"] .tv-min-price .TVMinPInfoBlock .TVMinPPriceValue::after { content: "dan"; margin-left: .3em; font-weight: 400; }
/* «Показать все» открывает карточки порциями (main.js): высоту Tourvisor считает под все сразу — берём по
   содержимому; пока есть закрытые, на кнопке прежняя подпись вместо «Скрыть» */
.tv-min-price .TVTableView.TVShowAll .TVInvisibleAreaBlock { height: auto !important; }
.tv-min-price .TVMinPriceItem.tv-more-hidden { display: none !important; }
.tv-min-price .TVTableView.TVShowAll.has-more .TVTableViewButton::before { content: var(--tv-more-label, "Показать все"); }
.tv-slot__fallback { display: none; }
.tv-slot.is-failed, .tv-failed .tv-slot { min-height: 0; background: var(--c-soft); animation: none; }
.tv-slot.is-failed::before, .tv-failed .tv-slot::before { display: none; }
.tv-slot.is-failed .tv-slot__fallback, .tv-failed .tv-slot__fallback {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px;
  border-radius: var(--r-card); background: var(--c-soft); color: var(--c-text-2);
}
.tv-slot--card.is-failed .tv-slot__fallback, .tv-failed .tv-slot--card .tv-slot__fallback { padding: 0; }
.tv-slot__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- секции ---------- */
.sec { padding-top: var(--sec); }
.sec--pb { padding-bottom: var(--sec); }
.sec--soft { background: var(--c-soft); }
.sec--tight { padding-top: 56px; }
.sec-head { margin-bottom: 32px; max-width: 760px; }
.sec-head .lead { margin-top: 12px; }
.sec-head__price { color: var(--c-brand); white-space: nowrap; }
.sec-head--sub { margin: 48px 0 24px; }
.sec-head--sub p { margin-top: 8px; color: var(--c-text-2); }
.sec-head--row { max-width: var(--container); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-title { margin-bottom: 32px; }
.sec-title--lg { margin-bottom: 40px; }
.sec-cta { display: flex; justify-content: center; margin-top: 40px; }

/* полоса доверия */
.trust { border-bottom: 1px solid var(--c-line); }
.trust__in { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 24px; }
/* Факты делят ряд поровну и стоят по центру своей доли; не влезший в ряд — по центру строки */
.trust__item { flex: 1 1 240px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.trust__item > div { display: flex; flex-direction: column; min-width: 0; }
.trust__item strong, .trust__phone { font-weight: 700; }
.trust__phone { text-decoration: none; white-space: nowrap; }
.trust__icon { width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--c-icon-bg); }

/* как купить */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--r-card); border: 1px solid var(--c-line); background: var(--c-white); }
.step > div { display: flex; flex-direction: column; gap: 12px; }
.step p { color: var(--c-text-2); }
.step__num { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--c-text); color: var(--c-white); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }

/* карточки направлений */
.dgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.dcard {
  display: flex; flex-direction: column; border-radius: var(--r-card); border: 1px solid var(--c-line);
  background: var(--c-white); overflow: hidden; text-decoration: none; box-shadow: var(--sh-card);
  transition: box-shadow .2s;
}
.dcard:hover { color: var(--c-text); box-shadow: var(--sh-hover); }
.dcard__media { aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; color: var(--c-text-2); overflow: hidden; }
.dcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.dcard:hover .dcard__media img { transform: scale(1.04); }
.dcard__body { padding: 16px 20px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dcard__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dcard__name { font-size: 18px; line-height: 26px; font-weight: 700; }
.dcard__price { font-size: 15px; line-height: 20px; color: var(--c-text-2); }
.dcard__price strong { color: var(--c-brand); font-weight: 700; }
.dcard__arrow { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--c-line); display: flex; align-items: center; justify-content: center; transition: background-color .15s; }
.dcard:hover .dcard__arrow { background: var(--c-soft); }

/* почему мы */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.why__item { display: flex; flex-direction: column; gap: 14px; }
.why__item > div { display: flex; flex-direction: column; gap: 14px; }
.why__item p { color: var(--c-text-2); }
.why__icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; background: var(--c-white); border: 1px solid var(--c-line); display: flex; align-items: center; justify-content: center; }

/* новости */
.agrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.agrid--wrap { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.acard { display: flex; flex-direction: column; border-radius: var(--r-card); border: 1px solid var(--c-line); background: var(--c-white); overflow: hidden; }
.acard__media { aspect-ratio: 2 / 1; background: #EAE3EC; display: flex; align-items: center; justify-content: center; color: var(--c-text-2); overflow: hidden; }
.acard__media img { width: 100%; height: 100%; object-fit: cover; }
.acard__body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.acard time { font-size: 14px; line-height: 20px; color: var(--c-muted); }
.acard__title { font-size: 20px; line-height: 28px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acard__title a { text-decoration: none; }
.acard p { color: var(--c-text-2); }
.acard__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 15px; font-weight: 600; text-decoration: none; }
.acard__more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* заявка + контакты */
.contact-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.panel { min-width: 0; background: var(--c-white); border-radius: var(--r-card); border: 1px solid var(--c-line); box-shadow: var(--sh-panel); padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.panel--lead { flex: 7 1 520px; }
.panel--lead .lead { margin-top: 12px; }
.panel--contacts { flex: 5 1 380px; }

.lead-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; line-height: 20px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; height: 52px; padding: 0 16px; border: 1.5px solid var(--c-field); border-radius: var(--r-btn);
  font-family: inherit; font-size: 16px; line-height: 24px; color: var(--c-text); background: var(--c-white);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; min-height: 112px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border: 2px solid var(--c-brand); box-shadow: 0 0 0 4px var(--c-brand-light); }
.field input:disabled, .field textarea:disabled { border-color: var(--c-line-2); background: var(--c-soft); color: var(--c-disabled); }
.field.is-invalid input { border: 2px solid var(--c-error); }
.field.is-invalid input:focus { box-shadow: 0 0 0 4px var(--c-error-bg); }
.field__error { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; color: var(--c-error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-btn); }
.alert .icon { margin-top: 2px; }
.alert > div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 20px; }
.alert strong { font-size: 15px; line-height: 22px; }
.alert--error { background: var(--c-error-bg); color: var(--c-error); }

.success { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 32px; border-radius: var(--r-card); background: var(--c-success-bg); }
.success p { color: var(--c-text-2); }
.success__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--c-white); color: var(--c-success); display: flex; align-items: center; justify-content: center; }

.contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.contacts li { display: flex; gap: 14px; align-items: flex-start; }
.contacts li > div { display: flex; flex-direction: column; min-width: 0; }
.contacts span { font-size: 13px; line-height: 18px; color: var(--c-muted); }
.contacts strong, .contacts a { font-size: 16px; line-height: 22px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contacts__icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: var(--c-icon-bg); display: flex; align-items: center; justify-content: center; }
.map { flex-grow: 1; min-height: 220px; border-radius: 12px; overflow: hidden; background: var(--c-skeleton); }
.map-link { align-self: flex-start; margin-top: -8px; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 220px; border: 0; }

/* ---------- внутренние страницы ---------- */
.page-head { background: var(--c-soft); padding: 40px 0 56px; }
.page-head--center { text-align: center; padding: 96px 0; }
.page-head--center .page-head__lead { margin-left: auto; margin-right: auto; }
.page-head__lead { margin-top: 16px; max-width: 820px; }
.page-head__lead a { color: var(--c-text); font-weight: 600; }
.page-head__date { display: block; margin-top: 12px; font-size: 14px; color: var(--c-muted); }
.page-head__alert { margin: 24px 0; max-width: 640px; }
.page-head p:has(.btn) { margin-top: 32px; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--c-muted); }
.crumbs a { color: var(--c-text-2); text-decoration: none; }
.crumbs a:hover { color: var(--c-brand-hover); }
.crumbs [aria-current="page"] { color: var(--c-text); font-weight: 600; }
.catalog { padding: 56px 0 96px; }
.catalog__in .tv-slot + .tv-slot { margin-top: 48px; }
.prose { font-size: 18px; line-height: 30px; }
.prose p { margin-bottom: 20px; }
.prose .lead { font-size: 20px; line-height: 32px; color: var(--c-text); margin-bottom: 28px; }
.prose__cover { width: 100%; height: auto; border-radius: var(--r-card); margin-bottom: 32px; }
.pager { margin-top: 40px; display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--c-text-2); }

/* ---------- подвал ---------- */
.ftr { background: var(--c-soft); border-top: 1px solid var(--c-line); }
.ftr__in { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 48px; }
.ftr__top { display: flex; flex-wrap: wrap; gap: 48px; }
.ftr__about { flex: 2 1 360px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.ftr__about img { width: 185px; height: 80px; }
.ftr__about p { max-width: 420px; font-size: 15px; line-height: 24px; color: var(--c-text-2); }
.ftr__col { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 22px; }
.ftr__nav { flex-basis: 200px; }
.ftr__links { display: flex; flex-direction: column; gap: 12px; }
.ftr__col a { text-decoration: none; }
.ftr__contact { display: flex; align-items: center; gap: 10px; }
.ftr__contact .icon { color: var(--c-text-2); }
/* Адрес — одной строкой; колонка контактов сама расширяется под него */
.ftr__contact--address span { white-space: nowrap; }
@media (max-width: 420px) { .ftr__contact--address { align-items: flex-start; } .ftr__contact--address span { white-space: normal; } }
.ftr__title { font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.ftr__phone { font-weight: 600; }
.ftr__muted { color: var(--c-text-2); }
.ftr__credits { margin-top: -32px; font-size: 12px; line-height: 18px; color: var(--c-muted); }
.ftr__credits a { color: var(--c-muted); }
.ftr__bottom { border-top: 1px solid var(--c-line-2); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 20px; color: var(--c-text-2); }

/* ========== планшет ≤1100: меню прячется в бургер ========== */
@media (max-width: 1100px) {
  .hdr__nav, .hdr__phone { display: none; }
  .hdr__burger { display: inline-flex; }
}

/* ========== телефон ≤640 ========== */
@media (max-width: 640px) {
  :root { --gutter: 16px; --sec: 56px; --hdr-h: 64px; }
  .h1 { font-size: 30px; line-height: 36px; }
  .h1--page { font-size: 30px; line-height: 36px; }
  .h2 { font-size: 26px; line-height: 32px; }
  .h3 { font-size: 20px; line-height: 28px; }
  .h4 { font-size: 17px; line-height: 24px; }
  .lead { font-size: 16px; line-height: 24px; }

  .hdr__in { gap: 8px; }
  .hdr__logo img { width: 111px; height: 48px; }
  .hdr__tools { gap: 8px; }
  .lang-switch { display: none; }
  .hdr__call { display: inline-flex; }
  .hdr__burger { background: var(--c-text); border-color: var(--c-text); color: var(--c-white); }
  .hdr__burger:hover { background: #3a2541; color: var(--c-white); }

  .hero { background: linear-gradient(180deg, #A9D3E6 0%, #5FA6C9 30%, #24719A 58%, #134264 100%); }
  .hero__shade { background: linear-gradient(180deg, rgba(37, 19, 43, .62) 0%, rgba(37, 19, 43, .3) 30%, rgba(37, 19, 43, .55) 100%); }
  .hero__in { padding-top: 24px; padding-bottom: 20px; }
  .hero__sub { margin-top: 10px; font-size: 16px; line-height: 24px; }
  .hero__search { margin-top: 20px; padding: 10px; box-shadow: 0 20px 40px -16px rgba(37, 19, 43, .55); }

  .tv-slot { min-height: var(--hm, var(--h, 0)); border-radius: 14px; }
  .tv-slot--card { padding: 14px; min-height: calc(var(--hm, var(--h, 0px)) + 28px); }
  .tv-slot--card:not(.is-loaded)::before { inset: 14px; }

  .trust__in { padding-top: 20px; padding-bottom: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .trust__item { align-items: flex-start; gap: 10px; }
  .trust__icon { width: 36px; height: 36px; border-radius: 10px; }
  .trust__icon .icon { width: 20px; height: 20px; }
  .trust .overline { font-size: 11px; }
  .trust__item strong, .trust__phone { font-size: 14px; line-height: 20px; }
  /* Три факта в две колонки: последний — на всю ширину, без дыры справа */
  .trust__item:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .sec-head { margin-bottom: 20px; }
  .sec-head .lead { margin-top: 8px; }
  .sec-head--sub { margin: 40px 0 16px; }
  .sec-head--sub p { margin-top: 6px; font-size: 15px; line-height: 22px; }
  .sec-head--row { align-items: center; flex-wrap: nowrap; margin-bottom: 20px; }
  .sec-title, .sec-title--lg { margin-bottom: 20px; }
  .sec-cta { margin-top: 20px; }
  .sec-cta .btn { width: 100%; }

  .steps { display: flex; flex-direction: column; gap: 12px; }
  .step { flex-direction: row; gap: 14px; padding: 16px; border-radius: 14px; }
  .step > div { gap: 4px; }
  .step p { font-size: 15px; line-height: 22px; }
  .step__num { width: 36px; height: 36px; font-size: 16px; }

  .why { display: flex; flex-direction: column; gap: 24px; }
  .why__item { flex-direction: row; gap: 14px; }
  .why__item > div { gap: 4px; }
  .why__item p { font-size: 15px; line-height: 22px; }
  .why__icon { width: 44px; height: 44px; border-radius: 12px; }

  /* горизонтальные ленты на телефоне: направления и новости */
  .container--bleed { padding: 0; }
  .scroller {
    display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 4px;
    scroll-snap-type: x mandatory; scroll-padding-left: 16px; scrollbar-width: none;
  }
  .scroller::-webkit-scrollbar { display: none; }
  .scroller > * { scroll-snap-align: start; }
  .dgrid.scroller > .dcard { flex: 0 0 236px; border-radius: 14px; box-shadow: none; }
  .dcard__media { aspect-ratio: auto; height: 156px; }
  .dcard__body { padding: 12px 14px 14px; }
  .dcard__text { gap: 2px; }
  .dcard__name { font-size: 17px; line-height: 24px; }
  .dcard__price { font-size: 14px; }
  .dcard__arrow { display: none; }
  .agrid.scroller > .acard { flex: 0 0 280px; border-radius: 14px; }
  .agrid--wrap { grid-template-columns: 1fr; }
  .acard__media { aspect-ratio: auto; height: 140px; }
  .acard__body { padding: 14px 16px 16px; gap: 6px; }
  .acard__title { font-size: 17px; line-height: 24px; }
  .acard p { font-size: 14px; line-height: 20px; }

  .contact-grid { flex-direction: column; gap: 16px; }
  .panel { flex: none; padding: 20px; gap: 18px; }
  .panel--contacts { box-shadow: none; gap: 16px; }
  .panel--lead .lead { margin-top: 8px; font-size: 15px; line-height: 22px; }
  .lead-form { gap: 18px; }
  .field { gap: 6px; }
  .field input { padding: 0 14px; }
  .field textarea { padding: 12px 14px; }
  .lead-form .btn { width: 100%; }
  .success { padding: 20px; }
  .contacts { gap: 12px; }
  .contacts li { gap: 12px; }
  .contacts strong, .contacts a { font-size: 15px; }
  .map, .map iframe { min-height: 160px; }

  .page-head { padding: 24px 0 32px; }
  .page-head--center { padding: 56px 0; }
  .catalog { padding: 32px 0 56px; }
  .catalog__in .tv-slot + .tv-slot { margin-top: 32px; }
  .prose { font-size: 16px; line-height: 26px; }
  .prose .lead { font-size: 18px; line-height: 28px; }

  .ftr__in { padding-top: 40px; padding-bottom: 24px; gap: 28px; }
  .ftr__top { flex-direction: column; gap: 28px; }
  .ftr__about { gap: 14px; flex: none; }
  .ftr__about img { width: 162px; height: 70px; }
  .ftr__col { flex: none; gap: 8px; }
  .ftr__title { font-size: 12px; line-height: 16px; margin-bottom: 4px; }
  .ftr__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; gap: 0 16px; }
  .ftr__links a { min-height: 40px; display: flex; align-items: center; }
  .ftr__bottom { flex-direction: column; gap: 4px; padding-top: 18px; font-size: 13px; }
  .ftr__credits { margin-top: -16px; }
}
