/*
Theme Name: Светленко — маркетолог
Theme URI: https://sd-direct.ru
Author: Дмитрий Светленко
Description: Лёгкая тема сайта маркетолога. Главная собрана как поисковое объявление. Все тексты главной редактируются в «Внешний вид → Настроить → Тексты сайта», статьи — в «Записях».
Version: 3.2.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: svetlenko
*/

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face{font-family:"Geologica";font-style:normal;font-weight:600;font-display:swap;src:url(assets/fonts/geologica-cyrillic-600-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Geologica";font-style:normal;font-weight:600;font-display:swap;src:url(assets/fonts/geologica-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+20BD,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Geologica";font-style:normal;font-weight:700;font-display:swap;src:url(assets/fonts/geologica-cyrillic-700-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Geologica";font-style:normal;font-weight:700;font-display:swap;src:url(assets/fonts/geologica-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+20BD,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/golos-text-cyrillic-400-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/golos-text-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+20BD,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:500;font-display:swap;src:url(assets/fonts/golos-text-cyrillic-500-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:500;font-display:swap;src:url(assets/fonts/golos-text-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+20BD,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:600;font-display:swap;src:url(assets/fonts/golos-text-cyrillic-600-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:600;font-display:swap;src:url(assets/fonts/golos-text-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+20BD,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:700;font-display:swap;src:url(assets/fonts/golos-text-cyrillic-700-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:700;font-display:swap;src:url(assets/fonts/golos-text-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+20BD,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---------- Tokens ---------- */
:root{
  --bg:#FFFFFF; --mist:#F1F3F6; --mist-2:#E4E8EE;
  --ink:#111418; --ink-2:#262B33; --ink-3:#3B424D; --muted:#5A6270;
  --line:#DDE1E7; --line-2:#D3D8DF; --rail:#C6CDD8;
  --accent:#2338D6; --accent-hover:#16239A; --marker:#FFDD55;
  --f-display:"Geologica","Segoe UI",system-ui,sans-serif;
  --f-body:"Golos Text","Segoe UI",system-ui,-apple-system,sans-serif;
  --wrap:1200px; --pad:32px; --sec:96px;
}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent)}
a:hover{color:var(--accent-hover)}
h1,h2,h3{margin:0;text-wrap:balance}
p{margin:0;text-wrap:pretty}
ul,ol{margin:0;padding:0;list-style:none}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:6px}
.skip-link{position:absolute;left:-9999px;top:8px;z-index:100;background:var(--ink);color:#fff;padding:10px 16px;border-radius:10px}
.skip-link:focus{left:8px}
.nowrap{white-space:nowrap}
.wrap{max-width:var(--wrap);margin:0 auto;padding-left:var(--pad);padding-right:var(--pad)}
.band-mist{background:var(--mist);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.eyebrow{font-size:15px;font-weight:600;color:var(--accent)}
.h2{font-family:var(--f-display);font-weight:700;font-size:42px;line-height:1.1;letter-spacing:-.02em}
.h2--sm{font-size:30px;line-height:1.15}
.lead{font-size:18px;line-height:1.6;color:var(--ink-2)}
.muted{color:var(--muted)}
.inline-head{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}
.inline-head span{font-size:16px;color:var(--ink-3)}
.marker{background:var(--marker);padding:0 4px;border-radius:3px;white-space:nowrap}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 24px;border-radius:14px;font-weight:700;font-size:16px;text-decoration:none;white-space:nowrap;border:1.5px solid transparent;transition:background-color .15s,color .15s,border-color .15s}
.btn--lg{min-height:56px;padding:0 28px;font-size:17px}
.btn--sm{min-height:44px;padding:0 18px;font-size:15px;font-weight:600;border-radius:12px}
.btn--accent{background:var(--accent);color:#fff}
.btn--accent:hover{background:var(--accent-hover);color:#fff}
.btn--line{border-color:var(--line);color:var(--ink);background:#fff}
.btn--line:hover{border-color:var(--ink);color:var(--ink)}
.icon-btn{width:44px;height:44px;border-radius:12px;border:1.5px solid var(--line);background:#fff;display:inline-flex;align-items:center;justify-content:center;color:var(--ink)}

/* ---------- Header ---------- */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.admin-bar .site-header{top:32px}
.site-header__row{height:76px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.brand{display:flex;flex-direction:column;gap:2px;text-decoration:none;color:var(--ink)}
.brand:hover{color:var(--ink)}
.brand__name{font-family:var(--f-display);font-weight:700;font-size:18px;letter-spacing:-.01em;white-space:nowrap}
.brand__tag{font-size:13px;color:var(--muted);white-space:nowrap}
.nav{display:flex;gap:26px;font-size:15px;font-weight:500}
.nav a{text-decoration:none;color:var(--ink);white-space:nowrap}
.nav a:hover{color:var(--accent)}
.header-actions{display:flex;gap:10px;align-items:center}
.header-actions > .icon-btn{display:none}
.nav-mobile{display:none;position:relative}
.nav-mobile summary{list-style:none;cursor:pointer}
.nav-mobile summary::-webkit-details-marker{display:none}
.nav-mobile__panel{position:absolute;right:0;top:54px;width:min(300px,88vw);background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px;display:flex;flex-direction:column;box-shadow:0 18px 40px rgba(17,20,24,.12)}
.nav-mobile__panel a{padding:12px 14px;border-radius:10px;text-decoration:none;font-weight:600;color:var(--ink)}
.nav-mobile__panel a:hover{background:var(--mist)}
.nav-mobile__panel .btn{margin-top:6px;color:#fff}

/* ---------- Hero: search + ad ---------- */
.hero{padding-top:72px;padding-bottom:88px;display:flex;flex-direction:column;gap:36px}
.search{display:flex;align-items:center;gap:16px;height:72px;padding:0 24px;border:1.5px solid var(--ink);border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(17,20,24,.06)}
.search svg{flex-shrink:0}
.search__hint{font-size:14px;color:var(--muted);white-space:nowrap}
.qwrap{position:relative;height:30px;flex:1;overflow:hidden;font-size:22px;line-height:30px;min-width:0}
.q{position:absolute;left:0;top:0;white-space:nowrap;opacity:0;animation:qcycle 16s infinite}
.q:nth-child(2){animation-delay:4s}.q:nth-child(3){animation-delay:8s}.q:nth-child(4){animation-delay:12s}
.q:nth-child(5){animation-delay:16s}
@keyframes qcycle{0%{opacity:0;transform:translateY(10px)}4%,21%{opacity:1;transform:none}25%,100%{opacity:0;transform:translateY(-10px)}}
.caret{display:inline-block;width:2px;height:24px;background:var(--ink);margin-left:3px;vertical-align:-4px;animation:blink 1s steps(1) infinite}
@keyframes blink{50%{opacity:0}}
.hero__grid{display:grid;grid-template-columns:8fr 4fr;gap:56px;align-items:start}
.ad{display:flex;flex-direction:column;gap:18px}
.ad__meta{display:flex;align-items:center;gap:10px;font-size:15px}
.ad__label{padding:3px 8px;border-radius:6px;border:1px solid var(--ink);font-size:12px;font-weight:700;letter-spacing:.02em}
.ad__domain{font-weight:600}
.ad__title{font-family:var(--f-display);font-weight:700;font-size:64px;line-height:1.04;letter-spacing:-.025em;color:var(--accent)}
.ad__text{font-size:21px;line-height:1.55;color:var(--ink-2);max-width:780px}
.sitelinks{display:flex;flex-wrap:wrap;gap:10px 28px;font-size:18px;font-weight:500}
.sitelinks a{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.ad__ext{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:15px;color:var(--muted)}
.ad__actions{display:flex;gap:14px;flex-wrap:wrap;padding-top:10px}
.notes{display:flex;flex-direction:column;gap:22px;padding-top:44px}
.notes__title{font-size:14px;font-weight:600;color:var(--muted)}
.note{display:flex;gap:12px;align-items:flex-start;padding-top:16px;border-top:1px solid var(--line)}
.note svg{flex-shrink:0;margin-top:2px}
.note p{font-size:15px;line-height:1.5;color:var(--ink-2)}

/* ---------- About ---------- */
.about{padding-top:var(--sec);padding-bottom:var(--sec);display:grid;grid-template-columns:5fr 7fr;grid-template-areas:"photo head" "photo body";grid-template-rows:auto 1fr;gap:0 64px;align-items:start}
.about__photo{grid-area:photo;aspect-ratio:4/5;border-radius:24px;overflow:hidden;background:var(--mist-2)}
.about__photo img{width:100%;height:100%;object-fit:cover}
.about__photo--empty{border:1.5px dashed #AEB6C2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--muted);font-size:15px;font-weight:600}
.about__head{grid-area:head;display:flex;flex-direction:column;gap:8px;margin-bottom:24px}
.about__name{font-family:var(--f-display);font-weight:700;font-size:44px;line-height:1.08;letter-spacing:-.02em}
.about__role{font-size:20px;font-weight:600;color:var(--accent)}
.about__body{grid-area:body;display:flex;flex-direction:column;gap:22px}
.about__text{display:flex;flex-direction:column;gap:16px;font-size:20px;line-height:1.6;color:var(--ink-2)}
.about__links{display:flex;gap:28px;flex-wrap:wrap;font-size:17px;font-weight:600}

/* ---------- Services ---------- */
.services{padding-top:var(--sec);padding-bottom:var(--sec);display:flex;flex-direction:column;gap:40px}
.svc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.svc{border:1.5px solid var(--ink);border-radius:24px;padding:36px;display:flex;flex-direction:column;gap:22px}
.svc__top{display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap}
.svc__title{font-family:var(--f-display);font-size:30px;line-height:1.1;font-weight:700;letter-spacing:-.01em}
.svc__price{font-family:var(--f-display);font-size:20px;font-weight:700;color:var(--accent);white-space:nowrap}
.svc__label{font-size:14px;font-weight:600;color:var(--muted)}
.svc__list{display:flex;flex-direction:column;gap:12px;flex:1}
.svc__list li{display:flex;gap:12px;align-items:flex-start;font-size:16px;line-height:1.5;color:var(--ink-2)}
.svc__list svg{flex-shrink:0;margin-top:2px}
.svc .btn{align-self:flex-start}

/* ---------- Process (stepper) ---------- */
.process{padding-top:56px;padding-bottom:56px;display:flex;flex-direction:column;gap:28px}
.steps{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px}
.steps::before{content:"";position:absolute;left:18px;right:18px;top:17px;height:2px;background:var(--rail)}
.step{position:relative;display:flex;flex-direction:column;gap:10px}
.step__n{width:36px;height:36px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-family:var(--f-display);font-weight:700;font-size:15px;box-shadow:0 0 0 6px var(--mist)}
.step__title{font-family:var(--f-display);font-size:18px;font-weight:600}
.step__text{font-size:14px;line-height:1.45;color:var(--ink-3)}

/* ---------- Niches (accordion) ---------- */
.niches{padding-top:56px;padding-bottom:56px;display:flex;flex-direction:column;gap:20px}
.niche{border-top:1px solid var(--line)}
.niche:last-child{border-bottom:1px solid var(--line)}
.niche summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:12px 0}
.niche summary::-webkit-details-marker{display:none}
.niche__title{font-family:var(--f-display);font-size:18px;font-weight:700}
.niche__count{font-size:14px;font-weight:600;color:var(--accent);margin-left:10px}
.niche summary svg{flex-shrink:0;transition:transform .15s}
.niche[open] summary svg{transform:rotate(180deg)}
.niche p{padding:0 40px 16px 0;font-size:15px;line-height:1.6;color:var(--ink-2)}

/* ---------- Terms ---------- */
.terms{padding-top:var(--sec);padding-bottom:var(--sec);display:flex;flex-direction:column;gap:48px}
.split{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:end}
.facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.fact{border-top:2px solid var(--ink);padding-top:16px;display:flex;flex-direction:column;gap:6px}
.fact strong{font-size:17px}
.fact span{font-size:15px;line-height:1.55;color:var(--ink-3)}
.terms__bottom{display:grid;grid-template-columns:7fr 5fr;gap:20px;align-items:stretch}
.kp{background:var(--mist);border-radius:20px;padding:32px;display:flex;flex-direction:column;gap:16px}
.box-title{font-family:var(--f-display);font-size:22px;font-weight:700}
.kp__lead{font-size:15px;line-height:1.55;color:var(--ink-3)}
.kp__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}
.kp__list li{display:flex;gap:12px;align-items:baseline;padding:12px 0;border-top:1px solid var(--line-2)}
.kp__list em{font-style:normal;font-family:var(--f-display);font-size:14px;font-weight:700;color:var(--accent)}
.kp__list strong{display:block;font-size:16px}
.kp__list span{font-size:14px;color:var(--ink-3)}
.pay{border:1.5px solid var(--ink);border-radius:20px;padding:32px;display:flex;flex-direction:column;gap:16px}
.pay__row{display:flex;flex-direction:column;gap:4px;padding-top:14px;border-top:1px solid var(--line)}
.pay__row span{font-size:14px;color:var(--muted)}
.pay__row p{font-size:16px;line-height:1.5}

/* ---------- Contact ---------- */
.contact{padding-top:var(--sec);padding-bottom:var(--sec);display:grid;grid-template-columns:5fr 7fr;gap:64px;align-items:start}
.contact__title{font-family:var(--f-display);font-weight:700;font-size:40px;line-height:1.1;letter-spacing:-.02em}
.brief{display:flex;flex-direction:column;gap:10px;margin-top:22px}
.brief strong{font-size:15px}
.brief ul{list-style:disc;padding-left:20px;display:flex;flex-direction:column;gap:6px;font-size:16px;line-height:1.5;color:var(--ink-2)}
.contact__side{display:flex;flex-direction:column;gap:20px}
.search--sm{height:60px;padding:0 20px;font-size:19px;box-shadow:none;border-radius:16px}
.result{display:flex;flex-direction:column;gap:6px;padding:22px 24px;background:#fff;border:1px solid var(--line);border-radius:16px;text-decoration:none}
.result:hover{border-color:var(--accent)}
.result__url{font-size:14px;color:var(--ink-3)}
.result__title{font-family:var(--f-display);font-size:26px;font-weight:600;color:var(--accent)}
.result__text{font-size:15px;color:var(--ink-2)}
.contact__note{font-size:14px;color:var(--muted)}

/* ---------- Footer ---------- */
.site-footer{border-top:1px solid var(--line)}
.site-footer__row{padding-top:40px;padding-bottom:40px;display:flex;justify-content:space-between;gap:32px;flex-wrap:wrap;font-size:14px;color:var(--ink-3)}
.site-footer__name{font-family:var(--f-display);font-weight:700;font-size:16px;color:var(--ink)}
.site-footer nav{display:flex;gap:24px;flex-wrap:wrap;align-items:flex-start}
.site-footer a{text-decoration:none}

/* ---------- Inner pages: blog, cases, pages ---------- */
.page-head{padding-top:64px;padding-bottom:36px;display:flex;flex-direction:column;gap:16px;max-width:900px}
.page-title{font-family:var(--f-display);font-size:48px;line-height:1.1;font-weight:700;letter-spacing:-.02em}
.crumbs{font-size:14px;color:var(--muted)}
.crumbs a{text-decoration:none}
.posts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding-bottom:var(--sec)}
.post-card{border:1px solid var(--line);border-radius:20px;overflow:hidden;display:flex;flex-direction:column;background:#fff}
.post-card__img{aspect-ratio:16/10;background:var(--mist)}
.post-card__img img{width:100%;height:100%;object-fit:cover}
.post-card__body{padding:24px;display:flex;flex-direction:column;gap:10px;flex:1}
.post-card__date{font-size:13px;color:var(--muted)}
.post-card h2{font-family:var(--f-display);font-size:20px;line-height:1.3;font-weight:600}
.post-card h2 a{text-decoration:none;color:var(--ink)}
.post-card p{font-size:15px;color:var(--ink-3)}
.pagination{padding-bottom:var(--sec);display:flex;gap:8px;flex-wrap:wrap}
.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 14px;border-radius:12px;border:1px solid var(--line);text-decoration:none;font-weight:600;color:var(--ink)}
.pagination .current{background:var(--ink);color:#fff;border-color:var(--ink)}
.article{max-width:760px;margin:0 auto;padding-bottom:var(--sec)}
.article__cover{margin-bottom:40px;border-radius:20px;overflow:hidden}
.prose{font-size:18px;line-height:1.7}
.prose>*+*{margin-top:1.1em}
.prose h2{font-family:var(--f-display);font-size:30px;line-height:1.2;margin-top:1.8em}
.prose h3{font-family:var(--f-display);font-size:22px;line-height:1.3;margin-top:1.6em}
.prose ul,.prose ol{padding-left:1.3em}
.prose ul{list-style:disc}.prose ol{list-style:decimal}
.prose li+li{margin-top:.4em}
.prose a{text-underline-offset:3px}
.prose blockquote{margin:1.6em 0;padding:4px 0 4px 20px;border-left:3px solid var(--marker);color:var(--ink-2)}
.prose img,.prose figure{border-radius:16px;margin-left:0;margin-right:0}
.prose figcaption{font-size:14px;color:var(--muted);margin-top:8px}
.prose table{width:100%;border-collapse:collapse;font-size:16px;display:block;overflow-x:auto}
.prose th,.prose td{border-bottom:1px solid var(--line);padding:10px 12px;text-align:left}
.prose code{font-size:.9em;background:var(--mist);padding:2px 6px;border-radius:6px}
.case-card{border:1px solid var(--line);border-radius:20px;padding:28px;display:flex;flex-direction:column;gap:14px}
.case-card h3{font-family:var(--f-display);font-size:24px;line-height:1.25;font-weight:600}
.case-card h3 a{text-decoration:none;color:var(--ink)}
.case-tags{display:flex;gap:10px;flex-wrap:wrap;font-size:14px}
.case-tags b{color:var(--accent)}
.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line)}
.metric{padding-top:14px;display:flex;flex-direction:column;gap:2px}
.metric__v{font-family:var(--f-display);font-size:24px;font-weight:700}
.metric__l{font-size:13px;color:var(--muted)}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.article-cta{margin-top:56px;background:var(--mist);border-radius:20px;padding:28px;display:flex;flex-direction:column;gap:14px}
.article-cta p{font-size:18px;font-weight:600}
.article-cta__btns{display:flex;flex-wrap:wrap;gap:12px}
.empty{padding:40px;border:1.5px dashed var(--line-2);border-radius:20px;color:var(--ink-3);margin-bottom:var(--sec)}
.alignwide,.alignfull{max-width:100%}

/* ---------- Responsive ---------- */
@media (max-width:1180px){
  .ad__title{font-size:54px}
  .nav{gap:18px;font-size:14px}
}
@media (max-width:1024px){
  :root{--sec:72px}
  .nav,.header-actions > .btn{display:none}
  .header-actions > .icon-btn{display:inline-flex}
  .nav-mobile{display:block}
  .hero__grid,.split,.terms__bottom,.contact{grid-template-columns:1fr}
  .notes{padding-top:0}
  .about{grid-template-columns:1fr;grid-template-areas:"head" "photo" "body";gap:0}
  .about__photo{max-width:440px;margin-bottom:24px}
  .facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .posts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .h2{font-size:36px}
}
@media (max-width:720px){
  :root{--pad:20px;--sec:48px}
  body{font-size:16px}
  .site-header__row{height:64px;gap:12px}
  .brand__name{font-size:17px}
  .brand__tag{font-size:12px}
  .hero{padding-top:28px;padding-bottom:48px;gap:22px}
  .search{height:56px;padding:0 16px;gap:12px;border-radius:14px}
  .search__hint{display:none}
  .qwrap{font-size:17px;height:26px;line-height:26px}
  .caret{height:20px}
  .ad{gap:14px}
  .ad__title{font-size:38px;line-height:1.06}
  .ad__text{font-size:17px}
  .sitelinks{font-size:16px;gap:8px 18px}
  .ad__ext{font-size:14px}
  .ad__actions{flex-direction:column}
  .ad__actions .btn{width:100%}
  .notes{background:var(--mist);border-radius:16px;padding:18px;gap:12px}
  .notes__title{font-size:13px}
  .note{border-top:0;padding-top:0}
  .note p{font-size:14px}
  .about__name{font-size:30px}
  .about__role{font-size:17px}
  .about__photo{max-width:none}
  .about__text{font-size:17px}
  .about__links{flex-direction:column;gap:10px;font-size:16px}
  .h2{font-size:28px;line-height:1.12}
  .h2--sm{font-size:24px}
  .services{gap:20px}
  .svc-grid{grid-template-columns:1fr}
  .svc{padding:22px;border-radius:20px;gap:14px}
  .svc__title{font-size:23px}
  .svc__price{font-size:19px}
  .svc__list li{font-size:15px}
  .svc .btn{align-self:stretch}
  .process{padding-top:36px;padding-bottom:36px;gap:16px}
  .inline-head span{display:none}
  .steps{grid-template-columns:1fr;gap:0}
  .steps::before{display:none}
  .step{display:grid;grid-template-columns:40px 1fr;column-gap:0;row-gap:1px;padding-bottom:12px}
  .step::after{content:"";position:absolute;left:13px;top:30px;bottom:2px;width:2px;background:var(--rail)}
  .step:last-child::after{display:none}
  .step__n{width:28px;height:28px;font-size:13px;grid-row:1/3;box-shadow:none}
  .step__title{font-size:16px;padding-top:3px;grid-column:2}
  .step__text{grid-column:2}
  .niches{padding-top:36px;padding-bottom:36px;gap:12px}
  .niche summary{min-height:50px;padding:10px 0}
  .niche__title{font-size:16px}
  .niche__count{font-size:13px}
  .niche p{padding:0 0 14px;font-size:14px}
  .terms{gap:20px}
  .split{gap:14px}
  .facts{gap:18px 14px}
  .fact strong{font-size:15px}
  .fact span{font-size:13px}
  .kp,.pay{padding:20px;border-radius:18px}
  .box-title{font-size:19px}
  .kp__list{grid-template-columns:1fr}
  .contact{gap:18px}
  .contact__title{font-size:28px}
  .search--sm{height:52px;font-size:16px}
  .result{padding:18px}
  .result__title{font-size:21px}
  .site-footer__row{flex-direction:column;gap:14px;padding-top:28px;padding-bottom:36px}
  .site-footer nav{flex-direction:column;gap:10px}
  .page-head{padding-top:32px}
  .page-title{font-size:clamp(28px,8vw,36px)}
  .posts,.grid-2{grid-template-columns:1fr}
  .prose{font-size:17px}
  .prose h2{font-size:24px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.q{animation:none}.q:first-child{opacity:1}.caret{animation:none}*{transition:none!important}}

/* ================= v3: страницы услуг ================= */
.crumbs-bar{padding-top:20px;font-size:14px;color:var(--muted);display:flex;gap:8px;flex-wrap:wrap}
.crumbs-bar a{color:var(--muted);text-decoration:none}
.crumbs-bar a:hover{color:var(--accent)}
.hero--inner{padding-top:36px}
.nav a[aria-current="page"]{color:var(--accent)}
.about-card{margin-top:44px;background:var(--mist);border-radius:20px;padding:24px;display:flex;flex-direction:column;gap:16px}
.about-card__label{font-size:14px;font-weight:600;color:var(--muted)}
.about-card__who{display:flex;align-items:center;gap:14px}
.about-card__avatar{width:64px;height:64px;border-radius:50%;overflow:hidden;flex-shrink:0;background:var(--mist-2);display:flex;align-items:center;justify-content:center}
.about-card__avatar img{width:100%;height:100%;object-fit:cover}
.about-card__avatar--empty{border:1.5px dashed #AEB6C2}
.about-card__names{display:flex;flex-direction:column;gap:2px}
.about-card__names strong{font-family:var(--f-display);font-size:18px}
.about-card__names span{font-size:14px;font-weight:600;color:var(--accent)}
.about-card p{font-size:15px;line-height:1.55;color:var(--ink-2)}
.link-arrow{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:15px}
.section-pad{padding-top:var(--sec);padding-bottom:var(--sec);display:flex;flex-direction:column;gap:36px}
.stack-14{display:flex;flex-direction:column;gap:14px}
.h2--md{font-size:36px;line-height:1.12}
.budget{padding-top:var(--sec);padding-bottom:var(--sec);display:grid;grid-template-columns:5fr 7fr;gap:64px;align-items:start}
.budget__text{display:flex;flex-direction:column;gap:22px}
.problems div{display:flex;flex-direction:column;gap:4px;padding:16px 0;border-top:1px solid var(--line-2)}
.problems strong{font-size:17px}
.problems span{font-size:15px;line-height:1.55;color:var(--ink-3)}
.report{margin:0;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 18px 40px rgba(17,20,24,.06)}
.report__head{padding:20px 24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:baseline;gap:16px}
.report__head strong{font-family:var(--f-display);font-size:18px;font-weight:600}
.report__head span{font-size:13px;color:var(--muted)}
.report__row{display:grid;grid-template-columns:6fr 2fr 3fr 2fr;gap:12px;padding:14px 24px;border-bottom:1px solid #EEF0F3;font-size:15px;align-items:baseline;font-variant-numeric:tabular-nums}
.report__row--h{font-size:13px;font-weight:600;color:var(--muted);padding-top:12px;padding-bottom:12px}
.report__row--h span:not(:first-child),.report__n{text-align:right}
.report__n{white-space:nowrap}
.report__o{font-weight:700}
.minus{background:var(--marker);color:inherit;text-decoration:line-through;text-decoration-thickness:2px;padding:0 3px;border-radius:3px}
.report figcaption{padding:20px 24px;display:flex;flex-direction:column;gap:8px;background:#FBFBFC}
.report figcaption strong{font-size:17px}
.report figcaption span{font-size:14px;line-height:1.5;color:var(--muted)}
.tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.tiles--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.tile{border:1.5px solid var(--ink);border-radius:18px;padding:22px;display:flex;flex-direction:column;gap:10px}
.tile strong{font-family:var(--f-display);font-size:19px}
.tile span{font-size:14px;line-height:1.5;color:var(--ink-3)}
.tiles--white .tile{border:0;background:#fff}
.tiles--white .tile strong{font-family:var(--f-body);font-size:17px;line-height:1.35}
.tiles--white .tile span{font-size:15px}
.analytics{padding-top:72px;padding-bottom:72px;display:grid;grid-template-columns:5fr 7fr;gap:64px;align-items:start}
.checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px}
.check{display:flex;gap:12px;align-items:flex-start;padding:16px 0;border-top:1px solid var(--line-2)}
.check svg{flex-shrink:0;margin-top:2px}
.check strong{display:block;font-size:16px;margin-bottom:3px}
.check span{font-size:15px;line-height:1.5;color:var(--ink-3)}
.check--light{border-top-color:rgba(255,255,255,.3)}
.check--light span{color:rgba(255,255,255,.85)}
.price-table{border-top:2px solid var(--ink)}
.price-row{display:grid;grid-template-columns:4fr 6fr 3fr;gap:24px;padding:22px 0;border-bottom:1px solid var(--line);align-items:baseline}
.price-row strong{font-family:var(--f-display);font-size:21px;font-weight:600}
.price-row span{font-size:16px;line-height:1.55;color:var(--ink-2)}
.price-row em{font-style:normal;font-family:var(--f-display);font-size:21px;font-weight:700;text-align:right;white-space:nowrap}
.price-row--main em{color:var(--accent)}
.fine{font-size:15px;line-height:1.6;color:var(--muted)}
.audit-wrap{padding-bottom:var(--sec)}
.audit{background:var(--accent);color:#fff;border-radius:28px;padding:48px;display:grid;grid-template-columns:7fr 5fr;gap:48px;align-items:center}
.audit__eyebrow{font-size:15px;font-weight:600;color:var(--marker)}
.audit__title{font-family:var(--f-display);font-weight:700;font-size:38px;line-height:1.1;letter-spacing:-.02em}
.audit p{font-size:17px;line-height:1.6;color:rgba(255,255,255,.9)}
.audit__btns{display:flex;flex-direction:column;gap:12px}
.btn--marker{background:var(--marker);color:var(--ink)}
.btn--marker:hover{background:#F5CF3A;color:var(--ink)}
.btn--white-line{border-color:#fff;color:#fff}
.btn--white-line:hover{background:#fff;color:var(--accent)}
.terms-mini{padding-top:72px;padding-bottom:72px;display:flex;flex-direction:column;gap:24px}
.other{padding-bottom:var(--sec);display:flex;flex-direction:column;gap:20px}
.other__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.other__card{border:1px solid var(--line);border-radius:20px;padding:28px;display:flex;flex-direction:column;gap:10px;text-decoration:none;color:var(--ink)}
.other__card:hover{border-color:var(--accent);color:var(--ink)}
.other__top{display:flex;justify-content:space-between;align-items:baseline;gap:16px}
.other__top strong{font-family:var(--f-display);font-size:23px}
.other__top em{font-style:normal;font-family:var(--f-display);font-size:17px;font-weight:700;color:var(--accent);white-space:nowrap}
.other__text{font-size:15px;line-height:1.55;color:var(--ink-3)}
.other__more{font-weight:600;font-size:15px;color:var(--accent)}
.band-accent{background:var(--accent);color:#fff}
.gain{padding-top:88px;padding-bottom:88px;display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}
.gain__list{display:flex;flex-direction:column}
.tpl{background:#fff;color:var(--ink);border-radius:24px;padding:32px;display:flex;flex-direction:column;gap:14px}
.tpl__rows div{display:grid;grid-template-columns:180px 1fr;gap:16px;padding:11px 0;border-top:1px solid var(--line)}
.tpl__rows strong{font-size:15px}
.tpl__rows span{font-size:14px;line-height:1.5;color:var(--ink-3)}
.phases{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;align-items:start}
.phase{display:flex;flex-direction:column;gap:14px}
.phase__head{display:flex;align-items:baseline;gap:10px;padding-bottom:12px;border-bottom:2px solid var(--accent)}
.phase__head em{font-style:normal;font-family:var(--f-display);font-size:15px;font-weight:700;color:var(--accent)}
.phase__head strong{font-family:var(--f-display);font-size:21px}
.phase__item strong{display:block;font-size:16px;margin-bottom:3px}
.phase__item span{font-size:14px;line-height:1.5;color:var(--ink-3)}
@media (max-width:1180px){ .tiles{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:1024px){
  .about-card{margin-top:0}
  .budget,.analytics,.audit,.gain{grid-template-columns:1fr}
  .tiles,.tiles--4,.phases{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
  .crumbs-bar{padding-top:14px;font-size:13px}
  .hero--inner{padding-top:18px}
  .about-card{padding:18px;border-radius:16px;gap:12px}
  .about-card__avatar{width:52px;height:52px}
  .about-card__names strong{font-size:17px}
  .about-card p{display:none}
  .section-pad{gap:16px}
  .h2--md{font-size:25px}
  .budget{gap:16px}
  .budget__text{gap:14px}
  .problems div{padding:12px 0}
  .problems strong{font-size:16px}
  .problems span{font-size:14px}
  .report{border-radius:16px;box-shadow:none}
  .report__head{padding:14px 16px;flex-direction:column;gap:2px}
  .report__head strong{font-size:16px}
  .report__row{display:flex;flex-wrap:wrap;gap:4px 10px;padding:12px 16px;font-size:14px}
  .report__q{flex-basis:100%}
  .report__row.report__row--h{display:none}
  .report__n{text-align:left;font-size:13px;color:var(--muted)}
  .report__n::after{content:" " attr(data-label)}
  .report__n[data-label="расход"]::after{content:""}
  .report__o{color:var(--ink)}
  .report figcaption{padding:14px 16px}
  .report figcaption strong{font-size:15px}
  .tiles,.tiles--4,.phases,.checks,.other__grid{grid-template-columns:1fr}
  .tiles{gap:10px}
  .tile{padding:16px;border-radius:14px;gap:4px}
  .tile strong{font-size:17px}
  .analytics{padding-top:36px;padding-bottom:36px;gap:12px}
  .check{padding:12px 0}
  .price-row{grid-template-columns:1fr auto;gap:4px 12px;padding:14px 0}
  .price-row strong{font-size:17px}
  .price-row em{font-size:17px}
  .price-row span{grid-column:1/-1;grid-row:2;font-size:14px}
  .fine{font-size:13px}
  .ad__meta .muted{display:none}
  .audit{padding:24px;border-radius:20px;gap:14px}
  .audit__title{font-size:26px}
  .audit p{font-size:15px}
  .audit__btns .btn{width:100%}
  .terms-mini{padding-top:36px;padding-bottom:36px;gap:16px}
  .other{gap:12px}
  .other__card{padding:18px;border-radius:16px}
  .other__top strong{font-size:18px}
  .other__top em{font-size:14px}
  .gain{padding-top:40px;padding-bottom:40px;gap:20px}
  .tpl{padding:20px;border-radius:18px}
  .tpl__rows div{grid-template-columns:1fr;gap:2px;padding:9px 0}
  .phases{gap:18px}
  .phase__head strong{font-size:19px}
}

/* ------------------------------------------------------------------ */
/* 3.1: выпадающее меню «Реклама по всему миру»                        */
/* ------------------------------------------------------------------ */
.nav{align-items:center}
.nav-drop{position:relative}
.nav-drop__btn{display:inline-flex;align-items:center;gap:5px;padding:0;border:0;background:none;font:inherit;color:var(--ink);cursor:pointer;white-space:nowrap;text-decoration:none}
.nav-drop__btn svg{transition:transform .15s}
.nav-drop:hover .nav-drop__btn,.nav-drop.is-open .nav-drop__btn,.nav-drop.is-current .nav-drop__btn{color:var(--accent)}
.nav-drop:hover .nav-drop__btn svg,.nav-drop.is-open .nav-drop__btn svg{transform:rotate(180deg)}
.nav-drop__panel{position:absolute;left:-18px;top:100%;padding-top:14px;display:none;z-index:60}
.nav-drop:hover .nav-drop__panel,.nav-drop:focus-within .nav-drop__panel,.nav-drop.is-open .nav-drop__panel{display:block}
.nav-drop__list{min-width:230px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:8px;display:flex;flex-direction:column;box-shadow:0 18px 40px rgba(17,20,24,.12)}
.nav .nav-drop__list a{padding:10px 12px;border-radius:10px;font-weight:500}
.nav .nav-drop__list a:hover,.nav .nav-drop__list a[aria-current="page"]{background:var(--mist);color:var(--accent)}
.nav-sub summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-radius:10px;font-weight:600;color:var(--ink)}
.nav-sub summary::-webkit-details-marker{display:none}
.nav-sub summary:hover{background:var(--mist)}
.nav-sub[open] summary svg{transform:rotate(180deg)}
.nav-sub__list{display:flex;flex-direction:column;margin:0 0 6px 14px;padding-left:10px;border-left:2px solid var(--mist-2)}
.nav-mobile__panel .nav-sub__list a{padding:10px 12px;font-weight:500}
.nav-mobile__panel{max-height:calc(100vh - 90px);overflow-y:auto}
@media (max-width:1480px) and (min-width:1025px){
  .site-header__row{gap:20px}
  .nav{gap:20px}
  .header-actions > .btn--line{display:none}
  .header-actions > .icon-btn{display:inline-flex}
}

/* ------------------------------------------------------------------ */
/* 3.1: страницы «Реклама по всему миру» в формате КП                  */
/* ------------------------------------------------------------------ */
.kp-step{display:inline-flex;align-items:center;gap:10px;font-size:15px;font-weight:600;color:var(--accent)}
.kp-step b{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:26px;padding:0 8px;border-radius:8px;background:var(--accent);color:#fff;font-family:var(--f-display);font-size:13px;font-weight:700;letter-spacing:.02em}
.kp-step--light{color:var(--marker)}
.kp-step--light b{background:var(--marker);color:var(--ink)}
.offer{display:grid;grid-template-columns:5fr 7fr;gap:56px;align-items:start;padding-bottom:var(--sec);border-bottom:1px solid var(--line)}
.offer .lead a,.tile a,.phase__item a{font-weight:600}
.kp-included{display:flex;flex-direction:column;gap:36px}
.phases--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.phases--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.phase__head h3{font-family:var(--f-display);font-size:21px;font-weight:700;margin:0}
.phase__item{padding-top:2px}
.tpl__rows--links a{display:grid;grid-template-columns:200px 1fr;gap:16px;padding:12px 0;border-top:1px solid var(--line);text-decoration:none;color:var(--ink)}
.tpl__rows--links a strong{font-size:15px;color:var(--accent)}
.tpl__rows--links a span{font-size:14px;line-height:1.5;color:var(--ink-3)}
.tpl__rows--links a:hover strong{text-decoration:underline}
.step__time{display:inline-flex;align-self:flex-start;padding:3px 10px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:13px;font-weight:600;color:var(--accent);white-space:nowrap}
.other--world{padding-top:var(--sec)}
.other__grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.other__card--ru{background:var(--mist);border-color:var(--mist)}
.other__world{display:flex;flex-wrap:wrap;gap:6px 10px;font-size:15px;color:var(--ink-3)}
.other__world span:first-child{font-weight:600;color:var(--ink)}
.other__world a{font-weight:600;text-decoration:none}
.site-footer__world{display:flex;gap:10px 18px;flex-wrap:wrap;align-items:center}
.site-footer__label{font-weight:600;color:var(--ink)}
@media (max-width:1024px){
  .offer{grid-template-columns:1fr;gap:16px}
  .phases--3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .other__grid--3{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
  .kp-step{font-size:14px;gap:8px}
  .kp-step b{height:22px;min-width:30px;font-size:12px}
  .offer{padding-bottom:36px}
  .kp-included{gap:16px}
  .phases--3,.phases--2,.other__grid--3{grid-template-columns:1fr}
  .phase__head h3{font-size:19px}
  .tpl__rows--links a{grid-template-columns:1fr;gap:2px;padding:10px 0}
  .step__time{grid-column:2;margin:2px 0 2px}
  .other--world{padding-top:36px}
  .site-footer__world{flex-direction:column;align-items:flex-start;gap:10px}
}
@media (max-width:1180px) and (min-width:1025px){
  .site-header__row{gap:14px}
  .nav{gap:14px;font-size:14px}
  .brand__tag{display:none}
  .other__grid--3{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.kp-head{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.kp-head__sub{font-size:16px;color:var(--ink-3)}
.other__grid--3 .other__top{flex-wrap:wrap;gap:4px 16px}
@media (max-width:720px){
  .step__time{justify-self:start}
  .kp-head{gap:8px}
  .kp-head__sub{font-size:14px}
}
/* 3.2: обзорная страница «Реклама за рубежом» */
.choose{display:flex;flex-direction:column;background:#fff;border-radius:20px;padding:8px 28px}
.choose__row{display:grid;grid-template-columns:4fr 7fr 2fr;gap:24px;align-items:baseline;padding:20px 0;border-top:1px solid var(--line);text-decoration:none;color:var(--ink)}
.choose__row:first-child{border-top:0}
.choose__row strong{font-family:var(--f-display);font-size:19px;font-weight:600}
.choose__row span{font-size:16px;line-height:1.55;color:var(--ink-2)}
.choose__row em{font-style:normal;font-weight:700;color:var(--accent);text-align:right;white-space:nowrap}
.choose__row:hover strong{color:var(--accent)}
@media (max-width:720px){
  .choose{padding:4px 16px;border-radius:16px}
  .choose__row{grid-template-columns:1fr;gap:4px;padding:14px 0}
  .choose__row strong{font-size:17px}
  .choose__row span{font-size:14px}
  .choose__row em{text-align:left}
}

/* 4.0: бесплатные инструменты и форма заявки */
.tool-hero{padding-top:28px;padding-bottom:44px;display:flex;flex-direction:column;gap:16px}
.tool-hero>*{max-width:920px}
.tool-hero__lead{max-width:780px}
.tool-hero__meta{font-size:14px;color:var(--muted)}
.tool-band{padding:48px 0}
.tool-box{background:#fff;border:1px solid var(--line);border-radius:20px;padding:28px;display:flex;flex-direction:column;gap:18px}
.tool-box h2,.tool-box h3{font-family:var(--f-display);font-weight:700;font-size:22px;line-height:1.2;letter-spacing:-.01em}
.tool-box p{font-size:16px;line-height:1.55;color:var(--ink-2)}
.tool-row{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.tool-row>*{flex:1 1 200px}
.field{display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--ink-3);font-weight:600}
.field em{font-style:normal;font-weight:400;color:var(--muted)}
.field input,.field select,.field textarea,.tool-box input[type=text],.tool-box input[type=number],.tool-box textarea,.tool-box select{font:inherit;font-size:16px;font-weight:400;color:var(--ink);background:#fff;border:1.5px solid var(--line-2);border-radius:12px;padding:11px 14px;min-height:48px;width:100%}
.field textarea,.tool-box textarea{min-height:120px;resize:vertical;line-height:1.5}
.field input:focus,.field select:focus,.field textarea:focus,.tool-box input:focus,.tool-box textarea:focus,.tool-box select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(35,56,214,.15)}
.tool-out{background:var(--mist);border-radius:14px;padding:16px 18px;font-size:15px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;max-height:440px;overflow:auto}
.tool-btns{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.tool-group{display:flex;flex-direction:column;gap:10px;padding-top:18px;border-top:1px solid var(--line)}
.tool-group:first-of-type{border-top:0;padding-top:0}
.tool-check{display:flex;gap:12px;align-items:flex-start;font-size:16px;line-height:1.5;cursor:pointer;color:var(--ink)}
.tool-check input{width:20px;height:20px;margin-top:3px;accent-color:var(--accent);flex:none;cursor:pointer}
.tool-score{display:flex;flex-wrap:wrap;gap:16px 28px;align-items:center;background:var(--mist);border-radius:16px;padding:18px 20px}
.tool-score__n{font-family:var(--f-display);font-size:44px;font-weight:700;line-height:1;color:var(--accent);font-variant-numeric:tabular-nums}
.tool-score__bar{flex:1 1 240px;height:10px;border-radius:6px;background:#fff;overflow:hidden}
.tool-score__bar i{display:block;height:100%;background:var(--accent);border-radius:6px;transition:width .2s}
.tool-score__v{font-weight:700;font-size:17px}
.tool-cta{margin-top:20px;display:flex;flex-wrap:wrap;gap:12px;align-items:center;background:#fff;border:1.5px solid var(--ink);border-radius:18px;padding:20px 24px}
.tool-cta p{flex:1 1 320px;font-size:17px;line-height:1.5;font-weight:600}
.tool-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:56px;padding-top:var(--sec);padding-bottom:var(--sec);align-items:start}
.tool-aside{position:sticky;top:24px}
.tool-article h2{font-family:var(--f-display);font-weight:700;font-size:32px;line-height:1.15;letter-spacing:-.015em;margin:48px 0 16px}
.tool-article>h2:first-child{margin-top:0}
.tool-article h3{font-family:var(--f-display);font-weight:700;font-size:22px;line-height:1.25;margin:32px 0 10px}
.tool-article p,.tool-article ul,.tool-article ol{margin:0 0 16px}
.tool-article ul,.tool-article ol{padding-left:24px}
.tool-article li{margin:6px 0}
.tool-article a{color:var(--accent)}
.tool-article table{width:100%;border-collapse:collapse;font-size:16px;margin:8px 0 24px}
.tool-article th,.tool-article td{border-bottom:1px solid var(--line);padding:10px 12px 10px 0;text-align:left;vertical-align:top}
.tool-article th{font-weight:700;color:var(--ink-3)}
.tool-article .note{background:var(--mist);border-radius:14px;padding:16px 20px;margin:0 0 20px}
.tool-hub{display:flex;flex-direction:column;gap:48px}
.tool-hub__group{display:flex;flex-direction:column;gap:20px}
.lead-form{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px;display:flex;flex-direction:column;gap:14px;scroll-margin-top:24px;position:relative}
.lead-form__title{font-family:var(--f-display);font-size:22px;font-weight:700}
.lead-form__sub{font-size:15px;color:var(--muted);margin-top:-8px}
.lead-form__hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.lead-form__consent{display:flex;gap:10px;font-size:13px;line-height:1.45;color:var(--muted)}
.lead-form__consent input{width:18px;height:18px;flex:none;margin-top:2px;accent-color:var(--accent)}
.lead-form__consent a{color:var(--accent)}
.lead-form__msg{border-radius:12px;padding:12px 14px;font-size:15px;font-weight:600}
.lead-form__msg--ok{background:#E8F6EE;color:#0B6B35}
.lead-form__msg--err{background:#FDECEC;color:#A11B1B}
.lead-form .btn{width:100%}
@media (max-width:1180px){.tool-layout{grid-template-columns:minmax(0,1fr);gap:40px}.tool-aside{position:static}}
@media (max-width:640px){.tool-box{padding:18px;border-radius:16px}.tool-article h2{font-size:26px}.tool-cta{padding:18px}.tool-band{padding:28px 0}.tool-score__n{font-size:36px}}
.lead-solo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,460px);gap:56px;align-items:start;padding-top:72px;padding-bottom:72px}
.lead-solo__text{display:flex;flex-direction:column;gap:16px}
@media (max-width:900px){.lead-solo{grid-template-columns:minmax(0,1fr);gap:28px;padding-top:48px;padding-bottom:48px}}
/* 4.1: компоненты калькуляторов и отчётов */
.tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.tool-card{border:1px solid var(--line);border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:14px}
.tool-res{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.tool-res>div{background:var(--mist);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:4px}
.tool-res span{font-size:13px;color:var(--muted)}
.tool-res b{font-family:var(--f-display);font-size:24px;line-height:1.15;font-variant-numeric:tabular-nums}
.tool-res .is-main{background:var(--accent);color:#fff}.tool-res .is-main span{color:rgba(255,255,255,.8)}
.tool-tabs{display:flex;flex-wrap:wrap;gap:6px;background:var(--mist);border-radius:14px;padding:5px;width:max-content;max-width:100%}
.tool-tabs button{font:inherit;font-size:15px;font-weight:600;border:0;background:transparent;color:var(--ink-3);padding:9px 16px;border-radius:10px;cursor:pointer;min-height:40px}
.tool-tabs button[aria-selected=true]{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(17,20,24,.12)}
.tool-table{width:100%;border-collapse:collapse;font-size:15px}
.tool-table th,.tool-table td{text-align:left;padding:9px 10px 9px 0;border-bottom:1px solid var(--line);vertical-align:top}
.tool-table th{font-size:13px;color:var(--muted);font-weight:600;white-space:nowrap}
.tool-table td.n,.tool-table th.n{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.tool-scroll{overflow-x:auto;max-height:520px;overflow-y:auto}
.tool-hint{font-size:14px;color:var(--muted);line-height:1.5}
.tool-up{color:#0B6B35;font-weight:600}.tool-down{color:#A11B1B;font-weight:600}
.tool-lists{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.tool-list{border:1px solid var(--line);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
.tool-list h3{font-size:18px}
.tool-list .tool-out{max-height:180px;font-size:14px}
.tool-file{font-size:14px}
@media (max-width:900px){.tool-grid{grid-template-columns:minmax(0,1fr)}}
.tool-card .tool-row>*{flex:1 1 120px}
.tool-res b{overflow-wrap:anywhere}
.tool-res{grid-template-columns:repeat(auto-fit,minmax(165px,1fr))}
.tool-res b{white-space:nowrap;font-size:clamp(19px,1.9vw,24px)}
.tool-box [role=tabpanel]{display:flex;flex-direction:column;gap:18px}
.tool-box [hidden]{display:none!important}
.tool-box input[type=file]{font:inherit;font-size:15px;border:1.5px dashed var(--line-2);border-radius:12px;padding:9px 12px;background:var(--mist);width:100%;min-height:48px;cursor:pointer}
.tool-box input[type=file]::file-selector-button{font:inherit;font-weight:600;font-size:14px;border:0;border-radius:8px;background:#fff;color:var(--ink);padding:7px 12px;margin-right:10px;cursor:pointer}
.tool-box h3{margin-top:4px}
.tool-out{font-family:var(--f-body)}
.tool-article ul,.tool-box ul{list-style:disc}
.tool-article ol,.tool-box ol{list-style:decimal}
.tool-box ol,.tool-box ul{padding-left:24px;display:flex;flex-direction:column;gap:6px;font-size:16px;line-height:1.5}
.tool-article li::marker,.tool-box li::marker{color:var(--accent);font-weight:700}
.brief-q h3{font-size:18px;margin:18px 0 8px}
.brief-q h3:first-child{margin-top:0}
.tool-article code{overflow-wrap:break-word;word-break:normal}
.tool-article td code{white-space:nowrap}
.tool-article table{display:block;overflow-x:auto;max-width:100%}
.tool-stack{display:flex;flex-direction:column;gap:18px}
.tool-stack>h2{margin:0}
.sc-f{display:flex;flex-direction:column;gap:8px;padding-bottom:18px;border-bottom:1px solid var(--line,#e6e8ef)}
.sc-f .btn{align-self:flex-start}
.sc-f .sc-copy{padding:8px 14px;font-size:14px;min-height:0}
.sc-f textarea{min-height:60px;height:auto}
.sc-m{display:flex;flex-direction:column;gap:4px;font-size:14px}
.sc-l b{display:inline-block;min-width:64px;font-variant-numeric:tabular-nums}
.sc-prev{border:1px solid var(--line,#e6e8ef);border-radius:14px;padding:18px 20px;background:#fff;display:flex;flex-direction:column;gap:6px;font-family:Arial,sans-serif}
.sc-pt{color:#1a0dab;font-size:18px;line-height:1.3}
.sc-pu{color:#006621;font-size:14px}
.sc-px{color:#333;font-size:14px;line-height:1.45}
.sc-ps{display:flex;flex-wrap:wrap;gap:6px 16px}
.sc-ps span{color:#1a0dab;font-size:14px}
.mp-b{border:1px solid var(--line,#e6e8ef);border-radius:14px;padding:16px 18px;display:flex;flex-direction:column;gap:10px;background:#fff}
.mp-h{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.mp-h .mp-c{padding:8px 14px;font-size:14px;min-height:0}
.tool-box .mp-l{list-style:none;padding:0;display:flex;flex-direction:row;flex-wrap:wrap;gap:6px;max-height:180px;overflow:auto;font-size:13px}
.tool-box .mp-l li{background:var(--mist,#f2f4f8);border-radius:8px;padding:3px 8px;font-family:ui-monospace,Menlo,Consolas,monospace}
.tool-box .mp-l li::marker{content:none}
#mp .tool-row .field{max-width:300px}
.tool-box .mp-l li.ms-warn{background:#fff1e0;color:#9a4a00}
#ms .tool-row{align-items:flex-end}
#ms .tool-row .field{max-width:420px}
.sl-l{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;margin:0}
.sl-i{border:1px solid var(--line,#e6e8ef);border-radius:12px;padding:14px 16px;background:#fff}
.sl-i dt{font-weight:700;margin-bottom:6px}
.sl-i dd{margin:0;font-size:15px;line-height:1.5}
