/* ==========================================================================
   АСТАНАСТРОЙДОМ — общие стили сайта.
   Структура и сетка повторяют gbg.kz (разбор: skills/design-references/
   references/10-gbg-home.md), палитра — зелёная, от логотипа ASD.
   Страница ЖК подключает дополнительно css/zhk.css.
   ========================================================================== */

:root {
  /* Палитра */
  --ground:  #EEF2EF;   /* фон страницы, светло-серый с зелёным оттенком */
  --surface: #FFFFFF;   /* карточки, шапка, футер */
  --ink:     #1B3D27;   /* заголовки, глубокий зелёный */
  --ink-2:   #2B5A3A;   /* второй цвет градиентных плашек */
  --brand:   #3E7449;   /* зелёный логотипа: кнопки, чипы, ссылки */
  --brand-hover: #345F3C;
  --brand-soft: #E3F0E7;/* светло-зелёная подложка */
  --accent:  #F08A24;   /* главная кнопка: тёплый оранжевый */
  --accent-hover: #D9751A;
  --muted:   #5E6B63;   /* основной текст */
  --line:    #DCE4DE;
  --gold:    #F6E7A1;   /* чип «Рассрочка» */
  --gradient: linear-gradient(270deg, var(--ink-2) 0%, var(--ink) 100%);

  --font: 'Manrope', Arial, sans-serif;

  /* Сетка референса */
  --container: 1332px;
  --gutter: 16px;
  --section-gap: 80px;
  --header-h: 131px;

  /* Один радиус карточек и один радиус кнопок — у референса их четыре и пять */
  --r-card: 20px;
  --r-image: 20px;
  --r-btn: 8px;
  --r-pill: 30px;

  --ease: 0.2s ease-in-out;
  --t-btn: background-color .2s ease-in-out, color .2s ease-in-out,
           border-color .2s ease-in-out, box-shadow .2s ease-in-out;
  --t-color: color .2s ease-in-out, border-color .2s ease-in-out;
}

/* --- Сброс --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* overflow-x на html ставить нельзя: html становится скролл-контейнером,
   ломаются window.scrollTo и IntersectionObserver. Клип — только на body. */
html { scroll-behavior: smooth; -webkit-tap-highlight-color: rgba(46, 125, 78, .15); }
body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--ground);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: 0.3px;
  color: var(--muted);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
picture { display: contents; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
b, strong { font-weight: 700; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: calc(var(--gutter) + env(safe-area-inset-left));
  padding-right: calc(var(--gutter) + env(safe-area-inset-right));
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
.feedback :where(a, button, input):focus-visible,
.modal :where(a, button, input):focus-visible,
.company :where(a, button):focus-visible,
.hero__card :where(a, button):focus-visible { outline-color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 300;
  background: var(--ink); color: #fff; padding: 12px 20px;
  border-radius: var(--r-btn); font-size: 15px;
  transition: top .2s ease-in-out;
}
.skip-link:focus { top: 16px; }

/* Шапка фиксированная — цель якоря опускаем, чтобы заголовок не уезжал под неё */
:target, [id] { scroll-margin-top: calc(var(--header-h) + 20px); }

/* Первая секция каждой страницы начинается под фиксированной шапкой */
main { padding-top: var(--header-h); }

/* --- Заголовки ----------------------------------------------------------- */
.title {
  color: var(--ink);
  text-wrap: balance;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.11;
  letter-spacing: normal;
  margin: 0 0 30px;
}
.title--center { text-align: center; }
.lead { font-size: 20px; color: var(--ink); font-weight: 500; margin: 0 0 16px; }
.text p { margin: 0 0 14px; }

/* --- Кнопки -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border: 0;
  border-radius: var(--r-btn);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: normal;
  transition: var(--t-btn);
  white-space: nowrap;
  touch-action: manipulation;
  text-align: center;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-hover); }
.btn--white { background: #fff; color: var(--brand); }
.btn--white:hover { background: var(--brand-soft); }
.btn--ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--send {
  background: var(--accent); color: #fff; border: 0; border-radius: var(--r-btn);
  min-height: 56px; padding: 16px 30px; font-size: 15px; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(240, 138, 36, .32);
}
.btn--send:hover { background: var(--accent-hover); }
.btn--sm { padding: 10px 20px; font-size: 14px; }

/* Пульсация главной кнопки — приём референса */
.btn--pulse { box-shadow: 0 0 0 0 rgba(240, 138, 36, .55); animation: pulse 1.6s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(240, 138, 36, .55); }
  70%  { box-shadow: 0 0 0 14px rgba(240, 138, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 138, 36, 0); }
}

/* --- Чипы, теги, пилюли -------------------------------------------------- */
.tag {
  display: inline-block; background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; line-height: 1.3;
}
.tag--done { background: var(--ink); }
.tag--soft { background: rgba(255, 255, 255, .9); color: var(--ink); }

.pchip {
  display: inline-block; background: var(--brand); color: #fff;
  font-size: 13px; letter-spacing: normal; padding: 5px 12px; border-radius: 12px;
}
.pchip--gold { background: var(--gold); color: var(--ink); }
.pchip--soft { background: var(--brand-soft); color: var(--ink); }

.pill {
  background: var(--surface); border: 1px solid var(--line);
  padding: 10px 20px; border-radius: var(--r-pill); font-size: 14px;
  color: var(--muted); transition: var(--t-btn); touch-action: manipulation;
}
.pill--active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pill:hover:not(.pill--active) { border-color: var(--brand); color: var(--brand); }
.pill b { color: var(--ink); font-weight: 700; margin-left: 4px; }
.pill--active b { color: #fff; }

.tab {
  background: transparent; border: 0; padding: 12px 24px;
  border-radius: var(--r-btn); font-size: 16px; font-weight: 500;
  color: var(--muted); transition: var(--t-btn); touch-action: manipulation;
}
.tab--active { background: var(--ink); color: #fff; }
.tab:hover:not(.tab--active) { background: var(--surface); color: var(--ink); }
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs--center { justify-content: center; }

/* --- Скролл-ревил (.way, как у референса, но сдвиг мягче) ---------------- */
.way-opacity       { opacity: 0; transition: opacity .4s ease-in-out; }
.way-element-left  { opacity: 0; transform: translateX(-60px); transition: opacity .4s ease-in-out, transform .4s ease-in-out; }
.way-element-right { opacity: 0; transform: translateX(60px);  transition: opacity .4s ease-in-out, transform .4s ease-in-out; }
.way-element-drop  { opacity: 0; transform: translateY(-40px); transition: opacity .4s ease-in-out, transform .4s ease-in-out; }
.way.way--active   { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .way { opacity: 1 !important; transform: none !important; transition: none; }
  .btn--pulse { animation: none; }
  .pcard__media img, .acard__img { transition: none; }
  .pcard:hover .pcard__media img, .acard:hover .acard__img { transform: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   ШАПКА (рисует js/layout.js)
   ========================================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
}
.header__top { border-bottom: 1px solid var(--line); }
.header__top-inner { display: flex; align-items: center; justify-content: space-between; height: 50px; }
.lang { display: flex; gap: 6px; }
.lang__item {
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  padding: 5px 12px; border-radius: 20px; color: var(--muted);
  transition: var(--t-color);
}
.lang__item--active { color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.lang__item:hover { color: var(--brand); }

.header__contacts { display: flex; align-items: center; gap: 16px; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--ink); }
.header__soc { color: var(--brand); display: inline-flex; transition: var(--t-color); }
.header__soc:hover { color: var(--accent); }

.header__bottom-inner { display: flex; align-items: center; gap: 24px; height: 81px; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 52px; width: auto; }

.header__nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.header__link {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; color: var(--ink); transition: var(--t-color);
  white-space: nowrap;
}
.header__link:hover, .header__link--active { color: var(--brand); }
/* «Акции» — красный бейдж референса, у нас оранжевый акцент */
.header__link--stock {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff; padding: 9px 14px; border-radius: 6px;
  box-shadow: 0 2px 18px rgba(240, 138, 36, .45);
}
.header__link--stock:hover, .header__link--stock.header__link--active { color: #fff; background: var(--accent-hover); }
.header__cta { font-size: 14px; padding: 12px 24px; }

/* ==========================================================================
   МОБИЛЬНЫЙ ТАБ-БАР И МЕНЮ-ШТОРКА (рисует js/layout.js)
   ========================================================================== */
.tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
}
.tabbar__item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: 0; padding: 4px 0;
  font-size: 11px; letter-spacing: normal; color: var(--muted);
  touch-action: manipulation;
}
.tabbar__item svg { width: 24px; height: 24px; }
.tabbar__item--active { color: var(--brand); }
.tabbar__call {
  width: 48px; height: 48px; border-radius: 50%; margin-top: -22px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(240, 138, 36, .45);
}
.tabbar__item--call { color: var(--ink); font-weight: 600; }

.sheet {
  position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column;
  background: var(--surface); overflow-y: auto; overscroll-behavior: contain;
  padding: 16px var(--gutter) 100px;
}
.sheet[hidden] { display: none; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.sheet__close { background: none; border: 0; font-size: 32px; line-height: 1; color: var(--ink); padding: 4px 8px; }
.sheet__nav { display: flex; flex-direction: column; }
.sheet__link {
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 18px; font-weight: 600; color: var(--ink);
}
.sheet__link--active { color: var(--brand); }
.sheet__contacts { margin-top: 24px; display: grid; gap: 12px; font-size: 16px; }
.sheet__contacts a { color: var(--ink); font-weight: 600; }
.sheet__contacts .lang { margin-top: 8px; }
.sheet .btn { margin-top: 20px; }

/* ==========================================================================
   ХЛЕБНЫЕ КРОШКИ
   ========================================================================== */
.breadcrumbs { padding-top: 20px; padding-bottom: 20px; }
.breadcrumbs__list { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; letter-spacing: normal; }
.breadcrumbs__list li + li::before { content: '/'; margin-right: 10px; color: #9AA9A0; }
.breadcrumbs__list a:hover { color: var(--brand); }
.breadcrumbs__list span { color: var(--brand); }

/* ==========================================================================
   ГЛАВНАЯ: ПЕРВЫЙ ЭКРАН — слайдер ⅔ + колонка ⅓
   ========================================================================== */
.hero { padding: 30px 0 50px; }
.hero__container { display: grid; grid-template-columns: 1fr 310px; gap: 30px; }

.hero__left {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  height: 500px; background: var(--ink);
}
.hero__slide {
  position: absolute; inset: 0; display: flex;
  opacity: 0; transition: opacity .6s ease-in-out; pointer-events: none;
}
.hero__slide.is-active { opacity: 1; pointer-events: auto; }
/* только фон фотослайда: без > правило растягивало и снимки в ленте */
.hero__slide--photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* затемнение снизу: без него подпись слайда теряется на светлом рендере */
.hero__slide--photo::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 48, 30, .05) 0%, rgba(20, 48, 30, .5) 52%, rgba(20, 48, 30, .88) 100%);
}
.hero__text {
  position: relative; z-index: 2; margin-top: auto; padding: 50px 60px 90px;
  color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  max-width: 660px;
}
.hero__text--wide { max-width: none; width: 100%; margin-top: 0; justify-content: center; height: 100%; padding: 40px 50px 84px; }
.hero__kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  background: var(--accent); padding: 6px 12px; border-radius: 6px;
}
.hero__title { font-size: 40px; font-weight: 700; line-height: 1.1; letter-spacing: normal; text-wrap: balance; }
.hero__sub { font-size: 18px; font-weight: 500; opacity: .9; max-width: 620px; }
.hero__more { margin-top: 10px; }

/* Плашка-подзаголовок, как на баннерах застройщиков */
.hero__panel {
  background: rgba(20, 48, 30, .78); backdrop-filter: blur(6px);
  border-radius: 14px; padding: 10px 18px;
  font-size: 19px; font-weight: 700; line-height: 1.25;
}
/* Крупная цифра: градиент по букве плюс мягкая тень под ней */
.hero__figure { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.hero__figure-label {
  font-size: 15px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  opacity: .85; padding-bottom: 16px;
}
.hero__big {
  font-size: clamp(48px, 6.4vw, 92px); font-weight: 800; line-height: .92; letter-spacing: -3px;
  background: linear-gradient(180deg, #FFFFFF 0%, #E4F2E8 42%, #A8CDB6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 26px rgba(8, 28, 17, .55));
  font-variant-numeric: tabular-nums;
}
.hero__unit { font-size: 22px; font-weight: 800; color: #FFC98A; padding-bottom: 16px; }

/* Слайд с орнаментом и лентой снимков */
.hero__slide--tiles { background: linear-gradient(135deg, #2B5A3A 0%, #12331F 100%); }
/* Орнамент заказчика: белый на прозрачном, плитка зеркальная и бесшовная.
   Прозрачность и масштаб задаются здесь, сам файл перерисовывать не нужно. */
.hero__slide--tiles::after {
  content: ''; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background: url(/img/ornament-tile.png) center / 300px auto repeat;
}
.hero__headline { font-size: clamp(28px, 3.4vw, 44px); font-weight: 400; line-height: 1.1; letter-spacing: normal; }
.hero__headline b { font-weight: 800; color: #FFC98A; }
.hero__tiles { display: flex; gap: 12px; width: 100%; max-width: 640px; margin-top: 4px; }
.hero__tile {
  flex: 1; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .55);
  box-shadow: 0 14px 30px rgba(6, 24, 14, .45);
}
.hero__tile:nth-child(even) { transform: translateY(12px); }
.hero__tile img { width: 100%; height: 100%; object-fit: cover; }

.hero__controls {
  position: absolute; left: 60px; right: 40px; bottom: 30px; z-index: 5;
  display: flex; align-items: center; gap: 14px;
}
.hero__dots { display: flex; gap: 8px; margin-right: auto; }
.hero__dot {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255, 255, 255, .5); transition: var(--t-btn);
}
.hero__dot--active { background: #fff; width: 22px; border-radius: 4px; }
.hero__arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 18px;
  transition: var(--t-btn);
}
.hero__arrow:hover { background: #fff; color: var(--accent); }

.hero__col { display: flex; flex-direction: column; gap: 20px; }
.hero__card {
  flex: 1; position: relative; border-radius: var(--r-card); padding: 30px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  color: #fff; background: var(--gradient); overflow: hidden; min-height: 230px;
}
.hero__card--offer {
  background:
    linear-gradient(100deg, rgba(20, 48, 30, .94) 0%, rgba(20, 48, 30, .86) 40%, rgba(20, 48, 30, .3) 72%, rgba(20, 48, 30, .12) 100%),
    url(/img/hero-offer.jpg) center top / cover no-repeat;
}
/* карточка «Ипотека и рассрочка» — кнопка, открывает заявку */
button.hero__card { border: 0; font: inherit; text-align: left; cursor: pointer; }
.hero__card--calc {
  background:
    linear-gradient(100deg, rgba(20, 48, 30, .95) 0%, rgba(20, 48, 30, .88) 42%, rgba(20, 48, 30, .38) 74%, rgba(20, 48, 30, .16) 100%),
    url(/img/hero-calc.jpg) center / cover no-repeat;
}
/* текст держим в левой части: справа на обеих карточках остаётся картинка */
.hero__card--offer .hero__card-title, .hero__card--offer .hero__card-sub,
.hero__card--calc .hero__card-title, .hero__card--calc .hero__card-sub { max-width: 68%; }
.hero__card-title { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: normal; text-wrap: balance; }
.hero__card-sub { margin: -8px 0 0; font-size: 14px; opacity: .8; }
.hero__card .btn { align-self: flex-start; }
.hero__card-icon { position: absolute; right: -20px; bottom: -20px; width: 150px; height: 150px; opacity: .12; pointer-events: none; }

/* ==========================================================================
   КАТАЛОГ: ФИЛЬТР И КАРТОЧКА ЖК (единый компонент)
   ========================================================================== */
.projects { padding-bottom: var(--section-gap); }
.filter {
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end;
  margin-bottom: 30px;
}
.filter__group { display: grid; gap: 10px; }
.filter__label { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: normal; }
.filter__rooms { display: flex; gap: 10px; flex-wrap: wrap; }
.filter__room {
  min-width: 46px; height: 46px; padding: 0 14px; border-radius: var(--r-btn);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-weight: 600; transition: var(--t-btn);
}
.filter__room--active { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter__room:hover:not(.filter__room--active) { border-color: var(--brand); }

.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pcard {
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-card); padding: 10px 10px 22px;
  transition: box-shadow .2s ease-in-out, transform .2s ease-in-out;
}
.pcard:hover { box-shadow: 0 14px 34px rgba(23, 67, 43, .12); transform: translateY(-3px); }
.pcard__media {
  position: relative; border-radius: 14px; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--brand-soft);
}
.pcard__media img { width: 100%; height: 100%; object-fit: cover; }
/* Приближение фото внутри рамки при наведении — приём с сайта-образца:
   у них .projects__item:hover img { transform: scale(1.1) }. Рамка обрезает
   картинку, поэтому соседние блоки не сдвигаются.
   Только для мыши: на тач-экранах :hover залипает после тапа. */
@media (hover: hover) {
  .pcard__media img, .acard__img { transition: transform .3s ease-in-out; }
  .pcard:hover .pcard__media img,
  .acard:hover .acard__img { transform: scale(1.1); }
}
.pcard__tags { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.pcard__body { padding: 18px 14px 0; display: grid; gap: 14px; }
.pcard__title {
  font-size: 21px; font-weight: 700; text-transform: uppercase; color: var(--ink);
  letter-spacing: normal; line-height: 1.2;
}
.pcard__list { display: grid; gap: 8px; }
.pcard__row {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 14px; letter-spacing: normal; color: var(--muted);
}
.pcard__row b { color: var(--ink); font-weight: 500; text-align: right; }
.pcard__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard__empty { grid-column: 1 / -1; text-align: center; padding: 40px 0; }
.projects__more { display: flex; justify-content: center; margin-top: 30px; }

/* Заглушка вместо фото сданного объекта: аккуратнее, чем битая картинка */
.pcard__media--empty {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #DCEBE1 0%, #C8DED0 100%);
  color: var(--ink);
}
.pcard__media--empty svg { width: 64px; height: 64px; opacity: .55; }

/* ==========================================================================
   ГЛАВНАЯ: О КОМПАНИИ — карточка с градиентом
   ========================================================================== */
.company { padding-bottom: var(--section-gap); }
/* Рендер выходит за верхнюю и левую границу плашки — приём с сайта-образца.
   Когда придёт дом вырезанным (PNG без фона), добавьте картинке класс
   company__img--cutout: пропадут рамка и скругление, останется мягкая тень
   по силуэту. */
.company__container {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center;
  background: var(--gradient); color: #fff;
  border-radius: var(--r-card);
  margin-top: 70px; padding: 56px 56px 56px 44px;
}
.company__container::before {
  content: ''; position: absolute; inset: 0; z-index: 0; opacity: .09; pointer-events: none;
  border-radius: inherit;
  background: url(/img/ornament-tile.png) center / 300px auto repeat;
}
.company__img, .company__block { position: relative; z-index: 1; }
/* вылет только вверх: влево картинка не уходит, иначе упирается в край экрана */
.company__img { margin: -74px 0 0; }
.company__img img {
  width: 100%; height: auto; display: block;
  border-radius: 18px; box-shadow: 0 30px 60px rgba(8, 28, 17, .38);
}
.company__img--cutout img {
  border-radius: 0; box-shadow: none;
  filter: drop-shadow(0 26px 46px rgba(8, 28, 17, .45));
}
.company__block { padding: 0; }
.company__title { color: #fff; }
.company__text { margin: 0 0 24px; font-size: 16px; line-height: 1.75; color: rgba(255, 255, 255, .85); }
.company__stats { display: flex; gap: 40px; margin: 0 0 30px; flex-wrap: wrap; }
.stat { display: grid; gap: 2px; }
.stat__num { font-size: 40px; font-weight: 700; line-height: 1; color: #fff; letter-spacing: normal; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 14px; color: rgba(255, 255, 255, .75); letter-spacing: normal; }
.company__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn--outline-white { background: transparent; color: #fff; border: 1px solid #fff; }
.btn--outline-white:hover { background: #fff; color: var(--ink); }

/* ==========================================================================
   ГЛАВНАЯ: СЛОГАНЫ — карточка со слайдером
   ========================================================================== */
.benefits { padding-bottom: var(--section-gap); }
.benefits__container {
  display: grid; grid-template-columns: 1fr 1.2fr;
  background: var(--surface); border-radius: var(--r-card); overflow: hidden;
}
.benefits__left { padding: 50px; display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.benefits__dots { display: flex; gap: 8px; }
.benefits__dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: var(--line); transition: var(--t-btn); }
.benefits__dot--active { background: var(--brand); }
.benefits__titles { position: relative; min-height: 120px; }
.benefits__slogan {
  position: absolute; inset: 0; margin: 0;
  font-size: 28px; font-weight: 600; line-height: 1.25; color: var(--ink);
  letter-spacing: normal; text-wrap: balance;
  opacity: 0; transition: opacity .5s ease-in-out;
}
.benefits__slogan.is-active { opacity: 1; position: relative; }
.benefits__right { position: relative; min-height: 420px; }
.benefits__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s ease-in-out;
}
.benefits__img.is-active { opacity: 1; }
.benefits__arrows { position: absolute; right: 24px; bottom: 24px; display: flex; gap: 10px; z-index: 3; }

/* ==========================================================================
   ГЛАВНАЯ: УСЛОВИЯ ПОКУПКИ + SEO-БЛОК
   ========================================================================== */
.condition { padding-bottom: var(--section-gap); }
.condition__items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: var(--section-gap); }
.ccard {
  background: var(--surface); border-radius: var(--r-card); overflow: hidden;
  display: flex; flex-direction: column;
}
/* Картинку рисует js/main.js (condArt). Пропишете img у условия в data.js —
   вместо рисунка встанет ваш файл, стили те же. */
/* 3:2 — пропорция и рисованной картинки, и присланных рендеров: почти без обрезки */
.ccard__head { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink); }
.ccard__art, .ccard__head img { width: 100%; height: 100%; display: block; object-fit: cover; }
/* цифра поверх своей картинки (когда её нет — цифра внутри рисунка) */
.ccard__num {
  position: absolute; left: 26px; top: 6px;
  font-size: 76px; font-weight: 800; line-height: 1; letter-spacing: -3px;
  color: #fff; text-shadow: 0 8px 24px rgba(8, 33, 15, .5);
  font-variant-numeric: tabular-nums; pointer-events: none;
}
.ccard__tag {
  position: absolute; right: 16px; top: 16px;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 12px;
  box-shadow: 0 4px 14px rgba(11, 36, 22, .25);
}
.ccard__body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ccard__title { margin: 0; font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.2; letter-spacing: normal; }
.ccard__text { margin: 0; font-size: 15px; flex: 1; }
.ccard .btn { align-self: flex-start; }

.rooms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.rooms__block { background: var(--surface); border-radius: var(--r-card); padding: 28px 30px; }
.rooms__title { margin: 0 0 14px; font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: normal; }
.rooms__links { display: grid; gap: 8px; }
.rooms__links a { font-size: 15px; color: var(--brand); letter-spacing: normal; }
.rooms__links a:hover { color: var(--accent); }

/* ==========================================================================
   ФОРМА ЗАЯВКИ + INSTAGRAM (рисует js/layout.js, есть на каждой странице)
   ========================================================================== */
.feedback { padding-bottom: var(--section-gap); }
.feedback__container { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.feedback__left {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  padding: 50px; color: #fff;
  background:
    radial-gradient(circle at 88% 6%, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 46%),
    linear-gradient(145deg, var(--brand) 0%, var(--ink) 100%);
  display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: center;
}
/* орнамент фактурой поверх заливки */
.feedback__left::before {
  content: ''; position: absolute; inset: 0; opacity: .1; pointer-events: none;
  background: url(/img/ornament-tile.png) center / 280px auto repeat;
}
/* второй блик снизу слева: с одним фон читался плоской заливкой */
.feedback__left::after {
  content: ''; position: absolute; left: -130px; bottom: -170px; width: 400px; height: 400px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0) 70%);
}
.feedback__left > * { position: relative; z-index: 2; }
.feedback__art { align-self: stretch; border-radius: 16px; overflow: hidden; min-height: 390px; }
.feedback__art img { width: 100%; height: 100%; object-fit: cover; }
.feedback__kicker { font-size: 30px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin: 0 0 10px; line-height: 1.15; }
.feedback__lead { font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255, 255, 255, .8); margin: 0 0 34px; max-width: 560px; }

.form { display: grid; gap: 18px; max-width: 620px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
/* Поля-плашки, а не подчёркивание: на плашке с орнаментом тонкая линия
   сливалась с фоном и было непонятно, куда нажимать. */
.form__input {
  height: 56px; padding: 0 18px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--r-btn);
  color: #fff; font-family: var(--font); font-size: 16px; letter-spacing: normal;
  transition: background-color .2s ease-in-out, border-color .2s ease-in-out, box-shadow .2s ease-in-out;
}
.form__input::placeholder { color: rgba(255, 255, 255, .78); }
.form__input:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .5); }
.form__input:focus {
  outline: 0; background: rgba(255, 255, 255, .22); border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .16);
}
.form__input--error { border-color: #FFB4A0; background: rgba(255, 180, 160, .16); }
.form__agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: rgba(255, 255, 255, .85); letter-spacing: normal; }
.form__agree input { margin-top: 3px; accent-color: var(--accent); }
.form__agree a { text-decoration: underline; }
.form__submit { justify-self: start; min-width: 240px; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form__status { font-size: 14px; margin: 0; min-height: 20px; letter-spacing: normal; }
.form__status--ok { color: #9BE7B8; }
.form__status--err { color: #FFB4A0; }

/* Светлая форма (модалка, контакты) */
.form--light .form__input {
  height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-btn);
  background: var(--surface); color: var(--ink); text-transform: none; letter-spacing: normal;
}
.form--light .form__input::placeholder { color: #9AA9A0; }
.form--light .form__input:focus { border-color: var(--brand); }
.form--light .form__input--error { border-color: #D9481E; }
.form--light .form__agree { color: var(--muted); }
.form--light .form__status--ok { color: var(--brand); }
.form--light .form__status--err { color: #D9481E; }

.insta-card {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  padding: 40px 30px; color: #fff; min-height: 430px;
  background: linear-gradient(160deg, var(--brand) 0%, var(--ink) 100%);
  display: flex; flex-direction: column; gap: 12px;
}
.insta-card__title { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: normal; }
.insta-card__sub { margin: 0 0 20px; font-size: 15px; color: rgba(255, 255, 255, .8); }
/* кнопка во всю ширину и прижата к низу: так карточка не остаётся полупустой */
.insta-card .btn { align-self: stretch; margin-top: auto; position: relative; z-index: 2; }
/* снимок профиля с вырезанным фоном; наклон уже есть на самом снимке */
.insta-card__phone {
  position: absolute; left: 50%; bottom: -52px; width: 222px; height: auto;
  transform: translateX(-50%); pointer-events: none;
  filter: drop-shadow(0 24px 46px rgba(8, 28, 17, .55));
}

/* ==========================================================================
   ФУТЕР (рисует js/layout.js)
   ========================================================================== */
.footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer__inner { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr auto; gap: 30px; padding-top: 50px; padding-bottom: 40px; }
.footer .logo img { height: 56px; }
.footer__note { font-size: 14px; margin: 14px 0 0; letter-spacing: normal; max-width: 260px; }
.footer__label { font-size: 16px; color: var(--ink); font-weight: 700; margin: 0 0 14px; letter-spacing: normal; }
.footer__link, .footer__text { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; margin-bottom: 10px; letter-spacing: normal; }
.footer__link svg, .footer__text svg { flex-shrink: 0; margin-top: 3px; color: var(--brand); }
.footer__link:hover { color: var(--brand); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 20px; padding-bottom: 30px; border-top: 1px solid var(--line);
  font-size: 14px; letter-spacing: normal;
}

/* ==========================================================================
   ПЛАВАЮЩИЕ КНОПКИ И МОДАЛКА (рисует js/layout.js)
   ========================================================================== */
.fabs {
  position: fixed; z-index: 90;
  right: calc(24px + env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 12px;
}
.fab {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(46, 125, 78, .35);
  transition: var(--t-btn); touch-action: manipulation;
}
.fab:hover { background: var(--ink); }
.fab--wa { background: #25D366; box-shadow: 0 8px 24px rgba(37, 211, 102, .35); }
.fab--wa:hover { background: #1DA851; }

.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto; overscroll-behavior: contain;
}
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(23, 67, 43, .6); }
.modal__box {
  position: relative; z-index: 2; width: 100%; max-width: 480px;
  background: var(--surface); border-radius: var(--r-card); padding: 40px;
  animation: modalShow .25s ease-out;
}
@keyframes modalShow { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: 12px; right: 16px; background: none; border: 0;
  color: var(--muted); font-size: 30px; line-height: 1;
}
.modal__close:hover { color: var(--ink); }
.modal__title { color: var(--ink); font-size: 24px; font-weight: 700; margin: 0 0 6px; letter-spacing: normal; }
.modal__sub { font-size: 15px; margin: 0 0 24px; letter-spacing: normal; }
.modal .form { max-width: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(23, 67, 43, .92);
  display: flex; align-items: center; justify-content: center;
  padding: 40px; overscroll-behavior: contain;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 100%; max-height: 100%; background: #fff; border-radius: 8px; }
.lightbox__close { position: absolute; top: 20px; right: 26px; background: none; border: 0; color: #fff; font-size: 36px; line-height: 1; }

body.is-locked { overflow: hidden; }

/* ==========================================================================
   ВНУТРЕННИЕ СТРАНИЦЫ
   ========================================================================== */
.page-intro { padding-bottom: 40px; text-align: center; }
.page-intro .title { margin-bottom: 16px; }
.page-intro__text { max-width: 860px; margin: 0 auto; font-size: 17px; }
.section { padding-bottom: var(--section-gap); }

/* О компании */
.about-hero { padding-bottom: var(--section-gap); }
.about-hero__slider { position: relative; border-radius: var(--r-card); overflow: hidden; height: 520px; background: var(--ink); }
.about-hero__slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease-in-out; }
.about-hero__slider img.is-active { opacity: 1; }
.about-hero__arrows { position: absolute; right: 24px; bottom: 24px; display: flex; gap: 10px; z-index: 3; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; border-radius: var(--r-image); }
.split__text p { margin: 0 0 14px; font-size: 16px; line-height: 1.7; }
.stats-row { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 30px; }
.stats-row .stat__num { color: var(--ink); }
.stats-row .stat__label { color: var(--muted); }

.mission { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.mission__card { background: var(--surface); border-radius: var(--r-card); padding: 40px; }
.mission__card h3 { margin: 0 0 14px; color: var(--ink); font-size: 24px; letter-spacing: normal; }
.mission__card p, .mission__card li { font-size: 16px; line-height: 1.7; margin: 0 0 10px; }
.mission__card li { padding-left: 22px; position: relative; }
.mission__card li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

.portfolio { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.portfolio__item {
  display: flex; gap: 20px; align-items: center;
  background: var(--surface); border-radius: var(--r-card); padding: 20px 24px;
  transition: box-shadow .2s ease-in-out;
}
.portfolio__item:hover { box-shadow: 0 10px 28px rgba(23, 67, 43, .10); }
.portfolio__num {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums;
}
.portfolio__name { display: block; color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: normal; }
.portfolio__meta { display: block; font-size: 14px; letter-spacing: normal; }

/* Новости и акции */
.agrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.acard {
  background: var(--surface); border-radius: var(--r-card); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .2s ease-in-out, transform .2s ease-in-out;
}
.acard:hover { box-shadow: 0 14px 34px rgba(23, 67, 43, .12); transform: translateY(-3px); }
.acard__img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--brand-soft); }
.acard__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.acard__title { margin: 0; font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.25; letter-spacing: normal; }
.acard__date { font-size: 14px; letter-spacing: normal; }
.acard__text { margin: 0; font-size: 15px; flex: 1; }
.acard .btn { align-self: flex-start; margin-top: 6px; }

.article { max-width: 860px; margin: 0 auto; }
.article__date { font-size: 14px; letter-spacing: normal; margin: 0 0 20px; }
.article__img { width: 100%; border-radius: var(--r-image); margin: 0 0 30px; aspect-ratio: 16 / 9; object-fit: cover; }
.article p { font-size: 17px; line-height: 1.7; margin: 0 0 16px; }
.article h2 { color: var(--ink); font-size: 24px; letter-spacing: normal; margin: 30px 0 12px; }
.article ul { margin: 0 0 16px; padding-left: 20px; list-style: disc; }
.article li { margin-bottom: 6px; font-size: 16px; }
.article__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* Контакты */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; }
.ccontact { background: var(--surface); border-radius: var(--r-card); padding: 40px; display: grid; gap: 22px; align-content: start; }
.ccontact__item { display: grid; gap: 4px; }
.ccontact__label { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.ccontact__value { font-size: 18px; color: var(--ink); font-weight: 600; letter-spacing: normal; }
.ccontact__value a:hover { color: var(--brand); }
.ccontact__soc { display: flex; gap: 10px; flex-wrap: wrap; }
.cmap { border-radius: var(--r-card); overflow: hidden; min-height: 480px; background: var(--surface); }
.cmap iframe { width: 100%; height: 100%; min-height: 480px; border: 0; }

/* Врезка-CTA */
.newform {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  background: var(--gradient); color: #fff;
  border-radius: var(--r-card); padding: 50px;
}
.newform__title { font-size: 28px; font-weight: 700; margin: 0 0 8px; letter-spacing: normal; }
.newform__sub { margin: 0; color: rgba(255, 255, 255, .78); font-size: 16px; }

/* Текстовые страницы */
.legal { padding-bottom: 80px; }
.legal__inner { max-width: 800px; padding-top: 30px; }
.legal h2 { color: var(--ink); font-size: 20px; font-weight: 700; letter-spacing: normal; margin: 36px 0 12px; }
.legal p { margin: 0 0 14px; font-size: 16px; line-height: 1.7; }
.legal a { color: var(--brand); border-bottom: 1px solid rgba(46, 125, 78, .35); }
.legal a:hover { color: var(--accent); border-color: var(--accent); }
.legal__date { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.legal__note { margin-top: 40px; padding: 20px 24px; background: var(--surface); border-radius: var(--r-card); font-size: 15px; }

.notfound { min-height: 60vh; display: flex; align-items: center; padding-bottom: 80px; }
.notfound__code { font-size: 96px; font-weight: 700; color: var(--ink); line-height: 1; margin: 0 0 16px; letter-spacing: normal; }
.notfound__text { font-size: 18px; margin: 0 0 30px; }
.notfound__links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   АДАПТИВ: 1200 / 992 / 768 / 576
   ========================================================================== */
@media (max-width: 1200px) {
  .container { max-width: 1200px; }
  .header__nav { gap: 16px; }
  .header__link { font-size: 12px; }
  .hero__title { font-size: 34px; }
  .company__block { padding: 40px 40px 40px 0; }
}

@media (max-width: 992px) {
  :root { --section-gap: 60px; --header-h: 107px; }
  body { padding-bottom: 76px; }          /* место под таб-бар */
  .title { font-size: 30px; }

  .header__top-inner { height: 47px; }
  .header__bottom-inner { height: 60px; gap: 12px; }
  .logo img { height: 40px; }
  .header__nav { display: none; }
  .header__cta { margin-left: auto; font-size: 12px; padding: 9px 12px; }
  .tabbar { display: grid; }
  .fabs { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .fab--call { display: none; }

  .hero { padding: 20px 0 40px; }
  .hero__container { grid-template-columns: 1fr; }
  .hero__left { min-height: 420px; }
  .hero__text { padding: 30px 24px 80px; }
  .hero__text--wide { padding: 24px 24px 76px; }
  .hero__panel { font-size: 16px; padding: 8px 14px; }
  .hero__tile:nth-child(n+4) { display: none; }   /* на узком экране трёх снимков достаточно */
  .hero__tiles { max-width: none; }
  .hero__title { font-size: 28px; }
  .hero__sub { font-size: 17px; }
  .hero__controls { left: 24px; right: 24px; bottom: 22px; }
  .hero__col { flex-direction: row; }
  .hero__card { min-height: 200px; }

  .filter { grid-template-columns: 1fr; align-items: stretch; }
  .filter .btn { width: 100%; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .company__container {
    grid-template-columns: 1fr; gap: 0;
    margin-top: 0; padding: 0; overflow: hidden;
  }
  .company__img { order: 2; margin: 0; }
  .company__img img { border-radius: 0; box-shadow: none; max-height: 320px; object-fit: cover; }
  .company__block { padding: 36px 24px 30px; text-align: center; }
  .company__stats { justify-content: center; }
  .company__btns { justify-content: center; }

  .benefits__container { grid-template-columns: 1fr; }
  .benefits__left { padding: 30px 24px; }
  .benefits__slogan { font-size: 24px; }
  .benefits__right { min-height: 300px; }

  .condition__items { grid-template-columns: 1fr; gap: 20px; }
  .rooms { grid-template-columns: 1fr; gap: 20px; }

  .feedback__container { grid-template-columns: 1fr; }
  .feedback__left { grid-template-columns: 1fr; padding: 30px 24px; }
  .feedback__art { display: none; }          /* на узком экране рендер только мешает форме */
  .insta-card { min-height: 470px; }
  .insta-card__phone { width: 212px; bottom: -54px; }
  .footer__inner { grid-template-columns: repeat(2, 1fr); }

  .split, .split--reverse { grid-template-columns: 1fr; gap: 30px; }
  .split--reverse > :first-child { order: 0; }
  .split__img { min-height: 260px; max-height: 360px; }
  .mission { grid-template-columns: 1fr; }
  .portfolio { grid-template-columns: 1fr; }
  .agrid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .cmap, .cmap iframe { min-height: 380px; }
  .about-hero__slider { height: 380px; }
  .newform { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .title { font-size: 26px; }
  .hero__col { flex-direction: column; }
  .pgrid { grid-template-columns: 1fr; }
  .agrid { grid-template-columns: 1fr; }
  .company__stats { gap: 24px; }
  .feedback__kicker { font-size: 20px; }
}

@media (max-width: 576px) {
  .btn { padding: 14px 18px; font-size: 15px; max-width: 100%; white-space: normal; }
  .header__cta { padding: 9px 12px; font-size: 12px; }
  .header__phone span { display: none; }
  .hero__left { min-height: 400px; }
  .hero__text { padding: 24px 20px 76px; }
  .hero__text--wide { padding: 20px 20px 72px; }
  .hero__figure-label, .hero__unit { padding-bottom: 8px; }
  .hero__unit { font-size: 18px; }
  .hero__title { font-size: 24px; }
  .hero__kicker { font-size: 11px; }
  .hero__card { padding: 24px; }
  .hero__card-title { font-size: 20px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .modal__box { padding: 30px 20px; }
  .ccontact { padding: 24px; }
  .mission__card { padding: 24px; }
  .portfolio__item { padding: 16px; }
  .filter__rooms { flex-wrap: wrap; }
}
