/* =====================================================================
   ДИЗАЙН-СИСТЕМА сайта «Практика» — единый CSS (палитра hero: бордо/крем).
   Один источник стилей для всех страниц: токены + базовые элементы +
   ~35 стандартных компонентов. Витрина — /tech/ui.
   ===================================================================== */

:root{
  /* палитра (с hero) */
  --bg:#f8f3ee; --bg-warm:#f2e8e2; --surface:#fffdfb;
  --ink:#2a1216; --muted:#8a6f72; --line:#e8dad3;
  --burgundy:#7e1622; --burgundy-d:#560d17;
  --red:#c2362f; --red-deep:#9c0a1c; --gold:#b88a5a; --green:#6e7f45;

  /* семантические алиасы (обратная совместимость со старой разметкой) */
  --brand:var(--burgundy); --brand-light:var(--burgundy-d);
  --brown:var(--burgundy); --brown-soft:#9a3b2a; --orange:var(--red);
  --card:var(--surface); --text:var(--ink);

  --font-head:'Montserrat',-apple-system,'Segoe UI',sans-serif;
  --font-body:'Inter',-apple-system,'Segoe UI',sans-serif;

  --radius:20px; --radius-sm:13px; --radius-lg:26px;
  --shadow:0 14px 36px -16px rgba(86,13,23,.18);
  --shadow-lg:0 26px 60px -28px rgba(42,18,22,.34);
  --maxw:1400px; --gut:clamp(20px,5vw,72px);
  --ease:cubic-bezier(.22,.61,.36,1);
}

*{ box-sizing:border-box; }
body{ margin:0; background:var(--bg); color:var(--ink); font-family:var(--font-body); font-size:18px; line-height:1.7; -webkit-font-smoothing:antialiased; }
img,svg{ display:block; max-width:100%; }
a{ color:var(--burgundy); text-decoration:none; }
::selection{ background:rgba(126,22,34,.14); }

h1,h2,h3,h4{ font-family:var(--font-head); color:var(--burgundy); line-height:1.15; letter-spacing:-.01em; margin:0 0 .5em; }
h1{ font-size:clamp(32px,4.4vw,52px); }
h2{ font-size:clamp(26px,3.2vw,38px); }
h3{ font-size:21px; }
p{ margin:0 0 1em; }

/* ── layout ── */
.wrap{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:22px; }
/* Bootstrap-сетка: базовая ширина контейнера сайта = 1400px на xxl */
@media (min-width:1400px){ .container, .container-xxl{ max-width:1400px; } }
main{ margin:0; }
body.site main{ max-width:none; margin:0; padding:0; }   /* страницы сайта — на всю ширину */
.section{ padding:64px 0; }
.section.warm{ background:var(--bg-warm); }
.section .head{ text-align:center; max-width:760px; margin:0 auto 40px; }
.section .head h2{ margin:0 0 12px; }
.section .head p{ color:var(--muted); font-size:19px; margin:0; }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:30px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.center{ text-align:center; }
.mt-30{ margin-top:30px; }

/* 1 ── кнопки ── */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:10px; font-family:var(--font-head); font-weight:600; font-size:16px; padding:15px 30px; border-radius:999px; border:1.5px solid transparent; cursor:pointer; text-decoration:none; transition:transform .2s var(--ease), box-shadow .25s, background .2s, color .2s; }
.btn-primary{ background:var(--burgundy); color:#fff; box-shadow:0 14px 34px -14px rgba(86,13,23,.7); }
.btn-primary:hover{ transform:translateY(-2px); background:var(--burgundy-d); box-shadow:0 22px 44px -16px rgba(86,13,23,.8); }
.btn-ghost{ background:transparent; color:var(--burgundy); border-color:var(--line); }
.btn-ghost:hover{ border-color:var(--burgundy); transform:translateY(-2px); }
.btn-light{ background:rgba(255,255,255,.16); color:#fff; border-color:rgba(255,255,255,.55); }
.btn-light:hover{ background:#fff; color:var(--burgundy); }
.btn-sm{ padding:10px 20px; font-size:14px; }
.btn-lg{ padding:18px 38px; font-size:17px; }
/* обёртка «на тёмном» (десктоп inline, мобильный — блок во всю ширину) */
.on-dark{ display:inline-block; background:var(--burgundy); padding:14px; border-radius:14px; }

/* 2 ── бейджи / чипы — единая высота (Хит/Новинка = стандарт) ── */
.badge,.chip{ display:inline-block; font-family:var(--font-head); font-weight:600; font-size:13px; line-height:1.4; padding:6px 15px; border-radius:99px; border:0; background:var(--burgundy); color:#fff; vertical-align:middle; }
.badge{ letter-spacing:.06em; text-transform:uppercase; }
.badge.gold,.chip.gold{ background:var(--gold); } .chip.soft{ background:rgba(126,22,34,.09); color:var(--burgundy); }
.chip-row{ display:flex; flex-wrap:wrap; gap:9px; }

/* 3 ── карточки ── */
.card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:26px; box-shadow:var(--shadow); }
.card-photo{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); text-decoration:none; color:var(--ink); display:block; transition:transform .18s, box-shadow .18s; }
.card-photo:hover{ transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.card-photo .ph{ aspect-ratio:3/2; overflow:hidden; }
.card-photo .ph img{ width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.card-photo:hover .ph img{ transform:scale(1.05); }
.card-photo .body{ padding:18px 22px 22px; }
.card-photo .body h3{ margin:0 0 6px; }
.card-photo .body p{ margin:0; color:var(--muted); font-size:15.5px; }

/* 4 ── фича (иконка+текст) ── */
.feature{ background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:26px; box-shadow:var(--shadow); }
.feature .ic{ font-size:28px; }
.feature h3{ font-size:19px; margin:12px 0 6px; }
.feature p{ margin:0; color:var(--muted); font-size:15.5px; }

/* 5 ── статистика ── */
.stat{ text-align:center; }
.stat b{ display:block; font-family:var(--font-head); font-weight:800; font-size:42px; color:var(--burgundy); line-height:1; }
.stat span{ color:var(--muted); font-size:15.5px; }
.stat-band{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }

/* 6 ── списки ── */
.list-check{ list-style:none; padding:0; margin:0; }
.list-check li{ position:relative; padding-left:30px; margin:11px 0; }
.list-check li::before{ content:"✓"; position:absolute; left:0; top:1px; color:#fff; background:var(--burgundy); width:20px; height:20px; border-radius:50%; font-size:12px; display:grid; place-items:center; }
.list-dot{ list-style:none; padding:0; margin:0; }
.list-dot li{ position:relative; padding-left:26px; margin:9px 0; }
.list-dot li::before{ content:"✦"; position:absolute; left:0; color:var(--gold); }

/* 7 ── нумерованные шаги ── */
.steps{ list-style:none; counter-reset:s; padding:0; margin:0; display:grid; gap:16px; }
.steps li{ counter-increment:s; position:relative; padding:18px 22px 18px 64px; background:var(--surface); border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); }
.steps li::before{ content:counter(s); position:absolute; left:18px; top:16px; width:32px; height:32px; border-radius:50%; background:var(--burgundy); color:#fff; font-family:var(--font-head); font-weight:700; display:grid; place-items:center; }
.steps li b{ display:block; font-family:var(--font-head); color:var(--burgundy); }

/* 8 ── FAQ-аккордеон (десктоп — 2 колонки) ── */
.faq{ display:grid; grid-template-columns:1fr 1fr; gap:12px; align-items:start; }
.faq details{ background:var(--surface); border:1px solid var(--line); border-radius:14px; margin:0; padding:0 20px; box-shadow:var(--shadow); height:max-content; }
.faq summary{ cursor:pointer; font-family:var(--font-head); font-weight:600; font-size:18px; color:var(--burgundy); padding:18px 0; list-style:none; display:flex; justify-content:space-between; gap:12px; align-items:center; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; color:var(--red); font-size:24px; }
.faq details[open] summary::after{ content:"–"; }
.faq details p{ margin:0 0 18px; font-size:16px; }
/* плавное раскрытие ответа FAQ (современные браузеры) */
@supports(interpolate-size:allow-keywords){
  :root{ interpolate-size:allow-keywords; }
  .faq details::details-content{ height:0; overflow:hidden; transition:height .35s var(--ease), content-visibility .35s allow-discrete; }
  .faq details[open]::details-content{ height:auto; }
}
/* таблица: горизонтальный скролл, не вылезает за экран */
.table-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.table-scroll::-webkit-scrollbar{ height:6px; } .table-scroll::-webkit-scrollbar-thumb{ background:var(--line); border-radius:3px; }

/* 9 ── таблица ── */
.table{ width:100%; border-collapse:collapse; background:var(--surface); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
.table th,.table td{ padding:14px 18px; text-align:left; border-bottom:1px solid var(--line); }
.table th{ background:var(--bg-warm); font-family:var(--font-head); font-size:14px; color:var(--burgundy); }
.table tr:last-child td{ border-bottom:0; }

/* 10 ── тариф / прайс ── */
.tariff{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:30px 26px; box-shadow:var(--shadow); text-align:center; position:relative; }
.tariff.featured{ border:2px solid var(--burgundy); }
.tariff .tname{ font-family:var(--font-head); font-weight:600; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; font-size:13px; }
.tariff .tprice{ font-family:var(--font-head); font-weight:800; font-size:40px; color:var(--burgundy); margin:8px 0; }
.tariff ul{ list-style:none; padding:0; margin:16px 0 22px; text-align:left; }
.tariff ul li{ padding:7px 0 7px 26px; position:relative; border-top:1px solid var(--line); }
.tariff ul li::before{ content:"✓"; position:absolute; left:0; color:var(--burgundy); }

/* 11 ── оффер (с меткой) ── */
.offers{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.offer{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:28px 24px; box-shadow:var(--shadow); text-align:center; }
.offer.hot{ border:2px solid var(--burgundy); position:relative; }
.offer .tag{ position:absolute; top:-13px; left:50%; transform:translateX(-50%); background:var(--burgundy); color:#fff; font-family:var(--font-head); font-weight:600; font-size:12px; padding:5px 14px; border-radius:99px; }
.offer .price{ font-family:var(--font-head); font-weight:800; font-size:34px; color:var(--burgundy); margin:8px 0 4px; }
.offer h3{ margin:0 0 8px; } .offer p{ color:var(--muted); font-size:16px; margin:0 0 16px; }

/* 12 ── отзыв ── */
.review{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow); }
.review .stars{ color:var(--gold); font-size:16px; }
.review p{ font-size:16px; margin:10px 0 14px; }
.review .who{ font-family:var(--font-head); font-weight:600; color:var(--burgundy); }
.reviews{ display:grid; grid-auto-flow:column; grid-auto-columns:minmax(320px,1fr); gap:20px; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:10px; }
.reviews .review{ scroll-snap-align:start; }

/* 13 ── тренер ── */
.tcard{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
.tcard .ph{ aspect-ratio:3/4; overflow:hidden; } .tcard .ph img{ width:100%; height:100%; object-fit:cover; }
.tcard .body{ padding:16px 18px 20px; } .tcard h3{ margin:0 0 4px; font-size:18px; } .tcard p{ margin:0; color:var(--muted); font-size:14.5px; }

/* 14 ── направление (каталог) ── */
.dir-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.dir{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); text-decoration:none; color:var(--ink); display:block; transition:transform .18s, box-shadow .18s; }
.dir:hover{ transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.dir .img{ aspect-ratio:3/2; overflow:hidden; } .dir .img img{ width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.dir:hover .img img{ transform:scale(1.05); }
.dir .body{ padding:18px 20px 22px; } .dir .body h3{ margin:0 0 6px; } .dir .body p{ margin:0; color:var(--muted); font-size:15.5px; }
.dir .body .more{ color:var(--red); font-weight:600; font-size:15px; margin-top:10px; display:inline-block; }

/* 15 ── конвейер ── */
.conveyor{ overflow-x:auto; overflow-y:hidden; padding:8px 0; cursor:grab; touch-action:pan-x; scrollbar-width:none; -ms-overflow-style:none;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 9%,#000 91%,transparent 100%); mask-image:linear-gradient(90deg,transparent 0,#000 9%,#000 91%,transparent 100%); }
.conveyor::-webkit-scrollbar{ display:none; } .conveyor.grabbing{ cursor:grabbing; }
.conveyor__track{ display:flex; gap:16px; width:max-content; }
.conv-card{ width:198px; flex:none; text-decoration:none; color:var(--ink); }
.conv-card .img{ display:block; aspect-ratio:1/1; border-radius:18px; overflow:hidden; box-shadow:var(--shadow); }
.conv-card .img img{ width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.conv-card:hover .img img{ transform:scale(1.06); }
.conv-card .cap{ display:block; text-align:center; margin-top:11px; font-family:var(--font-head); font-weight:600; font-size:16px; color:var(--burgundy); }

/* 16 ── мини-герой внутренней страницы ── */
.subhero{ background:radial-gradient(120% 130% at 85% 10%, rgba(255,200,120,.22) 0%, transparent 55%), linear-gradient(135deg, var(--red) 0%, var(--burgundy) 55%, var(--burgundy-d) 100%); color:#fff; padding:64px 0; }
.subhero h1{ color:#fff; margin:0 0 12px; }
.subhero p{ color:rgba(255,255,255,.92); font-size:19px; max-width:46ch; margin:0; }

/* 17 ── хлебные крошки ── */
.crumbs{ font-size:14px; color:var(--muted); padding:16px 0; }
.crumbs a{ color:var(--muted); } .crumbs a:hover{ color:var(--burgundy); }
.crumbs span{ margin:0 8px; opacity:.6; }

/* 18 ── сплит текст+фото ── */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:center; }
.split .ph{ border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
.split .ph img{ width:100%; display:block; aspect-ratio:4/3; object-fit:cover; }

/* 19 ── цитата ── */
.quote{ border-left:4px solid var(--burgundy); background:var(--surface); border-radius:0 14px 14px 0; padding:20px 26px; margin:20px 0; box-shadow:var(--shadow); }
.quote p{ font-size:19px; font-style:italic; margin:0 0 10px; }
.quote .author{ font-family:var(--font-head); font-weight:600; color:var(--burgundy); font-size:15px; }

/* 20 ── алерт / заметка ── */
.note{ border-radius:14px; padding:16px 20px; border:1px solid; }
.note.info{ background:#eef4f8; border-color:#cfe0ec; color:#234; }
.note.warn{ background:#fff7e6; border-color:#f0e2b8; color:#7a5b12; }
.note.ok{ background:#eef7ed; border-color:#cfe6cb; color:#2c5226; }

/* 21 ── контакт-карточка ── */
.contact{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:24px 26px; box-shadow:var(--shadow); }
.contact h3{ margin:0 0 8px; } .contact .addr{ color:var(--ink); } .contact .tel{ font-family:var(--font-head); font-weight:700; color:var(--burgundy); font-size:18px; }

/* 22 ── карта ── */
.map-wrap{ border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); box-shadow:var(--shadow); }
.map-wrap iframe{ display:block; width:100%; height:380px; border:0; }

/* 23 ── мессенджеры ── */
.msgs{ display:flex; gap:12px; flex-wrap:wrap; }
.msg{ display:inline-flex; align-items:center; gap:8px; padding:11px 18px; border-radius:12px; text-decoration:none; font-family:var(--font-head); font-weight:600; font-size:15px; color:#fff; }
.msg.wa{ background:#25D366; } .msg.vk{ background:#0077FF; } .msg.tg{ background:#2AABEE; }

/* 24 ── CTA-полоса ── */
.band{ color:#fff; text-align:center; padding:56px 0; background:radial-gradient(120% 160% at 20% 0%, rgba(255,210,130,.22), transparent 60%), linear-gradient(120deg, var(--red) 0%, var(--burgundy) 100%); }
.band h2{ color:#fff; margin:0 0 12px; } .band p{ font-size:19px; color:rgba(255,255,255,.92); margin:0 0 26px; }
.band .cta{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* 25 ── ценности (value) ── */
.value-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.value{ background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:24px; box-shadow:var(--shadow); }
.value .ic{ font-size:26px; } .value h3{ font-size:19px; margin:10px 0 6px; } .value p{ color:var(--muted); font-size:15.5px; margin:0; }

/* 26 ── легенда уровней ── */
.levels{ display:flex; gap:16px; flex-wrap:wrap; justify-content:center; }
.level{ display:inline-flex; align-items:center; gap:8px; font-size:15px; } .level i{ width:14px; height:14px; border-radius:50%; }

/* 27 ── аватар: крупный круг, фото целиком внутри (не обрезается) ── */
.avatar{ width:96px; height:96px; border-radius:50%; object-fit:contain; background:var(--bg-warm); border:3px solid var(--line); box-shadow:var(--shadow); padding:4px; }

/* ── лайтбокс — ПЛАВНОЕ открытие (fade + scale) ── */
.lightbox{ position:fixed; inset:0; z-index:9999; background:rgba(20,8,8,.93); display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; transition:opacity .4s var(--ease), visibility .4s; }
.lightbox.on{ opacity:1; visibility:visible; }
.lightbox img{ max-width:92vw; max-height:88vh; border-radius:12px; box-shadow:0 24px 70px rgba(0,0,0,.55);
  transform:scale(.82); opacity:0; transition:transform .5s var(--ease), opacity .4s var(--ease); }
.lightbox.on img{ transform:scale(1); opacity:1; }
.lightbox button{ position:absolute; background:rgba(255,255,255,.14); color:#fff; border:0; cursor:pointer; border-radius:50%; line-height:1; transition:background .2s, transform .2s; }
.lightbox button:hover{ background:rgba(255,255,255,.28); transform:scale(1.08); }
.lb-close{ top:18px; right:18px; width:46px; height:46px; font-size:26px; }
.lb-prev,.lb-next{ top:50%; transform:translateY(-50%); width:54px; height:54px; font-size:30px; }
.lb-prev:hover,.lb-next:hover{ transform:translateY(-50%) scale(1.08); }
.lb-prev{ left:14px; } .lb-next{ right:14px; }

/* 28 ── галерея-масонри: картинки целиком, без обрезки, шахматная раскладка ── */
.gallery{ column-count:4; column-gap:14px; }
.gallery img{ width:100%; height:auto; display:block; margin:0 0 14px; border-radius:14px; box-shadow:var(--shadow);
  break-inside:avoid; cursor:pointer; transition:transform .42s var(--ease), box-shadow .42s var(--ease); }
.gallery img:hover{ transform:scale(1.03) rotate(-.5deg); box-shadow:var(--shadow-lg); }
@media(max-width:991px){ .gallery{ column-count:3; } }

/* 29 ── разделитель-волна ── */
.wave{ display:block; width:100%; height:60px; }

/* 30 ── факты (мелкие) ── */
.facts{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.fact{ background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:26px 20px; text-align:center; box-shadow:var(--shadow); }
.fact b{ display:block; font-family:var(--font-head); font-size:38px; color:var(--burgundy); line-height:1; margin-bottom:8px; }
.fact span{ color:var(--muted); font-size:16px; }

/* 31 ── иконка-список (горизонт) ── */
.iconlist{ display:flex; gap:26px; flex-wrap:wrap; }
.iconlist .it{ display:flex; align-items:center; gap:10px; font-size:15px; color:var(--muted); }
.iconlist .it b{ color:var(--ink); font-family:var(--font-head); }

/* 32 ── подвал (кроваво-бордовый) ── */
.foot{ background:linear-gradient(165deg,#6a0d14 0%,#48070d 100%); color:#f3e7d8; padding:48px 0 30px; }
.foot-logo{ width:54px; height:54px; margin-bottom:14px; }
.foot a{ color:#f3e7d8; } .foot a:hover{ color:#fff; text-decoration:underline; }
.foot .cols{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:34px; }
.foot h4{ font-family:var(--font-head); color:#fff; font-size:17px; margin:0 0 14px; }
.foot .brand-f{ font-family:var(--font-head); font-weight:700; font-size:22px; color:#fff; margin-bottom:8px; }
.foot .muted{ color:#cdb79f; font-size:14px; }
.foot .bottom{ border-top:1px solid rgba(255,255,255,.15); margin-top:30px; padding-top:18px; color:#cdb79f; font-size:14px; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
/* расширенный подвал */
.site-foot .foot-cta{ display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; padding:6px 0 28px; margin-bottom:28px; border-bottom:1px solid rgba(255,255,255,.15); }
.site-foot .foot-grid{ display:grid; grid-template-columns:2fr 1fr 1fr 1.3fr; gap:34px; }
.site-foot .foot-list{ list-style:none; padding:0; margin:0; }
.site-foot .foot-list li{ margin:7px 0; }
.site-foot .bottom a{ color:#cdb79f; text-decoration:underline; }
@media(max-width:991px){ .site-foot .foot-grid{ grid-template-columns:1fr 1fr; } }
@media(max-width:575.98px){
  .site-foot .foot-cta{ flex-direction:column; align-items:stretch; text-align:center; }
  .site-foot .foot-cta .btn{ width:100%; }
  .site-foot .foot-grid{ grid-template-columns:1fr; gap:24px; }
}

/* 33 ── обычный текст ── */
.prose{ max-width:760px; } .prose p{ font-size:18px; } .prose a{ text-decoration:underline; }

/* dev-пометка */
.dev-note{ display:inline-block; font-size:12.5px; background:#FFF3D6; color:#8a6d1f; border:1px solid #ecd9a3; border-radius:8px; padding:3px 10px; }

@media(prefers-reduced-motion:reduce){ .conveyor__track{ flex-wrap:wrap; } }

/* ── ДЕСКТОП-УЛУЧШЕНИЯ ── */
/* десктоп-сетки для тарифов и команды (на мобильном — горизонтальный скролл) */
.tariffs{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.team-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
/* тарифы/офферы: кнопка всегда по нижнему краю (карточки равной высоты в grid) + ховер */
.tariff,.offer{ display:flex; flex-direction:column; }
.tariff > .btn,.offer > .btn{ margin-top:auto; }
.tariff,.offer,.tcard{ transition:transform .18s var(--ease), box-shadow .18s var(--ease); }
.tariff:hover,.offer:hover,.tcard:hover{ transform:translateY(-5px); box-shadow:var(--shadow-lg); }
.tariff:hover > .btn,.offer:hover .btn{ transform:translateY(-2px); }
.tcard .ph img{ transition:transform .4s; } .tcard:hover .ph img{ transform:scale(1.05); }
.tcard .more,.dir .body .more{ display:inline-block; margin-top:10px; color:var(--red); font-weight:600; font-size:15px; transition:transform .2s; }
.tcard:hover .more,.dir:hover .body .more{ transform:translateX(4px); }
.tcard .body{ display:flex; flex-direction:column; }

/* subhero: текст слева + крупная кнопка справа (десктоп) */
.subhero .wrap{ display:flex; align-items:center; justify-content:space-between; gap:36px; flex-wrap:wrap; }
.subhero .sh-text{ flex:1 1 340px; min-width:0; }
.subhero .sh-cta{ flex:none; }

.zoomable{ cursor:pointer; }

/* секция-заголовок с выравниванием влево */
.head.left{ text-align:left; max-width:none; margin-left:0; }
.head.left h2{ font-size:clamp(28px,3.6vw,42px); }

@media(max-width:991px){
  .grid-2,.grid-3,.grid-4,.value-grid,.stat-band,.facts{ grid-template-columns:1fr 1fr; }
  .split{ grid-template-columns:1fr; } .foot .cols{ grid-template-columns:1fr 1fr; }
}

/* ── МОБИЛЬНЫЕ (xs ≤575) ── текст +15%, кнопки на всю ширину, карусели ── */
@media(max-width:575.98px){
  body{ font-size:23px; }   /* 18 → +15% → ещё +10% ≈ +27% */
  .section{ padding:44px 0; }
  h1{ font-size:clamp(38px,10vw,48px); } h2{ font-size:clamp(29px,7.7vw,38px); } h3{ font-size:26px; }
  .subhero h1{ font-size:clamp(35px,9.3vw,44px); }
  p,.list-check li,.list-dot li,.steps li,.card p,.feature p,.value p,.offer p,.review p,
  .dir .body p,.contact .addr,.note,.tariff ul li,.table th,.table td{ font-size:20px; }
  .section .head p,.subhero p,.quote p,.feature h3,.value h3,.contact h3{ font-size:24px; }
  .btn{ width:100%; font-size:20px; } .btn-sm{ font-size:18px; }
  .badge{ font-size:14px; } .chip{ font-size:18px; }
  .stat b,.fact b{ font-size:50px; } .stat span,.fact span{ font-size:20px; }
  .faq summary{ font-size:23px; } .faq details p{ font-size:20px; }
  .tariff .tprice,.offer .price{ font-size:46px; } .tariff .tname{ font-size:17px; }
  .review .who,.dir .body .more,.tcard .more,.msg,.level,.conv-card .cap,.crumbs{ font-size:19px; }
  .contact .tel{ font-size:23px; } .tcard h3{ font-size:24px; } .tcard p{ font-size:18px; }

  /* статистика — матрица 2×2; факты — 4 ряда во всю ширину; карточки/фичи — во всю ширину */
  .stat-band{ grid-template-columns:1fr 1fr; }
  .facts{ grid-template-columns:1fr; }
  .grid-2,.grid-3,.value-grid{ grid-template-columns:1fr; }
  /* FAQ — в один столбец на мобильном */
  .faq{ grid-template-columns:1fr; }

  /* кнопки/мессенджеры — на всю ширину, столбиком с отступом */
  .band .cta,.msgs,.subhero .wrap,.cta-stack{ display:flex; flex-direction:column; align-items:stretch; gap:12px; }
  .msg{ width:100%; justify-content:center; font-size:17px; }
  .subhero .sh-cta .btn{ width:100%; }
  .on-dark{ display:block; width:100%; } .on-dark .btn{ width:100%; }

  /* карусели влево-вправо: офферы, тарифы, команда, направления, фото-карточки */
  .offers,.dir-grid,.tariffs,.team-grid,.cards-scroll{
    display:flex; grid-template-columns:none;
    overflow-x:auto; gap:14px; scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch; padding-bottom:10px; }
  .offers::-webkit-scrollbar,.dir-grid::-webkit-scrollbar,.tariffs::-webkit-scrollbar,
  .team-grid::-webkit-scrollbar,.cards-scroll::-webkit-scrollbar{ display:none; }
  .offers > *,.dir-grid > *,.tariffs > *,.team-grid > *,.cards-scroll > *{
    flex:0 0 82%; scroll-snap-align:start; }

  /* галерея на мобильном — горизонтальный скролл, картинки целиком (без обрезки) */
  .gallery{ column-count:initial; display:flex; overflow-x:auto; gap:12px; padding-bottom:8px; scroll-snap-type:x mandatory; }
  .gallery::-webkit-scrollbar{ display:none; }
  .gallery img{ flex:0 0 auto; width:auto; height:230px; margin:0; scroll-snap-align:start; }

  /* отзывы: убрать видимую полоску прокрутки */
  .reviews{ scrollbar-width:none; } .reviews::-webkit-scrollbar{ display:none; }

  /* сплит на мобильном — пунктирная рамка с лёгким фоном */
  .split.framed{ border:1.5px dashed var(--line); border-radius:16px; padding:16px; background:var(--bg-warm); }
}
