/* =============================================================
   ГК Такт · Кашира — концепт «Воздух и ритм»
   Фишка: «Просвет» между планками штакетника + «ритм-рейка».
   Палитра из concept.md. Шрифты: IBM Plex Sans / IBM Plex Mono.
   ============================================================= */

:root {
  /* — база из брифа — */
  --bg:            #F4F9FF;
  --ink:           #1C3B5C;
  --accent:        #FFB300;
  --plate:         #D6E4F0;

  /* — производные — */
  --sky-1:         #F4F9FF;
  --sky-2:         #DCEBFB;
  --sky-3:         #C8DEF6;
  --plate-2:       #E7F0FA;
  --white:         #FFFFFF;
  --green:         #6FA96B;
  --green-soft:    #A7CBA0;
  --accent-600:    #F59300;
  --accent-050:    #FFF4D9;
  --accent-glow:   rgba(255,179,0,.30);

  --ink-80:        rgba(28,59,92,.80);
  --ink-64:        rgba(28,59,92,.64);
  --ink-48:        rgba(28,59,92,.48);
  --ink-28:        rgba(28,59,92,.28);
  --line:          rgba(28,59,92,.10);
  --line-2:        rgba(28,59,92,.16);

  /* — форма/тень — */
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 10px;
  --shadow-soft: 0 14px 40px -20px rgba(28,59,92,.35);
  --shadow-card: 0 10px 30px -18px rgba(28,59,92,.30);
  --shadow-lift: 0 26px 60px -28px rgba(28,59,92,.42);

  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  /* ширина планки / просвета — единый ритм сайта */
  --plank-w: 46px;
  --plank-gap: 22px;
}

/* ------------------------------------------------------------- reset */
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 78% -8%, #FFFDF4 0%, rgba(255,253,244,0) 55%),
    linear-gradient(180deg, var(--sky-1) 0%, #EAF3FE 46%, var(--sky-1) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--accent); color: #3a2a00; }

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

/* ------------------------------------------------------------- layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 110px); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

.h-lead { max-width: 720px; }
.stack > * + * { margin-top: 1rem; }

/* ------------------------------------------------------------- typography */
h1,h2,h3,h4 { font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 300; letter-spacing: -.03em; }
h1 strong { font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { margin: 0 0 1rem; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--ink-80); font-weight: 300; }

/* «мерная» надпись-эйбрау — набор из мотива штакетника */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-mono);
  font-size: .74rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-64);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 12px; flex: none;
  background:
    linear-gradient(var(--accent),var(--accent)) 0 0/3px 100% no-repeat,
    linear-gradient(var(--ink-28),var(--ink-28)) 8px 0/3px 100% no-repeat,
    linear-gradient(var(--ink-28),var(--ink-28)) 16px 0/3px 100% no-repeat,
    linear-gradient(var(--ink-28),var(--ink-28)) 24px 0/2px 100% no-repeat;
}
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.text-accent { color: var(--accent-600); }
.mono { font-family: var(--font-mono); }

/* ------------------------------------------------------------- «ритм-рейка» */
/* тонкая горизонтальная линия с мерными засечками — подчёркивает ритм */
.rail {
  position: relative; height: 14px; width: 100%;
  border-top: 1px solid var(--line-2);
  background:
    repeating-linear-gradient(90deg,
      var(--ink-28) 0 2px, transparent 2px var(--plank-gap));
  background-size: 100% 7px; background-repeat: no-repeat; background-position: 0 0;
  opacity: .8;
}
.rail__dot {
  position: absolute; top: -5px; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow);
  transform: translateX(-50%);
  will-change: left;
}
/* верхний индикатор прокрутки, стилизованный под рейку */
.scroll-rail {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1200;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 2px, transparent 2px 16px);
  pointer-events: none;
}
.scroll-rail__fill {
  height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-600));
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width .08s linear;
}

/* ------------------------------------------------------------- buttons */
.btn {
  --bg-btn: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .95rem 1.7rem; border-radius: 100px; border: 0; cursor: pointer;
  background: var(--bg-btn); color: #3a2a00;
  box-shadow: 0 8px 22px -8px var(--accent-glow);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn i { font-size: .95em; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px var(--accent-glow); background: var(--accent-600); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.btn--ghost:hover { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--ink-28), var(--shadow-card); color: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); box-shadow: var(--shadow-card); }
.btn--light:hover { background: var(--white); color: var(--ink); }
.btn--sm { padding: .65rem 1.15rem; font-size: .9rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink);
  font-size: .95rem;
}
.link-arrow i { transition: transform .2s ease; color: var(--accent-600); }
.link-arrow:hover i { transform: translateX(4px); }

/* ------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 1100;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s;
}
.site-header.is-stuck {
  background: rgba(244,249,255,.82);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(28,59,92,.5);
}
.nav {
  display: flex; align-items: center; gap: .8rem;
  min-height: 74px; padding-block: 10px;
}
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 600; flex: none; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name { font-size: 1.18rem; letter-spacing: -.02em; line-height: 1; }
.brand__city {
  display: block; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-48); margin-top: 3px;
}
.nav__menu {
  display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0;
  margin-left: auto;
}
.nav__link {
  display: block; padding: .55rem .4rem; border-radius: 100px; font-size: .96rem; font-weight: 500;
  color: var(--ink-80); position: relative; transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--ink); background: var(--plate-2); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 4px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.nav__phone { display: flex; align-items: center; gap: .55rem; font-weight: 600; margin-left: .4rem; }
.nav__phone-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-050); color: var(--accent-600); }
.nav__phone a { font-size: 1rem; white-space: nowrap; }
.nav__cta { flex: none; }

.nav__burger {
  display: none; width: 44px; height: 44px; border: 0; background: var(--white); border-radius: 12px;
  box-shadow: var(--shadow-card); cursor: pointer; margin-left: auto;
  align-items: center; justify-content: center; color: var(--ink);
}
.nav__burger i { font-size: 1.3rem; }

/* мобильное меню */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1300; background: var(--bg);
  transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; padding: 20px var(--gutter) 40px; overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 54px; }
.mobile-menu__close { width: 44px; height: 44px; border: 0; background: var(--white); border-radius: 12px; box-shadow: var(--shadow-card); font-size: 1.4rem; color: var(--ink); }
.mobile-menu__list { list-style: none; margin: 26px 0 0; padding: 0; }
.mobile-menu__list li { border-bottom: 1px solid var(--line); }
.mobile-menu__list a { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; font-size: 1.25rem; font-weight: 500; }
.mobile-menu__list a i { color: var(--accent-600); }
.mobile-menu__foot { margin-top: auto; padding-top: 28px; }

/* ------------------------------------------------------------- HERO «Просвет» */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 90px) 0; }
.hero__scene {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
/* слой неба */
.hero__sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #EAF4FF 0%, #F4F9FF 60%, var(--bg) 100%);
}
/* слой зелени — просвечивает между планками */
.hero__green {
  position: absolute; left: -4%; right: -4%; bottom: 0; height: 46%;
  background:
    radial-gradient(60% 80% at 15% 100%, rgba(111,169,107,.55) 0%, rgba(111,169,107,0) 70%),
    radial-gradient(50% 70% at 82% 100%, rgba(167,203,160,.6) 0%, rgba(167,203,160,0) 72%),
    radial-gradient(70% 90% at 50% 118%, rgba(111,169,107,.5) 0%, rgba(111,169,107,0) 70%);
  will-change: transform;
}
/* планки штакетника поверх */
.hero__planks {
  position: absolute; inset: 0; z-index: 1;
  background:
    repeating-linear-gradient(90deg,
      var(--plate) 0 var(--plank-w),
      transparent var(--plank-w) calc(var(--plank-w) + var(--plank-gap)));
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 8%, #000 62%, transparent 98%);
          mask: linear-gradient(180deg, transparent 0, #000 8%, #000 62%, transparent 98%);
  opacity: .5;
  will-change: transform;
}
.hero__planks::after {
  /* макушки планок — «фигурный» верх штакетника */
  content: ""; position: absolute; top: 6%; left: 0; right: 0; height: 16px;
  background:
    repeating-linear-gradient(90deg,
      var(--plate) 0 var(--plank-w),
      transparent var(--plank-w) calc(var(--plank-w) + var(--plank-gap)));
  -webkit-mask: radial-gradient(9px 16px at 23px 100%, #000 98%, transparent) repeat-x 0 0/ calc(var(--plank-w) + var(--plank-gap)) 100%;
          mask: radial-gradient(9px 16px at 23px 100%, #000 98%, transparent) repeat-x 0 0/ calc(var(--plank-w) + var(--plank-gap)) 100%;
  opacity: .6;
}
.hero__inner { position: relative; z-index: 2; }
.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 60px);
  align-items: center; padding-block: clamp(30px, 5vw, 60px) clamp(56px, 8vw, 96px);
}
.hero__title { margin-bottom: 1.1rem; }
.hero__title .glow {
  position: relative;
}
.hero__desc { max-width: 30rem; margin-bottom: 1.9rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; margin-top: 2.6rem;
}
.hero__meta-item { display: flex; flex-direction: column; gap: 2px; }
.hero__meta-num { font-family: var(--font-mono); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; color: var(--ink); line-height: 1; }
.hero__meta-num span { color: var(--accent-600); }
.hero__meta-label { font-size: .82rem; color: var(--ink-48); }

/* карточка быстрой заявки в герое */
.hero__card {
  position: relative; background: rgba(255,255,255,.86); backdrop-filter: blur(8px);
  border: 1px solid var(--white); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift); padding: clamp(22px, 3vw, 32px);
}
.hero__card::before {
  /* тонкая планка-акцент слева */
  content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 4px; border-radius: 4px;
  background: linear-gradient(var(--accent), var(--accent-600));
}
.hero__card h3 { margin-bottom: .3rem; }
.hero__card p { color: var(--ink-64); font-size: .92rem; margin-bottom: 1.2rem; }

/* ------------------------------------------------------------- forms */
.field { position: relative; margin-bottom: .9rem; }
.field label { display: block; font-size: .82rem; color: var(--ink-64); margin-bottom: .35rem; font-weight: 500; }
.form-control, .f-input {
  width: 100%; padding: .85rem 1rem; font-size: 1rem; font-family: inherit; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  transition: border-color .2s, box-shadow .2s; line-height: 1.3;
}
textarea.form-control, textarea.f-input { resize: vertical; min-height: 96px; }
.form-control::placeholder, .f-input::placeholder { color: var(--ink-48); }
.form-control:focus, .f-input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.form-control.is-invalid, .f-input.is-invalid { border-color: #e05b4b; box-shadow: 0 0 0 4px rgba(224,91,75,.18); }
.field__err { display: none; color: #d64534; font-size: .8rem; margin-top: .3rem; }
.field__err.is-shown { display: block; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: .78rem; color: var(--ink-48); margin-top: .7rem; }
.form-note a { color: var(--accent-600); text-decoration: underline; text-underline-offset: 2px; }

.form-status { display: none; border-radius: var(--r-sm); padding: .8rem 1rem; font-size: .92rem; margin-top: .9rem; }
.form-status.is-shown { display: block; }
.form-status.is-ok { background: #e9f7ec; color: #1d7a37; }
.form-status.is-err { background: #fdecea; color: #c0392b; }

.msg-bar { padding: .9rem 1rem; border-radius: var(--r-sm); margin-bottom: 1.2rem; font-size: .95rem; }
.msg-bar.success { background: #e9f7ec; color: #1d7a37; }
.msg-bar.error { background: #fdecea; color: #c0392b; }

/* ------------------------------------------------------------- cards / grids */
.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; background: var(--white); border-radius: var(--r-md);
  box-shadow: var(--shadow-card); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: .74rem; font-weight: 600;
  padding: .3rem .7rem; border-radius: 100px; font-family: var(--font-mono); letter-spacing: .04em;
}
.card__body { padding: clamp(16px, 1.6vw, 22px); display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.12rem; margin-bottom: .4rem; }
.card__desc { color: var(--ink-64); font-size: .92rem; margin-bottom: 1rem; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; }
.card__price { font-family: var(--font-mono); font-weight: 600; color: var(--ink); font-size: .98rem; }
.card__price small { color: var(--ink-48); font-weight: 400; }

/* заглушка изображения — планки + просвет + лист */
.ph {
  position: relative; width: 100%; height: 100%;
  background:
    linear-gradient(180deg, #EAF4FF, #DDECFB);
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg,
    rgba(214,228,240,.9) 0 18px, rgba(255,255,255,.35) 18px 30px);
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 20%, #000 100%);
          mask: linear-gradient(180deg, transparent 0, #000 20%, #000 100%);
}
.ph__ico {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-28);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}
.ph--green { background: linear-gradient(180deg, #E6F1E4, #D3E7CF); }
.ph--green::before { background: repeating-linear-gradient(90deg, rgba(167,203,160,.55) 0 18px, rgba(255,255,255,.3) 18px 30px); }

/* категории — плитки услуг на главной */
.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.cat-tile {
  position: relative; display: flex; flex-direction: column; gap: .7rem;
  padding: clamp(20px, 2vw, 28px); background: var(--white); border-radius: var(--r-md);
  box-shadow: var(--shadow-card); transition: transform .25s, box-shadow .25s;
  min-height: 100%;
}
.cat-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.cat-tile__ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-050); color: var(--accent-600); font-size: 1.4rem;
}
.cat-tile h3 { margin: 0; font-size: 1.18rem; }
.cat-tile p { margin: 0; color: var(--ink-64); font-size: .9rem; }
.cat-tile__list { list-style: none; margin: .2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cat-tile__list li { font-size: .76rem; font-family: var(--font-mono); color: var(--ink-64); background: var(--plate-2); padding: .22rem .55rem; border-radius: 100px; }
.cat-tile__go { margin-top: auto; padding-top: 1rem; }

/* «почему мы» — преимущества */
.feat { display: flex; gap: 1rem; align-items: flex-start; }
.feat__ico {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--white); box-shadow: var(--shadow-card); color: var(--accent-600); font-size: 1.2rem;
}
.feat h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.feat p { color: var(--ink-64); font-size: .92rem; margin: 0; }

/* панель-призыв (акцентный блок) */
.band {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(120deg, #1C3B5C 0%, #244a72 100%); color: #fff;
  padding: clamp(30px, 4vw, 56px);
}
.band::after {
  content: ""; position: absolute; inset: 0; opacity: .16; pointer-events: none;
  background: repeating-linear-gradient(90deg, #fff 0 3px, transparent 3px 26px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 40%);
          mask: linear-gradient(90deg, transparent, #000 40%);
}
.band__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.band h2 { color: #fff; margin-bottom: .4rem; }
.band p { color: rgba(255,255,255,.8); margin: 0; max-width: 34rem; }

/* отзывы */
.review {
  background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow-card);
  padding: clamp(20px, 2vw, 28px); display: flex; flex-direction: column; gap: 1rem; height: 100%;
}
.review__stars { color: var(--accent); letter-spacing: 2px; font-size: .95rem; }
.review__text { color: var(--ink-80); margin: 0; font-size: .96rem; }
.review__author { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.review__ava { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--plate); display: grid; place-items: center; color: var(--ink-48); font-weight: 600; font-family: var(--font-mono); }
.review__name { font-weight: 600; font-size: .95rem; }
.review__date { font-size: .78rem; color: var(--ink-48); font-family: var(--font-mono); }

/* портфолио превью «сквозь просвет» */
.work {
  position: relative; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-card);
  display: block; aspect-ratio: 4/3; transition: transform .25s, box-shadow .25s;
}
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.work img, .work .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.1rem 1rem .9rem;
  background: linear-gradient(0deg, rgba(28,59,92,.86), transparent); color: #fff;
}
.work__cap h4 { color: #fff; font-size: .98rem; margin: 0 0 2px; font-weight: 600; }
.work__cap span { font-size: .78rem; color: rgba(255,255,255,.75); font-family: var(--font-mono); }

/* фильтр портфолио */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(22px, 3vw, 36px); }
.filter {
  font-size: .9rem; font-weight: 500; padding: .5rem 1rem; border-radius: 100px;
  background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink-80);
  transition: all .2s;
}
.filter:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-28); }
.filter.is-active { background: var(--accent); color: #3a2a00; box-shadow: 0 8px 18px -8px var(--accent-glow); }

/* ------------------------------------------------------------- page hero (внутренние) */
.page-hero { position: relative; padding-block: clamp(40px, 6vw, 72px) clamp(20px, 3vw, 36px); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; top: 0; right: -2%; width: 42%; height: 100%; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--plate) 0 var(--plank-w), transparent var(--plank-w) calc(var(--plank-w) + var(--plank-gap)));
  -webkit-mask: linear-gradient(90deg, transparent, #000 80%), linear-gradient(180deg, transparent, #000 20%, #000 70%, transparent);
          mask: linear-gradient(90deg, transparent, #000 80%);
  opacity: .4;
}
.page-hero__inner { position: relative; z-index: 1; max-width: 760px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .82rem; color: var(--ink-48); margin-bottom: 1.1rem; font-family: var(--font-mono); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs i { font-size: .6rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.page-hero .lead { margin-top: .4rem; }

/* ------------------------------------------------------------- content prose */
.prose { max-width: 760px; color: var(--ink-80); font-size: 1.03rem; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: 2em; color: var(--ink); }
.prose h3 { margin-top: 1.6em; }
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.2rem; margin-bottom: 1.1rem; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--accent-600); text-decoration: underline; text-underline-offset: 2px; }
.prose img { border-radius: var(--r-md); margin: 1.4rem 0; }

/* таблица характеристик */
.specs { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-card); }
.specs tr { border-bottom: 1px solid var(--line); }
.specs tr:last-child { border-bottom: 0; }
.specs td { padding: .85rem 1.1rem; font-size: .95rem; }
.specs td:first-child { color: var(--ink-64); width: 45%; }
.specs td:last-child { font-weight: 500; font-family: var(--font-mono); }

/* SEO-блок */
.seo-block { background: var(--white); border-radius: var(--r-lg); padding: clamp(26px, 3vw, 44px); box-shadow: var(--shadow-card); position: relative; overflow: hidden; }
.seo-block::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--accent), var(--accent-600)); }
.seo-block h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.seo-block p { color: var(--ink-64); margin-bottom: .8rem; }
.seo-block :last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- footer */
.site-footer { margin-top: clamp(40px, 6vw, 90px); background: #16304a; color: rgba(255,255,255,.72); position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 3px, transparent 3px 24px);
}
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(24px, 3vw, 48px); padding-block: clamp(44px, 5vw, 68px); }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__city { color: rgba(255,255,255,.5); }
.footer__about { font-size: .92rem; margin-top: 1rem; max-width: 26rem; }
.footer h4 { color: #fff; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-family: var(--font-mono); font-weight: 500; margin-bottom: 1.1rem; }
.footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer__list a:hover { color: #fff; }
.footer__contact { display: flex; flex-direction: column; gap: .8rem; }
.footer__contact a, .footer__contact span { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.footer__contact i { color: var(--accent); margin-top: .2rem; }
.footer__contact a:hover { color: #fff; }
.footer__social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: background .2s, transform .2s; }
.footer__social a:hover { background: var(--accent); color: #3a2a00; transform: translateY(-2px); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; font-size: .82rem; }
.footer__bottom a:hover { color: #fff; }

/* ------------------------------------------------------------- cookie consent */
.cookie {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(140%);
  bottom: clamp(14px, 3vw, 28px); z-index: 1400; width: min(720px, calc(100% - 28px));
  background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow-lift);
  padding: 18px 20px; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  border: 1px solid var(--line);
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.cookie.is-open { transform: translateX(-50%) translateY(0); }
.cookie__ico { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-050); color: var(--accent-600); display: grid; place-items: center; font-size: 1.2rem; }
.cookie__text { flex: 1 1 280px; font-size: .9rem; color: var(--ink-64); }
.cookie__text a { color: var(--accent-600); text-decoration: underline; text-underline-offset: 2px; }
.cookie__btn { flex: none; }

/* ------------------------------------------------------------- utilities */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.text-muted { color: var(--ink-48); }
.badge-soft { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; background: var(--accent-050); color: var(--accent-600); padding: .3rem .7rem; border-radius: 100px; }
.divider-rail { margin-block: 0; }

[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav__menu, .nav__phone, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__card { max-width: 460px; }
  .band__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .cat-tiles { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__meta { gap: 1.2rem 1.6rem; }
}
@media (max-width: 420px) {
  .grid--4 { grid-template-columns: 1fr; }
}
