/* =============================================
   elektroded Template for DLE 19.1
   ============================================= */

/* =============================================
   CSS ПЕРЕМЕННЫЕ — легко менять цвета/шрифты
   ============================================= */
:root {
  --bg-primary:    #0a0e1a;
  --bg-secondary:  #0f1628;
  --bg-card:       #131d33;
  --bg-card-hover: #192240;
  --accent:        #2b7fff;
  --accent-glow:   rgba(43,127,255,0.25);
  --accent-dark:   #1a5fd4;
  --cyan:          #00c8ff;
  --text-primary:  #f0f4ff;
  --text-secondary:#8da0c4;
  --text-muted:    #4e6080;
  --border:        rgba(43,127,255,0.15);
  --border-card:   rgba(255,255,255,0.07);
  --radius:        12px;
  --radius-lg:     18px;
  --font-head:     'Exo 2', sans-serif;
  --font-body:     'Inter', sans-serif;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.22s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-card);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Секции */
section { padding: 72px 0; }
.section-title {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.section-sub {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 40px;
}

/* =============================================
   HEADER / НАВИГАЦИЯ
   ============================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
}
.logo-text { line-height: 1.2; }
.logo-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}
.logo-tagline {
  font-size: 11px;
  color: var(--text-secondary);
}

/* =============================================
   ОСНОВНАЯ НАВИГАЦИЯ (структурные правила
   перенесены сюда, чтобы медиазапросы
   ниже могли её отключать на мобиле)
   ============================================= */
.nav, .nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}
.nav > li {
    display: inline-block;
    position: relative;
}
/* DLE: замени ссылки на {menu} */
.nav a {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    display: inline-block;
}
.nav a:hover,
.nav li:hover > a {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  transition: all 0.2s;
  cursor: pointer;
}
.icon-btn:hover { color: var(--text-primary); background: rgba(43,127,255,0.15); border-color: var(--accent); }

/* =============================================
   ВТОРОЙ УРОВЕНЬ МЕНЮ (подкатегории раздела)
   ============================================= */
.subnav {
    border-top: 1px solid var(--border);
    padding: 10px 0 12px;
    margin-top: -1px;
}

.subnav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 4px;
}

.subnav a {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-card);
    transition: all 0.18s ease;
}

.subnav a:hover {
    color: var(--text-primary);
    background: rgba(43,127,255,0.12);
    border-color: rgba(43,127,255,0.35);
}

.subnav a.active {
    color: #fff;
    background: rgba(43,127,255,0.22);
    border-color: var(--accent);
    font-weight: 600;
}

@media (max-width: 768px) {
    .subnav ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        gap: 6px;
    }

    .subnav a {
        white-space: nowrap;
    }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(43,127,255,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(43,127,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(43,127,255,0.1);
  border: 1px solid rgba(43,127,255,0.3);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--cyan);
  margin-bottom: 20px;
  font-weight: 500;
}
.hero-eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--cyan);
  border-radius: 50%;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-title .accent { color: var(--accent); }
.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
}
.hero-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-trust {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border-card);
}
.trust-item { text-align: left; }
.trust-num {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}
.trust-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
}
.hero-image-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 0 40px rgba(43,127,255,0.3));
}
.hero-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.hero-badge-icon { font-size: 20px; }
.hero-badge-text b { display: block; font-weight: 600; font-size: 14px; }
.hero-badge-text span { color: var(--text-secondary); font-size: 11px; }
.hero-badge-1 { top: 12%; left: -10%; animation: float 4s ease-in-out infinite; }
.hero-badge-2 { bottom: 15%; right: -8%; animation: float 4s ease-in-out infinite 2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* =============================================
   АНИМАЦИЯ ПЛАТЫ
   ============================================= */
.hero-image-wrap {
  overflow: hidden;
}

.hero-image-wrap .scan {
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(43,127,255,0.35),
    transparent
  );

  filter: blur(14px);
  pointer-events: none;
  z-index: 2;

  animation: heroScan 4.5s linear infinite;
}

@keyframes heroScan {
  100% {
    left: 120%;
  }
}

/* =============================================
   STATS STRIP
   ============================================= */
.stats-strip {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.stat-item {}
.stat-num {
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* =============================================
   НАПРАВЛЕНИЯ (КАРТОЧКИ)
   ============================================= */
.directions {}
.directions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.dir-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 22px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.22s ease;
  cursor: pointer;
}
.dir-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(43,127,255,0.12);
}
.dir-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(43,127,255,0.1);
  border: 1px solid rgba(43,127,255,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}
.dir-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}

/* =============================================
   ПРОБЛЕМЫ (С чем приходят)
   ============================================= */
.problems { background: var(--bg-secondary); }
.problems-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.problem-list { display: flex; flex-direction: column; gap: 14px; }
.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: border-color 0.2s;
}
.problem-item:hover { border-color: rgba(43,127,255,0.4); }
.problem-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}
.problem-text {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}
.problem-text small {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 3px;
}
.problems-cta { margin-top: 48px; }
.problems-cta-title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}
.problems-cta-text { color: var(--text-secondary); margin-bottom: 24px; line-height: 1.7; }

/* =============================================
   УТП БЛОК
   ============================================= */
.utp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.utp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: border-color 0.2s;
}
.utp-card:hover { border-color: rgba(43,127,255,0.35); }
.utp-card.highlight {
  background: linear-gradient(135deg, rgba(43,127,255,0.12) 0%, rgba(0,200,255,0.05) 100%);
  border-color: rgba(43,127,255,0.35);
}
.utp-icon { font-size: 36px; margin-bottom: 16px; }
.utp-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.utp-text { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

/* =============================================
   БИБЛИОТЕКА + ПРИМЕРЫ (2 колонки)
   ============================================= */
.promo-two { background: var(--bg-secondary); }
.promo-two-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.promo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  position: relative;
  min-height: 240px;
  transition: border-color 0.22s, transform 0.22s;
}
.promo-card:hover {
  border-color: rgba(43,127,255,0.35);
  transform: translateY(-3px);
}
.promo-card::before {
  content: '';
  position: absolute;
  right: 170px; top: 0; bottom: 0;
  width: 80px;
  background: linear-gradient(90deg, var(--bg-card) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}
.promo-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 2;
}
.promo-card-img {
  flex-shrink: 0;
  width: 190px;
  align-self: flex-end;
  position: relative;
  z-index: 0;
  margin-bottom: -36px;
  margin-right: -36px;
}
.promo-card-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
}
.promo-card-title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
}
.promo-card-text { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.promo-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
@media (max-width: 480px) {
  .promo-card { flex-direction: column; align-items: flex-start; }
  .promo-card-img { display: none; }
  .promo-card::before { display: none; }
}

/* =============================================
   КАК МЫ РАБОТАЕМ (шаги)
   ============================================= */
.steps-grid {
  display: flex;
  gap: 0;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(43,127,255,0.1) 100%);
  z-index: 0;
}
.step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 1;
}
.step-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.step-text { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }

/* =============================================
   О СЕБЕ
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-visual {
  display: flex;
  justify-content: center;
}
.about-avatar {
  width: 100%;
  border-radius: 50%;
  border: 3px solid var(--accent);
  filter: drop-shadow(0 0 30px rgba(43,127,255,0.35));
}
.about-list { margin: 24px 0; display: flex; flex-direction: column; gap: 12px; }
.about-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}
.about-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(43,127,255,0.15);
  border: 1px solid rgba(43,127,255,0.4);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  color: var(--accent);
  margin-top: 1px;
}
.about-item-text b { display: block; font-weight: 600; }
.about-item-text span { color: var(--text-secondary); font-size: 13px; }

/* =============================================
   ОТЗЫВЫ
   ============================================= */
.reviews { background: var(--bg-secondary); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s;
}
.review-card:hover {
  border-color: rgba(43,127,255,0.35);
  transform: translateY(-3px);
}
.review-stars { color: #fbbf24; font-size: 14px; letter-spacing: 1px; }
.review-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-card);
}
.review-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.review-name { font-weight: 600; font-size: 14px; }
.review-meta { font-size: 11px; color: var(--text-muted); }

/* =============================================
   CTA ФИНАЛЬНЫЙ
   ============================================= */
.cta-final {
  background: linear-gradient(135deg, rgba(43,127,255,0.12) 0%, rgba(0,200,255,0.05) 100%);
  border-top: 1px solid rgba(43,127,255,0.2);
  border-bottom: 1px solid rgba(43,127,255,0.2);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-text {}
.cta-title {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
}
.cta-sub { color: var(--text-secondary); font-size: 15px; }
.cta-action { flex-shrink: 0; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 36px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-nav { display: flex; gap: 20px; }

.footer-nav a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-nav a:hover { color: var(--accent); }

.footer-bottom {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-card);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-contacts {
    flex: 2;
}

.footer-contacts-item {
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-contacts-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.footer-contacts-item a {
    color: var(--accent);
}

.footer-contacts-item a:hover {
    text-decoration: underline;
}

.footer-legal {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-legal a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--accent);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-legal {
        align-items: center;
    }
}

/* =============================================
   HAMBURGER КНОПКА
   ============================================= */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.burger:hover { background: rgba(43,127,255,0.12); border-color: var(--accent); }
.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease;
  transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   МОБИЛЬНОЕ МЕНЮ (выпадающее)
   ============================================= */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(10, 14, 26, 0.97);
  backdrop-filter: blur(16px);
  padding: 24px;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.mobile-menu a {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.18s ease;
}
.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--text-primary);
  background: rgba(43,127,255,0.08);
  border-color: rgba(43,127,255,0.2);
}
.mobile-menu-divider {
  height: 1px;
  background: var(--border-card);
  margin: 8px 0;
}
.mobile-menu-socials {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.mobile-menu-cta {
  margin-top: 16px;
}
.mobile-menu-cta .btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 16px;
}
body.menu-open { overflow: hidden; }

/* =============================================
   АДАПТИВ — ПЛАНШЕТ 1024px
   ============================================= */
@media (max-width: 1024px) {
  .directions-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .header-actions .btn-primary span { display: none; }
}

/* =============================================
   АДАПТИВ — МОБИЛЬНЫЙ 768px
   ВАЖНО: этот блок должен перебивать .nav выше
   (структурные правила .nav теперь лежат ВЫШЕ,
   поэтому display: none здесь срабатывает)
   ============================================= */
@media (max-width: 768px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header-actions .icon-btn { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-trust { flex-wrap: wrap; gap: 20px; }

  .problems-grid { grid-template-columns: 1fr; }
  .problems-cta { margin-top: 0; }

  .utp-grid { grid-template-columns: 1fr; }
  .promo-two-grid { grid-template-columns: 1fr; }

  .steps-grid { flex-direction: column; gap: 20px; }
  .steps-grid::before { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }

  .reviews-grid { grid-template-columns: 1fr; }

  .cta-inner { flex-direction: column; text-align: center; }
  .cta-title { font-size: 24px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; gap: 12px; }

  section { padding: 48px 0; }
  .section-title { font-size: 24px; }
}

/* =============================================
   АДАПТИВ — МАЛЕНЬКИЕ ТЕЛЕФОНЫ 480px
   ============================================= */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .logo-tagline { display: none; }
  .header-actions .btn-primary { padding: 8px 14px; font-size: 12px; }

  .hero { padding: 48px 0 40px; }
  .hero-eyebrow { font-size: 11px; padding: 4px 10px; }
  .hero-desc { font-size: 15px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; min-height: 48px; }
  .hero-trust { gap: 16px; }
  .trust-num { font-size: 18px; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat-item { padding: 20px 12px; border: 1px solid var(--border-card); }
  .stat-num { font-size: 28px; }

  .directions-grid { grid-template-columns: 1fr; gap: 10px; }

  .step { text-align: left; display: flex; flex-direction: column; align-items: flex-start; }
  .step-num { margin: 0 0 10px 0; width: 44px; height: 44px; font-size: 16px; }

  .review-card { padding: 20px; }
  .utp-card { padding: 24px; }
  .cta-final .btn { width: 100%; justify-content: center; min-height: 48px; }

  .btn { min-height: 44px; }
  .dir-card { min-height: 64px; }

  section { padding: 40px 0; }
}

/* =============================================
   АДАПТИВ — ОЧЕНЬ МАЛЕНЬКИЕ ТЕЛЕФОНЫ 360px
   ============================================= */
@media (max-width: 360px) {
  .logo-name { font-size: 14px; }
  .header-actions .btn-primary { display: none; }
  .burger { margin-left: auto; }
}

.fullstory {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

/* ====================== ОБЩИЕ СТИЛИ ФОРМ ====================== */
.form-title {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
}

.form-group input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(43,127,255,0.15);
}

.btn-full {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    margin-top: 10px;
}

.form-links {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 14px;
}

.form-links a {
    color: var(--accent);
}

/* ====================== USERINFO ====================== */
.userinfo-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
}

.userinfo-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-card);
}

.userinfo-row:last-child {
    border-bottom: none;
}

.userinfo-row .label {
    color: var(--text-secondary);
    font-size: 14px;
}

.userinfo-row .value {
    font-weight: 500;
    color: var(--text-primary);
}

.userinfo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.userinfo-actions .btn {
    flex: 1;
    min-width: 180px;
    justify-content: center;
}

.form-container {
    max-width: 460px;
    margin: 40px auto;
    padding: 40px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
}

@media (max-width: 480px) {
    .form-container,
    .userinfo-page {
        margin: 20px 12px;
        padding: 30px 20px;
    }
}

.form-container h1.form-title {
    margin-bottom: 10px;
}

.form-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 15px;
}

/* =============================================
   ПРИЖАТИЕ ФУТЕРА К НИЗУ СТРАНИЦЫ
   ============================================= */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* =============================================
   ВЫПАДАЮЩЕЕ МЕНЮ
   (структурные правила .nav, .nav ul,
   .nav > li, .nav a теперь лежат ВЫШЕ — 
   в секции HEADER / НАВИГАЦИЯ)
   ============================================= */
.nav .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 100;
}

.nav li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav .dropdown li {
    display: block;
}

.nav .dropdown li a {
    display: block;
    padding: 8px 20px;
    border-radius: 0;
    white-space: nowrap;
}

.nav .dropdown li a:hover {
    background: rgba(43,127,255,0.1);
    color: var(--accent);
}

/* =============================================
   АКТИВНАЯ ПОДСВЕТКА МЕНЮ
   ============================================= */
.nav a.active,
.nav li.active > a {
    color: var(--text-primary);
    background: rgba(43,127,255,0.14);
    box-shadow: inset 0 0 0 1px rgba(43,127,255,0.35);
}

.nav a.active:hover,
.nav li.active > a:hover {
    color: #fff;
    background: rgba(43,127,255,0.22);
}

.nav li.has-dropdown.active > a {
    color: var(--accent);
    background: rgba(43,127,255,0.10);
    box-shadow: inset 0 0 0 1px rgba(43,127,255,0.3);
}

.nav li.has-dropdown.active > a:hover {
    color: var(--cyan);
    background: rgba(43,127,255,0.16);
}

.nav li.has-dropdown.active > a::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    box-shadow: 0 0 8px var(--accent);
}

.nav .dropdown li.active > a,
.nav .dropdown a.active {
    color: var(--accent);
    background: rgba(43,127,255,0.10);
    font-weight: 600;
    position: relative;
    padding-left: 28px;
}

.nav .dropdown li.active > a::before,
.nav .dropdown a.active::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 6px var(--accent);
}

.nav .dropdown li.active > a:hover {
    background: rgba(43,127,255,0.16);
    color: var(--cyan);
}

.mobile-menu a.active {
    color: var(--accent);
    background: rgba(43,127,255,0.12);
    border-color: rgba(43,127,255,0.35);
}

/* =============================================
   СТАТИЧЕСКИЕ СТРАНИЦЫ
   ============================================= */
.static-page {
    padding: 60px 0;
}

.static-title {
    font-family: var(--font-head);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent);
}

.static-text {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

.static-text p {
    margin-bottom: 20px;
}

.static-text h2,
.static-text h3,
.static-text h4 {
    font-family: var(--font-head);
    color: var(--text-primary);
    margin: 30px 0 15px 0;
}

.static-text h2 { font-size: 28px; }
.static-text h3 { font-size: 24px; }
.static-text h4 { font-size: 20px; }

.static-text ul,
.static-text ol {
    margin: 15px 0 15px 30px;
}

.static-text li {
    margin-bottom: 8px;
}

.static-text a {
    color: var(--accent);
    text-decoration: underline;
}

.static-text a:hover {
    color: var(--accent-dark);
}

.static-text img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
}

.static-text blockquote {
    background: var(--bg-card);
    border-left: 4px solid var(--accent);
    padding: 20px 30px;
    margin: 20px 0;
    border-radius: var(--radius);
    font-style: italic;
}

.static_pages {
    margin-top: 40px;
    text-align: center;
}

/* =============================================
   СТРАНИЦА ДОБАВЛЕНИЯ НОВОСТИ (addnews)
   ============================================= */
.addnews-page {
    padding: 40px 0;
}

.addnews-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-card);
}

.addnews-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
}

.form-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.required-star {
    color: #e85319;
    font-size: 14px;
}

.wide {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
}

.wide:focus {
    outline: none;
    border-color: var(--accent);
}

textarea.wide {
    resize: vertical;
    min-height: 120px;
}

select.wide {
    cursor: pointer;
}

.checkbox {
    margin-top: 12px;
}

.checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox input {
    width: auto;
    margin: 0;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.required-hint {
    margin: 20px 0;
    padding: 12px;
    background: rgba(232, 83, 25, 0.1);
    border-radius: 8px;
    font-size: 13px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.addvote {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 100px;
}

.info-card-title {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.info-card-content p {
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.form-submit {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-card);
}

.captcha-block {
    flex: 1;
    min-width: 200px;
}

.captcha-block img {
    display: block;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .addnews-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .addnews-sidebar {
        order: -1;
    }

    .info-card {
        position: static;
    }

    .form-submit {
        flex-direction: column;
    }

    .captcha-block {
        width: 100%;
    }
}

/* =============================================
   FULLSTORY
   ============================================= */
.fullstory-block {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin: 40px 0;
}

.fullstory-title {
    font-family: var(--font-head);
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.fullstory-category {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 12px;
}

.fullstory-category a {
    color: var(--accent);
    transition: color 0.2s ease;
}

.fullstory-category a:hover {
    color: var(--cyan);
    text-decoration: underline;
}

.meta-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 8px;
}

.fullstory-tags {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-card);
}

.tag-list a {
    display: inline-block;
    background: rgba(43,127,255,0.1);
    padding: 4px 10px;
    border-radius: 20px;
    margin: 0 4px 4px 0;
    font-size: 12px;
    transition: all 0.2s;
}

.tag-list a:hover {
    background: var(--accent);
    color: #fff;
}

.fullstory-image {
    width: 100%;
    margin: 0 0 24px 0;
    text-align: center;
}

.fullstory-image img {
    width: 450px;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 0 auto;
}

.fullstory-text {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.fullstory-text p {
    margin-bottom: 1.2em;
}

.fullstory-text h2,
.fullstory-text h3,
.fullstory-text h4 {
    color: var(--text-primary);
    font-family: var(--font-head);
    line-height: 1.35;
    margin: 1.6em 0 0.6em;
}

.fullstory-text ul,
.fullstory-text ol {
    margin: 1em 0 1.2em 24px;
    color: var(--text-secondary);
}

.fullstory-text ul { list-style: disc; }
.fullstory-text ol { list-style: decimal; }

.fullstory-text li {
    margin-bottom: 0.4em;
}

.fullstory-text blockquote {
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent);
    padding: 16px 20px;
    margin: 1.5em 0;
    border-radius: 6px;
    color: var(--text-secondary);
    font-style: italic;
}

.fullstory-text img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
}

.fullstory-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid var(--border-card);
    margin-top: 20px;
}

.fullstory-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fullstory-actions {
    display: flex;
    gap: 10px;
}

.fullstory-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
}

.related-news-block {
    background: var(--bg-secondary);
    padding: 40px 0;
    margin: 40px 0;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.block-title {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .fullstory-block {
        padding: 20px;
        margin: 20px 0;
    }
    .fullstory-title {
        font-size: 26px;
    }
    .fullstory-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .fullstory-navigation {
        flex-direction: column;
    }
    .fullstory-navigation .btn {
        width: 100%;
        text-align: center;
    }
}

/* =============================================
   SHORTSTORY
   ============================================= */
.shortstory-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.shortstory-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(43, 127, 255, 0.1);
}

.shortstory-thumb {
    flex-shrink: 0;
    width: 200px;
    height: auto;
}

.shortstory-thumb a {
    display: block;
    width: 100%;
    height: auto;
}

.shortstory-thumb img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.shortstory-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.shortstory-category {
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 12px;
}

.shortstory-category a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.shortstory-category a:hover {
    color: var(--cyan);
    text-decoration: underline;
}

/* НОВОЕ: заголовок короткой новости */
.shortstory-title {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    transition: color 0.2s ease;
}

.shortstory-title a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shortstory-title a:hover {
    color: var(--accent);
}

.shortstory-text {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 16px;
}

.shortstory-text p {
    margin: 0 0 10px 0;
}

.shortstory-text p:last-child {
    margin-bottom: 0;
}

.shortstory-more {
    margin-top: auto;
}

@media (max-width: 768px) {
    .shortstory-card {
        flex-direction: column;
        padding: 18px;
    }

    .shortstory-thumb {
        width: 100%;
        height: auto;
    }

    .shortstory-thumb img {
        width: 100%;
        height: auto;
        border-radius: 6px;
    }

    .shortstory-title {
        font-size: 1.1rem;
    }
}

/* =============================================
   ИСПРАВЛЕНИЕ КАРТИНОК И ПЕРЕНОСОВ ТЕКСТА
   ============================================= */
.shortstory-text img,
.fullstory-text img,
.static-text img {
    display: block;
    max-width: 600px;
    width: 100%;
    height: auto;
}

.shortstory-text,
.fullstory-text,
.static-text {
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

/* =============================================
   НАВИГАЦИЯ ПО СТРАНИЦАМ (navigation.tpl)
   ============================================= */
.dle-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 36px 0 8px;
}

.dle-nav-side {
    display: flex;
    align-items: center;
}

.dle-nav-side > a,
.dle-nav-side > span {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border: 1px solid var(--border-card);
    border-radius: 8px;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.dle-nav-side > a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.dle-nav-side > span {
    color: var(--text-muted);
    opacity: 0.5;
}

.dle-nav-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dle-nav-pages a,
.dle-nav-pages > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.dle-nav-pages a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.dle-nav-pages > span:not(.nav_ext) {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 18px var(--accent-glow);
}

.dle-nav-pages .nav_ext {
    min-width: auto;
    height: auto;
    padding: 0 2px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    box-shadow: none;
}

/* =============================================
   НАВИГАЦИЯ ВНУТРИ ПУБЛИКАЦИИ
   ============================================= */
.dle-split-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 28px 0 0;
    padding: 16px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
}

.dle-split-nav-label {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.dle-split-nav-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.dle-split-nav-pages a,
.dle-split-nav-pages span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.dle-split-nav-pages a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.dle-split-nav-pages > span:not(.nav_ext) {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.dle-split-nav-pages .nav_ext {
    min-width: auto;
    height: auto;
    padding: 0 2px;
    background: transparent;
    border: none;
    color: var(--text-muted);
}

/* =============================================
   ПОХОЖИЕ НОВОСТИ
   ============================================= */
.related-news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.related-news-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(43, 127, 255, 0.12);
    transform: translateY(-2px);
}

.related-news-body {
    display: flex;
    gap: 14px;
    padding: 16px;
    align-items: flex-start;
    height: 100%;
}

.related-news-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.related-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.35s ease;
}

.related-news-card:hover .related-news-thumb img {
    transform: scale(1.06);
}

.related-news-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.related-news-cat {
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
}

.related-news-cat a {
    color: var(--accent);
}

.related-news-cat a:hover {
    color: var(--cyan);
}

.related-news-title {
    margin: 0;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.related-news-title a {
    color: var(--text-primary);
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-news-card:hover .related-news-title a {
    color: var(--accent);
}

.related-news-text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-news-date {
    margin-top: auto;
    color: var(--text-muted);
    font-size: 12px;
}

@media (max-width: 640px) {
    .related-news-thumb {
        width: 90px;
        height: 90px;
    }

    .related-news-body {
        padding: 12px;
        gap: 10px;
    }

    .related-news-title {
        font-size: 14px;
    }

    .related-news-text {
        display: none;
    }
}

/* =============================================
   ДУБЛИРУЮЩИЕСЯ КАРТИНКИ
   ============================================= */
.is-dup {
    display: none !important;
}

/* =============================================
   ПОДЕЛИТЬСЯ В СОЦСЕТИ
   ============================================= */
.custom-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    font-size: 14px;
}
.share-btn {
    padding: 6px 12px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}
.share-btn.tg { background: #229ED9; }
.share-btn.vk { background: #0077FF; }
.share-btn.wa { background: #25D366; }
.share-btn:hover { opacity: 0.85; }

/* =============================================
   БЛОК СКАЧИВАНИЯ ФАЙЛА
   ============================================= */
.download-block {
    margin: 32px 0;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 16px;
}

.download-block .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 480px) {
    .download-block {
        margin: 24px 0;
        padding: 16px;
    }
}