/* =========================================================
   Путевия — экскурсии по Беларуси
   Визуальная система по design-tokens.md (эталон albatross-travel-egypt.com)
   ========================================================= */
:root {
  /* Фирменные цвета Aist Travel (см. брендбук) */
  --brick: #C63D2F;        /* акцент: клюв и лапы аиста */
  --brick-dark: #A3301F;   /* hover */
  --brick-tint: #F8E1DC;   /* подложки */
  --graphite: #1F2328;     /* текст, силуэт аиста */
  --slate: #5B5F66;        /* вторичный текст */
  --linen: #F6F1E7;        /* шапка, футер */
  --linen-dark: #EAE2D3;   /* линии, бордеры */
  --forest: #2F6B4F;       /* успех, «без предоплаты», новинки */
  --amber: #E8A33D;        /* звёзды рейтинга */

  /* Роли в интерфейсе */
  --main: var(--brick);
  --main-dark: var(--brick-dark);
  --on-main: #fff;
  --main-soft: rgba(198, 61, 47, .85);
  --main-border-soft: #E9B3AB;
  --peach: var(--brick-tint);

  --text: var(--graphite);
  --grey-1: #3F434A;
  --grey-2: var(--slate);
  --grey-3: #6B6F76;
  --grey-line: #A7A294;
  --light-text: #F1ECE3;

  --price: var(--brick);
  --green: var(--forest);
  --sale: var(--forest);
  --star: var(--amber);
  --grad-new: linear-gradient(90deg, #2F6B4F, #3F8A66);
  --grad-hot: linear-gradient(90deg, #A3301F, #C63D2F);

  --panel: #F6F7F5;       /* нейтральные светлые плашки: футер, меню, подсказки */
  --bg: #FFFFFF;
  --card: #FFFFFF;
  --card-border: var(--linen-dark);
  --white: #fff;

  --sh-acc: 0 0 20px 5px rgba(174, 174, 174, .25);
  --sh-card: 0 0 10px rgba(134, 133, 133, .2);
  --sh-card-hover: 0 0 12px rgba(134, 133, 133, .5);
  --sh-plate: 0 0 20px 3px rgba(106, 110, 124, .25);
  --sh-frame: 0 0 10px 5px rgba(106, 110, 124, .2);
  --sh-btn: 2px 2px 6px rgba(184, 182, 182, .66);

  --r-xs: 3px;
  --r: 8px;
  --r-lg: 10px;

  --container: 1366px;
  --narrow: 800px;
  --gap-section: 70px;
  --header-h: 100px;

  --font: "Roboto", Arial, sans-serif;
  --font-cond: "Ubuntu Condensed", "Roboto Condensed", Arial Narrow, sans-serif;
}
@media (max-width: 768px) { :root { --gap-section: 40px; --header-h: 50px; } }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.2; color: var(--text);
  background: var(--bg);
  overflow-x: clip;
}
h1, h2, h3, h4, h5, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i--fill { fill: currentColor; stroke: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 15px; }
.narrow { max-width: var(--narrow); margin: 0 auto; }
.section { margin-top: var(--gap-section); }

/* Заглушки фото */
.ph { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: linear-gradient(135deg, #cfd8e3 0%, #9fb0c4 100%); }
.ph::after {
  content: "фото " attr(data-ph); position: absolute; left: 10px; top: 10px; z-index: 1;
  font: 600 11px/1 var(--font); letter-spacing: .03em; color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.28); padding: 4px 8px; border-radius: 20px; pointer-events: none;
}
.ph--sand { background: linear-gradient(135deg, #e6d6ba 0%, #c3a57a 100%); }
.ph--green { background: linear-gradient(135deg, #b8d0bf 0%, #6d9a7f 100%); }
.ph--sky { background: linear-gradient(180deg, #cfe3f3 0%, #eef4f8 55%, #d8c9a8 100%); }
.ph--land { background: #EEF4F8 url(../img/hero-landscape.svg) center bottom / cover no-repeat; }
.ph--rose { background: linear-gradient(135deg, #e3c3b8 0%, #b08476 100%); }
.ph--blue { background: linear-gradient(135deg, #b9cbe0 0%, #6e8db3 100%); }
.ph--dusk { background: linear-gradient(135deg, #a3a9c9 0%, #5b6390 100%); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 41px; padding: 10px 20px; border: 2px solid var(--main); border-radius: var(--r);
  background: var(--white); color: var(--text); font-size: 14px; line-height: 1.2; text-align: center;
  box-shadow: var(--sh-btn); transition: .3s; cursor: pointer;
}
.btn:hover { background: var(--main); color: var(--on-main); }
.btn--fill { background: var(--main); border-color: var(--main); color: var(--on-main); box-shadow: none; text-transform: uppercase; font-weight: 600; letter-spacing: .5px; min-height: 47px; }
.btn--fill:hover { background: var(--main-dark); border-color: var(--main-dark); color: var(--on-main); }
.btn--caps { text-transform: uppercase; }
.btns { display: flex; justify-content: center; margin-top: 30px; }

/* Заголовки секций */
.title { font-size: 30px; font-weight: 700; line-height: 1.2; text-align: center; }
/* короткая «строчка» орнамента под заголовком секции */
.title::after { content: ""; display: block; width: 112px; height: 14px; margin: 12px auto 0; background: url(../img/ornament.svg) center / 28px 14px repeat-x; }
.title a:hover { color: var(--main); }
.subtitle { margin-top: 10px; font-size: 22px; font-weight: 500; line-height: 1.2; text-align: center; color: var(--main); }
.lead { max-width: 600px; margin: 14px auto 0; font-size: 16px; line-height: 1.5; text-align: center; }
@media (max-width: 768px) {
  .title { font-size: 20px; }
  .subtitle { font-size: 16px; }
}

/* =========================================================
   ШАПКА
   ========================================================= */
.header { position: fixed; inset: 0 0 auto 0; z-index: 900; background: #fff; border-bottom: 1px solid #EFEAE0; padding: 15px 0; transition: padding .2s, box-shadow .2s; }
/* Лента-рушник под шапкой */
.header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; background: #fff url(../img/ornament.svg) center / 28px 14px repeat-x; border-bottom: 1px solid #F3EFE7; pointer-events: none; }
.header.is-min { padding: 3px 0; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; width: 220px; transition: width .4s; flex: none; }
.logo__svg { display: block; width: 100%; height: auto; }
.header.is-min .logo { width: 180px; }
.brand__desc { max-width: 279px; font-size: 16px; line-height: 1.2; transition: .4s; }
.header-links { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 40px; }
.header-links a { font-size: 14px; line-height: 1; transition: color .2s; }
.header-links a:hover { color: var(--main); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.rating-badge { display: flex; align-items: center; gap: 8px; }
.rating-badge__num { font-size: 24px; font-weight: 700; line-height: 1; }
.rating-badge__txt { font-size: 11px; line-height: 1.2; }
.rating-badge .stars { color: var(--star); font-size: 11px; display: flex; gap: 1px; }
.contacts { text-align: right; font-size: 14px; line-height: 1.2; }
.contacts__phone { display: inline-block; margin-top: 4px; font-size: 16px; font-weight: 500; letter-spacing: .15px; color: var(--green); }
.contacts__phone:hover { text-decoration: underline; }

/* Переключатели язык / валюта */
.switch { position: relative; }
.switch__btn {
  display: flex; align-items: center; gap: 4px; height: 30px; padding: 0 8px; border: 1px solid var(--linen-dark); border-radius: var(--r);
  background: var(--white); font-size: 13px; font-weight: 500; transition: border-color .2s;
}
.switch__btn:hover, .switch.is-open .switch__btn { border-color: var(--main); }
.switch__btn .i { font-size: 12px; transition: transform .2s; }
.switch.is-open .switch__btn .i { transform: rotate(180deg); }
.switch__list {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; min-width: 150px; padding: 5px;
  background: var(--white); border-radius: var(--r); box-shadow: var(--sh-acc);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .2s;
}
.switch.is-open .switch__list { opacity: 1; visibility: visible; transform: none; }
.switch__list button { display: flex; width: 100%; justify-content: space-between; padding: 8px 10px; border-radius: 5px; font-size: 13px; text-align: left; }
.switch__list button:hover { background: var(--panel); }
.switch__list button.is-active { font-weight: 700; }
.switch__list button.is-active::after { content: "✓"; color: var(--main); }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-size: 18px; transition: background .2s; }
.icon-btn:hover { background: rgba(0,0,0,.06); }

.burger { display: none; width: 28px; height: 26px; flex-direction: column; justify-content: space-between; padding: 4px 0; }
.burger span { display: block; height: 2px; background: var(--graphite); border-radius: 2px; transition: .3s; }

/* Поиск (дорисован) */
.search-bar {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--panel); border-top: 1px solid var(--linen-dark);
  padding: 14px 0 18px; box-shadow: 0 10px 20px rgba(0,0,0,.08);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .25s;
}
.search-bar.is-open { opacity: 1; visibility: visible; transform: none; }
.search-bar form { display: flex; gap: 10px; max-width: 800px; margin: 0 auto; }
.search-bar input { flex: 1; min-width: 0; height: 47px; padding: 0 16px; border: 2px solid var(--main); border-radius: var(--r); background: var(--white); outline: 0; font-size: 16px; }
.search-bar__tags { display: flex; flex-wrap: wrap; gap: 8px; max-width: 800px; margin: 12px auto 0; font-size: 13px; }
.search-bar__tags a { padding: 5px 10px; border: 1px solid var(--linen-dark); border-radius: var(--r); background: var(--white); transition: .2s; }
.search-bar__tags a:hover { border-color: var(--main); }

/* Мобильное меню (дорисовано) */
.drawer-wrap { position: fixed; inset: 0; z-index: 1000; pointer-events: none; overflow: hidden; }
.drawer-bg { position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0; transition: .3s; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); padding: 16px 16px 30px;
  background: var(--panel); overflow-y: auto; transform: translateX(100%); visibility: hidden;
  transition: transform .35s ease, visibility .35s;
}
.drawer-wrap.is-open { pointer-events: auto; }
.drawer-wrap.is-open .drawer-bg { opacity: 1; }
.drawer-wrap.is-open .drawer { transform: none; visibility: visible; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer__close { width: 40px; height: 40px; display: grid; place-items: center; font-size: 22px; }
.drawer__group { background: var(--white); border-radius: var(--r-lg); padding: 6px 14px; margin-bottom: 12px; }
.drawer__title { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--grey-3); padding: 10px 0 4px; }
.drawer__group a { display: block; padding: 11px 0; font-size: 16px; border-bottom: 1px solid var(--panel); }
.drawer__group a:last-child { border-bottom: 0; }
.drawer__row { display: flex; gap: 6px; padding: 8px 0; }
.drawer__row button { flex: 1; height: 38px; border: 1px solid var(--linen-dark); border-radius: var(--r); background: var(--white); font-size: 13px; font-weight: 500; }
.drawer__row button.is-active { border-color: var(--main); background: var(--main); color: var(--on-main); }

@media (max-width: 1265px) { .brand__desc { display: none; } }
@media (max-width: 1190px) { .header-links { display: none; } }
@media (max-width: 993px) { .contacts { display: none; } }
@media (max-width: 768px) {
  .header, .header.is-min { padding: 0; }
  .header__inner { min-height: 50px; gap: 10px; }
  .logo, .header.is-min .logo { width: 140px; }
  .header-tools .switch, .header-tools .icon-btn--search { display: none; }
  .rating-badge__num { font-size: 18px; }
  .burger { display: flex; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; z-index: 1; margin-top: 100px; min-height: 650px; padding: 0 0 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  text-align: center; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg .ph { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.hero__bg .ph.is-on { opacity: 1; }
.hero__bg .ph::after { top: auto; bottom: 10px; }
.hero__inner { position: relative; max-width: 1050px; padding: 35px 10px 0; display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 1030px; margin-bottom: 30px; font-size: 60px; font-weight: 500; line-height: 1.2; }
.hero__h2 { margin-bottom: 15px; font-size: 30px; font-weight: 400; line-height: 1.3; }
.hero__h2 .i { width: 24px; height: 28px; color: var(--brick); vertical-align: -3px; margin-right: 4px; }
.hero__h2 b { font-weight: 700; }
.hero__h2 .price { color: var(--price); font-weight: 700; white-space: nowrap; }
.hero__select { margin-bottom: 30px; font-size: 24px; text-decoration: underline; text-underline-offset: 4px; }
.hero__select:hover { color: var(--main-dark); }
.city-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 74px; }
.city-btn {
  width: 200px; height: 50px; display: flex; align-items: center; justify-content: center; padding-top: 1px;
  border: 3px solid var(--main); border-radius: var(--r); background: rgba(255,251,251,.3); backdrop-filter: blur(2px);
  font-size: 14px; font-weight: 600; text-transform: uppercase; transition: background .3s;
}
.city-btn:hover, .city-btn:focus-visible { background: var(--main); color: var(--on-main); }
.hero__cta { display: none; }

.advantages {
  position: relative; width: calc(100% - 30px); max-width: 1235px; margin-top: 40px;
  padding: 20px 30px; background: var(--white); border-radius: var(--r-lg);
}
.advantages ul { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 12px 24px; }
.advantages li { display: flex; align-items: center; text-align: left; font-size: 18px; line-height: 1.2; }
.advantages .i { width: 36px; height: 36px; margin-right: 12px; color: var(--main); stroke-width: 1.6; }
.advantages-mob { display: none; }

@media (max-width: 1265px) { .hero h1 { font-size: 50px; } .advantages li { font-size: 16px; } }
@media (max-width: 993px) {
  .hero h1 { font-size: 45px; }
  .hero__h2 { font-size: 24px; }
  .city-btns { max-width: 460px; margin-top: 40px; }
  .advantages ul { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 768px) {
  .hero { margin-top: 50px; min-height: 520px; padding: 0; justify-content: flex-start; }
  .hero__inner { padding: 35px 20px 0; }
  .hero h1 { font-size: 35px; margin-bottom: 20px; }
  .hero__h2 { font-size: 19px; line-height: 1.4; margin-bottom: 20px; }
  .hero__select { font-size: 16px; }
  .city-btns { display: none; }
  .hero__cta { display: inline-flex; min-width: 200px; white-space: nowrap; min-height: 48px; margin: 78px auto 40px; }
  .advantages { display: none; }
  .advantages-mob { display: block; }
  .advantages-mob ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 8px; padding: 0 10px; }
  .advantages-mob li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; line-height: 1.2; }
  .advantages-mob .i { width: 32px; height: 32px; color: var(--main); stroke-width: 1.6; }
}
@media (max-width: 430px) { .hero h1 { font-size: 35px; } }

/* =========================================================
   ОПЛАТА
   ========================================================= */
.payment { margin: 40px 0; }
.payment__inner { display: flex; justify-content: center; align-items: center; }
.payment__text { margin-right: 90px; font-size: 22px; line-height: 1.4; }
.payment__text b { font-weight: 700; }
.payment__img { width: 204px; height: 181px; border-radius: var(--r-lg); overflow: hidden; transform: rotate(-6deg); box-shadow: var(--sh-plate); }
.btn-link {
  display: inline-block; margin-top: 10px; padding: 5px; border: 1px solid var(--grey-line); border-radius: var(--r-xs);
  font-size: 14px; line-height: 1; color: var(--grey-1); transition: background .2s, border .2s;
}
.btn-link:hover { background: rgba(142,142,142,.26); }
@media (max-width: 768px) {
  .payment__inner { flex-direction: column-reverse; gap: 20px; }
  .payment__text { margin: 0; font-size: 16px; text-align: center; }
  .payment__img { width: 150px; height: 133px; }
}

/* Модалка конвертера (дорисована) */
.modal { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 15px; background: rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: .25s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box { position: relative; width: 100%; max-width: 420px; padding: 25px 20px; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh-plate); }
.modal__close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; display: grid; place-items: center; font-size: 20px; }
.modal h3 { font-size: 22px; font-weight: 500; margin-bottom: 16px; text-align: center; }
.conv { display: grid; grid-template-columns: 1fr 110px; gap: 10px; }
.conv input, .conv select { height: 44px; padding: 0 12px; border: 2px solid var(--main); border-radius: var(--r); background: var(--white); font-size: 16px; outline: 0; }
.conv__out { grid-column: 1 / -1; padding: 14px; border-radius: var(--r); background: var(--peach); font-size: 16px; line-height: 1.5; }
.conv__out b { font-size: 20px; }
.conv__note { grid-column: 1 / -1; font-size: 11px; color: var(--grey-3); }

/* =========================================================
   ПЛИТКИ НАПРАВЛЕНИЙ
   ========================================================= */
.tiles { display: flex; width: 100%; height: 245px; overflow: hidden; }
.tile { position: relative; flex: 0 0 25%; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: flex-basis .4s; isolation: isolate; }
.tiles:hover .tile { flex-basis: 20%; }
.tiles .tile:hover { flex-basis: 40%; }
.tile .ph { position: absolute; inset: 0; z-index: -2; transition: transform .3s; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0,0,0,.42); transition: background .3s; }
.tile:hover .ph { transform: scale(1.1); }
.tile:hover::before { background: rgba(0,0,0,.3); }
.tile__name {
  position: relative; padding: 10px 20px; border: 1px solid transparent;
  font-family: var(--font-cond); font-size: 36px; font-weight: 700; line-height: 1.2; text-transform: uppercase; color: #fff; text-align: center;
  transition: .3s;
}
.tile:hover .tile__name { background: rgba(255,255,255,.1); border-color: var(--main); text-shadow: 0 0 5px #000; }
.tile__count { position: absolute; left: 0; right: 0; bottom: 12px; font-size: 12px; color: var(--light-text); text-align: center; }
.tile__region {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: var(--r-xs); background: rgba(198,61,47,.92); color: #fff; font-size: 11px; font-weight: 500;
}
.tile__region .i { font-size: 11px; }
.tile .ph::after { left: auto; right: 10px; opacity: .8; }
@media (max-width: 993px) {
  .tiles { flex-wrap: wrap; height: auto; }
  .tile, .tiles:hover .tile, .tiles .tile:hover { flex: 0 0 50%; height: 200px; }
}
@media (max-width: 768px) {
  .tile, .tiles:hover .tile, .tiles .tile:hover { flex: 0 0 100%; height: 180px; }
  .tile__name { font-size: 28px; }
}

/* =========================================================
   АККОРДЕОНЫ (цены, FAQ)
   ========================================================= */
.acc { margin-bottom: 15px; }
.acc__head {
  position: relative; width: 100%; min-height: 60px; padding: 8px 45px 5px 55px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  background: var(--white); border: 1px solid transparent; border-radius: var(--r); box-shadow: var(--sh-acc);
  font-size: 14px; font-weight: 500; line-height: 1.2; text-align: left; transition: .3s;
}
.acc__head:hover, .acc.is-open .acc__head { border-color: var(--main); }
.acc__head strong { font-weight: 700; }
.acc__ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; color: var(--main); }
.acc__toggle { position: absolute; right: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--main); color: var(--on-main); display: grid; place-items: center; font-size: 14px; transition: transform .3s; }
.acc.is-open .acc__toggle { transform: rotate(45deg); }
.acc__body { overflow: hidden; height: 0; transition: height .35s ease; }
.acc__inner { margin-top: 6px; padding: 4px; background: var(--white); border-radius: var(--r); font-size: 14px; line-height: 1.5; }
.acc__inner p { padding: 12px 14px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.price-table th { padding: 12px 10px; text-align: left; font-weight: 700; border-bottom: 2px solid var(--main); }
.price-table td { padding: 10px; vertical-align: middle; }
.price-table tbody tr:nth-child(odd) { background: var(--card); }
.price-table td:nth-child(n+2), .price-table th:nth-child(n+2) { white-space: nowrap; }
.price-table .p { color: var(--price); font-weight: 500; }
.price-table a { text-decoration: underline; }
.price-table a:hover { color: var(--main-dark); }
.table-scroll { overflow-x: auto; }
@media (max-width: 768px) {
  .acc__head { padding-left: 48px; }
  .acc__ico { left: 12px; }
  .price-table { font-size: 13px; }
}

/* =========================================================
   ПОДПИСКА (Telegram)
   ========================================================= */
.subscribe { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 0 10px; }
.subscribe__title { font-size: 24px; font-weight: 500; line-height: 1.2; }
.subscribe__text { max-width: 450px; margin: 18px 0; font-size: 18px; line-height: 1.4; }
.subscribe__right { width: 210px; flex: none; text-align: center; }
.subscribe__logo { width: 80px; height: 80px; margin: 0 auto 14px; border-radius: 50%; background: #29a9eb; color: #fff; display: grid; place-items: center; font-size: 44px; }
.subscribe__right .btn { width: 200px; }
@media (max-width: 768px) {
  .subscribe { flex-direction: column; text-align: center; gap: 10px; padding: 0 15px; }
  .subscribe__text { font-size: 16px; }
}

/* =========================================================
   ОТЗЫВЫ
   ========================================================= */
.slider { position: relative; margin-top: 25px; }
.slider__track { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.slider__track::-webkit-scrollbar { display: none; }
.review { flex: 0 0 50%; padding: 10px 13px; scroll-snap-align: start; }
.review__inner { display: flex; gap: 20px; height: 100%; padding: 25px 20px; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh-card); }
.review__img { flex: none; width: 100px; height: 200px; border-radius: 6px; overflow: hidden; }
.review__tour { font-size: 18px; font-weight: 700; line-height: 1.2; }
.review__tour:hover { color: var(--main-dark); }
.review__author { margin: 8px 0 12px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.review__author .stars { color: var(--star); display: flex; gap: 1px; font-size: 12px; }
.review__text { font-size: 14px; line-height: 1.45; }
.slider__nav { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; }
.slider__arrow { width: 36px; height: 36px; display: grid; place-items: center; border: 2px solid var(--main); border-radius: 50%; background: var(--white); font-size: 18px; transition: background .2s; }
.slider__arrow:hover { background: var(--main); color: var(--on-main); }
.slider__arrow[disabled] { opacity: .4; cursor: default; background: var(--white); }
.dots { display: flex; gap: 6px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; background: #d6d6d6; transition: .2s; }
.dots button.is-active { background: var(--main); width: 24px; border-radius: 5px; }
@media (max-width: 993px) { .review { flex-basis: 100%; } }
@media (max-width: 600px) {
  .review { padding: 10px 0; }
  .review__inner { flex-direction: column; gap: 12px; }
  .review__img { width: 100%; height: 160px; }
}

.platforms__title { font-size: 22px; font-weight: 500; line-height: 1.2; text-align: center; }
.platforms__p { max-width: 600px; margin: 25px auto 0; font-size: 16px; line-height: 1.55; text-align: center; }
.platforms__p a { text-decoration: underline; }
.platforms__list { display: flex; justify-content: space-between; gap: 20px; max-width: 1110px; margin: 30px auto 0; }
.platform {
  flex: 1; max-width: 350px; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 5px; background: var(--white); border: 1px solid transparent; border-radius: var(--r-lg); box-shadow: var(--sh-plate); transition: .3s;
}
.platform:hover { box-shadow: none; border-color: var(--main); }
.platform__name { font-size: 20px; font-weight: 700; }
.platform__rate { display: flex; align-items: center; gap: 6px; font-size: 26px; font-weight: 700; }
.platform__rate .stars { color: var(--star); font-size: 16px; display: flex; gap: 2px; }
.platform__cnt { font-size: 13px; color: var(--grey-2); }
@media (max-width: 768px) {
  .platforms__list { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .platform { flex: 0 0 calc(50% - 5px); height: 80px; gap: 2px; }
  .platform__name { font-size: 14px; }
  .platform__rate { font-size: 18px; }
  .platform__rate .stars { display: none; }
}

/* =========================================================
   ВИДЕО
   ========================================================= */
.video { max-width: 560px; margin: 25px auto 0; padding: 8px; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh-frame); }
.video__frame { position: relative; aspect-ratio: 544 / 294; border-radius: 4px; overflow: hidden; }
.video__play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; z-index: 2;
  border-radius: 12px; background: var(--main); color: #fff; display: grid; place-items: center; font-size: 22px; transition: transform .2s;
}
.video__play .i { fill: currentColor; }
.video__frame:hover .video__play { transform: scale(1.08); }
@media (max-width: 768px) { .video { margin: 25px 10px 0; padding: 5px; } }

/* =========================================================
   ЭКСКУРСИИ
   ========================================================= */
.cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 25px 0 30px; }
.cat-chip {
  min-height: 38px; padding: 8px 16px; border: 2px solid var(--main); border-radius: var(--r); background: var(--white);
  font-size: 14px; line-height: 1.2; transition: .2s;
}
.cat-chip:hover { box-shadow: var(--sh-btn); }
.cat-chip.is-active { background: var(--main); color: var(--on-main); }
.cat-chip small { font-size: 12px; color: var(--grey-2); margin-left: 4px; }
.cat-chip.is-active small { color: rgba(255,255,255,.8); }

.excursions { display: flex; flex-wrap: wrap; gap: 20px; }
.exc {
  position: relative; width: calc((100% - 60px) / 4); display: flex; flex-direction: column;
  padding: 10px 10px 20px; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--r); box-shadow: var(--sh-card);
  transition: box-shadow .3s;
}
.exc:hover { box-shadow: var(--sh-card-hover); }
.exc.is-hidden { display: none; }
.exc__badge { position: absolute; top: 15px; left: 15px; z-index: 2; padding: 6px 10px 4px; border-radius: var(--r-xs); background: var(--grad-new); color: #fff; font-size: 14px; }
.exc__badge--hot { background: var(--grad-hot); padding: 5px 10px; border-radius: 2px; }
.exc__fav { position: absolute; top: 15px; right: 15px; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.9); font-size: 16px; transition: .2s; }
.exc__fav:hover, .exc__fav.is-on { color: var(--price); }
.exc__fav.is-on .i { fill: currentColor; }
.exc__img { display: block; aspect-ratio: 297 / 200; margin-bottom: 5px; border-radius: var(--r-xs); overflow: hidden; }
.exc__img .ph::after { top: auto; bottom: 8px; }
.exc__dop { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font-size: 12px; line-height: 1.25; color: var(--grey-3); }
.exc__dop span { display: flex; align-items: center; gap: 4px; }
.exc__dop .i { font-size: 12px; }
.exc__dop b { font-weight: 400; color: var(--text); }
.exc__title { margin: 12px 0 10px; font-size: 17px; font-weight: 700; line-height: 1.1; text-align: center; min-height: 37px; }
.exc__title a:hover { color: var(--main-dark); }
.exc__price { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 45px; }
.exc__new { font-size: 30px; font-weight: 500; line-height: 1.2; color: var(--price); white-space: nowrap; }
.exc__new small { font-size: 16px; }
.exc__old { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.exc__sale { padding: 4px 5px 3px; border-radius: 4px; background: var(--sale); color: #fff; font-size: 14px; font-weight: 500; line-height: 1; }
.exc__oldp { font-size: 17px; color: var(--grey-2); text-decoration: line-through; }
.exc__perks { display: flex; justify-content: center; gap: 10px; margin: 4px 0 12px; font-size: 12px; color: var(--sale); }
.exc__perks span { display: flex; align-items: center; gap: 3px; }
.exc__btn {
  position: relative; overflow: hidden; display: block; width: 150px; margin: 0 auto; line-height: 38px;
  border: 2px solid var(--main); border-radius: var(--r); background: var(--white); text-align: center; text-transform: uppercase; font-size: 14px;
  transition: .3s;
}
.exc__btn::before { content: ""; position: absolute; top: 0; left: -80%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); transform: skewX(-20deg); }
.exc:hover .exc__btn { background: var(--main); color: var(--on-main); }
.exc:hover .exc__btn::before { animation: moveLight 2.5s ease-in-out infinite; }
.exc__btn:hover { box-shadow: 0 0 5px #bbbaba; }
@keyframes moveLight { 0% { left: -80%; } 60%, 100% { left: 140%; } }
.exc__cat { margin-top: 14px; font-size: 10px; color: var(--grey-3); text-align: center; }
.exc__cat a:hover { text-decoration: underline; }
.exc__rew { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 5px; font-size: 11px; }
.exc__rew .stars { display: flex; gap: 1px; color: var(--star); font-size: 11px; }
.exc__rew a { color: var(--main); }
.exc__rew a:hover { text-decoration: underline; }
.empty { display: none; width: 100%; padding: 30px 0; text-align: center; font-size: 16px; }
.empty.is-on { display: block; }
@media (max-width: 1190px) { .exc { width: calc((100% - 40px) / 3); } }
@media (max-width: 880px) { .exc { width: calc((100% - 20px) / 2); } }
@media (max-width: 600px) {
  .excursions { justify-content: center; }
  .exc { width: 100%; max-width: 360px; }
  .cats { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: -15px; padding: 0 15px 4px; scrollbar-width: none; }
  .cat-chip { flex: none; }
}

/* =========================================================
   SEO-БЛОК
   ========================================================= */
.seo {
  padding: 3px 15px 20px; background: var(--white); border: 3px solid rgba(216,216,216,.3); border-radius: var(--r);
  box-shadow: 0 1px 4px rgba(0,0,0,.2), inset 0 0 10px rgba(0,0,0,.1); font-size: 14px; line-height: 1.6;
}
.seo h2 { margin: 15px 0; padding: 15px 10px; border-radius: 6px; background: var(--peach); font-size: 20px; font-weight: 700; line-height: 1.2; text-align: center; }
.seo p { margin: 10px 0; }
.seo ul { display: grid; gap: 2px; margin: 10px 0; }
.seo li { position: relative; padding-left: 20px; }
.seo li::before { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--main) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 8px no-repeat; }
@media (max-width: 768px) { .seo { padding: 3px 7px 16px; } .seo h2 { font-size: 17px; } }

/* =========================================================
   ФУТЕР
   ========================================================= */
.footer { position: relative; margin-top: 64px; padding: 40px 0; background: var(--panel); }
.footer::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px; background: url(../img/ornament.svg) center / 28px 14px repeat-x; }
.footer__wrap { display: flex; justify-content: space-between; gap: 30px; }
.footer__brand { max-width: 365px; }
.footer__company { margin: 12px 0 6px; font-size: 14px; }
.footer__legal { font-size: 10px; line-height: 1.2; }
.footer__legal a { text-decoration: underline; }
.footer__menu { width: 210px; display: grid; gap: 7px; font-size: 14px; }
.footer__menu a:hover { color: var(--main-dark); }
.footer__rates { width: 150px; display: grid; gap: 10px; align-content: start; }
.rate-box { padding: 8px 10px; border-radius: var(--r); background: var(--white); font-size: 12px; line-height: 1.3; }
.rate-box b { display: flex; align-items: center; gap: 4px; font-size: 16px; }
.rate-box .stars { color: var(--star); display: flex; font-size: 11px; }
.footer__contacts { width: 184px; }
.footer__contacts-title { font-size: 14px; }
.footer__contacts-hint { margin: 6px 0 10px; font-size: 12px; }
.footer__offer { margin-top: 12px; font-size: 10px; line-height: 1.2; }
.messengers { display: flex; gap: 12px; }
.messenger { position: relative; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 15px; transition: transform .2s; }
.messenger--tg { background: #29a9eb; }
.messenger--viber { background: #7360f2; }
.messenger--wa { background: #25d366; }
.messenger:hover { transform: scale(1.15); }
.tip {
  position: absolute; bottom: calc(100% + 6px); left: 50%; padding: 4px 5px 3px; border-radius: 5px; background: var(--panel);
  color: var(--text); font-size: 14px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.12);
  opacity: 0; visibility: hidden; transform: translate(-50%, 4px); transition: .2s; pointer-events: none;
}
.messenger:hover .tip { opacity: 1; visibility: visible; transform: translate(-50%) scale(.9); }
@media (max-width: 993px) { .footer__wrap { flex-wrap: wrap; } .footer__brand { flex: 1 1 100%; max-width: none; } }
@media (max-width: 768px) {
  .footer__wrap { flex-direction: column; gap: 24px; }
  .footer__menu, .footer__rates, .footer__contacts { width: auto; }
  .footer__rates { grid-template-columns: repeat(2, 1fr); }
}

/* Фиксированные элементы */
.side-msg { position: fixed; right: 10px; top: 50%; z-index: 50; display: flex; flex-direction: column; gap: 20px; transform: translateY(-20%); }
.side-msg .messenger { width: 34px; height: 34px; font-size: 19px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.side-msg .tip { bottom: auto; top: 50%; left: auto; right: calc(100% + 8px); transform: translate(4px, -50%); }
.side-msg .messenger:hover .tip { transform: translate(0, -50%); }
.to-top {
  position: fixed; left: 20px; bottom: 30px; z-index: 19; width: 50px; height: 50px; border-radius: 50%;
  background: var(--main-soft); border: 2px solid var(--main-border-soft); display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 10px; line-height: 1; color: #fff; opacity: 0; visibility: hidden; transition: .2s;
}
.to-top .i { font-size: 16px; margin-bottom: 2px; }
.to-top.is-on { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--main-dark); }
@media (max-width: 768px) { .side-msg { right: 8px; gap: 14px; } .to-top { left: 12px; bottom: 16px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   СТРАНИЦА ГОРОДА
   ========================================================= */
.promo { position: relative; overflow: hidden; height: 22px; margin-top: 8px; background: var(--main); color: #fff; font-size: 12px; line-height: 22px; white-space: nowrap; }
.header.is-min .promo { margin-top: 3px; }
.promo__track { display: inline-flex; gap: 48px; padding-left: 48px; animation: promo 40s linear infinite; }
.promo:hover .promo__track { animation-play-state: paused; }
@keyframes promo { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero--city { margin-top: 122px; }
.crumbs { display: flex; gap: 8px; margin-bottom: 14px; font-size: 13px; color: var(--grey-2); }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--main); }
.hero--city h1 { margin-bottom: 20px; }
.hero--city h1 span { display: block; }
.hero__h3 { max-width: 760px; margin: 0 auto 26px; font-size: 20px; line-height: 1.4; color: var(--grey-1); }
.hero__cta--show { display: inline-flex; min-width: 200px; white-space: nowrap; }
@media (max-width: 768px) {
  .promo { margin-top: 0; }
  .hero--city { margin-top: 72px; }
  .hero__h3 { font-size: 15px; margin-bottom: 20px; }
  .hero--city .hero__cta { margin: 10px auto 40px; }
}

/* Фото внутри заглушек */
.ph > img, .ph > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph > picture { display: contents; }
.ph.has-img::after { display: none; }
.ph.has-img { background: #dfe6ea; }
.hero__bg .ph.has-img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.45) 45%, rgba(255,255,255,0) 75%); }

/* =========================================================
   СТРАНИЦА ЭКСКУРСИИ
   ========================================================= */
.xp-wrap { padding-top: 150px; }
.crumbs--page { justify-content: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
.xp { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.xp__title { font-size: 36px; font-weight: 500; line-height: 1.2; margin-bottom: 12px; }
.xp__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 18px; font-size: 14px; }
.xp__meta .stars { display: flex; gap: 1px; color: var(--star); font-size: 13px; }
.xp__meta a { color: var(--main); text-decoration: underline; text-underline-offset: 3px; }
.xp__loc { display: inline-flex; align-items: center; gap: 4px; color: var(--grey-2); }
.xp__loc .i { color: var(--main); }
.xp__cat { color: var(--grey-3); font-size: 13px; }
.xp__badge { padding: 5px 10px 4px; border-radius: var(--r-xs); background: var(--grad-new); color: #fff; font-size: 13px; }
.xp__badge--hot { background: var(--grad-hot); }
.xp__gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; height: 420px; margin-bottom: 20px; }
.xp__main-ph, .xp__thumbs > .ph { border-radius: var(--r); overflow: hidden; }
.xp__thumbs { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }
.xp__facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.fact { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--card-border); border-radius: var(--r); background: #fff; font-size: 12px; color: var(--grey-3); }
.fact .i { font-size: 20px; color: var(--main); margin-bottom: 4px; }
.fact b { font-size: 15px; font-weight: 500; color: var(--text); line-height: 1.3; }
.xp__sec { margin-top: 34px; font-size: 16px; line-height: 1.6; }
.xp__sec p + p { margin-top: 12px; }
.xp__h2 { position: relative; margin-bottom: 16px; padding-bottom: 12px; font-size: 24px; font-weight: 700; line-height: 1.2; }
.xp__h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 84px; height: 7px; background: url(../img/ornament.svg) left center / 14px 7px repeat-x; }
.tl { position: relative; display: grid; gap: 14px; padding-left: 4px; counter-reset: none; }
.tl::before { content: ""; position: absolute; left: 76px; top: 8px; bottom: 8px; width: 2px; background: var(--card-border); }
.tl li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 28px; align-items: baseline; }
.tl li::before { content: ""; position: absolute; left: 67px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--main); }
.tl__time { font-weight: 700; color: var(--main); font-size: 15px; white-space: nowrap; }
.tl__text { font-size: 16px; }
.xp__note { margin-top: 12px; font-size: 13px; color: var(--grey-3); }
.xp__prices { max-width: 480px; }
.xp__prices td { font-size: 15px; }
.xp__two { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.ul-ok li, .ul-no li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 15px; }
.ul-ok .i { color: var(--forest); flex: none; margin-top: 4px; }
.ul-no .i { color: var(--main); flex: none; margin-top: 4px; }
.xp__meet { display: flex; gap: 12px; padding: 16px; border-radius: var(--r); background: var(--panel); font-size: 15px; }
.xp__meet > .i { font-size: 22px; color: var(--main); flex: none; margin-top: 2px; }
.brings { display: flex; flex-wrap: wrap; gap: 8px; }
.bring { padding: 8px 14px; border: 1px solid var(--card-border); border-radius: 20px; background: #fff; font-size: 14px; }
.xp__book { position: sticky; top: 130px; }
.book { padding: 22px; border: 2px solid var(--main); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-card); }
.book__from { font-size: 13px; color: var(--grey-3); }
.book__price { display: flex; align-items: baseline; gap: 10px; margin: 4px 0; font-size: 34px; font-weight: 500; color: var(--price); }
.xp__old { font-size: 17px; color: var(--grey-2); text-decoration: line-through; }
.book__child { font-size: 14px; color: var(--grey-2); }
.book__perks { display: grid; gap: 6px; margin: 16px 0; font-size: 14px; }
.book__perks li { display: flex; gap: 8px; align-items: center; }
.book__perks .i { color: var(--forest); }
.book__btn { width: 100%; }
.book__hint { margin: 12px 0 8px; font-size: 12px; color: var(--grey-3); text-align: center; }
.book__msg { justify-content: center; }
.book__msg .messenger { width: 36px; height: 36px; font-size: 20px; }
.mob-book { display: none; }
@media (max-width: 993px) {
  .xp { grid-template-columns: 1fr; }
  .xp__book { position: static; }
  .xp__facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .xp-wrap { padding-top: 92px; padding-bottom: 70px; }
  .xp__title { font-size: 24px; }
  .xp__gallery { grid-template-columns: 1fr; height: auto; }
  .xp__main-ph { aspect-ratio: 3 / 2; }
  .xp__thumbs { display: none; }
  .xp__two { grid-template-columns: 1fr; gap: 10px; }
  .xp__h2 { font-size: 20px; }
  .tl::before { left: 62px; }
  .tl li { grid-template-columns: 50px 1fr; gap: 26px; }
  .tl li::before { left: 53px; }
  .mob-book { position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 15px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--card-border); box-shadow: 0 -4px 14px rgba(0,0,0,.08); }
  .mob-book b { font-size: 22px; font-weight: 500; color: var(--price); }
  .mob-book__from { font-size: 13px; color: var(--grey-3); }
  .mob-book .btn { min-height: 44px; }
  .side-msg { bottom: 80px; top: auto; transform: none; }
  .to-top { bottom: 84px; }
}

/* ---------- Служебные страницы (О компании, Контакты, Блог, ...) ---------- */
.pg { padding-top: 150px; }
.pg__head { max-width: 860px; margin-bottom: 34px; }
.pg__head h1 { font-size: 36px; font-weight: 500; line-height: 1.2; margin: 0 0 14px; }
.pg__head .lead { font-size: 18px; line-height: 1.55; color: var(--grey-1); margin: 0; max-width: none; text-align: left; }
.pg__lead-wide { max-width: none; }
.prose { max-width: 860px; font-size: 16px; line-height: 1.65; }
.prose h2 { font-size: 26px; font-weight: 500; line-height: 1.25; margin: 40px 0 14px; }
.prose h3 { font-size: 19px; font-weight: 500; margin: 28px 0 10px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--main); }
.prose a { color: var(--main); }
.prose blockquote { margin: 20px 0; padding: 16px 22px; border-left: 4px solid var(--main); background: var(--panel); border-radius: 0 var(--r) var(--r) 0; font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--card-border); vertical-align: top; }
.prose th { font-weight: 500; color: var(--grey-3); font-size: 13px; }
.prose .ph { margin: 24px 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; height: auto; }
.prose .ph--sq { aspect-ratio: 3 / 2; }
.todo { background: #FFF6D6; border: 1px dashed #D9B44A; color: #6B5300; padding: 2px 6px; border-radius: 4px; font-size: .92em; white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 34px 0; }
.stat { padding: 22px 20px; border: 1px solid var(--card-border); border-radius: var(--r); background: #fff; }
.stat b { display: block; font-family: var(--font-cond); font-size: 40px; line-height: 1; color: var(--main); margin-bottom: 8px; }
.stat span { font-size: 14px; color: var(--grey-3); line-height: 1.35; display: block; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; margin: 24px 0; }
.step { position: relative; padding: 24px 20px 20px; border: 1px solid var(--card-border); border-radius: var(--r); background: #fff; counter-increment: step; }
.step::before { content: counter(step); position: absolute; top: -14px; left: 18px; width: 28px; height: 28px; border-radius: 50%; background: var(--main); color: #fff; font-weight: 500; display: grid; place-items: center; font-size: 14px; }
.step b { display: block; font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.step p { margin: 0; font-size: 14px; color: var(--grey-2); line-height: 1.5; }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 24px 0; }
.person { border: 1px solid var(--card-border); border-radius: var(--r); background: #fff; overflow: hidden; }
.person .ph { aspect-ratio: 4 / 5; height: auto; }
.person__body { padding: 16px 18px 18px; }
.person b { display: block; font-size: 16px; font-weight: 500; }
.person small { display: block; color: var(--main); margin: 4px 0 8px; font-size: 13px; }
.person p { margin: 0; font-size: 14px; color: var(--grey-2); line-height: 1.5; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.two > .ph { aspect-ratio: 4 / 3; height: auto; border-radius: var(--r); overflow: hidden; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0; }
.card { padding: 22px 20px; border: 1px solid var(--card-border); border-radius: var(--r); background: #fff; }
.card .i { font-size: 28px; color: var(--main); margin-bottom: 12px; }
.card b { display: block; font-size: 17px; font-weight: 500; margin-bottom: 8px; line-height: 1.3; }
.card p { margin: 0; font-size: 14px; color: var(--grey-2); line-height: 1.5; }
.card a.btn { margin-top: 14px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0; }
.contact { padding: 22px 20px; border: 1px solid var(--card-border); border-radius: var(--r); background: #fff; display: flex; flex-direction: column; gap: 6px; }
.contact .i { font-size: 26px; color: var(--main); margin-bottom: 6px; }
.contact small { color: var(--grey-3); font-size: 13px; }
.contact b { font-size: 20px; font-weight: 500; }
.contact a { color: var(--text); text-decoration: none; }
.contact a:hover { color: var(--main); }
.contact .messengers { justify-content: flex-start; margin-top: 6px; }
.map { aspect-ratio: 21 / 9; height: auto; border-radius: var(--r); overflow: hidden; margin: 24px 0; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 24px 0; }
.post { display: flex; flex-direction: column; border: 1px solid var(--card-border); border-radius: var(--r); background: #fff; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.post:hover { box-shadow: 0 8px 24px rgba(31, 35, 40, .1); transform: translateY(-2px); }
.post .ph { aspect-ratio: 16 / 10; height: auto; }
.post__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post__meta { display: flex; gap: 12px; font-size: 12px; color: var(--grey-3); }
.post__meta b { color: var(--main); font-weight: 500; }
.post__title { font-size: 17px; font-weight: 500; line-height: 1.3; margin: 0; }
.post__title a { color: var(--text); text-decoration: none; }
.post__title a:hover { color: var(--main); }
.post__text { margin: 0; font-size: 14px; color: var(--grey-2); line-height: 1.5; }
.post--soon .post__body { opacity: .75; }  /* приглушаем только текст, фото остаётся ярким */
.post--soon .post__title { color: var(--grey-2); }
.soon { display: inline-block; background: var(--panel); color: var(--grey-3); font-size: 11px; padding: 3px 8px; border-radius: 20px; margin-top: auto; align-self: flex-start; }
.art { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.art__aside { position: sticky; top: 100px; }
.toc { padding: 18px 20px; border: 1px solid var(--card-border); border-radius: var(--r); background: var(--panel); font-size: 14px; }
.toc b { display: block; margin-bottom: 10px; font-weight: 500; }
.toc a { display: block; color: var(--text); text-decoration: none; padding: 5px 0; border-top: 1px solid var(--card-border); }
.toc a:hover { color: var(--main); }
.art__cta { margin-top: 20px; padding: 20px; border-radius: var(--r); background: var(--peach); }
.art__cta b { display: block; font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.art__cta p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0; }
.rev-grid .review { width: auto; flex: none; padding: 0; }
.legal { max-width: 860px; font-size: 15px; line-height: 1.65; }
.legal h2 { font-size: 20px; font-weight: 500; margin: 32px 0 10px; }
.legal p, .legal li { margin: 0 0 10px; }
.legal ol { padding-left: 22px; }
.legal__meta { color: var(--grey-3); font-size: 13px; margin-bottom: 24px; }
/* Компонент «информационный проект» на обзорных страницах (src/build.py, info_note) */
.info-note { max-width: 860px; padding: 14px 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--card-border); border-left: 4px solid var(--forest); color: var(--grey-1); font-size: 15px; line-height: 1.55; margin: 0 0 28px; }
.info-note p { margin: 0; }
.notice { padding: 14px 18px; border-radius: var(--r); background: #FFF6D6; border: 1px solid #E9D48A; color: #6B5300; font-size: 14px; line-height: 1.5; margin: 0 0 24px; }
.tbl-wrap { overflow-x: auto; }
@media (max-width: 991px) {
  .pg { padding-top: 110px; }
  .stats, .steps, .team { grid-template-columns: repeat(2, 1fr); }
  .cards, .contact-grid, .posts, .rev-grid { grid-template-columns: repeat(2, 1fr); }
  .two, .art { grid-template-columns: minmax(0, 1fr); }
  .art > *, .two > * { min-width: 0; }
  .art__aside { position: static; }
}
@media (max-width: 600px) {
  .pg { padding-top: 84px; }
  .pg__head h1 { font-size: 26px; }
  .pg__head .lead { font-size: 16px; }
  .prose { font-size: 15px; }
  .prose h2 { font-size: 22px; }
  .prose table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .prose caption { text-align: left; padding: 0 0 6px; font-size: 13px; color: var(--grey-3); }
  .prose th, .prose td { min-width: 96px; font-size: 14px; }
  .stats, .steps, .team, .cards, .contact-grid, .posts, .rev-grid { grid-template-columns: 1fr; }
  .stat b { font-size: 32px; }
}
