/* ============================================================
   ГенЛаб — dnk-profil.ru
   styles.css · Production
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Manrope:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --cream: #FAFAF7;
  --dark: #141412;
  --ink: #1C1C1A;
  --text: #2E2C28;
  --muted: #6E6860;
  --green: #2E6B4F;
  --green-dark: #1E4E38;
  --green-light: #EAF3EE;
  --amber: #C56E1A;
  --amber-light: #FDF4E8;
  --sand: #F0EAE0;
  --sand-2: #E6DDD0;
  --line: rgba(28,28,26,.10);
  --line-strong: rgba(28,28,26,.22);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  background: var(--cream);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Lora', serif;
  font-weight: 500;
  letter-spacing: -.015em;
  margin: 0;
  color: var(--ink);
  line-height: 1.2;
}
p { margin: 0; color: var(--text); }
ul { margin: 0; padding: 0; list-style: none; }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 44px; }
.section    { padding: 80px 0; }
.section-sm { padding: 52px 0; }
.section-xs { padding: 36px 0; }

/* ── EYEBROW ── */
.eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .18s;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-amber {
  background: var(--amber);
  color: #fff;
}
.btn-amber:hover { opacity: .9; }
.btn-lg { padding: 15px 28px; font-size: 15px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }
.btn svg { flex-shrink: 0; }

/* ── HEADER ── */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.sh-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  padding: 0 44px; height: 68px;
}
.sh-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Lora', serif; font-size: 19px; font-weight: 600;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.sh-logo .mark {
  width: 30px; height: 30px;
  background: var(--green);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; flex-shrink: 0;
}
.sh-logo-sub {
  color: #8a857e; font-family: 'Manrope', sans-serif;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
}
.sh-nav {
  display: flex; align-items: center; gap: 0;
  margin: 0 auto 0 8px;
}
.sh-nav a {
  padding: 0 14px; height: 68px;
  display: flex; align-items: center;
  font-size: 14px; font-weight: 500; color: var(--muted);
  text-decoration: none; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.sh-nav a:hover, .sh-nav a.active { color: var(--ink); border-bottom-color: var(--green); }
.sh-dropdown { position: relative; }
.sh-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 32px rgba(0,0,0,.1);
  min-width: 270px; padding: 8px 0; border-radius: var(--radius);
}
.sh-dropdown:hover .sh-dropdown-menu { display: block; }
.sh-dropdown-menu a {
  display: block; padding: 10px 20px; height: auto; border: none;
  font-size: 14px; color: var(--text);
}
.sh-dropdown-menu a:hover { background: var(--green-light); color: var(--green); }
.has-caret::after { content: ' ▾'; font-size: 10px; color: var(--muted); }
.sh-right {
  display: flex; align-items: center; gap: 16px; margin-left: auto;
}
.sh-phone {
  text-decoration: none;
  text-align: right;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.sh-phone small {
  display: block; font-size: 10px; color: var(--muted);
  font-weight: 400; letter-spacing: .06em; text-transform: uppercase;
}
.sh-burger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--ink); margin-left: auto;
}

/* ── MOBILE NAV ── */
.mobile-nav { display: none; }
@media (max-width: 767px) {
  .sh-nav, .sh-right { display: none; }
  .sh-burger { display: flex; }
  .mobile-nav {
    display: block; position: fixed; inset: 0; z-index: 200;
    pointer-events: none;
  }
  .mobile-nav.open { pointer-events: all; }
  .mobile-nav-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.45); opacity: 0;
    transition: opacity .25s;
  }
  .mobile-nav.open .mobile-nav-overlay { opacity: 1; }
  .mobile-nav-drawer {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: min(320px, 85vw);
    background: var(--cream); padding: 20px 24px;
    transform: translateX(100%); transition: transform .25s ease;
    overflow-y: auto;
  }
  .mobile-nav.open .mobile-nav-drawer { transform: translateX(0); }
  .mobile-nav-close {
    background: none; border: none; font-size: 24px; cursor: pointer;
    color: var(--ink); padding: 0; line-height: 1;
    display: flex; margin-left: auto;
  }
  .mobile-nav-drawer a {
    display: block; padding: 12px 0;
    font-size: 16px; font-weight: 500; color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav-drawer .section-label {
    font-family: 'JetBrains Mono', monospace; font-size: 10px;
    letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
    padding: 16px 0 4px;
  }
}

/* ── BREADCRUMBS ── */
.crumbs {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--muted);
  padding: 14px 0;
}
.crumbs a { color: var(--muted); text-decoration: underline; text-decoration-color: transparent; }
.crumbs a:hover { color: var(--green); text-decoration-color: var(--green); }
.crumbs .sep { color: var(--line-strong); }
.crumbs .cur { color: var(--text); }

/* ── HERO (home) ── */
.hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.1;
  max-width: 760px;
  margin-bottom: 20px;
}
.hero .lede {
  font-size: 17px; line-height: 1.65;
  color: var(--muted); max-width: 600px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.trust-chips {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.trust-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--green-light);
  border: 1px solid rgba(46,107,79,.15);
  border-radius: 20px;
  font-size: 12.5px; color: var(--green-dark); font-weight: 500;
}

/* ── SERVICE HERO ── */
.ph-service { padding: 48px 0 56px; }
.ph-service-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.ph-service h1 {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.12;
  margin-bottom: 18px;
  max-width: 680px;
}
.ph-service .lede {
  font-size: 16px; line-height: 1.65;
  color: var(--muted); margin-bottom: 28px;
  max-width: 600px;
}
.ph-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: sticky; top: 88px;
}
.price-big {
  font-family: 'Lora', serif;
  font-size: 36px; font-weight: 600;
  color: var(--ink); line-height: 1;
  margin-bottom: 6px;
}
.price-big em {
  font-style: normal;
  font-size: 16px; font-weight: 400;
  color: var(--muted); margin-right: 4px;
}
.ph-card .row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.ph-card .row .k { color: var(--muted); }
.ph-card .row .v { font-weight: 600; color: var(--ink); text-align: right; }
.ph-card .row:last-of-type { border-bottom: none; }
.kv-chip {
  display: inline-block; padding: 4px 10px;
  background: var(--sand); border-radius: 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
  color: var(--text);
}

/* ── SECTION HEAD ── */
.sec-head {
  display: flex; justify-content: space-between;
  align-items: flex-end; gap: 24px;
  margin-bottom: 40px;
}
.sec-head h2 {
  font-size: clamp(22px, 2.4vw, 34px);
  max-width: 640px;
}

/* ── PROCESS STEPS ── */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.step-card {
  padding: 28px 24px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .06em;
  color: var(--green); font-weight: 500;
  margin-bottom: 12px;
}
.step-card h3 { font-size: 17px; margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--muted); }

/* ── CHECKLIST ── */
.incl-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 36px; }
.incl-item { display: flex; gap: 14px; align-items: flex-start; }
.incl-check {
  width: 22px; height: 22px; flex-shrink: 0;
  background: var(--green-light);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--green); margin-top: 2px;
}
.incl-item h4 { font-size: 15px; font-family: 'Manrope', sans-serif; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.incl-item p { font-size: 13.5px; color: var(--muted); }

/* ── CARDS GRID (services / use-cases) ── */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.card {
  padding: 24px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card .num {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--muted); margin-bottom: 12px;
}
.card h3 { font-size: 16px; margin-bottom: 8px; }
.card p { font-size: 13.5px; color: var(--muted); }

/* ── STATS ROW ── */
.stats-row {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat .k {
  font-family: 'Lora', serif; font-size: 38px; font-weight: 600;
  color: var(--green); line-height: 1; margin-bottom: 6px;
}
.stat .l { font-size: 13px; color: var(--muted); }

/* ── PRICE TABLE ── */
.price-table {
  width: 100%; border-collapse: collapse; margin-top: 24px;
}
.price-table th {
  text-align: left; padding: 12px 16px;
  background: var(--sand); border-bottom: 2px solid var(--line-strong);
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace; color: var(--muted); font-weight: 500;
}
.price-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table td:last-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* ── FAQ ── */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; cursor: pointer; gap: 16px;
  font-size: 15px; font-weight: 600; color: var(--ink);
  user-select: none;
}
.faq-q .icon {
  flex-shrink: 0; width: 22px; height: 22px;
  border: 1.5px solid var(--line-strong); border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .2s, background .2s;
  color: var(--green);
}
.faq-item.open .icon { transform: rotate(45deg); background: var(--green-light); }
.faq-a {
  display: none; padding: 0 0 18px;
  font-size: 14px; line-height: 1.7; color: var(--muted);
}
.faq-item.open .faq-a { display: block; }

/* ── CTA BAND ── */
.cta-band {
  background: var(--green);
  padding: 72px 0;
  color: #fff;
}
.cta-band h2 {
  color: #fff; font-size: clamp(24px, 2.8vw, 38px);
  max-width: 680px; margin-bottom: 16px;
}
.cta-band p { color: rgba(255,255,255,.75); max-width: 560px; margin-bottom: 32px; }
.cta-band .btn-ghost {
  color: #fff; border-color: rgba(255,255,255,.4);
}
.cta-band .btn-ghost:hover { border-color: #fff; }

/* ── CONTACT FORM ── */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 12px;
}
.form-grid.full { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: .04em; }
.form-field input,
.form-field textarea,
.form-field select {
  padding: 11px 14px;
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: 'Manrope', sans-serif; font-size: 14px; color: var(--ink);
  transition: border-color .15s;
  width: 100%;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none; border-color: var(--green);
}
.form-field textarea { min-height: 90px; resize: vertical; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 10px; }
.form-success {
  display: none; padding: 24px;
  background: var(--green-light); border-radius: var(--radius);
  text-align: center;
}
.form-success.visible { display: block; }
.form-success h3 { color: var(--green); margin-bottom: 8px; font-size: 18px; }

/* ── TRUST SECTION ── */
.trust-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.trust-card {
  padding: 28px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.trust-card h3 { font-size: 16px; margin-bottom: 10px; }
.trust-card p { font-size: 14px; color: var(--muted); }

/* ── BLOG LAYOUT ── */
.blog-grid { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.article-body { font-size: 15.5px; line-height: 1.75; }
.article-body h2 { font-size: 24px; margin: 36px 0 14px; }
.article-body h3 { font-size: 18px; margin: 28px 0 10px; font-family: 'Manrope',sans-serif; font-weight: 700; }
.article-body p { margin-bottom: 16px; }
.article-body ul { padding-left: 20px; list-style: disc; margin-bottom: 16px; }
.article-body ul li { margin-bottom: 8px; }
.article-body .callout {
  background: var(--green-light); border-left: 3px solid var(--green);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}
.blog-sidebar { position: sticky; top: 88px; }
.sidebar-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; margin-bottom: 16px;
}
.sidebar-card h4 { font-size: 15px; margin-bottom: 12px; }
.sidebar-card ul li a {
  display: block; padding: 7px 0;
  font-size: 13.5px; color: var(--muted);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.sidebar-card ul li:last-child a { border-bottom: none; }
.sidebar-card ul li a:hover { color: var(--green); }

/* ── FOOTER ── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.65);
  padding: 56px 0 32px;
  margin-top: auto;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand .logo {
  font-family: 'Lora', serif; font-size: 18px; font-weight: 600;
  color: #fff; margin-bottom: 12px;
}
.footer-brand p { font-size: 13px; line-height: 1.6; max-width: 280px; }
.footer-col h4 {
  font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 13.5px; color: rgba(255,255,255,.65);
  transition: color .15s;
}
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

/* ── MOBILE STICKY CTA ── */
.mob-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--cream); border-top: 1px solid var(--line);
  padding: 12px 20px;
  z-index: 90;
}

/* ── SAND BG SECTION ── */
.bg-sand { background: var(--sand); }
.bg-green-light { background: var(--green-light); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .container { padding: 0 32px; }
  .sh-inner { padding: 0 32px; }
  .ph-service-grid { grid-template-columns: 1fr 290px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .container { padding: 0 20px; }
  .section { padding: 52px 0; }
  .section-sm { padding: 36px 0; }
  .ph-service-grid { grid-template-columns: 1fr; }
  .ph-card { position: static; }
  .steps { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .incl-list { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .mob-cta { display: flex; gap: 10px; }
  .mob-cta .btn { flex: 1; justify-content: center; }
  body { padding-bottom: 68px; }
  .hero { padding: 40px 0 44px; }
  .hero h1 { font-size: 30px; }
  .ph-service h1 { font-size: 26px; }
  .sec-head h2 { font-size: 22px; }
  .price-big { font-size: 28px; }
  .stat .k { font-size: 30px; }
  .sh-nav, .sh-right { display: none; }
  .sh-burger { display: flex; }
}
