/*
Theme Name: antikorr
Theme URI: https://antikorr.kz/
Description: Антикоррозийная обработка автомобилей в Алматы — лендинг ANTIKORR.KZ. Кастомная классическая тема (перенос статичного макета).
Author: antikorr.kz
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: antikorr
WPVibe: yes
*/

/* =========================================================
   ANTIKORR.KZ — homepage
   Block: header (header-menu + header-main) + lead modal
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --black:       #0E0E0E;
  --black-2:     #14181c;
  --gray:        #373435;
  --white:       #FEFEFE;
  --accent:      #efa519;
  --accent-dark: #d9930c;
  --accent-ink:  #1a1200;
  --kaspi:       #F14635;

  --font-head: "Oxanium", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --container: 1280px;
  --pad-x: clamp(16px, 4vw, 48px);
  --header-h: 64px;

  /* Фон hero-блока. По умолчанию — из темы; на проде переопределяется
     инлайновым стилем из functions.php (URL картинки в медиабиблиотеке). */
  --hero-bg: url("assets/img/header_background.webp");
}

@media (min-width: 1024px) {
  :root { --header-h: 72px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- Scroll snap (desktop only) ---------- */
@media (min-width: 1024px) and (min-height: 620px) {
  html { scroll-snap-type: y proximity; }
  .snap { scroll-snap-align: start; scroll-margin-top: var(--header-h); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 17px 32px;
  border-radius: 4px;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  will-change: transform;
}
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(239,165,25,.35); }
.btn--accent:active { transform: translateY(0); box-shadow: none; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* =========================================================
   header-menu
   ========================================================= */
.header-menu {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(14, 14, 14, .55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background-color .25s ease, box-shadow .25s ease;
}
@supports not ((-webkit-backdrop-filter: blur(2px)) or (backdrop-filter: blur(2px))) {
  .header-menu { background: rgba(14, 14, 14, .92); }
}
.header-menu.is-scrolled {
  background: rgba(12, 12, 12, .96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

.header-menu__inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-menu__logo { flex: 0 0 auto; display: flex; align-items: center; }
.header-menu__logo img,
.header-menu__logo svg {
  height: 14px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .4));
}
@media (min-width: 1024px) {
  .header-menu__logo img,
  .header-menu__logo svg { height: 16px; }
}

/* ---------- Nav ---------- */
.nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}
.nav__list { display: flex; align-items: center; gap: 6px; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(254, 254, 254, .82);
  border-radius: 4px;
  transition: color .15s ease, background-color .15s ease;
}
.nav__link:hover,
.nav__item--open > .nav__link { color: var(--white); }
.nav__chevron { transition: transform .2s ease; }
.nav__item--open .nav__chevron { transform: rotate(180deg); }

/* ---------- Submenu ---------- */
.nav__item--has-sub { position: relative; }
.nav__sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav__sub-link {
  display: block;
  padding: 11px 14px;
  font-size: 14px;
  color: rgba(254, 254, 254, .8);
  border-radius: 4px;
  transition: color .15s ease, background-color .15s ease;
  white-space: nowrap;
}
.nav__sub-link:hover { color: var(--white); background: rgba(255, 255, 255, .06); }

@media (min-width: 1024px) {
  .nav__sub {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 300px;
    padding: 10px;
    background: #16181b;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .nav__sub::before {
    content: "";
    position: absolute;
    inset: -12px 0 auto 0;
    height: 12px;
  }
  .nav__item--has-sub:hover .nav__sub,
  .nav__item--has-sub:focus-within .nav__sub,
  .nav__item--open .nav__sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* ---------- Socials ---------- */
.nav__socials { display: flex; align-items: center; gap: 10px; }
.social {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: rgba(254, 254, 254, .8);
  border: 1px solid rgba(255, 255, 255, .16);
  transition: color .15s ease, border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.social:hover {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- Burger ---------- */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  position: relative;
  flex: 0 0 auto;
}
.burger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease, top .22s ease;
}
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ---------- Mobile nav ---------- */
@media (max-width: 1023px) {
  .burger { display: block; }

  /* без backdrop-filter: иначе шапка становится containing block
     для position:fixed и мобильное меню не растягивается */
  .header-menu {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(14, 14, 14, .95);
  }
  .header-menu.is-scrolled { background: rgba(12, 12, 12, .98); }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 18px var(--pad-x) 40px;
    background: var(--black);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform .28s ease;
  }
  .nav.is-open { transform: translateX(0); }

  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav__item { border-bottom: 1px solid rgba(255, 255, 255, .07); }

  .nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 16px 4px;
    font-size: 16px;
  }
  .nav__link--sub { text-align: left; }

  .nav__sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav__item--open .nav__sub { max-height: 420px; }
  .nav__sub-link { padding: 13px 4px 13px 16px; font-size: 15px; }

  .nav__socials { margin-top: 26px; }
}

/* =========================================================
   header-main (hero)
   ========================================================= */
.header-main {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 44px) var(--pad-x) 52px;
  background-color: var(--black);
  background-image: var(--hero-bg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}
.header-main__overlay {
  position: absolute;
  inset: 0;
  background:
    /* тонкие диагональные линии (как на прежней заглушке) */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='900' viewBox='0 0 1600 900' preserveAspectRatio='none'%3E%3Cg stroke='%23ffffff' stroke-opacity='.05' stroke-width='2'%3E%3Cpath d='M-100 250 L1700 120'/%3E%3Cpath d='M-100 520 L1700 330'/%3E%3Cpath d='M-100 800 L1700 560'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat,
    /* чёрное перекрытие: вертикальный + боковой градиент + ровная заливка */
    linear-gradient(180deg, rgba(14,14,14,.92) 0%, rgba(14,14,14,.7) 38%, rgba(14,14,14,.8) 66%, rgba(14,14,14,.97) 100%),
    linear-gradient(90deg, rgba(14,14,14,.85) 0%, rgba(14,14,14,.12) 72%),
    rgba(14,14,14,.34);
}
.header-main__inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  min-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
}
.header-main__lead { margin-top: auto; }

.header-main__kicker {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.header-main__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.14;
  /* max-width: 22ch;*/
  margin-bottom: 20px;
  text-wrap: balance;
}

.header-main__subtitle {
  font-size: clamp(15px, 2vw, 21px);
  line-height: 1.55;
  max-width: 52ch;
  color: rgba(254, 254, 254, .88);
  margin-bottom: 34px;
}

.typing { white-space: nowrap; }
.typing__word { color: var(--accent); font-weight: 600; padding-left: .32em; }
.typing__cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 400;
  transform: translateY(1px);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.header-main__cta { margin-bottom: 6px; }

/* ---------- Facts ---------- */
.header-main__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 34px;
  margin-top: auto;
  padding-top: 44px;
}
.fact { display: flex; align-items: center; gap: 12px; }
.fact__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
}
.fact__text {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  color: rgba(254, 254, 254, .92);
}

@media (max-width: 560px) {
  .header-main__facts { gap: 14px 22px; }
  .fact { gap: 10px; }
  .fact__icon { width: 40px; height: 40px; }
  .fact__text { font-size: 14px; }
}

/* =========================================================
   Modal
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 8, .72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: fade .2s ease;
}
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #17191c;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  padding: 34px 30px 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
  animation: pop .22s ease;
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }

.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  font-size: 26px;
  line-height: 1;
  color: rgba(254, 254, 254, .6);
  border-radius: 6px;
  transition: color .15s ease, background-color .15s ease;
}
.modal__close:hover { color: var(--white); background: rgba(255, 255, 255, .08); }

.modal__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 8px;
}
.modal__text {
  font-size: 14px;
  color: rgba(254, 254, 254, .68);
  margin-bottom: 22px;
}

/* ---------- Lead form ---------- */
.lead-form__field { margin-bottom: 14px; }
.lead-form__field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(254, 254, 254, .55);
  margin-bottom: 6px;
}
.lead-form__field input {
  width: 100%;
  padding: 14px 15px;
  font-size: 15px;
  color: var(--white);
  background: #101214;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  transition: border-color .15s ease, background-color .15s ease;
}
.lead-form__field input::placeholder { color: rgba(254, 254, 254, .32); }
.lead-form__field input:focus { outline: none; border-color: var(--accent); background: #0c0e10; }
.lead-form__field input[aria-invalid="true"] { border-color: #e5484d; }

/* honeypot — скрытое поле-ловушка для ботов */
.lead-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form__submit { width: 100%; margin-top: 6px; }

.lead-form__status {
  min-height: 20px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.lead-form__status.is-ok { color: #46c46a; }
.lead-form__status.is-err { color: #e5686c; }

.lead-form__privacy {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(254, 254, 254, .4);
  text-align: center;
}

/* =========================================================
   Shared section heading
   ========================================================= */
.section-kicker {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.16;
  max-width: 1200px;
  text-wrap: balance;
}

/* =========================================================
   Scroll reveal
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   advantages — «Почему стоит выбрать именно нас?»
   ========================================================= */
.advantages {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 56px) var(--pad-x) 64px;
  background-color: var(--black);
  overflow: hidden;
}
.advantages::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -22%;
  width: 62vw;
  height: 62vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(circle, rgba(239, 165, 25, .10), rgba(239, 165, 25, 0) 70%);
  pointer-events: none;
}
.advantages__inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}
.advantages__head { margin-bottom: 42px; }
.advantages__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
  color: rgba(254, 254, 254, .9);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
}
.advantages__badge svg { color: var(--accent); flex: 0 0 auto; }

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.adv-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 16px;
  row-gap: 8px;
  padding: 22px 22px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.adv-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: background-color .2s ease, color .2s ease;
}
.adv-card__icon svg { width: 22px; height: 22px; }
.adv-card__title {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  min-width: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
}
.adv-card__text {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(254, 254, 254, .66);
}
.adv-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 165, 25, .55);
  background: rgba(255, 255, 255, .05);
}
.adv-card:hover .adv-card__icon {
  background: var(--accent);
  color: var(--accent-ink);
}

@media (max-width: 1023px) {
  .advantages {
    min-height: 0;
    padding: calc(var(--header-h) + 40px) var(--pad-x) 56px;
  }
  .advantages__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .advantages__grid { grid-template-columns: 1fr; gap: 14px; }
  .adv-card { padding: 22px 20px; }
}

/* =========================================================
   payplan — баннер «Обработка в рассрочку»
   ========================================================= */
.payplan {
  position: relative;
  padding: clamp(56px, 8vw, 104px) var(--pad-x);
  background-color: var(--black-2);
  background-image: linear-gradient(115deg, transparent 52%, rgba(0, 0, 0, .34) 52%);
  overflow: hidden;
}

.payplan__ghost {
  position: absolute;
  top: -.12em;
  left: -.03em;
  z-index: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(96px, 17vw, 260px);
  line-height: .9;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .05);
  white-space: nowrap;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.payplan__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.payplan__title {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(26px, 4vw, 44px);
}
.payplan__lead {
  margin-top: 18px;
  max-width: 44ch;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  color: rgba(254, 254, 254, .82);
}
.payplan__cta { margin-top: 30px; }

.payplan__also {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 30px;
  font-size: 13px;
  color: rgba(254, 254, 254, .5);
}
.payplan__also-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .01em;
  color: rgba(254, 254, 254, .72);
}
.payplan__also-item svg { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; }

.payplan__art { justify-self: center; width: 100%; }
.payplan__art svg {
  width: 100%;
  height: auto;
  max-width: 460px;
  margin: 0 auto;
  display: block;
}
.payplan__art .pa-card { fill: #1b1e22; }
.payplan__art .pa-stroke { fill: none; stroke: rgba(255, 255, 255, .12); }
.payplan__art .pa-accent { fill: var(--accent); }
.payplan__art .pa-kaspi { fill: var(--kaspi); }
.payplan__art .pa-chip { fill: #d7b45f; }
.payplan__art .pa-chipline { stroke: rgba(0, 0, 0, .35); stroke-width: 1.4; }
.payplan__art .pa-ico { fill: none; stroke: rgba(254, 254, 254, .8); stroke-width: 2.4; stroke-linecap: round; }
.payplan__art .pa-brand {
  fill: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: .01em;
}
.payplan__art .pa-num {
  fill: rgba(254, 254, 254, .82);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: .14em;
}
.payplan__art .pa-pct {
  fill: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  text-anchor: middle;
}

@media (min-width: 1024px) {
  .payplan__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 48px;
  }
  .payplan__art svg { max-width: 520px; margin-right: 0; }
}

@media (max-width: 1023px) {
  .payplan { background-image: none; }
  .payplan__ghost { font-size: clamp(48px, 14vw, 88px); }
  .payplan__art { order: 2; margin-top: 4px; }
  .payplan__art svg { max-width: 360px; }
  .payplan__also-label { flex-basis: 100%; }
}

/* =========================================================
   process — «Как мы работаем» (пошаговый разбор технологии)
   ========================================================= */
.process {
  position: relative;
  padding: clamp(56px, 8vw, 104px) var(--pad-x);
  background-color: var(--black);
  overflow: hidden;
}
.process__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}
.process__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.process__lead {
  margin-top: 16px;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.65;
  color: rgba(254, 254, 254, .82);
}

.process__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  min-width: 0;
}
.process__actions .btn {
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  white-space: normal;
  text-align: center;
}
.btn--wa {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--accent);
}
.btn--wa:hover {
  background: rgba(239, 165, 25, .12);
  transform: translateY(-2px);
}
.btn--wa:active { transform: translateY(0); }
.btn--wa svg { width: 18px; height: 18px; color: var(--white); flex: 0 0 auto; }

@media (min-width: 1140px) {
  .process__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    column-gap: 56px;
    row-gap: 22px;
    align-items: start;
  }
  .process__intro   { grid-column: 1; }
  .process__actions {
    grid-column: 1;
    flex-direction: row;
    max-width: none;
  }
  .process__actions .btn {
    flex: 1;
    padding: 15px 14px;
    font-size: 13px;
    letter-spacing: .02em;
  }
  .process__card    { grid-column: 2; grid-row: 1 / span 2; max-width: none; }
}

.process__card {
  max-width: 560px;
  min-width: 0;
  padding: 26px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
}
.process__card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* прогресс-бар */
.process__bar { margin-bottom: 22px; }
.process__bar-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(254, 254, 254, .55);
}
.process__progress {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  overflow: hidden;
}
.process__progress-fill {
  height: 100%;
  width: 20%;
  border-radius: 999px;
  background: var(--accent);
  transition: width .35s ease;
}

/* слайды */
.process__viewport { overflow: hidden; }
.process__track {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
  counter-reset: pstep;
}
.process__card.is-stepper .process__track {
  display: flex;
  gap: 0;
  transition: transform .4s ease;
}
.process__slide { text-align: center; padding: 14px 6px 6px; }
.process__card.is-stepper .process__slide { flex: 0 0 100%; min-width: 0; }
.process__icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(239, 165, 25, .12);
  border: 1px solid rgba(239, 165, 25, .28);
}
.process__icon svg { width: 26px; height: 26px; }
.process__step-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
}
.process__step-desc {
  margin: 8px auto 0;
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(254, 254, 254, .66);
}

/* запасной вид без JS — нумерованный список этапов */
.process__card:not(.is-stepper) .process__slide {
  counter-increment: pstep;
  padding: 20px 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
}
.process__card:not(.is-stepper) .process__step-title::before {
  content: counter(pstep) ". ";
  color: var(--accent);
}

/* навигация */
.process__nav { display: flex; gap: 10px; margin-top: 24px; }
.process__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  padding: 13px 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
}
.process__btn svg { width: 16px; height: 16px; }
.process__btn--ghost { color: var(--white); border: 1px solid rgba(255, 255, 255, .18); }
.process__btn--ghost:hover { border-color: rgba(255, 255, 255, .4); }
.process__btn--ghost:disabled { opacity: .35; pointer-events: none; }
.process__btn--accent { background: var(--accent); color: var(--accent-ink); }
.process__btn--accent:hover { background: var(--accent-dark); }


@media (prefers-reduced-motion: reduce) {
  .process__card.is-stepper .process__track { transition: none; }
  .process__progress-fill { transition: none; }
}
@media (max-width: 560px) {
  .process__card { padding: 20px; }
}

/* =========================================================
   services — «Комплексная антикоррозийная защита»
   ========================================================= */
.services {
  position: relative;
  padding: clamp(56px, 8vw, 104px) var(--pad-x);
  background-color: var(--black);
  overflow: hidden;
}
.services__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}
.services__head { margin-bottom: 26px; }
.services__head .section-title { max-width: 26ch; }

.services__intro { margin-bottom: 40px; }
.services__lead {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.65;
  color: rgba(254, 254, 254, .82);
  max-width: 62ch;
}
.services__scope { margin-top: 22px; }
.services__scope li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(254, 254, 254, .72);
}
.services__scope li:last-child { margin-bottom: 0; }
.services__scope li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.services__scope strong { color: var(--white); font-weight: 600; }

@media (min-width: 1024px) {
  .services__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 44px;
    align-items: start;
  }
  .services__scope { margin-top: 0; }
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.svc-tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  background-image: var(--svc-img);
  background-size: cover;
  background-position: center;
}
/* фото плиток — по умолчанию из темы; на проде переопределяются
   инлайновым стилем из functions.php (URL из медиабиблиотеки). */
.svc-tile--avtomobilya { --svc-img: url("assets/img/services/antikor-avtomobilya.webp"); }
.svc-tile--kuzova      { --svc-img: url("assets/img/services/antikor-kuzova.webp"); }
.svc-tile--dnishcha    { --svc-img: url("assets/img/services/antikor-dnishcha.webp"); }
.svc-tile--porogov     { --svc-img: url("assets/img/services/antikor-porogov.webp"); }
.svc-tile--shumo       { --svc-img: url("assets/img/services/shumoizolyaciya-arok.webp"); }

.svc-tile__link {
  display: flex;
  align-items: flex-end;
  min-height: clamp(300px, 34vh, 380px);
  height: 100%;
  padding: 20px 18px;
  background:
    linear-gradient(180deg, rgba(14, 14, 14, 0) 24%, rgba(14, 14, 14, .58) 60%, rgba(14, 14, 14, .95) 100%),
    linear-gradient(135deg, rgba(239, 165, 25, .10), rgba(239, 165, 25, 0) 46%),
    var(--svc-img, none) center / cover no-repeat,
    #1b1e22;
  transition: transform .35s ease;
}
.svc-tile:hover .svc-tile__link,
.svc-tile__link:focus-visible { transform: scale(1.045); }
.svc-tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.svc-tile:hover::after,
.svc-tile:focus-within::after { transform: scaleX(1); }

.svc-tile__body { position: relative; }
.svc-tile__title {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.28;
}
.svc-tile__sub {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(254, 254, 254, .68);
}
.svc-tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(254, 254, 254, .6);
  transition: color .25s ease, gap .25s ease;
}
.svc-tile:hover .svc-tile__cta,
.svc-tile:focus-within .svc-tile__cta { color: var(--accent); gap: 10px; }

@media (max-width: 1023px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
  .svc-tile__link { min-height: 200px; }
}

/* =========================================================
   reviews — 3D-стена отзывов
   ========================================================= */
.reviews {
  position: relative;
  padding: clamp(56px, 8vw, 104px) var(--pad-x);
  background-color: var(--black-2);
  overflow: hidden;
}
.reviews__inner { width: 100%; max-width: var(--container); margin: 0 auto; }
.reviews__head { margin-bottom: 30px; }
.reviews__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
  color: rgba(254, 254, 254, .9);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  transition: border-color .2s ease, background-color .2s ease;
}
.reviews__badge:hover { border-color: rgba(239, 165, 25, .5); background: rgba(239, 165, 25, .08); }
.reviews__badge svg { color: var(--accent); flex: 0 0 auto; }

.reviews__stage {
  position: relative;
  height: clamp(420px, 60vh, 520px);
  overflow: hidden;
  perspective: 1200px;
}
.reviews__stage:focus-visible { outline-offset: -2px; }

.reviews__deck {
  display: flex;
  justify-content: center;
  gap: 16px;
  width: 132%;
  height: 100%;
  margin-left: -16%;
  transform: rotateX(14deg) rotateZ(16deg);
  transform-style: preserve-3d;
}
.reviews__col { flex: 0 0 auto; width: 250px; }
.reviews__col:nth-child(1) .reviews__track { --rev-dur: 42s; }
.reviews__col:nth-child(2) .reviews__track { --rev-dur: 52s; animation-direction: reverse; }
.reviews__col:nth-child(3) .reviews__track { --rev-dur: 46s; }
.reviews__col:nth-child(4) .reviews__track { --rev-dur: 56s; animation-direction: reverse; }

.reviews__track {
  display: flex;
  flex-direction: column;
  animation: reviews-marquee var(--rev-dur, 44s) linear infinite;
  will-change: transform;
}
.reviews__stage:hover .reviews__track,
.reviews__stage:focus-within .reviews__track { animation-play-state: paused; }

@keyframes reviews-marquee {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

.rev-card {
  margin-bottom: 16px;
  padding: 16px 16px 14px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
}
.rev-card__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rev-card__avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  color: rgba(254, 254, 254, .92);
  background: hsl(var(--rev-hue, 30) 42% 24%);
  border: 1px solid rgba(255, 255, 255, .12);
}
.rev-card__id { display: flex; flex-direction: column; min-width: 0; }
.rev-card__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.25;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rev-card__meta { font-size: 11.5px; color: rgba(254, 254, 254, .5); }
.rev-card__text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(254, 254, 254, .78);
}
.rev-card__stars {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent);
}

.reviews__fade { position: absolute; pointer-events: none; z-index: 3; }
.reviews__fade--t { inset: 0 0 auto 0; height: 26%; background: linear-gradient(to bottom, var(--black-2), rgba(20, 24, 28, 0)); }
.reviews__fade--b { inset: auto 0 0 0; height: 26%; background: linear-gradient(to top, var(--black-2), rgba(20, 24, 28, 0)); }
.reviews__fade--l { inset: 0 auto 0 0; width: 12%; background: linear-gradient(to right, var(--black-2), rgba(20, 24, 28, 0)); }
.reviews__fade--r { inset: 0 0 0 auto; width: 12%; background: linear-gradient(to left, var(--black-2), rgba(20, 24, 28, 0)); }

@media (max-width: 1100px) {
  .reviews__col:nth-child(4) { display: none; }
  .reviews__deck { width: 128%; margin-left: -14%; transform: rotateX(12deg) rotateZ(12deg); }
}
@media (max-width: 720px) {
  .reviews__col:nth-child(3) { display: none; }
  .reviews__col { width: 62vw; max-width: 280px; }
  .reviews__deck { gap: 12px; width: 150%; margin-left: -25%; transform: rotateX(8deg) rotateZ(8deg); }
  .reviews__stage { height: 440px; }
}

@media (prefers-reduced-motion: reduce) {
  .reviews__deck { transform: none; width: 100%; margin-left: 0; }
  .reviews__stage { height: auto; max-height: 540px; overflow-y: auto; }
  .reviews__track { animation: none; }
}

/* =========================================================
   faq — «Что нужно знать об антикоррозийной обработке»
   ========================================================= */
.faq {
  position: relative;
  padding: clamp(56px, 8vw, 104px) var(--pad-x);
  background-color: var(--black);
  overflow: hidden;
}
.faq__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}
.faq__head { margin-bottom: 30px; }

/* тематический фон — крупные полупрозрачные «?» */
.faq__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.faq__decor span {
  position: absolute;
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  user-select: none;
}
.faq__decor span:nth-child(1) { font-size: clamp(220px, 34vw, 440px); top: -8%;  right: -3%;  opacity: .06; }
.faq__decor span:nth-child(2) { font-size: clamp(140px, 22vw, 300px); bottom: -10%; left: -4%; opacity: .05; }
.faq__decor span:nth-child(3) { font-size: clamp(90px, 12vw, 160px);  top: 44%;    right: 9%;   opacity: .04; }
@media (max-width: 720px) {
  .faq__decor span:nth-child(3) { display: none; }
  .faq__decor span:nth-child(1) { opacity: .05; }
}

.faq__list { border-top: 1px solid rgba(255, 255, 255, .1); }
.faq__item { border-bottom: 1px solid rgba(255, 255, 255, .1); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 2px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.35;
  transition: color .15s ease;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }
.faq__item[open] .faq__q { color: var(--accent); }

.faq__chevron {
  flex: 0 0 auto;
  color: var(--accent);
  transition: transform .25s ease;
}
.faq__item[open] .faq__chevron { transform: rotate(180deg); }

.faq__a { padding: 0 2px 22px; }
.faq__a p {
  max-width: 66ch;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(254, 254, 254, .72);
}
.faq__item[open] .faq__a { animation: faq-in .25s ease; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }

.faq__cta { margin-top: 36px; }
.faq__cta-text {
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: rgba(254, 254, 254, .9);
}
.faq__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.faq__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, .18);
  color: var(--white);
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.faq__btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.faq__btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.faq__btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.faq__btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

@media (max-width: 560px) {
  .faq__actions { gap: 8px; }
  .faq__btn { flex: 1 1 calc(50% - 4px); }        /* WhatsApp + Позвонить — пополам в ряд */
  .faq__btn--accent { flex-basis: 100%; }         /* «Оставить заявку» — на всю ширину сверху */
}

@media (prefers-reduced-motion: reduce) {
  .faq__chevron { transition: none; }
  .faq__item[open] .faq__a { animation: none; }
}

/* =========================================================
   contacts — «Приезжайте на осмотр»
   ========================================================= */
.contacts {
  position: relative;
  padding: clamp(56px, 8vw, 104px) var(--pad-x);
  background-color: var(--black);
  overflow: hidden;
}
.contacts__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.contacts__list { margin-top: 30px; }
.contacts__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.contacts__item:first-child { border-top: 1px solid rgba(255, 255, 255, .08); }
.contacts__ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--accent);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
}
.contacts__ic svg { width: 18px; height: 18px; }
.contacts__val {
  align-self: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
}
.contacts__sub {
  display: block;
  margin-top: 3px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: rgba(254, 254, 254, .55);
}
.contacts__link { transition: color .15s ease; }
.contacts__link:hover { color: var(--accent); }
.contacts__cta { margin-top: 28px; }

/* карта */
.contacts__map {
  position: relative;
  min-height: 360px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  background: #12161a;
}
.contacts__frame {
  position: absolute;
  top: -56px;
  left: -56px;
  width: calc(100% + 112px);
  height: calc(100% + 112px);
  border: 0;
  pointer-events: none;
}
.contacts__map.is-active .contacts__frame { pointer-events: auto; }
.contacts__maphint {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  color: var(--white);
  background: rgba(14, 14, 14, .74);
  border-radius: 6px;
  pointer-events: none;
  transition: opacity .2s ease;
}
.contacts__map.is-active .contacts__maphint { opacity: 0; }

.contacts__card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 360px;
  padding: 16px 18px;
  background: rgba(14, 14, 14, .86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
}
.contacts__card-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--accent);
}
.contacts__card-addr {
  margin-top: 4px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
}
.contacts__routes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.contacts__routes-label {
  flex-basis: 100%;
  font-size: 12px;
  color: rgba(254, 254, 254, .55);
}
.contacts__route {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .02em;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, .2);
  transition: border-color .15s ease, color .15s ease;
}
.contacts__route:hover { border-color: var(--accent); color: var(--accent); }

@media (min-width: 900px) {
  .contacts__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 46%);
    gap: 44px;
    align-items: stretch;
  }
  .contacts__map { min-height: 100%; }
}

/* =========================================================
   footer — подвал
   ========================================================= */
.footer {
  position: relative;
  padding: clamp(44px, 6vw, 72px) var(--pad-x) 26px;
  background: #0b0b0b;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px;
}
.footer__inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.footer__totop {
  position: absolute;
  top: -4px;
  right: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  color: rgba(254, 254, 254, .8);
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.footer__totop:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.footer__totop svg { width: 16px; height: 16px; }

.footer__top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__logo img,
.footer__logo svg { height: 22px; width: auto; display: block; }
.footer__about {
  margin-top: 16px;
  max-width: 44ch;
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(254, 254, 254, .5);
}
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(254, 254, 254, .75);
  transition: color .15s ease, border-color .15s ease;
}
.footer__social a:hover { color: var(--accent); border-color: var(--accent); }
.footer__social svg { width: 16px; height: 16px; }

.footer__h {
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(254, 254, 254, .85);
}
.footer__col ul { display: grid; gap: 8px; }
.footer__col li { color: rgba(254, 254, 254, .5); line-height: 1.4; }
.footer__col a { color: rgba(254, 254, 254, .6); transition: color .15s ease; }
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer__copy { font-size: 12px; color: rgba(254, 254, 254, .4); max-width: 64ch; }
.footer__policy { font-size: 12px; color: rgba(254, 254, 254, .5); transition: color .15s ease; }
.footer__policy:hover { color: var(--accent); }

@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__totop { position: static; margin-bottom: 20px; }
}

/* ---------- Body scroll lock ---------- */
body.is-locked { overflow: hidden; }

/* =========================================================
   Внутренние страницы (page.php / single.php / архивы / 404)
   — статичный макет их не содержал; лёгкая типографика в тон.
   ========================================================= */
.page-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 56px) var(--pad-x) 88px;
}
.page-wrap__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin-bottom: 26px;
  text-wrap: balance;
}
.page-content {
  font-size: 16px;
  line-height: 1.72;
  color: rgba(254, 254, 254, .82);
}
.page-content > * + * { margin-top: 1.1em; }
.page-content h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--white);
  margin-top: 1.6em;
}
.page-content h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  color: var(--white);
  margin-top: 1.4em;
}
.page-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.page-content ul, .page-content ol { padding-left: 1.4em; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li + li { margin-top: .4em; }
.page-content img { border-radius: 10px; margin: 1.4em 0; }
.page-content blockquote {
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  color: rgba(254, 254, 254, .7);
}
.page-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  background: rgba(255, 255, 255, .07);
  padding: .12em .4em;
  border-radius: 4px;
}

.post-list {
  max-width: 820px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 56px) var(--pad-x) 88px;
}
.post-list__item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.post-list__item:first-child { border-top: 1px solid rgba(255, 255, 255, .1); }
.post-list__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.3;
}
.post-list__title a { transition: color .15s ease; }
.post-list__title a:hover { color: var(--accent); }
.post-list__meta {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(254, 254, 254, .5);
}
.post-list__excerpt {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(254, 254, 254, .7);
}
.pager {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}
.pager a {
  padding: 10px 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .03em;
  text-transform: uppercase;
  border: 1.5px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  transition: border-color .15s ease, color .15s ease;
}
.pager a:hover { border-color: var(--accent); color: var(--accent); }

/* =========================================================
   Раздел «Работы» + внутренние страницы услуг
   (перенос homepage/works/css/works.css)
   ========================================================= */

/* ---------- Компактный hero внутренних страниц ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) var(--pad-x) 56px;
  background-color: var(--black);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -12%;
  top: -34%;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle, rgba(239, 165, 25, .12), rgba(239, 165, 25, 0) 70%);
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}
.page-hero__kicker {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.page-hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  /* max-width: 24ch;*/
  margin: 14px 0 0;
  text-wrap: balance;
}
.page-hero__lead {
  margin-top: 18px;
  /*max-width: 64ch;*/
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.65;
  color: rgba(254, 254, 254, .82);
}
.page-hero__cta { margin-top: 28px; }

/* ---------- Хлебные крошки ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(254, 254, 254, .5);
}
.crumbs a { color: rgba(254, 254, 254, .7); transition: color .15s ease; }
.crumbs a:hover { color: var(--accent); }
.crumbs__sep { color: rgba(254, 254, 254, .3); }
.crumbs [aria-current] { color: var(--accent); }

/* ---------- Строка показателей ---------- */
.pstats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.pstat__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--accent);
  line-height: 1;
}
.pstat__label {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(254, 254, 254, .6);
}

/* ---------- Оболочка секции ---------- */
.works-section {
  padding: clamp(52px, 7vw, 92px) var(--pad-x);
  background-color: var(--black);
}
.works-section--alt { background-color: var(--black-2); }
.works-section__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}
.works-section__head { margin-bottom: 28px; }
.works-section__lead {
  margin-top: 14px;
  max-width: 64ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.65;
  color: rgba(254, 254, 254, .78);
}

/* ---------- Чипы (фильтр категорий / модельный ряд) ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
  color: rgba(254, 254, 254, .75);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.chip:hover { color: var(--white); border-color: rgba(255, 255, 255, .3); }
.chip.is-active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

/* ---------- Сетка марок ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.brand-card {
  display: flex;
  flex-direction: column;
  min-height: 172px;
  padding: 22px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
a.brand-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 165, 25, .55);
  background: rgba(255, 255, 255, .05);
}
.brand-card__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .01em;
}
.brand-card__models {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(254, 254, 254, .58);
}
.brand-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}
.brand-card__count {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}
.brand-card--soon .brand-card__count { color: rgba(254, 254, 254, .4); }
.brand-card__arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  color: rgba(254, 254, 254, .75);
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
a.brand-card:hover .brand-card__arrow { color: var(--accent); border-color: var(--accent); transform: translateX(2px); }
.brand-card__arrow svg { width: 14px; height: 14px; }

.is-hidden { display: none !important; }

/* ---------- Сетка работ ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.work-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
a.work-card:hover { transform: translateY(-4px); border-color: rgba(239, 165, 25, .55); }
.work-card__media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  background: #1b1e22;
  overflow: hidden;
}
.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
a.work-card:hover .work-card__media img { transform: scale(1.05); }
.work-card__media--ph {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(239, 165, 25, .10), rgba(239, 165, 25, 0) 55%),
    #17191c;
}
.work-card__ph-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(18px, 2.6vw, 26px);
  color: rgba(255, 255, 255, .14);
  letter-spacing: .02em;
  text-align: center;
  padding: 0 14px;
}
.work-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(14, 14, 14, .72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 6px;
}
.work-card__body { display: block; padding: 18px 18px 20px; }
.work-card__title {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
}
.work-card__meta {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(254, 254, 254, .6);
}
.work-card__note {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(254, 254, 254, .7);
}

/* ---------- Чек-лист «что входит / что сделали» ---------- */
.scope {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  padding: 26px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
}
.scope li {
  position: relative;
  padding-left: 30px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(254, 254, 254, .82);
}
.scope li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(239, 165, 25, .14);
  border: 1px solid rgba(239, 165, 25, .4);
}
.scope li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 5px;
  height: 9px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.scope__note {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(254, 254, 254, .55);
}

/* ---------- Строка фактов о работе ---------- */
.wfacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-top: 22px;
}
.wfact {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  color: rgba(254, 254, 254, .85);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
}
.wfact svg { width: 16px; height: 16px; color: var(--accent); flex: 0 0 auto; }

/* ---------- Галерея ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery__item {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #1b1e22;
  border: 1px solid rgba(255, 255, 255, .08);
  cursor: zoom-in;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery__item:hover img { transform: scale(1.06); }

/* ---------- Лайтбокс ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: rgba(6, 7, 8, .93);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.lightbox[hidden] { display: none; }
.lightbox__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: min(1100px, 92vw);
}
.lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  object-fit: contain;
  background: #0c0e10;
}
.lightbox__counter {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  color: rgba(254, 254, 254, .7);
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 30px;
  line-height: 1;
  color: rgba(254, 254, 254, .8);
  border-radius: 8px;
  transition: color .15s ease, background-color .15s ease;
}
.lightbox__close:hover { color: var(--white); background: rgba(255, 255, 255, .1); }
.lightbox__nav {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  font-size: 32px;
  line-height: 1;
  color: rgba(254, 254, 254, .75);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.lightbox__nav:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 560px) {
  .lightbox { padding: 12px; }
  .lightbox__nav { position: absolute; bottom: 18px; }
  .lightbox__nav--prev { left: 24%; }
  .lightbox__nav--next { right: 24%; }
}

/* ---------- SEO-проза ---------- */
.seo-prose p {
 /* max-width: 74ch;*/
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(254, 254, 254, .66);
}
.seo-prose p:first-child { margin-top: 0; }
.seo-prose h2, .seo-prose h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
  margin-top: 1.4em;
}

/* ---------- CTA-полоса ---------- */
.cta-band {
  padding: clamp(44px, 6vw, 72px) var(--pad-x);
  background:
    linear-gradient(135deg, rgba(239, 165, 25, .12), rgba(239, 165, 25, 0) 55%),
    var(--black-2);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.cta-band__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}
.cta-band__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.18;
  max-width: 24ch;
  margin: 0 auto;
  text-wrap: balance;
}
.cta-band__text {
  margin: 14px auto 0;
  max-width: 54ch;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(254, 254, 254, .72);
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

/* ---------- Страница услуги: блок цены ---------- */
.price-band {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 26px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
}
.price-item { flex: 1 1 180px; }
.price-item__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--accent);
}
.price-item__label {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(254, 254, 254, .6);
}
.price-note {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(254, 254, 254, .55);
}

/* ---------- Страница услуги: макет с иллюстрацией ---------- */
.page-hero--service .page-hero__inner,
.page-hero--work .page-hero__inner {
  display: grid;
  gap: 28px;
  align-items: center;
}

/* ---------- Страница работы: соло-фото в hero ---------- */
.page-hero__photo {
  position: relative;
  margin: 0;
  align-self: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  padding: 3px;
  clip-path: polygon(0 26px, 26px 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.page-hero__photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  clip-path: polygon(0 24px, 24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}
.page-hero__photo-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 6px 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(14, 14, 14, .8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 6px;
}
@media (max-width: 999px) {
  .page-hero__photo { max-width: 440px; margin-top: 6px; }
  .page-hero__photo img { aspect-ratio: 4 / 3; max-height: none; }
}
.page-hero__art { position: relative; width: 100%; }
.page-hero__art svg { width: 100%; height: auto; display: block; }

.service-figure {
  display: grid;
  gap: 32px;
  align-items: start;
}
.service-figure__art { display: flex; justify-content: center; }
.service-figure__art svg { width: 100%; height: auto; max-height: 440px; display: block; }

@media (min-width: 1000px) {
  .page-hero--service .page-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 44%);
    column-gap: 48px;
  }
  .page-hero--work .page-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
    column-gap: 56px;
  }
  .service-figure {
    grid-template-columns: minmax(0, 1fr) minmax(0, 38%);
    column-gap: 48px;
  }
  .service-figure__art { position: sticky; top: calc(var(--header-h) + 28px); }
}
@media (max-width: 999px) {
  .page-hero__art,
  .service-figure__art { max-width: 480px; }
}
@media (max-width: 600px) {
  .page-hero__art,
  .service-figure__art { display: none; }
}

/* ---------- Блупринт (техническая схема авто) ---------- */
.bp { color: var(--accent); }
.bp-grid { fill: none; stroke: rgba(255, 255, 255, .045); stroke-width: 1; }
.bp-line {
  fill: none;
  stroke: rgba(254, 254, 254, .3);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bp-thin {
  fill: none;
  stroke: rgba(254, 254, 254, .17);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bp-dash {
  fill: none;
  stroke: rgba(239, 165, 25, .45);
  stroke-width: 1.1;
  stroke-dasharray: 5 6;
}
.bp-accent {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bp-fill { fill: rgba(239, 165, 25, .06); }
.bp-dot { fill: var(--accent); stroke: none; }
.bp-label {
  fill: rgba(254, 254, 254, .4);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .18em;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1023px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .scope { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .works-grid { grid-template-columns: 1fr; }
  .page-hero { padding-top: calc(var(--header-h) + 40px); }
  .brand-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   ---------- Последние работы (главная) ----------
   ========================================================= */
.recent-works {
  padding: 80px 0 72px;
  background: var(--black);
}
.recent-works__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.recent-works .section-kicker { margin-bottom: 8px; }
.recent-works .section-title  { margin-bottom: 40px; }

.recent-works__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rw-card {
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  transition: transform .22s ease, box-shadow .22s ease;
}
.rw-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.55);
}
.rw-card__img {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: #111;
}
.rw-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.rw-card:hover .rw-card__img img { transform: scale(1.04); }
.rw-card__img-ph {
  width: 100%;
  height: 100%;
  background: #222;
}
.rw-card__body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rw-card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  color: var(--white);
}
.rw-card__excerpt {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,.55);
  margin: 0;
}

.recent-works__cta {
  margin-top: 40px;
  text-align: center;
}

@media (max-width: 1023px) {
  .recent-works__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .recent-works { padding: 56px 0 52px; }
  .recent-works__grid { grid-template-columns: 1fr; gap: 14px; }
  .recent-works .section-title { margin-bottom: 28px; }
}
