/* =========================================================
   PSKRIP — сайты и веб-системы для бизнеса
   style.css — Graphite + Acid Lime premium digital portfolio
   ========================================================= */

/* =========================================================
   LOCAL FONTS — self-hosted, no external requests
   Source: @fontsource v5.3.0 | License: OFL-1.1
   ========================================================= */

/* Manrope — headings, labels, UI */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/manrope-cyrillic-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/manrope-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/manrope-cyrillic-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/manrope-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/manrope-cyrillic-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/manrope-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/manrope-cyrillic-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/manrope-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/manrope-cyrillic-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope/manrope-latin-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Inter — body text */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/inter-cyrillic-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/inter-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/inter-cyrillic-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/inter-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/inter-cyrillic-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/inter-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}



/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Design tokens ---------- */
:root{
  --bg:#F5F5F0;
  --surface:#FFFFFF;
  --text:#111111;
  --text-muted:#8E8E8E;
  --text-subtle:#ABABA4;
  --line: rgba(17,17,17,.12);
  --line-strong: rgba(17,17,17,.28);

  --graphite:#151515;
  --graphite-soft:#1E1E1E;
  --on-dark:#F5F5F0;
  --on-dark-muted: rgba(245,245,240,.6);

  --lime:#C7FF3D;
  --lime-dim:#AEDE2E;

  --success:#1E7A54;

  --radius-sm:3px;
  --radius-md:4px;
  --radius-lg:6px;

  --shadow-1: 0 1px 2px rgba(17,17,17,.05);
  --shadow-2: 0 20px 48px rgba(17,17,17,.12);

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

  --fs-h1: clamp(2.4rem, 1.5rem + 3.9vw, 4.6rem);
  --fs-h2: clamp(1.6rem, 1.3rem + 1.3vw, 2.35rem);
  --fs-h3: clamp(1.1rem, 1.02rem + 0.35vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: 0.9rem;
  --fs-caption: 0.75rem;

  --container: 1240px;
  --pad-inline: 20px;
  --section-pad: 56px;
}

@media (min-width: 640px){ :root{ --pad-inline: 28px; } }
@media (min-width: 1024px){ :root{ --section-pad: 108px; } }
@media (min-width: 1600px){ :root{ --container: 1480px; --pad-inline: 40px; } }

/* ---------- Base ---------- */
body{
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,h4{ font-family: var(--font-head); color: var(--text); }
::selection{ background: var(--lime); color:#111; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 1.5px solid var(--lime-dim);
  outline-offset: 3px;
}

.container{ width:100%; max-width: var(--container); margin-inline:auto; padding-inline: var(--pad-inline); }
section{ position: relative; }

.section-pad{ padding-block: 52px; border-top: 1px solid var(--line); }
.section-pad.no-rule{ border-top: none; }
@media (min-width: 1024px){ .section-pad{ padding-block: var(--section-pad); } }


.section-top{
  display:flex; align-items:flex-end; justify-content:space-between; gap: 20px;
  margin-bottom: 36px;
}
@media (min-width: 1024px){ .section-top{ margin-bottom: 52px; } }

.section-label{
  display:flex; align-items:baseline; gap: 14px;
}
.section-num{ font-family: var(--font-head); font-weight: 800; font-size: 13px; color: var(--lime-dim); letter-spacing:.02em; -webkit-text-stroke: 0; }
.section-title{ font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; }

.section-head{ max-width: 620px; }
.section-sub{ margin-top: 12px; color: var(--text-muted); font-size: var(--fs-small); max-width: 52ch; }

.eyebrow{
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 18px;
}
.eyebrow::before{ content:""; width: 8px; height: 8px; background: var(--lime); flex-shrink:0; }

/* ---------- Reveal ---------- */
.reveal{ opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.4,0,.2,1); }
.reveal.is-visible{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ opacity:1; transform:none; transition:none; }
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease, gap 200ms ease;
}
.btn-primary{ background: var(--lime); color: #111; }
.btn-primary:hover{ background: var(--lime-dim); gap: 14px; transform: translateY(-2px); }
.btn-secondary{ background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-secondary:hover{ border-color: var(--text); background: var(--text); color: var(--bg); transform: translateY(-2px); }
.btn-on-dark{ border: 1px solid rgba(245,245,240,.3); color: var(--on-dark); }
.btn-on-dark:hover{ border-color: rgba(245,245,240,.6); }
.btn-block{ width: 100%; }

.link-line{
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  letter-spacing:.04em; text-transform: uppercase;
  color: var(--text);
  padding-bottom: 3px; border-bottom: 1px solid var(--line-strong);
  transition: border-color 200ms ease, color 200ms ease;
}
.link-line::after{
  content:"→";
  display:inline-block;
  transition: transform 250ms cubic-bezier(.4,0,.2,1);
}
.link-line:hover, .link-line:focus-visible{ border-color: var(--text); }
.link-line:hover::after, .link-line:focus-visible::after{ transform: translateX(4px); }
.link-line.on-dark{ color: var(--on-dark); border-color: rgba(245,245,240,.35); }
.link-line.on-dark:hover{ border-color: var(--lime); color: var(--lime); }
.link-line.lime{ color: var(--lime-dim); border-color: rgba(199,255,61,.4); }
.link-line.lime:hover{ color: var(--lime); border-color: var(--lime); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position: sticky; top: 0; z-index: 100;
  height: 64px;
  display: flex; align-items: center;
  background: rgba(245,245,240,.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms ease, background-color 250ms ease;
}
@media (min-width: 1024px){ .site-header{ height: 88px; } }
.site-header.is-scrolled{ border-bottom-color: var(--line); }

.site-header .container{ display:flex; align-items:center; justify-content: space-between; gap: 16px; }

.logo{ display:inline-flex; flex-direction: column; line-height:1.05; }
.logo-word{ font-family: var(--font-head); font-weight: 800; font-size: .95rem; letter-spacing: .02em; text-transform: uppercase; color: var(--text); }
.logo-role{ display:none; }
@media (min-width: 640px){ .logo-role{ display:inline; font-size: 11px; color: var(--text-subtle); font-weight: 500; text-transform: none; letter-spacing: 0; margin-top: 2px; } }

.main-nav{ display:none; }
@media (min-width: 900px){
  .main-nav{ display:flex; align-items:center; gap: 30px; }
  .main-nav a{
    position:relative; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: rgba(17,17,17,.60); padding: 6px 0; transition: color 200ms ease;
  }
  .main-nav a::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:1px; background: var(--lime-dim); transform: scaleX(0); transform-origin:left; transition: transform 220ms ease; }
  .main-nav a:hover{ color: var(--text); }
  .main-nav a:hover::after{ transform: scaleX(1); }
  .main-nav a.is-active{ color: var(--text); }
  .main-nav a.is-active::after{ transform: scaleX(1); }
}

.header-cta{ display:none; }

.burger{ width: 36px; height: 36px; display:inline-flex; flex-direction:column; align-items:center; justify-content:center; gap: 5px; }
@media (min-width: 900px){ .burger{ display:none; } }
.burger span, .burger::before, .burger::after{ content:""; display:block; width: 20px; height: 1px; background: var(--text); transition: transform 250ms ease, opacity 200ms ease; }
.burger.is-active span{ opacity:0; }
.burger.is-active::before{ transform: translateY(6px) rotate(45deg); }
.burger.is-active::after{ transform: translateY(-6px) rotate(-45deg); }

.mobile-menu{
  position: fixed; inset: 64px 0 0 0; background: var(--bg); z-index: 99;
  padding: 28px var(--pad-inline) 28px;
  display:flex; flex-direction:column; gap: 26px;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(.4,0,.2,1);
  overflow-y:auto;
}
.mobile-menu.is-open{ transform: translateX(0); }
.mobile-menu nav{ display:flex; flex-direction:column; }
.mobile-menu nav a{ font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; text-transform: uppercase; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .messengers{ display:flex; gap: 12px; }
@media (min-width: 900px){ .mobile-menu{ display:none; } }

/* =========================================================
   HERO
   ========================================================= */
.hero{ padding-top: 40px; padding-bottom: 56px; }
@media (min-width: 1024px){ .hero{ padding-top: 64px; padding-bottom: 96px; } }

.hero .container{ display:grid; gap: 44px; }
@media (min-width: 1100px){
  .hero .container{ grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; align-items: center; }
}

.hero-copy{ position:relative; z-index:2; }

.hero-copy h1{
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-top: 18px;
}

.hero-sub{ margin-top: 28px; font-size: var(--fs-body); color: var(--text-muted); max-width: 44ch; line-height: 1.65; }

.lime-text{ color: var(--lime-dim); }

.hero-actions{ display:flex; flex-direction:column; gap: 12px; margin-top: 34px; }
@media (min-width: 480px){ .hero-actions{ flex-direction:row; } }

.hero-trust{
  margin-top: 32px;
  display:flex; flex-wrap:wrap;
  font-size: 12px; color: rgba(17,17,17,.60); font-weight: 600;
  letter-spacing: .02em;
}
.hero-trust span{ padding: 0 20px; border-left: 1px solid var(--line-strong); }
.hero-trust span:first-child{ padding-left: 0; border-left: none; }
@media (min-width: 1100px){
  .hero-trust{ flex-wrap: nowrap; }
  .hero-trust span{ padding: 0 16px; }
  .hero-trust span:first-child{ padding-left: 0; }
}
@media (max-width: 639px){
  .hero-trust{ flex-direction: column; gap: 5px; margin-top: 24px; }
  .hero-trust span{ padding: 0; border-left: none; }
}

/* ---- Hero visual composition ---- */
/*
  Логика стека на desktop (1440px, правая колонка ≈600px, высота ≈662px):

  NORDWOOD: left=16%=96px  top=3%=20px  w=540px  h=405px  x:[96→636]  y:[20→425]
  CRM:      left=0         top=0        w=132px  h=176px  x:[0→132]   y:[0→176]
            → CRM виден 96px слева от NORDWOOD, 36px (27%) скрыто за ним
  Deals:    left=10%=60px  bottom=4%    w=360px  h=270px  y-top=366px
            → перекрытие с NORDWOOD снизу: 59px (22%) — deals лежит на нижней части NORDWOOD
  Contract: right=2%=12px  bottom=34%  w=120px  h=160px  y:[277→437]
            → на нижнем правом углу NORDWOOD, x:[468→588]

  Все элементы — единый стек вокруг NORDWOOD.
*/

.hero-visual-composition{
  position: relative;
  width: 100%;
  height: clamp(360px, 64vw, 500px);
}
@media (min-width: 640px){
  .hero-visual-composition{ height: clamp(420px, 52vw, 540px); }
}
@media (min-width: 1100px){
  /* Высота авто — определяется hero-showcase (NORDWOOD + padding-bottom) */
  .hero-visual-composition{ height: auto; overflow: visible; }
}

/* ── hero-showcase: все 4 элемента привязаны к нему ── */
/* Mobile/tablet: absolute, заполняет hero-visual-composition */
.hero-showcase{
  position: absolute;
  inset: 0;
  overflow: visible;
}
/* Desktop: relative, высота = NORDWOOD + padding-bottom для deals */
@media (min-width: 1100px){
  .hero-showcase{
    position: relative;
    inset: auto;
    padding-bottom: 140px;
  }
}

.hero-showcase picture{ display: block; }
.hero-showcase img{
  display: block;
  height: auto;
  max-width: none;
  /* width задаётся индивидуально для каждого элемента */
}

/* ── NORDWOOD: базовый слой, задаёт высоту showcase ── */
/* Mobile/tablet: absolute */
.hero-site-preview{
  position: absolute;
  top: 0; left: 4%;
  width: min(88%, 580px);
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 24px 48px rgba(17,17,17,.16));
}
/* Desktop: relative, в потоке — определяет высоту showcase */
@media (min-width: 1100px){
  .hero-site-preview{
    position: relative;
    top: auto; left: auto;
    margin-left: 13%;
    width: 100%;
  }
}

/* ── CRM: absolute, от левого края showcase вплотную к NORDWOOD ── */
/* Скрыт на мобиле/планшете */
.hero-crm-menu{ display: none; }
@media (min-width: 1100px){
  .hero-crm-menu{
    display: block;
    position: absolute;
    left: 10px;
    top: -14px;
    width: clamp(140px, 28%, 190px);
    z-index: 1;
    transform: rotate(-1deg);
    filter: drop-shadow(0 16px 28px rgba(17,17,17,.17));
  }
}

/* ── Deals: absolute, bottom:0 = нижний край showcase,
   заходит на ~107px вниз NORDWOOD (30% его высоты) ── */
.hero-deals-card{
  position: absolute;
  left: 2%; bottom: 0;
  width: min(58%, 360px);
  z-index: 3;
  transform: rotate(0.5deg);
  filter: drop-shadow(0 18px 32px rgba(17,17,17,.10));
}
@media (min-width: 1100px){
  .hero-deals-card{
    left: 13%;   /* выровнен с левым краем NORDWOOD */
    bottom: 17px;
    width: 64%;
  }
}

/* ── Contract: absolute, правый нижний угол NORDWOOD ──
   bottom:120px < padding-bottom(140px) → карточка
   частично в NORDWOOD, частично ниже его ── */
.hero-contract-card{
  position: absolute;
  right: 3%; bottom: 3%;
  left: auto;
  width: clamp(88px, 17%, 140px);
  z-index: 4;
  transform: rotate(-0.8deg);
  filter: drop-shadow(0 16px 26px rgba(17,17,17,.16));
}
@media (min-width: 1100px){
  .hero-contract-card{
    right: 10px;
    bottom: 130px;
    width: clamp(146px, 24%, 183px);
  }
}

/* ── Tablet (<1100px, одна колонка) ─────────────────── */
@media (max-width: 1023px){
  .hero-visual-composition{ height: clamp(400px, 64vw, 520px); width: 100%; }
  .hero-site-preview{ left: 4%; top: 0; width: min(88%, 580px); }
  .hero-deals-card{ left: 2%; bottom: 0; width: min(58%, 360px); }
  .hero-contract-card{ right: 3%; bottom: 3%; width: clamp(88px, 17%, 140px); }
  .hero-showcase .hero-crm-menu{ display: none; }
}

/* ── Mobile (<640px) ─────────────────────────────────── */
@media (max-width: 639px){
  .hero{ padding-top: 16px; }
  .hero-visual-composition{ height: auto; padding-bottom: 36px; }
  .hero-showcase{ position: relative; inset: auto; padding-bottom: 0; }
  .hero-site-preview{
    position: relative;
    top: auto; left: auto;
    margin-left: 0; width: 100%;
  }
  .hero-deals-card{ left: 4%; right: auto; bottom: -6%; width: min(64%, 270px); transform: rotate(0.4deg); }
  .hero-showcase .hero-crm-menu,
  .hero-showcase .hero-contract-card{ display: none; }
}

/* =========================================================
   FOR WHOM
   ========================================================= */
.scenario-grid{ display:grid; grid-template-columns: 1fr; }
@media (min-width: 720px){ .scenario-grid{ grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px){ .scenario-grid{ grid-template-columns: repeat(4,1fr); } }

.scenario-card{ padding: 20px 24px 18px 0; border-top: 1px solid var(--line); }
@media (min-width: 720px){ .scenario-card{ padding-right: 26px; } }
.scenario-card .num{ font-family: var(--font-head); font-weight: 800; font-size: 12px; color: var(--lime-dim); margin-bottom: 18px; letter-spacing: .04em; }
.scenario-card p{ font-size: var(--fs-small); color: var(--text); line-height: 1.55; }

.center-cta{ display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top: 76px; }

/* =========================================================
   SERVICES — 3 bordered cards
   ========================================================= */
.services-grid{ display:grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 720px){ .services-grid{ grid-template-columns: repeat(3,1fr); } }

.service-card{
  position: relative;
  background: var(--bg);
  padding: 30px 26px;
  display:flex; flex-direction:column;
  cursor: pointer;
  transition: background-color 250ms ease, transform 250ms cubic-bezier(.4,0,.2,1), box-shadow 250ms ease;
}
.service-card:hover, .service-card:focus-within{
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 14px 28px rgba(17,17,17,.08);
  z-index: 1;
}

.service-icon{ width: 32px; height: 32px; margin-bottom: 24px; color: var(--text); transition: color 220ms ease, transform 250ms cubic-bezier(.4,0,.2,1); }
.service-icon svg{ width:100%; height:100%; }
.service-card:hover .service-icon{ color: var(--lime-dim); transform: translateY(-2px); }

.service-card h3{ font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing:.01em; margin-bottom: 10px; }
.service-card p{ font-size: var(--fs-small); color: var(--text-muted); margin-bottom: 20px; flex: 1; }
.service-card .link-line{ align-self: flex-start; }

/* =========================================================
   PROJECTS — dark case-study cards
   ========================================================= */
.projects-grid{ display:grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 860px){ .projects-grid{ grid-template-columns: repeat(3,1fr); } }

.project-card{
  background: var(--graphite);
  color: var(--on-dark);
  display:flex; flex-direction:column;
  overflow: hidden;
  cursor: pointer;
  transition: transform 300ms cubic-bezier(.4,0,.2,1), box-shadow 300ms ease;
}
.project-card:hover, .project-card:focus-within{
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
}

.project-cover{ position: relative; aspect-ratio: 16/9; background: var(--graphite); border-bottom: 1px solid rgba(245,245,240,.08); overflow:hidden; display:flex; align-items:center; justify-content:center; }
.project-cover::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.32) 100%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.project-card:hover .project-cover::after{ opacity: 1; }
.project-cover-inner{ position:relative; height:100%; padding: 20px; transition: transform 500ms cubic-bezier(.4,0,.2,1); }
.project-card:hover .project-cover-inner{ transform: scale(1.04); }

/* real site preview screenshot (used for demo projects with a live demo) */
.project-cover-shot{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; object-position: center; display:block; }
/* no scale on contain-mode shot */
.project-cover-placeholder{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(245,245,240,.04), transparent 40%),
    repeating-linear-gradient(90deg, rgba(245,245,240,.06) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, rgba(245,245,240,.05) 0 1px, transparent 1px 28px),
    var(--graphite-soft);
}

.project-body{
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-tag{ display:block; font-size: 10px; font-weight: 700; letter-spacing:.08em; text-transform: uppercase; color: var(--lime-dim); margin-bottom: 10px; }

.project-meta{ display:flex; align-items:center; flex-wrap:wrap; gap: 10px; margin-bottom: 14px; }
.project-badge{
  display:inline-flex; align-items:center; height: 22px; padding: 0 10px;
  font-size: 10px; font-weight: 800; letter-spacing:.06em; text-transform: uppercase;
  background: var(--lime); color: #111; flex-shrink:0;
}
.project-inside{ font-size: 11px; color: rgba(245,245,240,.5); letter-spacing:.01em; }
.project-card h3{ font-size: 1.15rem; font-weight: 700; color: var(--on-dark); margin-bottom: 10px; }
.project-card p{
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
  margin-bottom: 18px;
  flex: 1;
}
.project-card .link-line{
  margin-top: auto;
  align-self: flex-start;
}

/* dark mono mini interfaces inside project covers */
.mini-catalog{ display:grid; grid-template-columns: repeat(3,1fr); gap: 8px; height:100%; }
.mini-catalog div{ border: 1px solid rgba(245,245,240,.14); }
.mini-catalog div i{ display:block; height:60%; border-bottom: 1px solid rgba(245,245,240,.14); }
.mini-catalog div span{ display:block; height:4px; margin: 8px 8px 0; background: rgba(245,245,240,.16); }
.mini-catalog div span:last-child{ width:40%; margin-top:5px; }

.mini-crm{ display:grid; grid-template-columns: repeat(3,1fr); gap:8px; height:100%; }
.mini-crm .col{ border:1px solid rgba(245,245,240,.14); padding:10px; display:flex; flex-direction:column; gap:8px; }
.mini-crm .col b{ font-size:8px; font-weight:700; color: rgba(245,245,240,.4); text-transform:uppercase; letter-spacing:.05em; }
.mini-crm .col .card{ border:1px solid rgba(245,245,240,.14); padding:7px; }
.mini-crm .col .card span{ display:block; height:4px; background: rgba(245,245,240,.16); margin-bottom:5px; }
.mini-crm .col .card span:last-child{ width:60%; margin-bottom:0; }

.mini-docgen{ height:100%; display:flex; align-items:center; justify-content:space-between; gap: 12px; }
.mini-docgen .box{ flex:1; border:1px solid rgba(245,245,240,.14); padding: 14px; }
.mini-docgen .box span{ display:block; height:4px; background: rgba(245,245,240,.16); margin-bottom:7px; }
.mini-docgen .box span:last-child{ width:50%; margin-bottom:0; }
.mini-docgen .arrow{ color: rgba(245,245,240,.35); flex-shrink:0; }
.mini-docgen .doc{ width: 40px; flex-shrink:0; color: var(--lime-dim); }

.projects-cta{ display:flex; justify-content:center; margin-top: 48px; }

/* =========================================================
   CHAOS — Было / Стало
   ========================================================= */
.chaos-grid{ display:grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 760px){ .chaos-grid{ grid-template-columns: 1fr 1fr; } }

.chaos-col{ padding: 30px 0; }
@media (min-width: 760px){
  .chaos-col{ padding: 40px 40px 40px 0; border-right: 1px solid var(--line); }
  .chaos-col-after{ padding: 40px 0 40px 40px; border-right: none; }
}

.chaos-label{
  display:block; font-family: var(--font-head); font-weight: 800; font-size: 12px;
  letter-spacing:.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px;
}
.chaos-col-after .chaos-label{ color: var(--text); }

.chaos-list li{
  position: relative; padding: 14px 0 14px 22px; border-top: 1px solid var(--line);
  font-size: var(--fs-small); color: var(--text-muted);
}
.chaos-list li::before{
  content:""; position:absolute; left:0; top: 21px; width: 8px; height: 1px; background: var(--text-subtle);
}
.chaos-col-after .chaos-list li{ color: var(--text); font-weight: 500; }
.chaos-col-after .chaos-list li::before{
  width: 6px; height: 6px; border-radius: 50%; background: var(--lime); top: 18px;
}

/* =========================================================
   PROCESS — horizontal line, lime dots
   ========================================================= */
.process-line{ position:relative; display:grid; grid-template-columns: 1fr; }
@media (min-width: 860px){ .process-line{ grid-template-columns: repeat(4,1fr); } }

.process-line::before{ content:""; position:absolute; left:0; top: 0; bottom:0; width: 1px; background: var(--line); }
@media (min-width: 860px){ .process-line::before{ left:0; right:0; top:9px; bottom:auto; width:auto; height:1px; } }

.process-step{ position:relative; padding: 0 0 32px 28px; }
@media (min-width: 860px){ .process-step{ padding: 32px 24px 0 0; } }

.process-step::before{
  content:""; position:absolute; left: -4px; top: 3px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--lime); border: 3px solid var(--bg);
}
@media (min-width: 860px){ .process-step::before{ left: 0; top: 5px; } }

.process-num{ font-family: var(--font-head); font-weight: 800; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.process-step h3{ font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing:.01em; margin-bottom: 6px; }
.process-step p{ font-size: var(--fs-small); color: var(--text-muted); max-width: 32ch; }

/* =========================================================
   SCOPE — Что входит в разработку
   ========================================================= */
.scope-grid{ display:grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 720px){ .scope-grid{ grid-template-columns: repeat(2,1fr); gap: 0 40px; } }

.scope-item{
  position: relative; padding: 18px 0 18px 28px; border-top: 1px solid var(--line);
  font-size: var(--fs-small); font-weight: 500;
}
@media (min-width: 720px){ .scope-grid > .scope-item:nth-child(odd){ border-top: 1px solid var(--line); } }
.scope-item::before{
  content:"✓"; position:absolute; left:0; top:16px; color: var(--lime-dim);
  font-weight: 800; font-size: 13px;
}
.scope-note{
  margin-top: 28px;
  font-size: var(--fs-small);
  color: var(--text-muted);
  max-width: 62ch;
  line-height: 1.55;
}

/* =========================================================
   WHY
   ========================================================= */
.why-grid{ display:grid; grid-template-columns: 1fr; }
@media (min-width: 720px){ .why-grid{ grid-template-columns: repeat(2,1fr); gap: 0 40px; } }

.why-item{ display:flex; align-items:flex-start; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.why-item .idx{ font-family: var(--font-head); font-weight: 800; font-size: 12px; color: var(--lime-dim); flex-shrink:0; padding-top: 3px; }
.why-item h3{ font-size: .95rem; font-weight: 800; text-transform: uppercase; margin-bottom: 5px; }
.why-item p{ font-size: var(--fs-small); color: var(--text-muted); }

/* =========================================================
   TECH
   ========================================================= */
.tech-section{ padding-block: 48px; }
.tech-inner{ text-align:center; }
.tech-inner h2{ font-size: var(--fs-h3); font-weight: 800; text-transform: uppercase; }
.tech-inner .section-sub{ margin-inline:auto; }
.tech-row{ margin-top: 24px; display:flex; flex-wrap:wrap; gap: 10px; justify-content:center; }

/* =========================================================
   FREE ASSESSMENT (Бесплатный разбор задачи)
   ========================================================= */
.assessment-inner{ text-align:center; max-width: 720px; margin-inline:auto; }
.assessment-inner .eyebrow{ margin-inline:auto; }
.assessment-inner h2{ font-size: var(--fs-h2); font-weight: 800; text-transform: uppercase; letter-spacing:-0.01em; }
.assessment-inner .section-sub{ margin-inline:auto; max-width: 56ch; }
.assessment-inner .btn{ margin-top: 28px; }
.assessment-disclaimer{ margin-top: 18px; font-size: var(--fs-caption); color: var(--text-subtle); max-width: 56ch; margin-inline:auto; line-height: 1.5; }

/* =========================================================
   PRICING — 3 cards, dark middle
   ========================================================= */
.pricing-grid{ display:grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 860px){ .pricing-grid{ grid-template-columns: repeat(3,1fr); align-items: stretch; } }

.price-card{
  position: relative;
  border: 1px solid var(--line);
  padding: 32px 28px;
  display:flex; flex-direction:column;
  transition: transform 250ms cubic-bezier(.4,0,.2,1), border-color 250ms ease, box-shadow 250ms ease;
}
.price-card:hover{
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 32px rgba(17,17,17,.08);
}
.price-card.popular{
  background: var(--graphite);
  color: var(--on-dark);
  border-color: var(--graphite);
  box-shadow: 0 24px 48px rgba(17,17,17,.18);
}
.price-card.popular::before{
  content:"";
  position:absolute; top:0; left:0; right:0; height: 3px;
  background: var(--lime);
}
.price-card.popular:hover{
  border-color: var(--graphite);
  box-shadow: 0 28px 56px rgba(17,17,17,.24);
}
@media (min-width: 860px){
  .price-card.popular{ padding-top: 40px; padding-bottom: 40px; transform: scale(1.04); }
  .price-card.popular:hover{ transform: scale(1.04) translateY(-4px); }
}

.price-badge{
  display:inline-flex; align-self:flex-start;
  background: var(--lime); color:#111;
  font-size: 10px; font-weight: 800; letter-spacing:.06em; text-transform:uppercase;
  padding: 5px 10px; margin-bottom: 18px;
}
.price-card h3{ font-size: .95rem; font-weight: 800; text-transform: uppercase; letter-spacing:.02em; }
.price-card.popular h3{ color: var(--on-dark); }
.price-card .price{ font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; margin: 14px 0 8px; letter-spacing:-0.01em; }
.price-card .price span{ font-size:.85rem; color: var(--text-subtle); font-weight:600; }
.price-card.popular .price span{ color: rgba(245,245,240,.5); }
.price-card .price-desc{ font-size: var(--fs-small); color: var(--text-muted); margin-bottom: 22px; }
.price-card.popular .price-desc{ color: var(--on-dark-muted); }
.price-card ul{ margin-bottom: 26px; flex:1; }
.price-card ul li{ position:relative; padding-left: 16px; font-size: var(--fs-small); margin-bottom: 10px; }
.price-card ul li::before{ content:"—"; position:absolute; left:0; color: var(--text-subtle); }
.price-card.popular ul li::before{ color: rgba(245,245,240,.4); }

.pricing-extra{ margin-top: 40px; display:grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 640px){ .pricing-extra{ grid-template-columns: 1fr 1fr; } }
.price-mini{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px){ .price-mini:nth-child(odd){ padding-right: 32px; } .price-mini:nth-child(even){ padding-left: 32px; } }
.price-mini h4{ font-size: .9rem; font-weight:800; text-transform: uppercase; margin-bottom:4px; }
.price-mini p{ font-size: 12.5px; color: var(--text-muted); }
.price-mini .mini-price{ font-family: var(--font-head); font-weight:800; font-size: 1.05rem; white-space:nowrap; }

.pricing-note{ margin-top: 32px; text-align:center; color: var(--text-muted); font-size: var(--fs-small); }
.pricing-cta{ display:flex; justify-content:center; margin-top: 22px; }

/* =========================================================
   FAQ — two columns
   ========================================================= */
.faq-grid{ display:grid; grid-template-columns: 1fr; column-gap: 56px; }
@media (min-width: 780px){ .faq-grid{ grid-template-columns: 1fr 1fr; } }
.faq-item{ border-top: 1px solid var(--line); transition: background-color 250ms ease; }
.faq-grid .faq-item:last-child, .faq-grid .faq-item:nth-last-child(2){ border-bottom: 1px solid var(--line); }
.faq-item.is-open{ background: rgba(199,255,61,.06); }
.faq-q{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding: 18px 2px;
  text-align:left; font-family: var(--font-head); font-weight:700; font-size: .95rem;
  color: var(--text);
  transition: color 200ms ease;
}
.faq-q:hover{ color: var(--lime-dim); }
.faq-item.is-open .faq-q{ color: var(--text); }
.faq-q .plus{ position:relative; width: 16px; height: 16px; flex-shrink:0; }
.faq-q .plus::before, .faq-q .plus::after{ content:""; position:absolute; top:50%; left:50%; background: var(--text-muted); transform: translate(-50%,-50%); transition: transform 250ms cubic-bezier(.4,0,.2,1), opacity 250ms ease, background-color 200ms ease; }
.faq-q .plus::before{ width: 11px; height:1px; }
.faq-q .plus::after{ width:1px; height:11px; }
.faq-q:hover .plus::before, .faq-q:hover .plus::after{ background: var(--lime-dim); }
.faq-item.is-open .faq-q .plus::before, .faq-item.is-open .faq-q .plus::after{ background: var(--text); }
.faq-item.is-open .faq-q .plus::after{ opacity:0; transform: translate(-50%,-50%) rotate(90deg); }

.faq-a-wrap{ display:grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms ease; }
.faq-item.is-open .faq-a-wrap{ grid-template-rows: 1fr; }
.faq-a-inner{ overflow:hidden; }
.faq-a{ padding: 0 24px 18px 2px; color: var(--text-muted); font-size: var(--fs-small); }

.faq-bridge{ margin-top: 76px; text-align:center; }
.faq-bridge p{ margin-bottom: 16px; color: var(--text-muted); }

/* =========================================================
   CONTACT + FOOTER — one powerful dark finale
   ========================================================= */
.contact-section{ background: var(--graphite); color: var(--on-dark-muted); border-top: none; padding-block: 44px; }
@media (min-width: 1024px){ .contact-section{ padding-block: 80px; } }
.contact-section .eyebrow{ color: rgba(245,245,240,.5); }
.contact-section .eyebrow::before{ background: var(--lime); }
.contact-info h1,
.contact-info h2{
  color:#fff;
  font-size: var(--fs-h1);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.02em;
}
.contact-info h1{ margin-top: 18px; }
.contact-section .section-sub{ color: var(--on-dark-muted); font-size: var(--fs-body); }

.contact-grid{ display:grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 960px){ .contact-grid{ grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items:start; } }

.contact-benefits{ margin: 26px 0; display:flex; flex-direction:column; gap: 10px; }
.contact-benefits li{ font-size: var(--fs-small); color: rgba(245,245,240,.75); }

.messenger-row{ display:flex; flex-wrap:wrap; gap: 30px; margin-top: 10px; }
.contact-section .messenger-btn{
  display:inline-flex; align-items:center; gap:10px;
  color: var(--on-dark); border:none; border-bottom: 1px solid rgba(245,245,240,.3);
  padding: 6px 0; font-weight: 700; font-size: 1rem;
  transition: border-color 200ms ease, color 200ms ease, gap 200ms ease;
}
.contact-section .messenger-btn::before{ content:""; width:6px; height:6px; border-radius:50%; background: var(--lime); flex-shrink:0; transition: transform 200ms ease; }
.contact-section .messenger-btn:hover{ border-color: var(--lime); color: var(--lime); gap: 14px; }
.contact-section .messenger-btn:hover::before{ transform: scale(1.4); }
.messenger-btn{ display:inline-flex; align-items:center; gap:8px; padding: 12px 20px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); font-weight:600; font-size: var(--fs-small); transition: border-color 200ms ease; }

/* Прямые контакты — без декора, стили позже */
.contact-direct{ padding: 4px 0 0; }
.contact-direct h2{
  color:#fff;
  font-size: var(--fs-h2);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.contact-direct-list{ display:flex; flex-direction:column; gap: 22px; }
.contact-direct-list p{ margin:0; font-size: var(--fs-small); color: rgba(245,245,240,.45); line-height: 1.5; }
.contact-direct-list a{ color: var(--on-dark); font-weight: 600; font-size: 1rem; text-decoration: none; }
.contact-direct-list a:hover{ color: var(--lime); }

/* Отдельная страница контактов: две колонки, карточки справа */
.contact-page .contact-grid{ gap: 48px; }
@media (min-width: 960px){
  .contact-page .contact-grid{
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 64px 80px;
    align-items: start;
  }
}
.contact-page .contact-info{ max-width: 34rem; }
.contact-page .section-sub{ margin-top: 24px; max-width: 38ch; }
.contact-page-email{
  margin-top: 40px;
  font-size: var(--fs-small);
  color: rgba(245,245,240,.45);
  line-height: 1.5;
}
.contact-page-email a{
  display: inline-block;
  margin-top: 4px;
  color: var(--on-dark);
  font-weight: 600;
  font-size: 1rem;
}
.contact-page-email a:hover{ color: var(--lime); }

.contact-cards{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 520px){
  .contact-cards{ grid-template-columns: 1fr 1fr; gap: 14px; }
}
.contact-card{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-height: 176px;
  padding: 28px 28px 26px;
  background: var(--graphite-soft);
  border: 1px solid rgba(245,245,240,.12);
  cursor: pointer;
  transition:
    transform 250ms cubic-bezier(.4,0,.2,1),
    border-color 250ms ease,
    background-color 250ms ease,
    box-shadow 250ms ease;
}
@media (min-width: 960px){
  .contact-card{ min-height: 196px; padding: 32px 32px 28px; gap: 24px; }
}
.contact-card:hover,
.contact-card:focus-visible{
  transform: translateY(-4px);
  border-color: rgba(245,245,240,.32);
  background: #242424;
  box-shadow: 0 16px 36px rgba(0,0,0,.28);
  outline: none;
}
.contact-card:hover .contact-card-action,
.contact-card:focus-visible .contact-card-action{
  color: var(--lime);
}
.contact-card-label{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(245,245,240,.4);
}
.contact-card-value{
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  line-height: 1.2;
  word-break: break-word;
  margin-top: auto;
}
.contact-card-action{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(245,245,240,.55);
  border-top: 1px solid rgba(245,245,240,.1);
  padding-top: 14px;
  margin-top: 4px;
  transition: color 250ms ease;
}

.privacy-link{ text-decoration: underline; text-underline-offset: 2px; color: rgba(245,245,240,.55); transition: color 200ms ease; }
.privacy-link:hover{ color: var(--lime); }

/* Footer proper (bottom bar under the dark contact section) */
.site-footer{ background: var(--graphite); color: rgba(245,245,240,.55); }
.footer-grid{ display:grid; grid-template-columns: 1fr; gap: 32px; padding-top: 48px; border-top: 1px solid rgba(245,245,240,.1); }
@media (min-width: 720px){ .footer-grid{ grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.footer-brand .logo-word{ color: #fff; }
.footer-brand p{ margin-top: 14px; font-size: var(--fs-small); max-width: 30ch; }

.footer-col h4{ color: rgba(245,245,240,.4); font-size: 11px; letter-spacing:.08em; text-transform:uppercase; font-weight:700; margin-bottom: 18px; }
.footer-col ul{ display:flex; flex-direction:column; gap: 12px; }
.footer-col a{ font-size: var(--fs-small); color: rgba(245,245,240,.7); transition: color 200ms ease; }
.footer-col a:hover{ color: var(--lime); }

.footer-bottom{ margin-top: 40px; padding-block: 22px; border-top: 1px solid rgba(245,245,240,.1); display:flex; flex-direction:column; gap:14px; align-items:center; text-align:center; font-size: 12px; color: rgba(245,245,240,.4); }
@media (min-width: 720px){ .footer-bottom{ flex-direction:row; justify-content:space-between; text-align:left; } }
.footer-bottom a{ color: rgba(245,245,240,.4); }
.footer-bottom a:hover{ color: rgba(245,245,240,.8); }
.to-top{ display:inline-flex; align-items:center; gap:8px; color: rgba(245,245,240,.5); font-weight:600; transition: color 200ms ease; }
.to-top:hover{ color: var(--lime); }


/* =========================================================
   FOOTER SLIM — компактный подвал главной страницы
   ========================================================= */
.footer-slim{
  margin-top: 48px;
  padding-block: 22px;
  border-top: 1px solid rgba(245,245,240,.1);
  display:flex; align-items:center; flex-wrap:wrap;
  gap: 14px 28px;
  justify-content: space-between;
}
@media (max-width: 719px){
  .footer-slim{ flex-direction:column; align-items:flex-start; gap: 12px; }
}
.footer-slim-brand{
  font-family: var(--font-head); font-weight: 800; font-size: .88rem;
  letter-spacing: .02em; text-transform: uppercase;
  color: rgba(245,245,240,.85);
  transition: color 200ms ease;
}
.footer-slim-brand:hover{ color: var(--lime); }
.footer-slim-nav{ display:flex; flex-wrap:wrap; gap: 5px 18px; }
.footer-slim-nav a{
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(245,245,240,.45); transition: color 200ms ease;
}
.footer-slim-nav a:hover{ color: rgba(245,245,240,.8); }
.footer-slim-copy{ font-size: 12px; color: rgba(245,245,240,.35); }
.footer-slim-copy a{ color: rgba(245,245,240,.35); text-decoration: underline; text-underline-offset: 2px; transition: color 200ms ease; }
.footer-slim-copy a:hover{ color: rgba(245,245,240,.6); }

/* =========================================================
   FLOATING MOBILE CTA
   ========================================================= */

/* =========================================================
   STUB PAGES
   ========================================================= */
.page-hero{ padding-top: 48px; padding-bottom: 32px; text-align:center; }
.page-hero .eyebrow{ margin-inline:auto; justify-content:center; }
.page-hero h1{ font-size: var(--fs-h2); font-weight:800; text-transform: uppercase; margin-top: 12px; }
.page-hero p{ margin-top:16px; color: var(--text-muted); max-width: 56ch; margin-inline:auto; }

/* ---------- Legal / privacy content ---------- */
.legal-content{ max-width: 760px; }
.legal-content h2{ font-size: var(--fs-h3); font-weight: 800; text-transform: uppercase; letter-spacing:-0.01em; margin-top: 76px; margin-bottom: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-content h2:first-child{ margin-top: 0; padding-top: 0; border-top: none; }
.legal-content p{ color: var(--text-muted); font-size: var(--fs-small); line-height: 1.7; max-width: 68ch; }
.legal-content a{ text-decoration: underline; text-underline-offset: 2px; }

.stub-card{ max-width: 640px; margin: 0 auto 72px; padding: 4px 0 0; text-align:center; }
.stub-card h2{ font-size: var(--fs-h3); font-weight:800; text-transform: uppercase; margin-bottom: 10px; }
.stub-card p{ color: var(--text-muted); margin-bottom: 26px; }
.stub-actions{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; }

/* ---------- Utility ---------- */
.visually-hidden{ position:absolute; left:-9999px; top:0; z-index:1000; background:#fff; color:var(--text); padding:12px 20px; border-radius: var(--radius-md); font-weight:700; }
.visually-hidden:focus{ left:16px; top:16px; }


/* =========================================================
   INNER PAGES
   ========================================================= */
.page-hero{ text-align:left; }
.page-hero .eyebrow{ margin-inline:0; justify-content:flex-start; }
.page-hero p{ margin-inline:0; }

.service-detail{
  display:grid; gap: 28px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 860px){
  .service-detail{ grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 48px; align-items:start; }
}
.service-detail h2{ font-size: var(--fs-h3); font-weight:800; text-transform:uppercase; margin-bottom: 12px; }
.service-detail .lead{ color: var(--text-muted); margin-bottom: 20px; max-width: 58ch; }
.service-meta{ display:grid; gap: 14px; }
.service-meta dt{ font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color: var(--text-subtle); margin-bottom:4px; }
.service-meta dd{ font-size: var(--fs-small); color: var(--text-muted); margin:0; }
.benefit-list{ display:grid; gap:10px; margin: 18px 0 24px; }
.benefit-list li{ position:relative; padding-left:22px; font-size: var(--fs-small); color: var(--text-muted); }
.benefit-list li::before{ content:"→"; position:absolute; left:0; color: var(--lime-dim); font-weight:700; }

.price-direction{
  display:grid; gap: 18px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px){
  .price-direction{ grid-template-columns: minmax(0,1.4fr) auto; align-items:center; }
}
.price-direction h2{ font-size: 1.15rem; font-weight:800; text-transform:uppercase; margin-bottom: 8px; }
.price-direction p{ color: var(--text-muted); font-size: var(--fs-small); max-width: 52ch; }
.price-direction .amount{ font-family: var(--font-head); font-weight:800; font-size: 1.35rem; white-space:nowrap; }
.price-direction .amount span{ font-size:.85rem; color: var(--text-muted); font-weight:600; }

.factors-grid{ display:grid; gap: 14px; margin-top: 28px; }
@media (min-width: 720px){ .factors-grid{ grid-template-columns: repeat(2,1fr); gap: 12px 32px; } }
.factor-item{ padding: 16px 0; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--text-muted); }

.process-detail{ display:grid; gap: 0; }
.process-block{ padding: 28px 0; border-top: 1px solid var(--line); }
.process-block:last-of-type{ border-bottom: 1px solid var(--line); }
.process-block .process-num{ margin-bottom: 10px; color: var(--lime-dim); }
.process-block h2{ font-size: 1.1rem; font-weight:800; text-transform:uppercase; margin-bottom: 10px; }
.process-block p{ color: var(--text-muted); font-size: var(--fs-small); max-width: 54ch; line-height: 1.6; }
.process-note{
  margin-top: 40px;
  max-width: 48ch;
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.6;
}

.company-detail{ display:grid; gap: 0; }
.company-block{ padding: 28px 0; border-top: 1px solid var(--line); }
.company-block:last-child{ border-bottom: 1px solid var(--line); }
.company-block h2{ font-size: 1.1rem; font-weight:800; text-transform:uppercase; margin-bottom: 10px; }
.company-block p{ color: var(--text-muted); font-size: var(--fs-small); max-width: 54ch; line-height: 1.6; }
.company-principles{
  display:grid;
  gap: 10px 32px;
  margin-top: 4px;
}
@media (min-width: 720px){
  .company-principles{ grid-template-columns: 1fr 1fr; }
}
.company-principles li{
  position: relative;
  padding-left: 18px;
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.5;
}
.company-principles li::before{
  content:"";
  position:absolute; left:0; top:0.55em;
  width:6px; height:6px; border-radius:50%;
  background: var(--lime-dim);
}

/* =========================================================
   APPROACH — "Сначала задача — потом дизайн"
   ========================================================= */
.approach-grid{
  display:grid; grid-template-columns: 1fr;
  margin-top: 32px;
}
@media (min-width: 720px){ .approach-grid{ grid-template-columns: repeat(3,1fr); } }

.approach-item{
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px){
  .approach-item{ padding: 24px 32px 24px 0; border-top: none; border-right: 1px solid var(--line); }
  .approach-item:last-child{ border-right: none; padding-right: 0; }
  .approach-item:not(:first-child){ padding-left: 32px; }
}
.approach-num{
  font-family: var(--font-head); font-weight: 800; font-size: 12px;
  color: var(--lime-dim); margin-bottom: 18px; letter-spacing:.04em;
}
.approach-item h3{
  font-size: .95rem; font-weight: 800; text-transform: uppercase;
  letter-spacing:.01em; margin-bottom: 8px;
}
.approach-item p{ font-size: var(--fs-small); color: var(--text-muted); line-height: 1.55; }

/* =========================================================
   EXISTING SITE — "Уже есть сайт?"
   ========================================================= */
.existing-site-inner{
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap: wrap; gap: 24px 48px;
  padding: 36px 0;
  border-top: 2px solid var(--lime-dim);
}
.existing-site-text{ max-width: 54ch; }
.existing-site-text h2{
  font-family: var(--font-head); font-size: var(--fs-h3); font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 12px;
}
.existing-site-text p{
  font-size: var(--fs-small); color: var(--text-muted); line-height: 1.6;
}

/* =========================================================
   ABOUT ME — "Обо мне" (на главной)
   ========================================================= */
.about-me-block{ max-width: 64ch; }
.about-me-block p{
  font-size: var(--fs-body); color: var(--text-muted); line-height: 1.7;
  margin-bottom: 14px;
}
.about-me-block p:last-child{ margin-bottom: 0; }

.contact-note{
  margin-top: 20px;
  font-size: var(--fs-small);
  color: rgba(245,245,240,.48);
  line-height: 1.55;
}

/* =========================================================
   PRICING TEASER — краткий блок "Стоимость" на главной
   ========================================================= */
.price-types{
  display:grid; grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px){ .price-types{ grid-template-columns: 1fr 1fr; gap: 0 40px; } }

.price-type{
  display:flex; align-items:center; justify-content:space-between;
  gap: 16px; padding: 20px 0;
  border-top: 1px solid var(--line);
}
.price-type-info{ flex: 1; }
.price-type h3{ font-size: .88rem; font-weight: 800; text-transform: uppercase; }
.price-type p{ font-size: 12px; color: var(--text-muted); margin-top: 4px; max-width: 30ch; }
.price-type-hint{
  font-family: var(--font-head); font-size: 12px; font-weight: 700;
  letter-spacing:.04em; text-transform: uppercase;
  color: var(--text-muted); white-space:nowrap; flex-shrink:0;
}

.pricing-main-note{
  margin-top: 24px;
  font-size: var(--fs-small); color: var(--text-muted); line-height: 1.6;
  max-width: 60ch;
}

/* =========================================================
   SCOPE INTRO — вводная фраза блока "Что получает клиент"
   ========================================================= */
.scope-intro{
  margin-bottom: 24px;
  font-size: var(--fs-small);
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.6;
}

/* =========================================================
   PROCESS AFTER-NOTE — строка после 4 шагов
   ========================================================= */
.process-after-note{
  margin-top: 32px;
  font-size: var(--fs-small); color: var(--text-muted);
  max-width: 52ch; line-height: 1.6;
}

/* =========================================================
   COOKIE CONSENT BANNER
   ========================================================= */
.cookie-banner{
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9999;
  background: var(--graphite);
  color: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: min(92vw, 640px);
  width: max-content;
  box-shadow: 0 8px 32px rgba(17,17,17,.24);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
  font-size: 13px;
  line-height: 1.5;
}
.cookie-banner.is-visible{
  transform: translateX(-50%) translateY(0);
}
.cookie-banner p{
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.cookie-banner a{ color: var(--lime); text-decoration: underline; }
.cookie-btns{
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-btn{
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  font-family: var(--font-head);
  line-height: 1;
}
.cookie-btn-accept{
  background: var(--lime);
  color: var(--graphite);
}
.cookie-btn-minimal{
  background: transparent;
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.2);
}
@media (max-width: 480px){
  .cookie-banner{ bottom: 12px; padding: 14px 16px; }
  .cookie-btns{ width: 100%; }
  .cookie-btn{ flex: 1; text-align: center; }
}

/* =========================================================
   PRICING TIMELINE (сроки)
   ========================================================= */
.price-direction-list{
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(17,17,17,.08);
}
.price-timeline{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(17,17,17,.08);
}
.price-timeline-name{
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--text);
}
.price-timeline-dur{
  font-size: var(--fs-small);
  color: var(--text-muted);
  white-space: nowrap;
}
@media (max-width: 480px){
  .price-timeline{ flex-direction: column; gap: 4px; }
  .price-timeline-dur{ color: var(--lime-dim); }
}

/* =========================================================
   contacts.html — after-form steps block
   ========================================================= */
.contact-next-steps {
  margin-top: 0;
  padding-top: 36px;
  border-top: 1px solid rgba(245,245,240,.1);
}

.contact-next-steps-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(245,245,240,.35);
  margin: 0 0 24px;
}

.contact-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-block: 18px;
  border-bottom: 1px solid rgba(245,245,240,.07);
}
.contact-step:first-child { padding-top: 0; }
.contact-step:last-child { border-bottom: none; }

.contact-step-num {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--lime);
  flex-shrink: 0;
  padding-top: 1px;
  min-width: 20px;
}

.contact-step-body { display: flex; flex-direction: column; gap: 4px; }

.contact-step-name {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin: 0;
}

.contact-step-desc {
  font-size: var(--fs-small);
  color: rgba(245,245,240,.5);
  line-height: 1.6;
  margin: 0;
}

.contact-no-brief {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(245,245,240,.07);
}

.contact-no-brief-title {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(245,245,240,.55);
  margin: 0 0 8px;
}

.contact-no-brief-desc {
  font-size: var(--fs-small);
  color: rgba(245,245,240,.45);
  line-height: 1.65;
  margin: 0;
  max-width: 38ch;
}

/* =========================================================
   FLOATING CONTACT WIDGET
   ========================================================= */
.fcw{
  position: fixed;
  right: 24px;
  bottom: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transition: bottom .25s ease;
}
.fcw.fcw--lifted{
  bottom: calc(var(--fcw-lift, 120px) + env(safe-area-inset-bottom, 0px));
}
.fcw-buttons{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fcw-btn{
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--graphite, #151515);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  transition: border-color .15s, transform .15s;
}
.fcw-btn:hover,
.fcw-btn:focus-visible{
  border-color: var(--lime, #C7FF3D);
  transform: scale(1.06);
  outline: none;
}
.fcw-btn img{
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 0 1px rgba(255,255,255,.35));
  pointer-events: none;
}
.fcw-menu{
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  background: var(--graphite, #151515);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
  min-width: 160px;
}
.fcw-menu.is-open{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.fcw-menu-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 16px;
  color: var(--on-dark, #F5F5F0);
  text-decoration: none;
  font-family: var(--font-body, Inter, sans-serif);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  transition: background .12s;
}
.fcw-menu-item + .fcw-menu-item{
  border-top: 1px solid rgba(255,255,255,.06);
}
.fcw-menu-item:hover,
.fcw-menu-item:focus-visible{
  background: rgba(255,255,255,.06);
  outline: none;
}
.fcw-menu-item:hover .fcw-menu-label,
.fcw-menu-item:focus-visible .fcw-menu-label{
  color: var(--lime, #C7FF3D);
}
.fcw-menu-arrow{
  color: var(--text-muted, #8E8E8E);
  font-size: 12px;
  line-height: 1;
  transition: color .12s;
}
.fcw-menu-item:hover .fcw-menu-arrow,
.fcw-menu-item:focus-visible .fcw-menu-arrow{
  color: var(--lime, #C7FF3D);
}
@media (max-width: 767px){
  .fcw{
    right: 16px;
    bottom: 32px;
    bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  }
  .fcw.fcw--lifted{
    bottom: calc(var(--fcw-lift, 110px) + env(safe-area-inset-bottom, 0px));
  }
  .fcw-btn{ width: 50px; height: 50px; }
  .fcw-btn img{ width: 28px; height: 28px; }
}
