:root {
  --bg: #EEF1FB; --surface: #FFFFFF; --surface-2: #F6F8FD;
  --ink: #1A1A1A; --ink-2: #2C2C2C; --muted: #6E7480; --muted-2: #9AA0AC;
  --line: #E1E5F2; --line-2: #DDE3F0;
  --accent: #1A57EA; --accent-soft: #DCE5FB; --accent-hi: #1546C7;
  --success: #14B85A; --warning: #F59E0B;
  --font-display: 'Onest', system-ui, -apple-system, sans-serif;
  --font-text: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'PT Mono', ui-monospace, monospace;
  --container: 1440px; --pad: clamp(20px, 3vw, 40px);
  --radius-card: 20px; --radius-btn: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-display); font-size: 15px; line-height: 1.5;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.body-text {
  font-family: var(--font-text); font-size: 14.5px; line-height: 1.65;
  color: var(--muted); font-weight: 400; letter-spacing: -0.005em;
}
.mono { font-family: var(--font-mono); }

/* ХЕДЕР */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg); }
.header-top {
  max-width: var(--container); margin: 0 auto;
  padding: 14px var(--pad);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-icon {
  width: 28px; height: 28px; background: var(--accent); border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
}
.brand-icon svg { width: 16px; height: 16px; color: #fff; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.header-nav-inline { display: flex; align-items: center; gap: 2px; list-style: none; }
.header-nav-inline .nav-item { position: relative; }
.header-nav-inline .nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 12px; font-size: 14px; font-weight: 500;
  color: var(--ink-2); border-radius: 8px; transition: all .15s ease; white-space: nowrap;
}
.header-nav-inline .nav-link:hover { background: rgba(26,87,234,0.06); color: var(--accent); }
.header-nav-inline .nav-link.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.header-nav-inline .nav-link .chevron { width: 13px; height: 13px; opacity: 0.6; transition: transform .2s ease; }
.header-nav-inline .nav-item:hover .chevron { transform: rotate(180deg); }
.header-utils { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.util-phone { font-size: 14px; font-weight: 600; color: var(--ink); padding: 8px 4px; white-space: nowrap; }
.util-email { font-family: var(--font-text); font-size: 13.5px; font-weight: 500; color: var(--muted); padding: 8px 12px; white-space: nowrap; transition: color .15s ease; }
.util-email:hover { color: var(--accent); }
.util-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; font-size: 14px; font-weight: 600;
  color: #fff; background: var(--accent); border-radius: 10px;
  transition: all .2s ease; margin-left: 8px; white-space: nowrap;
}
.util-cta:hover { background: var(--accent-hi); transform: translateY(-1px); }
.util-cta svg { width: 14px; height: 14px; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 320px; background: #fff; border-radius: 14px; padding: 10px;
  box-shadow: 0 12px 40px rgba(20,30,60,0.10), 0 0 0 1px rgba(20,30,60,0.04);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .18s ease; pointer-events: none; z-index: 80;
}
.dropdown::before { content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.dropdown-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; font-size: 14.5px; font-weight: 500;
  color: var(--ink-2); border-radius: 8px; transition: all .12s ease;
}
.dropdown-link:hover { background: var(--bg); color: var(--accent); }
.burger {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(26,87,234,0.06); color: var(--accent);
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.burger span { width: 18px; height: 2px; background: currentColor; border-radius: 1px; transition: all .25s ease; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* МОБИЛЬНОЕ МЕНЮ */
.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 320px; max-width: 88vw; background: #fff; z-index: 999;
  padding: 80px 24px 32px; transform: translateX(100%); transition: transform .3s ease;
  overflow-y: auto; box-shadow: -20px 0 60px rgba(10,20,40,0.18);
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-overlay {
  position: fixed; inset: 0; background: rgba(10,20,40,0.4); backdrop-filter: blur(3px);
  z-index: 998; opacity: 0; visibility: hidden; transition: all .25s ease;
}
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }
.mobile-nav a {
  display: block; padding: 14px 16px;
  font-family: var(--font-display); font-size: 16px; font-weight: 500;
  color: var(--ink); border-radius: 10px; transition: all .15s ease;
}
.mobile-nav a:hover { background: var(--accent-soft); color: var(--accent); }
.mobile-nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.mobile-nav-divider { height: 1px; background: var(--line); margin: 16px 16px; }
.mobile-nav-section-title {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); padding: 0 16px; margin-bottom: 8px;
}
.mobile-nav-sub a { padding: 10px 28px; font-size: 14px; color: var(--ink-2); }
.mobile-nav-contacts { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.mobile-nav-contacts a { padding: 10px 16px; font-size: 14px; font-weight: 500; }
.mobile-nav-contacts .phone-link { color: var(--accent); font-weight: 600; font-size: 17px; }

/* ХЛЕБНЫЕ КРОШКИ */
.breadcrumbs {
  max-width: var(--container); margin: 0 auto;
  padding: 14px var(--pad) 8px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-text); font-size: 13px; color: var(--muted); flex-wrap: wrap;
}
.breadcrumbs a { color: var(--muted); transition: color .15s ease; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--muted-2); opacity: 0.6; }
.breadcrumbs .current { color: var(--ink); font-weight: 500; }

/* PAGE HERO */
.page-hero {
  max-width: var(--container); margin: 0 auto;
  padding: 40px var(--pad) 60px;
}
.page-hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4vw, 52px); line-height: 1.08;
  letter-spacing: -0.025em; color: var(--ink);
  margin-bottom: 16px;
}
.page-hero .sub {
  font-family: var(--font-text); font-size: 17px; font-weight: 400;
  color: var(--muted); max-width: 56ch; line-height: 1.6;
  letter-spacing: -0.005em;
}

/* FAQ НАВИГАЦИЯ ПО КАТЕГОРИЯМ */
.faq-nav {
  max-width: var(--container); margin: 0 auto;
  padding: 0 var(--pad) 48px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.faq-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  background: #fff; border-radius: 100px;
  font-family: var(--font-display); font-size: 14px; font-weight: 500;
  color: var(--ink-2); border: 1px solid var(--line);
  transition: all .15s ease;
}
.faq-nav a:hover, .faq-nav a.active {
  background: var(--accent-soft); color: var(--accent);
  border-color: var(--accent-soft);
}

/* FAQ СЕКЦИИ */
.faq-sections {
  max-width: var(--container); margin: 0 auto;
  padding: 0 var(--pad);
  display: flex; flex-direction: column; gap: 64px;
}
.faq-section { scroll-margin-top: 100px; }
.faq-section-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
}
.faq-section-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.faq-section-icon svg { width: 22px; height: 22px; color: var(--accent); }
.faq-section h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.015em;
  color: var(--ink);
}
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 24px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink);
  text-align: left; transition: all .15s ease;
}
.faq-q:hover { background: var(--surface-2); }
.faq-q .plus {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; transition: all .2s ease; flex-shrink: 0;
}
.faq-item.open .plus { background: var(--accent); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner {
  padding: 0 24px 22px;
  font-family: var(--font-text); font-size: 14.5px; font-weight: 400;
  line-height: 1.65; color: var(--muted); letter-spacing: -0.005em;
}
.faq-a-inner a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* CTA БЛОК */
.faq-cta {
  max-width: var(--container); margin: 64px auto 0;
  padding: 0 var(--pad) 80px;
}
.faq-cta-inner {
  background: var(--accent);
  border-radius: var(--radius-card);
  padding: clamp(36px, 5vw, 56px);
  display: grid; grid-template-columns: 1fr auto;
  gap: 32px; align-items: center;
}
.faq-cta h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.02em;
  color: #fff; margin-bottom: 8px;
}
.faq-cta p {
  font-family: var(--font-text); font-size: 15px;
  color: rgba(255,255,255,0.78); line-height: 1.55;
}
.faq-cta-btns { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.btn-white {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; background: #fff; color: var(--accent);
  border-radius: var(--radius-btn);
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  white-space: nowrap; transition: all .2s ease;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.18); }
.btn-white svg { width: 16px; height: 16px; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  background: transparent; color: rgba(255,255,255,0.9);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-btn);
  font-family: var(--font-display); font-weight: 500; font-size: 14px;
  white-space: nowrap; transition: all .15s ease;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline svg { width: 15px; height: 15px; }

/* КОНТАКТНАЯ ФОРМА */
.contact-section { background: var(--ink); padding: 70px var(--pad); color: #fff; }
.contact-wrap {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.contact-eyebrow { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.contact-wrap h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 20px; color: #fff;
}
.contact-wrap .body-text { color: rgba(255,255,255,0.7); margin-bottom: 32px; }
.contact-info { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.12); }
.contact-row { display: flex; align-items: center; gap: 14px; }
.contact-row .label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); width: 90px; }
.contact-row .value { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: #fff; }
.contact-form { background: #fff; border-radius: var(--radius-card); padding: 36px; color: var(--ink); }
.contact-form h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin-bottom: 6px; }
.contact-form .form-sub { font-family: var(--font-text); font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.field { display: flex; flex-direction: column; margin-bottom: 12px; }
.field label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  font-family: var(--font-display); font-size: 15px; font-weight: 500;
  padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface-2); color: var(--ink);
  transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field textarea { resize: vertical; min-height: 80px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; cursor: pointer; user-select: none; }
.consent-row input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; border: 1.5px solid var(--line-2); border-radius: 4px;
  background: #fff; flex-shrink: 0; margin-top: 1px; cursor: pointer;
  transition: all .15s ease; position: relative;
}
.consent-row input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.consent-row input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px;
  width: 5px; height: 10px; border: solid #fff;
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.consent-row .consent-text { font-family: var(--font-text); font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.consent-row .consent-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; background: var(--accent); color: #fff;
  border-radius: var(--radius-btn);
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  transition: all .2s ease; width: 100%;
}
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-1px); }
.btn-primary svg { width: 16px; height: 16px; }

/* ФУТЕР */
.site-footer { background: var(--bg); padding: 60px var(--pad) 30px; border-top: 1px solid var(--line); }
.footer-wrap { max-width: var(--container); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-col h5 { font-family: var(--font-display); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-family: var(--font-display); font-size: 14.5px; color: var(--ink-2); transition: color .15s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-brand .body-text { margin-top: 12px; font-size: 13px; color: var(--muted); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-text); font-size: 13px; color: var(--muted);
}
.footer-bottom a { color: var(--muted); transition: color .15s ease; }
.footer-bottom a:hover { color: var(--accent); }

/* МОДАЛКА */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(10,20,40,0.55); backdrop-filter: blur(4px);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; visibility: hidden; transition: all .25s ease;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal-window {
  background: #fff; border-radius: var(--radius-card); padding: 36px;
  width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  position: relative; transform: scale(0.95) translateY(10px);
  transition: transform .25s ease; box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}
.modal-backdrop.open .modal-window { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); transition: all .15s ease;
}
.modal-close:hover { background: var(--ink); color: #fff; }
.modal-close svg { width: 16px; height: 16px; }
.modal-window h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin-bottom: 6px; padding-right: 40px; }
.modal-window .form-sub { font-family: var(--font-text); font-size: 14px; color: var(--muted); margin-bottom: 20px; }

/* АДАПТИВ */
@media (max-width: 1280px) { .util-email { display: none; } }
@media (max-width: 1080px) {
  .header-nav-inline { display: none; }
  .burger { display: flex; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .faq-cta-inner { grid-template-columns: 1fr; }
  .faq-cta-btns { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .util-cta span { display: none; }
  .util-cta::after { content: "КП"; }
}
@media (max-width: 720px) {
  .brand-name { display: none; }
  .header-top { gap: 12px; padding: 12px var(--pad); }
  .util-phone { font-size: 13.5px; padding: 8px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .faq-cta-btns { flex-direction: column; align-items: stretch; }
  .btn-white, .btn-outline { justify-content: center; }
  .breadcrumbs { font-size: 12px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .util-phone { font-size: 13px; }
}
@media (max-width: 400px) {
  .util-phone { font-size: 12.5px; }
  .util-cta svg { display: none; }
  .util-cta { padding: 9px 12px; }
}

.brand-logo{display:block;width:206px;height:auto;max-width:min(206px,55vw);}
@media (max-width:768px){.brand-logo{width:160px;max-width:min(160px,50vw);}}

/* ==========================================================
   БЛОГ — список статей
   ========================================================== */
.blog-grid {
  max-width: var(--container); margin: 0 auto;
  padding: 0 var(--pad) 80px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.blog-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.blog-card:hover {
  border-color: var(--accent); transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(26, 87, 234, .10);
}
.blog-card-media { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.blog-card-cat {
  align-self: flex-start;
  font-family: var(--font-text); font-size: 12px; font-weight: 600;
  letter-spacing: .02em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 5px 10px; border-radius: 999px;
}
.blog-card h2 { margin: 0; }
.blog-card h2 a {
  font-family: var(--font-display); font-weight: 700;
  font-size: 20px; line-height: 1.25; letter-spacing: -0.02em;
  color: var(--ink); transition: color .15s ease;
}
.blog-card h2 a:hover { color: var(--accent); }
.blog-card-excerpt {
  font-family: var(--font-text); font-size: 15px; line-height: 1.6;
  color: var(--muted); flex: 1;
}
.blog-card-meta {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-text); font-size: 13px; color: var(--muted-2);
  padding-top: 14px; border-top: 1px solid var(--line);
}
.blog-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.blog-card-more {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-text); font-size: 14px; font-weight: 600;
  color: var(--accent);
}
.blog-card-more svg { width: 16px; height: 16px; }
.blog-card-more:hover { color: var(--accent-hi); }

.blog-empty {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--pad) 80px;
  font-family: var(--font-text); font-size: 16px; color: var(--muted);
}

/* Пагинация */
.blog-pagination {
  max-width: var(--container); margin: 0 auto;
  padding: 0 var(--pad) 90px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.blog-pagination .page-numbers {
  min-width: 42px; height: 42px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  font-family: var(--font-text); font-size: 15px; font-weight: 600; color: var(--ink-2);
  transition: all .15s ease;
}
.blog-pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.blog-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.blog-pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* ==========================================================
   БЛОГ — страница статьи
   ========================================================== */
.post-head {
  max-width: var(--container); margin: 0 auto;
  padding: 30px var(--pad) 34px;
}
.post-head .post-cat {
  display: inline-block; margin-bottom: 16px;
  font-family: var(--font-text); font-size: 12px; font-weight: 600;
  letter-spacing: .02em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 6px 12px; border-radius: 999px;
}
.post-head h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1;
  letter-spacing: -0.025em; color: var(--ink); max-width: 22ch;
  margin-bottom: 18px;
}
.post-head .post-lead {
  font-family: var(--font-text); font-size: 18px; line-height: 1.6;
  color: var(--muted); max-width: 62ch; margin-bottom: 22px;
}
.post-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-text); font-size: 14px; color: var(--muted);
}
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.post-meta strong { color: var(--ink-2); font-weight: 600; }

.post-cover {
  max-width: var(--container); margin: 0 auto 40px;
  padding: 0 var(--pad);
}
.post-cover img {
  width: 100%; border-radius: var(--radius-card); display: block;
  border: 1px solid var(--line);
}

.post-layout {
  max-width: var(--container); margin: 0 auto;
  padding: 0 var(--pad) 80px;
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px;
  align-items: start;
}

/* Типографика статьи */
.post-content { max-width: 74ch; font-family: var(--font-text); color: var(--ink-2); }
.post-content > *:first-child { margin-top: 0; }
.post-content p {
  font-size: 17px; line-height: 1.72; margin: 0 0 20px;
  letter-spacing: -0.003em;
}
.post-content h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2;
  letter-spacing: -0.02em; color: var(--ink);
  margin: 48px 0 18px; scroll-margin-top: 96px;
}
.post-content h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 21px; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink);
  margin: 34px 0 14px; scroll-margin-top: 96px;
}
.post-content ul, .post-content ol { margin: 0 0 22px; padding-left: 22px; }
.post-content li { font-size: 17px; line-height: 1.65; margin-bottom: 10px; }
.post-content li::marker { color: var(--accent); }
.post-content a { color: var(--accent); font-weight: 500; border-bottom: 1px solid var(--accent-soft); transition: border-color .15s ease; }
.post-content a:hover { border-bottom-color: var(--accent); }
.post-content strong { color: var(--ink); font-weight: 600; }
.post-content img { max-width: 100%; height: auto; border-radius: var(--radius-card); border: 1px solid var(--line); margin: 8px 0 24px; }
.post-content blockquote {
  margin: 28px 0; padding: 22px 26px;
  background: var(--surface-2); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  font-size: 17px; line-height: 1.6; color: var(--ink-2);
}
.post-content blockquote p:last-child { margin-bottom: 0; }
.post-content .note {
  margin: 28px 0; padding: 20px 24px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  font-size: 16px; line-height: 1.6;
}
.post-content .note strong { display: block; margin-bottom: 6px; color: var(--accent); }
.post-content .table-scroll { overflow-x: auto; margin: 0 0 26px; }
.post-content table {
  width: 100%; border-collapse: collapse; font-size: 15px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-btn); overflow: hidden;
}
.post-content th, .post-content td {
  padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line);
}
.post-content th {
  background: var(--surface-2); font-family: var(--font-display);
  font-weight: 600; font-size: 14px; color: var(--ink);
}
.post-content tr:last-child td { border-bottom: none; }
.post-content .faq-list { margin: 24px 0 8px; }

/* Сайдбар */
.post-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 22px; }
.post-toc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 22px 24px;
}
.post-toc-title {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--ink); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.post-toc-title svg { width: 17px; height: 17px; color: var(--accent); }
.post-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.post-toc li { counter-increment: toc; margin-bottom: 9px; line-height: 1.4; }
.post-toc li:last-child { margin-bottom: 0; }
.post-toc a {
  font-family: var(--font-text); font-size: 14px; color: var(--muted);
  transition: color .15s ease; display: block;
}
.post-toc a::before { content: counter(toc) ". "; color: var(--muted-2); }
.post-toc a:hover, .post-toc a.active { color: var(--accent); }

.aside-cta {
  background: var(--accent); border-radius: var(--radius-card);
  padding: 26px 24px; color: #fff;
}
.aside-cta h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  line-height: 1.22; letter-spacing: -0.02em; margin-bottom: 10px;
}
.aside-cta p {
  font-family: var(--font-text); font-size: 14px; line-height: 1.55;
  color: rgba(255, 255, 255, .82); margin-bottom: 18px;
}
.aside-cta .btn-white { width: 100%; justify-content: center; }
.aside-cta-phone {
  display: block; text-align: center; margin-top: 12px;
  font-family: var(--font-text); font-size: 15px; font-weight: 600; color: #fff;
}
.aside-cta-phone:hover { color: rgba(255, 255, 255, .82); }

.aside-services {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 22px 24px;
}
.aside-services .post-toc-title { margin-bottom: 12px; }
.aside-services ul { list-style: none; padding: 0; margin: 0; }
.aside-services li { margin-bottom: 8px; }
.aside-services li:last-child { margin-bottom: 0; }
.aside-services a {
  font-family: var(--font-text); font-size: 14px; color: var(--muted);
  transition: color .15s ease;
}
.aside-services a:hover { color: var(--accent); }

/* Похожие статьи */
.related-posts {
  max-width: var(--container); margin: 0 auto;
  padding: 0 var(--pad) 80px;
}
.related-posts h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15;
  letter-spacing: -0.02em; color: var(--ink); margin-bottom: 26px;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

@media (max-width: 1100px) {
  .post-layout { grid-template-columns: 1fr; gap: 34px; }
  .post-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .post-aside > * { flex: 1 1 280px; }
  .blog-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .blog-grid, .related-grid { grid-template-columns: 1fr; gap: 20px; }
  .post-aside { flex-direction: column; }
  .post-head h1 { max-width: none; }
  .post-content p, .post-content li { font-size: 16px; }
}
