/* ===========================================================
   АПАЧИ Сервисный Центр — Brand Styles
   Основана на дизайн-системе tttdnr.ru
   Синяя палитра бренда АПАЧИ
   =========================================================== */

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

:root {
  /* — Brand palette АПАЧИ — */
  --primary:        #E53E3E;
  --primary-hover:  #C53030;
  --primary-dark:   #9B2C2C;
  --primary-glow:   rgba(229, 62, 62, 0.28);
  --primary-tint:   rgba(229, 62, 62, 0.08);

  --accent:         #F59E0B;
  --accent-tint:    rgba(245, 158, 11, 0.15);

  --success:        #10B981;
  --success-dark:   #059669;

  /* — Dark surfaces (как в tttdnr) — */
  --bg-main:        #1A1A1A;
  --bg-elevated:    #2D2D2D;
  --bg-secondary:   #333333;
  --bg-tertiary:    #404040;
  --bg-hover:       #4A4A4A;

  --border:         rgba(255,255,255,0.10);
  --border-strong:  rgba(255,255,255,0.18);

  --text-main:       #FFFFFF;
  --text-secondary:  #B0B0B0;
  --text-muted:      #808080;

  /* — Shape — */
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow:    0 10px 30px rgba(0,0,0,0.40);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.25);

  --transition: .2s ease;

  --safe-top:    env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
  --safe-left:   env(safe-area-inset-left);
  --safe-right:  env(safe-area-inset-right);

  --header-h: 64px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}
body {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--safe-bottom);
  overflow-x: clip;
  width: 100%;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea, button { font-size: 16px; }
h1, h2, h3, h4 { letter-spacing: -0.01em; line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800; margin-bottom: 24px; }
h3 { font-size: 1.15rem; font-weight: 700; }

/* ===== Container ===== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  padding-left:  max(20px, var(--safe-left));
  padding-right: max(20px, var(--safe-right));
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: background var(--transition), transform var(--transition), border-color var(--transition), color var(--transition);
  min-height: 48px;
  min-width: 48px;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 6px 22px var(--primary-glow);
}
.btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn--outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-strong);
}
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }
.btn--accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--accent:hover { background: #d97706; color: #fff; }
.btn--full { width: 100%; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,26,26,0.88);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  transition: transform .3s ease;
}
.header--hidden { transform: translateY(-100%); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: var(--text-main);
  white-space: nowrap;
}
.header__logo:hover { color: var(--text-main); }
.header__logo img {
  width: 36px; height: 36px;
  border-radius: 10px;
  object-fit: contain;
}
.header__logo-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
  display: block;
}
.header__nav {
  display: none;
  gap: 24px;
  align-items: center;
}
.header__nav a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition);
}
.header__nav a:hover { color: var(--text-main); }
.header__phone {
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  display: none;
}
.header__phone:hover { color: var(--primary-hover); }
.header__call-btn {
  display: none;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background var(--transition);
}
.header__call-btn:hover { background: var(--primary-hover); color: #fff; }
.header__burger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 10px;
  min-width: 44px; min-height: 44px;
  justify-content: center; align-items: center;
}
.header__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.header__burger.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__burger.is-active span:nth-child(2) { opacity: 0; }
.header__burger.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #1A1A1A;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.mobile-menu__close span {
  position: absolute;
  width: 22px; height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}
.mobile-menu__close span:first-child { transform: rotate(45deg); }
.mobile-menu__close span:last-child  { transform: rotate(-45deg); }
.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: calc(var(--header-h) + 24px) 24px 40px;
  min-height: 100%;
}
.mobile-menu__inner a {
  display: block;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s ease;
}
.mobile-menu__inner a:hover { color: var(--primary); }
.mobile-menu__phone {
  margin-top: 24px;
  padding: 0 4px;
}
.mobile-menu__phone a {
  display: block;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  border: none !important;
  padding: 8px 0 !important;
}

@media (min-width: 900px) {
  .mobile-menu { display: none; }
  .header__nav { display: flex; }
  .header__phone { display: block; }
  .header__call-btn { display: block; }
  .header__burger { display: none; }
}

/* ===== HERO ===== */
.hero {
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #111827 0%, #1a1a1a 50%, #0f172a 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 40%, rgba(229,62,62,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
  position: relative;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229,62,62,0.15);
  border: 1px solid rgba(229,62,62,0.35);
  color: #FCA5A5;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: var(--text-main);
}
.hero h1 span { color: #E53E3E; }
.hero__sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 540px;
}
.hero__buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero__badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.hero__pill span { color: var(--success); }

/* Hero visual card */
.hero__visual {
  display: flex;
  justify-content: center;
}
.hero__card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 100%;
  max-width: 380px;
}
.hero__card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.service-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: background var(--transition);
}
.service-chip:last-child { margin-bottom: 0; }
.service-chip:hover { background: rgba(255,255,255,0.09); }
.chip-icon { font-size: 20px; }
.chip-text { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.chip-badge {
  margin-left: auto;
  background: rgba(16,185,129,0.15);
  color: #6EE7B7;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 100px;
  font-weight: 700;
  white-space: nowrap;
}

/* ===== RIBBON ===== */
.ribbon {
  background: var(--primary);
  padding: 13px 20px;
  overflow: hidden;
}
.ribbon__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 36px;
  justify-content: center;
  flex-wrap: wrap;
}
.ribbon__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* ===== SECTION BASE ===== */
section { padding: 80px 0; }
.section__label {
  display: inline-block;
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.section__title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}
.section__sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.65;
}
.section__head { margin-bottom: 48px; }

/* ===== SERVICES GRID ===== */
.services { background: var(--bg-elevated); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--primary);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); color: var(--text-main); }
.service-card:hover::after { opacity: 1; }
.service-card__icon {
  width: 52px; height: 52px;
  background: var(--primary-tint);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  transition: background var(--transition);
}
.service-card:hover .service-card__icon { background: var(--primary); }
.service-card h3 { font-size: 1.15rem; color: var(--text-main); margin: 0; }
.service-card p { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.6; }
.service-card__link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  display: flex; align-items: center; gap: 4px;
  transition: gap var(--transition);
}
.service-card:hover .service-card__link { gap: 8px; }

/* ===== WHY SECTION ===== */
.why { background: var(--bg-main); }
.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.why-card {
  display: flex;
  gap: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform var(--transition), border-color var(--transition);
}
.why-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.why-card__icon {
  width: 50px; height: 50px;
  background: var(--primary-tint);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  transition: background var(--transition);
}
.why-card:hover .why-card__icon { background: var(--primary); }
.why-card h3 { font-size: 1rem; color: var(--text-main); margin-bottom: 6px; }
.why-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ===== PRICES SECTION ===== */
.prices { background: var(--bg-elevated); }
.prices__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.price-tab {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.price-tab.active,
.price-tab:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.prices__table {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: none;
}
.prices__table.active { display: block; }
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  transition: background var(--transition);
}
.price-row:last-child { border-bottom: none; }
.price-row:hover { background: var(--bg-tertiary); }
.price-row__name {
  font-size: 15px;
  color: var(--text-main);
  font-weight: 500;
}
.price-row__price {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.price-row__note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== REVIEWS ===== */
.reviews { background: var(--bg-main); }
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--transition);
}
.review-card:hover { transform: translateY(-3px); }
.review-stars { color: var(--accent); font-size: 16px; letter-spacing: 2px; }
.review-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}
.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.reviewer__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}
.reviewer__name { font-size: 14px; font-weight: 700; color: var(--text-main); }
.reviewer__meta { font-size: 12px; color: var(--text-muted); }

/* ===== CONTACTS ===== */
.contacts { background: var(--bg-elevated); }
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.contact-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border: none; padding-bottom: 0; }
.contact-icon {
  width: 44px; height: 44px;
  background: var(--primary-tint);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 4px;
}
.contact-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}
.contact-value a { color: var(--text-main); }
.contact-value a:hover { color: var(--primary); }
.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.hours-row { font-size: 14px; color: var(--text-secondary); }
.map-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 380px;
  background: var(--bg-tertiary);
}
.map-block iframe { width: 100%; height: 100%; border: 0; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #FC8181 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section .section__title { color: #fff; position: relative; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 17px; margin-bottom: 36px; position: relative; }
.cta-section .section__label {
  background: rgba(255,255,255,0.15);
  color: #fff;
  position: relative;
}
.cta__buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
}

/* ===== FOOTER ===== */
.footer {
  background: #111111;
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer__logo img {
  width: 34px; height: 34px;
  border-radius: 8px;
  object-fit: contain;
}
.footer__logo-text {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
}
.footer__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.footer__phones a {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.footer__phones a:hover { color: var(--primary); }
.footer__col h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 16px;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col ul li a {
  font-size: 13px;
  color: var(--text-muted);
}
.footer__col ul li a:hover { color: var(--text-main); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy { font-size: 12px; color: var(--text-muted); }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__links a { font-size: 12px; color: var(--text-muted); }
.footer__links a:hover { color: var(--text-secondary); }

/* ===== SEO MODELS BLOCK ===== */
.seo-models {
  background: #0d1117;
  padding: 60px 0;
}
.seo-models__title {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 40px;
}
.seo-models__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.seo-col h3 {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.seo-col ul { display: flex; flex-direction: column; gap: 7px; }
.seo-col ul li a {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}
.seo-col ul li a:hover { color: var(--text-secondary); }
.seo-col ul li a.more {
  color: var(--primary);
  font-weight: 700;
}

/* ===== FLOATING BUTTON ===== */
.float-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
}
.float-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--primary);
  color: #fff;
  padding: 14px 22px;
  border-radius: 100px;
  font-size: 15px; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px var(--primary-glow);
  transition: all var(--transition);
  animation: pulse 2.5s infinite;
}
.float-btn:hover { transform: scale(1.05); color: #fff; box-shadow: 0 6px 28px var(--primary-glow); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px var(--primary-glow); }
  50% { box-shadow: 0 8px 32px rgba(37,99,235,0.5); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { display: none !important; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .seo-models__grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 60px 0; }
}
@media (max-width: 640px) {
  .services__grid { grid-template-columns: 1fr; }
  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; }
  .hero__badges { gap: 8px; }
  .footer__top { grid-template-columns: 1fr; }
  .seo-models__grid { grid-template-columns: 1fr; }
  .cta__buttons { flex-direction: column; align-items: stretch; }
  .cta__buttons .btn { text-align: center; }
  .float-btn .float-label { display: none; }
  .float-btn { padding: 0; width: 56px; height: 56px; border-radius: 50%; justify-content: center; }
}
@media (max-width: 480px) {
  .ribbon__inner { gap: 12px; }
  .price-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .reviews__grid { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
}

/* ===== ACCORDION (mobile seo) ===== */
@media (max-width: 640px) {
  .seo-models__grid { display: flex; flex-direction: column; gap: 0; }
  .seo-accordion-item { border-bottom: 1px solid var(--border); }
  .seo-accordion-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 4px; cursor: pointer; user-select: none;
  }
  .seo-accordion-header h3 { margin-bottom: 0 !important; }
  .seo-accordion-arrow {
    width: 20px; height: 20px; flex-shrink: 0;
    transition: transform .3s; color: var(--primary);
  }
  .seo-accordion-item.open .seo-accordion-arrow { transform: rotate(180deg); }
  .seo-accordion-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .seo-accordion-item.open .seo-accordion-body { max-height: 600px; }
}
@media (min-width: 641px) {
  .seo-accordion-arrow { display: none; }
  .seo-accordion-body { max-height: none !important; overflow: visible !important; }
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
  --bg-main:        #F8F9FA;
  --bg-elevated:    #FFFFFF;
  --bg-secondary:   #F1F3F5;
  --bg-tertiary:    #E9ECEF;
  --text-main:      #1A1A1A;
  --text-secondary: #495057;
  --text-muted:     #868E96;
  --border:         rgba(0,0,0,0.10);
  --border-strong:  rgba(0,0,0,0.18);
}
[data-theme="light"] .header {
  background: rgba(255,255,255,0.95);
  border-bottom-color: rgba(0,0,0,0.10);
}
[data-theme="light"] .mobile-menu {
  background: #F8F9FA;
}
[data-theme="light"] .hero {
  background: linear-gradient(160deg, #FFF5F5 0%, #F8F9FA 100%);
}
[data-theme="light"] .hero::before { display: none; }
[data-theme="light"] .ribbon {
  background: var(--primary);
}
[data-theme="light"] .service-card {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.10);
}
[data-theme="light"] .service-card:hover {
  border-color: var(--primary);
}
[data-theme="light"] .why {
  background: #F1F3F5;
}
[data-theme="light"] .why-card {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .prices {
  background: #F8F9FA;
}
[data-theme="light"] .price-row {
  border-bottom-color: rgba(0,0,0,0.07);
}
[data-theme="light"] .price-row:hover {
  background: #FFF5F5;
}
[data-theme="light"] .review-card {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .contact-block {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .contact-item {
  border-bottom-color: rgba(0,0,0,0.07);
}
[data-theme="light"] .footer {
  background: #1A1A1A;
}
[data-theme="light"] .seo-models {
  background: #F1F3F5;
}
[data-theme="light"] .seo-col {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .hero__card {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.10);
}
[data-theme="light"] .hero__badge {
  background: rgba(229,62,62,0.10);
  color: #C53030;
  border-color: rgba(229,62,62,0.25);
}
[data-theme="light"] .hero__pill {
  background: rgba(0,0,0,0.06);
  color: var(--text-secondary);
}
[data-theme="light"] .prices__tabs {
  background: #E9ECEF;
}
[data-theme="light"] .price-tab.active {
  background: #FFFFFF;
  color: var(--primary);
}

/* ===== HEADER MESSENGERS + THEME TOGGLE ===== */
.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header__messenger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  text-decoration: none;
  transition: transform var(--transition), opacity var(--transition);
  flex-shrink: 0;
}
.header__messenger:hover { transform: scale(1.12); opacity: 0.85; }
.header__messenger--wa { background: #25D366; }
.header__messenger--tg { background: #229ED9; }
.header__messenger svg { width: 18px; height: 18px; fill: #fff; }

.header__theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-secondary);
  cursor: pointer;
  font-size: 17px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  flex-shrink: 0;
  line-height: 1;
}
.header__theme-toggle:hover { background: var(--bg-tertiary); transform: rotate(20deg); }

@media (min-width: 640px) {
  .header__messenger { display: flex; }
  .header__actions { gap: 10px; }
}
