/* Karpov Studio — design tokens and component classes (production stylesheet).
   Visual language ported from new_design.html: dark ink + orange accent,
   Manrope/Inter/JetBrains Mono, large border-grid sections, scroll reveals. */

:root {
  --ink: #0B0B0B;
  --ink-soft: #181818;
  --paper: #FFFFFF;
  --fog: #F2F1EE;
  --fog-2: #EBEAE6;
  --line: #E3E2DE;
  --line-dark: #262626;
  --muted: #76756F;
  --muted-dark: #9A9A94;
  --accent: #FF5A1F;
  --accent-soft: #FFE9DF;

  --f-display: 'Manrope', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --pad: clamp(16px, 4vw, 64px);
  --r: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px; line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(72px, 10vw, 150px); }

/* ============ TYPE ============ */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin: 0; }
.h-xxl { font-size: clamp(38px, 7.2vw, 104px); }
.h-xl { font-size: clamp(32px, 5.2vw, 72px); }
.h-l { font-size: clamp(26px, 3.4vw, 46px); }
.h-m { font-size: clamp(20px, 2.1vw, 30px); letter-spacing: -.025em; }
.h-s { font-size: clamp(17px, 1.35vw, 21px); font-weight: 700; letter-spacing: -.02em; }
p { margin: 0; }
.lead { font-size: clamp(16px, 1.35vw, 20px); color: var(--muted); max-width: 62ch; line-height: 1.5; }
.eyebrow {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 22px;
}
.on-dark .eyebrow, .dark .eyebrow { color: var(--muted-dark); }
.dim { color: var(--muted); }
.text-muted { color: var(--muted); }

/* ============ CURSOR ============ */
.cursor {
  position: fixed; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); pointer-events: none; z-index: 9999;
  transform: translate3d(-100px, -100px, 0) scale(1);
  transition: transform .18s var(--ease), opacity .3s; mix-blend-mode: normal; opacity: 0;
}
.cursor.on { opacity: 1; }
.cursor.grow { width: 12px; height: 12px; transform-origin: 50% 50%; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ============ PROGRESS ============ */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--ink); box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); z-index: 120; }

/* ============ HEADER ============ */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px var(--pad);
  transition: transform .45s var(--ease), background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.hdr-in { max-width: 1440px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hdr.hidden { transform: translateY(-105%); }
.hdr.solid { background: rgba(11, 11, 11, .86); backdrop-filter: blur(14px); border-color: var(--line-dark); }
.logo { font-family: var(--f-display); font-weight: 800; letter-spacing: -.05em; font-size: 20px; color: #fff; display: flex; align-items: center; gap: 9px; }
/* Logo mark ships white-on-dark (see logo-mark.png); the badge pins it on a
   fixed dark chip so it stays legible regardless of the surrounding theme
   (header toggles light/dark via .hdr-blend/.on-dark, footer is always light). */
.logo-badge { display: flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: #0c0c12; }
.logo-badge img { width: 18px; height: 18px; display: block; }
.ftr-brand .logo-badge { width: 38px; height: 38px; border-radius: 10px; }
.ftr-brand .logo-badge img { width: 25px; height: 25px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 14px; color: rgba(255, 255, 255, .72); position: relative; padding: 4px 0; transition: color .25s; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease); }
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.hdr-cta { display: flex; align-items: center; gap: 14px; }
.hdr-phone { font-family: var(--f-mono); font-size: 13px; color: rgba(255, 255, 255, .72); }
.hdr-phone:hover { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 100px; border: 0; cursor: pointer;
  font-family: var(--f-body); font-weight: 600; font-size: 14.5px; letter-spacing: -.01em;
  background: var(--accent); color: #fff; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn span:not(.arw) { position: relative; z-index: 2; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform .45s var(--ease); z-index: 1; }
.btn:hover::before { transform: translateY(0); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 90, 31, .28); }
.btn.ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .28); color: #fff; }
.btn.ghost::before { background: #fff; }
.btn.ghost:hover { color: var(--ink); box-shadow: none; }
.btn.dark-out { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn.dark-out::before { background: var(--ink); }
.btn.dark-out:hover { color: #fff; box-shadow: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .arw { transition: transform .4s var(--ease); position: relative; z-index: 2; }
.btn:hover .arw { transform: translateX(4px); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { width: 22px; height: 2px; background: #fff; display: block; transition: .35s var(--ease); }
.burger.x span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.x span:nth-child(2) { opacity: 0; }
.burger.x span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Header colour-invert (contacts.html) — this page has no dark hero for the
   fixed header to sit on. mix-blend-mode looked like the elegant fix but
   doesn't reliably blend a position:fixed element against scrolled content
   (verified: renders as plain white, invisible on a white page — a known
   fixed+blend limitation), so instead JS toggles .on-dark on #hdr depending
   on whether a dark block is currently under the header (see initHeaderInvert
   in main.js): frosted light bar + dark ink text on the light page, frosted
   dark bar + white text once a dark section (the .contact card) scrolls
   underneath. The accent logo dot and the filled "Оставить заявку" button are
   left out of the text-colour swap on purpose — both already read fine on
   any background. */
body.hdr-blend .hdr { background: rgba(255, 255, 255, .72); backdrop-filter: blur(14px); border-color: var(--line); }
body.hdr-blend .hdr.on-dark { background: rgba(11, 11, 11, .86); border-color: var(--line-dark); }
body.hdr-blend .hdr .logo span,
body.hdr-blend .hdr .nav-links a,
body.hdr-blend .hdr .hdr-phone,
body.hdr-blend .hdr .burger span {
  color: var(--ink); transition: color .3s ease;
}
body.hdr-blend .hdr.on-dark .logo span,
body.hdr-blend .hdr.on-dark .nav-links a,
body.hdr-blend .hdr.on-dark .hdr-phone,
body.hdr-blend .hdr.on-dark .burger span {
  color: #fff;
}

.mob {
  position: fixed; inset: 0; background: var(--ink); z-index: 99;
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 var(--pad);
  clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease);
}
.mob.open { clip-path: inset(0 0 0 0); }
.mob a { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 8vw, 52px); color: #fff; letter-spacing: -.04em; opacity: 0; transform: translateY(20px); transition: .5s var(--ease); }
.mob.open a { opacity: 1; transform: none; }
.mob .hdr-phone { font-size: 16px; margin-top: 12px; }

/* ============ HERO ============ */
.hero { background: var(--ink); color: #fff; padding: 150px 0 0; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; width: 720px; height: 720px; right: -160px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, .24), transparent 62%); filter: blur(30px);
  animation: float 14s ease-in-out infinite; pointer-events: none;
}
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-40px, 50px); } }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: end; position: relative; z-index: 2; }
.line { display: block; overflow: hidden; }
.line > span { display: block; transform: translateY(110%); transition: transform 1s var(--ease); }
.ready .line > span { transform: translateY(0); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-side { padding-bottom: 10px; }
.hero-side p { color: rgba(255, 255, 255, .62); font-size: 16.5px; max-width: 44ch; }
.hero-side p, .hero-actions, .hero-badges {
  opacity: 0; transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.ready .hero-side p { opacity: 1; transform: none; transition-delay: .55s; }
.ready .hero-actions { opacity: 1; transform: none; transition-delay: .78s; }
.ready .hero-badges { opacity: 1; transform: none; transition-delay: .94s; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; }
.pill { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 100px; color: rgba(255, 255, 255, .7); }

/* hero panel — real case previews */
.hero-panel {
  margin-top: clamp(48px, 7vw, 90px); border-radius: var(--r) var(--r) 0 0;
  background: linear-gradient(160deg, #1d4b3a, #0f2b22 70%); padding: clamp(24px, 4vw, 54px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 2; overflow: hidden;
  opacity: 0; transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.ready .hero-panel { opacity: 1; transform: none; transition-delay: 1.1s; }
.hero-panel::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 68px); pointer-events: none; }
.panel-copy h3 { font-size: clamp(22px, 2.6vw, 36px); line-height: 1.06; }
.panel-copy p { color: rgba(255, 255, 255, .6); margin-top: 16px; max-width: 40ch; font-size: 15.5px; }
.mock { display: flex; gap: 14px; align-items: flex-end; justify-content: center; }
.mock-shot {
  width: clamp(120px, 15vw, 190px); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45); border: 6px solid #08130f;
}
.mock-shot img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
.floaty { animation: floaty 6s ease-in-out infinite; }
.floaty:nth-child(2) { animation-delay: -3s; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* ============ MARQUEE ============ */
.ticker { background: var(--ink); color: #fff; padding: 0 0 clamp(50px, 6vw, 80px); overflow: hidden; }
.ticker-lbl {
  text-align: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); padding: 34px 0;
  opacity: 0; transform: translateX(70px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.ready .ticker-lbl { opacity: 1; transform: none; transition-delay: 1.4s; }
.track {
  display: flex; gap: 56px; width: max-content; animation: none;
  opacity: 0; transition: opacity 1s var(--ease);
}
.ready .track { opacity: 1; animation: slide 32s linear infinite; transition-delay: 1.5s; animation-delay: 1.5s; }
.track:hover { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.track b {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 2vw, 26px);
  letter-spacing: -.03em; color: rgba(255, 255, 255, .42); white-space: nowrap; transition: color .3s;
}
.track b:hover { color: #fff; }

/* ============ STATS ============ */
.stats { background: var(--ink); color: #fff; padding-bottom: clamp(70px, 9vw, 120px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.stat { padding: 34px 26px 10px; border-right: 1px solid var(--line-dark); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--f-display); font-weight: 800; font-size: clamp(38px, 4.6vw, 64px); letter-spacing: -.05em; line-height: 1; }
.stat p { color: var(--muted-dark); font-size: 14px; margin-top: 12px; max-width: 26ch; }

/* ============ REVEAL ============ */
[data-rv] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-rv].in { opacity: 1; transform: none; }

/* ============ TWO-COL TEXT BLOCKS ============ */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 50px; }
.head-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.acc-item { border-top: 1px solid var(--line); display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; padding: 30px 0; align-items: start; }
.acc-item:last-child { border-bottom: 1px solid var(--line); }
.acc-q { font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 1.9vw, 25px); letter-spacing: -.025em; line-height: 1.2; }
.acc-a { color: var(--muted); font-size: 16px; max-width: 60ch; }
.acc-a b { color: var(--ink); font-weight: 600; }

/* ============ SERVICES ============ */
.services { background: var(--ink); color: #fff; border-radius: var(--r); margin: 0 var(--pad); padding: clamp(48px, 7vw, 110px) clamp(20px, 4vw, 70px); }
.svc-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; max-width: 1312px; margin: 0 auto clamp(40px, 6vw, 80px); }
.svc-head p { color: var(--muted-dark); font-size: 16.5px; max-width: 52ch; }
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line-dark); max-width: 1312px; margin-inline: auto; }
.svc {
  border-bottom: 1px solid var(--line-dark); padding: 26px 26px 26px 0; position: relative; cursor: pointer;
  display: flex; gap: 20px; align-items: flex-start; transition: padding-left .45s var(--ease);
}
a.svc { color: inherit; }
.svc:nth-child(odd) { border-right: 1px solid var(--line-dark); padding-right: 44px; }
.svc:nth-child(even) { padding-left: 44px; }
.svc:nth-child(even):hover { padding-left: 58px; }
.svc:nth-child(odd):hover { padding-left: 14px; }
.svc h4 { font-size: 17.5px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.svc p { color: var(--muted-dark); font-size: 14.5px; max-width: 42ch; }
/* Content column grows to fill the row so its own text width never shifts
   the heading's start position — the arrow (flex:0) is pushed to the true
   right edge by this growth instead of by justify-content on the row. */
.svc > div { flex: 1 1 auto; min-width: 0; }
.svc .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; margin-top: 8px; transform: scale(0); transition: transform .4s var(--ease); }
.svc:hover .dot { transform: scale(1); }
/* Arrow reveal sits on the opposite (right) edge of the row from the dot (left),
   fading in and sliding inward on hover — mirrors the dot's reveal on the other side. */
.svc-arrow { flex: 0 0 auto; align-self: center; font-family: var(--f-mono); font-size: 18px; color: var(--accent); opacity: 0; transform: translateX(-10px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.svc:hover .svc-arrow { opacity: 1; transform: translateX(0); }
.svc-cta { margin-top: 60px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ============ CASES ============ */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 26px; background: var(--paper); transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
.case:hover { box-shadow: 0 26px 60px rgba(0, 0, 0, .09); transform: translateY(-4px); }
.case-vis { aspect-ratio: 16/11; position: relative; overflow: hidden; }
.case-vis img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.case:hover .case-vis img { transform: scale(1.06); }
.case-body { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; }
.tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 20px; }
.tag { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; padding: 6px 11px; border-radius: 100px; background: var(--fog); color: var(--muted); display: inline-flex; align-items: center; }
.case-body p { color: var(--muted); margin-top: 14px; font-size: 15.5px; max-width: 48ch; }
.metrics { display: flex; gap: 34px; margin-top: auto; padding-top: 28px; }
.metrics div b { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.04em; display: block; }
.metrics div span { font-size: 13px; color: var(--muted); }
.link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; margin-top: 26px; border-bottom: 1px solid var(--ink); padding-bottom: 4px; align-self: flex-start; transition: gap .35s var(--ease), color .3s, border-color .3s; }
.link:hover { gap: 14px; color: var(--accent); border-color: var(--accent); }

/* ============ CASES ACCORDION (index.html "Последние проекты") ============ */
.case-acc { border-top: 1px solid var(--line); }
.case-acc-item { border-bottom: 1px solid var(--line); }
.case-acc-head { display: flex; align-items: center; gap: 32px; padding: 44px 14px; cursor: default; }
.case-acc-num { font-family: var(--f-mono); font-size: 13px; color: var(--muted); flex: 0 0 auto; transition: color .5s var(--ease); }
.case-acc-title { font-family: var(--f-display); font-weight: 800; letter-spacing: -.03em; font-size: clamp(20px, 2.3vw, 30px); margin: 0 auto 0 0; transition: color .5s var(--ease); }
.case-acc-tags { margin: 0; flex: 0 0 auto; }
.case-acc-arrow { flex: 0 0 auto; font-family: var(--f-mono); font-size: 19px; color: var(--muted); transition: transform .5s var(--ease), color .4s; }
.case-acc-item.open .case-acc-num { color: var(--accent); }
.case-acc-item.open .case-acc-arrow { color: var(--accent); transform: rotate(90deg); }
.case-acc-body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .7s var(--ease), opacity .5s var(--ease); }
.case-acc-item.open .case-acc-body { grid-template-rows: 1fr; opacity: 1; }
.case-acc-body-in { overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-bottom: clamp(30px, 4vw, 50px); }
.case-acc-vis { border-radius: var(--r); overflow: hidden; aspect-ratio: 16/11; transform: scale(.94); opacity: .6; transition: transform .8s var(--ease), opacity .6s var(--ease); }
.case-acc-item.open .case-acc-vis { transform: scale(1); opacity: 1; }
.case-acc-vis img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case-acc-text { padding: 0 14px; }
.case-acc-text p { color: var(--muted); font-size: 15.5px; max-width: 48ch; }
.case-acc-text .metrics { display: flex; gap: 34px; margin-top: 24px; }
.case-acc-text .metrics div b { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.04em; display: block; }
.case-acc-text .metrics div span { font-size: 13px; color: var(--muted); }

/* ============ PROCESS ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.step { padding: 28px 22px 30px 0; border-right: 1px solid var(--line); position: relative; }
.step:last-child { border-right: 0; }
.step:not(:first-child) { padding-left: 22px; }
.step .n { font-family: var(--f-mono); font-size: 11px; color: var(--accent); letter-spacing: .12em; display: block; margin-bottom: 16px; }
.step h4 { font-size: 18px; letter-spacing: -.02em; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--muted); }
.step::after { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--accent); transition: width .7s var(--ease); }
.step.in::after { width: 100%; }

/* ============ REVIEWS ============ */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.rev { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; gap: 18px; background: var(--paper); transition: background .4s; }
.rev:hover { background: var(--fog); }
.rev.filled { background: var(--fog); }
.who { display: flex; gap: 12px; align-items: center; }
.ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 14px; color: #fff; flex: 0 0 auto; }
.who b { display: block; font-size: 14.5px; font-weight: 600; }
.who span { font-size: 12.5px; color: var(--muted); }
.rev q { font-style: normal; font-size: 15px; line-height: 1.5; quotes: none; }
.rev-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.rev-foot .link { margin-top: 0; }
.stars { font-size: 12px; color: var(--accent); letter-spacing: 2px; }

/* ============ STACK ============ */
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.st { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px; min-height: 190px; display: flex; flex-direction: column; transition: background .4s; }
.st:hover { background: var(--fog); }
.st b { font-family: var(--f-display); font-size: 20px; letter-spacing: -.03em; display: block; margin-bottom: 12px; }
.st p { color: var(--muted); font-size: 14.5px; }
.st .link { margin-top: auto; }
.st.accent { background: var(--accent); color: #fff; justify-content: center; }
.st.accent b { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; color: #fff; }
.st.accent .btn.ghost { border-color: rgba(255, 255, 255, .55); }
.st.accent .btn.ghost:hover { color: var(--accent); }

/* ============ FAQ ACCORDION (index.html) ============ */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  background: none; border: none; padding: 26px 0; text-align: left; cursor: pointer;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(17px, 1.7vw, 21px); letter-spacing: -.02em; color: var(--ink);
}
.faq-q:hover span { color: var(--accent); }
.faq-q .arrow { flex-shrink: 0; transition: transform .5s var(--ease); color: var(--accent); }
.faq-q[aria-expanded="true"] .arrow { transform: rotate(180deg); }
.faq-a-wrap { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s var(--ease), opacity .4s var(--ease); }
.faq-a-wrap.open { grid-template-rows: 1fr; opacity: 1; }
.faq-a-wrap[hidden] { display: none; }
.faq-a-in { overflow: hidden; }
.faq-a { color: var(--muted); font-size: 15.5px; max-width: 68ch; margin: 0 0 30px; white-space: pre-line; }

/* ============ PAGE HEAD (internal pages hero) ============ */
.page-head { background: var(--ink); color: #fff; padding: clamp(140px, 16vw, 190px) 0 clamp(56px, 8vw, 90px); position: relative; overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; width: 560px; height: 560px; right: -180px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, .22), transparent 62%); filter: blur(30px); pointer-events: none;
}
.crumb { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: rgba(255, 255, 255, .6); margin-bottom: 24px; transition: color .3s; }
.crumb:hover { color: #fff; }
.page-head .eyebrow { position: relative; z-index: 2; }
.page-head h1 { position: relative; z-index: 2; max-width: 18ch; }
.page-head .lead { position: relative; z-index: 2; color: rgba(255, 255, 255, .62); margin-top: 20px; }
.page-head-meta { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.page-head-meta div span { display: block; font-size: 12px; color: var(--muted-dark); margin-bottom: 6px; }
.page-head-meta div b, .page-head-meta div a { font-family: var(--f-display); font-weight: 700; font-size: 15px; color: #fff; }
.page-head-meta div a:hover { color: var(--accent); }
.page-head .tag { position: relative; z-index: 2; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .75); margin-bottom: 20px; }

/* ============ TRIO (case task/solution/result) ============ */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid var(--line); padding-top: 40px; }
.trio div p { color: var(--muted); font-size: 15px; }

/* ============ SPEC LIST (service pages "что входит") ============ */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.spec-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 2px; }
.spec-list li { padding: 13px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline; font-size: 15.5px; }
.spec-list li em { font-style: normal; color: var(--accent); font-family: var(--f-mono); font-size: 11px; flex-shrink: 0; }
.spec-foot { display: flex; align-items: baseline; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.spec-foot .amount { font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.03em; }
.spec-foot span { color: var(--muted); font-size: 14px; }

/* ============ DARK SECTION (full-bleed background matching photo) ============ */
.section.on-dark { background: var(--ink); color: #fff; }
.section.on-dark h2 { color: #fff; }
.section.on-dark .lead { color: rgba(255, 255, 255, .62); }
.section.on-dark .spec-list li { border-top-color: var(--line-dark); }
.section.on-dark .spec-foot .amount { color: #fff; }
.section.on-dark .spec-foot span { color: var(--muted-dark); }
.section.on-dark .metrics div b { color: #fff; }
.section.on-dark .metrics div span { color: var(--muted-dark); }
.section.on-dark .shot { border-color: var(--line-dark); background: transparent; }

/* ============ PRICE GRID (services.html tariffs) ============ */
.price-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.price { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px; display: flex; flex-direction: column; position: relative; }
.price .tag { position: absolute; top: 26px; right: 26px; }
.price h3 { font-size: 19px; margin-bottom: 12px; }
.price .amount { font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.03em; margin-bottom: 20px; }
.price ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 14px; }
.price ul li { display: flex; gap: 8px; align-items: baseline; }
.price ul li::before { content: "—"; color: var(--accent); flex-shrink: 0; }
.price .btn { margin-top: auto; justify-content: center; }
.price.featured { background: var(--ink); color: #fff; }
.price.featured ul { color: var(--muted-dark); }
.price.featured .btn.dark-out { border-color: var(--line-dark); color: #fff; }
.price.featured .btn.dark-out::before { background: #fff; }
.price.featured .btn.dark-out:hover { color: var(--ink); }

/* ============ CASE GALLERIES ============ */
.case-cover { border-radius: var(--r); overflow: hidden; margin-bottom: 0; }
.case-cover img { width: 100%; height: auto; aspect-ratio: 21/9; object-fit: cover; object-position: top; }
.gal { display: grid; gap: 18px; }
.gal.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gal.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gal.cols-4 { grid-template-columns: repeat(4, 1fr); }
.shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--fog); }
.shot img { width: 100%; height: auto; display: block; }
.shot.on-dark { background: #0b0b0c; border-color: var(--line-dark); }
.gal-cap { color: var(--muted); font-size: 13px; margin-top: 10px; text-align: center; }

/* ============ PORTFOLIO CARDS ============ */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.portfolio-grid.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 780px; }
.portfolio-card { display: flex; flex-direction: column; gap: 16px; color: inherit; }
.portfolio-card .thumb { border-radius: var(--r); overflow: hidden; aspect-ratio: 1/1; background: var(--fog); border: 1px solid var(--line); }
.portfolio-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s ease; }
.portfolio-card .meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.portfolio-card h3 { font-size: 19px; letter-spacing: -.02em; }
.portfolio-card span.text-muted { font-size: 13px; }

/* ============ CTA BAND ============ */
.cta-band { background: var(--accent); color: #fff; padding: clamp(32px, 5vw, 50px) 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; }
.cta-band .btn.ghost { border-color: rgba(255, 255, 255, .5); }
.cta-band .btn.ghost::before { background: #fff; }
.cta-band .btn.ghost:hover { color: var(--accent); }

.next-case { border-top: 1px solid var(--line); }
.next-case a { display: flex; justify-content: space-between; align-items: center; padding: 30px 0; }
.next-case a:hover .h-s { color: var(--accent); }
.next-case .eyebrow { margin: 0; }
.next-case .h-s { display: flex; align-items: center; gap: 10px; transition: color .3s; }

/* ============ CONTACT ============ */
.contact-outer { max-width: 1440px; margin-inline: auto; padding: 0 var(--pad) clamp(60px, 8vw, 110px); }
.contact-outer.top { padding-top: clamp(140px, 16vw, 190px); }
/* full-bleed variant: background stretches edge-to-edge, content stays centered */
.contact-outer.bleed { max-width: none; padding-inline: 0; background: var(--ink); position: relative; overflow: hidden; }
.contact-outer.bleed .contact { max-width: 1440px; margin-inline: auto; padding-left: max(var(--pad), clamp(30px, 5vw, 80px)); padding-right: max(var(--pad), clamp(30px, 5vw, 80px)); border-radius: 0; background: transparent; }
/* glow moved off the inset card (was clipping into a visible square) onto the full-width wrapper's own corners */
.contact-outer.bleed .contact::before { content: none; }
.contact-outer.bleed::before, .contact-outer.bleed::after {
  content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, .16), transparent 65%); filter: blur(40px); pointer-events: none;
}
.contact-outer.bleed::before { left: -180px; bottom: -260px; }
.contact-outer.bleed::after { right: -180px; top: -220px; }
.contact { background: var(--ink); color: #fff; border-radius: 44px; padding: clamp(30px, 5vw, 80px); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 520px; height: 520px; left: -120px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 90, 31, .2), transparent 65%); pointer-events: none; }
.contact h2, .contact h1 { margin-bottom: 46px; position: relative; color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 0; border-top: 1px solid var(--line-dark); position: relative; }
.form { padding-top: 34px; padding-right: clamp(20px, 4vw, 60px); border-right: 1px solid var(--line-dark); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.field { border-bottom: 1px solid var(--line-dark); padding: 8px 0 14px; position: relative; }
.field.span-2 { grid-column: 1 / -1; }
.f-row .field:first-child { padding-right: 26px; }
.field label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); display: block; margin-bottom: 8px; }
.field input, .field textarea, .field select { width: 100%; background: transparent; border: 0; outline: none; font-size: 16px; color: #fff; resize: none; padding: 4px 0; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A9A94' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; background-size: 16px; padding-right: 26px;
}
.field select option { color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .32); }
.field::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.f-foot { display: flex; align-items: center; gap: 20px; margin-top: 34px; flex-wrap: wrap; }
.f-foot small { font-size: 12px; color: var(--muted-dark); max-width: 34ch; line-height: 1.5; }
.f-foot a { border-bottom: 1px solid rgba(255, 255, 255, .35); }
.form-error { font-size: 13px; color: var(--accent); margin: 16px 0 0; }
.form-error[hidden] { display: none; }
.contact.solo .contact-grid { grid-template-columns: 1fr; }
.contact.solo .form { border-right: 0; padding-right: 0; max-width: 640px; }
.contact-side { padding: 34px 0 0 clamp(20px, 3vw, 44px); display: flex; flex-direction: column; gap: 30px; }
.side-card b { font-size: 17px; font-family: var(--f-display); letter-spacing: -.02em; display: block; margin-bottom: 18px; }
.person { display: flex; gap: 12px; align-items: center; }
.person .ava { width: 44px; height: 44px; font-size: 15px; }
.person span:not(.ava) { font-size: 12.5px; color: var(--muted-dark); display: block; }
.person a, .person b.link-line { font-family: var(--f-mono); font-size: 12px; color: var(--accent); letter-spacing: .02em; }
.side-sep { height: 1px; background: var(--line-dark); }

/* ============ FOOTER ============ */
.ftr { border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 70px) 0 30px; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.ftr h5 { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; font-weight: 400; }
.ftr ul { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.ftr ul a { font-size: 15px; transition: color .3s; }
.ftr ul a:hover { color: var(--accent); }
.ftr-brand .logo { color: var(--ink); font-size: 24px; margin-bottom: 16px; }
.ftr-brand p { color: var(--muted); font-size: 14.5px; max-width: 34ch; }
.ftr-bot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 50px; padding-top: 24px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.big-word { font-family: var(--f-display); font-weight: 800; font-size: clamp(48px, 14vw, 200px); letter-spacing: -.055em; line-height: .9; color: var(--fog-2); margin-top: 50px; user-select: none; white-space: nowrap; overflow: hidden; }

/* ============ CENTERED (thanks page) ============ */
.centered-outer { background: var(--ink); color: #fff; min-height: 100vh; display: flex; align-items: center; padding: clamp(140px, 18vw, 190px) 0 80px; position: relative; overflow: hidden; }
.centered-outer::after { content: ""; position: absolute; width: 640px; height: 640px; left: 50%; top: -260px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 90, 31, .22), transparent 62%); filter: blur(30px); pointer-events: none; }
.centered { max-width: 640px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.centered .check { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 28px; }
.centered h1 { color: #fff; margin-top: 8px; }
.centered .lead { color: rgba(255, 255, 255, .62); margin: 18px auto 34px; }
.centered .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .hero-grid, .head-2col, .svc-head, .spec-grid, .trio { grid-template-columns: 1fr; gap: 28px; }
  .hero-side { padding-bottom: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-bottom: 1px solid var(--line); }
  .rev-grid, .stack-grid, .price-grid, .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form { border-right: 0; padding-right: 0; }
  .contact-side { padding-left: 0; border-top: 1px solid var(--line-dark); margin-top: 30px; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .gal.cols-3, .gal.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .page-head-meta { gap: 24px; }
  .case-acc-title { font-size: clamp(18px, 2.6vw, 24px); }
}
@media (max-width: 860px) {
  .nav-links, .hdr-cta .btn, .hdr-phone { display: none; }
  .burger { display: flex; }
  .acc-item, .case, .hero-panel { grid-template-columns: 1fr; }
  .acc-item { gap: 14px; }
  .case-acc-head { flex-wrap: wrap; gap: 10px 16px; padding: 22px 2px; }
  .case-acc-title { flex: 1 1 auto; }
  .case-acc-tags { order: 3; flex-basis: 100%; }
  .case-acc-body-in { grid-template-columns: 1fr; gap: 20px; }
  .svc-list { grid-template-columns: 1fr; }
  .svc:nth-child(odd) { border-right: 0; padding-right: 0; }
  .svc:nth-child(even) { padding-left: 0; }
  .svc:nth-child(even):hover, .svc:nth-child(odd):hover { padding-left: 14px; }
  .rev-grid, .stack-grid, .f-row, .price-grid, .portfolio-grid, .portfolio-grid.cols-2 { grid-template-columns: 1fr; }
  .f-row .field:first-child { padding-right: 0; }
  .mock { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; padding-left: 0 !important; }
  .gal.cols-2, .gal.cols-3, .gal.cols-4 { grid-template-columns: 1fr; }
  .page-head-meta { flex-direction: column; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-rv] { opacity: 1; transform: none; }
  .line > span { transform: none; }
  .hero-side p, .hero-actions, .hero-badges, .hero-panel, .ticker-lbl, .track { opacity: 1; transform: none; }
  .case-acc-body { grid-template-rows: 1fr; opacity: 1; }
  .case-acc-vis { transform: none; opacity: 1; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
