/* ==========================================================================
   Марьян Кротов — персональный сайт консультанта
   Минималистичная редакционная вёрстка. Светлая и тёмная темы.
   ========================================================================== */

/* ---------------------------------- Tokens --------------------------------- */
:root {
  --bg:            #f7f5f0;
  --bg-alt:        #f1eee7;
  --surface:       #ffffff;
  --surface-2:     #fbfaf7;
  --border:        #e4ddd0;
  --border-soft:   rgba(20, 23, 30, .09);
  --ink:           #14171e;
  --ink-2:         #3a4256;
  --muted:         #76736c;
  --accent:        #2f6f5e;
  --accent-ink:    #24584a;
  --accent-soft:   rgba(47, 111, 94, .08);
  --accent-line:   rgba(47, 111, 94, .24);
  --warm:          #c97b3f;
  --mark-fg:       #f7f5f0;
  --shadow-sm:     0 1px 2px rgba(20, 23, 30, .04);
  --shadow-md:     0 6px 24px -10px rgba(20, 23, 30, .16);
  --shadow-lg:     0 22px 60px -30px rgba(20, 23, 30, .30);
  --track:         .012em;

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans:    "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --container: 1160px;
  --gutter: 40px;
  --radius: 14px;
  --header-h: 76px;
}

[data-theme="dark"] {
  --bg:            #0f1113;
  --bg-alt:        #14171a;
  --surface:       #171a1e;
  --surface-2:     #1b1f24;
  --border:        #2a2f36;
  --border-soft:   rgba(255, 255, 255, .10);
  --ink:           #eceae5;
  --ink-2:         #c3c0b9;
  --muted:         #8d8b85;
  --accent:        #5cbb9c;
  --accent-ink:    #7fd0b4;
  --accent-soft:   rgba(92, 187, 156, .10);
  --accent-line:   rgba(92, 187, 156, .28);
  --warm:          #d9945c;
  --mark-fg:       #0f1113;
  --shadow-sm:     0 1px 2px rgba(0, 0, 0, .30);
  --shadow-md:     0 6px 24px -10px rgba(0, 0, 0, .55);
  --shadow-lg:     0 22px 60px -30px rgba(0, 0, 0, .75);
}

/* ---------------------------------- Base ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: var(--track);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .35s ease, color .35s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.012em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--mark-fg); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--mark-fg);
  padding: 12px 20px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ---------------------------------- Header --------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border-soft);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
  max-width: 1360px;
}

.brand { display: flex; align-items: center; gap: 12px; margin-right: 0; flex: 0 0 300px; min-width: 0; }
.brand-mark { color: var(--accent); flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; min-width: 0; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand-text em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .02em;
  max-width: 246px;
  line-height: 1.35;
}

.nav { display: flex; align-items: center; gap: 16px; flex: none; }
.nav a {
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  transition: color .2s ease;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .28s cubic-bezier(.4, 0, .2, 1);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }

/* Переключатель языка */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--surface-2);
}
.lang-switch a {
  display: block;
  position: relative;
  min-width: 36px;
  padding: 5px 8px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-align: center;
  color: var(--muted);
  transition: background-color .2s ease, color .2s ease;
}
.lang-switch a:hover { color: var(--accent); }
/* область нажатия 45 px по высоте — макет не меняется */
.lang-switch a::after { content: ""; position: absolute; inset: -10px 0; }
.lang-switch a[aria-current="true"] {
  background: var(--accent);
  color: var(--mark-fg);
}

.theme-toggle {
  position: relative;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: rotate(12deg); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--gutter) 26px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg);
}
.mobile-nav nav { display: flex; flex-direction: column; }
.mobile-nav nav a {
  padding: 14px 0;
  font-size: 17px;
  font-family: var(--font-display);
  border-bottom: 1px solid var(--border-soft);
}
.mobile-nav .lang-switch { align-self: flex-start; margin-top: 14px; }
.mobile-nav .btn { margin-top: 18px; }

/* ---------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background-color .2s ease,
              border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}
[data-theme="dark"] .btn-primary { color: #0d1a16; }
.btn-primary:hover {
  background: var(--accent-ink);
  box-shadow: var(--shadow-lg);
}
[data-theme="dark"] .btn-primary:hover { background: var(--accent-ink); color: #0d1a16; }

.btn-ghost {
  border-color: var(--border);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* Кнопка в шапке — компактная: тоньше начертание, меньше отступов, мягкая тень */
.header-cta {
  flex: none;
  white-space: nowrap;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .015em;
  border-radius: 8px;
  box-shadow: none;
}
.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px -6px rgba(20, 23, 30, .45);
}
[data-theme="dark"] .header-cta:hover { box-shadow: 0 3px 12px -7px rgba(0, 0, 0, .9); }

/* Ссылка «к содержанию» для клавиатурной навигации и скринридеров */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 120;
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 14px; color: #fff; }

/* ---------------------------------- Hero ----------------------------------- */
.hero {
  padding: 74px 0 88px;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -220px; right: -140px;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 66%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
}
.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.1vw, 3.3rem);
  max-width: 20ch;
  margin-bottom: 26px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-lead {
  font-size: 17.5px;
  line-height: 1.68;
  color: var(--ink-2);
  max-width: 54ch;
  margin-bottom: 34px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-top: 26px;
  border-top: 1px solid var(--border-soft);
}
.hero-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
}
.hero-facts svg { color: var(--accent); flex: none; }

/* Hero card */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-md);
}
.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 11px;
  border-radius: 999px;
  font-weight: 600;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.8); }
}

.card-portrait {
  border-radius: 10px;
  overflow: hidden;
  background: var(--accent-soft);
  color: var(--accent);
  height: 168px;
  margin-bottom: 6px;
}
.card-portrait svg { width: 100%; height: 100%; opacity: .55; }

.card-facts { margin: 0; }
.card-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--border-soft);
}
.card-facts > div:last-child { border-bottom: 0; padding-bottom: 2px; }
.card-facts dt { font-size: 13px; color: var(--muted); }
.card-facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  text-align: right;
  color: var(--ink);
}

/* ---------------------------------- Sections -------------------------------- */
.section { padding: 92px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section-head { margin-bottom: 48px; max-width: 860px; }
.section-index { margin: 0 0 14px; color: var(--accent); }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.55rem); }
.section-lead {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 62ch;
}

/* ---------------------------------- About ---------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 68px;
  align-items: start;
}
.about-text .lead {
  font-size: 19px;
  line-height: 1.55;
  font-family: var(--font-display);
  color: var(--ink);
  margin-bottom: 20px;
}
.about-text p { color: var(--ink-2); margin-bottom: 15px; }

.about-skills { display: grid; gap: 2px; }
.about-skills li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.about-skills li:last-child { border-bottom: 0; }
.about-skills svg { color: var(--accent); flex: none; margin-top: 3px; }
.about-skills strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 3px;
}
.about-skills span { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ---------------------------------- Results -------------------------------- */
.results-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}

.kpi-block {
  border-left: 2px solid var(--accent);
  padding-left: 26px;
}
.kpi-value {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.2vw, 3.9rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  margin: 0 0 12px;
}
.kpi-value span { color: var(--accent); }
.kpi-caption { font-size: 15px; color: var(--ink-2); margin-bottom: 26px; }

.kpi-list { display: grid; gap: 12px; }
.kpi-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-soft);
}
.kpi-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.kpi-list span {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  min-width: 104px;
}

.charts-block { display: grid; gap: 22px; }

.chart-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px 20px;
  box-shadow: var(--shadow-sm);
}
.chart-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.chart-title .mono-label { color: var(--ink); font-weight: 500; }
.chart-note { font-size: 12.5px; color: var(--muted); }

.bench-row {
  display: grid;
  grid-template-columns: 158px 1fr 62px;
  gap: 14px;
  align-items: center;
  padding: 7px 0;
}
.bench-row .label { font-size: 13.5px; color: var(--ink-2); }
.bar-bg {
  height: 18px;
  background: var(--bg-alt);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.bar-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 62%, #a9d6c8));
  transition: width .9s cubic-bezier(.22, 1, .36, 1);
}
.bar-fill.is-base {
  background: color-mix(in srgb, var(--muted) 26%, transparent);
}
.bench-row .val {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  text-align: right;
  font-weight: 500;
}
.chart-foot {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------------------------------- Service -------------------------------- */
.service-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 64px;
  align-items: start;
}

.aside-title {
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 16px;
}
.aside-text { font-size: 15px; color: var(--ink-2); margin-bottom: 24px; }

.check-list { display: grid; gap: 11px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.check-list svg { color: var(--accent); flex: none; margin-top: 3px; }

.aside-doc {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.aside-doc:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.scope-item {
  position: relative;
  background: var(--surface);
  padding: 26px 26px 24px;
  transition: background-color .25s ease;
}
.scope-item:hover { background: var(--surface-2); }
.scope-num {
  position: absolute;
  top: 24px; right: 24px;
  color: var(--muted);
  opacity: .7;
}
.scope-ico { color: var(--accent); margin-bottom: 16px; }
.scope-item h4 {
  font-size: 18px;
  margin-bottom: 8px;
}
.scope-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ---------------------------------- Process -------------------------------- */
.gantt-hint { display: none; }
.gantt {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px 26px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
}
.gantt-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 10px;
  padding-left: 0;
}
.gantt-days span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  letter-spacing: .04em;
}
.gantt-rows { display: grid; gap: 9px; }
.gantt-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 32px;
}
.gantt-bar {
  grid-column: var(--s) / span calc(var(--e) - var(--s) + 1);
  display: flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--muted) 15%, transparent);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gantt-bar.is-accent {
  background: var(--accent);
  color: #fff;
}
[data-theme="dark"] .gantt-bar.is-accent { color: #0d1a16; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  counter-reset: step;
}
.step { position: relative; padding-top: 30px; }
.step::before {
  content: "";
  position: absolute;
  top: 7px; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.step::after {
  content: "";
  position: absolute;
  top: 3px; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.step-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0; }

/* ---------------------------------- Pricing -------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.price-card.is-featured {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--accent-soft), transparent 190px), var(--surface);
}
.price-card h3 { font-size: 23px; margin: 12px 0 18px; }
.price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: -.015em;
}
.price span { font-size: .42em; color: var(--muted); font-family: var(--font-sans); margin-right: 6px; letter-spacing: .04em; }
.price.is-negotiable { font-size: clamp(1.35rem, 2.2vw, 1.65rem); margin-bottom: 14px; }
.price.is-negotiable em { font-style: italic; color: var(--accent); }
.price-note {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-soft);
  line-height: 1.6;
}
.price-card .check-list { margin-bottom: 28px; }
.price-card .btn { margin-top: auto; }

.terms-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: start;
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px solid var(--border-soft);
}
.terms-card h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  margin-bottom: 14px;
}
.terms-card svg { color: var(--muted); }
.plain-list { display: grid; gap: 8px; }
.plain-list li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}
.plain-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--border);
}
.disclaimer {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

/* --------------------------------- Experience ------------------------------- */
.exp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr);
  gap: 60px;
  align-items: start;
}

.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--border);
}
.tl-item {
  position: relative;
  padding-left: 30px;
  padding-bottom: 32px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--accent);
}
.tl-period {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 6px;
}
.tl-body h3 {
  font-size: 18.5px;
  margin-bottom: 8px;
}
.tl-body h3 span {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.tl-body p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.62;
  margin: 0;
}

.exp-aside { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.aside-box h3 {
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--border-soft);
}
.aside-box.is-accent {
  background: linear-gradient(180deg, var(--accent-soft), transparent 120px), var(--surface);
  border-color: var(--accent-line);
}
.aside-box.is-accent p { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.6; }
.aside-box.is-accent strong { color: var(--accent); }

.project-list { display: grid; gap: 13px; }
.project-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 13px;
  border-bottom: 1px dashed var(--border-soft);
}
.project-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.project-list strong { font-size: 14.5px; font-weight: 600; font-family: var(--font-display); }
.project-list span { font-size: 12.5px; color: var(--muted); }

/* -------------------------------- Credentials ------------------------------- */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 30px;
}
.cred-item { background: var(--surface); padding: 28px 26px; }
.cred-value {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  margin: 12px 0 10px;
  letter-spacing: -.01em;
}
.cred-desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0; }

.pub-list { display: grid; gap: 10px; }
.pub-list a {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr) auto;
  gap: 24px;
  align-items: center;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .25s ease;
}
.pub-list a:hover {
  border-color: var(--accent);
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
}
.pub-title { font-family: var(--font-display); font-size: 16px; line-height: 1.4; }
.pub-list svg { color: var(--accent); }

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.article-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 250px;
  padding: 24px 24px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .25s ease;
}
.article-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.article-meta { margin: 0 0 12px; color: var(--accent); }
.article-card h3 { font-size: 20px; line-height: 1.2; margin: 0 0 12px; }
.article-card > p:not(.article-meta) { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.article-link { margin-top: auto; padding-top: 20px; color: var(--accent); font-size: 13.5px; font-weight: 700; }

/* ---------------------------------- Contact -------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 56px;
  align-items: start;
}
.contact-channels { display: grid; gap: 10px; }
.channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .25s ease;
}
.channel:hover { border-color: var(--accent); transform: translateX(3px); box-shadow: var(--shadow-sm); }
.channel-ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}
.channel-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.channel-body em { font-style: normal; }
.channel-body strong { font-size: 15.5px; font-weight: 600; overflow-wrap: anywhere; }
.channel-arrow { color: var(--muted); flex: none; margin-left: auto; }
.channel:hover .channel-arrow { color: var(--accent); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 { font-size: 23px; margin: 12px 0 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; margin-bottom: 15px; }
.field > span {
  display: block;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  font-size: 14.5px;
  transition: border-color .2s ease, background-color .2s ease;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}
.contact-form .btn { margin-top: 6px; }
.form-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}


/* Yandex Forms embed */
.yandex-form-frame {
  display: block;
  width: 100%;
  min-height: 1080px;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
}
@media (max-width: 640px) {
  .yandex-form-frame { min-height: 1320px; }
}

/* ---------------------------------- Footer --------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 30px 0 26px;
  background: var(--bg);
}
.footer-inner {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 18px 28px;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand > div { display: flex; flex-direction: column; gap: 2px; }
.footer-brand strong { font-family: var(--font-display); font-size: 17px; }
.footer-brand span { font-size: 12.5px; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 18px; }
.footer-nav a { font-size: 13.5px; color: var(--muted); transition: color .2s ease; }
.footer-nav a:hover { color: var(--accent); }
.footer-legal {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  max-width: none;
}

/* --------------------------------- Reveal ---------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

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

/* -------------------------------- Responsive -------------------------------- */
@media (max-width: 1280px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .mobile-nav.is-open { display: flex; }
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .mobile-nav.is-open { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-card { max-width: 560px; }
  .about-grid, .results-grid, .service-layout, .exp-grid, .contact-grid, .terms-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .exp-aside { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 28px; }
  .cred-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --gutter: 22px; --header-h: 68px; }
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 46px 0 62px; }
  .hero h1 { max-width: none; }
  .hero-lead { font-size: 16.5px; }
  .hero-facts { flex-direction: column; gap: 10px; }
  .scope-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .bench-row { grid-template-columns: 118px 1fr 54px; gap: 10px; }
  .bench-row .label { font-size: 12.5px; }
  .gantt { padding: 18px 16px 20px; overflow-x: auto; }
  .gantt-days, .gantt-row { min-width: 470px; }
  .gantt-hint { display: block; margin: 0 0 12px; font-size: 12px; color: var(--muted); text-align: right; }
  .field input, .field textarea { font-size: 16px; }
  .footer-nav a { display: inline-block; padding: 11px 0; margin: -11px 0; }
  .pub-list a { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .pub-type { grid-column: 1 / -1; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; gap: 16px; }
  .contact-form { padding: 24px 20px; }
  .price-card { padding: 26px 22px; }
}

@media (max-width: 520px) {
  .brand-text em { display: none; }
  .brand-text strong { font-size: 15px; white-space: nowrap; }
  .card-facts dt { font-size: 12.5px; }
  .card-facts dd { font-size: 15.5px; }
  .kpi-list span { min-width: 92px; font-size: 19px; }
  .header-inner { gap: 14px; }
  .header-actions { gap: 8px; }
  .lang-switch { padding: 2px; border-radius: 9px; }
  .lang-switch a { min-width: 30px; padding: 4px 5px; font-size: 10.5px; }
}

/* На самых узких экранах в шапке остаётся монограмма и переключатель языка. */
@media (max-width: 400px) {
  .brand-text { display: none; }
}

/* Вопросы об аудите: доступны без JavaScript, в обеих темах. */
.faq-list { max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.faq-item p { margin: 16px 0 0; line-height: 1.75; }
.faq-links { margin-top: 28px; line-height: 1.8; }
