@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Bebas+Neue&display=swap");

:root {
  --red: #d1373d;
  --red-dark: #b92f35;
  --blue: #1f4a8a;
  --blue-dark: #122b52;
  --ink: #0b1020;
  --muted: #6b7280;
  --bg: #f4f6fb;
  --steel: #e2e8f2;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(11, 16, 32, 0.06), 0 8px 28px rgba(11, 16, 32, 0.07);
  --shadow-lg: 0 12px 40px rgba(11, 16, 32, 0.11), 0 4px 16px rgba(11, 16, 32, 0.06);
  --shadow-accent: 0 8px 28px rgba(209, 55, 61, 0.22);
  --accent-shadow: rgba(209, 55, 61, 0.18);
  --snake-rgb: 209, 55, 61;
  --surface: #ffffff;
  --surface-alt: #f7f9fc;
  --background: #f4f6fb;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  /* Semantic text variables (alias) */
  --text: #0b1020;
  --text-light: #2c3347;
  --text-muted: #6b7280;
}

body.theme-dark {
  --ink: #e6edf6;
  --muted: #a6b3c7;
  --bg: #0b1120;
  --steel: #1e2a3d;
  --white: #0f1626;
  --surface: #111a2e;
  --surface-alt: #0e1524;
  --background: #0b1120;
  --shadow: 0 2px 8px rgba(4, 8, 18, 0.3), 0 8px 28px rgba(4, 8, 18, 0.3);
  --shadow-lg: 0 12px 40px rgba(4, 8, 18, 0.45), 0 4px 16px rgba(43, 130, 255, 0.12);
  --shadow-accent: 0 8px 28px rgba(43, 130, 255, 0.28);
  --accent-shadow: rgba(43, 130, 255, 0.28);
  --snake-rgb: 43, 130, 255;
  /* Semantic text overrides for dark mode */
  --text: #e6edf6;
  --text-light: #a6b3c7;
  --text-muted: #8899b4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: #f4f6fb;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

body.no-scroll {
  overflow: hidden;
}

body.theme-dark {
  background: radial-gradient(circle at top left, #141b2c, #0b1120 45%, #080d17 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.flash-wrap {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.flash {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--steel);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-weight: 600;
}

.flash-success {
  border-color: rgba(28, 152, 90, 0.45);
  background: rgba(28, 152, 90, 0.1);
}

.flash-error {
  border-color: rgba(209, 55, 61, 0.45);
  background: rgba(209, 55, 61, 0.1);
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  border-bottom: 1px solid rgba(226, 232, 242, 0.8);
  box-shadow: 0 1px 0 rgba(11, 16, 32, 0.04);
}

body.theme-dark .site-header {
  background: rgba(11, 17, 32, 0.92);
  border-bottom-color: rgba(30, 42, 61, 0.8);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  letter-spacing: 1px;
}

.logo-img {
  width: 218px;
  height: auto;
  display: block;
}

.logo-img.small {
  width: 187px;
}

.logo-light {
  display: block;
}

.logo-dark {
  display: none;
}

body.theme-dark .logo-light {
  display: none;
}

body.theme-dark .logo-dark {
  display: block;
}

.section-logo {
  width: 120px;
  height: auto;
  margin-bottom: 10px;
  opacity: 0.9;
}

.logo-strip {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.logo-mark {
  color: var(--blue);
}

.logo-dot {
  color: var(--red);
  margin: 0 6px;
}

.logo.small {
  font-size: 22px;
}

.nav {
  display: flex;
  gap: 14px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--blue-dark);
  flex-wrap: nowrap;
  white-space: nowrap;
}

body.theme-dark .nav {
  color: #d9e8ff;
}

.nav a {
  position: relative;
}

body.theme-dark .nav a {
  color: #d9e8ff;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}

body.theme-dark .nav a::after {
  background: #4aa3ff;
}

.nav a:hover::after {
  width: 100%;
}

body.theme-dark .nav a:hover {
  color: #ffffff;
}

.nav a.active::after {
  width: 100%;
}

.nav a.active {
  color: var(--red);
}

body.theme-dark .nav a.active {
  color: #78bcff;
}

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.nav-aux {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 12px;
  margin-right: 4px;
  border-right: 1px solid var(--steel);
}

body.theme-dark .nav-aux {
  border-right-color: rgba(100, 140, 200, 0.2);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--steel);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-icon:hover {
  background: var(--surface-alt);
  border-color: var(--blue-dark);
  color: var(--blue-dark);
}

body.theme-dark .btn-icon {
  border-color: rgba(100, 140, 200, 0.35);
  color: #cde3ff;
}

body.theme-dark .btn-icon:hover {
  background: rgba(74, 140, 255, 0.1);
  border-color: #4a8cff;
  color: #78bcff;
}

.breadcrumbs-wrap {
  border-bottom: 1px solid var(--steel);
  background: var(--surface);
}

body.theme-dark .breadcrumbs-wrap {
  background: linear-gradient(180deg, rgba(12, 18, 32, 0.92), rgba(12, 18, 32, 0.78));
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow-x: auto;
}

.breadcrumbs a {
  color: var(--blue-dark);
  font-weight: 600;
}

body.theme-dark .breadcrumbs a {
  color: #cde3ff;
}

.crumb-sep {
  opacity: 0.6;
}

.crumb-current {
  color: var(--ink);
  font-weight: 700;
}

.lang-switch select {
  border: 1px solid var(--steel);
  border-radius: 8px;
  padding: 0 8px;
  height: 34px;
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

body.theme-dark .lang-switch select {
  border-color: rgba(100, 140, 200, 0.35);
  color: #cde3ff;
  background: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  height: 38px;
  border-radius: 19px;
  font-weight: 600;
  border: none;
  outline: none;
  transition: background 0.28s ease, transform 0.22s ease, box-shadow 0.28s ease,
              color 0.22s ease, filter 0.22s ease;
  font-size: 13.5px;
  white-space: nowrap;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--blue));
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Ripple shimmer overlay */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg,
    transparent 0%,
    rgba(255,255,255,0.18) 45%,
    rgba(255,255,255,0.32) 50%,
    rgba(255,255,255,0.18) 55%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(209, 55, 61, 0.35);
  filter: brightness(1.08);
}

.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.btn:active {
  filter: brightness(1.12);
}

.btn.primary {
  background: linear-gradient(135deg, var(--red) 0%, #c0303a 40%, var(--blue) 100%);
  color: #fff;
  padding: 0 22px;
  box-shadow: 0 2px 14px rgba(209, 55, 61, 0.3);
}

.btn.primary:hover {
  box-shadow: 0 8px 32px rgba(209, 55, 61, 0.5);
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.btn.ghost {
  color: var(--blue-dark);
  background: transparent;
  border: 1.5px solid var(--blue-dark);
}

body.theme-dark .btn.ghost {
  color: #d0e4ff;
  border-color: rgba(120, 180, 255, 0.6);
}

.btn.ghost:hover {
  background: linear-gradient(135deg, var(--red), var(--blue));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 28px rgba(209, 55, 61, 0.35);
  transform: translateY(-3px);
}

body.theme-dark .btn.ghost:hover {
  background: linear-gradient(135deg, #c62828, #1f3c88);
  color: #fff;
  border-color: transparent;
}

.hero {
  padding: 96px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  background: rgba(209, 55, 61, 0.07);
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border: 1px solid rgba(209, 55, 61, 0.18);
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

body.theme-dark .badge {
  background: rgba(209, 55, 61, 0.12);
  color: #ff8a8e;
  border-color: rgba(209, 55, 61, 0.3);
}

body.theme-dark .badge::before {
  background: #ff8a8e;
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  margin: 20px 0 14px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
}

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

.hero-metrics {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.metric {
  font-size: 32px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.03em;
  line-height: 1;
}

.metric-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.metric-card {
  display: grid;
  gap: 6px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-weight: 600;
  text-align: left;
  border-left: 3px solid var(--red);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.hero-visual {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.hero-image {
  width: min(420px, 80vw);
  border-radius: 24px;
  box-shadow: var(--shadow);
  z-index: 1;
}

.lottie {
  width: 180px;
  height: 180px;
}

.lottie.pulse {
  position: absolute;
  top: 10px;
  left: 30px;
  opacity: 0.8;
}

.lottie.flow {
  margin: 24px auto 0;
  width: min(360px, 80vw);
  height: 120px;
}

.seal-ring {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 20px solid rgba(31, 74, 138, 0.25);
  box-shadow: inset 0 0 0 10px rgba(209, 55, 61, 0.35);
  animation: slow-rotate 18s linear infinite;
}

.seal-cut {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 18px solid rgba(209, 55, 61, 0.35);
  top: 40px;
  right: 40px;
  animation: float 6s ease-in-out infinite;
}

.hero-card {
  position: absolute;
  bottom: 10px;
  right: 0;
  background: var(--surface);
  padding: 18px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  max-width: 240px;
  transform: translateZ(0);
  z-index: 2;
}

.hero-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 9px 14px;
  border-radius: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--blue));
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-card a:hover {
  background: linear-gradient(135deg, var(--blue), var(--red));
  transform: translateY(-1px);
}

.hero-card a:focus-visible,
.hero-card a:active {
  background: linear-gradient(135deg, var(--blue), var(--red));
}

.section {
  padding: 72px 0;
}

.section-head {
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  letter-spacing: -0.025em;
}

.section-head p {
  margin-top: 10px;
  font-size: 16px;
  color: var(--muted);
  max-width: 540px;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--surface);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--steel);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.flip-card {
  padding: 0;
  min-height: 210px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 210px;
  transition: transform 0.7s ease;
  transform-style: preserve-3d;
}

.flip-card.is-flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  backface-visibility: hidden;
  overflow: hidden;
}

.flip-front {
  background: var(--surface);
  padding: 22px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.flip-back {
  transform: rotateY(180deg);
  background: #0f1626;
}

.flip-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fold-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  background-image:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(10, 14, 24, 0.22)),
    var(--peek-img);
  background-size: cover;
  background-position: top right;
  box-shadow:
    -3px 3px 10px rgba(11, 16, 32, 0.22),
    inset 0 1px 2px rgba(255, 255, 255, 0.28);
  transform-origin: top right;
  transform: rotate(0.2deg);
  z-index: 2;
}

.fold-corner::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(100% 0, 14% 0, 100% 86%);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
}

/* Snake border hover effect for pill/cards */
.card,
.hero-card,
.process-card,
.metric-card,
.list-item,
.chat-bubble,
.media-banner,
.funnel-steps,
.sticky-cta-inner {
  position: relative;
  isolation: isolate;
}

.card::after,
.hero-card::after,
.process-card::after,
.metric-card::after,
.list-item::after,
.chat-bubble::after,
.media-banner::after,
.funnel-steps::after,
.sticky-cta-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.8px;
  pointer-events: none;
  opacity: 0;
  background: conic-gradient(
    from var(--snake-angle, 0deg),
    rgba(var(--snake-rgb), 0) 0deg,
    rgba(var(--snake-rgb), 0) 266deg,
    rgba(var(--snake-rgb), 0.12) 286deg,
    rgba(var(--snake-rgb), 0.35) 308deg,
    rgba(var(--snake-rgb), 0.9) 330deg,
    rgba(var(--snake-rgb), 0.55) 342deg,
    rgba(var(--snake-rgb), 0.22) 352deg,
    rgba(var(--snake-rgb), 0) 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 0.2s ease;
}

.card:hover::after,
.hero-card:hover::after,
.process-card:hover::after,
.metric-card:hover::after,
.list-item:hover::after,
.chat-bubble:hover::after,
.media-banner:hover::after,
.funnel-steps:hover::after,
.sticky-cta-inner:hover::after {
  opacity: 1;
  animation: snake-border-run 2.7s linear infinite;
}

.card.ghost {
  background: var(--surface-alt);
  border: 1px solid var(--steel);
  box-shadow: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(209, 55, 61, 0.2);
  box-shadow: var(--shadow-lg);
}

body.theme-dark .card:hover {
  border-color: rgba(74, 140, 255, 0.25);
  box-shadow: var(--shadow-lg);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tilt {
  transform-style: preserve-3d;
  perspective: 800px;
}

.schematic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
}

.schematic-svg {
  width: 100%;
  background: var(--surface);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.schematic-photo-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.schematic-photo {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.schematic-panel {
  background: var(--surface);
  padding: 22px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hotspot {
  cursor: pointer;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 2;
  fill: rgba(255, 255, 255, 0.05);
}

.hotspot:hover {
  stroke: rgba(209, 55, 61, 0.9);
  fill: rgba(209, 55, 61, 0.15);
}

.hotspot-pin {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: linear-gradient(135deg, var(--red), var(--blue));
  box-shadow: 0 0 0 0 rgba(209, 55, 61, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.hotspot-pin::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.75);
  opacity: 0.7;
}

.hotspot-pin:hover,
.hotspot-pin:focus-visible {
  transform: scale(1.14);
}

.hotspot-pin {
  animation: hotspot-pulse 1.9s ease-out infinite;
}

body.theme-dark .hotspot-pin {
  background: linear-gradient(135deg, var(--blue), #6db6ff);
  animation: hotspot-pulse-dark 1.9s ease-out infinite;
}

.feature {
  padding: 24px;
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--steel);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.feature span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 20px;
  line-height: 1;
  margin-bottom: 12px;
}

.feature h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.feature p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.section.accent {
  background: linear-gradient(160deg, rgba(31, 74, 138, 0.05) 0%, rgba(209, 55, 61, 0.04) 100%);
  border-top: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
}

.section.muted {
  background: var(--surface-alt);
  border-top: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  align-items: center;
}

.catalog-search {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.catalog-search input[type="search"] {
  flex: 1 1 280px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) 1fr;
  gap: 28px;
  align-items: start;
}

.catalog-sidebar {
  background: var(--surface);
  border: 1px solid var(--steel);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  position: sticky;
  top: 96px;
}

.catalog-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--ink);
  border: 1px solid transparent;
}

.catalog-count {
  font-size: 11px;
  color: var(--muted);
  padding: 2px 8px;
  border: 1px solid var(--steel);
  border-radius: 999px;
  background: var(--surface-alt);
  flex-shrink: 0;
}

.catalog-link.active,
.catalog-link:hover {
  border-color: rgba(209, 55, 61, 0.35);
  background: rgba(209, 55, 61, 0.08);
}

.catalog-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.catalog-import {
  background: var(--surface);
  border: 1px solid var(--steel);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.catalog-import summary {
  list-style: none;
  cursor: pointer;
}

.catalog-import summary::-webkit-details-marker {
  display: none;
}

.catalog-import-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: space-between;
}

.catalog-import-hint {
  font-size: 12px;
  color: var(--muted);
}

.catalog-import[open] .catalog-import-hint {
  opacity: 0.7;
}

.catalog-import-body {
  display: grid;
  gap: 12px;
}

.catalog-import-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: space-between;
}

.catalog-import-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-import-title h3 {
  margin: 0;
  font-size: 16px;
}

.import-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(31, 74, 138, 0.1);
  color: var(--blue-dark);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.import-badge.is-running {
  background: rgba(209, 55, 61, 0.12);
  color: var(--red);
}

.catalog-import-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}

.catalog-import-latest {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.catalog-import-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--steel);
  background: var(--surface-alt);
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-import-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.catalog-import-thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--steel);
  flex-shrink: 0;
}

.catalog-import-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.catalog-import-log {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--steel);
  background: var(--surface-alt);
  font-size: 11px;
  color: var(--muted);
  max-height: 140px;
  overflow: auto;
}

.catalog-import-empty {
  font-size: 12px;
  color: var(--muted);
}

.catalog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.catalog-detail-chips {
  justify-content: flex-start;
  margin-top: 14px;
}

.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(31, 74, 138, 0.2);
  font-size: 12px;
  color: var(--ink);
  background: var(--surface-alt);
}

.chip.active,
.chip:hover {
  border-color: rgba(31, 74, 138, 0.45);
  background: rgba(31, 74, 138, 0.08);
}

.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 760px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.catalog-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.catalog-tile {
  background: var(--surface);
  border: 1px solid var(--steel);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
  color: inherit;
  display: grid;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.catalog-tile-title {
  font-weight: 800;
  line-height: 1.2;
}

.catalog-tile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 12px;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding-top: 6px;
}

.catalog-meta {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 2px;
}

.catalog-meta strong {
  color: var(--ink);
}

.catalog-card {
  background: var(--surface);
  border: 1px solid var(--steel);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(11, 16, 32, 0.07);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.catalog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(209, 55, 61, 0.28);
  box-shadow: 0 16px 44px rgba(11, 16, 32, 0.12), 0 6px 18px rgba(209, 55, 61, 0.12);
}

body.theme-dark .catalog-card:hover {
  border-color: rgba(74, 140, 255, 0.35);
  box-shadow: 0 16px 44px rgba(6, 10, 20, 0.4), 0 6px 18px rgba(74, 140, 255, 0.18);
}

.catalog-thumb {
  background: var(--surface-alt);
  border: 1px solid var(--steel);
  border-radius: 14px;
  display: grid;
  place-items: center;
  padding: 10px;
  height: 120px;
  transition: background 0.2s ease;
}

.catalog-card:hover .catalog-thumb {
  background: rgba(31, 74, 138, 0.05);
}

.catalog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-body {
  padding: 0;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.catalog-card-top {
  display: grid;
  gap: 8px;
}

.catalog-body h3 {
  font-size: 15px;
  margin: 0 0 6px;
  line-height: 1.3;
  color: var(--ink);
}

.catalog-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(31, 74, 138, 0.25);
  background: rgba(31, 74, 138, 0.08);
  color: var(--blue-dark);
}

.badge.ghost {
  border-color: rgba(209, 55, 61, 0.25);
  background: rgba(209, 55, 61, 0.06);
  color: var(--red);
}

.catalog-specs {
  list-style: none;
  padding: 8px 10px;
  margin: 0;
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface-alt);
  border: 1px solid var(--steel);
  border-radius: 10px;
  min-width: 0;
  overflow: hidden;
}

.catalog-specs li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 2px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  min-width: 0;
  overflow: hidden;
}

.catalog-specs li:last-child {
  border-bottom: none;
}

.spec-name {
  flex: 0 1 auto;
  max-width: 48%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.9;
  min-width: 0;
}

.spec-val {
  flex: 1 1 0;
  min-width: 0;
  max-width: 60%;
  text-align: right;
  color: var(--ink);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
}

.catalog-detail-media {
  background: #fff;
  border: 1px solid var(--steel);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 220px;
}

.catalog-detail-media img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 8px;
}

.catalog-detail-media .btn {
  margin-top: 20px;
  width: 100%;
  text-align: center;
}

.catalog-detail-info {
  background: var(--surface);
  border: 1px solid var(--steel);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.catalog-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 13px;
}

.catalog-table th,
.catalog-table td {
  border-bottom: 1px solid var(--steel);
  padding: 8px 6px;
  text-align: left;
}

.catalog-description {
  margin-top: 20px;
  border-top: 1px solid var(--steel);
  padding-top: 14px;
}

.catalog-description h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.catalog-description p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 8px 0;
  padding: 6px 0;
  border-bottom: 1px solid var(--steel);
}

.catalog-description p:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

@media (max-width: 920px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .catalog-card {
    grid-template-columns: 1fr;
  }
  .catalog-thumb {
    height: 160px;
  }
  .catalog-import-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .catalog-import-summary {
    flex-direction: column;
    align-items: flex-start;
  }
  .catalog-specs li {
    justify-content: space-between;
  }
  .spec-val {
    text-align: right;
    white-space: nowrap;
  }
}

.steps {
  display: grid;
  gap: 12px;
  padding-left: 20px;
}

.process-card {
  background: linear-gradient(145deg, var(--blue-dark) 0%, var(--blue) 60%, #2a5ea5 100%);
  color: #fff;
  padding: 36px 32px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(18, 43, 82, 0.35), 0 4px 16px rgba(18, 43, 82, 0.2);
  position: relative;
  overflow: hidden;
}

.process-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.process-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #fff;
}

.process-card p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 20px;
}

.page-hero {
  padding: 56px 0 40px;
  background: linear-gradient(135deg, rgba(31, 74, 138, 0.06) 0%, rgba(209, 55, 61, 0.04) 100%);
  border-bottom: 1px solid var(--steel);
}

.page-hero h1 {
  font-size: clamp(28px, 4.5vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

body.theme-dark .page-hero {
  background: linear-gradient(135deg, rgba(31, 74, 138, 0.18) 0%, rgba(209, 55, 61, 0.12) 100%);
  border-bottom-color: var(--steel);
}

.card.catalog-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.catalog-cover {
  display: grid;
  place-items: center;
  height: 140px;
  background: linear-gradient(135deg, var(--blue), var(--red));
  color: var(--white);
  border-radius: 12px;
  margin-bottom: 10px;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(209, 55, 61, 0.25);
}

.media-card img,
.media-banner img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.media-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: center;
  margin: 30px 0;
  background: var(--surface);
  padding: 20px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.funnel {
  background: linear-gradient(120deg, rgba(209, 55, 61, 0.08), rgba(31, 74, 138, 0.12));
}

.funnel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: center;
}

.funnel-steps {
  display: grid;
  gap: 12px;
  background: var(--surface);
  padding: 18px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.funnel-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.funnel-step strong {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(209, 55, 61, 0.35);
  flex-shrink: 0;
}

.faq-list .card h4 {
  margin: 0 0 8px;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
}

.lead-modal.is-open {
  display: block;
}

.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 24, 0.58);
}

.lead-modal-card {
  position: relative;
  z-index: 2;
  width: min(680px, 94vw);
  margin: 7vh auto 0;
  background: var(--surface);
  border: 1px solid var(--steel);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.lead-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--steel);
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
}

.lead-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.auth-form .card,
.form {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

input,
textarea,
select {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--steel);
  font-family: inherit;
  font-size: 14px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 74, 138, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
}

.list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.list-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--steel);
  background: var(--white);
}

.chat-log {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.chat-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
}

.chat-line.mine {
  align-items: flex-end;
}

.chat-log.telegram {
  background: #f0f2f5;
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: 18px 16px;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  align-content: start;
  row-gap: 18px;
}

.chat-embed-body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
}

html,
.chat-embed-body,
.guest-chat-body {
  height: 100%;
}

.chat-embed-section {
  height: 100%;
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  background: #f4f6f8;
}

.chat-embed-section .chat-log.telegram {
  flex: 1 1 auto;
  min-height: 220px;
  margin-bottom: 0;
  overflow-y: auto;
  background: #f4f6f8;
}

.chat-embed-section .chat-form-compact {
  flex: 0 0 auto;
  max-width: none;
  margin: 0;
  padding-bottom: 4px;
}

.chat-meta {
  font-size: 11px;
  color: #9aa1ab;
  justify-self: start;
  text-align: left;
  margin-top: 4px;
}

.chat-bubble {
  background: #e8ebf1;
  border: none;
  padding: 7px 11px;
  border-radius: 12px;
  max-width: 70%;
  width: fit-content;
  font-size: 14px;
  line-height: 1.38;
  color: #1c1f26;
  box-shadow: none;
}

.chat-bubble::after {
  display: none;
}

.chat-line.mine .chat-bubble {
  background: #1f4a8a;
  color: #fff;
}

.chat-line.mine .chat-bubble a {
  color: #e8ffe8;
}

.chat-line.mine .chat-meta {
  text-align: right;
}

.chat-log.telegram {
  align-content: start;
}

.attachments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.attachment-card {
  background: var(--surface);
  border: 1px solid var(--steel);
  border-radius: 12px;
  overflow: hidden;
  display: block;
}

.attachment-card img,
.attachment-card video {
  width: 100%;
  display: block;
}

.attachment-file {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--steel);
  font-size: 12px;
}

.chat-form-compact {
  margin: 0;
  gap: 10px;
}

.chat-form-bar {
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.05);
}

.chat-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f7f9fc;
  color: #2a2f3a;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

.chat-icon-btn:hover {
  background: #eef3ff;
  border-color: rgba(31, 74, 138, 0.22);
}

.chat-icon-btn.has-files {
  background: #eef3ff;
  border-color: rgba(31, 74, 138, 0.35);
  color: #1f4a8a;
}

.chat-attach-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  background: #f7f9fc;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.chat-quick {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 4px;
}

.chat-quick-btn {
  border: 1px solid rgba(31, 74, 138, 0.45);
  background: #fff;
  color: #1f4a8a;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-quick-btn:hover {
  border-color: rgba(198, 40, 40, 0.55);
  color: #c62828;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

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

.chat-input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.35;
  background: #fff;
  resize: vertical;
}

.chat-send-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #c62828, #1f3c88);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-send-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

/* ── Кнопка "Удалить беседу" ── */
.chat-clear-form {
  text-align: right;
  padding: 0 6px 2px;
}

.chat-clear-btn {
  background: none;
  border: none;
  color: #c0c4cc;
  font-size: .72rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color .15s, background .15s;
  letter-spacing: .01em;
}

.chat-clear-btn:hover {
  color: #c62828;
  background: rgba(198, 40, 40, .07);
}

.chat-bubble-text {
  padding-right: 44px;
}

.chat-time {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 12px;
  color: var(--text-muted);
  user-select: none;
}

.chat-bubble {
  position: relative;
}

.chat-line.mine .chat-time {
  color: rgba(255, 255, 255, 0.72);
}

.chat-bubble.bot {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

/* Сообщения от администратора — тёмно-синий/бирюзовый, слева */
.chat-line.admin .chat-bubble {
  background: linear-gradient(135deg, #155e7a 0%, #1a4a5e 100%);
  color: #fff;
}
.chat-line.admin .chat-bubble a { color: #b8eeff; }
.chat-line.admin .chat-time { color: rgba(255,255,255,0.72); }

/* Сообщения от бота — светло-голубой, слева */
.chat-line.bot .chat-bubble {
  background: #dde9f8;
  color: #0d2550;
}
.chat-line.bot .chat-time { color: rgba(15,40,90,0.5); }

/* --- Dark mode overrides for chat --- */
body.theme-dark .chat-bubble {
  background: #1e2d44;
  color: var(--ink);
}
body.theme-dark .chat-line.bot .chat-bubble {
  background: #162236;
  color: #b8d4f0;
}
body.theme-dark .chat-line.bot .chat-time {
  color: rgba(120,170,220,0.55);
}
body.theme-dark .chat-embed-section .chat-messages-wrap,
body.theme-dark .chat-messages-wrap {
  background: #0d1726;
}
body.theme-dark .chat-icon-btn {
  background: #1e2a3d;
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}
body.theme-dark .chat-icon-btn:hover {
  background: #243350;
  border-color: rgba(43, 130, 255, 0.3);
}
body.theme-dark .chat-input {
  background: #111a2e;
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}
body.theme-dark .chat-quick-btn {
  background: #111a2e;
  border-color: rgba(43, 130, 255, 0.35);
  color: #78bcff;
}
body.theme-dark .chat-quick-btn:hover {
  border-color: rgba(209, 55, 61, 0.4);
  color: #ff8a8e;
}
.chat-form-compact label {
  font-size: 14px;
  font-weight: 600;
}

.chat-form-compact textarea {
  min-height: 46px;
  resize: vertical;
  font-size: 14px;
  border-radius: 14px;
}

.cta-band {
  background: linear-gradient(135deg, #0a1830 0%, var(--blue-dark) 45%, #1a3572 100%);
  color: #fff;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(209, 55, 61, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 74, 138, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-inner h3 {
  font-size: clamp(22px, 3vw, 32px);
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  max-width: 480px;
}

/* --- Chat refresh overrides --- */
.chat-drawer {
  width: min(420px, calc(100vw - 20px));
  height: min(84vh, 760px);
  max-height: min(84vh, 760px);
}

.chat-drawer-head {
  background: linear-gradient(135deg, #0f1f3d, #1f4a8a 65%, #c62828);
}

.chat-agent-avatar.logo {
  background: #fff url("../img/logo-blue.png") center/70% no-repeat;
}

.chat-hide-btn.icon {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #fff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
}

.chat-embed-section {
  background: #f4f6f8;
}

.chat-embed-section .chat-log.telegram {
  background: #f0f2f5;
}

.chat-log.telegram {
  background: #f0f2f5;
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: 18px 16px;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  max-height: none;
  align-content: start;
  row-gap: 14px;
}

.chat-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  width: 100%;
}

.chat-line.mine {
  align-items: flex-end;
}

.chat-bubble {
  background: #e4e6eb;
  border: none;
  padding: 10px 14px;
  border-radius: 16px;
  border-bottom-left-radius: 6px;
  max-width: 66%;
  display: inline-block;
  font-size: 14px;
  line-height: 1.45;
  color: #2a2f3a;
  box-shadow: none;
}

.chat-line.mine .chat-bubble {
  background: #0084ff;
  color: #fff;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 6px;
}

.chat-meta {
  display: none;
}

.chat-bubble p {
  margin: 0;
}

.chat-bubble p + p {
  margin-top: 8px;
}

.chat-form-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.05);
}

.chat-attach-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  background: #f7f9fc;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

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

.chat-input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.35;
  background: #fff;
  resize: vertical;
}

.chat-send-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #c62828, #1f3c88);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer {
  padding: 60px 0 28px;
  background: #09111f;
  color: #8da4c4;
  font-size: 14px;
}

body.theme-dark .site-footer {
  background: #060c18;
}

.site-footer h4 {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.site-footer p {
  margin-bottom: 6px;
  line-height: 1.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #7a94b8;
  font-size: 14px;
  transition: color 0.18s ease;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 20px;
  font-size: 13px;
  color: #4a5e7a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
}

.chat-button {
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: var(--white);
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.chat-drawer {
  position: fixed;
  top: 78px;
  right: 16px;
  width: min(420px, calc(100vw - 20px));
  height: min(84vh, 760px);
  max-height: min(84vh, 760px);
  background: #fff;
  border: 1px solid rgba(31, 74, 138, 0.2);
  border-radius: 22px;
  box-shadow: var(--shadow);
  transform: translateX(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 115;
}

.chat-drawer::before {
  content: none;
}

.chat-drawer.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.chat-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(31, 74, 138, 0.18);
  background: linear-gradient(135deg, #0f1f3d, #1f4a8a 65%, #c62828 100%);
  position: relative;
  z-index: 2;
}

.chat-agent {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-agent-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff url("../img/logo-blue.png") center/70% no-repeat;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.chat-agent-meta {
  display: grid;
  line-height: 1.1;
}

.chat-agent-meta strong {
  color: #fff;
  font-size: 14px;
}

.chat-agent-meta span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
}

.chat-hide-btn {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #fff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
}

.chat-greeting {
  display: none;
}

.chat-greeting-bot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  margin-right: 8px;
  color: #fff;
  background: linear-gradient(135deg, #d1373d, #1f4a8a);
}

.chat-greeting.is-visible {
  display: none;
}

.chat-frame {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  border: none;
  background: #fff;
  display: block;
  position: relative;
  z-index: 2;
}

.guest-chat-body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
}

.guest-chat-section {
  height: 100%;
  padding: 14px !important;
  display: grid;
}

.guest-chat-wrap {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  align-items: stretch;
}

.guest-chat-note {
  margin: 0;
  background: linear-gradient(135deg, rgba(209, 55, 61, 0.12), rgba(31, 74, 138, 0.16));
  color: var(--ink);
  border: 1px solid rgba(31, 74, 138, 0.2);
  border-radius: 16px;
  padding: 14px 14px;
  font-size: clamp(14px, 1.55vw, 18px);
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
}

.guest-chat-actions {
  display: grid;
  gap: 10px;
  justify-items: center;
  align-content: end;
  padding-bottom: 2px;
}

.guest-chat-btn {
  min-width: 180px;
  width: min(230px, 72%);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 9px 14px;
}

.guest-chat-btn:hover,
.guest-chat-btn:focus-visible,
.guest-chat-btn:active {
  background: linear-gradient(135deg, var(--blue), var(--red));
  color: #fff;
}

@media (max-width: 560px) {
  .chat-drawer {
    top: 66px;
    right: 10px;
    width: calc(100vw - 12px);
    height: min(80vh, 760px);
    max-height: min(80vh, 760px);
  }
  .chat-agent-meta strong {
    font-size: 16px;
  }
}

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 90;
  width: min(920px, 92vw);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(15, 20, 36, 0.9);
  color: #eaf0fb;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 600;
}

.sticky-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
}

body.theme-dark .sticky-cta-inner {
  background: rgba(5, 8, 15, 0.9);
}

@media (max-width: 700px) {
  .sticky-cta-inner {
    flex-direction: column;
    border-radius: 18px;
  }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@property --snake-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes snake-border-run {
  from { --snake-angle: 0deg; }
  to { --snake-angle: 360deg; }
}

@keyframes hotspot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(209, 55, 61, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(209, 55, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(209, 55, 61, 0); }
}

@keyframes hotspot-pulse-dark {
  0% { box-shadow: 0 0 0 0 rgba(43, 130, 255, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(43, 130, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 130, 255, 0); }
}

/* === Hamburger nav toggle === */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
  }

  .nav-wrap {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 0;
    justify-content: flex-start;
  }

  .logo-img {
    width: 170px;
  }

  .nav-toggle {
    display: flex;
    order: 10;
    flex-shrink: 0;
  }

  .nav-actions {
    order: 5;
    margin-left: auto;
    gap: 8px;
    flex-shrink: 0;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 6px 24px 16px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--steel);
    box-shadow: 0 16px 40px rgba(11, 16, 32, 0.1);
    z-index: 99;
    font-size: 15px;
  }

  body.theme-dark .nav {
    background: rgba(13, 19, 34, 0.97);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 11px 4px;
    border-bottom: 1px solid var(--steel);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav a::after {
    display: none;
  }

  /* Mobile: hide secondary controls, keep only CTA + hamburger */
  .nav-aux {
    display: none;
  }

  .nav-actions .btn.ghost {
    display: none;
  }

  .nav-wrap {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .hero-metrics { grid-template-columns: 1fr 1fr; }
  .nav-wrap { gap: 8px; align-items: center; }
  .logo-img { width: 145px; }
  .nav-actions .btn.primary { padding: 0 12px; font-size: 12px; }
}

@media (max-width: 480px) {
  .logo-img { width: 130px; }
  .nav-actions .btn.primary { padding: 0 10px; font-size: 11.5px; }
}

/* === AJAX каталог: состояние загрузки === */
.catalog-main {
  transition: opacity 0.18s ease;
}

.catalog-main.catalog-loading {
  opacity: 0.45;
  pointer-events: none;
}

/* =========================================
   LEGAL PAGES — privacy, consent
   ========================================= */
.legal-doc {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.legal-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 16px 20px;
  background: var(--surface);
  border-radius: 10px;
  border-left: 4px solid var(--blue);
}

.legal-meta strong {
  color: var(--text);
}

.legal-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.legal-block h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--surface);
}

.legal-block p {
  color: var(--text-light);
  line-height: 1.75;
  font-size: 0.97rem;
}

.legal-block ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-block ul li {
  padding-left: 20px;
  position: relative;
  color: var(--text-light);
  line-height: 1.65;
  font-size: 0.97rem;
}

.legal-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.legal-block a {
  color: var(--blue);
  text-decoration: none;
}

.legal-block a:hover {
  text-decoration: underline;
}

.legal-notice {
  font-size: 0.88rem !important;
  padding: 12px 16px;
  background: rgba(31, 74, 138, 0.06);
  border-radius: 8px;
  border-left: 3px solid var(--blue);
  color: var(--text-muted) !important;
}

.legal-footer-links {
  padding-top: 8px;
  border-top: 1px solid var(--surface);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================
   KNOWLEDGE BASE — articles list & detail
   ========================================= */

/* --- Grid list --- */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.knowledge-card {
  background: var(--surface);
  border: 1px solid var(--steel);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
}

.knowledge-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}

.knowledge-card__body {
  padding: 24px 24px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.knowledge-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text, #0b1020);
  line-height: 1.4;
}

.knowledge-card__summary {
  font-size: 0.88rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.6;
  flex: 1;
}

.knowledge-card__footer {
  padding: 0 24px 20px;
}

/* small button variant */
.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
}

/* --- Article detail layout --- */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--blue, #1f4a8a);
  text-decoration: none;
  margin-bottom: 18px;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.18s;
}

.article-back:hover { opacity: 1; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}

/* --- Article body typography --- */
.article-body {
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light, #2c3347);
}

.article-body h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text, #0b1020);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--steel);
}

.article-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text, #0b1020);
  margin: 22px 0 8px;
}

.article-body p {
  margin: 0 0 16px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-body ul li {
  list-style: none;
  padding-left: 18px;
  position: relative;
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.article-body ol li {
  list-style: decimal;
}

.article-body strong {
  font-weight: 700;
  color: var(--text, #0b1020);
}

.article-body .article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 0.92rem;
}

.article-body .article-table th {
  background: var(--blue);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}

.article-body .article-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--steel);
  color: var(--text-light, #2c3347);
}

.article-body .article-table tr:nth-child(even) td {
  background: var(--surface-alt);
}

.article-body .article-note {
  background: rgba(31, 74, 138, 0.06);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.93rem;
  color: var(--text-light, #2c3347);
  margin: 18px 0 24px;
}

/* --- Aside --- */
.article-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 90px;
}

.article-aside__card {
  background: var(--surface);
  border: 1px solid var(--steel);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-aside__card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text, #0b1020);
}

.article-aside__card p {
  font-size: 0.87rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.55;
}

.article-aside__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-aside__links a {
  font-size: 0.88rem;
  color: var(--blue);
  text-decoration: none;
  transition: opacity 0.18s;
}

.article-aside__links a:hover { opacity: 0.75; }

/* =========================================
   MOBILE — комплексная адаптация ≤ 480px
   ========================================= */

/* --- Таблицы: горизонтальный скролл --- */
.article-body .article-table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --- Touch-targets: минимум 44px для инпутов и обычных кнопок --- */
input,
textarea,
select {
  min-height: 44px;
}

/* Кнопки в формах: 44px, но не кнопки шапки (.btn имеет height:38px) и не спец-кнопки */
button:not(.btn-icon):not(.nav-toggle):not([class*="btn"]) {
  min-height: 44px;
}

textarea {
  min-height: 90px;
}

/* --- Уменьшаем отступы section на телефонах --- */
@media (max-width: 480px) {
  .section {
    padding: 48px 0;
  }

  .hero {
    padding: 56px 0 40px;
  }

  .page-hero {
    padding: 36px 0 28px;
  }

  .page-hero h1 {
    font-size: clamp(22px, 8vw, 36px);
  }

  /* Секция hero: метрики в 2 колонки */
  .hero-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* Кнопки в ряд становятся колонкой */
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  /* CTA-полоса — вертикально */
  .cta-band {
    padding: 40px 0;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  /* Карточки базы знаний */
  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  /* Aside переходит вниз (уже сделано через 900px, дополнительно убираем sticky) */
  .article-aside {
    position: static;
  }

  /* Боковые карточки article-aside — горизонтально скроллируемые */
  .article-aside {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 4px;
  }

  .article-aside__card {
    min-width: 240px;
    flex-shrink: 0;
  }

  /* Карточки в секциях */
  .section-head {
    margin-bottom: 24px;
  }

  /* Форма заявки */
  .form-row,
  .form-group {
    grid-template-columns: 1fr;
  }

  /* Чат-виджет: кнопка не перекрывает контент */
  .chat-widget {
    bottom: 12px;
    right: 12px;
  }

  .chat-button {
    font-size: 13px;
    padding: 10px 16px;
  }

  /* Sticky CTA на телефонах */
  .sticky-cta {
    width: calc(100vw - 24px);
    bottom: 12px;
  }

  .sticky-cta-inner {
    font-size: 13px;
    padding: 12px 14px;
    gap: 10px;
  }

  /* Таблицы продуктов */
  .catalog-specs {
    font-size: 13px;
  }

  /* Footer collapses already at 500px — just reduce spacing */
  .site-footer {
    padding: 40px 0 20px;
  }

  /* Хлебные крошки */
  .breadcrumbs {
    font-size: 12px;
    gap: 4px;
  }

  /* Legal docs */
  .legal-doc {
    gap: 28px;
  }

  .legal-meta {
    flex-direction: column;
    gap: 8px;
  }
}

/* --- Логотип уменьшается на маленьких экранах --- */
@media (max-width: 380px) {
  .logo-img {
    width: 160px;
  }
  .logo-img.small {
    width: 140px;
  }
  .nav-actions .btn.primary {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* --- Продуктовые таблицы и каталог на мобильных --- */
@media (max-width: 700px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .catalog-filter-panel {
    display: none;
  }
  .catalog-filter-panel.is-mobile-open {
    display: block;
  }
}

/* --- Страница чата на мобильном --- */
@media (max-width: 560px) {
  .chat-log.telegram {
    padding: 12px 10px;
  }
  .chat-bubble {
    max-width: 90%;
    font-size: 14px;
  }
}