/* =====================================================
   МЕДИА КРЫЛЬЯ — главная страница агентства
   Editorial × Stripe/Linear discipline
   WCAG AA: контраст, фокус, reduced-motion, бургер
   ===================================================== */

/* 1. RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* 2. TOKENS */
:root {
  --bg:            #fafaf7;
  --bg-warm:       #f4efe3;
  --bg-section:    #F7F5EF;
  --bg-whom:       #F2EDE0;
  --card:          #ffffff;

  --dark:          #181716;
  --dark-soft:     #1f1d1b;
  --dark-soft2:    #1a1815;
  --dark-line:     rgba(240, 234, 214, 0.10);
  --dark-line-2:   rgba(240, 234, 214, 0.18);

  --text:          #181716;
  --text-2:        #4a4744;
  --text-on-dark:  #F0EAD6;
  --champagne:     #F0EAD6;
  --muted:         #6b665e;
  --muted-on-dark: #b8b3a8;   /* WCAG-fix: was #9a948b (3.5:1 fail) → 4.6:1 */

  --border:        #e3dccb;
  --border-soft:   #ece6d6;

  --accent:        #C5A059;
  --accent-dk:     #7a5f3a;   /* WCAG-fix: was #9A7B4F (3.84:1 fail) → 5.2:1 */
  --accent-soft:   rgba(197, 160, 89, 0.18);
  --accent-line:   rgba(197, 160, 89, 0.45);

  --green:  #4a8a5a;
  --blue:   #4a6f9a;
  --amber:  #b07a2e;
  --red:    #b04a3e;
  --purple: #6f5a8a;

  --r:      0px;
  --r-card: 2px;
  --r-sm:   0px;

  --ff-head: 'EB Garamond', Garamond, 'Times New Roman', serif;
  --ff-body: 'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --easing:     cubic-bezier(0.22, 0.61, 0.36, 1);
  --easing-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3. BASE */
body {
  font-family: var(--ff-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-head);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

a { text-decoration: none; color: inherit; transition: color .25s var(--easing); }
img { display: block; max-width: 100%; }

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

/* WCAG 2.4.1: Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--dark);
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 2px solid var(--dark);
}
.skip-link:focus {
  top: 16px;
}

/* WCAG: focus-visible на все интерактивные элементы */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

/* 4. LAYOUT */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
section { padding: 120px 0; position: relative; }

.grid   { display: grid; gap: 28px; align-items: stretch; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-tight { gap: 24px; }

/* 5. SECTION VARIANTS */
.section-dark  { background: var(--dark);      color: var(--text-on-dark); }
.section-soft  { background: var(--dark-soft2); color: var(--text-on-dark); }
.section-light { background: var(--bg-section); }
.section-white { background: #fff; }
.section-whom  { background: var(--bg-whom); }

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4,
.section-soft h1, .section-soft h2, .section-soft h3, .section-soft h4 { color: #fff; }

/* Grain overlay */
.hero-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.92  0 0 0 0 0.78  0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
  opacity: 0.07;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 0;
}
.section-dark > .container,
.section-soft > .container { position: relative; z-index: 1; }
.section-dark > .hero-grain,
.section-soft > .hero-grain { z-index: 0; }

/* 6. TYPOGRAPHY UTILS */
.eyebrow {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dk);
}
.eyebrow-gold { color: var(--accent); }
.eyebrow-dark { color: var(--accent-dk); }
/* WCAG: на тёмных фонах accent-dk (#7a5f3a) даёт 3.1:1 → FAIL. Gold (#C5A059) даёт 7.6:1 */
.section-dark .eyebrow,
.section-soft .eyebrow { color: var(--accent); }

em {
  font-family: var(--ff-head);
  font-style: italic;
  font-weight: 500;
}

.gold-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 18%, var(--accent) 82%, transparent 100%);
  margin: 56px 0 64px;
  opacity: 0.55;
}
.gold-rule-thin {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
}

/* 7. STICKY NAV */
.sticky-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(24, 23, 22, 0.94);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  padding: 16px 0;
  transform: translateY(-100%);
  transition: transform .45s var(--easing-out), border-color .3s ease, background .3s ease;
}
.sticky-nav.visible {
  transform: translateY(0);
  border-bottom-color: var(--accent-line);
}
.sticky-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.nav-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border: 1px solid var(--accent);
  font-family: var(--ff-head);
  font-style: italic;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.nav-brand-text {
  font-family: var(--ff-head);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-brand-text em { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  position: relative;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-on-dark);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s var(--easing-out);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links .nav-cta {
  border: 1px solid var(--accent-line);
  padding: 8px 16px;
  color: var(--accent);
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}

/* WCAG: Бургер-меню — кнопка */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px; /* WCAG 2.5.8: min touch target */
  background: transparent;
  border: 1px solid var(--accent-line);
  cursor: pointer;
  padding: 8px;
  color: var(--accent);
}
.burger-line {
  display: block;
  width: 20px; height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--easing), opacity .3s var(--easing);
}
.burger[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.burger[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Nav drawer (мобильное меню) */
.nav-drawer {
  display: none;
  position: fixed;
  top: 61px; left: 0; right: 0;
  background: rgba(24, 23, 22, 0.97);
  border-bottom: 1px solid var(--accent-line);
  z-index: 999;
  padding: 24px 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-drawer.open { display: block; }
.nav-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.nav-drawer ul li a {
  display: block;
  padding: 14px 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  border-bottom: 1px solid var(--dark-line);
  transition: color .25s var(--easing), background .25s var(--easing);
}
.nav-drawer ul li a:hover { color: var(--accent); background: rgba(197,160,89,0.04); }
.nav-drawer ul li:last-child a {
  color: var(--accent);
  border-bottom: none;
}

/* 8. HERO */
.hero {
  padding: 140px 0 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 1100px; height: 1100px;
  background: radial-gradient(circle, rgba(197,160,89,0.13) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -25%; left: -12%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(197,160,89,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-container { position: relative; z-index: 2; width: 100%; }

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 28px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--dark-line);
}
.eyebrow-right { text-align: right; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1.05fr;
  gap: 64px;
  align-items: start;
}

.hero-divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--dark-line-2) 15%,
    var(--accent-line) 50%,
    var(--dark-line-2) 85%,
    transparent 100%);
  min-height: 520px;
}

/* Hero H1 */
.hero-h1 {
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 32px;
}
.hero-h1 em {
  font-family: var(--ff-head);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  font-size: 1.04em;
}

.hero-lead {
  font-family: var(--ff-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--champagne);
  max-width: 480px;
  margin-bottom: 48px;
  opacity: 0.88;
}

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 56px;
  padding: 24px 0;
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.hero-stat-num {
  font-family: var(--ff-head);
  font-style: italic;
  font-weight: 500;
  font-size: 42px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.stat-plus {
  font-style: normal;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 0.6em;
  vertical-align: super;
  margin-left: 2px;
  color: var(--accent);
}
.hero-stat-lbl {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted-on-dark);
  letter-spacing: 0.02em;
}
.hero-stat-sep {
  width: 1px;
  background: var(--dark-line);
}

/* Sweep-fill CTA */
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 28px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--easing);
}
.link-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform .45s var(--easing-out);
  z-index: -1;
}
.link-cta:hover { color: var(--dark); }
.link-cta:hover::before { transform: translateX(0); }
.link-cta-arrow {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 16px;
  transition: transform .35s var(--easing-out);
}
.link-cta:hover .link-cta-arrow { transform: translateX(4px); }

/* 9. DASHBOARD */
.dashboard {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.012));
  border: 1px solid var(--dark-line-2);
  padding: 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.03) inset,
    0 30px 80px -30px rgba(0,0,0,0.6);
}
.dashboard::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
}
.db-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--dark-line);
}
.db-title {
  font-family: var(--ff-head);
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  margin-top: 6px;
  letter-spacing: -0.005em;
}
.db-title em { color: var(--accent); }
.db-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted-on-dark);
}
.db-pulse {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(197,160,89,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(197,160,89,0); }
}

/* Dashboard rows */
.db-rows { display: flex; flex-direction: column; gap: 1px; background: var(--dark-line); border: 1px solid var(--dark-line); margin-bottom: 14px; }
.db-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(20,18,16,0.7);
  padding: 14px 18px;
  gap: 16px;
}
.db-row-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-on-dark);
}
.db-row-val {
  font-family: var(--ff-head);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.db-row-val .db-unit {
  font-style: normal;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 0.55em;
  color: var(--accent);
  margin-left: 2px;
}
.db-row-val .db-delta {
  font-size: 0.5em;
  font-style: normal;
  color: #6fa66f;
  font-family: var(--ff-body);
  margin-left: 4px;
  font-weight: 500;
}
.db-row-val .db-slash { color: var(--muted-on-dark); margin: 0 2px; font-style: normal; }
.db-row-val .db-denom { color: var(--muted-on-dark); font-size: 0.65em; }
.db-row-val .db-plan-ok { font-size: 0.5em; font-style: normal; color: #6fa66f; margin-left: 6px; font-family: var(--ff-body); }

/* Square markers */
.sq {
  width: 8px; height: 8px;
  display: inline-block;
  flex-shrink: 0;
}
.sq-green  { background: #6fa66f; }
.sq-amber  { background: #c89a4a; }
.sq-blue   { background: #6b8db5; }
.sq-purple { background: #8a7aa6; }

.mockup-caption {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--dark-line);
  font-size: 10px;
  color: var(--muted-on-dark);
  text-align: center;
  font-style: italic;
  font-family: var(--ff-head);
  letter-spacing: 0.04em;
}

/* 10. SECTION HEADERS */
.section-header { margin-bottom: 80px; max-width: 880px; }
.section-header .eyebrow { margin-bottom: 18px; }
.section-header h2 {
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.section-header h2 em { color: var(--accent); font-weight: 500; }
/* WCAG: на светлых фонах gold (#C5A059) даёт 2.4:1 → accent-dk (#7a5f3a) даёт 5.6:1 */
.section-light .section-header h2 em,
.section-white .section-header h2 em,
.section-whom .section-header h2 em { color: var(--accent-dk); }
.section-soft .section-header h2 em { color: var(--accent); }

.section-header p {
  font-family: var(--ff-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
  max-width: 720px;
  color: var(--muted);
}
.section-dark .section-header p,
.section-soft .section-header p { color: var(--muted-on-dark); }

.h2-display {
  font-size: clamp(44px, 5.8vw, 84px);
}

/* 11. CARDS — base */
.card {
  position: relative;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 36px 32px;
  transition: border-color .4s var(--easing), transform .4s var(--easing-out), box-shadow .4s var(--easing);
}
.section-light .card,
.section-whom .card { background: var(--card); }
.section-white .card { background: var(--bg); }
.section-dark .card,
.section-soft .card {
  background: rgba(255,255,255,0.025);
  border-color: var(--dark-line-2);
}

/* 12. HOW WE WORK (Approach) */
.how-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.how-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
  box-shadow: 0 18px 50px -28px rgba(122,95,58,0.35);
}
.card-glyph {
  position: absolute;
  top: 18px; right: 22px;
  font-size: 14px;
  color: var(--accent);
  opacity: 0.55;
}
.card-num {
  font-family: var(--ff-head);
  font-style: italic;
  font-weight: 500;
  font-size: 36px;
  color: var(--accent-dk); /* WCAG: на светлых фонах — 5.6:1 */
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.how-title {
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.how-desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  font-weight: 400;
}

/* Approach: маркеры достоверности */
.reliability-markers {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--bg-warm);
  border-left: 2px solid var(--accent);
}
.rm-item {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.rm-item strong { font-weight: 500; color: var(--text); }

/* 13. TEAM (Editor's letter) */
.team-section { position: relative; }
.team-letters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  margin-bottom: 56px;
}
.team-letter {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--dark-line-2);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color .4s var(--easing);
}
.team-letter:hover { border-color: var(--accent-line); }

.team-letter-name {
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 4px;
}
.team-letter-role {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--dark-line-2);
}
.team-letter-body {
  font-family: var(--ff-body);
  font-style: normal;
  font-weight: 300;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--champagne);
  opacity: 0.92;
}
.team-letter-body p { margin-bottom: 16px; }
.team-letter-body p:last-child { margin-bottom: 0; }

.team-outro {
  background: rgba(255,255,255,0.018);
  border: 1px solid var(--dark-line);
  border-left: 2px solid var(--accent-line);
  padding: 28px 36px;
}
.team-outro-text {
  font-family: var(--ff-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted-on-dark);
}

/* 14. SERVICES */
.services-grid { gap: 24px; }
.services-grid + .services-grid { margin-top: 24px; }
.service-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 40px 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0.3);
  transform-origin: top;
  transition: transform .5s var(--easing-out);
}
.service-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
  box-shadow: 0 18px 50px -28px rgba(122,95,58,0.4);
}
.service-card:hover::before { transform: scaleY(1); }

.service-index {
  font-family: var(--ff-head);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  color: var(--accent-dk);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.service-card h3 {
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text);
}
.service-result {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-dk);
  font-family: var(--ff-body);
  letter-spacing: 0.02em;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 2px;
}
.service-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 400;
}
.card-corner-glyph {
  position: absolute;
  bottom: 18px; right: 22px;
  font-size: 13px;
  color: var(--accent);
  opacity: 0.5;
}

.service-wide-card {
  margin-top: 40px;
  padding: 56px 48px;
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  position: relative;
}
.service-wide-card::after {
  content: '\2726';
  position: absolute;
  top: 20px; right: 24px;
  font-size: 14px;
  color: var(--accent);
  opacity: 0.55;
}
.service-wide-card .wide-meta { margin-bottom: 16px; }
.service-wide-card h3 {
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: 34px;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  max-width: 780px;
}
.service-wide-card p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 820px;
  margin-bottom: 0;
}
.service-wide-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--ff-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dk);
  transition: color .25s var(--easing), gap .25s var(--easing);
}
.service-wide-cta:hover { color: var(--accent); gap: 14px; }

/* 15. WHOM WE WORK WITH */
.whom-grid { gap: 24px; }
.whom-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  position: relative;
}
.whom-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
  box-shadow: 0 18px 50px -28px rgba(122,95,58,0.3);
}
.whom-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--easing-out);
}
.whom-card:hover::after { transform: scaleX(1); }

.whom-num {
  font-family: var(--ff-head);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  color: var(--accent-dk); /* WCAG: на светлых фонах */
  line-height: 1;
  letter-spacing: -0.01em;
}
.whom-card h3 {
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}
.whom-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 400;
}

/* 16. CONTACT */
.contact-section { padding: 140px 0 120px; }
.contact-head {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.contact-head .eyebrow { margin-bottom: 24px; }
.contact-heading {
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0;
}
.contact-heading em { color: var(--accent); }
.contact-heading { margin-bottom: 20px; }

.contact-sub {
  font-family: var(--ff-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted-on-dark);
  max-width: 560px;
  margin: 0 auto;
}

.contact-card {
  max-width: 760px;
  margin: 0 auto 80px;
  padding: 48px 56px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--dark-line-2);
  position: relative;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.contact-card-head { text-align: center; margin-bottom: 36px; }
.contact-card-head .eyebrow { margin-bottom: 12px; }
.contact-card h3 {
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: #fff;
}
.contact-agenda { list-style: none; }
.contact-agenda li {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 18px 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--champagne);
  border-bottom: 1px solid var(--dark-line);
  font-weight: 300;
}
.contact-agenda li:last-child { border-bottom: none; }
.agenda-num {
  font-family: var(--ff-head);
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 26px;
  letter-spacing: 0.02em;
}
.contact-postscript {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--dark-line);
  font-family: var(--ff-body);
  font-style: normal;
  font-weight: 300;
  font-size: 15px;
  color: var(--muted-on-dark);
  text-align: center;
  line-height: 1.65;
}

.contact-cta {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.contact-cta-lead {
  font-family: var(--ff-head);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--champagne);
  margin-bottom: 40px;
  letter-spacing: 0.005em;
}
.contact-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}
.btn-contact {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 32px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--ff-body);
  text-align: left;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--easing);
}
.btn-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform .45s var(--easing-out);
  z-index: -1;
}
.btn-contact:hover { color: var(--dark); }
.btn-contact:hover::before { transform: translateX(0); }
.btn-contact svg {
  width: 24px; height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}
.btn-contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.btn-contact-lbl {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8; /* WCAG-fix: was 0.7 (4.4:1 on dark) → 5.6:1 */
}
.btn-contact-val {
  font-family: var(--ff-head);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.01em;
}

/* 17. FOOTER */
.site-footer {
  padding: 0;
  background: var(--dark);
}
.site-footer .gold-rule-thin { margin-bottom: 36px; }
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 36px;
}
.footer-brand {
  font-family: var(--ff-head);
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.005em;
}
.footer-brand em { color: var(--accent); }
.footer-copy {
  font-size: 12px;
  color: var(--muted-on-dark);
  font-weight: 300;
}
.footer-mark {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-on-dark); /* WCAG-fix: was accent-dk (3.1:1 on dark) → 8.9:1 */
}

/* 18. REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .8s var(--easing-out), transform .8s var(--easing-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* 19. RESPONSIVE */
@media (max-width: 1280px) {
  .container { padding: 0 32px; }
}
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr 1px 1fr; gap: 48px; }
  .hero-h1 { font-size: clamp(36px, 5.5vw, 68px); }
  .nav-links { gap: 22px; }
  .nav-links li:nth-child(1),
  .nav-links li:nth-child(2) { display: none; }
}
@media (max-width: 1024px) {
  section { padding: 96px 0; }
  .hero { padding: 120px 0 96px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-divider { display: none; }
  .hero-meta { flex-wrap: wrap; gap: 12px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .team-letters-grid { grid-template-columns: 1fr; }
  .service-wide-card { padding: 40px 32px; }
  .service-wide-card h3 { font-size: 28px; }
  .contact-card { padding: 40px 40px; }
}
@media (max-width: 768px) {
  .container { padding: 0 22px; }
  section { padding: 80px 0; }
  .hero { padding: 100px 0 80px; min-height: auto; }
  .hero-meta { font-size: 10px; padding-bottom: 18px; margin-bottom: 32px; }
  .eyebrow { font-size: 10px; letter-spacing: 0.18em; }
  .hero-h1 { font-size: clamp(38px, 9vw, 58px); }
  .hero-lead { font-size: 16px; margin-bottom: 36px; }
  .hero-stats { flex-direction: column; gap: 16px; padding: 20px 0; }
  .hero-stat-sep { width: 100%; height: 1px; }
  .hero-stat { flex-direction: row; align-items: baseline; gap: 18px; }
  .hero-stat-num { font-size: 36px; }
  .hero-stat-lbl { font-size: 13px; }
  .dashboard { padding: 20px 18px; }
  .db-row-val { font-size: 22px; }
  .section-header { margin-bottom: 56px; }
  .section-header h2 { font-size: clamp(34px, 8vw, 50px); }
  .section-header p { font-size: 16px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .whom-grid { grid-template-columns: 1fr; }
  .team-letter { padding: 32px 26px; }
  .team-letter-body { font-size: 16px; }
  .service-card { padding: 32px 26px; }
  .service-card h3 { font-size: 21px; }
  .service-wide-card { padding: 28px 22px; }
  .service-wide-card h3 { font-size: 22px; }
  .contact-card { padding: 28px 22px; margin-bottom: 48px; }
  .contact-agenda li { padding: 14px 0; gap: 16px; font-size: 15px; }
  .contact-buttons { grid-template-columns: 1fr; gap: 12px; max-width: 100%; }
  .btn-contact { padding: 22px 24px; gap: 16px; }
  .btn-contact-val { font-size: 17px; }
  .contact-cta-lead { font-size: 18px; margin-bottom: 28px; }
  .footer-grid { flex-direction: column; gap: 12px; text-align: center; padding-bottom: 28px; }

  /* WCAG: на ≤768px показываем бургер, прячем nav-links */
  .nav-links { display: none; }
  .burger { display: flex; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-h1 { font-size: clamp(32px, 10vw, 46px); }
  .section-header h2 { font-size: 30px; }
  .contact-heading { font-size: 28px; }
  .contact-heading br { display: none; }
}

/* 20. REDUCED MOTION (WCAG 2.1 §2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .db-pulse { box-shadow: none; }
  html { scroll-behavior: auto; }
}

/* 21. HERO без дашборда */
.hero-grid {
  display: block;
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}
.hero-text { width: 100%; }
.hero-divider { display: none; }

/* 22. АВАТАРЫ КОМАНДЫ */
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--dark);
  display: grid;
  place-items: center;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-avatar-initials {
  font-family: var(--ff-head);
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
}

/* 23. КАРТОЧКИ КЕЙСОВ */
.cases-section { padding: 120px 0; }
.case-card {
  background: rgba(255,255,255,0.025);
  border-color: var(--dark-line-2);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.case-num {
  font-family: var(--ff-head);
  font-style: italic;
  font-size: 14px;
  color: var(--accent-dk);
  letter-spacing: 0.04em;
}
.case-card h3 {
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  color: #fff;
}
.case-card p {
  font-size: 14.5px;
  color: var(--muted-on-dark);
  line-height: 1.6;
}
.case-roi {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-on-dark);
  border-top: 1px solid var(--dark-line);
  padding-top: 14px;
  margin-top: auto;
}
.case-roi em {
  font-family: var(--ff-head);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  margin-left: 6px;
  letter-spacing: -0.01em;
}
.case-artifact {
  margin-top: 14px;
  border: 1px solid var(--dark-line-2);
  padding: 8px;
  background: rgba(0,0,0,0.2);
}
.case-artifact img {
  width: 100%;
  display: block;
  filter: brightness(0.9);
}
.case-artifact-lbl {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-on-dark);
  margin-top: 8px;
  text-align: center;
}
.cases-footnote {
  margin-top: 56px;
  text-align: center;
  font-size: 13px;
  color: var(--muted-on-dark);
  font-style: italic;
}

/* 24. КАРТОЧКА ЛИД-МАГНИТА */
.materials-section { padding: 120px 0; }
.material-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 48px;
  align-items: center;
}
.material-preview img {
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px -30px rgba(0,0,0,0.2);
}
.material-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-dk);
  font-weight: 500;
  margin-bottom: 14px;
}
.material-content h3 {
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}
.material-content p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 20px;
}
.material-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.material-bullets li {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-2);
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}
.material-bullets li::before {
  content: '\2022';
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}
.material-form {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: stretch;
}
.material-form input[type="email"] {
  flex: 1;
  padding: 16px 20px;
  font-family: var(--ff-body);
  font-size: 15px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.material-form input[type="email"]:focus {
  border-color: var(--accent);
  outline: none;
}
.material-disclaimer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 900px) {
  .material-card { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; }
  .material-form { flex-direction: column; }
}

/* 25. МИНИ-КЕЙСЫ В УСЛУГАХ, ТЕГИ КЕЙСОВ, СПИСОК CASE-POINTS */
.service-mini-case {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-dk);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: auto;
  font-family: var(--ff-body);
}
.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.case-tag {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  padding: 4px 10px;
}
.case-card-ours .case-tag {
  background: var(--accent);
  color: var(--dark);
}
.case-points {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.case-points li {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--champagne);
  opacity: 0.85;
  padding-left: 22px;
  position: relative;
}
.case-points li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 500;
}
@media (max-width: 900px) { .cases-grid { grid-template-columns: 1fr; } }
