*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}
:root {
  --bg-primary: #2E323A;
  --bg-secondary: #383E4A;
  --bg-surface: #424A58;
  --accent-primary: #00B8A9;
  --accent-secondary: #0A6E66;
  --accent-glow: rgba(0, 184, 169, 0.4);
  --text-primary: #FFFFFF;
  --text-secondary: #A0AABA;
  --border: #4A5568;
  --gradient-1: linear-gradient(135deg, #00B8A9, #0A6E66);
  --shadow-sm: 0 10px 30px -5px rgba(0,0,0,0.45);
  --shadow-md: 0 20px 40px -8px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 15px var(--accent-glow), 0 0 28px rgba(10, 110, 102, 0.35);
  --glass-bg: rgba(56, 62, 74, 0.62);
  --glass-border: rgba(0, 184, 169, 0.2);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: var(--font-sans);
}
.theme-light {
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --bg-surface: #F1F5F9;
  --accent-primary: #0F766E;
  --accent-secondary: #0A6E66;
  --accent-glow: rgba(15, 118, 110, 0.3);
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --border: #E2E8F0;
  --gradient-1: linear-gradient(135deg, #0F766E, #0A6E66);
  --shadow-sm: 0 10px 30px -5px rgba(0,0,0,0.1);
  --shadow-md: 0 20px 40px -8px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 15px rgba(15, 118, 110, 0.35), 0 0 28px rgba(10, 110, 102, 0.22);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(15, 118, 110, 0.2);
}
html { scroll-behavior: smooth; scroll-padding-top: 160px; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(0,184,169,0.12) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 85% 80%, rgba(10, 110, 102, 0.12) 0%, transparent 50%);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}
.theme-light body::after { opacity: 0.4; }
.container { max-width: 720px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* Строка доверия — как на главной (new-page.html) */
.trust-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 101;
}
.trust-bar .container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.trust-bar-left { display: flex; align-items: center; gap: 12px; }
.trust-bar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.trust-bar .lang-switcher {
  display: flex;
  gap: 2px;
  background: var(--bg-surface);
  border-radius: 10px;
  padding: 4px;
  border: 1px solid transparent;
  transition: var(--transition);
}
.trust-bar .lang-switcher:focus-within { border-color: var(--glass-border); box-shadow: 0 0 0 2px var(--accent-glow); }
.trust-bar .lang-btn {
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}
.trust-bar .lang-btn:hover { color: var(--text-primary); }
.trust-bar .lang-btn.is-active { background: var(--bg-primary); color: var(--accent-primary); box-shadow: var(--shadow-sm); }
.trust-bar .theme-toggle {
  width: 40px;
  height: 40px;
  font-size: 1.15rem;
}
.trust-bar .trust-wa-btn { width: 40px; height: 40px; font-size: 1.15rem; }
.trust-bar .trust-btn {
  font-size: 14px;
  padding: 8px 18px;
}
.trust-btn {
  border-radius: 60px;
  font-weight: 600;
  border: none;
  background: var(--gradient-1);
  color: var(--bg-primary);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.trust-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.trust-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: #25D366;
  font-size: 1.25rem;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.trust-wa-btn:hover { color: #25D366; border-color: #25D366; transform: scale(1.05); }
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.theme-toggle:hover { color: var(--accent-primary); border-color: var(--accent-primary); }

/* Header — как на главной (new-page.html) */
.header {
  position: sticky;
  top: 56px;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 20px 0;
}
.theme-light .header { border-bottom-color: #1e293b; }
.header .container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.header .logo { flex-shrink: 0; }
.header .nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.header-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-cta { white-space: nowrap; font-size: 15px; padding: 10px 20px; border-radius: 60px; font-weight: 600; border: none; background: linear-gradient(135deg, #00B8A9, #0A6E66); color: var(--bg-primary); transition: var(--transition); box-shadow: var(--shadow-sm); }
.header-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.theme-light .header-cta { background: linear-gradient(135deg, #0F766E, #0A6E66); }
.btn-magnetic { transition: transform 0.2s ease-out; will-change: transform; }
.header .menu-toggle { flex-shrink: 0; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--text-primary);
  letter-spacing: -0.03em;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo:hover { transform: scale(1.06); }
.logo .logo-img { height: 40px; width: auto; object-fit: contain; display: block; flex-shrink: 0; transition: filter 0.35s ease; }
.logo:hover .logo-img { filter: drop-shadow(0 0 12px var(--accent-glow)); }
.logo .logo-text { font-size: 2.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 0.9; transition: filter 0.35s ease; }
.logo:hover .logo-text .logo-ai { filter: drop-shadow(0 0 10px var(--accent-primary)); }
a.logo { text-decoration: none; color: inherit; }
.nav-list { display: flex; align-items: center; justify-content: center; gap: 0.35rem; list-style: none; flex-wrap: nowrap; white-space: nowrap; }
.nav-item > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  padding: 10px 16px;
  border-radius: 14px;
  transition: var(--transition);
  font-size: 18px;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: none;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-item > a:hover,
.nav-item > a:focus-visible { color: var(--text-primary); background: rgba(255,255,255,0.08); }
.nav-item > a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--gradient-1);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 14px var(--accent-primary);
}
.nav-item > a:hover::after,
.nav-item > a:focus-visible::after { transform: scaleX(1); }
.menu-toggle {
  display: none;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 1.35rem;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.menu-toggle:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.menu-toggle[aria-expanded="true"] { background: var(--accent-primary); color: var(--bg-primary); border-color: var(--accent-primary); }
.brand-name { color: inherit; }
.brand-name .logo-ai { color: var(--accent-primary); }
@media (max-width: 960px) {
  .nav-list { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
}
.nav.is-open .nav-list {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  padding: 24px;
  gap: 0;
  box-shadow: var(--shadow-md);
  z-index: 150;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}
.nav.is-open .nav-item { width: 100%; border-bottom: 1px solid var(--border); }
.nav.is-open .nav-item:last-child { border-bottom: none; }
.nav.is-open .nav-item > a {
  width: 100%;
  padding: 18px 20px;
  border-radius: 14px;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
}

/* Блок статьи — как на about.html */
.article-main-wrap { padding: 24px 0 80px; }
.article-main-wrap .container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  min-width: 0;
}
/* Статьи без .container (прямой дочерний .article-page) — поля от края экрана */
.article-main-wrap > .article-page {
  margin-left: auto;
  margin-right: auto;
  width: min(100%, 900px);
  box-sizing: border-box;
}
.article-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  margin: 24px 0 60px;
  align-items: start;
  min-width: 0;
}
@media (max-width: 1100px) {
  .article-grid { grid-template-columns: 1fr; }
  /* До этого padding 48px на .article-page действовал до 768px — на планшетах текст был узким */
  .article-main-wrap .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .article-page {
    padding: 0;
    border-radius: 40px;
  }
  .article-header {
    padding-left: 22px;
    padding-right: 22px;
    padding-top: 28px;
    padding-bottom: 1.5rem;
  }
  .article-body {
    padding: 0 22px 36px;
    border-radius: 0;
  }
}

/* Карточка статьи — один блок как .article-main на about.html */
.article-page {
  max-width: 100%;
  margin: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 48px;
  padding: 48px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-width: 0;
  box-sizing: border-box;
}
.article-page::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, var(--accent-glow) 0%, transparent 60%);
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.article-page:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}
.article-page:hover::before {
  opacity: 0.5;
}
.article-page > * {
  position: relative;
  z-index: 1;
}

/* Заголовок статьи — как .article-title-wrap на about.html */
.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.article-rubric {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
}
.article-header h1 {
  font-family: var(--font-sans);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
@supports (text-wrap: balance) {
  .article-header h1 { text-wrap: balance; }
}
@media (max-width: 600px) {
  .article-header h1 { text-wrap: wrap; }
}
.article-meta {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  display: none; /* скрываем строку с датой/временем чтения в статьях блога */
}
.article-page.has-i18n-meta .article-meta {
  display: block;
  margin-top: 0.35rem;
}
/* Заголовок статьи в языковом блоке (не дублируем h1) */
.article-title-lang {
  font-family: var(--font-sans);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
/* Контент статьи — как .article-content на about.html */
.article-body {
  font-size: 1.1rem;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  overflow: visible;
}
.article-body::before { display: none; }
.article-body > * { position: relative; z-index: 1; }
.article-body h2[id] { scroll-margin-top: 160px; }
.article-body .article-faq[id] { scroll-margin-top: 160px; }
.article-body p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
.article-body p:last-of-type { margin-bottom: 0; }
.article-body h2 {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2em 0 0.75em;
}
.article-body h2:first-child { margin-top: 0; }
.article-body ul,
.article-body ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
.article-body li { margin-bottom: 0.5rem; }
.article-body a { color: var(--accent-primary); }
.article-body a:hover { text-decoration: underline; }
.article-body blockquote {
  border-left: 4px solid var(--accent-primary);
  background: var(--bg-surface);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 24px;
  font-style: italic;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.article-body blockquote:hover {
  box-shadow: var(--shadow-glow);
  transform: scale(1.01);
}
.article-back {
  margin-top: 2em;
  padding-top: 1.5em;
  border-top: 1px solid var(--border);
}
.article-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-primary);
  font-weight: 600;
}
.article-back a:hover { text-decoration: none; opacity: 0.9; }

/* Мини-кейс в статье */
.article-case {
  margin: 2em 0;
  padding: 24px;
  background: linear-gradient(135deg, rgba(0, 184, 169, 0.12), rgba(10, 110, 102, 0.1));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  border-left: 4px solid var(--accent-primary);
}
.article-case p { margin: 0; color: var(--text-primary); font-weight: 600; }
.article-case p + p { margin-top: 8px; font-weight: 400; color: var(--text-secondary); }

/* Блок "Сколько стоит" */
.article-price-block {
  margin: 2.5em 0;
  padding: 28px;
  background: var(--bg-surface);
  border-radius: 20px;
  border: 1px solid var(--border);
}
.article-price-block h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
}
.article-price-block p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}
.theme-light .article-price-block p { color: var(--text-secondary); }
.theme-light .article-price-block { background: var(--bg-surface); border-color: var(--border); }

/* CTA-блок «Бесплатная консультация» — как блок «Как мы создаём сайты» на about.html (.highlight) */
.article-cta-block {
  margin: 2.5rem 0;
  padding: 2.5rem;
  text-align: center;
  background: var(--bg-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 32px;
  border: 1px solid var(--accent-primary);
  box-shadow: var(--shadow-glow);
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.article-cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, var(--accent-glow) 0%, transparent 70%);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}
.article-cta-block:hover {
  transform: scale(1.01);
  box-shadow: 0 0 40px var(--accent-primary);
}
.article-cta-block:hover::before {
  opacity: 0.3;
}
.article-cta-block > * {
  position: relative;
  z-index: 1;
}
.article-cta-block {
  font-family: var(--font-sans);
}
.article-cta-block h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 0;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-primary);
}
.article-cta-block h3 .cta-block-icon {
  font-size: 2.25rem;
  color: var(--accent-primary);
  flex-shrink: 0;
  line-height: 1;
}
.article-cta-block p {
  margin: 0 0 2rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.65;
}
.article-cta-block .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  margin-top: 0.5rem;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-sans);
  background: linear-gradient(135deg, #00B8A9, #0A6E66);
  border: none;
  color: var(--bg-primary);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.article-cta-block .btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: var(--bg-primary);
}
.theme-light .article-cta-block .btn-cta {
  background: linear-gradient(135deg, #0F766E, #0A6E66);
  color: #fff;
}
.theme-light .article-cta-block .btn-cta:hover {
  box-shadow: var(--shadow-glow);
  color: #fff;
}

/* FAQ в статье */
.article-faq {
  margin: 2.5em 0 0;
}
.article-faq h2 {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 20px;
}
.article-faq-list { list-style: none; margin: 0; padding: 0; }
.article-faq-item {
  border-bottom: 1px solid var(--border);
}
.article-faq-item details { margin: 0; }
.article-faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.4;
  transition: color 0.2s;
}
.article-faq-item summary::-webkit-details-marker { display: none; }
.article-faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-left: auto;
  transition: transform 0.25s, background 0.2s, border-color 0.2s, color 0.2s;
}
.article-faq-item details[open] summary::after {
  transform: rotate(45deg);
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-primary);
}
.article-faq-item summary:hover { color: var(--accent-primary); }
.article-faq-answer {
  padding: 0 0 20px 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* Оглавление в сайдбаре — стеклянный стиль как на About (.toc-card) */
.article-sidebar {
  position: sticky;
  top: 120px;
  align-self: start;
  max-height: calc(100vh - 170px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) var(--bg-surface);
}
.article-sidebar::-webkit-scrollbar { width: 6px; }
.article-sidebar::-webkit-scrollbar-track { background: var(--bg-surface); border-radius: 10px; }
.article-sidebar::-webkit-scrollbar-thumb { background: var(--accent-primary); border-radius: 10px; }
.article-toc-card {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 48px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.article-toc-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, var(--accent-glow) 0%, transparent 60%);
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.article-toc-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}
.article-toc-card:hover::before {
  opacity: 0.5;
}
.article-toc-card h3,
.article-toc-card .article-toc-list {
  position: relative;
  z-index: 1;
}
.article-toc-card h3 {
  margin: 0;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-toc-card h3 i { color: var(--accent-primary); }
.article-toc-list {
  list-style: none;
  margin: 0;
  padding: 16px 12px 20px;
  background: transparent;
  border-radius: 0 0 48px 48px;
}
.theme-light .article-toc-list { background: transparent; }
.article-toc-list li { margin-bottom: 6px; border-radius: 16px; }
.article-toc-list li:last-child { margin-bottom: 0; }
.article-toc-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
  padding: 12px 14px 12px 18px;
  border-radius: 16px;
  opacity: 0.85;
  transition: color 0.8s ease-out, background 0.2s ease, font-weight 0.8s ease-out, opacity 0.8s ease-out;
}
.article-toc-list a:hover { color: var(--accent-primary); background: rgba(0, 184, 169, 0.08); }
.article-toc-list a i { color: var(--accent-primary); flex-shrink: 0; font-size: 1rem; transition: color 0.8s ease-out; }
.article-toc-list li.active a { color: var(--accent-primary); font-weight: 700; opacity: 1; }

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  background: var(--bg-secondary);
  color: var(--text-secondary);
}
.footer .container { max-width: 1200px; padding: 0 32px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-bottom .copyright { margin: 0; font-size: 0.875rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-legal a { font-size: 0.875rem; color: var(--text-secondary); }
.footer-legal a:hover { color: var(--accent-primary); }

/* Адаптив: планшеты и узкие экраны */
@media (max-width: 768px) {
  /* Меньше суммарных полей: экран → container → заголовок/тело статьи */
  .container { padding: 0 10px; }
  .article-main-wrap .container { padding: 0 10px; }
  .article-main-wrap > .article-page {
    width: auto;
    margin-left: 10px;
    margin-right: 10px;
  }
  .header .container { padding: 0 10px; }
  .trust-bar .container { padding: 0 10px; }
  .article-main-wrap { padding: 32px 0 56px; padding-top: 24px; }
  .article-grid { gap: 32px; }
  .article-sidebar { position: static; max-height: none; overflow: visible; }
  .article-page {
    padding: 0;
    max-width: 100%;
    border-radius: 24px;
  }
  .article-page:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--glass-border);
  }
  .article-header {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 12px;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
  }
  .article-body {
    padding: 16px 10px 24px;
    border-radius: 16px;
    overflow-wrap: anywhere;
  }
  .article-header h1,
  .article-title-lang {
    font-size: clamp(1.35rem, 4.2vw + 0.6rem, 1.85rem);
    line-height: 1.24;
    letter-spacing: -0.025em;
  }
  .article-rubric {
    letter-spacing: 0.12em;
  }
  .article-body h2 { font-size: 1.2rem; margin: 1.5em 0 0.6em; }
  .article-case {
    margin: 1.5em 0;
    padding: 18px 20px;
    border-radius: 16px;
  }
  .article-price-block {
    margin: 2em 0;
    padding: 20px;
    border-radius: 16px;
  }
  .article-price-block h3 { font-size: 1.15rem; }
  .article-cta-block {
    margin: 2em 0;
    padding: 32px 24px;
    border-radius: 32px;
  }
  .article-cta-block h3 { font-size: 1.2rem; }
  .article-cta-block h3 .cta-block-icon { font-size: 1.35rem; }
  .article-cta-block p { font-size: 0.9375rem; margin-bottom: 16px; }
  .article-cta-block .btn-cta {
    padding: 12px 24px;
    font-size: 0.9375rem;
    width: 100%;
    max-width: 320px;
  }
  .article-faq { margin: 2em 0 0; }
  .article-faq h2 { font-size: 1.2rem; margin-bottom: 16px; }
  .article-faq-item summary {
    padding: 14px 0;
    font-size: 0.9375rem;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
  }
  .article-faq-item summary::after { width: 28px; height: 28px; font-size: 1rem; margin-left: auto; }
  .article-faq-answer {
    padding: 0 0 16px 0;
    font-size: 0.875rem;
  }
  .article-back { margin-top: 1.5em; padding-top: 1.25em; }
  .footer .container { padding: 0 10px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* Адаптив: смартфоны */
@media (max-width: 480px) {
  .container { padding: 0 8px; }
  .article-main-wrap .container { padding: 0 8px; }
  .article-main-wrap > .article-page {
    margin-left: 8px;
    margin-right: 8px;
  }
  .header .container { padding: 0 8px; }
  .trust-bar { padding: 8px 0; }
  .trust-bar .container { padding: 0 8px; }
  .trust-btn { font-size: 13px; padding: 6px 14px; }
  .trust-wa-btn, .theme-toggle { width: 36px; height: 36px; font-size: 1rem; }
  .header { padding: 12px 0; }
  .logo .logo-text { font-size: 1.5rem; }
  .logo .logo-img { height: 36px; }
  .menu-toggle { width: 44px; height: 44px; font-size: 1.25rem; }
  .article-main-wrap { padding: 24px 0 40px; padding-top: 24px; }
  .article-grid { gap: 24px; }
  .article-page {
    padding: 0;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    border-color: var(--border);
  }
  .article-body {
    padding: 14px 8px 20px;
    border-radius: 12px;
  }
  .article-header {
    margin-bottom: 20px;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 10px;
    padding-bottom: 1rem;
  }
  .article-header h1,
  .article-title-lang {
    font-size: clamp(1.2rem, 4vw + 0.5rem, 1.45rem);
    line-height: 1.28;
    letter-spacing: -0.02em;
  }
  .article-rubric {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    line-height: 1.4;
  }
  .article-meta { font-size: 0.875rem; }
  .article-body p { font-size: 0.9375rem; }
  .article-body h2 { font-size: 1.1rem; margin: 1.25em 0 0.5em; }
  .article-case { padding: 16px; border-radius: 12px; }
  .article-case p { font-size: 0.9375rem; }
  .article-case p + p { font-size: 0.875rem; }
  .article-price-block { padding: 16px; border-radius: 12px; }
  .article-price-block h3 { font-size: 1.05rem; }
  .article-price-block p { font-size: 0.875rem; }
  .article-cta-block { padding: 28px 20px; border-radius: 24px; }
  .article-cta-block h3 { font-size: 1.1rem; }
  .article-cta-block h3 .cta-block-icon { font-size: 1.2rem; }
  .article-cta-block p { font-size: 0.875rem; }
  .article-cta-block .btn-cta { padding: 12px 20px; font-size: 0.875rem; }
  .article-faq-item summary { font-size: 0.875rem; padding: 12px 0; }
  .article-faq-answer { font-size: 0.8125rem; }
  .footer { padding: 20px 0; }
  .footer .container { padding: 0 8px; }
  .footer-bottom .copyright { font-size: 0.8125rem; }
  .footer-legal a { font-size: 0.8125rem; }
}
