@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;700&family=Golos+Text:wght@400;500;600&display=swap');

/* ═══════════════════════════════════════════════════════════
   TOKENS — единый источник правды для всего сайта
   ═══════════════════════════════════════════════════════════ */
:root {
  --red:        #EF3124;
  --red-dark:   #C8271C;
  --red-light:  #FFF1F0;
  --black:      #111111;
  --white:      #FFFFFF;

  /* Серая палитра — только эти значения, других нет */
  --gray-900:   #1C1C1E;
  --gray-700:   #3A3A3C;
  --gray-500:   #6D6D70;
  --gray-300:   #C7C7CC;
  --gray-100:   #F2F2F7;

  --radius:     16px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.14);

  --font-display: 'Unbounded', sans-serif;
  --font-body:    'Golos Text', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { color: var(--gray-700); line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════ */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(26px, 5vw, 50px); font-weight: 700; }
h2 { font-size: clamp(22px, 3.5vw, 36px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 15px; font-weight: 600; }

.text-red  { color: var(--red); }
.text-gray { color: var(--gray-500); }
.text-center { text-align: center; }

/* ═══════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════ */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 860px;  margin: 0 auto; padding: 0 24px; }
.section      { padding: 80px 0; }
.section-sm   { padding: 48px 0; }

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  display: block;
}

/* Заголовочный блок секции */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head p {
  color: var(--gray-500);
  font-size: 17px;
  margin-top: 14px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════
   КНОПКИ
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .18s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239,49,36,0.3);
}
.btn-secondary { background: var(--gray-100); color: var(--black); }
.btn-secondary:hover { background: var(--gray-300); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }

/* ═══════════════════════════════════════════════════════════
   БЕЙДЖИ
   ═══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
}
.badge-red   { background: var(--red-light); color: var(--red); }
.badge-gray  { background: var(--gray-100);  color: var(--gray-700); }
.badge-green { background: #EDFDF3; color: #1A7A3F; }

/* ═══════════════════════════════════════════════════════════
   КАРТОЧКИ (базовый компонент)
   ═══════════════════════════════════════════════════════════ */
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--red-light); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════════
   СЕТКИ
   ═══════════════════════════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ═══════════════════════════════════════════════════════════
   BREADCRUMB — используется на всех страницах кроме главной
   ═══════════════════════════════════════════════════════════ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-500);
  flex-wrap: wrap;
  padding: 16px 0 0;
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb-sep { color: var(--gray-300); }

/* ═══════════════════════════════════════════════════════════
   META-STRING — дата, автор, время чтения
   ═══════════════════════════════════════════════════════════ */
.meta-string {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 20px;
  align-items: center;
}
.meta-string span { display: flex; align-items: center; gap: 5px; }
.meta-badge {
  background: #F0FDF4;
  color: #16A34A;
  border: 1px solid #BBF7D0;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   PAGE HERO — белый фон, без градиента
   ═══════════════════════════════════════════════════════════ */
.page-hero { background: var(--white); padding: 40px 0 60px; }

/* ═══════════════════════════════════════════════════════════
   STAT-BLOCKS — цифровые УТП в hero
   ═══════════════════════════════════════════════════════════ */
.stat-blocks { display: flex; gap: 20px; flex-wrap: wrap; margin: 28px 0; }
.stat-block {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  padding: 16px 22px;
  min-width: 130px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}
.stat-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; line-height: 1.4; }

/* ═══════════════════════════════════════════════════════════
   LSI-БЛОК — текстовая врезка для информационных страниц
   ═══════════════════════════════════════════════════════════ */
.lsi-block {
  background: var(--gray-100);
  border-left: 3px solid var(--red);
  border-radius: 0 14px 14px 0;
  padding: 24px 28px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray-700);
}
.lsi-block p + p { margin-top: 14px; }

/* ═══════════════════════════════════════════════════════════
   TRUST BANNER — светлая полоса с доверительными фактами
   ═══════════════════════════════════════════════════════════ */
.trust-banner {
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  padding: 16px 0;
}
.trust-inner {
  display: flex;
  gap: 0;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  color: var(--gray-700); font-size: 13px; font-weight: 500;
  padding: 6px 28px;
  border-right: 1px solid var(--gray-100);
}
.trust-item:last-child { border-right: none; }
.trust-item-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--red-light); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.trust-item-text strong { display: block; font-size: 13px; font-weight: 600; color: var(--black); line-height: 1.3; }
.trust-item-text span  { font-size: 11px; color: var(--gray-500); }

/* ═══════════════════════════════════════════════════════════
   FAQ — аккордеон. Открытый элемент получает серый фон.
   ═══════════════════════════════════════════════════════════ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background .2s, border-color .2s;
  background: var(--white);
}
.faq-item.is-open { background: var(--gray-100); border-color: transparent; }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  user-select: none;
  gap: 16px;
}
.faq-q-text { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--black); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-body.open { max-height: 600px; }
.faq-body-inner {
  padding: 4px 22px 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray-700);
}

/* ═══════════════════════════════════════════════════════════
   БЛОК АВТОРА (E-E-A-T) — единый на всех страницах
   ═══════════════════════════════════════════════════════════ */
.author-block {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 20px;
  padding: 32px 36px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.author-block-photo {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover; object-position: top center;
  flex-shrink: 0;
  border: 3px solid var(--red-light);
}
.author-block-body { flex: 1; }
.author-block-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--red); margin-bottom: 8px; display: block;
}
.author-block-name {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  margin-bottom: 14px; line-height: 1.2; display: block;
}
.author-block-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.author-block-badge {
  font-size: 12px; padding: 5px 12px;
  border-radius: 20px;
  background: var(--red-light); color: var(--red); font-weight: 500;
}
.author-block-bio {
  font-size: 15px; line-height: 1.75;
  color: var(--gray-700); margin-bottom: 20px;
}
.author-block-links { display: flex; gap: 10px; flex-wrap: wrap; }
.author-block-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600;
  color: var(--black); background: var(--white);
  border: 1.5px solid var(--gray-100); border-radius: 10px;
  padding: 8px 16px; transition: all .2s;
}
.author-block-link:hover { border-color: var(--red); color: var(--red); }

/* ═══════════════════════════════════════════════════════════
   ВНУТРЕННЯЯ ПЕРЕЛИНКОВКА — сетка 3 колонки
   ═══════════════════════════════════════════════════════════ */
.internal-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.internal-link-card {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none; color: var(--black);
  transition: all .2s;
  display: flex; flex-direction: column; gap: 8px;
}
.internal-link-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.internal-link-icon { font-size: 24px; }
.internal-link-title { font-size: 14px; font-weight: 700; }
.internal-link-desc { font-size: 13px; color: var(--gray-500); line-height: 1.5; }
.internal-link-arrow { font-size: 12px; color: var(--red); font-weight: 600; margin-top: auto; }

/* ═══════════════════════════════════════════════════════════
   CTA БЛОК — тёмный финальный блок
   ═══════════════════════════════════════════════════════════ */
.cta-block {
  background: var(--black);
  border-radius: 20px;
  padding: 52px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(239,49,36,.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-block h2 { color: var(--white); margin-bottom: 12px; position: relative; }
.cta-block p  { color: var(--gray-500); font-size: 16px; margin-bottom: 28px; max-width: 460px; margin-left: auto; margin-right: auto; position: relative; }
.cta-actions  { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ═══════════════════════════════════════════════════════════
   DISCLAIMER — последний блок на всех страницах
   ═══════════════════════════════════════════════════════════ */
.disclaimer {
  background: var(--gray-100);
  border-left: 3px solid var(--gray-300);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-top: 24px;
}
.disclaimer a { color: var(--red); }

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px;
}
.header-inner nav { justify-content: center; }
.header-inner .header-cta { justify-self: end; }

.logo {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: var(--black);
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.logo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */
nav { display: flex; align-items: center; gap: 4px; flex: 1; }
nav a {
  font-size: 14px; font-weight: 500; color: var(--gray-700);
  padding: 6px 12px; border-radius: var(--radius-sm);
  transition: background .15s, color .15s; white-space: nowrap;
}
nav a:hover { background: var(--gray-100); color: var(--black); }
nav a.active { color: var(--red); }

.header-cta { margin-left: auto; flex-shrink: 0; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle {
  display: flex; align-items: center; gap: 4px;
  cursor: pointer; font-size: 14px; font-weight: 500;
  color: var(--gray-700); padding: 6px 12px; border-radius: var(--radius-sm);
  border: none; background: none;
  transition: background .15s, color .15s; white-space: nowrap;
}
.dropdown-toggle:hover { background: var(--gray-100); color: var(--black); }
.dropdown-toggle svg { transition: transform .2s; flex-shrink: 0; }
.dropdown:hover .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); padding: 8px; min-width: 240px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--gray-700);
}
.dropdown-menu a:hover { background: var(--gray-100); color: var(--black); }
.dropdown-menu a .dm-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--red-light); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer { background: var(--gray-900); color: var(--white); padding: 60px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-logo {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.footer-desc { font-size: 14px; color: var(--gray-500); line-height: 1.6; }
.footer-title {
  font-size: 13px; font-weight: 600; color: var(--gray-300);
  margin-bottom: 14px; text-transform: uppercase; letter-spacing: .06em;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: var(--gray-500); transition: color .15s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--gray-700); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--gray-500);
}
.footer-social {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--gray-700); color: var(--gray-300);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.footer-social:hover { background: var(--red); color: var(--white); }

/* ═══════════════════════════════════════════════════════════
   BURGER / MOBILE MENU
   ═══════════════════════════════════════════════════════════ */
.burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none;
  padding: 4px; margin-left: auto;
}
.burger span {
  display: block; width: 24px; height: 2px;
  background: var(--black); border-radius: 2px; transition: all .2s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 2px;
  padding: 12px 16px 20px;
  border-top: 1px solid var(--gray-100); background: var(--white);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 15px; font-weight: 500; color: var(--gray-700);
  padding: 10px 12px; border-radius: var(--radius-sm); transition: background .15s;
}
.mobile-menu a:hover { background: var(--gray-100); color: var(--black); }
.mobile-menu a.active { color: var(--red); }
.mobile-menu a.mobile-sub { font-size: 14px; color: var(--gray-500); padding-left: 24px; }
.mobile-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gray-300); padding: 10px 12px 4px;
}

/* ═══════════════════════════════════════════════════════════
   АНИМАЦИИ
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up  { animation: fadeUp .5s ease both; }
.delay-1  { animation-delay: .1s; }
.delay-2  { animation-delay: .2s; }
.delay-3  { animation-delay: .3s; }
.delay-4  { animation-delay: .4s; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.4); }
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); animation: pulse 2s infinite; flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  nav, .header-cta { display: none; }
  .burger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .internal-links-grid { grid-template-columns: 1fr 1fr; }
  .author-block { flex-direction: column; padding: 24px 20px; }
  .cta-block { padding: 40px 24px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .internal-links-grid { grid-template-columns: 1fr; }
  .stat-blocks { gap: 12px; }
  .stat-block { min-width: 120px; }
}