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

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --accent: #06b6d4;
  --success: #10b981;
  --danger: #ef4444;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --dark-3: #334155;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --light: #f1f5f9;
  --lighter: #f8fafc;
  --border: #e2e8f0;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1a3056 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.25);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --logo-gear-size: 105px;
  --logo-gear-wrap-width: 130px;
  --logo-gear-wrap-height: 68px;
  --logo-gear-wrap-shift-x: -55px;
  --logo-gear-2-shift-x: 58px;
  --logo-gear-1-shift-y: -10px;
  --logo-gear-2-shift-y: -2px;
  --logo-text-shift-x: -2px;
  --logo-brand-gap-right: 38px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark);
  background: var(--lighter);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide block placeholders until API data is applied */
body:not(.data-loaded) .block {
  visibility: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  position: relative;
  z-index: 200;
  padding: 14px 0;
  transition: all 0.3s ease;
}

body.navbar-is-sticky {
  padding-top: var(--navbar-sticky-offset, 76px);
}

body.navbar-is-sticky .navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
}

.logo-text-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.logo-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-gears {
  position: relative;
  width: var(--logo-gear-wrap-width);
  height: var(--logo-gear-wrap-height);
  flex: 0 0 var(--logo-gear-wrap-width);
  overflow: visible;
  margin-left: var(--logo-gear-wrap-shift-x);
}

.logo-gears .gear {
  position: absolute;
  line-height: 1;
  display: block;
}

.logo-gears .gear-1 {
  font-size: var(--logo-gear-size);
  left: 0;
  top: var(--logo-gear-1-shift-y);
  color: var(--primary);
  animation: logoGearCw 8s linear infinite;
}

.logo-gears .gear-2 {
  font-size: var(--logo-gear-size);
  left: var(--logo-gear-2-shift-x);
  top: var(--logo-gear-2-shift-y);
  color: var(--accent);
  animation: logoGearCcw 6s linear infinite;
}

.logo-monument {
  position: relative;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  background: linear-gradient(160deg, #ffd84a 0%, #f1bf00 55%, #d99a00 100%);
  border-radius: 11px;
  margin-right: 0;
  box-shadow:
    0 6px 14px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -1px 0 rgba(0,0,0,0.10);
  border: 2px solid rgba(0,0,0,0.28);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.3s ease;
}

/* Мягкий «полированный» блик, проезжающий по плитке */
.logo-monument::before {
  content: "";
  position: absolute;
  top: -120%;
  left: -40%;
  width: 60%;
  height: 220%;
  background: linear-gradient(115deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.55) 50%,
    rgba(255,255,255,0) 100%);
  transform: rotate(18deg) translateX(-30%);
  animation: logoMonumentShine 7s ease-in-out infinite;
  pointer-events: none;
}

.logo-monument svg {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: block;
}

/* Hover на всю группу логотипа — приподнимает плитку */
.logo:hover .logo-monument {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 10px 22px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -1px 0 rgba(0,0,0,0.12);
}

/* Блик быстро проходит плитку (0–20%), затем волну подхватывает текст */
@keyframes logoMonumentShine {
  0%   { transform: rotate(18deg) translateX(-60%); opacity: 0; }
  3%   { opacity: 0.9; }
  20%  { transform: rotate(18deg) translateX(280%); opacity: 0.9; }
  26%, 100% { transform: rotate(18deg) translateX(280%); opacity: 0; }
}

.logo-text {
  margin-left: var(--logo-text-shift-x);
  color: #b98900;
  font-weight: 900;
  font-size: 36px;
  letter-spacing: -1.2px;
  line-height: 0.95;
  /* Бегущий блик — продолжение волны, начавшейся на плитке-монументе.
     Базовый цвет градиента = #b98900, поэтому вне блика текст выглядит как раньше. */
  background-image: linear-gradient(
    105deg,
    #b98900 0%, #b98900 38%,
    #ffd969 46%, #fff6d8 50%, #ffd969 54%,
    #b98900 62%, #b98900 100%
  );
  background-size: 300% 100%;
  background-repeat: no-repeat;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoTextShine 7s ease-in-out infinite;
}

/* Волна доезжает по слову ГРАНТТАШ.
   Синхронизировано с logoMonumentShine (обе анимации 7s):
   монумент отдаёт блик на 20%, текст ведёт его 20%→55%, далее пауза. */
@keyframes logoTextShine {
  0%, 20%   { background-position: 100% 0; }
  55%, 100% { background-position: 0% 0; }
}

.logo-flagpole {
  width: 16px;
  height: 58px;
  margin-left: 0;
  position: relative;
  display: inline-block;
}
.logo-flagpole::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 58px;
  background: #111;
  border-radius: 2px;
}
.logo-flagpole::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 2px;
  width: 20px;
  height: 14px;
  border-radius: 1px 3px 3px 1px;
  background:
    linear-gradient(to bottom,
      #0f8a47 0%,
      #0f8a47 45%,
      #ffffff 45%,
      #ffffff 55%,
      #d62828 55%,
      #d62828 100%);
  transform-origin: left center;
  /* Плавная многоточечная волна — спокойнее, уважительнее */
  animation: logoFlagWave 3.6s ease-in-out infinite;
  box-shadow: 0 1px 2px rgba(0,0,0,0.22);
}

@keyframes logoGearCw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes logoGearCcw {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@keyframes logoFlagWave {
  0%   { transform: rotate(0deg)   scaleX(1.00); }
  20%  { transform: rotate(4deg)   scaleX(0.99); }
  40%  { transform: rotate(7deg)   scaleX(0.97); }
  60%  { transform: rotate(4deg)   scaleX(0.99); }
  80%  { transform: rotate(-1deg)  scaleX(1.00); }
  100% { transform: rotate(0deg)   scaleX(1.00); }
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: 14px;
  margin-right: var(--logo-brand-gap-right);
}
.logo-social-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff3bf 0%, #ffe17a 100%);
  color: #2a2a2a;
  border: 1.5px solid rgba(42,42,42,0.85);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  /* Мягкий, премиальный пульс вместо мигания «белый↔красный» */
  animation: socialPulse 2.6s ease-in-out infinite;
}
/* Радиальный glow вокруг бейджа — расходится как круги по воде */
.logo-social-badge::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(241,191,0,0.55);
  animation: socialRing 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes socialPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  }
  50% {
    transform: scale(1.04);
    box-shadow:
      0 2px 8px rgba(0,0,0,0.10),
      0 0 0 3px rgba(241,191,0,0.18);
  }
}
@keyframes socialRing {
  0%   { box-shadow: 0 0 0 0    rgba(241,191,0,0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(241,191,0,0); }
  100% { box-shadow: 0 0 0 0    rgba(241,191,0,0); }
}

.navbar-tagline {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 0.1px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
  display: none;
}

@media (max-width: 600px) {
  .navbar-tagline { display: none; }
}

.navbar-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 11px 26px;
  border: none;
  border-radius: var(--radius-full);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.1px;
  line-height: 1;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.55);
}

.btn-primary:active { transform: translateY(0); }

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
  background: var(--light);
  color: var(--dark-3);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
  color: var(--dark);
}

.btn-admin, .btn-stats {
  background: rgba(99, 102, 241, 0.07);
  color: var(--primary);
  border: 1.5px solid rgba(99, 102, 241, 0.18);
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.btn-admin:hover, .btn-stats:hover {
  background: rgba(99, 102, 241, 0.14);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-edit {
  position: absolute;
  top: 14px;
  right: 14px;
  background: white;
  border: 1.5px solid var(--border);
  padding: 6px 14px;
  font-size: 11.5px;
  border-radius: var(--radius-full);
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
  color: var(--primary);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  font-family: 'Inter', sans-serif;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.editable-block:hover .btn-edit {
  opacity: 1;
}

.btn-edit:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.btn-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--gray);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-close:hover {
  background: var(--light);
  color: var(--dark);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
  font-size: 12px;
  padding: 6px 12px;
}

.btn-danger:hover {
  background: var(--danger);
  color: white;
}

/* ===== SECTIONS / BLOCKS ===== */
.block {
  margin: 28px 0;
  padding: 52px;
  background: white;
  border-radius: var(--radius-xl);
  position: relative;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.editable-block:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.22);
}

/* ===== SECTION HEADING ===== */
.block > h2 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--dark);
  letter-spacing: -1px;
  line-height: 1.1;
}

/* ===== HERO ===== */
#block-hero {
  background: var(--gradient-hero);
  border: none;
  margin-top: 0;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: 72px 52px;
  overflow: visible;
}

/* Glowing orbs */
#block-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

#block-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.05;
  color: white;
  letter-spacing: -2px;
}

.hero-content p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 40px;
  line-height: 1.7;
  font-weight: 500;
}

#hero-subtitle {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.hero-content .btn-primary {
  font-size: 15px;
  padding: 15px 36px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  color: white;
}

.hero-content .btn-primary:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.hero-image-wrap {
  position: relative;
}

.hero-mobile-cta {
  display: none;
}

.hero-media-only .hero {
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

.hero-media-only .hero-content,
.hero-media-only .hero-mobile-cta {
  display: none !important;
}

.hero-media-only .hero-image-wrap {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.hero-media-only #hero-image,
.hero-media-only .hero-video {
  max-height: clamp(320px, 54vw, 720px);
  height: auto;
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: -16px;
  background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(6,182,212,0.2));
  border-radius: var(--radius-lg);
  filter: blur(20px);
  z-index: 0;
}

#hero-image {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  max-height: 420px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.45);
  position: relative;
  z-index: 1;
  display: block;
  transform-origin: center;
  transition: transform 0.3s ease;
}

/* Hero in video mode: make media panel larger and more prominent */
#block-hero.hero-video-mode .hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 46px;
  align-items: stretch;
}

#block-hero.hero-video-mode .hero-image-wrap {
  display: flex;
  align-items: stretch;
  min-height: 420px;
  max-height: 70vh;        /* не лезем за пределы окна */
  overflow: hidden;        /* glow ::before и transform не выходят за блок */
}

#block-hero.hero-video-mode #hero-image,
#block-hero.hero-video-mode .hero-video {
  width: 100%;
  height: clamp(380px, 40vw, 560px);
  max-height: none;
}

/* Если ни видео, ни картинка не доступны — схлопываем wrap полностью,
   чтобы синяя дыра с glow не накладывалась на следующий блок. */
.hero-image-wrap.is-empty {
  display: none !important;
}
/* На десктопе при is-empty Hero превращается в одну широкую колонку */
#block-hero:has(.hero-image-wrap.is-empty) .hero {
  grid-template-columns: 1fr !important;
}

/* ===== HERO IMAGE RESIZE OVERLAY ===== */
.hero-image-wrap {
  position: relative;
  transform-origin: center center;
  transform: scale(1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.hero-image-resize-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.hero-image-resize-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-image-resize-content {
  background: white;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-image-resize-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.hero-image-size-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.hero-image-size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  transition: all 0.2s ease;
}

.hero-image-size-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.6);
}

.hero-image-size-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  transition: all 0.2s ease;
}

.hero-image-size-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.6);
}

.hero-image-resize-hints {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--gray-light);
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 0 4px;
}

#block-hero .btn-edit {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
}

#block-hero .btn-edit:hover {
  background: white;
  color: var(--primary);
  border-color: white;
}

/* ===== ADVANTAGES ===== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.advantage-item {
  background: var(--lighter);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: grab;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  user-select: none;
}

.advantage-item:active { cursor: grabbing; }

.advantage-item:hover {
  transform: translateY(-10px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  background: white;
}

.advantage-item.dragging {
  opacity: 0.35;
  transform: scale(0.94);
  cursor: grabbing;
}

.advantage-item.drag-over {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.04);
  transform: scale(1.02);
}

.advantage-icon {
  font-size: 52px;
  margin-bottom: 18px;
  display: block;
  line-height: 1;
}

.advantage-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
  letter-spacing: -0.3px;
}

.advantage-item p {
  font-size: 13.5px;
  color: var(--gray);
  line-height: 1.65;
}

/* Drag hint badge */
.drag-hint {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  color: var(--gray-light);
  opacity: 0;
  transition: opacity 0.2s;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.advantage-item:hover .drag-hint { opacity: 1; }

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.gallery-item {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: grab;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  display: block;
}

.gallery-item:active { cursor: grabbing; }

.gallery-item:hover {
  transform: scale(1.04);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  z-index: 1;
  position: relative;
}

.gallery-item.dragging { opacity: 0.35; }

/* Gallery Item Wrapper with Title and Description */
.gallery-item-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: grab;
}

.gallery-item-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  padding: 0 4px;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.gallery-item-description {
  font-size: 13px;
  color: var(--gray);
  margin: 0;
  padding: 0 4px;
  line-height: 1.6;
  text-align: left;
}

.gallery-description {
  margin: 22px auto 0;
  max-width: 980px;
  text-align: justify;
  text-justify: inter-word;
  font-size: 16px;
  line-height: 1.65;
  color: #4f6381;
  font-weight: 500;
  hyphens: auto;
}

/* ===== DESCRIPTIONS ===== */
#block-descriptions {
  background: linear-gradient(135deg, #fafafa 0%, #f0f4ff 100%);
}

.descriptions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 44px;
  counter-reset: steps;
}

.description-item {
  background: white;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  counter-increment: steps;
}

.description-item::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 60px;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
}

.description-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient);
  border-radius: 4px 0 0 4px;
}

.description-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.25);
}

.description-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
  letter-spacing: -0.3px;
}

.description-item p {
  font-size: 13.5px;
  color: var(--gray);
  line-height: 1.7;
}

/* ===== REVIEWS ===== */
#block-reviews {
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 100%);
  border: none;
}

#block-reviews > h2 {
  color: white;
}

#block-reviews .btn-edit {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
}

#block-reviews .btn-edit:hover {
  background: white;
  color: var(--primary);
  border-color: white;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.review-item {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.review-item::before {
  content: '"';
  position: absolute;
  top: 8px;
  left: 20px;
  font-size: 80px;
  color: rgba(99, 102, 241, 0.4);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  pointer-events: none;
}

.review-item:hover {
  background: rgba(255,255,255,0.11);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.review-rating {
  font-size: 15px;
  margin-bottom: 18px;
  letter-spacing: 3px;
}

.review-item p {
  font-size: 15px;
  font-style: italic;
  margin-bottom: 22px;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
}

.review-item strong {
  font-size: 13px;
  color: var(--primary-light);
  font-weight: 700;
}

/* ===== CTA BLOCK ===== */
.cta-block {
  text-align: center;
  padding: 90px 52px;
  background: var(--gradient);
  border: none;
  overflow: hidden;
  position: relative;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.cta-block::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.cta-block > h2,
.cta-main > h2 {
  color: white;
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
  position: relative;
  z-index: 1;
}

.cta-block > p,
.cta-main > p {
  font-size: 18px;
  margin-bottom: 44px;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-block .btn-primary {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 10px 40px rgba(0,0,0,0.22);
  position: relative;
  z-index: 1;
  font-size: 15px;
  padding: 16px 52px;
  font-weight: 800;
}

.cta-block .btn-primary:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.32);
  transform: translateY(-3px);
}

.cta-block .btn-edit {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.9);
}

.cta-block .btn-edit:hover {
  background: white;
  color: var(--primary);
  border-color: white;
}

/* ===== ADMIN PANEL ===== */
.admin-panel {
  position: fixed;
  right: 0;
  top: 0;
  width: 360px;
  height: 100vh;
  background: white;
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 48px rgba(0,0,0,0.12);
  z-index: 300;
  overflow-y: auto;
  transform: translateX(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.admin-panel.hidden {
  transform: translateX(100%);
  pointer-events: none;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--lighter);
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-header h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.3px;
}

.admin-content { padding: 20px 24px; }

.admin-content h3 {
  font-size: 11px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

#templates-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.template-card {
  background: var(--lighter);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.template-card:hover {
  border-color: var(--primary);
  background: white;
  box-shadow: var(--shadow-sm);
}

.template-card.active {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.04);
}

.template-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.template-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
}

.template-card-style {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(99,102,241,0.1);
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.template-card-tagline {
  font-size: 11px;
  color: var(--gray);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== STATS PANEL ===== */
.stats-panel {
  position: fixed;
  left: 0;
  top: 0;
  width: 300px;
  height: 100vh;
  background: white;
  border-right: 1px solid var(--border);
  box-shadow: 8px 0 48px rgba(0,0,0,0.12);
  z-index: 300;
  overflow-y: auto;
  transform: translateX(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-panel.hidden {
  transform: translateX(-100%);
  pointer-events: none;
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--lighter);
  position: sticky;
  top: 0;
  z-index: 1;
}

.stats-header h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
}

.stats-content { padding: 20px; }

.stat-item {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--lighter);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.stat-item:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.03);
}

.stat-item span:first-child {
  font-size: 11.5px;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.stat-item span:last-child {
  font-weight: 800;
  color: var(--primary);
  font-size: 28px;
  letter-spacing: -0.8px;
  line-height: 1;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal.hidden { display: none; }

.modal-content {
  background: white;
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.05);
  animation: modalIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.88) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px 22px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.modal-body { padding: 28px 32px 32px; }

/* ===== FORM ===== */
.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  font-size: 11.5px;
  color: var(--dark-3);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.form-input {
  width: 100%;
  padding: 11px 15px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  transition: all 0.2s ease;
  background: var(--lighter);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

textarea.form-input {
  resize: vertical;
  min-height: 88px;
  line-height: 1.6;
}

/* ===== ITEM EDITOR (inside modal) ===== */
.item-editor {
  background: var(--lighter);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease;
}

.item-editor:hover { border-color: rgba(99, 102, 241, 0.3); }

.item-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.item-editor-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

/* ===== POPUPS ===== */
#popups-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1500;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  z-index: 1500;
  padding: 24px;
}

.popup-content {
  background: white;
  border-radius: var(--radius-xl);
  padding: 52px 44px 44px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: popupIn 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

@keyframes popupIn {
  from { opacity: 0; transform: scale(0.78) translateY(48px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.popup-content h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--dark);
  letter-spacing: -0.6px;
}

.popup-content p {
  font-size: 15.5px;
  margin-bottom: 30px;
  color: var(--gray);
  line-height: 1.65;
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--lighter);
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--gray);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  line-height: 1;
}

.popup-close:hover {
  background: var(--border);
  color: var(--dark);
}

.popup-content .btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--dark);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ===== ERROR BANNER ===== */
.error-banner {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 12px 20px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  position: sticky;
  top: 57px;
  z-index: 190;
}

.error-banner code {
  background: rgba(255,255,255,0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .block { padding: 32px 22px; margin: 20px 0; }
  .block > h2 { font-size: 28px; }

  #block-hero { padding: 52px 22px; border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero-content h1 { font-size: 38px; letter-spacing: -1px; }
  .hero-image-wrap { order: -1; }

  .cta-block { padding: 64px 22px; }
  .cta-block > h2 { font-size: 34px; }

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

  .admin-panel, .stats-panel { width: 100%; border-radius: 0; }

  .modal-content { border-radius: var(--radius-lg); }
  .modal-header { padding: 22px 22px 18px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .modal-body { padding: 22px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 30px; letter-spacing: -0.5px; }
  .navbar-buttons .btn-admin, .navbar-buttons .btn-stats { padding: 7px 12px; font-size: 12px; }
}

/* ===== MOBILE BUTTON HOVER/ACTIVE ===== */
@media (hover: none) {
  .hero-content .btn-primary {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .hero-content .btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  }
}

/* ===== LAYOUT STYLE 2 — «Корпоративный» ===== */
/* Кардинально другой визуальный стиль для A/B тестирования */

/* --- Общая типография и радиусы --- */
body.style-2 .block {
  border-radius: 8px;
  padding: 44px 48px;
}
body.style-2 .btn {
  border-radius: 6px;
}
body.style-2 .btn-primary {
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 12.5px;
}

/* --- Navbar --- */
body.style-2 .navbar {
  background: rgba(26, 39, 68, 0.97);
  border-bottom-color: rgba(249, 115, 22, 0.3);
}
body.style-2 .logo,
body.style-2 .navbar-tagline {
  color: white;
  -webkit-text-fill-color: white;
  background: none;
  background-clip: unset;
  -webkit-background-clip: unset;
}
body.style-2 .navbar-tagline { color: rgba(255,255,255,0.55); opacity: 1; }
body.style-2 .btn-admin, body.style-2 .btn-stats {
  background: rgba(249,115,22,0.12);
  color: #fb923c;
  border-color: rgba(249,115,22,0.25);
}

/* --- Hero: изображение слева, текст справа --- */
body.style-2 .hero {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}
body.style-2 .hero > * { direction: ltr; }
body.style-2 .hero-image-wrap { order: 0; }
body.style-2 #block-hero {
  border-radius: 0;
  padding: 80px 52px;
}

/* --- Advantages: горизонтальные строки вместо карточек-сеток --- */
body.style-2 .advantages-grid {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
body.style-2 .advantage-item {
  text-align: left;
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  gap: 0 14px;
  padding: 24px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
}
body.style-2 .advantage-item:hover {
  transform: translateX(4px) translateY(0);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
body.style-2 .advantage-icon {
  font-size: 28px;
  margin: 0;
  grid-row: 1 / 3;
  grid-column: 1;
  align-self: center;
}
body.style-2 .advantage-item h3 {
  font-size: 14.5px;
  font-weight: 800;
  margin-bottom: 4px;
  grid-column: 2;
  grid-row: 1;
}
body.style-2 .advantage-item p {
  font-size: 13px;
  grid-column: 2;
  grid-row: 2;
  color: var(--gray);
}
body.style-2 .drag-hint { display: none; }

/* --- Gallery: 2×2 масонри вместо 3×1 --- */
body.style-2 .gallery-grid {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}
body.style-2 .gallery-item {
  height: 200px;
  border-radius: 6px;
}
body.style-2 .gallery-item:first-child {
  grid-column: 1 / 3;
  height: 280px;
}

/* --- Descriptions: вертикальный таймлайн --- */
body.style-2 #block-descriptions {
  background: var(--lighter);
}
body.style-2 .descriptions-grid {
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
  counter-reset: steps; /* сбрасываем счётчик явно */
}
/* Вертикальная линия таймлайна */
body.style-2 .descriptions-grid::before {
  content: '';
  position: absolute;
  left: 17px;        /* центр кружка: padding(0) + 17 = середина 34px кружка */
  top: 52px;         /* начинается после первого кружка */
  bottom: 52px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary) 0%, rgba(99,102,241,0.15) 100%);
  z-index: 0;
}
body.style-2 .description-item {
  display: grid;
  grid-template-columns: 34px 1fr; /* ровно под размер кружка */
  grid-template-rows: auto auto;
  gap: 2px 20px;
  padding: 22px 24px 22px 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: transparent;
  position: relative;
  overflow: visible; /* ← перекрываем базовый overflow: hidden */
  counter-increment: steps;
}
body.style-2 .description-item:last-child { border-bottom: none; }
body.style-2 .description-item:hover {
  transform: none;
  box-shadow: none;
  background: rgba(99,102,241,0.03);
  border-radius: 8px;
}
/* Кружок с номером — полный сброс базового ::before */
body.style-2 .description-item::before {
  content: counter(steps) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  color: white !important;
  background: var(--gradient) !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  /* grid-placement */
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  align-self: center !important;
  /* сброс абсолютного позиционирования из базы */
  position: relative !important;
  top: auto !important;
  right: auto !important;
  /* перекрываем большую фоновую цифру */
  opacity: 1 !important;
  font-family: 'Inter', sans-serif !important;
  line-height: 1 !important;
  pointer-events: none;
  z-index: 1;
  box-shadow: 0 0 0 4px white, 0 0 0 5px rgba(99,102,241,0.2);
  flex-shrink: 0;
}
/* Полосочка слева (accent bar) — скрываем в style-2 */
body.style-2 .description-item::after { display: none !important; }
body.style-2 .description-item h3 {
  grid-column: 2;
  grid-row: 1;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 0;
  align-self: end;
  color: var(--dark);
}
body.style-2 .description-item p {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  color: var(--gray);
  line-height: 1.6;
}

/* --- Reviews: одна большая цитата + список --- */
body.style-2 .reviews-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}
body.style-2 .review-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 8px;
}
body.style-2 .review-item::before {
  content: '"';
  font-size: 52px;
  color: var(--primary);
  opacity: 0.5;
  position: static;
  line-height: 0.8;
  align-self: start;
  margin-top: 8px;
  grid-column: 1;
  grid-row: 1 / 4;
}
body.style-2 .review-rating {
  grid-column: 2;
  grid-row: 1;
  font-size: 12px;
  margin-bottom: 4px;
  letter-spacing: 1px;
}
body.style-2 .review-item p {
  grid-column: 2;
  grid-row: 2;
  font-style: normal;
  font-size: 14px;
  margin: 0;
}
body.style-2 .review-item strong {
  grid-column: 2;
  grid-row: 3;
  margin-top: 8px;
  display: block;
}

/* --- CTA: два столбца --- */
body.style-2 .cta-block {
  text-align: left;
  padding: 72px 52px;
}
body.style-2 .cta-block > * { position: relative; z-index: 1; }
body.style-2 #block-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
body.style-2 #block-cta h2 {
  font-size: 38px;
  letter-spacing: -1px;
}
body.style-2 #block-cta p {
  margin-bottom: 0;
  font-size: 15px;
}
body.style-2 #block-cta .btn-primary {
  white-space: nowrap;
  padding: 18px 36px;
  font-size: 13px;
  align-self: center;
}
body.style-2 #block-cta .btn-edit {
  grid-column: 1 / 3;
  grid-row: 3;
}

/* --- Bottom nav в стиле 2 --- */
body.style-2 .bottom-nav {
  background: rgba(26, 39, 68, 0.97);
  border-top-color: rgba(249,115,22,0.25);
}
body.style-2 .bottom-nav-item { color: rgba(255,255,255,0.45); }
body.style-2 .bottom-nav-item.active { color: #fb923c; }

/* --- Адаптив style-2 --- */
@media (max-width: 768px) {
  body.style-2 .advantages-grid { grid-template-columns: 1fr; }
  body.style-2 .gallery-grid { grid-template-columns: 1fr; }
  body.style-2 .gallery-item:first-child { grid-column: 1; height: 220px; }
  body.style-2 #block-cta { grid-template-columns: 1fr; }
  body.style-2 .hero { direction: ltr; }
  body.style-2 .descriptions-grid::before { left: 24px; }
}

/* ===== FADE-IN ANIMATION FOR ALL BLOCKS ===== */
.block {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInBlock 0.6s forwards;
  animation-delay: 0.1s;
}
@keyframes fadeInBlock {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== DRAG HINT FOR GALLERY ITEMS ===== */
.gallery-item:hover::after {
  content: 'Drag to reorder';
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  color: var(--gray-light);
  background: rgba(255,255,255,0.85);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  pointer-events: none;
}

/* ===== SWIPEABLE GALLERY AND REVIEWS ON SMALL SCREENS ===== */
@media (max-width: 480px) {
  .gallery-grid, .reviews-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .gallery-item, .review-item {
    flex: 0 0 80%;
    scroll-snap-align: start;
    margin-right: 12px;
  }
}
/* ===== FADE-IN FOR ADVANTAGES AND REVIEWS ===== */
.advantage-item, .review-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInBlock 0.6s forwards;
  animation-delay: 0.1s;
}

/* ===== DRAG HINT FOR ADVANTAGES AND REVIEWS ===== */
.advantage-item:hover::after, .review-item:hover::after {
  content: 'Drag to reorder';
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  color: var(--gray-light);
  background: rgba(255,255,255,0.85);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  pointer-events: none;
}

/* ===== SWIPEABLE ADVANTAGES AND REVIEWS ON SMALL SCREENS ===== */
@media (max-width: 480px) {
  .advantages-grid, .reviews-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .advantage-item, .review-item {
    flex: 0 0 80%;
    scroll-snap-align: start;
    margin-right: 12px;
  }
}

/* ===== BOTTOM NAVIGATION (только мобильные) ===== */
/* Desktop: скрыта */
body {
  padding-bottom: 0;
}

.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  align-items: stretch;
  z-index: 150;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.07);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  gap: 2px;
}

/* Mobile: показываем */
@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
  }
  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .bottom-nav {
    height: 68px;
  }
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--gray);
  gap: 3px;
  transition: color 0.2s ease, background 0.15s ease;
  position: relative;
  padding: 8px 4px;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 36px;
  height: 3px;
  background: var(--gradient);
  border-radius: 0 0 4px 4px;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-item.active::before {
  transform: translateX(-50%) scaleX(1);
}

.bottom-nav-item:active {
  background: rgba(99, 102, 241, 0.06);
}

.bottom-nav-icon {
  width: 20px;
  height: 20px;
  line-height: 0;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.bottom-nav-item.active .bottom-nav-icon {
  transform: scale(1.18) translateY(-2px);
}

.bottom-nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1px;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.bottom-nav-item--cta {
  color: #fff;
  background: var(--gradient);
  border-radius: 14px;
  margin: 6px 4px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
}

.bottom-nav-item--cta::before {
  display: none;
}

.bottom-nav-item--cta:active {
  transform: translateY(1px);
}

/* Тост над нижней навигацией — только на мобильных */
@media (max-width: 768px) {
  .toast {
    bottom: 76px !important;
  }
}

/* ===== THEMES ===== */
/* --- Indigo (legacy default user theme) --- */
body.theme-indigo {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1a3056 100%);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.25);
}

body.theme-obsidian {
  --primary: #b08a57;
  --primary-dark: #9a7748;
  --primary-light: #c7a47a;
  --accent: #8a949e;
  --dark: #111315;
  --dark-2: #1b1f23;
  --dark-3: #2a2f36;
  --gray: #6b7280;
  --light: #ece9e3;
  --lighter: #f4f2ee;
  --gradient: linear-gradient(135deg, #2a2f36 0%, #b08a57 100%);
  --gradient-2: linear-gradient(135deg, #1b1f23 0%, #8a949e 100%);
  --gradient-hero: linear-gradient(135deg, #0f1113 0%, #1b1f23 55%, #2a2f36 100%);
}
body.theme-obsidian .btn-primary { box-shadow: 0 4px 14px rgba(176, 138, 87, 0.45); }
body.theme-obsidian .btn-primary:hover { box-shadow: 0 8px 24px rgba(176, 138, 87, 0.62); }
body.theme-obsidian .logo { text-shadow: 0 0 16px rgba(176, 138, 87, 0.2); }

body.theme-yellow-black {
  --primary: #facc15;
  --primary-dark: #eab308;
  --primary-light: #fde047;
  --accent: #f59e0b;
  --dark: #0b0b0b;
  --dark-2: #151515;
  --dark-3: #262626;
  --gray: #525252;
  --light: #fafafa;
  --lighter: #ffffff;
  --gradient: linear-gradient(135deg, #0b0b0b 0%, #facc15 100%);
  --gradient-2: linear-gradient(135deg, #171717 0%, #eab308 100%);
  --gradient-hero: linear-gradient(135deg, #050505 0%, #111111 50%, #2a2a2a 100%);
}
body.theme-yellow-black .btn-primary { box-shadow: 0 4px 14px rgba(250, 204, 21, 0.42); }
body.theme-yellow-black .btn-primary:hover { box-shadow: 0 8px 24px rgba(250, 204, 21, 0.58); }
body.theme-yellow-black .logo { text-shadow: 0 0 18px rgba(250, 204, 21, 0.18); }
body.theme-yellow-black .cta-block {
  background: linear-gradient(132deg, #070707 0%, #151515 55%, #2a2408 100%);
}
body.theme-yellow-black .cta-block::before {
  background: radial-gradient(ellipse, rgba(250,204,21,0.20) 0%, transparent 66%);
}
body.theme-yellow-black .cta-block::after {
  background: radial-gradient(circle, rgba(250,204,21,0.42) 0%, transparent 70%);
}
body.theme-yellow-black .cta-main > h2 {
  color: #fff8d6;
}
body.theme-yellow-black .cta-main > p {
  color: rgba(255, 248, 214, 0.88);
}
body.theme-yellow-black .cta-block .btn-primary {
  background: #facc15;
  color: #101010;
  box-shadow: 0 12px 34px rgba(250, 204, 21, 0.28);
}
body.theme-yellow-black .cta-block .btn-primary:hover {
  background: #fde047;
  box-shadow: 0 16px 42px rgba(250, 204, 21, 0.38);
}
body.theme-yellow-black .cta-contact-card {
  background: rgba(18, 18, 18, 0.62);
  border: 1px solid rgba(250, 204, 21, 0.28);
}
body.theme-yellow-black .cta-contact-list a,
body.theme-yellow-black .cta-qr-link {
  color: #fff3b0;
  border-bottom-color: rgba(255, 243, 176, 0.5);
}

/* Global visual system for yellow-black theme */
body.theme-yellow-black {
  background: radial-gradient(1100px 520px at 88% 10%, rgba(250,204,21,0.12), transparent 60%), #0b0b0b;
  color: #f5f5f5;
}
body.theme-yellow-black .navbar {
  background: rgba(10, 10, 10, 0.86);
  border-bottom-color: rgba(250, 204, 21, 0.24);
}
body.theme-yellow-black.navbar-is-sticky .navbar {
  background: rgba(7, 7, 7, 0.9);
  border-bottom-color: rgba(250, 204, 21, 0.34);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
body.theme-yellow-black .navbar-menu-link {
  color: rgba(255, 250, 225, 0.9);
}
body.theme-yellow-black .navbar-tagline {
  color: rgba(250, 204, 21, 0.8);
}
body.theme-yellow-black .navbar-menu-link:hover,
body.theme-yellow-black .navbar-menu-link.active {
  color: #facc15;
}
body.theme-yellow-black .btn-secondary {
  background: #151515;
  color: #fff5c4;
  border-color: rgba(250, 204, 21, 0.34);
}
body.theme-yellow-black .btn-secondary:hover {
  background: #1e1e1e;
  border-color: rgba(250, 204, 21, 0.58);
}
body.theme-yellow-black .block {
  background: linear-gradient(180deg, #121212 0%, #0f0f0f 100%);
  border-color: rgba(250, 204, 21, 0.18);
  box-shadow: 0 12px 32px rgba(0,0,0,0.38);
}
body.theme-yellow-black .block > h2,
body.theme-yellow-black .service-title,
body.theme-yellow-black .case-card-title,
body.theme-yellow-black .faq-question-text {
  color: #fff4bf;
}
body.theme-yellow-black .service-description,
body.theme-yellow-black .case-card-description,
body.theme-yellow-black .pricing-card-description,
body.theme-yellow-black .faq-answer-content,
body.theme-yellow-black .gallery-description,
body.theme-yellow-black .description-item p {
  color: rgba(255, 245, 200, 0.82);
}
body.theme-yellow-black .advantage-item,
body.theme-yellow-black .service-card,
body.theme-yellow-black .case-card,
body.theme-yellow-black .faq-item,
body.theme-yellow-black .description-item,
body.theme-yellow-black .review-item {
  background: #151515;
  border-color: rgba(250, 204, 21, 0.18);
}
body.theme-yellow-black .advantage-item:hover,
body.theme-yellow-black .service-card:hover,
body.theme-yellow-black .case-card:hover,
body.theme-yellow-black .faq-item:hover,
body.theme-yellow-black .description-item:hover {
  border-color: rgba(250, 204, 21, 0.52);
  box-shadow: 0 10px 26px rgba(0,0,0,0.42);
}
body.theme-yellow-black #block-pricing .pricing-card {
  background: #131313;
  border-color: rgba(250, 204, 21, 0.22);
}
body.theme-yellow-black #block-pricing .pricing-card-type {
  color: rgba(255, 243, 176, 0.68);
}
body.theme-yellow-black #block-pricing .pricing-card-price {
  color: #facc15;
}
body.theme-yellow-black #block-pricing .pricing-card-time {
  color: rgba(255, 243, 176, 0.78);
}
body.theme-yellow-black #block-pricing .pricing-card.featured {
  background: linear-gradient(135deg, #1a1606 0%, #2a2208 58%, #c89f12 100%);
  color: #fff8dc;
  border-color: rgba(250, 204, 21, 0.35);
}
body.theme-yellow-black #block-pricing .pricing-card.featured .pricing-card-price {
  color: #fff;
}
body.theme-yellow-black #block-pricing .pricing-card-button {
  background: linear-gradient(135deg, #0a0a0a 0%, #facc15 100%);
  color: #fff;
}
body.theme-yellow-black #block-pricing .pricing-card.featured .pricing-card-button {
  background: rgba(255, 245, 200, 0.14);
  border-color: rgba(255, 243, 176, 0.48);
}
body.theme-yellow-black .faq-item.active {
  border-color: #facc15;
  box-shadow: 0 8px 22px rgba(250, 204, 21, 0.12);
}
body.theme-yellow-black .faq-item.active .faq-question {
  background: rgba(250, 204, 21, 0.08);
}
body.theme-yellow-black .faq-item.active .faq-question-text {
  color: #ffe57a;
}
body.theme-yellow-black .faq-toggle {
  background: #1d1d1d;
  color: #facc15;
}
body.theme-yellow-black .faq-item.active .faq-toggle {
  background: #facc15;
  color: #101010;
}
body.theme-yellow-black .faq-answer-content {
  border-top-color: rgba(250, 204, 21, 0.2);
}
body.theme-yellow-black .footer {
  background: #080808;
  border-top-color: rgba(250, 204, 21, 0.22);
}

/* Light yellow variation: warm background + black buttons */
body.theme-yellow-light {
  --primary: #111111;
  --primary-dark: #000000;
  --primary-light: #2a2a2a;
  --accent: #facc15;
  --dark: #161616;
  --dark-2: #1f1f1f;
  --dark-3: #343434;
  --gray: #595959;
  --light: #fff7cc;
  --lighter: #fffdf4;
  --gradient: linear-gradient(135deg, #fff7cc 0%, #facc15 100%);
  --gradient-2: linear-gradient(135deg, #ffef9e 0%, #facc15 100%);
  --gradient-hero: linear-gradient(135deg, #fff9df 0%, #ffeaa0 55%, #f7cf43 100%);
  background: #fffdf4;
  color: #191919;
}
body.theme-yellow-light .navbar {
  background: rgba(255, 252, 236, 0.92);
  border-bottom-color: rgba(17,17,17,0.15);
}
body.theme-yellow-light .navbar-menu-link { color: #232323; }
body.theme-yellow-light .navbar-menu-link:hover,
body.theme-yellow-light .navbar-menu-link.active { color: #000; }
body.theme-yellow-light .block {
  background: #fff;
  border-color: rgba(17,17,17,0.12);
}
body.theme-yellow-light .btn-primary,
body.theme-yellow-light .pricing-card-button,
body.theme-yellow-light .service-button {
  background: linear-gradient(135deg, #111 0%, #2b2b2b 100%);
  color: #fff8d0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
body.theme-yellow-light .btn-primary:hover,
body.theme-yellow-light .pricing-card-button:hover,
body.theme-yellow-light .service-button:hover {
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
}
body.theme-yellow-light .cta-block {
  background: linear-gradient(135deg, #facc15 0%, #ffe99a 100%);
}
body.theme-yellow-light .cta-main > h2,
body.theme-yellow-light .cta-main > p { color: #171717; }
body.theme-yellow-light .cta-contact-card {
  background: rgba(255,255,255,0.62);
  border-color: rgba(17,17,17,0.12);
  color: #1d1d1d;
}
body.theme-yellow-light .cta-contact-list a,
body.theme-yellow-light .cta-qr-link {
  color: #111;
  border-bottom-color: rgba(17,17,17,0.35);
}
body.theme-yellow-light #block-pricing .pricing-card.featured {
  background: linear-gradient(135deg, #111 0%, #2b2b2b 100%);
  color: #fff8dc;
}
body.theme-yellow-light #block-pricing .pricing-card.featured .pricing-card-price { color: #facc15; }

/* Sand variation: softer premium light theme */
body.theme-sand-graphite {
  --primary: #2b2b2b;
  --primary-dark: #1d1d1d;
  --primary-light: #454545;
  --accent: #d4a737;
  --dark: #1f1f1f;
  --dark-2: #292929;
  --dark-3: #3f3f3f;
  --gray: #666154;
  --light: #f4ebd0;
  --lighter: #fcf7ea;
  --gradient: linear-gradient(135deg, #f4ebd0 0%, #e2c77b 100%);
  --gradient-2: linear-gradient(135deg, #ede0bf 0%, #d9b866 100%);
  --gradient-hero: linear-gradient(135deg, #fcf6e5 0%, #f1e0b1 58%, #e2c77b 100%);
  background: #fcf7ea;
}
body.theme-sand-graphite .navbar {
  background: rgba(252, 247, 234, 0.9);
  border-bottom-color: rgba(43,43,43,0.14);
}
body.theme-sand-graphite .block {
  background: #fffdf7;
  border-color: rgba(43,43,43,0.14);
}
body.theme-sand-graphite .btn-primary,
body.theme-sand-graphite .pricing-card-button,
body.theme-sand-graphite .service-button {
  background: linear-gradient(135deg, #2b2b2b 0%, #4a4a4a 100%);
  color: #fff8df;
}
body.theme-sand-graphite .btn-secondary {
  border-color: rgba(43,43,43,0.22);
}
body.theme-sand-graphite .cta-block {
  background: linear-gradient(135deg, #e2c77b 0%, #f4ebd0 100%);
}
body.theme-sand-graphite .cta-main > h2,
body.theme-sand-graphite .cta-main > p { color: #262626; }
body.theme-sand-graphite .cta-contact-card {
  background: rgba(255,255,255,0.6);
  border-color: rgba(43,43,43,0.16);
  color: #2a2a2a;
}
body.theme-sand-graphite .cta-contact-list a,
body.theme-sand-graphite .cta-qr-link {
  color: #1f1f1f;
  border-bottom-color: rgba(31,31,31,0.3);
}

/* Catalog yellow variation (inspired by printed brand materials) */
body.theme-catalog-yellow {
  --primary: #111111;
  --primary-dark: #000000;
  --primary-light: #2d2d2d;
  --accent: #f3c614;
  --dark: #171717;
  --dark-2: #242424;
  --dark-3: #383838;
  --gray: #5f6368;
  --light: #fff1b8;
  --lighter: #fefefe;
  --border: #d8d8d8;
  --gradient: linear-gradient(135deg, #ffe17a 0%, #f3c614 100%);
  --gradient-2: linear-gradient(135deg, #ffea99 0%, #f3c614 100%);
  --gradient-hero: linear-gradient(135deg, #fff9df 0%, #ffe9a8 55%, #ffd966 100%);
  background: #f6f6f6;
  color: #161616;
}
body.theme-catalog-yellow .navbar {
  background: rgba(255,255,255,0.95);
  border-bottom: 3px solid #f3c614;
}
body.theme-catalog-yellow .navbar-menu-link { color: #141414; }
body.theme-catalog-yellow .navbar-menu-link:hover,
body.theme-catalog-yellow .navbar-menu-link.active { color: #000; }
body.theme-catalog-yellow .navbar-menu-link::after {
  background: linear-gradient(90deg, #111, #f1bf00);
}
body.theme-catalog-yellow .block {
  background: #fff;
  border-color: #d9d9d9;
}
body.theme-catalog-yellow .block > h2 {
  color: #1a1a1a;
}
body.theme-catalog-yellow .btn-primary,
body.theme-catalog-yellow .pricing-card-button,
body.theme-catalog-yellow .service-button {
  background: #111;
  color: #fff;
  border: 1px solid #111;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
body.theme-catalog-yellow .btn-primary:hover,
body.theme-catalog-yellow .pricing-card-button:hover,
body.theme-catalog-yellow .service-button:hover {
  background: #000;
}
body.theme-catalog-yellow .btn-secondary {
  background: #fff;
  color: #111;
  border-color: #bdbdbd;
}
body.theme-catalog-yellow #block-hero,
body.theme-catalog-yellow .cta-block {
  background: linear-gradient(135deg, #ffe17a 0%, #f3c614 100%);
}
body.theme-catalog-yellow .hero-content h1,
body.theme-catalog-yellow .hero-content p,
body.theme-catalog-yellow .cta-main > h2,
body.theme-catalog-yellow .cta-main > p {
  color: #141414;
}
body.theme-catalog-yellow .cta-main > h2 {
  font-size: clamp(68px, 6.5vw, 104px);
  line-height: 1.02;
  letter-spacing: -1.8px;
  margin-bottom: 8px;
}
body.theme-catalog-yellow .cta-main > p {
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.25;
  max-width: 920px;
  margin-bottom: 28px;
}
body.theme-catalog-yellow .cta-contact-card {
  background: rgba(255, 246, 205, 0.78);
  border: 1px solid rgba(17,17,17,0.18);
  color: #1b1b1b;
}
body.theme-catalog-yellow .cta-manager-name {
  color: #111;
}
body.theme-catalog-yellow .cta-manager-role {
  color: rgba(17,17,17,0.75);
}
body.theme-catalog-yellow .cta-contact-list li {
  color: #1f1f1f;
}
body.theme-catalog-yellow .cta-contact-list svg {
  color: #111;
  opacity: 1;
}
body.theme-catalog-yellow .cta-contact-list a {
  color: #111;
  border-bottom-color: rgba(17,17,17,0.32);
}
body.theme-catalog-yellow .cta-qr-title {
  color: #111;
}
body.theme-catalog-yellow .cta-qr-sub {
  color: rgba(17,17,17,0.76);
}
body.theme-catalog-yellow .cta-qr-link {
  color: #111;
  border-bottom-color: rgba(17,17,17,0.38);
}
body.theme-catalog-yellow .hero-trust-badges,
body.theme-catalog-yellow .hero-trust-badges svg {
  color: rgba(20,20,20,0.8);
}
body.theme-catalog-yellow .pricing-card {
  background: #fff9df;
  border: 1px solid #d2c27a;
}
body.theme-catalog-yellow .pricing-card-price {
  background: #ffe17a;
  color: #111;
  border: 1px solid #d8b642;
  border-radius: 12px;
  padding: 10px 14px;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(20px, 1.8vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.3px;
}
body.theme-catalog-yellow #block-pricing .pricing-card-type {
  font-size: clamp(22px, 1.9vw, 30px);
  font-weight: 850;
  letter-spacing: 0.2px;
  line-height: 1.15;
  margin-bottom: 14px;
}
body.theme-catalog-yellow .pricing-card-time,
body.theme-catalog-yellow .pricing-card-description,
body.theme-catalog-yellow .pricing-card-type {
  color: #262626;
}
body.theme-catalog-yellow .pricing-card.featured {
  background: #ffe17a;
  color: #111;
  border-color: #d0aa2f;
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}
body.theme-catalog-yellow .pricing-card.featured .pricing-card-price {
  color: #111;
  background: #fff3bf;
  border-color: #cfa92b;
}
body.theme-catalog-yellow .pricing-card.featured .pricing-card-type,
body.theme-catalog-yellow .pricing-card.featured .pricing-card-time,
body.theme-catalog-yellow .pricing-card.featured .pricing-card-description {
  color: #242424;
}
body.theme-catalog-yellow #block-pricing .pricing-card.featured .pricing-card-type {
  font-size: clamp(28px, 2.3vw, 38px);
}
body.theme-catalog-yellow .pricing-card.featured .pricing-card-button {
  background: #111;
  border-color: #111;
  color: #fff;
}
body.theme-catalog-yellow .faq-item,
body.theme-catalog-yellow .service-card,
body.theme-catalog-yellow .advantage-item,
body.theme-catalog-yellow .case-card,
body.theme-catalog-yellow .description-item {
  background: #fff;
  border-color: #d5d5d5;
}
body.theme-catalog-yellow #block-gallery {
  background: linear-gradient(135deg, #fff5c7 0%, #ffeaa5 100%);
  border-color: #d8b84a;
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}
body.theme-catalog-yellow #block-gallery > h2 {
  color: #111;
}
body.theme-catalog-yellow .gallery-item-title {
  color: #111;
}
body.theme-catalog-yellow #block-cases {
  background: linear-gradient(135deg, #fff4c2 0%, #ffe792 100%);
  border-color: #d8b84a;
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}
body.theme-catalog-yellow #block-cases > h2 {
  color: #111;
}
body.theme-catalog-yellow #block-cases .case-card {
  background: #fffdf3;
  border-color: #d8c276;
}
body.theme-catalog-yellow #block-cases .case-card-client {
  color: #7a6320;
}
body.theme-catalog-yellow #block-cases .case-card-result {
  color: #0f8a4a;
}
body.theme-catalog-yellow #block-faq {
  background: linear-gradient(135deg, #fff7d8 0%, #fff1b8 100%);
  border-color: #d6bb54;
}
body.theme-catalog-yellow #block-faq > h2 {
  color: #111;
}
body.theme-catalog-yellow .faq-item {
  background: #fffdf4;
  border-color: #d6c27b;
}
body.theme-catalog-yellow .faq-question:hover {
  background: rgba(243, 198, 20, 0.12);
}

/* Итерация 13 — premium hover у карточек услуг и инверсия CTA */
body.theme-catalog-yellow .service-card {
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.28s ease,
              border-color 0.2s ease;
}
body.theme-catalog-yellow .service-card:hover {
  border-color: #f1bf00;
  box-shadow:
    0 14px 30px rgba(0,0,0,0.10),
    0 0 0 3px rgba(241,191,0,0.18);
  transform: translateY(-6px);
}
body.theme-catalog-yellow .service-button {
  background: #111;
  color: #fff;
  border: 1.5px solid #111;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
body.theme-catalog-yellow .service-button:hover {
  background: #f1bf00;
  color: #111;
  border-color: #111;
  box-shadow: 0 6px 18px rgba(241,191,0,0.45);
  transform: translateY(-1px);
}
/* На hover карточки — слегка приподнимаем иконку в желтой плашке */
body.theme-catalog-yellow .service-card:hover .service-icon .svg-icon {
  background: #ffe17a;
  border-color: #c9a317;
  transform: translateY(-2px) scale(1.06);
}
body.theme-catalog-yellow .faq-item.active {
  border-color: #111;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
body.theme-catalog-yellow .faq-item.active .faq-question {
  background: rgba(243, 198, 20, 0.2);
}
body.theme-catalog-yellow .faq-answer-content {
  background: #fff9df;
  color: #2a2a2a;
  border-top-color: #d6bb54;
}
body.theme-catalog-yellow .faq-toggle {
  background: #f3f3f3;
  color: #111;
}
body.theme-catalog-yellow .faq-item.active .faq-toggle {
  background: #111;
  color: #f3c614;
}
body.theme-catalog-yellow #block-reviews {
  background: linear-gradient(135deg, #fff7d8 0%, #f3c614 100%);
}
body.theme-catalog-yellow #block-reviews > h2 {
  color: #171717;
}
body.theme-catalog-yellow .reviews-grid .review-item {
  background: rgba(255,255,255,0.86);
  border-color: rgba(17,17,17,0.14);
}
body.theme-catalog-yellow .review-item::before,
body.theme-catalog-yellow .review-rating {
  color: #f1bf00;
}
body.theme-catalog-yellow .review-item p,
body.theme-catalog-yellow .review-item strong,
body.theme-catalog-yellow .review-author-name,
body.theme-catalog-yellow .review-author-meta,
body.theme-catalog-yellow .review-author-date {
  color: #202020;
}
body.theme-catalog-yellow .urgency-strip {
  background: #fff3bf;
  border-color: #d6bb54;
}
body.theme-catalog-yellow .urgency-load-bar {
  background: rgba(17,17,17,0.12);
}
body.theme-catalog-yellow .urgency-load-fill {
  background: linear-gradient(90deg, #111 0%, #2a2a2a 100%);
}
body.theme-catalog-yellow .urgency-dot {
  background: #111;
}
body.theme-catalog-yellow .urgency-text,
body.theme-catalog-yellow .urgency-load-label {
  color: #1d1d1d;
}
body.theme-catalog-yellow .industries-strip .container {
  background: #fffdf4;
  border: 1px solid #d6c27b;
}
body.theme-catalog-yellow .industries-strip-eyebrow,
body.theme-catalog-yellow .industries-strip-title {
  color: #1f1f1f;
}
body.theme-catalog-yellow .industry-chip {
  background: #fff3bf;
  border-color: #d6bb54;
  color: #151515;
}
body.theme-catalog-yellow .industry-chip-dot {
  background: #111;
}
body.theme-catalog-yellow .case-card-result {
  color: #111;
}
body.theme-catalog-yellow .pricing-calc {
  background: #fff8dd;
  border-color: #d5c27b;
}
body.theme-catalog-yellow .pricing-calc::before {
  background: radial-gradient(circle, rgba(241,191,0,0.14) 0%, transparent 70%);
}
body.theme-catalog-yellow .pricing-calc-title,
body.theme-catalog-yellow .pricing-calc-sub,
body.theme-catalog-yellow .pcr-meta-row,
body.theme-catalog-yellow .pcr-meta-row strong,
body.theme-catalog-yellow .pcf-group-title {
  color: #171717;
}
body.theme-catalog-yellow .pricing-calc-eyebrow {
  color: #111;
  background: #ffe17a;
}
body.theme-catalog-yellow .pcf-segment,
body.theme-catalog-yellow .pcf-select,
body.theme-catalog-yellow .pcf-qty-input,
body.theme-catalog-yellow .pcr-range {
  background: #fff;
  border-color: #d5d5d5;
  color: #151515;
}
body.theme-catalog-yellow .pcf-segment.is-active,
body.theme-catalog-yellow .pcf-chip.is-active {
  background: #111;
  border-color: #111;
  color: #fff;
}
body.theme-catalog-yellow .pcr-cta {
  background: #111;
  color: #fff;
}
body.theme-catalog-yellow .pcr-cta:hover {
  background: #000;
}
body.theme-catalog-yellow .pcr-cta-alt {
  border-color: #1f1f1f;
  color: #1f1f1f;
}
/* Unified icon system for catalog yellow theme */
body.theme-catalog-yellow .svg-icon,
body.theme-catalog-yellow .advantage-icon,
body.theme-catalog-yellow .service-icon .svg-icon,
body.theme-catalog-yellow .problem-icon .svg-icon,
body.theme-catalog-yellow .process-step-icon .svg-icon,
body.theme-catalog-yellow .industry-chip-icon {
  background: #fff3bf;
  border: 1px solid #d7b647;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 4px 10px rgba(0,0,0,0.08);
}
body.theme-catalog-yellow .svg-icon::after,
body.theme-catalog-yellow .advantage-icon::after,
body.theme-catalog-yellow .process-step-icon .svg-icon::after {
  background: linear-gradient(135deg, rgba(255,255,255,0.24) 0%, rgba(255,255,255,0.02) 50%);
}
body.theme-catalog-yellow .svg-icon svg,
body.theme-catalog-yellow .advantage-icon-img,
body.theme-catalog-yellow .process-step-icon .svg-icon svg,
body.theme-catalog-yellow .industry-chip-icon svg {
  stroke: #111 !important;
  color: #111 !important;
}
body.theme-catalog-yellow .cta-contact-list svg,
body.theme-catalog-yellow .footer-contacts-list li svg,
body.theme-catalog-yellow .faq-toggle,
body.theme-catalog-yellow .bottom-nav-icon,
body.theme-catalog-yellow .bottom-nav-icon svg {
  color: #111 !important;
  stroke: #111 !important;
}
body.theme-catalog-yellow .footer-logo-icon {
  background: #111;
}
body.theme-catalog-yellow .footer-logo-icon svg {
  stroke: #f3c614;
}
body.theme-catalog-yellow .trust-badge {
  background: #fff9df;
  border-color: #d6c27b;
}
body.theme-catalog-yellow .trust-badge-icon {
  background: #ffe17a;
  border: 1px solid #cfa92b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}
body.theme-catalog-yellow .trust-badge-icon svg {
  stroke: #111 !important;
  stroke-width: 2.1;
}
body.theme-catalog-yellow .trust-badge-text strong {
  color: #161616;
}
body.theme-catalog-yellow .trust-badge-text span {
  color: #303030;
}
body.theme-catalog-yellow .process-item {
  background: #fff9df;
  border: 1px solid #d8c26d;
  border-left: 4px solid #111;
}
body.theme-catalog-yellow .process-item:hover {
  border-left-color: #111;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}
body.theme-catalog-yellow .process-item h3 {
  color: #111;
}
body.theme-catalog-yellow .process-item p {
  color: #2f2f2f;
}
body.theme-catalog-yellow .process-step-icon .svg-icon {
  background: #ffe17a;
  border: 1px solid #d7b647;
}
body.theme-catalog-yellow .process-step-icon .svg-icon svg {
  stroke: #111;
}
body.theme-catalog-yellow .process-step-badge {
  background: #ffe17a;
  color: #111;
  border-color: #fff7d8;
}
body.theme-catalog-yellow .site-footer {
  background: #fff7d8;
  color: #1a1a1a;
  border-top: 2px solid #f3c614;
}
body.theme-catalog-yellow .footer-col-title,
body.theme-catalog-yellow .footer-about-text,
body.theme-catalog-yellow .footer-nav-list a,
body.theme-catalog-yellow .footer-contacts-list li,
body.theme-catalog-yellow .footer-legal-list li,
body.theme-catalog-yellow .footer-legal-label,
body.theme-catalog-yellow .footer-copyright .container,
body.theme-catalog-yellow .footer-text-link {
  color: #232323;
}
body.theme-catalog-yellow .footer-logo-text,
body.theme-catalog-yellow .footer-contacts-list a {
  color: #111;
}
body.theme-catalog-yellow .footer-contacts-list li svg,
body.theme-catalog-yellow .footer-privacy-btn svg {
  stroke: #111;
}
body.theme-catalog-yellow .footer-social-link--wa,
body.theme-catalog-yellow .footer-social-link--tg {
  background: #111;
}
body.theme-catalog-yellow .footer-social-link svg {
  fill: #f3c614;
}
body.theme-catalog-yellow .footer-privacy-btn {
  background: #fff3bf;
  border-color: #d6bb54;
  color: #111;
}
body.theme-catalog-yellow .footer-privacy-btn:hover {
  background: #ffe792;
  color: #111;
}
body.theme-catalog-yellow .footer-copyright {
  border-top-color: rgba(17,17,17,0.14);
}
body.theme-catalog-yellow .footer-dot {
  color: rgba(17,17,17,0.45);
}
body.theme-indigo .btn-primary { box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4); }
body.theme-indigo .btn-primary:hover { box-shadow: 0 8px 24px rgba(99, 102, 241, 0.55); }

/* --- Dark Orange --- */
body.theme-dark-orange {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #fb923c;
  --accent: #fb923c;
  --gradient: linear-gradient(135deg, #0a0a0a 0%, #f97316 100%);
  --gradient-2: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  --gradient-hero: linear-gradient(135deg, #0b0b0b 0%, #1a1208 55%, #2c1605 100%);
  --shadow-glow: 0 0 40px rgba(249, 115, 22, 0.25);
}

/* --- Cyber Blue --- */
body.theme-cyber {
  --primary: #06b6d4;
  --primary-dark: #0891b2;
  --primary-light: #22d3ee;
  --accent: #22d3ee;
  --gradient: linear-gradient(135deg, #020d1a 0%, #06b6d4 100%);
  --gradient-2: linear-gradient(135deg, #0ea5e9 0%, #22d3ee 100%);
  --gradient-hero: linear-gradient(135deg, #020617 0%, #082f49 55%, #0e7490 100%);
  --shadow-glow: 0 0 40px rgba(6, 182, 212, 0.28);
}

/* --- Green --- */
body.theme-green {
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-light: #34d399;
  --accent: #10b981;
  --gradient: linear-gradient(135deg, #16a34a 0%, #0d9488 100%);
  --gradient-2: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
  --gradient-hero: linear-gradient(135deg, #052e16 0%, #064e3b 55%, #065f46 100%);
  --shadow-glow: 0 0 40px rgba(22, 163, 74, 0.26);
}

/* --- Gold --- */
body.theme-gold {
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --primary-light: #fbbf24;
  --accent: #fbbf24;
  --gradient: linear-gradient(135deg, #0a0800 0%, #f59e0b 100%);
  --gradient-2: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --gradient-hero: linear-gradient(135deg, #111827 0%, #3f2a03 55%, #78350f 100%);
  --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.3);
}

/* --- Red --- */
body.theme-red {
  --primary: #dc2626;
  --primary-dark: #b91c1c;
  --primary-light: #f87171;
  --accent: #ef4444;
  --gradient: linear-gradient(135deg, #3b0a0a 0%, #dc2626 100%);
  --gradient-2: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --gradient-hero: linear-gradient(135deg, #1f0707 0%, #450a0a 55%, #7f1d1d 100%);
  --shadow-glow: 0 0 40px rgba(220, 38, 38, 0.32);
}
body.theme-red .btn-primary { box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4); }
body.theme-red .btn-primary:hover { box-shadow: 0 8px 24px rgba(220, 38, 38, 0.55); }

/* --- Steel Blue --- */
body.theme-steel {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #38bdf8;
  --gradient: linear-gradient(135deg, #0ea5e9 0%, #1d4ed8 100%);
  --gradient-2: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #0c2340 50%, #082f49 100%);
  --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.25);
}
body.theme-steel .btn-primary { box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4); }
body.theme-steel .btn-primary:hover { box-shadow: 0 8px 24px rgba(14, 165, 233, 0.55); }

/* --- Fire / Orange --- */
body.theme-fire {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #fb923c;
  --gradient: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
  --gradient-2: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  --gradient-hero: linear-gradient(135deg, #1c0600 0%, #431407 50%, #1c0600 100%);
  --shadow-glow: 0 0 40px rgba(249, 115, 22, 0.25);
}
body.theme-fire .btn-primary { box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4); }
body.theme-fire .btn-primary:hover { box-shadow: 0 8px 24px rgba(249, 115, 22, 0.55); }

/* --- Emerald --- */
body.theme-emerald {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #34d399;
  --gradient: linear-gradient(135deg, #10b981 0%, #0891b2 100%);
  --gradient-2: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  --gradient-hero: linear-gradient(135deg, #022c22 0%, #064e3b 50%, #083344 100%);
  --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.25);
}
body.theme-emerald .btn-primary { box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4); }
body.theme-emerald .btn-primary:hover { box-shadow: 0 8px 24px rgba(16, 185, 129, 0.55); }
body.theme-emerald .btn-success { background: linear-gradient(135deg, #0891b2 0%, #10b981 100%); }

/* --- МАРКЕТСНАБ Brand (Navy + Orange) --- */
body.theme-brand {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #fb923c;
  --accent: #f97316;
  --gradient: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --gradient-2: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  --gradient-hero: linear-gradient(135deg, #0a1020 0%, #1a2744 50%, #0d1b35 100%);
  --shadow-glow: 0 0 40px rgba(249, 115, 22, 0.3);
}
body.theme-brand .btn-primary {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.45);
}
body.theme-brand .btn-primary:hover { box-shadow: 0 8px 24px rgba(249, 115, 22, 0.6); }
body.theme-brand .btn-success { background: linear-gradient(135deg, #f97316 0%, #dc2626 100%); }
body.theme-brand .logo {
  background: linear-gradient(90deg, #1a2744 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.theme-brand .cta-block { background: linear-gradient(135deg, #1a2744 0%, #f97316 100%); }
body.theme-brand #block-reviews { background: linear-gradient(160deg, #0a1020 0%, #1a2744 100%); }
body.theme-brand .description-item::after { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }

/* ===== THEME CARDS IN ADMIN ===== */
.themes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}

/* Первая карточка (Бренд) на всю ширину — как рекомендованный вариант */
.themes-grid .theme-card:first-child {
  grid-column: 1 / 3;
}

.theme-card {
  border-radius: var(--radius-sm);
  padding: 14px 10px 12px;
  text-align: center;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 11.5px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: white;
  position: relative;
  overflow: hidden;
}

.theme-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.theme-card.active {
  border-color: white;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

.theme-card.active::after {
  content: '✓';
  position: absolute;
  top: 5px;
  right: 8px;
  font-size: 12px;
  font-weight: 900;
  opacity: 0.9;
}

.theme-card-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 7px;
}

.theme-card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}

.theme-card-dot:first-child {
  background: rgba(255,255,255,0.9);
}

@media (max-width: 768px) {
  .bottom-nav-label { font-size: 9px; }
  .bottom-nav-icon { font-size: 18px; }
}

/* ===== ФАЗА 8: PROCESS / CASES / PRICING / FAQ ===== */

/* --- PROCESS TIMELINE --- */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 44px;
}

.process-item {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(6, 182, 212, 0.05) 100%);
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
  position: relative;
}

.process-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--accent);
}

.process-step-number {
  font-size: 28px;
  margin-bottom: 8px;
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.process-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
  letter-spacing: -0.3px;
}

.process-item p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

/* --- CASES / WORKS --- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 44px;
}

.case-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.case-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.case-card-content {
  padding: 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-card-client {
  font-size: 12px;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.case-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.case-card-description {
  font-size: 13.5px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 14px;
  flex: 1;
}

.case-card-result {
  font-size: 13px;
  color: var(--success);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.case-card-result::before {
  content: '✓';
  font-weight: 800;
}

/* --- PRICING --- */
/* ===== PRICING CARDS ===== */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.pricing-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px 22px;
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* Акцентная карточка (idx=1, класс .featured) */
.pricing-card.featured {
  background: var(--gradient);
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(99,102,241,0.22);
  transform: translateY(-6px);
  color: white;
}
.pricing-card.featured:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(99,102,241,0.3);
}

.pricing-card-type {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}
.pricing-card.featured .pricing-card-type { color: rgba(255,255,255,0.7); }

.pricing-card-price {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}
.pricing-card.featured .pricing-card-price { color: white; }

.pricing-card-time {
  font-size: 12px;
  color: var(--gray-light);
  margin-bottom: 10px;
  font-weight: 500;
}
.pricing-card.featured .pricing-card-time { color: rgba(255,255,255,0.75); }

.pricing-card-description {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}
.pricing-card.featured .pricing-card-description { color: rgba(255,255,255,0.85); }

.pricing-card-button {
  background: var(--gradient);
  color: white;
  padding: 11px 20px;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  width: 100%;
  margin-top: auto;
}
.pricing-card-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.35);
}
.pricing-card.featured .pricing-card-button {
  background: rgba(255,255,255,0.22);
  border: 1.5px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
}
.pricing-card.featured .pricing-card-button:hover {
  background: rgba(255,255,255,0.32);
  box-shadow: none;
}

@media (max-width: 768px) {
  .pricing-cards { grid-template-columns: 1fr; gap: 12px; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-3px); }
}

/* --- FAQ / ACCORDION --- */
.faq-list {
  max-width: 760px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 4px 16px rgba(99,102,241,0.08);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 6px 24px rgba(99,102,241,0.12);
}

.faq-question {
  padding: 20px 28px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  user-select: none;
  transition: background 0.15s ease;
}

.faq-question:hover {
  background: rgba(99,102,241,0.03);
}

.faq-item.active .faq-question {
  background: rgba(99,102,241,0.04);
}

.faq-question-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -0.2px;
  flex: 1;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.faq-item.active .faq-question-text {
  color: var(--primary);
}

.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
  color: var(--primary);
}

.faq-toggle svg {
  width: 17px;
  height: 17px;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.faq-item.active .faq-toggle {
  background: var(--primary);
  color: white;
}

.faq-item.active .faq-toggle svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

.faq-answer-content {
  padding: 16px 28px 22px;
  font-size: 15px;
  color: var(--gray);
  line-height: 1.75;
  border-top: 1px solid var(--border);
}

/* --- SERVICES GRID (ФАЗА 9) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 44px;
}

.service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.service-icon {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 4px;
}

.service-icon-image {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.service-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -0.2px;
}

.service-description {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
  flex: 1;
  /* Увеличено для выравнивания карточек при разной длине описания */
  min-height: 92px;
}

.service-button {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.1px;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.service-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .process-item {
    padding: 20px 24px;
  }

  .case-card-image {
    height: 180px;
  }

  .faq-list {
    margin: 28px 0 0;
  }

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

  /* Карточки услуг — меньше внутренних отступов на мобиле */
  .service-card {
    padding: 20px 18px;
    gap: 10px;
  }
  .service-description {
    min-height: 0;
  }
}

/* ===== DRAWING MODAL (ФАЗА 3) ===== */
.drawing-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawing-modal:not(.hidden) {
  visibility: visible;
  opacity: 1;
}

.drawing-modal.hidden {
  display: none !important;
}

.drawing-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.drawing-modal-content {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  z-index: 2001;
}

.drawing-modal-header {
  padding: 28px 28px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.drawing-modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  letter-spacing: -0.3px;
}

.drawing-modal-body {
  padding: 28px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawing-modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* File Drop Zone */
.file-drop-zone {
  border: 2px dashed var(--primary);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  background: rgba(99, 102, 241, 0.03);
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-drop-zone:hover {
  border-color: var(--primary-dark);
  background: rgba(99, 102, 241, 0.08);
}

.file-drop-zone.dragover {
  border-color: var(--accent);
  background: rgba(6, 182, 212, 0.12);
  transform: scale(1.02);
}

.file-drop-icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
  line-height: 1;
}

.file-drop-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.file-drop-hint {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 12px;
}

.file-drop-formats {
  font-size: 11px;
  color: var(--gray-light);
  font-style: italic;
  margin: 0;
}

.file-input-hidden {
  display: none;
}

/* Selected File Display */
.file-selected-display {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius);
  padding: 16px;
}

.file-selected-display.hidden {
  display: none;
}

.file-selected-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-selected-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.file-selected-info {
  flex: 1;
}

.file-selected-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 4px 0;
  word-break: break-word;
}

.file-selected-size {
  font-size: 12px;
  color: var(--gray);
  margin: 0;
}

.btn-clear-file {
  background: rgba(239, 68, 68, 0.1);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--danger);
  font-size: 16px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-clear-file:hover {
  background: var(--danger);
  color: white;
}

/* Form Groups */
.drawing-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawing-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -0.1px;
}

.form-input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--dark);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.drawing-textarea {
  min-height: 80px;
  resize: vertical;
  font-family: 'Inter', sans-serif;
}

.drawing-comment-counter {
  font-size: 11px;
  color: var(--gray-light);
  text-align: right;
  font-weight: 500;
}

.form-error {
  font-size: 12px;
  color: var(--danger);
  font-weight: 500;
}

.form-error.hidden {
  display: none;
}

/* Loading Overlay */
.drawing-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 2002;
  border-radius: var(--radius-lg);
}

.drawing-loading-overlay.hidden {
  display: none;
}

.drawing-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.drawing-loading-overlay p {
  font-size: 14px;
  color: var(--dark);
  font-weight: 600;
  margin: 0;
}

/* Success Message */
.drawing-success-message {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2002;
  border-radius: var(--radius-lg);
}

.drawing-success-message.hidden {
  display: none;
}

.drawing-success-content {
  text-align: center;
  padding: 40px 20px;
}

.drawing-success-icon {
  font-size: 56px;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.drawing-success-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.drawing-success-content p {
  font-size: 14px;
  color: var(--gray);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .drawing-modal-content {
    max-width: 100%;
    max-height: 100vh;
  }

  .drawing-modal-header {
    padding: 20px;
  }

  .drawing-modal-body {
    padding: 20px;
  }

  .drawing-modal-footer {
    padding: 16px;
    flex-wrap: wrap;
  }

  .file-drop-zone {
    padding: 28px 16px;
  }
}

/* ===== NAVBAR MENU ===== */
.navbar-menu {
  display: flex;
  gap: 24px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.navbar-menu-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  padding: 6px 2px;
  cursor: pointer;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.navbar-menu-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-menu-link:hover { color: var(--primary); }
.navbar-menu-link:hover::after,
.navbar-menu-link.active::after { width: 100%; }
.navbar-menu-link.active { color: var(--primary); font-weight: 600; }

/* Navbar menu в темных темах */
body.theme-brand .navbar-menu-link,
body.style-2 .navbar-menu-link {
  color: rgba(255, 255, 255, 0.8);
}
body.theme-brand .navbar-menu-link:hover,
body.style-2 .navbar-menu-link:hover,
body.theme-brand .navbar-menu-link.active,
body.style-2 .navbar-menu-link.active {
  color: #fb923c;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
}

body.theme-brand .hamburger span,
body.style-2 .hamburger span { background: white; }

.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .navbar-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    border-bottom: 1px solid var(--border);
    z-index: 200;
    justify-content: flex-start;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  }

  .navbar-menu.active {
    max-height: 480px;
    padding: 12px 0;
  }

  .navbar-menu-link {
    padding: 14px 24px;
    font-size: 16px;
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .navbar-menu-link::after { display: none; }
  .navbar-menu-link.active { background: rgba(99,102,241,0.06); }

  body.theme-brand .navbar-menu,
  body.style-2 .navbar-menu {
    background: rgba(26, 39, 68, 0.97);
  }
  body.theme-brand .navbar-menu-link,
  body.style-2 .navbar-menu-link {
    color: rgba(255,255,255,0.85);
    border-bottom-color: rgba(255,255,255,0.08);
  }
}

/* ===== THEME PICKER BTN (floating 🎨 button) ===== */
.theme-picker-btn {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  border: none;
  cursor: pointer;
  font-size: 22px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  z-index: 100;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.theme-picker-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

.theme-picker-btn:active { transform: scale(0.95); }

/* ===== THEME PICKER MODAL ===== */
.theme-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.theme-picker-modal.hidden { display: none; }

.theme-picker-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.theme-picker-content {
  position: relative;
  z-index: 1;
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 24px 20px 32px;
  width: 100%;
  max-width: 480px;
  animation: slideUpSheet 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); opacity: 0.5; }
  to   { transform: translateY(0);    opacity: 1; }
}

.theme-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.theme-picker-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--dark);
}

.theme-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.theme-picker-card {
  border-radius: 14px;
  border: 2.5px solid transparent;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--lighter);
  position: relative;
}

.theme-picker-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.theme-picker-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
}

.theme-picker-gradient {
  width: 100%;
  height: 52px;
  border-radius: 10px 10px 0 0;
}

.theme-picker-name {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 8px 4px;
  margin: 0;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.theme-picker-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  display: none;
  align-items: center;
  justify-content: center;
}

.theme-picker-card.active .theme-picker-check { display: flex; }
.theme-picker-check svg { width: 12px; height: 12px; }

/* ===== EXIT-INTENT POPUP ===== */
.exit-intent-popup {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.exit-intent-popup.hidden { display: none; }

.exit-intent-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
}

.exit-intent-content {
  position: relative;
  z-index: 1;
  background: white;
  border-radius: 20px;
  padding: 36px 28px 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  animation: popupIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
}

@keyframes popupIn {
  from { transform: scale(0.85) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0);       opacity: 1; }
}

.exit-intent-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--lighter);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: background 0.2s ease, color 0.2s ease;
}
.exit-intent-close:hover { background: var(--border); color: var(--dark); }

.exit-intent-icon { font-size: 48px; margin-bottom: 14px; display: block; }

.exit-intent-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.exit-intent-content p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 24px;
}

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

@media (max-width: 480px) {
  .exit-intent-actions { flex-direction: column; }
  .theme-picker-btn { bottom: 80px; right: 16px; width: 44px; height: 44px; font-size: 20px; }
}

/* ===== TELEGRAM CONFIG PANEL (в админке) ===== */
.telegram-config-section {
  margin-bottom: 4px;
}

.telegram-config-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
}

.telegram-config-status.configured {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: #059669;
}

.telegram-config-status-text {
  font-size: 12px;
  color: inherit;
}

.telegram-config-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.telegram-config-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.telegram-config-form label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.telegram-token-display {
  font-size: 11px;
  color: var(--gray-light);
  padding: 4px 0;
  word-break: break-all;
}

.telegram-config-actions {
  display: flex;
  gap: 8px;
}

.telegram-config-actions .btn {
  font-size: 12px;
  padding: 9px 12px;
}

/* ===== IMAGE PICKER MODAL ===== */
#image-picker-modal {
  z-index: 3000 !important;
}

#video-upload-modal {
  z-index: 3200 !important;
}

.image-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  padding: 16px;
  max-height: 60vh;
  overflow-y: auto;
}

.image-picker-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: all 0.2s ease;
  background: var(--lighter);
  aspect-ratio: 1;
}

.image-picker-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.image-picker-item.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.image-picker-item img {
  width: 100%;
  height: 80%;
  object-fit: cover;
  display: block;
}

.image-picker-item-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray);
  padding: 4px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 20%;
  display: flex;
  align-items: center;
}

.image-picker-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.image-picker-item.selected .image-picker-check {
  display: flex;
}

.image-picker-check svg {
  width: 13px;
  height: 13px;
}
/* ===== FONT SIZE UPDATES ===== */
body { font-size: 16px; }

.navbar-tagline { font-size: 12px; }

.block > h2 { font-size: 40px; }

.hero-content h1 { font-size: 58px; }
.hero-content p { font-size: 18px; }

.advantage-item h3 { font-size: 18px; }
.advantage-item p { font-size: 14px; }

.description-item h3 { font-size: 16px; }
.description-item p { font-size: 14px; }

.service-title { font-size: 17px; }
.service-description { font-size: 14px; }

.bottom-nav-label { font-size: 11px; }

.case-card-description { font-size: 14px; }
/* ===== ADMIN BANNER/THEME CARDS ===== */
.admin-banners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-banner-card {
  border-radius: var(--radius-sm, 10px);
  border: 2.5px solid transparent;
  background: var(--banner-bg, var(--gradient));
  color: var(--banner-color, #fff);
  padding: 0;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  min-height: 110px;
  transition: box-shadow 0.23s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.22s, transform 0.22s;
  box-shadow: 0 2px 12px rgba(99,102,241,0.07);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.admin-banner-card .admin-banner-info {
  padding: 12px 14px 16px 14px;
  z-index: 2;
  position: relative;
  width: 100%;
}

/* ===== MEDIA EXTENSIONS (FINAL PACKAGE) ===== */
.hero-video {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  max-height: 420px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.45);
  position: relative;
  z-index: 1;
  display: block;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.hero-video.is-loading {
  opacity: 0;
}

#hero-image {
  opacity: 1;
  transition: opacity 0.35s ease;
}

#hero-image.is-fade-out {
  opacity: 0;
}

.hero-wave-loader {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.22);
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.hero-wave-loader.hidden {
  display: none !important;
}

.hero-wave-loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.18) 40%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.18) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-120%);
  animation: heroShimmer 1.1s linear infinite;
}

.hero-wave-line {
  display: none;
}

@keyframes heroShimmer {
  100% { transform: translateX(120%); }
}

.hero-video.hidden,
.hero-media-overlay.hidden,
.gallery-filters.hidden,
.client-logos.hidden,
.sticky-cta.hidden {
  display: none !important;
}

.hero-media-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(10, 18, 31, 0.6);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  backdrop-filter: blur(8px);
}

.advantage-icon-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto 18px;
  display: block;
}

.advantage-icon-animated {
  width: 68px;
  height: 68px;
  margin: 0 auto 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--primary);
}

.advantage-icon-animated .machine-icon {
  width: 64px;
  height: 64px;
  margin: 0;
  animation: iconPulse 2.2s ease-in-out infinite;
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.18));
}

.advantage-icon-animated.icon-boxes .machine-icon { animation: iconPulse 2.1s ease-in-out infinite; }
.advantage-icon-animated.icon-target .machine-icon { animation: iconNudge 1.8s ease-in-out infinite; }
.advantage-icon-animated.icon-bolt .machine-icon { animation: iconFlash 1.4s ease-in-out infinite; }
.advantage-icon-animated.icon-factory .machine-icon { animation: iconRise 2s ease-in-out infinite; }
.advantage-icon-animated.icon-ruler .machine-icon { animation: iconNudge 1.8s ease-in-out infinite; }
.advantage-icon-animated.icon-truck .machine-icon { animation: iconNudge 1.6s ease-in-out infinite; }
.advantage-icon-animated.icon-docs .machine-icon { animation: iconPulse 2s ease-in-out infinite; }

.advantage-icon-animated .machine-svg {
  width: 64px;
  height: 64px;
  display: block;
  color: var(--primary);
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.18));
}

.advantage-icon-animated .machine-svg .machine-table,
.advantage-icon-animated .machine-svg .machine-bed,
.advantage-icon-animated .machine-svg .head-body,
.advantage-icon-animated .machine-svg .head-cutter {
  fill: currentColor;
}

.advantage-icon-animated .machine-svg .machine-head {
  transform-box: fill-box;
  transform-origin: center;
  animation: machineHeadMove 1.9s ease-in-out infinite;
}

.advantage-icon-animated .machine-svg .spark-core {
  fill: #fb923c;
  animation: sparkCorePulse 0.75s ease-in-out infinite;
}

.advantage-icon-animated .machine-svg .spark-ring {
  fill: none;
  stroke: #fb923c;
  stroke-width: 1.2;
  opacity: 0.55;
  transform-box: fill-box;
  transform-origin: center;
  animation: sparkRingPulse 0.75s ease-in-out infinite;
}

@keyframes machineHeadMove {
  0% { transform: translateX(0); }
  50% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

@keyframes sparkCorePulse {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes sparkRingPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1.35); }
}

@keyframes iconPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes iconNudge {
  0% { transform: translateX(0); }
  50% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

@keyframes iconRise {
  0% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

@keyframes iconFlash {
  0%, 100% { filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.18)); }
  50% { filter: drop-shadow(0 6px 18px rgba(249, 115, 22, 0.45)); }
}

.service-media {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 8px;
  border: 1px solid var(--border);
}

.gallery-filters {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.gallery-filter-btn {
  border: 1px solid var(--border);
  background: var(--lighter);
  color: var(--dark-2);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.gallery-filter-btn.active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.review-author-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.35);
  flex-shrink: 0;
}
.review-author-photo--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(249,115,22,0.85), rgba(234,88,12,0.85));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.review-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.review-author-name {
  font-size: 14px;
  line-height: 1.2;
  color: rgba(236, 242, 255, 0.95);
  font-weight: 700;
}
.review-author-meta {
  font-size: 12px;
  color: rgba(224, 232, 255, 0.88);
  line-height: 1.3;
}
.review-author-date {
  font-size: 11px;
  color: rgba(206, 216, 246, 0.78);
  letter-spacing: 0.3px;
}

.reviews-carousel {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}

.reviews-carousel .review-item {
  min-width: min(360px, 88vw);
  scroll-snap-align: start;
}

.client-logos {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.client-logo-item {
  height: 34px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.86;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  padding: 5px 8px;
}

.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2300;
}

.sticky-cta-inner {
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.35);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  padding-right: 44px;
}

.sticky-cta-close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  font-size: 16px;
}

#sticky-cta-text {
  font-size: 13px;
  line-height: 1.35;
}

#sticky-cta-button.btn {
  padding: 10px 16px;
  font-size: 12px;
  white-space: nowrap;
}

.media-upload-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 14px;
}

.media-upload-toolbar.hidden {
  display: none !important;
}

.media-upload-hint {
  font-size: 12px;
  color: var(--gray);
}

.image-picker-item video {
  width: 100%;
  height: 80%;
  object-fit: cover;
  display: block;
}

.video-upload-progress {
  width: 100%;
  height: 12px;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .sticky-cta-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

.admin-banner-card .admin-banner-title {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--banner-color, #fff);
  letter-spacing: -0.2px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.admin-banner-card .admin-banner-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.82);
  opacity: 0.92;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

/* Hover preview — overlay */
.admin-banner-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.11) 0%, rgba(0,0,0,0.08) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
.admin-banner-card:hover::before {
  opacity: 1;
}

.admin-banner-card:hover,
.admin-banner-card:focus-visible {
  box-shadow: 0 8px 32px rgba(99,102,241,0.16), 0 0 0 4px rgba(99,102,241,0.10);
  transform: translateY(-2px) scale(1.03);
  border-color: var(--primary, #6366f1);
  z-index: 2;
}

.admin-banner-card.active {
  border-color: var(--accent, #06b6d4);
  box-shadow: 0 0 0 3px var(--accent, #06b6d4), 0 8px 28px rgba(6,182,212,0.10);
}
.admin-banner-card.active::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 15px;
  font-weight: 900;
  color: var(--accent, #06b6d4);
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 3;
}

/* Banner color/gradient variables — usage example:
   style="--banner-bg:linear-gradient(...); --banner-color:#fff"
*/

/* Масонри/слайдер для мобильных */
@media (max-width: 600px) {
  .admin-banners-grid {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }
  .admin-banner-card {
    min-width: 70vw;
    flex: 0 0 70vw;
    scroll-snap-align: start;
    margin-right: 10px;
    min-height: 110px;
  }
}

/* Использовать .theme-card как основу для .admin-banner-card, не трогая .theme-card */

/* ===== MOBILE OVERFLOW FIXES ===== */
html, body {
  overflow-x: hidden;
}

@media (max-width: 768px) {
  #block-hero {
    overflow: hidden;
    padding: 24px 12px 34px !important;
  }

  /* Mobile: в режиме media-only убираем лишний синий фон Hero
     и отдаём максимум пространства под изображение/видео. */
  #block-hero.hero-media-only {
    background: transparent !important;
    padding: 8px 0 14px !important;
    border-radius: 0 !important;
  }

  #block-hero.hero-media-only::before,
  #block-hero.hero-media-only::after,
  #block-hero.hero-media-only .hero-image-wrap::before {
    display: none !important;
  }

  #block-hero.hero-media-only .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #block-hero.hero-media-only .hero-image-wrap {
    margin: 0 !important;
    border-radius: 0 !important;
  }

  #block-hero.hero-media-only #hero-image,
  #block-hero.hero-media-only .hero-video {
    width: 100% !important;
    border-radius: 0 !important;
    max-height: none !important;
    height: auto !important;
    object-fit: cover !important;
    display: block;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .navbar {
    padding: 8px 0;
  }

  .navbar .container {
    min-height: 54px;
  }

  .navbar-brand {
    margin-left: 0 !important;
    margin-right: 8px !important;
    min-width: 0;
    flex: 1;
  }

  .logo {
    font-size: 20px !important;
    min-width: 0;
  }

  .logo-gears {
    width: 44px !important;
    height: 34px !important;
    flex: 0 0 44px !important;
    margin-left: 0 !important;
    overflow: visible;
  }

  .logo-gears .gear-1,
  .logo-gears .gear-2 {
    font-size: 34px !important;
  }

  .logo-gears .gear-1 {
    left: 0 !important;
    top: 0 !important;
  }

  .logo-gears .gear-2 {
    left: 18px !important;
    top: 2px !important;
  }

  .logo-text {
    margin-left: 8px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 150px);
  }

  .hamburger {
    margin-left: 8px;
  }

  .navbar-menu {
    top: 62px !important;
  }

  .hero,
  .hero-content,
  .hero-image-wrap,
  #hero-image,
  .hero-video {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-content h1 {
    font-size: 34px !important;
    line-height: 1.12;
    word-break: break-word;
  }

  #hero-subtitle {
    text-align: left;
    text-justify: auto;
    hyphens: none;
  }

  .hero {
    gap: 14px !important;
  }

  .hero-image-wrap {
    order: 0 !important;
    transform: none !important;
  }

  #hero-image {
    max-height: none !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .hero-video {
    max-height: 220px !important;
    height: 220px;
    object-fit: cover;
  }

  #block-hero.hero-video-mode #hero-image,
  #block-hero.hero-video-mode .hero-video {
    height: 260px !important;
    max-height: 260px !important;
  }

  .hero-media-only #hero-image {
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  .hero-media-only .hero-video {
    height: 300px !important;
    max-height: 300px !important;
  }

  .hero-media-overlay {
    left: 10px;
    right: 10px;
    bottom: 10px;
    font-size: 12px;
    padding: 8px 10px;
  }

  .hero-content .btn-primary {
    display: none !important;
  }

  .hero-mobile-cta {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
    margin-top: 8px;
  }

  .sticky-cta {
    left: 8px;
    right: 8px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 16px);
  }

  .sticky-cta-inner {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px 10px;
    padding-right: 40px;
    gap: 8px;
  }

  #sticky-cta-text {
    /* На мобайле скрываем длинный текст — оставляем только кнопку */
    display: none;
  }

  #sticky-cta-button.btn {
    width: 100%;
    white-space: normal;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 700;
  }

}

@media (max-width: 390px) {
  .logo-gears {
    width: 38px !important;
    height: 30px !important;
    flex-basis: 38px !important;
  }

  .logo-gears .gear-1,
  .logo-gears .gear-2 {
    font-size: 30px !important;
  }

  .logo-gears .gear-2 {
    left: 15px !important;
    top: 2px !important;
  }

  .logo-text {
    margin-left: 6px !important;
  }
}

/* ===== MOBILE CONTACT BAR ===== */
.mobile-contact-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-contact-bar {
    display: flex;
    position: fixed;
    bottom: 72px; /* above bottom-nav */
    left: 0;
    right: 0;
    z-index: 149;
    gap: 0;
    align-items: stretch;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-top: 1px solid rgba(226,232,240,0.9);
    box-shadow: 0 -2px 16px rgba(0,0,0,0.10);
    padding: 6px 8px;
    padding-bottom: 4px;
    gap: 6px;
  }

  .mobile-contact-bar:empty {
    display: none;
  }

  .mcb-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px 4px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.12s, opacity 0.12s;
    line-height: 1.1;
    min-width: 0;
  }

  .mcb-btn:active {
    transform: scale(0.94);
    opacity: 0.85;
  }

  .mcb-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  /* Phone */
  .mcb-btn--phone {
    background: var(--accent, #1e3a5f);
    color: #fff;
  }

  /* Max / messenger */
  .mcb-btn--whatsapp {
    background: #111111;
    color: #ffd21f;
    border: 1px solid rgba(255, 210, 31, 0.35);
  }

  /* Telegram */
  .mcb-btn--telegram {
    background: #2AABEE;
    color: #fff;
  }

  /* Drawing CTA */
  .mcb-btn--drawing {
    background: linear-gradient(135deg, var(--accent, #1e3a5f) 0%, var(--accent2, #2563eb) 100%);
    color: #fff;
    flex: 1.4;
  }
}

/* Theme overrides for mobile contact bar */
body.theme-dark-orange .mobile-contact-bar,
body.theme-cyber .mobile-contact-bar,
body.theme-gold .mobile-contact-bar,
body.theme-red .mobile-contact-bar {
  background: rgba(20,20,30,0.97);
  border-top-color: rgba(255,255,255,0.1);
}

/* Admin panel mobile contact section */
.mcb-admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.mcb-admin-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  gap: 6px;
}

.mcb-admin-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent, #1e3a5f);
}

.mcb-preview-note {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  margin-top: 4px;
  margin-bottom: 8px;
}

/* ===== BOLD TEXT HIGHLIGHTS ===== */
.hero-subtitle strong,
.advantage-description strong,
.service-description strong,
.faq-answer-content strong,
.pricing-description strong,
.review-text strong,
.cta-description strong,
.gallery-description strong {
  font-weight: 700;
  color: var(--accent);
}

/* For dark themes — keep strong readable */
body.theme-dark-orange .hero-subtitle strong,
body.theme-dark-orange .advantage-description strong,
body.theme-dark-orange .service-description strong,
body.theme-dark-orange .gallery-description strong,
body.theme-cyber .hero-subtitle strong,
body.theme-cyber .advantage-description strong,
body.theme-cyber .service-description strong,
body.theme-cyber .gallery-description strong,
body.theme-gold .hero-subtitle strong,
body.theme-gold .advantage-description strong,
body.theme-gold .service-description strong,
body.theme-gold .gallery-description strong,
body.theme-red .hero-subtitle strong,
body.theme-red .advantage-description strong,
body.theme-red .service-description strong,
body.theme-red .gallery-description strong {
  color: var(--accent2, var(--accent));
}

/* ===== URGENCY STRIP ===== */
.urgency-strip {
  background: linear-gradient(90deg, #1a3255 0%, #132a49 42%, #0f2340 100%);
  color: #fff;
  text-align: center;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 5;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), inset 0 -1px 0 rgba(0,0,0,0.15);
}

.urgency-strip.hidden { display: none; }

.urgency-load {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.urgency-load-bar {
  width: 80px;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  overflow: hidden;
}

.urgency-load-fill {
  height: 100%;
  background: #f97316;
  border-radius: 3px;
  transition: width 1s ease;
}

.urgency-dot {
  width: 8px;
  height: 8px;
  background: #f97316;
  border-radius: 50%;
  animation: urgency-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes urgency-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.urgency-text { color: rgba(255,255,255,0.94); font-weight: 600; }
.urgency-load-label { color: rgba(255,255,255,0.86); font-size: 12px; font-weight: 600; }

/* ===== ACCENT NUMBERS BLOCK ===== */
.accent-numbers-block {
  padding: 28px 0 12px;
}

.accent-numbers-block.hidden { display: none; }

.accent-numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.accent-number-item {
  padding: 30px 24px;
  text-align: center;
  position: relative;
  border-right: 1px solid var(--border, #e2e8f0);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.accent-number-item:last-child { border-right: none; }

.accent-number-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 6px;
}

.accent-number-big {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  letter-spacing: -1px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.65);
}

.accent-number-unit {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1;
}

.accent-number-label {
  font-size: 14px;
  color: #334155;
  font-weight: 600;
  line-height: 1.3;
}

/* Dark theme accent number overrides */
body.theme-dark-orange .accent-numbers-grid,
body.theme-cyber .accent-numbers-grid,
body.theme-gold .accent-numbers-grid,
body.theme-red .accent-numbers-grid {
  border-color: rgba(255,255,255,0.12);
}

body.theme-dark-orange .accent-number-item,
body.theme-cyber .accent-number-item,
body.theme-gold .accent-number-item,
body.theme-red .accent-number-item {
  border-right-color: rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.03) 100%);
}

body.theme-dark-orange .accent-number-big,
body.theme-cyber .accent-number-big,
body.theme-gold .accent-number-big,
body.theme-red .accent-number-big,
body.theme-dark-orange .accent-number-unit,
body.theme-cyber .accent-number-unit,
body.theme-gold .accent-number-unit,
body.theme-red .accent-number-unit {
  color: var(--primary-light);
}

body.theme-dark-orange .accent-number-label,
body.theme-cyber .accent-number-label,
body.theme-gold .accent-number-label,
body.theme-red .accent-number-label {
  color: rgba(255,255,255,0.86);
}

@media (max-width: 480px) {
  .accent-numbers-grid {
    grid-template-columns: 1fr;
  }
  .accent-number-item {
    border-right: none;
    border-bottom: 1px solid var(--border, #e2e8f0);
    padding: 20px 16px;
  }
  .accent-number-item:last-child { border-bottom: none; }
}

/* ===== PROBLEMS / SOLUTIONS BLOCK ===== */
.problems-block {
  padding: 48px 52px;
}

.problems-block.hidden { display: none; }

.problems-subtitle {
  color: var(--gray, #64748b);
  font-size: 16px;
  margin-bottom: 32px;
  margin-top: -8px;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.problem-card {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card-bg, #fff);
}

.problem-half {
  padding: 20px 22px;
}

.problem-top {
  background: var(--bg-secondary, #f8fafc);
  border-bottom: 1px solid var(--border, #e2e8f0);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.problem-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.problem-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray, #94a3b8);
  margin-bottom: 4px;
}

.problem-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark, #1e293b);
  line-height: 1.4;
  margin: 0;
}

.solution-top {
  background: #fff;
}

.solution-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 4px;
}

.solution-text {
  font-size: 14px;
  color: var(--dark, #374151);
  line-height: 1.5;
  margin: 0;
}

.solution-text strong {
  font-weight: 700;
  color: var(--accent);
}

/* Arrow connector */
.problem-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  height: 32px;
  background: var(--accent);
  position: relative;
}

.problem-arrow::after {
  content: '→ Наше решение';
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Dark theme problems */
body.theme-dark-orange .problem-card,
body.theme-cyber .problem-card,
body.theme-gold .problem-card,
body.theme-red .problem-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}

body.theme-dark-orange .problem-top,
body.theme-cyber .problem-top,
body.theme-gold .problem-top,
body.theme-red .problem-top {
  background: rgba(255,255,255,0.06);
  border-bottom-color: rgba(255,255,255,0.1);
}

body.theme-dark-orange .solution-top,
body.theme-cyber .solution-top,
body.theme-gold .solution-top,
body.theme-red .solution-top {
  background: transparent;
}

body.theme-dark-orange .problem-text,
body.theme-cyber .problem-text,
body.theme-gold .problem-text,
body.theme-red .problem-text,
body.theme-dark-orange .solution-text,
body.theme-cyber .solution-text,
body.theme-gold .solution-text,
body.theme-red .solution-text {
  color: #e8e8e8;
}

body.theme-dark-orange .problems-subtitle,
body.theme-cyber .problems-subtitle,
body.theme-gold .problems-subtitle,
body.theme-red .problems-subtitle {
  color: rgba(255,255,255,0.55);
}

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

/* ===== MOBILE FIXES FOR NEW BLOCKS ===== */

/* Urgency strip — компактнее на мобильном */
@media (max-width: 600px) {
  .urgency-strip {
    font-size: 12px;
    gap: 10px;
    padding: 8px 12px;
  }
  .urgency-load-bar { width: 56px; }
  .urgency-load-label { display: none; }
}

/* Accent numbers — 3 колонки даже на мобильном, просто меньше */
@media (max-width: 480px) {
  .accent-numbers-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .accent-number-item {
    border-right: 1px solid var(--border, #e2e8f0) !important;
    border-bottom: none !important;
    padding: 16px 8px !important;
  }
  .accent-number-item:last-child { border-right: none !important; }
  .accent-number-big { font-size: 28px !important; }
  .accent-number-unit { font-size: 14px !important; }
  .accent-number-label { font-size: 11px !important; }
}

/* Problems grid — 1 колонка на мобильном, уже есть, но улучшаем отступы */
@media (max-width: 600px) {
  .problem-half { padding: 14px 16px; }
  .problem-text { font-size: 13px; }
  .solution-text { font-size: 13px; }
  .problem-icon { font-size: 18px; }
  .problems-block { padding: 32px 22px; }
  .problems-grid { gap: 14px; }
}

/* Bold text — чуть меньший акцент на мобильном для читаемости */
@media (max-width: 480px) {
  .hero-subtitle strong { font-size: inherit; }
}

/* ===== ANIMATED SVG ICONS ===== */
.svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  /* Радиальный градиент даёт «индустриальную» глубину вместо плоской заливки */
  background:
    radial-gradient(circle at 30% 30%,
      rgba(var(--accent-rgb, 30,58,95), 0.18) 0%,
      rgba(var(--accent-rgb, 30,58,95), 0.06) 60%,
      rgba(var(--accent-rgb, 30,58,95), 0.02) 100%);
  border: 1px solid rgba(var(--accent-rgb, 30,58,95), 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    0 4px 10px rgba(15,25,41,0.06);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.25s ease;
}
/* «Светлячок» поверх иконки — мягкий блик */
.svg-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 45%);
  pointer-events: none;
}
.advantage-item:hover .svg-icon,
.service-card:hover .svg-icon,
.problem-card:hover .svg-icon {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    0 8px 18px rgba(15,25,41,0.10);
}

.svg-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
  position: relative;
  z-index: 1;
}

/* Тёмные темы — приглушённый glass-фон, чтобы иконка не растворялась */
body.theme-dark-orange .svg-icon,
body.theme-cyber .svg-icon,
body.theme-gold .svg-icon,
body.theme-red .svg-icon,
body.theme-brand .svg-icon {
  background:
    radial-gradient(circle at 30% 30%,
      rgba(255,255,255,0.10) 0%,
      rgba(255,255,255,0.04) 60%,
      rgba(255,255,255,0.01) 100%);
  border-color: rgba(255,255,255,0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 4px 10px rgba(0,0,0,0.20);
}
body.theme-dark-orange .svg-icon::after,
body.theme-cyber .svg-icon::after,
body.theme-gold .svg-icon::after,
body.theme-red .svg-icon::after,
body.theme-brand .svg-icon::after {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 45%);
}

/* Service card icon — smaller */
.service-icon .svg-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.service-icon .svg-icon svg { width: 24px; height: 24px; }

/* Problem icon */
.problem-icon .svg-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(var(--accent-rgb,30,58,95), 0.06);
}
.problem-icon .svg-icon svg { width: 20px; height: 20px; }

/* === ICON ANIMATIONS === */

/* rotate — gear, mill cutter */
@keyframes iconRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.anim-rotate { animation: iconRotate 3s linear infinite; transform-origin: center; }
.anim-rotate-slow { animation: iconRotate 6s linear infinite; transform-origin: center; }
.anim-rotate-ccw { animation: iconRotate 4s linear infinite reverse; transform-origin: center; }

/* pulse scale — quality, shield */
@keyframes iconPulseScale {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.85; }
}
.anim-pulse { animation: iconPulseScale 2s ease-in-out infinite; }

/* bounce Y — drill */
@keyframes iconBounceY {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(3px); }
  60% { transform: translateY(-1px); }
}
.anim-bounce { animation: iconBounceY 1.2s ease-in-out infinite; }

/* scan line — reengineering */
@keyframes iconScan {
  0%, 100% { transform: translateY(-6px); opacity: 0.3; }
  50% { transform: translateY(6px); opacity: 1; }
}
.anim-scan { animation: iconScan 1.8s ease-in-out infinite; }

/* draw — pencil/CAD */
@keyframes iconDraw {
  0%, 100% { stroke-dashoffset: 30; }
  50% { stroke-dashoffset: 0; }
}
.anim-draw {
  stroke-dasharray: 30;
  animation: iconDraw 2s ease-in-out infinite;
}

/* flash stroke-opacity — quality check, measurement */
@keyframes iconFlash {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
.anim-flash { animation: iconFlash 1.6s ease-in-out infinite; }

/* flame flicker */
@keyframes iconFlicker {
  0%, 100% { transform: scaleY(1) skewX(0deg); }
  25% { transform: scaleY(1.06) skewX(1deg); }
  50% { transform: scaleY(0.94) skewX(-1deg); }
  75% { transform: scaleY(1.04) skewX(0.5deg); }
}
.anim-flicker { animation: iconFlicker 0.9s ease-in-out infinite; transform-origin: bottom center; }

/* layers rise — 3D print */
@keyframes iconRise {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-4px); opacity: 1; }
}
.anim-rise { animation: iconRise 1.8s ease-in-out infinite; }
.anim-rise-delay { animation: iconRise 1.8s ease-in-out 0.4s infinite; }
.anim-rise-delay2 { animation: iconRise 1.8s ease-in-out 0.8s infinite; }

/* tick draw — checkmark */
@keyframes iconTick {
  0% { stroke-dashoffset: 20; opacity: 0; }
  40% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
.anim-tick {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: iconTick 1.2s ease-out infinite;
}

/* shield pulse */
@keyframes iconShieldPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.anim-shield { animation: iconShieldPulse 2.2s ease-in-out infinite; }

/* nudge X — swap, import */
@keyframes iconNudge {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(3px); }
  60% { transform: translateX(-3px); }
}
.anim-nudge { animation: iconNudge 2s ease-in-out infinite; }

/* clock hands */
@keyframes clockHourHand {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes clockMinuteHand {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.anim-clock-min { animation: clockMinuteHand 4s linear infinite; transform-origin: 12px 12px; }
.anim-clock-hr  { animation: clockHourHand 12s linear infinite; transform-origin: 12px 12px; }

/* ─── Additional industrial animations (2026-05-18 icons revamp) ─── */
/* Мягкое вертикальное движение шпинделя/сверла */
@keyframes iconBounceSoft {
  0%, 100% { transform: translateY(0); }
  45%, 55% { transform: translateY(1.6px); }
}
.anim-bounce-soft { animation: iconBounceSoft 1.5s cubic-bezier(0.4,0,0.2,1) infinite; }

/* Горизонтальное движение резца — туда-сюда вдоль вала */
@keyframes iconNudgeX {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2.5px); }
  75% { transform: translateX(2.5px); }
}
.anim-nudge-x { animation: iconNudgeX 3s ease-in-out infinite; }

/* Быстрое вращение для шпинделя/патрона */
.anim-rotate-fast { animation: iconRotate 1.6s linear infinite; }

/* Дополнительная задержка для волн света */
.anim-flash[style*="animation-delay"] { /* no-op, чтобы style-инлайн работал; используется в иконках */ }

/* ruble spin */
@keyframes iconSpin180 {
  0%, 40%, 100% { transform: rotateY(0deg); }
  20% { transform: rotateY(180deg); }
}
.anim-spin-y { animation: iconSpin180 3s ease-in-out infinite; }

/* Dark theme icon bg */
body.theme-dark-orange .svg-icon,
body.theme-cyber .svg-icon,
body.theme-gold .svg-icon,
body.theme-red .svg-icon {
  background: rgba(255,255,255,0.07);
}

/* ===================================================================
   TRUST BADGES SECTION
   =================================================================== */
.trust-badges-section {
  margin: 48px 0 0;
  padding: 40px 0;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 20px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.trust-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
}

.trust-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb,30,58,95), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-badge-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}

.trust-badge-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-badge-text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark, #1e3a5f);
  line-height: 1.3;
}

.trust-badge-text span {
  font-size: 11.5px;
  color: var(--gray, #6b7280);
  line-height: 1.4;
}

@media (max-width: 960px) {
  .trust-badges-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .trust-badges-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .trust-badge { padding: 16px 10px; }
  .trust-badge-text strong { font-size: 12px; }
  .trust-badge-text span { font-size: 11px; }
}

/* ===================================================================
   SITE FOOTER
   =================================================================== */
.site-footer {
  background: #111827;
  color: #d1d5db;
  margin-top: 56px;
  padding-bottom: 0;
  /* Extra bottom padding to clear mobile nav bar */
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.4fr 1.6fr;
  gap: 40px 32px;
  padding-top: 52px;
  padding-bottom: 40px;
}

/* ─ Column titles ─ */
.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin: 0 0 16px;
}

/* ─ Logo ─ */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-logo-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
}

.footer-logo-text {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}

.footer-about-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: #9ca3af;
  margin: 0 0 20px;
}

/* ─ Socials ─ */
.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.2s;
}

.footer-social-link:hover { opacity: 0.85; transform: translateY(-2px); }

.footer-social-link--wa { background: #25d366; }
.footer-social-link--tg { background: #2aabee; }

.footer-social-link svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* ─ Nav list ─ */
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

/* ─ Contacts list ─ */
.footer-contacts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contacts-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #9ca3af;
}

.footer-contacts-list li svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contacts-list a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ─ Legal list ─ */
.footer-legal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-legal-list li {
  display: flex;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #9ca3af;
}

.footer-legal-label {
  color: #6b7280;
  flex-shrink: 0;
  min-width: 75px;
}

/* ─ Privacy button ─ */
.footer-privacy-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #d1d5db;
  font-size: 12.5px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  width: 100%;
  text-align: left;
}

.footer-privacy-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.footer-privacy-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--accent);
  flex-shrink: 0;
}

/* ─ Copyright bar ─ */
.footer-copyright {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 18px 0;
  /* Extra space for mobile nav */
  padding-bottom: calc(18px + 140px);
}

.footer-copyright .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: #6b7280;
}

.footer-copyright-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-dot { color: #374151; }

.footer-text-link {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 12.5px;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.footer-text-link:hover { color: var(--accent); }

/* Footer responsive */
@media (max-width: 960px) {
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .footer-col--about { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
    padding-top: 36px;
    padding-bottom: 28px;
  }
  .footer-copyright .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-copyright-links { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-dot { display: none; }
}

/* Dark theme footer adjustments */
body.theme-dark-orange .trust-badge,
body.theme-cyber .trust-badge,
body.theme-gold .trust-badge,
body.theme-red .trust-badge {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

body.theme-dark-orange .trust-badge-text strong,
body.theme-cyber .trust-badge-text strong,
body.theme-gold .trust-badge-text strong,
body.theme-red .trust-badge-text strong {
  color: #e5e7eb;
}

/* ===================================================================
   PRIVACY POLICY MODAL
   =================================================================== */
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.privacy-modal.hidden { display: none; }

.privacy-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.privacy-modal-content {
  position: relative;
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,0.25);
  overflow: hidden;
}

.privacy-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.privacy-modal-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.privacy-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
  -webkit-overflow-scrolling: touch;
}

.privacy-modal-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 24px 0 8px;
}

.privacy-modal-body h3:first-child { margin-top: 0; }

.privacy-modal-body p { margin: 0 0 10px; }

.privacy-modal-body ul {
  margin: 8px 0 12px 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.privacy-modal-body a {
  color: var(--accent);
  text-decoration: underline;
}

.privacy-updated {
  display: inline-block;
  font-size: 12px;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 20px !important;
}

.privacy-modal-footer {
  padding: 16px 28px 20px;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.privacy-modal-footer .btn {
  width: 100%;
}

@media (max-width: 540px) {
  .privacy-modal-content { border-radius: 16px; max-height: 92vh; }
  .privacy-modal-header, .privacy-modal-body, .privacy-modal-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* ===================================================================
   QUIZ HERO BUTTON
   =================================================================== */
.quiz-hero-btn {
  margin-left: 12px;
}
@media (max-width: 600px) {
  .quiz-hero-btn { margin-left: 0; margin-top: 10px; }
}

/* ===================================================================
   CHAT WIDGET
   =================================================================== */
.chat-widget {
  position: fixed;
  bottom: 88px; /* above mobile contact bar */
  right: 16px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

@media (min-width: 769px) {
  .chat-widget { bottom: 24px; }
}

/* Toggle button */
.chat-toggle-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  flex-shrink: 0;
}

.chat-toggle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
}

.chat-toggle-icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}

.chat-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  animation: chatBadgePop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes chatBadgePop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* Chat window */
.chat-window {
  width: 320px;
  max-height: 480px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chatWindowOpen 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes chatWindowOpen {
  0% { opacity: 0; transform: scale(0.9) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.chat-window.hidden { display: none; }

/* Chat header */
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--accent);
  color: #fff;
  flex-shrink: 0;
}

.chat-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-header-avatar svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

.chat-header-info { flex: 1; }

.chat-header-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.chat-header-status {
  font-size: 11.5px;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
}

.chat-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: chatOnlinePulse 2s ease-in-out infinite;
}

@keyframes chatOnlinePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chat-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.chat-close-btn:hover { opacity: 1; }
.chat-close-btn svg { width: 18px; height: 18px; stroke: #fff; }

/* Messages */
.chat-messages {
  flex: 1;
  padding: 12px 12px 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
}

.chat-msg { display: flex; flex-direction: column; }

.chat-msg--bot { align-items: flex-start; }
.chat-msg--user { align-items: flex-end; }

.chat-msg-bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  background: #f3f4f6;
  color: #111827;
}

.chat-msg--user .chat-msg-bubble {
  background: var(--accent);
  color: #fff;
}

.chat-msg-time {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 3px;
  padding: 0 4px;
}

/* Chat form */
.chat-form {
  padding: 10px 12px 12px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex-shrink: 0;
}

.chat-input {
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13.5px;
  color: #111827;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}

.chat-input:focus { border-color: var(--accent); }

.chat-textarea-wrap { position: relative; }

.chat-textarea {
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13.5px;
  color: #111827;
  outline: none;
  width: 100%;
  resize: none;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.chat-textarea:focus { border-color: var(--accent); }

.chat-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
}

.chat-send-btn:hover { opacity: 0.88; }
.chat-send-btn svg { width: 16px; height: 16px; }

/* Chat success */
.chat-success {
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.chat-success.hidden { display: none; }

.chat-success-icon { font-size: 36px; }

.chat-success p { font-size: 14px; color: #374151; margin: 0; }

.chat-success-alts {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.chat-alt-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s;
}

.chat-alt-link:hover { opacity: 0.85; }
.chat-alt-link--wa { background: #25d366; }
.chat-alt-link--tg { background: #2aabee; }

@media (max-width: 360px) {
  .chat-window { width: 290px; }
}

/* ===================================================================
   QUIZ MODAL
   =================================================================== */
.quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.quiz-modal.hidden { display: none; }

.quiz-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
}

.quiz-content {
  position: relative;
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px 28px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.22);
  animation: quizOpen 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes quizOpen {
  0% { opacity: 0; transform: scale(0.95) translateY(16px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.quiz-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.quiz-close-btn:hover { background: #e5e7eb; }

/* Progress */
.quiz-progress {
  height: 5px;
  background: #f3f4f6;
  border-radius: 3px;
  margin-bottom: 8px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.quiz-step-label {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 24px;
  font-weight: 500;
}

/* Step content */
.quiz-step { animation: quizStepIn 0.2s ease; }
.quiz-step.hidden { display: none; }

@keyframes quizStepIn {
  0% { opacity: 0; transform: translateX(10px); }
  100% { opacity: 1; transform: translateX(0); }
}

.quiz-title {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 6px;
  line-height: 1.3;
}

.quiz-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 20px;
}

/* Options grid */
.quiz-options--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quiz-options--list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  color: #374151;
  text-align: left;
  transition: border-color 0.18s, background 0.18s, transform 0.15s;
  font-family: inherit;
}

.quiz-option:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb,30,58,95),0.04);
  transform: translateY(-1px);
}

.quiz-option.selected,
.quiz-option.multi-selected {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb,30,58,95),0.07);
  color: var(--accent);
}

.quiz-option-icon { font-size: 20px; flex-shrink: 0; }

.quiz-option-label { font-size: 13px; font-weight: 600; line-height: 1.3; }

/* Wide option (list style) */
.quiz-option--wide {
  gap: 14px;
}

.quiz-option--wide span:not(.quiz-option-icon) {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quiz-option--wide strong {
  font-size: 14px;
  font-weight: 700;
  color: inherit;
}

.quiz-option--wide em {
  font-size: 12px;
  font-style: normal;
  color: #9ca3af;
}

.quiz-option.selected .quiz-option--wide em { color: var(--accent); opacity: 0.7; }

/* Step 3 next button */
.quiz-next-btn {
  margin-top: 16px;
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
}

.quiz-next-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.quiz-next-btn:not(:disabled):hover { opacity: 0.88; }

/* Step 4 form */
.quiz-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-input {
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 14px;
  color: #111827;
  outline: none;
  width: 100%;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
  background: #fff;
}

.quiz-input:focus { border-color: var(--accent); }

.quiz-textarea { resize: vertical; min-height: 80px; }

.quiz-privacy-note {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.5;
}

.quiz-privacy-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.quiz-submit-btn {
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  font-family: inherit;
}

.quiz-submit-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* Result */
.quiz-result {
  text-align: center;
  padding: 12px 0;
}

.quiz-result-icon { font-size: 52px; margin-bottom: 16px; }

.quiz-result h2 {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 12px;
}

.quiz-result p {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 10px;
}

.quiz-result-contacts {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.quiz-result-contacts p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.quiz-result-contacts .chat-alt-link {
  display: inline-flex;
}

@media (max-width: 540px) {
  .quiz-content { padding: 24px 16px 20px; border-radius: 18px; }
  .quiz-title { font-size: 17px; }
  .quiz-options--grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   PROCESS STEP ICONS (SVG)
   =================================================================== */
.process-step-icon {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  margin-bottom: 12px;
}

.process-step-icon .svg-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.process-step-icon .svg-icon svg {
  width: 28px;
  height: 28px;
}

.process-step-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  line-height: 1;
}

/* ===================================================================
   CHAT DIALOG BAR (two-way mode)
   =================================================================== */
.chat-dialog-bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 12px 12px;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.chat-reply-input {
  flex: 1;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 13.5px;
  color: #111827;
  outline: none;
  resize: none;
  font-family: inherit;
  transition: border-color 0.2s;
  min-height: 38px;
  max-height: 100px;
  overflow-y: auto;
}

.chat-reply-input:focus { border-color: var(--accent); }

.chat-reply-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.chat-reply-btn:hover { opacity: 0.85; }

.chat-reply-btn svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
}

/* Typing dots animation */
.chat-typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px !important;
}

.chat-typing-bubble span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ca3af;
  animation: typingDot 1.2s ease-in-out infinite;
}

.chat-typing-bubble span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-bubble span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ===================================================================
   CHAT WIDGET POSITION FIX — не перекрывать кнопку «Отправить чертёж»
   =================================================================== */
@media (max-width: 768px) {
  .chat-widget {
    bottom: 170px; /* выше mobile-contact-bar (72px) + margin */
    right: 10px;
  }

  .chat-window {
    width: calc(100vw - 24px);
    max-width: 340px;
    right: 0;
    position: absolute;
    bottom: 68px;
  }
}

/* ========== PRICING CALCULATOR (2026-05-17) ========== */
.pricing-calc {
  background: linear-gradient(135deg, rgba(15,25,41,0.04) 0%, rgba(249,115,22,0.05) 100%);
  border: 1px solid rgba(15,25,41,0.10);
  border-radius: 20px;
  padding: 28px;
  margin: 0 0 36px;
  position: relative;
  overflow: hidden;
}
.pricing-calc.is-focused {
  box-shadow: 0 0 0 4px rgba(241,191,0,0.35);
  transition: box-shadow 0.25s ease;
}
.pricing-calc::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(249,115,22,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.pricing-calc-header {
  margin-bottom: 22px;
  position: relative;
}
.pricing-calc-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary, #f97316);
  background: rgba(249,115,22,0.12);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.pricing-calc-title {
  font-family: var(--font-head, inherit);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  color: #0f1929;
  margin: 0 0 8px;
}
.pricing-calc-sub {
  font-size: 14px;
  color: #475569;
  margin: 0;
  max-width: 680px;
  line-height: 1.5;
}
.pricing-calc-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
  position: relative;
}
.pricing-calc-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pcf-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pcf-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #475569;
}
.pcf-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pcf-segment {
  flex: 1 1 auto;
  min-width: 80px;
  background: #fff;
  border: 1.5px solid rgba(15,25,41,0.10);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4,0,0.2,1);
  text-align: center;
  line-height: 1.2;
}
.pcf-segment:hover {
  border-color: var(--primary, #f97316);
  background: rgba(249,115,22,0.04);
}
.pcf-segment.is-active {
  background: var(--primary, #f97316);
  border-color: var(--primary, #f97316);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(249,115,22,0.25);
}
.pcf-select {
  background: #fff;
  border: 1.5px solid rgba(15,25,41,0.10);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: #1e293b;
  cursor: pointer;
  transition: border-color 0.2s;
  font-family: inherit;
}
.pcf-select:focus {
  outline: none;
  border-color: var(--primary, #f97316);
}
.pcf-qty-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.pcf-qty-input {
  background: #fff;
  border: 1.5px solid rgba(15,25,41,0.10);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 600;
  color: #0f1929;
  width: 100%;
  text-align: center;
  font-family: inherit;
}
.pcf-qty-input:focus {
  outline: none;
  border-color: var(--primary, #f97316);
}
.pcf-qty-range {
  grid-column: 1 / -1;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(15,25,41,0.10);
  border-radius: 4px;
  outline: none;
}
.pcf-qty-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary, #f97316);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(249,115,22,0.35);
}
.pcf-qty-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--primary, #f97316);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}
.pcf-qty-presets {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pcf-preset {
  background: rgba(15,25,41,0.05);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 12px;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.pcf-preset:hover {
  background: rgba(249,115,22,0.08);
  color: var(--primary, #f97316);
}
.pcf-preset.is-active {
  background: var(--primary, #f97316);
  color: #fff;
  font-weight: 600;
}

/* Result panel */
.pricing-calc-result {
  background: #fff;
  border: 1.5px solid rgba(15,25,41,0.10);
  border-radius: 16px;
  padding: 24px;
  position: sticky;
  top: 90px;
  box-shadow: 0 12px 32px rgba(15,25,41,0.06);
}
.pcr-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}
.pcr-range {
  font-family: var(--font-head, inherit);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  color: #0f1929;
  margin-bottom: 16px;
  word-break: keep-all;
  letter-spacing: -0.5px;
  transition: opacity 0.2s;
}
.pcr-range.is-loading {
  opacity: 0.45;
}
.pcr-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px dashed rgba(15,25,41,0.10);
  border-bottom: 1px dashed rgba(15,25,41,0.10);
  margin-bottom: 16px;
}
.pcr-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.pcr-meta-row span {
  color: #64748b;
}
.pcr-meta-row strong {
  color: #0f1929;
  font-weight: 700;
}
.pcr-cta {
  display: block;
  width: 100%;
  background: var(--primary, #f97316);
  background-image: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 8px 20px rgba(249,115,22,0.30);
  margin-bottom: 8px;
}
.pcr-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(249,115,22,0.38);
}
.pcr-cta-alt {
  display: block;
  width: 100%;
  background: transparent;
  color: #0f1929;
  border: 1.5px solid rgba(15,25,41,0.15);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
}
.pcr-cta-alt:hover {
  background: rgba(15,25,41,0.04);
  border-color: rgba(15,25,41,0.30);
}
.pcr-disclaimer {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
  margin: 14px 0 0;
}
.pcr-disclaimer strong {
  color: #0f1929;
}

/* Tweak existing pricing cards heading */
.pricing-cards-title {
  font-family: var(--font-head, inherit);
  font-size: 18px;
  font-weight: 600;
  color: #475569;
  margin: 8px 0 18px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* Mobile */
@media (max-width: 860px) {
  .pricing-calc {
    padding: 20px 16px;
    border-radius: 16px;
  }
  .pricing-calc-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .pricing-calc-result {
    position: relative;
    top: auto;
    padding: 18px;
  }
  .pcf-segment {
    min-width: 0;
    padding: 9px 10px;
    font-size: 12px;
  }
  .pcf-qty-input {
    font-size: 16px;
  }
}

/* Dark themes — calculator surfaces */
body.theme-dark-orange .pricing-calc,
body.theme-cyber .pricing-calc,
body.theme-gold .pricing-calc,
body.theme-red .pricing-calc {
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
  border-color: rgba(255,255,255,0.10);
}
body.theme-dark-orange .pricing-calc-title,
body.theme-cyber .pricing-calc-title,
body.theme-gold .pricing-calc-title,
body.theme-red .pricing-calc-title {
  color: #fff;
}
body.theme-dark-orange .pricing-calc-sub,
body.theme-cyber .pricing-calc-sub,
body.theme-gold .pricing-calc-sub,
body.theme-red .pricing-calc-sub {
  color: rgba(255,255,255,0.70);
}
body.theme-dark-orange .pcf-segment,
body.theme-cyber .pcf-segment,
body.theme-gold .pcf-segment,
body.theme-red .pcf-segment {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.85);
}
body.theme-dark-orange .pcf-select,
body.theme-cyber .pcf-select,
body.theme-gold .pcf-select,
body.theme-red .pcf-select,
body.theme-dark-orange .pcf-qty-input,
body.theme-cyber .pcf-qty-input,
body.theme-gold .pcf-qty-input,
body.theme-red .pcf-qty-input {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  color: #fff;
}
body.theme-dark-orange .pricing-calc-result,
body.theme-cyber .pricing-calc-result,
body.theme-gold .pricing-calc-result,
body.theme-red .pricing-calc-result {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 8px 24px rgba(0,0,0,0.30);
}
body.theme-dark-orange .pcr-range,
body.theme-cyber .pcr-range,
body.theme-gold .pcr-range,
body.theme-red .pcr-range,
body.theme-dark-orange .pcr-meta-row strong,
body.theme-cyber .pcr-meta-row strong,
body.theme-gold .pcr-meta-row strong,
body.theme-red .pcr-meta-row strong {
  color: #fff;
}
body.theme-dark-orange .pricing-cards-title,
body.theme-cyber .pricing-cards-title,
body.theme-gold .pricing-cards-title,
body.theme-red .pricing-cards-title {
  color: rgba(255,255,255,0.55);
}

/* ========== HERO TRUST BADGES (2026-05-17) ========== */
.hero-trust-badges {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px 24px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.hero-trust-badges::-webkit-scrollbar { display: none; }
.hero-trust-badges li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.hero-trust-badges svg {
  flex-shrink: 0;
  color: var(--primary, #f97316);
}
/* Light themes — для светлого фона Hero */
body.theme-light .hero-trust-badges,
body.theme-slate .hero-trust-badges,
body.theme-mint .hero-trust-badges {
  color: rgba(15,25,41,0.9);
}
@media (max-width: 768px) {
  .hero-trust-badges {
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 16px;
    font-size: 12px;
    overflow: visible;
  }
  .hero-trust-badges li {
    white-space: normal;
    line-height: 1.25;
  }
}

/* ========== INDUSTRIES STRIP (2026-05-17) ========== */
.industries-strip {
  padding: 22px 0 10px;
  background: transparent;
  border: none;
}
.industries-strip .container {
  background: var(--white);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 24px 26px;
}
.industries-strip-head {
  text-align: center;
  margin-bottom: 16px;
}
.industries-strip-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--primary, #f97316);
  margin-bottom: 6px;
}
.industries-strip-title {
  display: block;
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 700;
  color: #1e293b;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.35;
}
.industries-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  max-width: 980px;
  margin: 0 auto;
}
.industry-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #f8fafc;
  border: 1.5px solid rgba(15,25,41,0.15);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  color: #1e293b;
  transition: all 0.18s cubic-bezier(0.4,0,0.2,1);
  cursor: default;
  line-height: 1.2;
}
.industry-chip:hover {
  transform: translateY(-2px);
  border-color: var(--primary, #f97316);
  box-shadow: 0 8px 24px rgba(15,25,41,0.14);
}
/* Label — отдельный span чтобы color наследовался корректно */
.industry-chip-label {
  color: inherit;
}
/* SVG-иконка отрасли */
.industry-chip-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary, #f97316);
}
.industry-chip-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
/* Fallback-точка, если иконка не найдена в INDUSTRY_ICONS */
.industry-chip-icon--dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary, #f97316);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.18);
}
/* Лёгкий поворот шестерни на hover — анимация только когда видно */
.industry-chip:hover .industry-chip-icon svg {
  transform: scale(1.08);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

/* Старый класс — сохраняю на случай если где-то ещё используется */
.industry-chip-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary, #f97316);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.18);
}
@media (max-width: 768px) {
  .industries-strip { padding: 16px 0 4px; }
  .industries-strip .container { padding: 16px 14px; border-radius: 18px; }
  .industry-chip { padding: 10px 14px; font-size: 13px; gap: 8px; }
  .industry-chip-icon, .industry-chip-icon svg { width: 18px; height: 18px; }
  .industries-list { gap: 8px 8px; }
}
/* Dark themes */
body.theme-dark-orange .industry-chip,
body.theme-cyber .industry-chip,
body.theme-gold .industry-chip,
body.theme-red .industry-chip {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.96);
}
body.theme-dark-orange .industries-strip-title,
body.theme-cyber .industries-strip-title,
body.theme-gold .industries-strip-title,
body.theme-red .industries-strip-title {
  color: rgba(255,255,255,0.9);
}
body.theme-dark-orange .industries-strip .container,
body.theme-cyber .industries-strip .container,
body.theme-gold .industries-strip .container,
body.theme-red .industries-strip .container {
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.03) 100%);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

/* ========== CASE INDUSTRY CHIP (iter #3) ========== */
.case-card-image-wrap {
  position: relative;
  overflow: hidden;
}
.case-card-industry {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15,25,41,0.78);
  color: #fff;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.case-card-industry-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary, #f97316);
  box-shadow: 0 0 0 2px rgba(249,115,22,0.25);
}

/* ========== CTA CONTACT CARD + QR (iter #3) ========== */
.cta-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.cta-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-contact-card {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cta-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cta-manager-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff, #f1f5f9);
  color: #0f1929;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.cta-manager-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cta-manager-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}
.cta-manager-role {
  font-size: 12px;
  opacity: 0.80;
}
.cta-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cta-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.35;
}
.cta-region-row {
  margin-top: 2px;
}
.tatarstan-flag {
  width: 24px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid rgba(17,17,17,0.25);
  background:
    linear-gradient(to bottom,
      #0f8a47 0%,
      #0f8a47 45%,
      #ffffff 45%,
      #ffffff 55%,
      #d62828 55%,
      #d62828 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
  flex-shrink: 0;
}
.cta-contact-list svg {
  flex-shrink: 0;
  opacity: 0.85;
}
.cta-contact-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(255,255,255,0.40);
}
.cta-contact-list a:hover {
  border-bottom-style: solid;
}
.cta-qr-block {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,0.25);
}
.cta-qr-img {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  box-sizing: border-box;
}
.cta-qr-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cta-qr-title {
  font-size: 14px;
  font-weight: 700;
}
.cta-qr-sub {
  font-size: 12px;
  opacity: 0.78;
  line-height: 1.35;
}
.cta-qr-link {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,0.50);
  align-self: flex-start;
  margin-top: 4px;
}
.cta-qr-link:hover { border-bottom-style: solid; }

/* Mobile CTA */
@media (max-width: 860px) {
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cta-contact-card {
    padding: 18px;
  }
  .cta-qr-block {
    grid-template-columns: 96px 1fr;
    gap: 12px;
  }
  .cta-qr-img {
    width: 96px;
    height: 96px;
  }
}

/* Светлые темы — CTA-карточка должна остаться читаемой
   (cta-block обычно тёмно-оранжевый, текст белый — ОК для всех тем) */

/* ========== THEME CONTRAST PASS (2026-05-18) ========== */

/* 1) Review placeholder — привязываем к --primary вместо хардкода orange */
.review-author-photo--placeholder {
  background: linear-gradient(135deg, var(--primary, #f97316), var(--primary-dark, #ea580c));
}

/* 2) Hero trust badges — на светлых темах текст ярче, на тёмных не меняется */
body.theme-light .hero-trust-badges,
body.theme-slate .hero-trust-badges,
body.theme-mint  .hero-trust-badges,
body.theme-green .hero-trust-badges {
  color: rgba(15,25,41,0.80);
}
body.theme-light .hero-trust-badges svg,
body.theme-slate .hero-trust-badges svg,
body.theme-mint  .hero-trust-badges svg,
body.theme-green .hero-trust-badges svg {
  color: var(--primary, #2563eb);
}

/* 3) Pricing calculator — для классических тем (brand/indigo/steel/fire/emerald)
   основной фон страницы СВЕТЛЫЙ → калькулятор остаётся белым, как дефолт.
   Тёмные overrides убраны (ранее ошибочно перекрашивали их в чёрный glass).
   Реально тёмные темы (dark-orange/cyber/gold/red) обрабатываются ниже отдельно. */

/* 4) Industries chip — на светлых темах добавляем мягкий контраст-бэкграунд */
body.theme-light .industry-chip,
body.theme-slate .industry-chip,
body.theme-mint  .industry-chip {
  background: #fff;
  border-color: rgba(15,25,41,0.15);
  color: #0f1929;             /* было не задано → светлые темы наследовали #fff и текст исчезал */
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 1px 2px rgba(15,25,41,0.05);
}

/* 5) Industries strip — на theme-brand и classic dark themes */
body.theme-brand   .industries-strip-title,
body.theme-indigo  .industries-strip-title,
body.theme-steel   .industries-strip-title,
body.theme-fire    .industries-strip-title,
body.theme-emerald .industries-strip-title {
  color: rgba(255,255,255,0.72);
}
/* theme-brand/indigo/steel/fire/emerald — это «классические» темы со
   СВЕТЛЫМ основным фоном (Hero/Reviews/CTA только тёмные).
   Поэтому industry-chip оставляем на светлом фоне с тёмным текстом. */
body.theme-brand   .industry-chip,
body.theme-indigo  .industry-chip,
body.theme-steel   .industry-chip,
body.theme-fire    .industry-chip,
body.theme-emerald .industry-chip {
  background: #fff;
  border-color: rgba(15,25,41,0.12);
  color: #0f1929;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 1px 2px rgba(15,25,41,0.05);
}
body.theme-brand   .industries-strip-title,
body.theme-indigo  .industries-strip-title,
body.theme-steel   .industries-strip-title,
body.theme-fire    .industries-strip-title,
body.theme-emerald .industries-strip-title {
  color: #475569 !important;
}

/* 6) Case industry chip — на тёмных темах добавим тонкий тёмный border,
      чтобы chip не сливался с тёмной картинкой */
body.theme-dark-orange .case-card-industry,
body.theme-cyber       .case-card-industry,
body.theme-gold        .case-card-industry,
body.theme-red         .case-card-industry,
body.theme-brand       .case-card-industry {
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.15);
}

/* 7) Review meta — на светлых темах не должен быть слишком слабым */
body.theme-light .review-author-meta,
body.theme-slate .review-author-meta,
body.theme-mint  .review-author-meta,
body.theme-green .review-author-meta {
  opacity: 0.85;
  color: rgba(15,25,41,0.78);
}
body.theme-light .review-author-date,
body.theme-slate .review-author-date,
body.theme-mint  .review-author-date,
body.theme-green .review-author-date {
  color: rgba(15,25,41,0.55);
  opacity: 1;
}

/* 8) Industries strip — на theme-green (светлая) фон контейнера */
body.theme-green .industry-chip {
  background: #fff;
  border-color: rgba(15,25,41,0.10);
  color: #0f1929;
}

/* ============================================================
   ИТЕРАЦИЯ 14 — Отзывы в виде Telegram-чата (2026-05-19)
   Применяется к карточкам с классом .review-chat. Поверх любой темы.
   ============================================================ */

.review-item.review-chat {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* Перебиваем декор-точку, ::before кавычки и прочее наследие */
}
.review-item.review-chat::before,
.review-item.review-chat::after { content: none !important; display: none !important; }
.review-item.review-chat:hover { transform: none !important; box-shadow: none !important; }

/* Контейнер сообщения: аватар + пузырь */
.review-chat .tg-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 100%;
}
.review-chat .tg-msg--in  { justify-content: flex-start; }
.review-chat .tg-msg--out { justify-content: flex-end; }

/* Аватарка */
.review-chat .tg-avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f1bf00 0%, #d99a00 100%);
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  user-select: none;
}
.review-chat .tg-avatar--photo {
  object-fit: cover;
}

/* Пузырь */
.review-chat .tg-bubble {
  position: relative;
  max-width: 78%;
  background: #ffffff;
  color: #1f2430;
  border-radius: 14px 14px 14px 4px;
  padding: 10px 14px 8px;
  box-shadow:
    0 1px 1.5px rgba(16,24,40,0.04),
    0 4px 12px rgba(16,24,40,0.08);
  font-size: 14px;
  line-height: 1.55;
}
.review-chat .tg-bubble--out {
  background: linear-gradient(180deg, #fff3bf 0%, #ffe17a 100%);
  color: #181818;
  border-radius: 14px 14px 4px 14px;
}

/* "Хвостики" пузырей в духе Telegram */
.review-chat .tg-bubble::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -6px;
  width: 12px;
  height: 12px;
  background: inherit;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  border-bottom-left-radius: 2px;
}
.review-chat .tg-bubble--out::after {
  left: auto;
  right: -6px;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  border-bottom-right-radius: 2px;
}

/* Заголовок пузыря: имя + сабтайтл */
.review-chat .tg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.review-chat .tg-name {
  font-size: 13px;
  font-weight: 700;
  color: #d09600;
  letter-spacing: 0.1px;
}
.review-chat .tg-bubble--out .tg-name { color: #6b4d00; }
.review-chat .tg-sub {
  font-size: 11.5px;
  color: rgba(31,36,48,0.55);
  font-weight: 500;
}
.review-chat .tg-bubble--out .tg-sub { color: rgba(24,24,24,0.55); }

/* Рейтинг */
.review-chat .tg-rating {
  color: #f1bf00;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 2px;
  line-height: 1;
}

/* Сам текст сообщения */
.review-chat .tg-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: inherit;
  white-space: pre-line;
  word-break: break-word;
}

/* Время и галочки */
.review-chat .tg-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(31,36,48,0.5);
  margin-top: 4px;
  float: right;
}
.review-chat .tg-time--in  { float: right; }
.review-chat .tg-time--out { color: rgba(24,24,24,0.55); }
.review-chat .tg-read {
  width: 16px;
  height: 10px;
  color: #2e8be6; /* TG-синие галочки "прочитано" */
}
.review-chat .tg-bubble--out .tg-read { color: #2e7d32; } /* зелёные на жёлтом фоне читаемее */

/* clearfix после float времени */
.review-chat .tg-bubble::before {
  content: "";
  display: block;
  width: 100%;
  clear: both;
}

/* Сетка вокруг — больше воздуха между «чатами», на десктопе 3 колонки уже задано .reviews-grid */
.reviews-grid .review-item.review-chat + .review-item.review-chat { margin-top: 0; }

/* На узких экранах пузыри шире */
@media (max-width: 768px) {
  .review-chat .tg-bubble { max-width: 86%; padding: 9px 12px 7px; font-size: 13.5px; }
  .review-chat .tg-avatar { width: 30px; height: 30px; font-size: 12px; }
  .review-chat .tg-name { font-size: 12.5px; }
}

/* === Тонкая подстройка под существующие темы === */
/* В catalog-yellow секция уже на желтом фоне — добавим белый «холст» вокруг чатов */
body.theme-catalog-yellow #block-reviews .container > .reviews-grid {
  background: linear-gradient(180deg, #fffbe6 0%, #fff7d8 100%);
  border-radius: 18px;
  padding: 22px 18px;
  box-shadow: inset 0 0 0 1px rgba(17,17,17,0.06);
}
body.theme-catalog-yellow .review-chat .tg-bubble { background: #ffffff; color: #181818; }
body.theme-catalog-yellow .review-chat .tg-bubble--out {
  background: linear-gradient(180deg, #ffe17a 0%, #f1bf00 100%);
  color: #181818;
}
body.theme-catalog-yellow .review-chat .tg-name { color: #8a6500; }
body.theme-catalog-yellow .review-chat .tg-bubble--out .tg-name { color: #3a2a00; }

/* На тёмных темах — пузырь клиента остаётся светлым (как в TG light), но границы темнее */
body.theme-yellow-black .review-chat .tg-bubble { background: #fafafa; color: #111; }
body.theme-yellow-black .review-chat .tg-bubble--out {
  background: linear-gradient(180deg, #ffe17a 0%, #f1bf00 100%);
  color: #111;
}

/* ============================================================
   ИТЕРАЦИЯ 15 — Accessibility / reduced-motion (2026-05-19)
   Отключаем «живые» анимации для пользователей с системной настройкой
   prefers-reduced-motion: reduce
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .logo-monument,
  .logo-monument::before,
  .logo-text,
  .logo-flagpole::after,
  .logo-social-badge,
  .logo-social-badge::after,
  .svg-icon .anim-rotate,
  .svg-icon .anim-flash,
  .svg-icon .anim-pulse,
  .svg-icon .anim-tick,
  .svg-icon .anim-draw,
  .svg-icon .anim-nudge,
  .svg-icon .anim-shield {
    animation: none !important;
  }
  .logo:hover .logo-monument { transform: none !important; }
  /* Без анимации блик уезжает за пределы текста — возвращаем сплошной цвет */
  .logo-text {
    background: none !important;
    -webkit-text-fill-color: #b98900 !important;
  }
}

/* ============================================================
   ИТЕРАЦИЯ 16 — Отзывы как СКРИНШОТ переписки в Telegram
   (2026-05-19) — карточка-«листок» на жёлтом фоне секции.
   Перебивает стили блока .review-chat из итерации 14.
   ============================================================ */

.review-item.review-screenshot {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.review-item.review-screenshot::before,
.review-item.review-screenshot::after { content: none !important; display: none !important; }

/* Внешний «листок» — как настоящий вырезанный скриншот */
.review-screenshot .tg-screen {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 12px 28px rgba(0,0,0,0.12),
    0 2px 6px rgba(0,0,0,0.06),
    inset 0 0 0 1px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  min-height: 360px;
  position: relative;
}
.review-screenshot .tg-screen:hover {
  transform: translateY(-3px);
  box-shadow:
    0 18px 36px rgba(0,0,0,0.16),
    0 4px 10px rgba(0,0,0,0.08),
    inset 0 0 0 1px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Шапка чата (как у Telegram) */
.tg-screen-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f5f5f5;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.tg-screen-back {
  background: none;
  border: 0;
  padding: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2e8be6;
  flex-shrink: 0;
  cursor: default;
}
.tg-screen-back svg { width: 18px; height: 18px; }
.tg-screen-header .tg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd84a 0%, #d99a00 100%);
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.tg-screen-meta { flex: 1; min-width: 0; }
.tg-screen-name {
  font-size: 14px;
  font-weight: 600;
  color: #1f2430;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tg-screen-status {
  font-size: 12px;
  color: #2e8be6;
  line-height: 1.2;
  margin-top: 1px;
}
.tg-screen-actions {
  color: rgba(0,0,0,0.35);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tg-screen-actions svg { width: 18px; height: 18px; }

/* Тело чата — белый фон, без TG-обоев */
.tg-screen-chat {
  background: #ffffff;
  flex: 1;
  padding: 12px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tg-day {
  align-self: center;
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.55);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 4px;
  text-transform: lowercase;
  font-weight: 500;
}

/* Сообщения */
.review-screenshot .tg-msg {
  display: flex;
  max-width: 100%;
  gap: 0;
}
.review-screenshot .tg-msg--in  { justify-content: flex-start; }
.review-screenshot .tg-msg--out { justify-content: flex-end; }

.review-screenshot .tg-bubble {
  position: relative;
  max-width: 84%;
  padding: 7px 12px 5px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  background: #f1f3f5;
  color: #1f2430;
  box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}
.review-screenshot .tg-bubble--out {
  background: #ffe17a;
  color: #1f1f1f;
}
.review-screenshot .tg-bubble::after { content: none !important; }

/* Хвостики SVG */
.tg-tail {
  position: absolute;
  bottom: 0;
  width: 9px;
  height: 20px;
  color: inherit;
}
.tg-tail--in  { left: -7px;  color: #f1f3f5; }
.tg-tail--out { right: -7px; color: #ffe17a; }

.review-screenshot .tg-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: inherit;
  word-break: break-word;
}

.review-screenshot .tg-rating {
  color: #f0a800;
  font-size: 12px;
  letter-spacing: 0.5px;
  line-height: 1;
  margin-bottom: 4px;
}

.review-screenshot .tg-sub-line {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(31,36,48,0.55);
  font-weight: 500;
}

.review-screenshot .tg-time {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  color: rgba(31,36,48,0.55);
  float: right;
  margin: 2px 0 -2px 8px;
  line-height: 1;
}
.review-screenshot .tg-time--out { color: rgba(31,31,31,0.55); }
.review-screenshot .tg-read {
  width: 14px;
  height: 9px;
  color: #2e8be6;
}
.review-screenshot .tg-bubble--out .tg-read { color: #2e8be6; }

/* clearfix внутри пузыря после float времени */
.review-screenshot .tg-bubble::before {
  content: "";
  display: block;
  width: 100%;
  clear: both;
}

/* Сетка отзывов в стиле "галерея скриншотов" — на жёлтом фоне секции */
body.theme-catalog-yellow #block-reviews .container > .reviews-grid {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .review-screenshot .tg-screen { min-height: 320px; }
  .review-screenshot .tg-bubble { max-width: 88%; font-size: 13px; }
  .tg-screen-name { font-size: 13.5px; }
}

/* ============================================================
   ИТЕРАЦИЯ 17 — Социальные скидки под hero (2026-05-19)
   ============================================================ */
.social-discounts {
  margin: 18px 0 6px;
}
.social-discounts.hidden { display: none; }
.social-discounts-inner {
  background: linear-gradient(180deg, #fff3bf 0%, #ffe17a 100%);
  border: 1.5px solid rgba(0,0,0,0.18);
  border-radius: 16px;
  padding: 14px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow:
    0 6px 16px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.55);
}
.social-discounts-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}
.social-discounts-eyebrow {
  display: inline-flex;
  align-items: center;
  background: #111;
  color: #ffe17a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.social-discounts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  justify-content: center;
}
.sd-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  min-height: 48px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.sd-item:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.10);
}
.sd-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #111;
  color: #ffe17a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sd-icon svg { width: 18px; height: 18px; }
.sd-percent {
  font-size: 22px;
  font-weight: 900;
  color: #111;
  line-height: 1;
  letter-spacing: -0.5px;
}
.sd-body { display: inline-flex; flex-direction: column; line-height: 1.15; }
.sd-label {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
}
.sd-note {
  font-size: 11px;
  color: rgba(0,0,0,0.6);
  margin-top: 1px;
}
.social-discounts-cta {
  display: inline-flex;
  align-items: center;
  background: #111;
  color: #ffe17a;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.social-discounts-cta:hover {
  background: #ffe17a;
  color: #111;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 860px) {
  .social-discounts-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }
  .social-discounts-eyebrow,
  .social-discounts-cta { justify-self: center; }
  .social-discounts-list { justify-content: center; }
}
@media (max-width: 480px) {
  .sd-item { padding: 6px 10px; }
  .sd-percent { font-size: 19px; }
  .sd-label   { font-size: 12.5px; }
}

/* ============================================================
   ИТЕРАЦИЯ 18 — Социальные скидки: сноска + сезонный сабстрип
   (2026-05-19)
   ============================================================ */
.social-discounts-footnote {
  margin: 0;
  font-size: 12px;
  color: rgba(0,0,0,0.65);
  line-height: 1.45;
  text-align: center;
}
.social-discounts-footnote.hidden { display: none; }

.social-discounts-season {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 999px;
  font-size: 13px;
  color: #1a1a1a;
}
.social-discounts-season.hidden { display: none; }
.sd-season-text { font-weight: 500; }
.sd-season-gauge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sd-season-bar {
  display: inline-block;
  width: 90px;
  height: 6px;
  background: rgba(0,0,0,0.12);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.sd-season-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #111 0%, #2a2a2a 100%);
  border-radius: inherit;
  transition: width 0.6s ease;
}
.sd-season-value {
  font-weight: 800;
  color: #111;
  font-size: 12.5px;
}

@media (max-width: 640px) {
  .social-discounts-season {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    border-radius: 14px;
    padding: 10px 14px;
  }
  .sd-season-bar { width: 140px; }
}

/* ============================================================
   ИТЕРАЦИЯ 19 — Блок «Нам доверяют»: карточки в шахматке
   (2026-05-19)
   ============================================================ */
.industries-strip .industries-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 16px;
  margin-top: 14px;
}
/* Превращаем чипы в карточки */
.industries-list .industry-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  text-align: left;
  white-space: normal;
  min-height: 96px;
}
.industries-list .industry-chip:hover {
  transform: translateY(-3px);
  border-color: #f1bf00;
  box-shadow:
    0 10px 22px rgba(0,0,0,0.10),
    0 0 0 3px rgba(241,191,0,0.18);
}
.industries-list .industry-chip-icon {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(160deg, #ffd84a 0%, #f1bf00 55%, #d99a00 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.5);
  flex-shrink: 0;
}
.industries-list .industry-chip-icon svg {
  width: 24px; height: 24px;
}
.industries-list .industry-chip-label {
  grid-column: 2;
  grid-row: 1;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
}
.industries-list .industry-chip-desc {
  grid-column: 2;
  grid-row: 2;
  font-size: 12.5px;
  color: rgba(0,0,0,0.6);
  line-height: 1.45;
}

/* Шахматный/staggered ритм: чётные карточки немного выше, нечётные ниже */
@media (min-width: 900px) {
  .industries-list .industry-chip:nth-child(2n) { transform: translateY(10px); }
  .industries-list .industry-chip:nth-child(2n):hover { transform: translateY(7px); }
}

/* На мобильных staggered не применяем — мешает прокрутке */
@media (max-width: 600px) {
  .industries-list .industry-chip { min-height: 0; padding: 12px 14px; }
}

/* ============================================================
   ИТЕРАЦИЯ 20 — Каталог granttash.ru (2026-05-20)
   ============================================================ */
.catalog-block.hidden { display: none; }
.catalog-sub {
  text-align: center;
  color: var(--gray, #64748b);
  font-size: 14px;
  margin: -6px 0 18px;
}

/* Тулбар: поиск + цена + сортировка */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}
.catalog-search-wrap {
  position: relative;
  flex: 1 1 280px;
  max-width: 420px;
}
.catalog-search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: rgba(0,0,0,0.4);
}
.catalog-search {
  width: 100%;
  padding: 11px 14px 11px 36px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 12px;
  font-size: 14px;
  background: #fff;
  color: #1a1a1a;
}
.catalog-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.catalog-price-input {
  width: 96px;
  padding: 11px 10px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 12px;
  font-size: 14px;
  background: #fff;
  color: #1a1a1a;
}
.catalog-price-dash { color: rgba(0,0,0,0.4); }
.catalog-sort {
  padding: 11px 12px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 12px;
  font-size: 14px;
  background: #fff;
  color: #1a1a1a;
  cursor: pointer;
}
.catalog-search:focus,
.catalog-price-input:focus,
.catalog-sort:focus {
  outline: none;
  border-color: #f1bf00;
  box-shadow: 0 0 0 3px rgba(241,191,0,0.2);
}

/* Чипы категорий */
.catalog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 999px;
  background: #fff;
  color: #2a2a2a;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cat-chip:hover { border-color: #f1bf00; }
.cat-chip.is-active {
  background: #111;
  color: #ffe17a;
  border-color: #111;
}
.cat-chip-count {
  font-size: 11px;
  font-weight: 700;
  background: rgba(0,0,0,0.08);
  color: inherit;
  border-radius: 999px;
  padding: 1px 7px;
}
.cat-chip.is-active .cat-chip-count { background: rgba(255,255,255,0.18); }

.catalog-count {
  text-align: center;
  font-size: 13px;
  color: var(--gray, #64748b);
  margin-bottom: 14px;
}

/* Сетка товаров */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cat-card:hover,
.cat-card:focus-visible {
  transform: translateY(-4px);
  border-color: #f1bf00;
  box-shadow: 0 12px 26px rgba(0,0,0,0.12), 0 0 0 3px rgba(241,191,0,0.16);
  outline: none;
}
.cat-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #f3f3f0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cat-card-noimg {
  display: none;
  font-size: 12px;
  color: rgba(0,0,0,0.4);
}
.cat-card-media.is-noimg .cat-card-noimg { display: block; }
.cat-card-body {
  padding: 12px 14px 6px;
  flex: 1;
}
.cat-card-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #b98900;
  font-weight: 700;
  margin-bottom: 3px;
}
.cat-card-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 6px;
  line-height: 1.3;
}
.cat-card-price {
  font-size: 16px;
  font-weight: 900;
  color: #111;
  letter-spacing: -0.3px;
}
.cat-card-cta {
  display: block;
  margin: 8px 14px 14px;
  padding: 8px 0;
  text-align: center;
  background: #111;
  color: #ffe17a;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease;
}
.cat-card:hover .cat-card-cta {
  background: #f1bf00;
  color: #111;
}

.catalog-foot {
  text-align: center;
  margin-top: 22px;
}
.catalog-more {
  padding: 12px 28px;
  border: 1.5px solid #111;
  background: #fff;
  color: #111;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.catalog-more:hover { background: #111; color: #ffe17a; }
.catalog-more.hidden { display: none; }
.catalog-empty {
  text-align: center;
  color: var(--gray, #64748b);
  font-size: 14px;
  padding: 30px 16px;
}
.catalog-empty code {
  background: rgba(0,0,0,0.07);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 13px;
}

/* Модалка товара */
.cp-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cp-modal.hidden { display: none; }
.cp-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
}
.cp-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: 90vh;
}
.cp-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.cp-media {
  background: #f3f3f0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cp-body {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
}
.cp-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #b98900;
  font-weight: 700;
}
.cp-name {
  font-size: 20px;
  font-weight: 800;
  color: #161616;
  margin: 6px 0 8px;
}
.cp-price {
  font-size: 24px;
  font-weight: 900;
  color: #111;
  margin-bottom: 10px;
}
.cp-sizes {
  margin: 4px 0 14px;
}
.cp-sizes.hidden { display: none; }
.cp-sizes-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 5px;
}
.cp-sizes-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 10px;
  font-size: 13.5px;
  background: #fff;
  color: #1a1a1a;
  cursor: pointer;
}
.cp-sizes-select:focus {
  outline: none;
  border-color: #f1bf00;
  box-shadow: 0 0 0 3px rgba(241,191,0,0.2);
}
.cp-note {
  font-size: 12.5px;
  color: rgba(0,0,0,0.6);
  line-height: 1.5;
  margin: 0 0 18px;
}
.cp-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid #111;
  transition: background 0.15s ease, color 0.15s ease;
}
.cp-btn--primary { background: #111; color: #ffe17a; }
.cp-btn--primary:hover { background: #f1bf00; color: #111; border-color: #111; }
.cp-btn--ghost { background: #fff; color: #111; }
.cp-btn--ghost:hover { background: #f5f5f5; }
.cp-btn--ghost.hidden { display: none; }

@media (max-width: 600px) {
  .cp-content { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .cp-media { aspect-ratio: 4 / 3; }
  .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .cat-card-name { font-size: 13px; }
}

/* ============================================================
   ИТЕРАЦИЯ 21 — Каталог: навигация плитками + хлебные крошки
   (2026-05-20)
   ============================================================ */
.catalog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 2px;
  margin: 4px 0 14px;
  font-size: 13px;
}
.bc-item {
  font-size: 13px;
  padding: 3px 2px;
}
.bc-link {
  background: none;
  border: 0;
  color: #b98900;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 4px;
  border-radius: 6px;
}
.bc-link:hover { background: rgba(241,191,0,0.14); }
.bc-item--current {
  color: #1a1a1a;
  font-weight: 700;
}
.bc-sep {
  color: rgba(0,0,0,0.3);
  margin: 0 2px;
}

/* Плитки категорий */
.catalog-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
.catalog-tiles:empty { display: none; }
.cat-tile {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cat-tile:hover,
.cat-tile:focus-visible {
  transform: translateY(-4px);
  border-color: #f1bf00;
  box-shadow: 0 12px 26px rgba(0,0,0,0.12), 0 0 0 3px rgba(241,191,0,0.16);
  outline: none;
}
.cat-tile-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f3f3f0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 8px;
}
.cat-tile-noimg {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(0,0,0,0.08);
}
.cat-tile-media.is-noimg .cat-tile-noimg { display: block; }
.cat-tile-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  padding: 12px 12px 2px;
}
.cat-tile-count {
  font-size: 12px;
  color: var(--gray, #64748b);
  padding: 0 12px 14px;
}
