/* ==========================================================================
   АМ СЕРВИС — дизайн-система прототипа
   Промышленно-строительный стиль. B2B. Современная подача.
   Все фирменные параметры вынесены в переменные ниже — легко заменить
   под реальный логотип и фирменные цвета заказчика.
   ========================================================================== */

:root {
  /* --- Бренд (ЗАМЕНИТЬ на фирменные цвета заказчика) --- */
  --accent:        #F2A300;   /* основной акцент: индустриальный янтарь */
  --accent-600:    #D98E00;   /* hover акцента */
  --accent-soft:   #FFF4DD;   /* светлая подложка акцента */
  --accent-bright: #FFC21A;   /* яркий акцент для номеров блоков */

  /* --- Нейтральная промышленная палитра --- */
  --ink:           #14181F;   /* почти чёрный графит — заголовки, тёмные секции */
  --ink-800:       #1E242E;   /* тёмная поверхность */
  --ink-700:       #2A3340;   /* карточки на тёмном */
  --steel:         #5A6675;   /* приглушённый текст */
  --line:          #E4E8EE;   /* границы */
  --mist:          #F4F6F9;   /* светлая подложка секций */
  --white:         #FFFFFF;

  /* --- Типографика --- */
  --font-display: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* --- Геометрия --- */
  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 18px 40px -20px rgba(20, 24, 31, .35);
  --shadow-sm: 0 8px 24px -16px rgba(20, 24, 31, .4);
  --container:  1240px;
  --gutter:     24px;
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 700; }
p { color: var(--steel); }
strong { color: var(--ink); font-weight: 700; }

/* ----------------------------- Layout ----------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink p { color: #AEB8C6; }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-600);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; }
.section--ink .eyebrow { color: var(--accent); }
.section-head p { margin-top: 16px; font-size: 1.08rem; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 16px 30px; border-radius: var(--radius-sm); transition: .18s ease;
  white-space: nowrap; line-height: 1;
}
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--accent-600); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-800); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: rgba(255,255,255,.1); color: var(--white); border: 1.5px solid rgba(255,255,255,.25); }
.btn--light:hover { background: rgba(255,255,255,.18); }
.btn--lg { padding: 19px 38px; font-size: 1.08rem; }
.btn--block { width: 100%; }

/* ----------------------------- Header ----------------------------- */
.topbar { background: var(--ink); color: #C5CDD8; font-size: .86rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 42px; gap: 16px; }
.topbar a { color: #C5CDD8; transition: .15s; }
.topbar a:hover { color: var(--white); }
.topbar .topbar__meta { display: flex; gap: 22px; align-items: center; }
.topbar__meta span::before { content: "•"; color: var(--accent); margin-right: 8px; }
@media (max-width: 1120px) { .t-hide { display: none; } }

/* Фиксируем весь блок шапки целиком — он остаётся сверху при прокрутке и
   корректно резервирует место (без наложения на hero). Без backdrop-filter,
   иначе он стал бы контейнером для fixed-меню и схлопывал его. */
/* Весь блок шапки sticky, но с top:-42px (высота верхней полосы):
   при прокрутке тёмная полоса уезжает вверх, а меню с логотипом пиннится к верху. */
#site-header { position: sticky; top: -42px; z-index: 50; }
.header { background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
.header.is-scrolled { box-shadow: 0 10px 28px -16px rgba(20,24,31,.45); }
.header .container { display: flex; align-items: center; gap: 24px; height: 76px; flex-wrap: nowrap; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; flex-shrink: 0; }
/* Логотип вставляется как есть (assets/logo.png) — мы только масштабируем по ширине,
   пропорции и само изображение не меняются. */
.logo__img { width: 88px; height: auto; border-radius: 8px; flex-shrink: 0; display: block; }
.logo__img--footer { width: 120px; }
.logo__txt { display: flex; flex-direction: column; line-height: 1.05; white-space: nowrap; }
.logo small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .62rem; letter-spacing: .07em; text-transform: uppercase; color: var(--steel); margin-top: 2px; }

.nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: nowrap; }
.nav a { font-family: var(--font-display); font-weight: 600; font-size: .95rem; padding: 10px 13px; border-radius: 8px; transition: .15s; color: var(--ink); white-space: nowrap; }
.nav a:hover { background: var(--mist); color: var(--accent-600); }
.nav a.is-active { color: var(--accent-600); }
/* Доп. пункты (услуги, телефон, заявка) — только для мобильного меню */
.nav__mobile { display: none; }
.nav__label { display: block; margin-top: 10px; font-family: var(--font-display); font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }

.header__cta { display: flex; align-items: center; gap: 16px; }
.header__phone { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; white-space: nowrap; }

.burger { display: none; width: 44px; height: 44px; border-radius: 9px; background: var(--ink); flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { width: 20px; height: 2px; background: var(--white); display: block; }

/* ----------------------------- Hero ----------------------------- */
.hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: clamp(48px, 7vw, 96px) 0; }
.hero h1 { color: var(--white); }
.hero__lead { color: #B7C0CC; font-size: 1.18rem; margin: 22px 0 32px; max-width: 540px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero__chips span { font-size: .88rem; color: #C5CDD8; border: 1px solid rgba(255,255,255,.16); padding: 8px 14px; border-radius: 50px; }
.hero__media { position: relative; }
.hero__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }
.stat { background: var(--ink-700); border-radius: var(--radius-sm); padding: 18px; }
.stat b { font-family: var(--font-display); font-size: 1.7rem; color: var(--white); display: block; }
.stat span { font-size: .82rem; color: #AEB8C6; }

/* ----------------------------- Photo placeholder ----------------------------- */
/* Имитация фотоблока: на проде заменяется реальным фото заказчика.
   Подпись подсказывает, какое фото нужно в это место. */
.ph {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #2A3340, #14181F);
  display: grid; place-items: center; text-align: center; color: #8C97A6;
  min-height: 260px; border: 1px solid rgba(255,255,255,.06);
}
.ph--light {
  background:
    repeating-linear-gradient(135deg, rgba(20,24,31,.025) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #E9edf3, #D7dee7);
  color: #6c7888; border: 1px solid var(--line);
}
/* Реальное фото поверх плейсхолдера: добавьте <img> внутрь .ph —
   при успешной загрузке оно закроет подпись, при ошибке (нет файла) JS его убирает. */
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.ph__label { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .04em; padding: 0 18px; }
.ph__label::before { content: "📷  ФОТО"; display: block; font-size: .7rem; letter-spacing: .18em; color: var(--accent); margin-bottom: 6px; }
.ph--tall { min-height: 460px; }
.ph--wide { min-height: 320px; }
.ph--video::after { content: "▶"; position: absolute; z-index: 3; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-size: 1.3rem; box-shadow: var(--shadow); }
.ph--video .ph__label::before { content: "🎬  ВИДЕО"; }

/* ----------------------------- Service cards ----------------------------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.service-card {
  position: relative; /* для растянутой ссылки */
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: .2s ease; height: 100%;
}
/* Вся карточка кликабельна и ведёт на страницу услуги */
.service-card__link::before { content: ""; position: absolute; inset: 0; z-index: 2; }
.service-card { cursor: pointer; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.service-card .ph { border-radius: 0; min-height: 200px; }
.service-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: .96rem; flex: 1; }
.service-card__link { margin-top: 18px; font-family: var(--font-display); font-weight: 700; color: var(--accent-600); display: inline-flex; align-items: center; gap: 8px; }
.service-card__link::after { content: "→"; transition: .15s; }
.service-card:hover .service-card__link::after { transform: translateX(4px); }

/* ----------------------------- Feature / advantages ----------------------------- */
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; height: 100%; }
.section--ink .feature { background: var(--ink-700); border-color: rgba(255,255,255,.07); }
.feature__num { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--ink); width: 46px; height: 46px; border-radius: 10px; background: var(--accent-bright); box-shadow: 0 0 0 4px rgba(255,194,26,.18); display: grid; place-items: center; margin-bottom: 18px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { font-size: .95rem; }
.section--ink .feature h3 { color: var(--white); }
.section--ink .feature p { color: #AEB8C6; }

/* ----------------------------- Split block ----------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__list { margin-top: 22px; display: grid; gap: 14px; }
.split__list li { position: relative; padding-left: 32px; color: var(--ink); }
.split__list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; background: var(--accent-soft); color: var(--accent-600); border-radius: 6px; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.section--ink .split__list li { color: #DDE3EB; }

/* ----------------------------- Stats band ----------------------------- */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.statband__item b { font-family: var(--font-display); font-size: clamp(2.1rem, 4vw, 3rem); color: var(--accent); display: block; }
.statband__item span { color: #AEB8C6; font-size: .96rem; }
.note { font-size: .8rem; color: var(--steel); font-style: italic; }
.section--ink .note { color: #7b8696; }

/* ----------------------------- Materials ----------------------------- */
.material-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.material-card .ph { border-radius: 0; min-height: 170px; }
.material-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.material-card h3 { font-size: 1.12rem; }
.material-card p { font-size: .9rem; margin-top: 6px; flex: 1; }
.material-card .tag { align-self: flex-start; margin-top: 14px; font-family: var(--font-display); font-weight: 700; font-size: .8rem; background: var(--accent-soft); color: var(--accent-600); padding: 6px 12px; border-radius: 50px; }

/* ----------------------------- Process steps ----------------------------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--ink); width: 44px; height: 44px; border-radius: 10px; background: var(--accent-bright); box-shadow: 0 0 0 4px rgba(255,194,26,.18); display: grid; place-items: center; }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: .9rem; }

/* ----------------------------- Projects ----------------------------- */
.project-card { border-radius: var(--radius); overflow: hidden; position: relative; min-height: 320px; display: flex; align-items: flex-end; color: var(--white); }
.project-card .ph { position: absolute; inset: 0; border-radius: 0; min-height: 100%; }
.project-card__body { position: relative; z-index: 2; padding: 26px; width: 100%; background: linear-gradient(to top, rgba(20,24,31,.92) 10%, transparent); }
.project-card h3 { color: var(--white); font-size: 1.2rem; }
.project-card__meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; }
.project-card__meta span { font-size: .82rem; color: #C5CDD8; }
.project-card__meta b { color: var(--accent); display: block; font-family: var(--font-display); font-size: 1.05rem; }

/* ----------------------------- Gallery ----------------------------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gallery .ph { min-height: 0; height: 100%; border-radius: var(--radius-sm); }
.gallery .span-2c { grid-column: span 2; }
.gallery .span-2r { grid-row: span 2; }
.gal-video { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius); background: #000; display: block; }
/* Кликабельные плитки галереи открываются в лайтбоксе */
.gallery .ph, .ph--video { cursor: pointer; }

/* ----------------------------- Lightbox ----------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(10,12,16,.93); padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox__content { position: relative; max-width: min(1100px, 92vw); max-height: 88vh; display: flex; }
.lightbox__content img, .lightbox__content video { max-width: 100%; max-height: 88vh; width: auto; height: auto; border-radius: 10px; display: block; background: #000; }
.lightbox__close { position: absolute; top: 18px; right: 22px; z-index: 3; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 1.7rem; line-height: 1; display: grid; place-items: center; transition: .15s; }
.lightbox__close:hover { background: var(--accent); color: var(--ink); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1; display: grid; place-items: center; transition: .15s; }
.lightbox__nav:hover { background: var(--accent); color: var(--ink); }
.lightbox__nav--prev { left: 22px; }
.lightbox__nav--next { right: 22px; }
@media (max-width: 760px) {
  .lightbox { padding: 14px; }
  .lightbox__close { top: 8px; right: 10px; }
  .lightbox__nav { width: 46px; height: 46px; font-size: 1.6rem; bottom: 14px; top: auto; transform: none; }
  .lightbox__nav--prev { left: 14px; }
  .lightbox__nav--next { right: 14px; }
}

/* ----------------------------- Кнопка «наверх» ----------------------------- */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 50px; height: 50px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-size: 1.4rem; box-shadow: var(--shadow); border: none; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease, background .15s ease; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent-600); }
@media (max-width: 760px) { .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; } }

/* ----------------------------- Form ----------------------------- */
.cta-band { background: var(--ink); border-radius: var(--radius); padding: clamp(32px, 5vw, 60px); color: var(--white); display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #AEB8C6; margin-top: 14px; }
.form { display: grid; gap: 14px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 15px 16px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06); color: var(--white); font-family: inherit; font-size: 1rem;
}
.form input::placeholder, .form textarea::placeholder { color: #8794a3; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__note { font-size: .78rem; color: #8794a3; }
.form__note a { color: #C5CDD8; text-decoration: underline; }

/* Light form (contacts page) */
.form--light input, .form--light textarea, .form--light select { background: var(--white); color: var(--ink); border-color: var(--line); }
.form--light input::placeholder, .form--light textarea::placeholder { color: #9aa4b1; }

/* ----------------------------- Page hero (inner) ----------------------------- */
.pagehero { background: var(--ink); color: var(--white); padding: clamp(40px, 6vw, 76px) 0; }
.pagehero h1 { color: var(--white); max-width: 800px; }
.pagehero p { color: #B7C0CC; max-width: 640px; margin-top: 18px; font-size: 1.1rem; }
.breadcrumbs { display: flex; gap: 8px; font-size: .85rem; color: #8794a3; margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumbs a { color: #B7C0CC; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span::before { content: "/"; margin-right: 8px; color: #4a5564; }

/* ----------------------------- Partners / logos ----------------------------- */
.logos { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.logos .ph { min-height: 90px; flex: 1 1 150px; border-radius: var(--radius-sm); }

/* ----------------------------- Contacts ----------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-list { display: grid; gap: 22px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item__icon { width: 46px; height: 46px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-600); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-item b { display: block; font-family: var(--font-display); }
.contact-item span { color: var(--steel); font-size: .95rem; }

/* ----------------------------- Footer ----------------------------- */
.footer { background: var(--ink); color: #AEB8C6; padding: 64px 0 28px; border-top: 3px solid var(--accent); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.footer a { color: #AEB8C6; transition: .15s; }
.footer a:hover { color: var(--accent); }
.footer ul { display: grid; gap: 10px; font-size: .95rem; }
.footer__about p { font-size: .95rem; margin-top: 16px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .84rem; color: #6c7888; }

/* ----------------------------- Utilities ----------------------------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--steel); }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag-row span { font-size: .85rem; background: var(--mist); border: 1px solid var(--line); padding: 8px 14px; border-radius: 50px; color: var(--ink); }
.prose p { margin-bottom: 16px; color: var(--steel); }
.prose p:last-child { margin-bottom: 0; }
.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 20px 24px; }
.callout p { color: var(--ink); margin: 0; }

/* ----------------------------- Responsive ----------------------------- */
/* На средних экранах прячем подпись у логотипа и телефон в шапке,
   чтобы меню (включая «О компании») не переносилось и шапка не «прыгала». */
@media (max-width: 1200px) { .logo__txt { display: none; } }
@media (max-width: 1080px) { .header__phone { display: none; } }

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .cta-band { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav, .header__phone { display: none; }
  .burger { display: flex; }
  .header__cta .btn { display: none; }
  .topbar { display: none; }
  .grid-2, .grid-3, .grid-4, .statband, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }

  /* В мобильной версии hero: показываем заголовок и преимущества вместо фото */
  .hero__media { order: 0; }              /* блок преимуществ идёт после заголовка */
  .hero__media .ph { display: none; }     /* скрываем картинку */
  .hero__stats { grid-template-columns: 1fr 1fr; margin-top: 24px; }  /* 2 строки по 2 */

  /* В мобильной версии оставляем: логотип + название компании + кнопка меню */
  #site-header { top: 0; }                /* тёмная полоса скрыта — смещение не нужно */
  .header .container { gap: 12px; }
  .logo__txt { display: flex; }          /* показываем название (перебивает скрытие на средних экранах) */
  .logo small { display: none; }          /* подзаголовок прячем, чтобы не теснить */
  .logo { font-size: 1.15rem; gap: 10px; }
  .logo__img { width: 54px; border-radius: 7px; }
  .header__cta { margin-left: auto; }

  /* Мобильное меню (выпадает под шапкой) */
  .nav.is-open { display: flex; position: fixed; inset: 76px 0 0; background: var(--white); flex-direction: column; padding: 20px 24px 32px; gap: 2px; overflow: auto; z-index: 60; }
  .nav.is-open > a { font-size: 1.12rem; padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav.is-open .nav__mobile { display: flex; flex-direction: column; gap: 2px; }
  .nav.is-open .nav__mobile a:not(.btn) { font-size: 1.02rem; padding: 12px; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__mobile .nav__phone { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); border-bottom: none; padding-top: 16px; }
  body.nav-open { overflow: hidden; }     /* блокируем прокрутку фона при открытом меню */
}

/* ============================================================
   Визуальные эффекты (наведение, появление, фон)
   ============================================================ */

/* Подсветка контура карточек при наведении */
.material-card, .feature, .project-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.material-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.feature { position: relative; }
.feature:hover { border-color: var(--accent); transform: translateY(-3px); }
.section--ink .feature:hover { border-color: var(--accent); }
.project-card:hover { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }

/* Плавное появление блоков при прокрутке (классы вешает JS, поэтому без JS контент виден) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* Декоративная вращающаяся фигура на фоне тёмных секций */
.section--ink { position: relative; overflow: hidden; }
.section--ink > .container { position: relative; z-index: 1; }
.deco-shape { position: absolute; z-index: 0; pointer-events: none; width: 420px; height: 420px; border: 2px solid rgba(242,163,0,.12); border-radius: 56px; right: -140px; top: -160px; will-change: transform; }
.deco-shape::after { content: ""; position: absolute; inset: 48px; border: 2px solid rgba(255,255,255,.05); border-radius: 36px; }

@media (max-width: 760px) { .deco-shape { width: 260px; height: 260px; right: -110px; top: -120px; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .deco-shape { display: none; }
}
