/* ==========================================================================
   НЕОПЛАСТ — Design System v2
   Чистый, премиальный, современный. Архитектурная сдержанность,
   крупная типографика, много воздуха, реальная фотография.
   Акцент — фирменный teal (логотип NeoPlast). CTA — WhatsApp.
   ========================================================================== */

:root {
  /* Нейтральная тёплая палитра */
  --ink:        #14130f;   /* почти чёрный, тёплый */
  --ink-2:      #45433d;   /* вторичный текст */
  --muted:      #6a655c;   /* подписи — контраст ≥4.5:1 на белом (WCAG AA) */
  --line:       #e7e3da;   /* границы */
  --line-2:     #f0ece3;
  --paper:      #ffffff;
  --sand:       #f6f3ec;   /* тёплая подложка */
  --sand-2:     #efeae0;
  --night:      #15171a;   /* тёмные секции */

  /* Бренд — teal из логотипа */
  --teal:       #0f6f68;
  --teal-700:   #0b554f;
  --teal-50:    #e9f4f2;
  --teal-bright:#16a89c;
  --wa:         #25d366;
  --wa-700:     #1da851;
  --gold:       #b6894d;   /* тонкий премиальный штрих */

  --font:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Manrope", var(--font);

  --r:    16px;
  --r-sm: 10px;
  --r-lg: 26px;
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --sh-sm: 0 1px 2px rgba(20,19,15,.05), 0 2px 8px rgba(20,19,15,.05);
  --sh:    0 8px 24px rgba(20,19,15,.07), 0 2px 8px rgba(20,19,15,.05);
  --sh-lg: 0 24px 60px rgba(20,19,15,.16), 0 8px 24px rgba(20,19,15,.10);
  --ease:  cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font); font-size: clamp(1rem, .6vw + .9rem, 1.0625rem);
  line-height: 1.65; color: var(--ink-2); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration: none; }
ul, ol { padding-left: 1.2rem; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* Typography */
h1,h2,h3,h4 { font-family: var(--display); color: var(--ink); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 3rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); letter-spacing: -.02em; font-weight: 700; }
h4 { font-size: 1.0625rem; font-weight: 700; }
p { max-width: 68ch; }

.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .78rem;
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.eyebrow::before { content: ""; width: 1.75rem; height: 1.5px; background: var(--gold); }
.lead { font-size: clamp(1.05rem, 1.2vw, 1.25rem); color: var(--ink-2); line-height: 1.6; }

/* Layout */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--sand { background: var(--sand); }
.section--night { background: var(--night); color: #b3ada1; }
.section--night h2, .section--night h3, .section--night h4 { color: #fff; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.head { max-width: 60ch; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.head h2 { margin-top: .9rem; }
.head p { margin-top: 1.1rem; }
.head--center { margin-inline: auto; text-align: center; }
.head--center .eyebrow { justify-content: center; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.g2 { grid-template-columns: repeat(2,1fr); }
.g3 { grid-template-columns: repeat(3,1fr); }
.g4 { grid-template-columns: repeat(4,1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 960px){ .g3,.g4{grid-template-columns:repeat(2,1fr);} .split{grid-template-columns:1fr;} }
@media (max-width: 580px){ .g2,.g3,.g4{grid-template-columns:1fr;} }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s var(--ease), background .15s, box-shadow .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.15em; height: 1.15em; }
.btn--wa { background: var(--wa); color: #fff; box-shadow: var(--sh-sm); }
.btn--wa:hover { background: var(--wa-700); color: #fff; box-shadow: var(--sh); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.25); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; color: #fff; }
.btn--lg { padding: 1.1rem 2.1rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line-2); }
.header__bar { display: flex; align-items: center; gap: 1.5rem; height: 74px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display);
  font-weight: 800; font-size: 1.42rem; color: var(--ink); letter-spacing: -.02em; }
.brand__mark { width: auto; height: 38px; flex: none; }
.brand__name { color: #5b686b; }            /* «Plast» — графитово-серый, как в логотипе */
.brand__name b { color: #1f9d95; font-weight: inherit; }  /* «Neo» — фирменный teal */
.brand small { display: block; font-family: var(--font); font-size: .56rem; font-weight: 600;
  letter-spacing: .18em; color: var(--muted); text-transform: uppercase; margin-top: 1px; }
.nav { display: flex; align-items: center; gap: 1.35rem; margin-left: auto; }
.nav a { color: var(--ink-2); font-size: .92rem; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--teal); }
.nav a[aria-current="page"] { color: var(--teal); font-weight: 600; }
/* Dropdown «Услуги» */
.has-sub { position: relative; display: flex; align-items: center; }
.nav-trigger { display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; }
.nav-trigger svg { width: 13px; height: 13px; transition: transform .2s var(--ease); }
.has-sub::after { content: ""; position: absolute; top: 100%; left: -1rem; right: -1rem; height: 16px; }
.has-sub:hover .nav-trigger svg, .has-sub:focus-within .nav-trigger svg { transform: rotate(180deg); }
.sub { position: absolute; top: calc(100% + 12px); left: -.85rem; min-width: 258px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-lg); padding: .5rem;
  display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { padding: .65rem .85rem; border-radius: 8px; font-size: .92rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.sub a:hover { background: var(--sand); color: var(--teal); }
.header__cta { display: flex; align-items: center; gap: 1rem; }
.header__phone { font-family: var(--display); font-weight: 700; color: var(--ink); white-space: nowrap; }
.header__phone:hover { color: var(--teal); }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { content: ""; display: block; width: 20px; height: 2px;
  background: var(--ink); position: relative; transition: .2s; }
.burger span::before { position: absolute; top: -6px; } .burger span::after { position: absolute; top: 6px; }
@media (max-width: 1200px){
  .burger{ display: inline-flex; }
  .nav{ position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background:#fff; padding: .5rem var(--gutter) 1.5rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--sh); transform: translateY(-130%); transition: transform .28s var(--ease); margin: 0; }
  .nav.open{ transform: translateY(0); }
  .nav a{ padding: 1rem 0; border-bottom: 1px solid var(--line-2); font-size: 1.05rem; }
  /* Dropdown превращается в обычный список внутри мобильного меню */
  .has-sub{ flex-direction: column; align-items: stretch; }
  .nav-trigger{ font-weight: 700; color: var(--ink); }
  .nav-trigger svg{ display: none; }
  .sub{ position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; padding: 0; min-width: 0; }
  .sub a{ padding: .85rem 0 .85rem 1rem; font-size: 1rem; color: var(--ink-2); }
  .header__phone{ display: none; }
}

/* Hero */
.hero { background: var(--paper); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding-block: clamp(3rem, 6vw, 5.5rem); }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { max-width: 46ch; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero__note { margin-top: 1.1rem; font-size: .88rem; color: var(--muted); display: flex; align-items: flex-start; gap: .5rem; }
.hero__note svg { flex: none; margin-top: .2rem; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); }
.hero__badge { position: absolute; left: -1.5rem; bottom: 2rem; background: #fff; border-radius: var(--r);
  box-shadow: var(--sh); padding: 1rem 1.25rem; display: flex; align-items: center; gap: .85rem; max-width: 250px; }
.hero__badge b { font-family: var(--display); display: block; font-size: 1.5rem; color: var(--ink); line-height: 1; }
.hero__badge span { font-size: .8rem; color: var(--muted); }
.hero__badge .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--teal-50); color: var(--teal);
  display: grid; place-items: center; flex: none; }
@media (max-width: 960px){
  .hero__inner{ grid-template-columns: 1fr; }
  .hero__media img{ aspect-ratio: 16/11; }
  .hero__badge{ left: 1rem; }
}

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.trust > div { background: var(--paper); padding: 1.5rem 1.25rem; text-align: center; }
.trust b { font-family: var(--display); display: block; font-size: clamp(1.5rem,2.4vw,2rem); color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.trust span { font-size: .82rem; color: var(--muted); margin-top: .4rem; display: block; }
@media (max-width: 640px){ .trust{ grid-template-columns: repeat(2,1fr); } }

/* Service cards */
.svc { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1rem,1.6vw,1.25rem); }
@media (max-width: 960px){ .svc{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .svc{ grid-template-columns: 1fr; } }
.svc-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.75rem 1.6rem; display: flex; flex-direction: column; min-height: 100%;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: var(--line); }
.svc-card .ic { width: 50px; height: 50px; border-radius: 13px; background: var(--teal-50); color: var(--teal);
  display: grid; place-items: center; margin-bottom: 1.15rem; }
.svc-card .ic svg { width: 26px; height: 26px; }
.svc-card h3 { margin-bottom: .6rem; min-height: 2.2em; }
.svc-card p { font-size: .94rem; color: var(--ink-2); }
.svc-card .more { margin-top: 1.1rem; padding-top: 0; font-weight: 600; font-size: .9rem; color: var(--teal);
  display: inline-flex; align-items: center; gap: .35rem; }
.svc-card .more::after { content: "→"; transition: transform .2s var(--ease); }
.svc-card:hover .more::after { transform: translateX(4px); }
.svc-card[href]::after { content: ""; position: absolute; inset: 0; }
.svc-card .more { position: relative; z-index: 1; }

/* Media split (image + text) */
.media-split img { width: 100%; border-radius: var(--r-lg); object-fit: cover; box-shadow: var(--sh); aspect-ratio: 5/6; }
.media-split--wide img { aspect-ratio: 4/3; }
.feature-list { display: grid; gap: 1.3rem; margin-top: 1.75rem; }
.feature-list .f { display: flex; gap: .9rem; }
.feature-list .f .ic { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--teal-50);
  color: var(--teal); display: grid; place-items: center; }
.feature-list .f .ic svg { width: 22px; height: 22px; }
.feature-list .f h4 { margin-bottom: .25rem; }
.feature-list .f p { font-size: .92rem; }
.section--night .feature-list .f .ic { background: rgba(255,255,255,.07); color: var(--teal-bright); }
.section--night .feature-list .f p { color: #938d81; }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 1.5rem; }
.steps.g2 { grid-template-columns: repeat(2,1fr); }
@media (max-width: 700px){ .steps.g2{ grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 3.75rem; }
.step::before { counter-increment: s; content: "0" counter(s); position: absolute; left: 0; top: -.15rem;
  font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--teal); }
.step::after { content: ""; position: absolute; left: 2.4rem; top: .2rem; bottom: -1.5rem; width: 1px; background: var(--line); }
.step:last-child::after { display: none; }
.steps.g2 .step::after { display: none; }
.section--night .step::after { background: rgba(255,255,255,.12); }
.step h4 { margin-bottom: .3rem; }
.step p { font-size: .92rem; }

/* Portfolio */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(.75rem,1.2vw,1rem); }
.gallery figure { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: var(--sand-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 1.1rem .9rem;
  background: linear-gradient(transparent, rgba(10,12,12,.78)); color: #fff; font-size: .85rem; font-weight: 600; }
.gallery .big { grid-column: span 3; grid-row: span 2; }
.gallery .tall { grid-column: span 3; }
.gallery .wide { grid-column: span 3; }
@media (max-width: 760px){
  .gallery{ grid-template-columns: repeat(2,1fr); }
  .gallery .big,.gallery .tall,.gallery .wide{ grid-column: span 1; grid-row: auto; aspect-ratio: 4/3; }
}

/* FAQ */
.faq { display: grid; gap: .75rem; max-width: 840px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1.25rem 1.4rem; font-family: var(--display);
  font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--teal); font-weight: 400; flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { border-bottom: 1px solid var(--line-2); }
.faq .body { padding: 1.1rem 1.4rem 1.35rem; font-size: .95rem; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line-2); }
th { background: var(--sand); color: var(--ink); font-weight: 700; font-family: var(--display); white-space: nowrap; }
tr:last-child td { border-bottom: 0; } td strong { color: var(--ink); }

/* CTA band */
.cta { position: relative; border-radius: var(--r-lg); overflow: hidden; color: #fff;
  padding: clamp(2.5rem,6vw,4.5rem); }
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(11,40,38,.92), rgba(15,111,104,.82)); z-index: 1; }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta__in { position: relative; z-index: 2; max-width: 620px; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.85); margin-top: 1rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* Callout */
.callout { background: var(--teal-50); border-left: 3px solid var(--teal); padding: 1.15rem 1.35rem;
  border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .95rem; color: var(--ink-2); }

/* Prose */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.2rem; }
.prose h2 { margin-top: 2.75rem; } .prose h3 { margin-top: 1.85rem; }
.prose ul, .prose ol { display: grid; gap: .55rem; }
.prose figure { margin-block: 2rem; } .prose figure img { border-radius: var(--r); box-shadow: var(--sh); }
.prose figcaption { font-size: .82rem; color: var(--muted); margin-top: .6rem; text-align: center; }

/* Crumbs / tags */
.crumbs { font-size: .82rem; color: var(--muted); padding-block: 1.1rem; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--teal); }
.crumbs span { margin-inline: .45rem; }
.tag { display: inline-block; font-size: .76rem; font-weight: 700; color: var(--teal);
  background: var(--teal-50); padding: .3rem .75rem; border-radius: 999px; letter-spacing: .02em; }

/* Price cards */
.price { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
@media (max-width: 880px){ .price{ grid-template-columns: 1fr; } }
.pc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.85rem; display: flex; flex-direction: column; }
.pc--hot { border-color: var(--teal); box-shadow: var(--sh); position: relative; }
.pc--hot::before { content: "Чаще выбирают"; position: absolute; top: -12px; left: 1.85rem; background: var(--teal);
  color: #fff; font-size: .74rem; font-weight: 700; padding: .3rem .8rem; border-radius: 999px; }
.pc h3 { margin: .6rem 0 .25rem; } .pc .amt { font-family: var(--display); font-size: 1.6rem; color: var(--ink); font-weight: 800; margin: .4rem 0; }
.pc .amt small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.pc ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .65rem; }
.pc li { display: flex; gap: .6rem; font-size: .92rem; } .pc li::before { content: "✓"; color: var(--teal); font-weight: 800; flex: none; }
.pc .btn { margin-top: auto; }

/* Footer */
.footer { background: var(--night); color: #8f897d; padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.footer a { color: #c5bfb3; } .footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 2rem; }
.footer__grid h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.1rem; }
.footer__grid ul { list-style: none; padding: 0; display: grid; gap: .65rem; font-size: .92rem; }
.footer .brand span { color: #fff; }
.footer .brand__name b { color: #46c7bf; }  /* «Neo» teal на тёмном подвале */
.footer__about { font-size: .92rem; margin-top: 1rem; max-width: 34ch; }
.footer__contacts { font-size: .92rem; display: grid; gap: .7rem; }
.footer__contacts b { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2.75rem; padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .82rem; }
@media (max-width: 880px){ .footer__grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer__grid{ grid-template-columns: 1fr; } }

/* Floating WhatsApp */
.fab { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; }
.fab a { display: inline-flex; align-items: center; gap: .6rem; background: var(--wa); color: #fff;
  padding: .85rem 1.25rem .85rem .9rem; border-radius: 999px; box-shadow: var(--sh-lg); font-weight: 600; font-size: .95rem;
  transition: transform .15s var(--ease); }
.fab a:hover { transform: translateY(-2px); color: #fff; }
.fab a svg { width: 26px; height: 26px; flex: none; }
@media (max-width: 560px){ .fab a span { display: none; } .fab a { padding: .9rem; } }

/* Skip link (a11y) */
.skip { position: absolute; left: 1rem; top: -60px; z-index: 100; background: var(--ink); color: #fff;
  padding: .7rem 1.1rem; border-radius: 0 0 var(--r-sm) var(--r-sm); font-weight: 600; transition: top .15s var(--ease); }
.skip:focus { top: 0; color: #fff; }

/* Guarantees */
.guar { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(1rem,1.6vw,1.25rem); }
@media (max-width: 880px){ .guar{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px){ .guar{ grid-template-columns: 1fr; } }
.guar .g { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem 1.4rem; }
.guar .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-50); color: var(--teal);
  display: grid; place-items: center; margin-bottom: 1rem; }
.guar .ic svg { width: 24px; height: 24px; }
.guar h4 { margin-bottom: .35rem; }
.guar p { font-size: .9rem; color: var(--ink-2); }

/* Social proof / reviews */
.proof { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
@media (max-width: 880px){ .proof{ grid-template-columns: 1fr; } }
.proof__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.proof__stats > div { background: var(--paper); padding: 1.4rem; }
.proof__stats b { font-family: var(--display); font-size: clamp(1.6rem,2.4vw,2.1rem); color: var(--ink); display: block; line-height: 1; }
.proof__stats span { font-size: .85rem; color: var(--muted); margin-top: .4rem; display: block; }
.proof__media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh); }
.proof__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ig-badge { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .92rem;
  color: var(--teal); }

/* Key facts (GEO — легко цитируется ИИ) */
.facts { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.facts dl { margin: 0; }
.facts .row { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; padding: 1rem 1.5rem; border-top: 1px solid var(--line-2); }
.facts .row:first-child { border-top: 0; }
.facts dt { color: var(--muted); font-size: .92rem; margin: 0; }
.facts dd { color: var(--ink); font-weight: 600; margin: 0; }
@media (max-width: 600px){ .facts .row{ grid-template-columns: 1fr; gap: .15rem; } }

/* About page */
.about-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
@media (max-width: 880px){ .about-hero{ grid-template-columns: 1fr; } }
.about-hero img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sh-lg); }

/* Utils */
.center { text-align: center; }
.muted { color: var(--muted); }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ * { animation-duration: .001ms !important; transition: none !important; scroll-behavior: auto !important; } .reveal{opacity:1;transform:none;} }

/* ===== База знаний — каталог ===== */
.kb-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.kb-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .95rem; border: 1px solid var(--line);
  border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--ink-2); background: var(--paper);
  transition: border-color .15s var(--ease), color .15s var(--ease); white-space: nowrap; }
.kb-chip:hover { border-color: var(--teal); color: var(--teal); }
.kb-chip b { color: var(--teal); font-weight: 700; font-size: .82rem; }
.kb-cluster { margin-top: clamp(2.5rem, 5vw, 3.5rem); scroll-margin-top: 92px; }
.kb-cluster:first-of-type { margin-top: 0; }
.kb-cluster__head { display: flex; align-items: baseline; gap: .9rem; margin-bottom: 1.5rem;
  padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.kb-cluster__head h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.kb-cluster__head span { font-size: .85rem; color: var(--muted); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 1.6vw, 1.25rem); }
@media (max-width: 920px){ .post-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px){ .post-grid{ grid-template-columns: 1fr; } }
.post-card { position: relative; display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem 1.4rem; min-height: 100%;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.post-card .tag { margin-bottom: .8rem; }
.post-card h3 { font-size: 1.12rem; line-height: 1.3; margin-bottom: .5rem; }
.post-card p { font-size: .9rem; color: var(--ink-2); margin-bottom: 1rem; }
.post-card .more { margin-top: auto; font-weight: 600; font-size: .88rem; color: var(--teal); display: inline-flex; gap: .35rem; align-items: center; }
.post-card .more::after { content: "→"; transition: transform .2s var(--ease); }
.post-card:hover .more::after { transform: translateX(4px); }
.post-card::after { content: ""; position: absolute; inset: 0; }
.post-card .more { position: relative; z-index: 1; }

/* ===== Статья ===== */
.article { max-width: 800px; margin-inline: auto; }
.article__head { margin-bottom: 2rem; }
.article__head h1 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); margin: .8rem 0 1rem; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem;
  font-size: .85rem; color: var(--muted); padding-top: 1rem; border-top: 1px solid var(--line); }
.article__meta .author { color: var(--ink); font-weight: 600; }
.article__meta .author::before { content: "✎ "; color: var(--teal); }
.article__lead { font-size: clamp(1.05rem, 1.2vw, 1.2rem); color: var(--ink-2); line-height: 1.6; margin: 1.25rem 0 0; }
.tldr { background: var(--teal-50); border: 1px solid #d6ebe8; border-radius: var(--r); padding: 1.4rem 1.6rem; margin: 2rem 0; }
.tldr h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-700); margin-bottom: .8rem; }
.tldr ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .5rem; }
.tldr li { font-size: .95rem; color: var(--ink-2); }
.toc { background: var(--sand); border-radius: var(--r); padding: 1.3rem 1.5rem; margin: 2rem 0; font-size: .95rem; }
.toc strong { display: block; margin-bottom: .6rem; color: var(--ink); }
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.toc a { color: var(--ink-2); } .toc a:hover { color: var(--teal); }
.article__cta { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(1.75rem,4vw,2.5rem); margin-top: 2.75rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.article__cta h3 { color: #fff; font-size: 1.3rem; }
.article__cta p { color: #b3ada1; font-size: .92rem; margin-top: .35rem; max-width: 46ch; }
.article__cta .btn--ghost { border-color: rgba(255,255,255,.25); color: #fff; }
.article__cta .btn--ghost:hover { border-color: #fff; }
.prose table { margin-block: .5rem; }
.prose .lead-q { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
