/* =====================================================================
   «Чистый Город» — общие стили для всех страниц сайта
   Подход: mobile-first. Сначала пишем стили для телефона,
   потом через @media (min-width: ...) добавляем для планшета и ПК.
   ===================================================================== */

/* ---------- 1. Переменные (цвета, шрифты, отступы) ----------
   Хотите поменять цвет сайта — меняйте только здесь. */
:root {
  --green: #1F7A4D;        /* основной глубокий зелёный */
  --green-dark: #17603C;   /* для наведения на кнопки */
  --lime: #8BC34A;         /* акцент — свежий салатовый */
  --lime-light: #E8F5D8;   /* светлый салатовый для фонов */
  --bg: #F7FAF7;           /* светлый фон страницы */
  --white: #FFFFFF;
  --text: #1E2A23;         /* тёмно-графитовый текст */
  --muted: #5B6B61;        /* второстепенный текст */
  --border: #DDE7DF;
  --danger: #D64545;       /* ошибки в форме */

  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 6px 24px rgba(30, 42, 35, .07);
  --shadow-hover: 0 14px 40px rgba(30, 42, 35, .13);
  --container: 1200px;
  --header-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Сброс и базовые стили ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;                         /* плавная прокрутка по якорям */
  scroll-padding-top: calc(var(--header-h) + 12px); /* чтобы шапка не закрывала заголовок */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; } /* когда открыто меню/модальное окно */

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 6vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

/* Видимый фокус для навигации с клавиатуры */
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* Скрыть элемент визуально, но оставить для экранных дикторов */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- 3. Секции и заголовки секций ---------- */
.section { padding: 64px 0; }
.section--white { background: var(--white); }
.section__head { max-width: 720px; margin-bottom: 36px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--green);
  background: var(--lime-light);
  padding: 6px 14px; border-radius: 99px; margin-bottom: 14px;
}
.section__sub { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- 4. Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 26px;
  border: 2px solid transparent; border-radius: 99px;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  text-align: center; line-height: 1.2;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--green); color: var(--white); box-shadow: 0 6px 18px rgba(31, 122, 77, .3); }
.btn--primary:hover { background: var(--green-dark); color: var(--white); box-shadow: 0 10px 26px rgba(31, 122, 77, .38); }
.btn--accent { background: var(--lime); color: var(--text); }
.btn--accent:hover { background: #9ccf5f; color: var(--text); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--green); }
.btn--outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn--outline:hover { background: var(--green); color: var(--white); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- 5. Шапка (sticky) ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
/* Полупрозрачный фон шапки с размытием вынесен в ::before.
   Если повесить backdrop-filter на саму шапку, мобильное меню (position: fixed)
   «застрянет» внутри шапки и не раскроется на весь экран. */
.header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(247, 250, 247, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.header.is-scrolled { border-color: var(--border); box-shadow: 0 4px 20px rgba(30, 42, 35, .06); }
.header__inner { display: flex; align-items: center; gap: 10px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); flex-shrink: 0; }
.logo:hover { color: var(--text); }
.logo__icon { width: 44px; height: 44px; flex-shrink: 0; transition: transform .6s var(--ease); }
.logo:hover .logo__icon { transform: rotate(-20deg); }
/* В тёмном подвале — значок на светлом круге, иначе тёмные дома не видно */
.footer .logo__icon { background: #F4F7F2; border-radius: 50%; padding: 3px; }
.logo__text { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; line-height: 1; }
@media (min-width: 400px) { .logo__text { font-size: 1.15rem; } }
.logo__text span { color: var(--green); }

/* Меню: на телефоне — выезжающая панель */
.nav {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--bg);
  padding: 24px 20px 40px;
  overflow-y: auto;
  /* Скрыто: прозрачное и чуть приподнятое (без выезда за край экрана —
     иначе на телефоне появится горизонтальная прокрутка) */
  opacity: 0;
  transform: translateY(-12px);
  visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.nav.is-open { opacity: 1; transform: none; visibility: visible; }
.nav__list { list-style: none; margin: 0 0 24px; padding: 0; }
.nav__link {
  display: block; padding: 14px 4px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.nav__link:hover, .nav__link.is-active { color: var(--green); }
.nav__link--accent { color: var(--green); }
.nav__mobile-cta { display: grid; gap: 12px; }

.header__phone {
  display: none; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; color: var(--text); white-space: nowrap;
}
.header__phone-icon {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--lime-light); color: var(--green); display: grid; place-items: center;
  transition: background .2s, color .2s;
}
.header__phone-icon svg { width: 18px; height: 18px; }
.header__phone:hover .header__phone-icon { background: var(--green); color: var(--white); }
.header__cta { display: none; white-space: nowrap; }

/* ---------- Выбор языка (выпадающий список) ---------- */
.lang { position: relative; margin-left: auto; flex-shrink: 0; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 12px; border-radius: 99px;
  border: 1.5px solid var(--border); background: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--text);
  transition: border-color .2s, color .2s;
}
.lang__btn:hover, .lang.is-open .lang__btn { border-color: var(--green); color: var(--green); }
.lang__globe { width: 16px; height: 16px; flex-shrink: 0; }
.lang__chevron { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.lang.is-open .lang__chevron { transform: rotate(180deg); }
.lang__list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 120;
  min-width: 170px; margin: 0; padding: 6px; list-style: none;
  background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-hover);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.lang.is-open .lang__list { opacity: 1; visibility: visible; transform: none; }
.lang__list button {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 0; border-radius: 8px; background: none;
  font-size: .95rem; text-align: left; color: var(--text);
}
.lang__list button b { font-family: var(--font-head); font-size: .78rem; color: var(--muted); width: 22px; }
.lang__list button:hover { background: var(--bg); }
.lang__list button[aria-checked="true"] { background: var(--lime-light); color: var(--green); font-weight: 600; }
.lang__list button[aria-checked="true"] b { color: var(--green); }

/* Кнопка-бургер */
.burger {
  width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--white);
  box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.burger__lines, .burger__lines::before, .burger__lines::after {
  display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  position: relative; transition: transform .3s var(--ease), background .2s;
}
.burger__lines::before, .burger__lines::after { content: ''; position: absolute; left: 0; }
.burger__lines::before { top: -7px; }
.burger__lines::after { top: 7px; }
.burger[aria-expanded="true"] .burger__lines { background: transparent; }
.burger[aria-expanded="true"] .burger__lines::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. Первый экран (hero) ---------- */
.hero {
  position: relative; color: var(--white);
  min-height: calc(92vh - var(--header-h));
  display: flex; align-items: center;
  padding: 72px 0;
  overflow: hidden;
  isolation: isolate;
}
/* Фоновое фото. Чтобы заменить — положите свой файл в /img/hero/ с тем же именем */
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
/* Затемнение поверх фото, чтобы текст хорошо читался */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(20, 40, 28, .88) 0%, rgba(20, 50, 33, .66) 55%, rgba(20, 50, 33, .35) 100%);
}
.hero__content { max-width: 760px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(139, 195, 74, .2); border: 1px solid rgba(139, 195, 74, .5);
  color: #D7F0B8; padding: 6px 14px; border-radius: 99px;
  font-size: .85rem; font-weight: 600; margin-bottom: 20px;
}
.hero__badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(139, 195, 74, .25); }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero__sub { font-size: clamp(1.05rem, 2.4vw, 1.3rem); opacity: .92; max-width: 600px; margin-bottom: 32px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__buttons .btn { flex: 1 1 200px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; padding: 0; list-style: none; font-size: .95rem; opacity: .9; }
.hero__facts li::before { content: '✓'; color: var(--lime); font-weight: 700; margin-right: 8px; }
.hero--small { min-height: auto; padding: 56px 0 72px; }

/* Хлебные крошки */
.breadcrumbs { font-size: .9rem; margin-bottom: 22px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: '→'; margin-right: 6px; opacity: .7; }
.breadcrumbs a { color: var(--lime); }
.breadcrumbs [aria-current] { opacity: .85; }

/* ---------- 7. Фильтр-вкладки ---------- */
.filters {
  display: flex; gap: 8px; margin-bottom: 28px;
  overflow-x: auto; padding-bottom: 6px; scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filters__btn {
  flex-shrink: 0;
  padding: 10px 20px; border-radius: 99px;
  border: 1.5px solid var(--border); background: var(--white);
  font-weight: 600; font-size: .95rem; color: var(--text);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.filters__btn:hover { border-color: var(--green); color: var(--green); }
.filters__btn.is-active { background: var(--green); border-color: var(--green); color: var(--white); }

/* ---------- 8. Карточки (каталог сырья и оборудования) ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }

.card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card.is-hidden { display: none; }
.card__img-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--lime-light); }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__img { transform: scale(1.06); }
.card__tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255, 255, 255, .92); color: var(--green);
  font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 99px;
}
.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.card__title { margin-bottom: 6px; }
.card__link { color: inherit; }
.card__link:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.card__desc { color: var(--muted); font-size: .93rem; margin-bottom: 16px; }
.card__specs { list-style: none; padding: 0; margin: 0 0 18px; font-size: .9rem; display: grid; gap: 6px; }
.card__specs li { display: flex; gap: 8px; color: var(--muted); }
.card__specs li::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--lime); }
.card__footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card__price { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--green); white-space: nowrap; }
.card__price small { font-size: .78rem; font-weight: 600; color: var(--muted); }

.catalog__note { margin-top: 24px; color: var(--muted); font-size: .9rem; text-align: center; }

/* Плашка «засор −N%» справа на фото */
.card__tag--discount { left: auto; right: 12px; background: rgba(30, 42, 35, .78); color: var(--white); font-weight: 600; }

/* Цены по объёму внутри карточки */
.tiers {
  list-style: none; margin: 0 0 16px; padding: 10px 12px;
  background: var(--bg); border-radius: var(--radius-sm);
  display: grid; gap: 4px; font-size: .86rem;
}
.tiers li { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); }
.tiers b { color: var(--text); font-weight: 700; white-space: nowrap; }
.tiers li:last-child b { color: var(--green); }
.tiers--single { color: var(--muted); }

/* Прайс-лист таблицей */
.price-list { margin-top: 32px; text-align: center; }
.price-list summary { list-style: none; }
.price-list summary::-webkit-details-marker { display: none; }
.price-list[open] summary { margin-bottom: 20px; }
.price-table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); text-align: left;
}
.price-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .93rem; }
.price-table th, .price-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.price-table thead th {
  background: var(--green); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  text-align: center; vertical-align: bottom;
}
.price-table thead th:first-child { text-align: left; }
.price-table tbody th { font-weight: 600; }
.price-table td { text-align: center; white-space: nowrap; }
.price-table td:nth-child(2) { color: var(--muted); }
.price-table td:last-child { font-weight: 700; color: var(--green); }
.price-table__single { color: var(--text) !important; font-weight: 600 !important; }
.price-table tbody tr:nth-child(even) { background: var(--bg); }
.price-table tbody tr:hover { background: var(--lime-light); }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- 9. Как мы работаем (шаги) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: step; }
.step {
  position: relative; background: var(--bg); border-radius: var(--radius); padding: 28px 24px;
  counter-increment: step;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step::after {
  content: '0' counter(step);
  position: absolute; top: 18px; right: 22px;
  font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: rgba(31, 122, 77, .1);
}
.step__icon, .feature__icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--green); color: var(--white);
  display: grid; place-items: center; margin-bottom: 18px;
}
.step__icon svg, .feature__icon svg { width: 28px; height: 28px; }
.step p, .feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- 10. Преимущества ---------- */
.features { display: grid; gap: 20px; }
.feature {
  background: var(--white); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature__icon { background: var(--lime-light); color: var(--green); }

/* ---------- 11. Цифры (счётчики) ---------- */
.stats {
  background: var(--green); color: var(--white);
  border-radius: calc(var(--radius) + 8px);
  padding: 40px 24px;
  display: grid; gap: 28px; text-align: center;
  position: relative; overflow: hidden;
}
.stats::before {
  content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: rgba(139, 195, 74, .18); top: -180px; right: -120px;
}
.stat { position: relative; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: 1; color: var(--lime); }
.stat__label { margin-top: 8px; opacity: .9; }
.stats--single .stat__num { font-size: clamp(2.2rem, 7vw, 4rem); }
.stats--single .stat__label { font-size: 1.1rem; }

/* ---------- 12. Баннер «Также у нас можно заказать оборудование» ---------- */
.promo {
  display: flex; flex-direction: column; gap: 22px;
  position: relative; overflow: hidden;
  padding: 36px 28px;
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(120deg, var(--lime) 0%, #B5DE7E 55%, #D8F0B5 100%);
  color: var(--text);
  box-shadow: 0 16px 40px rgba(139, 195, 74, .35);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.promo:hover { color: var(--text); transform: translateY(-4px) scale(1.005); box-shadow: 0 22px 50px rgba(139, 195, 74, .45); }
.promo::before { /* декоративный круг */
  content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, .25); right: -100px; bottom: -150px;
}
.promo__text { position: relative; }
.promo__title { font-size: clamp(1.5rem, 4.5vw, 2.4rem); margin-bottom: 8px; }
.promo__sub { margin: 0; font-size: 1.02rem; opacity: .8; }
.promo__arrow {
  position: relative; flex-shrink: 0;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green); color: var(--white);
  display: grid; place-items: center;
  transition: transform .35s var(--ease);
}
.promo__arrow svg { width: 28px; height: 28px; }
.promo:hover .promo__arrow { transform: translateX(8px); }

/* ---------- 13. Галерея ---------- */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.gallery__item {
  position: relative; padding: 0; border: 0; background: var(--lime-light);
  border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1 / 1;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item::after {
  content: '⤢'; position: absolute; inset: 0;
  display: grid; place-items: center; font-size: 2rem; color: var(--white);
  background: rgba(31, 122, 77, .45); opacity: 0; transition: opacity .3s;
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item:hover::after { opacity: 1; }

/* Лайтбокс (просмотр фото) */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(14, 22, 17, .94);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 12px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { margin: 0; max-width: 1100px; width: 100%; text-align: center; }
.lightbox__img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: var(--radius-sm); }
.lightbox__caption { color: #cfe3d6; margin-top: 12px; font-size: .95rem; }
.lightbox__btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .12); color: var(--white); font-size: 1.5rem; line-height: 1;
  display: grid; place-items: center; transition: background .2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- 14. Отзывы (слайдер) ---------- */
.slider { position: relative; }
.slider__viewport { overflow: hidden; border-radius: var(--radius); }
.slider__track { display: flex; transition: transform .5s var(--ease); }
.review {
  flex: 0 0 100%; padding: 4px;
}
.review__inner {
  height: 100%; background: var(--white); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow);
}
.review__stars { color: #F2B01E; font-size: 1.2rem; letter-spacing: 2px; margin-bottom: 12px; }
.review__stars .off { color: var(--border); }
.review__text { font-size: 1.02rem; margin-bottom: 18px; }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--green); color: var(--white);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700;
}
.review__name { font-weight: 700; line-height: 1.2; }
.review__role { font-size: .85rem; color: var(--muted); }
.slider__controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.slider__arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--white);
  display: grid; place-items: center; font-size: 1.2rem; transition: background .2s, color .2s, border-color .2s;
}
.slider__arrow:hover { background: var(--green); color: var(--white); border-color: var(--green); }
.slider__dots { display: flex; gap: 8px; }
.slider__dot { width: 10px; height: 10px; padding: 0; border-radius: 99px; border: 0; background: var(--border); transition: width .3s, background .3s; }
.slider__dot.is-active { width: 28px; background: var(--green); }

/* ---------- 15. FAQ (аккордеон) ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; }
.faq__question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; border: 0; background: none; text-align: left;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
}
.faq__icon {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--lime-light); color: var(--green);
  display: grid; place-items: center; font-size: 1.3rem; line-height: 1; transition: transform .3s var(--ease), background .3s;
}
.faq__question[aria-expanded="true"] .faq__icon { transform: rotate(45deg); background: var(--green); color: var(--white); }
/* Плавное раскрытие через grid-template-rows: 0fr → 1fr */
.faq__answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq__answer > div { overflow: hidden; }
.faq__answer p { padding: 0 22px 20px; margin: 0; color: var(--muted); }
.faq__item.is-open .faq__answer { grid-template-rows: 1fr; }

/* ---------- 16. Формы ---------- */
.form-wrap {
  background: var(--white); border-radius: calc(var(--radius) + 8px); box-shadow: var(--shadow);
  padding: 28px 20px;
}
.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-weight: 600; font-size: .95rem; }
.field__label .req { color: var(--danger); }
.field__hint { font-size: .82rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--bg);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green); background: var(--white); box-shadow: 0 0 0 4px rgba(31, 122, 77, .12); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); background: #FFF6F6; }
/* ---------- Календарь в форме заявки ---------- */
.datepick { position: relative; }
.datepick__toggle { display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; color: var(--text); font: inherit; }
.datepick__toggle[aria-expanded="true"] { border-color: var(--green); background: var(--white); box-shadow: 0 0 0 4px rgba(31, 122, 77, .12); }
.datepick__icon { flex: 0 0 22px; height: 22px; color: var(--green); }
.datepick__value { flex: 1; min-width: 0; font-weight: 500; }
.datepick__value.is-empty { color: var(--muted); font-weight: 400; }
.datepick__chev { flex: 0 0 18px; height: 18px; color: var(--muted); transition: transform .25s var(--ease); }
.datepick__toggle[aria-expanded="true"] .datepick__chev { transform: rotate(180deg); }

.datepick__panel {
  position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0;
  padding: 16px; background: var(--white); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: 0 18px 50px rgba(30, 42, 35, .18);
  animation: dpIn .2s var(--ease);
}
.datepick__panel[hidden] { display: none; }
@keyframes dpIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (min-width: 600px) { .datepick__panel { right: auto; width: 360px; } }

.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dp-title { font: 700 1.02rem/1.2 var(--font-head); text-transform: capitalize; }
.dp-nav {
  width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--bg);
  color: var(--green); font-size: 1.25rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.dp-nav:hover:not(:disabled) { background: var(--lime-light); }
.dp-nav:disabled { opacity: .3; cursor: default; }

.dp-week, .dp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dp-week { margin-bottom: 4px; }
.dp-week span { text-align: center; font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; padding: 4px 0; }
.dp-week span:last-child { color: var(--danger); opacity: .7; }
.dp-day {
  aspect-ratio: 1; min-height: 38px; border: 0; border-radius: 12px; background: transparent;
  font: 600 .95rem/1 var(--font-body); color: var(--text); cursor: pointer; position: relative;
  transition: background .15s, color .15s, transform .15s;
}
.dp-day:hover:not(:disabled) { background: var(--lime-light); }
.dp-day:active:not(:disabled) { transform: scale(.94); }
.dp-day.is-today { box-shadow: inset 0 0 0 2px var(--lime); }
.dp-day.is-selected, .dp-day.is-selected:hover { background: var(--green); color: #fff; box-shadow: none; }
.dp-day:disabled { color: #B5C0B9; cursor: not-allowed; font-weight: 400; }
.dp-day.is-sunday:disabled { color: rgba(214, 69, 69, .45); text-decoration: line-through; }
.dp-day:focus-visible, .dp-nav:focus-visible { outline: 3px solid rgba(31, 122, 77, .35); outline-offset: 1px; }

.dp-note { margin: 12px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.4; }
.dp-actions { display: flex; gap: 8px; margin-top: 12px; }
.dp-actions button { flex: 1; min-height: 42px; border-radius: 99px; font-weight: 700; cursor: pointer; font-size: .9rem; }
.dp-clear { border: 1.5px solid var(--border); background: var(--white); color: var(--muted); }
.field.has-error .datepick__toggle { border-color: var(--danger); background: #FFF6F6; }

.field__error { display: none; font-size: .85rem; color: var(--danger); }
.field.has-error .field__error { display: block; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }

/* Радиокнопки и чекбоксы в виде «плашек» */
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 99px;
  border: 1.5px solid var(--border); background: var(--bg);
  font-size: .93rem; font-weight: 500; cursor: pointer; user-select: none;
  transition: background .2s, border-color .2s, color .2s;
}
.choice span::before {
  content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); background: var(--white);
  transition: border .2s, background .2s;
}
.choice input[type="checkbox"] + span::before { border-radius: 5px; }
.choice input:checked + span { background: var(--lime-light); border-color: var(--green); color: var(--green); }
.choice input:checked + span::before { border: 5px solid var(--green); }
.choice input[type="checkbox"]:checked + span::before {
  border: 0; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.choice input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }
.choice.is-flash span { animation: flash 1.2s var(--ease); }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(139, 195, 74, 0); } 30% { box-shadow: 0 0 0 6px rgba(139, 195, 74, .55); } }

/* Поля, которые появляются по условию */
.conditional { display: none; }
.conditional.is-visible { display: flex; animation: fadeIn .35s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Калькулятор выплаты */
.calc {
  display: flex; align-items: center; gap: 14px;
  background: var(--lime-light); border-radius: var(--radius-sm); padding: 16px 18px;
}
.calc__icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--green); color: var(--white); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; }
.calc__label { font-size: .85rem; color: var(--muted); }
.calc__sum { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--green); line-height: 1.2; }
.calc__note { font-size: .78rem; color: var(--muted); margin-top: 4px; line-height: 1.4; }

/* Загрузка фото */
.upload {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 22px; border: 2px dashed var(--border); border-radius: var(--radius-sm); background: var(--bg);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.upload:hover, .upload.is-dragover { border-color: var(--green); background: var(--lime-light); }
.upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload__icon { font-size: 1.6rem; }
.upload__title { font-weight: 600; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.preview { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg); }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview__remove {
  position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: rgba(30, 42, 35, .75); color: var(--white); font-size: 1rem; line-height: 1; display: grid; place-items: center;
}

/* Чекбокс согласия */
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--green); }

/* Honeypot: поле-ловушка для спам-ботов. Человек его не видит */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form__note { font-size: .82rem; color: var(--muted); margin: 0; text-align: center; }
.form-error-box { display: none; padding: 12px 16px; border-radius: var(--radius-sm); background: #FFF0F0; color: var(--danger); font-size: .92rem; }
.form-error-box.is-visible { display: block; }

.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .4); border-top-color: var(--white); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 17. Модальное окно «Спасибо» ---------- */
.modal {
  position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(14, 22, 17, .6); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  position: relative; max-width: 440px; width: 100%; text-align: center;
  background: var(--white); border-radius: calc(var(--radius) + 8px); padding: 40px 28px 32px;
  transform: translateY(20px) scale(.96); transition: transform .4s var(--ease);
}
.modal.is-open .modal__box { transform: none; }
.modal__check {
  width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--lime-light); color: var(--green); display: grid; place-items: center;
}
.modal__check svg { width: 44px; height: 44px; stroke-dasharray: 40; stroke-dashoffset: 40; }
.modal.is-open .modal__check svg { animation: draw .6s .25s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.modal__title { font-size: 1.6rem; }
.modal__text { color: var(--muted); margin-bottom: 24px; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg); font-size: 1.3rem; }

/* ---------- 18. Контакты ---------- */
.contacts { display: grid; gap: 24px; }
.contacts__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contacts__item { display: flex; gap: 16px; align-items: flex-start; }
.contacts__icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: var(--lime-light); color: var(--green); display: grid; place-items: center; }
.contacts__icon svg { width: 22px; height: 22px; }
.contacts__title { font-size: .85rem; color: var(--muted); }
.contacts__value { font-weight: 600; font-size: 1.05rem; color: var(--text); }
.messengers { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.contacts__value + .contacts__value { margin-top: 4px; }
.contacts__value a { color: var(--text); }
.contacts__value a:hover { color: var(--green); }
.contacts__person { font-weight: 500; color: var(--muted); }
/* Адрес-ссылка на 2ГИС */
.addr-link {
  display: inline-flex; align-items: baseline; gap: 6px;
  color: var(--text) !important; font-weight: 600;
  text-decoration: underline; text-decoration-color: rgba(31, 122, 77, .35);
  text-underline-offset: 4px; text-decoration-thickness: 2px;
  transition: color .2s, text-decoration-color .2s;
}
.addr-link:hover { color: var(--green) !important; text-decoration-color: var(--green); }
.addr-link__icon { width: 14px; height: 14px; flex-shrink: 0; color: var(--green); transform: translateY(2px); }
.addr-link--footer { color: #DCE7E0 !important; font-weight: 400; text-decoration-color: rgba(139, 195, 74, .45); }
.addr-link--footer:hover { color: var(--lime) !important; text-decoration-color: var(--lime); }
.addr-link--footer .addr-link__icon { color: var(--lime); }
.map { width: 100%; min-height: 340px; border: 0; border-radius: var(--radius); background: var(--lime-light); box-shadow: var(--shadow); }

/* ---------- 19. Подвал ---------- */
.footer { background: var(--text); color: #B9C7BE; padding: 56px 0 24px; margin-top: 0; }
.footer a { color: #DCE7E0; }
.footer a:hover { color: var(--lime); }
.footer__grid { display: grid; gap: 32px; }
.footer .logo { color: var(--white); }
.footer .logo__text span { color: var(--lime); }
.footer__about { margin-top: 14px; font-size: .93rem; max-width: 320px; }
.footer__title { font-family: var(--font-head); color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.footer__promo {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  color: var(--lime) !important; font-weight: 700;
}
.footer__promo:hover { gap: 12px; }
.footer__bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-direction: column; gap: 8px; font-size: .85rem;
}

/* ---------- 20. Плавающие кнопки ---------- */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.fab__btn {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  color: var(--white); box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  transition: transform .2s var(--ease);
}
.fab__btn:hover { transform: scale(1.08); color: var(--white); }
.fab__btn svg { width: 26px; height: 26px; }
.fab__btn--call { background: var(--green); animation: pulse 2.4s infinite; }
.fab__btn--wa { background: #25D366; }
/* Окно WhatsApp (контакт Евгения) */
.wa-chat {
  position: fixed; right: 16px; bottom: 150px; z-index: 95;
  width: min(330px, calc(100vw - 32px));
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
  transform-origin: bottom right; animation: waIn .25s var(--ease);
}
.wa-chat[hidden] { display: none; }
@keyframes waIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.wa-chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: #128C7E; color: #fff; }
.wa-chat__avatar {
  flex: 0 0 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lime); color: #fff; font: 800 1.2rem/1 Montserrat, sans-serif; position: relative;
}
.wa-chat__avatar::after { content: ''; position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #25D366; border: 2px solid #128C7E; }
.wa-chat__who { flex: 1; min-width: 0; line-height: 1.25; }
.wa-chat__who b { display: block; font-size: 1rem; }
.wa-chat__who small { font-size: .8rem; opacity: .85; }
.wa-chat__close { flex: 0 0 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.wa-chat__close:hover { background: rgba(255, 255, 255, .28); }
.wa-chat__body { padding: 18px 16px; background: #ECE5DD; }
.wa-chat__bubble {
  position: relative; margin: 0; max-width: 92%; padding: 10px 12px; border-radius: 0 12px 12px 12px;
  background: #fff; color: var(--text, #1E2A23); font-size: .95rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}
.wa-chat__bubble::before { content: ''; position: absolute; left: -8px; top: 0; border: 8px solid transparent; border-top-color: #fff; border-right-color: #fff; border-width: 0 8px 8px 0; }
.wa-chat__foot { padding: 14px 16px 16px; display: grid; gap: 8px; text-align: center; }
.wa-chat__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  border-radius: 99px; background: #25D366; color: #fff; font-weight: 700; text-decoration: none;
}
.wa-chat__btn:hover { background: #1ebe5b; color: #fff; }
.wa-chat__btn svg { width: 22px; height: 22px; }
.wa-chat__phone { font-size: .9rem; color: var(--green); font-weight: 600; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 122, 77, .5); } 70% { box-shadow: 0 0 0 14px rgba(31, 122, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 122, 77, 0); } }

.to-top {
  position: fixed; left: 16px; bottom: 16px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--white); color: var(--green); box-shadow: var(--shadow-hover);
  display: grid; place-items: center; font-size: 1.3rem;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, visibility .3s, transform .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green); color: var(--white); }

/* ---------- 21. Страница оборудования: «Почему покупают у нас» и кнопка «Назад» ---------- */
.back-link { margin-bottom: 0; }
.back-bar { margin-top: 28px; }

/* ---------- 22. Страница 404 и политика ---------- */
.page-404 { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.page-404__code { font-family: var(--font-head); font-weight: 800; font-size: clamp(6rem, 25vw, 11rem); line-height: 1; color: var(--green); }
.page-404__code span { color: var(--lime); }
.page-404 p { color: var(--muted); max-width: 460px; margin: 0 auto 28px; }
.page-404__buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.text-page { max-width: 820px; }
.text-page h2 { font-size: 1.3rem; margin-top: 1.6em; }

/* ---------- 22б. Статус заявки: плашка, окно «Спасибо», страница status.html ---------- */
.btn--tg { background: #229ED9; color: var(--white); }
.btn--tg:hover { background: #1b8bc0; color: var(--white); }
.btn--tg svg { flex-shrink: 0; }

.modal__actions { display: grid; gap: 10px; margin-bottom: 12px; }
.modal__actions:empty { display: none; }

/* Плашка под шапкой */
.status-bar { background: var(--lime-light); border-bottom: 1px solid var(--border); font-size: .93rem; }
.status-bar--accepted { background: #E3F4E8; }
.status-bar--rejected { background: #FCEDED; }
.status-bar__inner { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.status-bar__link { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 0; color: var(--text); }
.status-bar__link:hover { color: var(--text); }
.status-bar__link:hover .status-bar__more { text-decoration: underline; }
.status-bar__more { color: var(--green); font-weight: 600; white-space: nowrap; }
.status-bar__close { flex-shrink: 0; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .7); font-size: 1.2rem; line-height: 1; }

/* Страница статуса */
.status-page { min-height: 60vh; padding-top: 40px; }
.status-page__title { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.breadcrumbs--light a { color: var(--green); }
.status-list { display: grid; gap: 20px; max-width: 760px; }
.status-empty { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 24px; text-align: center; color: var(--muted); }
.status-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px 20px; border-top: 5px solid var(--lime);
}
.status-card--accepted { border-top-color: var(--green); }
.status-card--rejected { border-top-color: var(--danger); }
.status-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.status-card__type { font-size: .85rem; color: var(--muted); }
.status-card__title { font-size: 1.4rem; margin: 2px 0 0; }
.status-card__what { color: var(--muted); margin-bottom: 18px; }
.status-card__text { font-size: 1.05rem; font-weight: 500; margin-bottom: 6px; }
.status-card__updated { font-size: .85rem; color: var(--muted); }
.status-card__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.status-card__sub { display: inline-flex; align-items: center; gap: 6px; color: #229ED9; font-weight: 600; font-size: .92rem; }
.status-card__hint { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; font-weight: 700; font-size: .9rem; white-space: nowrap; background: var(--lime-light); color: var(--green); }
.status-badge--accepted { background: var(--green); color: var(--white); }
.status-badge--rejected { background: #FCEDED; color: var(--danger); }

/* Этапы: Отправлена → Рассмотрение → Решение */
.timeline { list-style: none; margin: 0 0 18px; padding: 0; display: flex; }
.timeline__step { flex: 1; position: relative; padding-top: 26px; font-size: .82rem; color: var(--muted); text-align: center; }
.timeline__step::before { /* линия между точками */
  content: ''; position: absolute; top: 8px; left: -50%; width: 100%; height: 3px; background: var(--border);
}
.timeline__step:first-child::before { display: none; }
.timeline__dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 19px; height: 19px; border-radius: 50%; background: var(--white); border: 3px solid var(--border); z-index: 1; }
.timeline__step.is-done, .timeline__step.is-current { color: var(--text); font-weight: 600; }
.timeline__step.is-done::before, .timeline__step.is-current::before { background: var(--green); }
.timeline__step.is-done .timeline__dot { background: var(--green); border-color: var(--green); }
.timeline__step.is-current .timeline__dot { border-color: var(--green); animation: pulse 2s infinite; }
.timeline__step.is-rejected { color: var(--danger); }
.timeline__step.is-rejected::before { background: var(--danger); }
.timeline__step.is-rejected .timeline__dot { background: var(--danger); border-color: var(--danger); }

.footer__links { display: inline-flex; flex-wrap: wrap; gap: 6px; }

/* ---------- 22в. Текст о компании (для людей и поисковиков) ---------- */
.seo-text { padding-top: 0; }
.seo-text__inner { max-width: 860px; }
.seo-text h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
.seo-text p { color: var(--muted); }

/* ---------- 22г. Страницы материалов (priem/*.html) ---------- */
.material { display: grid; gap: 32px; }
.material h2 { font-size: clamp(1.3rem, 3.2vw, 1.7rem); margin-top: 1.6em; }
.material__main > h2:first-child { margin-top: 0; }
.material__prices { min-width: 0; max-width: 520px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.material__prices th { text-align: left; font-weight: 500; }
.material__prices td { text-align: right; font-size: 1.1rem; }
.material__prices td b { color: var(--green); font-size: 1.3rem; }
.material__note { color: var(--muted); font-size: .92rem; margin-top: 12px; }
.material__rules, .material__points { padding-left: 1.2em; }
.material__rules li, .material__points li { margin-bottom: 6px; }
.material__hours { color: var(--muted); font-size: .95rem; }
.material__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.material__img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); }
.material__side-title { font-size: 1.15rem !important; margin-top: 28px !important; }
.material__others { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.material__others a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text); }
.material__others a:hover { background: var(--lime-light); color: var(--green); }
@media (min-width: 1024px) {
  .material { grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
  .material__side { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* Ссылки на страницы материалов в тексте о компании */
.seo-links { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seo-links a { display: inline-block; padding: 6px 14px; border-radius: 99px; background: var(--white); border: 1.5px solid var(--border); color: var(--text); font-size: .9rem; }
.seo-links a:hover { border-color: var(--green); color: var(--green); }
/* Страницы материалов только на русском — на казахском и английском ссылки не показываем */
html:not([lang="ru"]) .seo-links { display: none; }

/* ---------- 22д. «Каталог оборудования обновляется» ---------- */
.eq-soon { max-width: 760px; margin: 0 auto; text-align: center; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 24px; }
.eq-soon h2 { font-size: clamp(1.3rem, 3.4vw, 1.8rem); }
.eq-soon p { color: var(--muted); max-width: 560px; margin: 0 auto 22px; }

/* ---------- 23. Анимация появления при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Если у пользователя включено «уменьшить движение» — отключаем анимации */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   АДАПТИВ: очень узкие телефоны (меньше 360px, например старый iPhone SE)
   Чуть уменьшаем шапку, чтобы логотип, язык и меню влезли в одну строку
   ===================================================================== */
@media (max-width: 359px) {
  .container { padding: 0 14px; }
  .header__inner { gap: 8px; }
  .logo { gap: 8px; }
  .logo__icon { width: 32px; height: 32px; }
  .logo__text { font-size: .95rem; }
  .lang__globe { display: none; }
  .lang__btn { padding: 0 10px; height: 40px; }
  .burger { width: 42px; height: 42px; }
  .hero__buttons .btn { flex-basis: 100%; }
}

/* =====================================================================
   АДАПТИВ: планшеты (от 600px)
   ===================================================================== */
@media (min-width: 600px) {
  .container { padding: 0 28px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); padding: 48px 32px; }
  .stats--single { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-auto-rows: 200px; }
  .gallery__item { aspect-ratio: auto; }
  .gallery__item:first-child { grid-column: span 2; } /* 2 + 7 = 9 ячеек = ровно 3 ряда */
  .form-wrap { padding: 40px 36px; }
  .form__row--2 { grid-template-columns: 1fr 1fr; }
  .review { flex-basis: 50%; }
  .hero__buttons .btn { flex: 0 0 auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* =====================================================================
   АДАПТИВ: ПК (от 1024px)
   ===================================================================== */
@media (min-width: 1024px) {
  :root { --header-h: 80px; }
  .section { padding: 100px 0; }
  .section__head { margin-bottom: 48px; }

  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--4 .card__body { padding: 18px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .gallery { grid-auto-rows: 210px; grid-auto-flow: dense; }
  .gallery__item { aspect-ratio: auto; }
  .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery__item:nth-child(6) { grid-column: span 2; }
  .promo { flex-direction: row; align-items: center; justify-content: space-between; padding: 52px 56px; }
  .promo__arrow { width: 84px; height: 84px; }
  .review { flex-basis: 33.333%; }
  .form-wrap { padding: 52px 56px; }
  .form__row--3 { grid-template-columns: repeat(3, 1fr); }
  .contacts { grid-template-columns: 5fr 7fr; align-items: stretch; gap: 40px; }
  .map { min-height: 100%; }
  /* 3 колонки, пока колонка «Оборудование» скрыта. Вернёте её — поставьте: 1.4fr 1fr 1fr 1.2fr */
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .lightbox__prev { left: 24px; }
  .lightbox__next { right: 24px; }

}

/* =====================================================================
   АДАПТИВ: широкий ПК (от 1280px) — горизонтальное меню
   ===================================================================== */
@media (min-width: 1280px) {
  .header .container { max-width: 1360px; }
  .header__inner { gap: 10px; }
  .lang { margin-left: 0; }

  /* Меню становится горизонтальным */
  .burger, .nav__mobile-cta { display: none; }
  .nav { position: static; opacity: 1; transform: none; visibility: visible; padding: 0; background: none; overflow: visible; margin-left: auto; }
  .nav__list { display: flex; gap: 2px; margin: 0; }
  .nav__link { border: 0; padding: 8px 9px; font-size: .88rem; border-radius: 99px; position: relative; white-space: nowrap; }
  .nav__link::after {
    content: ''; position: absolute; left: 9px; right: 9px; bottom: 2px; height: 2px; border-radius: 2px;
    background: var(--lime); transform: scaleX(0); transition: transform .3s var(--ease);
  }
  .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
  .nav__link.is-active { background: var(--lime-light); }
  .header__phone { display: inline-flex; }
  /* Номер телефона текстом показываем только от 1800px, до этого — круглая иконка */
  .header__phone-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .header__cta { display: inline-flex; }

  /* На ПК кнопка звонка не нужна — есть телефон в шапке. WhatsApp оставляем */
  .fab { right: 24px; bottom: 24px; }
  .fab__btn--call { display: none; }
  .wa-chat { right: 24px; bottom: 96px; }
  .to-top { left: auto; right: 28px; bottom: 96px; }
  .wa-open .to-top { opacity: 0; visibility: hidden; }
}

@media (min-width: 1600px) {
  .header .container { max-width: 1520px; }
  .nav__link { padding: 8px 12px; font-size: .93rem; }
  .nav__link::after { left: 12px; right: 12px; }
}

/* Номер телефона текстом в шапке — только на очень широких экранах,
   чтобы длинный номер не ломал меню на казахском и русском */
@media (min-width: 1800px) {
  .header .container { max-width: 1680px; }
  .header__phone-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

/* ---------- Фон блока «Каталог и цены»: мягкий зелёный градиент + тонкий узор из вторсырья ---------- */
#catalog {
  position: relative;
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(139, 195, 74, .16), transparent 70%),
    radial-gradient(800px 480px at 100% 100%, rgba(31, 122, 77, .12), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22260%22 height=%22260%22 viewBox=%220 0 260 260%22%3E%3Cg fill=%22none%22 stroke=%22%231F7A4D%22 stroke-width=%222.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 opacity=%22.1%22%3E %3Cpath d=%22M34 22h10v8l5 6v38a4 4 0 0 1-4 4H33a4 4 0 0 1-4-4V36l5-6z M29 48h20%22/%3E %3Cpath d=%22M150 30l26-10 26 10v28l-26 10-26-10z M150 30l26 10 26-10 M176 40v28%22/%3E %3Cpath d=%22M96 120c0-4 22-4 22 0v34c0 4-22 4-22 0z M96 120c0 4 22 4 22 0 M100 128v20%22/%3E %3Cpath d=%22M214 130c-26 0-38 16-36 40 24 2 40-10 36-40z M184 166l24-28%22/%3E %3Cpath d=%22M30 190a26 26 0 0 1 40-14 M74 186l-4-10-10 2 M70 214a26 26 0 0 1-40 6 M26 226l4-8 10 2%22/%3E %3Cpath d=%22M150 214q12-20 24 0t24 0 M150 228q12-20 24 0t24 0%22/%3E %3Cpath d=%22M232 236l6-10 6 10z%22/%3E%3Ccircle cx=%22118%22 cy=%2240%22 r=%223%22/%3E%3Ccircle cx=%2262%22 cy=%22122%22 r=%222.5%22/%3E%3Ccircle cx=%22236%22 cy=%2278%22 r=%222.5%22/%3E %3C/g%3E%3C/svg%3E") 0 0 / 260px 260px,
    linear-gradient(180deg, #EEF6EE 0%, #F4F9F2 100%);
}
#catalog .card, #catalog .price-table-wrap { box-shadow: 0 10px 30px rgba(30, 42, 35, .07); }
