:root {
  --black: #000;
  --dark: #050505;
  --dark-panel: rgba(255, 255, 255, 0.06);
  --white: #fff;
  --paper: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --blue: #0071e3;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  background: var(--white);
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
}

.container {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    linear-gradient(180deg, rgba(28, 28, 30, 0.94) 0%, rgba(24, 24, 26, 0.92) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(140%);
}

.topbar-inner {
  position: relative;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  position: absolute;
  left: calc(50% - 330px);
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
}

.brand-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 26px;
  transform: translate(-50%, -50%);
}

.nav a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.nav a:hover {
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #f5f5f7;
}

.section {
  padding: 84px 0;
}

.hero-white {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  color: #f5f5f7;
  background:
    radial-gradient(circle at 50% 13%, rgba(255, 255, 255, 0.06), transparent 10%),
    radial-gradient(circle at 50% 24%, rgba(76, 135, 255, 0.13), transparent 18%),
    radial-gradient(circle at 50% 58%, rgba(255, 184, 72, 0.05), transparent 18%),
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.02), transparent 30%),
    linear-gradient(180deg, #060606 0%, #000000 18%, #000000 72%, #020202 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-white::before,
.hero-white::after {
  content: "";
  position: absolute;
  inset: -18%;
  pointer-events: none;
}

.hero-white::before {
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.055), transparent 12%),
    radial-gradient(circle at 50% 31%, rgba(95, 156, 255, 0.12), transparent 21%),
    radial-gradient(circle at 50% 76%, rgba(255, 186, 82, 0.04), transparent 18%);
  filter: blur(58px);
  opacity: 0.95;
}

.hero-white::after {
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.04), transparent 16%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.88) 100%);
  filter: blur(72px);
}

.hero-white .container {
  position: relative;
  z-index: 1;
}

.hero-white .container::before {
  content: "";
  position: absolute;
  inset: -40px -180px -120px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.05), transparent 14%),
    radial-gradient(circle at 50% 34%, rgba(82, 144, 255, 0.1), transparent 24%),
    radial-gradient(circle at 50% 62%, rgba(255, 178, 62, 0.04), transparent 16%);
  filter: blur(34px);
}

/* ===================================================================
   HERO — СИНЯЯ ТЕМА (по просьбе заказчика).
   Включается классом "hero-blue" на секции #hero в index.html.
   ЧТОБЫ ВЕРНУТЬ ЧЁРНЫЙ ФОН: убрать слово "hero-blue" из class секции
   #hero в index.html (или удалить этот блок целиком).
   =================================================================== */
/* королевский синий в тон бренду (как #products и section-dark) */
.hero-white.hero-blue {
  background:
    radial-gradient(60% 48% at 50% 16%, rgba(190, 222, 255, 0.28), transparent 62%),
    linear-gradient(180deg, #3576cf 0%, #245fb5 48%, #19488f 100%);
}

.hero-white.hero-blue::before { display: none; }

/* мягкий тёмно-синий «скрим» под текстом — чтобы белые буквы читались поверх сетки */
.hero-white.hero-blue .container::before {
  display: block;
  background:
    radial-gradient(58% 46% at 50% 52%, rgba(9, 28, 66, 0.40), transparent 66%);
  filter: blur(46px);
}

.hero-white.hero-blue::after {
  background:
    radial-gradient(118% 98% at 50% 30%, transparent 52%, rgba(7, 22, 52, 0.55) 100%);
}
/* ===== /HERO — СИНЯЯ ТЕМА ===== */

/* ===================================================================
   HERO — СВЕТЛАЯ ТЕМА (как Google Antigravity).
   Включается классом "hero-light" на секции #hero в index.html.
   ЧТОБЫ ВЕРНУТЬ: заменить "hero-light" на "hero-blue" (синий) или
   убрать слово совсем (чёрный). script.js при hero-light подставляет
   тёмную A-монограмму (hero-logo-dark.svg) и тёмные цвета штрихов.
   =================================================================== */
.hero-white.hero-light {
  color: #1a1c22;
  background:
    radial-gradient(circle at 50% 16%, rgba(120, 170, 255, 0.10), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f2f5fb 100%);
}

.hero-white.hero-light::before { display: none; }
.hero-white.hero-light .container::before { display: none; }

.hero-white.hero-light::after {
  background: radial-gradient(120% 95% at 50% 30%, transparent 62%, rgba(20, 40, 90, 0.05) 100%);
}

/* (тёмная подсветка под логотипом убрана — была лишней «тучей») */

/* подпись и заголовки — тёмные */
.hero-white.hero-light .hero-signature-name {
  color: #14161b;
  text-shadow: none;
}
.hero-white.hero-light .hero-signature-subline span {
  background: linear-gradient(90deg, transparent, rgba(20, 30, 50, 0.32), transparent);
}
.hero-white.hero-light .hero-signature-subline strong {
  color: #e8920c;
}
.hero-white.hero-light .hero-copy h1 {
  color: #15171c;
}
.hero-white.hero-light .hero-copy .lead {
  color: rgba(30, 34, 42, 0.7);
}

/* вторичная кнопка — тёмная рамка/текст на белом */
.hero-white.hero-light .button-secondary {
  border-color: rgba(0, 0, 0, 0.16);
  color: #1a1c22;
}
/* ===== /HERO — СВЕТЛАЯ ТЕМА ===== */

.hero-stack {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 16px;
  min-height: calc(100svh - 46px);
  align-content: center;
  transform: translateY(-96px);
}

.hero-media {
  display: grid;
  place-items: center;
  width: 100%;
  gap: 18px;
}

.poster-shell {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: fit-content;
  max-width: min(100%, 560px);
}

.poster-glow-copy {
  position: absolute;
  z-index: 0;
  width: min(100%, 540px);
  opacity: 0.9;
  transform: translate3d(calc(var(--pointer-x, 0) * 5px), calc(var(--pointer-y, 0) * 5px), 0) scale(1.18);
  filter:
    blur(32px)
    brightness(2)
    saturate(1.45)
    drop-shadow(0 0 90px rgba(91, 153, 255, 0.36))
    drop-shadow(0 0 72px rgba(255, 176, 60, 0.2));
  mix-blend-mode: screen;
  animation: logo-breathe 5.2s ease-in-out infinite;
  pointer-events: none;
}

.poster-image {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  transform: translate3d(calc(var(--pointer-x, 0) * 4px), calc(var(--pointer-y, 0) * 4px), 0);
  filter:
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.62))
    drop-shadow(0 0 42px rgba(81, 149, 255, 0.26))
    drop-shadow(0 0 22px rgba(255, 175, 70, 0.16));
  animation: logo-float 6.5s ease-in-out infinite;
}

.hero-signature {
  text-align: center;
}

.hero-signature-name {
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(34px, 4.3vw, 58px);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.28);
}

.hero-signature-subline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
}

.hero-signature-subline span {
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.66), transparent);
}

.hero-signature-subline strong {
  color: #ffb327;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}

.hero-signature p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(14px, 1.2vw, 20px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.hero-signature p + p {
  margin-top: 4px;
}

.hero-copy {
  max-width: 640px;
  text-align: center;
}

.hero-copy h1,
.section-copy h2,
.section-head h2 {
  margin: 0;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-copy h1 {
  font-size: 44px;
  color: #f5f5f7;
}

.lead,
.body-copy,
.tile p,
.contact-card p,
.media-card p,
.map-card p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-copy .lead {
  max-width: 560px;
  margin: 18px auto 0;
  color: rgba(245, 245, 247, 0.78);
  font-size: 17px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.26), transparent 40%);
  transition: opacity 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:hover::before {
  opacity: 1;
}

.button-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 32px rgba(0, 113, 227, 0.22);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f5f5f7;
}

.section-dark {
  background: #050505;
  color: #fff;
}

.section-light {
  background: #fff;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.section-copy,
.section-head {
  max-width: 760px;
}

.section-copy h2,
.section-head h2 {
  font-size: 52px;
}

.body-copy {
  margin: 20px 0 0;
  color: #4c5564;
  font-size: 17px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(29, 29, 31, 0.58);
  text-transform: uppercase;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.62);
}

.metric-grid,
.product-grid,
.contact-cards {
  display: grid;
  gap: 12px;
}

.metric-grid {
  grid-template-columns: repeat(2, 1fr);
}

.metric-card,
.logo-grid div,
.client-list div,
.map-card,
.contact-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.metric-card {
  min-height: 132px;
  padding: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #eef4fd 100%);
  border: 1px solid var(--line-dark);
}

.metric-card span {
  display: block;
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #14306a;
}

.metric-card p {
  margin: 10px 0 0;
  color: #5f6673;
}

.product-grid {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 22px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.catalog-grid-primary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-card {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #e4f3ff 100%);
  transition: transform 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
}

.catalog-card:nth-child(4n + 2) {
  background: linear-gradient(180deg, #fff 0%, #e1f7ec 100%);
}

.catalog-card:nth-child(4n + 3) {
  background: linear-gradient(180deg, #fff 0%, #e8eeff 100%);
}

.catalog-card:nth-child(4n + 4) {
  background: linear-gradient(180deg, #fff 0%, #eff8d6 100%);
}

.catalog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 24% 10%, rgba(255, 255, 255, 0.9), transparent 34%);
  opacity: 0.66;
  pointer-events: none;
}

.catalog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.12);
}

.catalog-card.is-open {
  min-height: 230px;
}

.catalog-card:not(.is-open) ul,
.catalog-card:not(.is-open) .catalog-note {
  display: none;
}

.catalog-card h3,
.catalog-card ul,
.catalog-card .tile-label {
  position: relative;
  z-index: 1;
}

.catalog-card h3 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.catalog-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalog-card li {
  display: flex;
  gap: 9px;
  align-items: baseline;
  color: #5f6673;
  font-size: 15px;
  line-height: 1.35;
}

.catalog-card li::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-top: 0.62em;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 12px rgba(0, 113, 227, 0.34);
}

.catalog-note {
  margin: 14px 0 0;
  color: #5f6673;
  font-size: 16px;
  line-height: 1.45;
}

.catalog-hint {
  position: relative;
  z-index: 1;
}

.catalog-hint {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  color: #0b63ce;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.catalog-hint::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: rgba(11, 99, 206, 0.16);
  box-shadow: 0 0 0 4px rgba(11, 99, 206, 0.08);
}

.catalog-drawer {
  margin-top: 14px;
}

.drawer-toggle {
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(0, 113, 227, 0.24);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);
  color: #0b63ce;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.drawer-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 113, 227, 0.12);
}

.catalog-more {
  margin-top: 14px;
}

.tile {
  min-height: 210px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--line-dark);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.tile:hover,
.contact-card:hover,
.client-list div:hover,
.logo-grid div:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
}

.tile-label {
  display: block;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.46);
}

.tile h3,
.contact-card h3,
.media-card h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}

.tile p {
  margin: 16px 0 0;
}

.tile-sky {
  background: linear-gradient(180deg, #fff 0%, #dff0ff 100%);
}

.tile-mint {
  background: linear-gradient(180deg, #fff 0%, #ddf6ea 100%);
}

.tile-ice {
  background: linear-gradient(180deg, #fff 0%, #e7edff 100%);
}

.tile-lime {
  background: linear-gradient(180deg, #fff 0%, #edf8cf 100%);
}

.tile-sand {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, #fff 0%, #f1f3f5 100%);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.logo-grid div {
  min-height: 92px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #eef4fd 100%);
  border: 1px solid var(--line-dark);
  color: #1c2a4a;
  font-weight: 800;
}

.logo-grid-preview {
  grid-template-columns: repeat(4, 1fr);
}

.partners-cta {
  display: grid;
  justify-items: start;
  gap: 14px;
  margin-top: 22px;
}

.partners-cta p {
  margin: 0;
  color: #4c5564;
  font-size: 16px;
}

.partners-cta .button-secondary {
  border-color: rgba(0, 0, 0, 0.16);
  color: #1a1c22;
}

.client-list {
  display: grid;
  gap: 12px;
}

.client-list div {
  padding: 22px;
  background: #f5f5f7;
  border: 1px solid var(--line-dark);
  font-weight: 700;
}

.geography-section {
  padding-bottom: 32px;
}

.map-card {
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #eef4fd 100%);
  border: 1px solid var(--line-dark);
}

.map-image {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.map-card p {
  margin: 18px 0 0;
  color: #4c5564;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.media-card {
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #eef4fd 100%);
  border: 1px solid var(--line-dark);
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-card div {
  padding: 22px;
}

.media-card h3 {
  color: #15233f;
}

.media-card p {
  margin: 12px 0 0;
  color: #4c5564;
}

.contact-layout {
  display: grid;
  gap: 24px;
}

.contact-cards {
  grid-template-columns: repeat(3, 1fr);
}

.contact-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line-dark);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.contact-form-card {
  grid-column: span 2;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

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

.lead-form label {
  display: grid;
  gap: 8px;
}

.lead-form span {
  font-size: 13px;
  font-weight: 700;
  color: #4c5564;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: rgba(0, 113, 227, 0.52);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
  background: #fff;
}

.lead-form textarea {
  resize: vertical;
  min-height: 140px;
}

/* honeypot: убираем из потока и со скринридеров, но не display:none (некоторые боты его игнорируют) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Чекбокс согласия на обработку персональных данных */
.lead-form label.consent {
  grid-auto-flow: column;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
}

.lead-form label.consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  flex: none;
  background: none; /* перебиваем белый фон правила .section-blue .lead-form input */
  border: 0;
  border-radius: 0;
  accent-color: #0071e3;
  cursor: pointer;
}

.lead-form label.consent span {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  color: #4c5564;
}

.lead-form label.consent a {
  color: #0071e3;
  text-decoration: underline;
}

.form-submit {
  justify-self: start;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: #4c5564;
  font-size: 14px;
  line-height: 1.4;
}

.form-status.is-error {
  color: #c62828;
}

.form-status.is-success {
  color: #0d7a35;
}

.contact-card p {
  margin: 12px 0 0;
  /* длинные email/домены (tihomirova@aliansbk.su) переносим, а не обрезаем
     краем карточки (.contact-card имеет overflow:hidden) */
  overflow-wrap: anywhere;
}

.contact-card a {
  display: block;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-map {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

.contact-maps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.contact-map-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  overflow: hidden;
}

.contact-map-card figcaption {
  padding: 14px 18px 0;
  font-weight: 700;
}

.footer {
  padding: 26px 0 34px;
  background: #fff;
  border-top: 1px solid var(--line-dark);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner p {
  margin: 0;
}

.footer-requisites {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.footer-legal a {
  color: #0071e3;
  text-decoration: none;
}

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

.footer-copy {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.8;
  margin-top: 6px;
}

.suppliers-page {
  background: #050505;
}

.supplier-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 46px);
  color: #f5f5f7;
  background:
    radial-gradient(circle at 24% 18%, rgba(0, 113, 227, 0.12), transparent 20%),
    radial-gradient(circle at 76% 22%, rgba(102, 220, 180, 0.12), transparent 18%),
    radial-gradient(circle at 50% 54%, rgba(255, 255, 255, 0.06), transparent 18%),
    linear-gradient(180deg, #090909 0%, #020202 100%);
}

.supplier-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  min-height: calc(100svh - 46px);
}

.supplier-copy h1 {
  margin: 0;
  font-size: 64px;
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.supplier-copy .lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(245, 245, 247, 0.76);
  font-size: 18px;
}

.supplier-stage {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.supplier-stage-visual {
  display: block;
  width: min(100%, 680px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 56px rgba(0, 64, 176, 0.22));
}

.supplier-stage-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03), transparent 68%);
  animation: supplier-orbit 13s linear infinite;
}

.ring-one {
  width: 440px;
  height: 440px;
}

.ring-two {
  width: 330px;
  height: 330px;
  animation-direction: reverse;
  animation-duration: 11s;
}

.ring-three {
  width: 220px;
  height: 220px;
  animation-duration: 9s;
}

.supplier-stage-core {
  position: relative;
  z-index: 1;
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04) 48%, rgba(0, 113, 227, 0.14) 100%);
  box-shadow:
    0 0 90px rgba(0, 113, 227, 0.22),
    inset 0 0 80px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
}

.supplier-stage-core span {
  display: block;
  font-size: 76px;
  font-weight: 800;
  line-height: 0.9;
}

.supplier-stage-core p {
  margin: 8px 0 0;
  color: rgba(245, 245, 247, 0.72);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.supplier-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  align-items: start;
  gap: 24px;
  margin-top: 28px;
}

.supplier-column {
  padding: 26px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 247, 255, 0.98) 100%);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.08);
}

.supplier-column-label {
  margin: 0 0 18px;
  color: #687083;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.supplier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.supplier-card {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(12, 18, 28, 0.06);
  background:
    radial-gradient(circle at 18% 16%, rgba(0, 113, 227, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.supplier-card:nth-child(3n + 2) {
  background:
    radial-gradient(circle at 18% 16%, rgba(111, 214, 176, 0.16), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #eefbf4 100%);
}

.supplier-card:nth-child(3n + 3) {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 198, 90, 0.18), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fff7ea 100%);
}

.supplier-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 113, 227, 0.16);
  box-shadow: 0 20px 44px rgba(10, 22, 40, 0.12);
}

.supplier-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(7, 26, 48, 0.92);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.supplier-logo {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  padding: 4px;
}

.supplier-card strong {
  display: block;
  margin-top: 14px;
  color: #1c2330;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes logo-breathe {
  0%,
  100% {
    opacity: 0.52;
    transform: scale(1);
  }
  50% {
    opacity: 0.82;
    transform: scale(1.03);
  }
}

@keyframes logo-float {
  0%,
  100% {
    transform: translate3d(calc(var(--pointer-x, 0) * 3px), calc(var(--pointer-y, 0) * 3px), 0) translateY(0);
  }
  50% {
    transform: translate3d(calc(var(--pointer-x, 0) * 3px), calc(var(--pointer-y, 0) * 3px), 0) translateY(-6px);
  }
}

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

@media (max-width: 980px) {
  .split-layout,
  .media-grid,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-maps {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    grid-column: auto;
  }

  .product-grid,
  .catalog-grid,
  .metric-grid,
  .logo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .logo-grid-preview,
  .supplier-columns,
  .supplier-hero-grid {
    grid-template-columns: 1fr;
  }

  .supplier-copy h1 {
    font-size: 48px;
  }

  .catalog-grid-primary {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .section-copy h2,
  .section-head h2 {
    font-size: 40px;
  }
}

@media (max-width: 720px) {
  .brand {
    left: 16px;
  }

  .nav {
    position: absolute;
    top: 46px;
    left: 0;
    right: 0;
    display: grid;
    gap: 12px;
    padding: 14px 16px 18px;
    background: rgba(12, 12, 14, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-toggle {
    display: inline-block;
  }

  .hero-stack {
    transform: translateY(-46px);
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .poster-image {
    width: min(100%, 320px);
  }

  .hero-signature-name {
    letter-spacing: 0.28em;
    text-indent: 0.28em;
  }

  .hero-signature-subline span {
    width: 60px;
  }

  .hero-signature p {
    letter-spacing: 0.11em;
  }

  .product-grid,
  .catalog-grid,
  .metric-grid,
  .logo-grid {
    grid-template-columns: 1fr;
  }

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

  .supplier-stage {
    min-height: 360px;
  }

  .ring-one {
    width: 280px;
    height: 280px;
  }

  .ring-two {
    width: 210px;
    height: 210px;
  }

  .ring-three {
    width: 150px;
    height: 150px;
  }

  .supplier-stage-core {
    width: 160px;
    height: 160px;
  }

  .supplier-stage-core span {
    font-size: 54px;
  }

  .tile-sand {
    grid-column: auto;
  }

  .footer-inner {
    flex-direction: column;
  }
}

/* ===================================================================
   ТЁМНЫЕ СЕКЦИИ — СИНЯЯ ТЕМА (по просьбе заказчика).
   Перекрашивает все чёрные секции и панели в брендовый синий в тон hero.
   ЧТОБЫ ВЕРНУТЬ ЧЁРНЫЙ: удалить этот блок целиком.
   =================================================================== */
.topbar {
  background:
    linear-gradient(180deg, rgba(58, 124, 212, 0.92) 0%, rgba(37, 95, 181, 0.92) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 26px rgba(13, 42, 96, 0.22);
}

/* тонкая золотая акцент-линия снизу панели — в тон логотипу */
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 198, 90, 0.65), transparent);
}

.suppliers-page {
  background: #0f2c5a;
}

.supplier-hero {
  background:
    radial-gradient(circle at 24% 18%, rgba(130, 190, 255, 0.20), transparent 22%),
    radial-gradient(circle at 76% 22%, rgba(120, 220, 255, 0.12), transparent 18%),
    radial-gradient(circle at 50% 54%, rgba(255, 255, 255, 0.05), transparent 18%),
    linear-gradient(180deg, #1c4f9e 0%, #122f63 100%);
}
/* ===== /ТЁМНЫЕ СЕКЦИИ — СИНЯЯ ТЕМА ===== */

/* ===================================================================
   ПРОДУКЦИЯ — КОРОЛЕВСКИЙ СИНИЙ (в тон логотипу).
   Синий фон + стеклянные карточки с градиентной рамкой, свечением
   и «прожектором» под курсором (--mx/--my из script.js).
   =================================================================== */
#products.section-light {
  background:
    radial-gradient(60% 50% at 50% -6%, rgba(190, 222, 255, 0.36), transparent 58%),
    linear-gradient(180deg, #2f74cf 0%, #225bae 55%, #1a4b97 100%);
  color: #eaf2ff;
}

#products .eyebrow {
  color: #cfe0ff;
}

#products .section-head h2 {
  color: #ffffff;
}

/* стеклянная карточка на синем */
#products .catalog-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 34px rgba(8, 28, 70, 0.28);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

/* «прожектор» под курсором */
#products .catalog-card::before {
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 260ms ease;
}

/* тонкая градиентная рамка (Linear/Apple-стиль) */
#products .catalog-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.08) 42%, rgba(255, 255, 255, 0) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 260ms ease;
}

#products .catalog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 28px 60px rgba(8, 28, 70, 0.4),
    0 0 44px rgba(190, 220, 255, 0.18);
}

#products .catalog-card:hover::before { opacity: 1; }
#products .catalog-card:hover::after { opacity: 1; }

#products .catalog-card h3 {
  color: #ffffff;
}

#products .catalog-card .tile-label,
#products .catalog-card .catalog-note {
  color: rgba(220, 232, 255, 0.65);
}

#products .catalog-card li {
  color: rgba(230, 238, 255, 0.85);
}

#products .catalog-card li::before {
  background: #ffce4d;
  box-shadow: 0 0 8px rgba(255, 206, 77, 0.6);
}

#products .catalog-hint {
  color: #ffffff;
}

#products .catalog-hint::before {
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

/* кнопка «Развернуть все» */
#products .drawer-toggle {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

#products .drawer-toggle:hover {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 28px rgba(190, 220, 255, 0.22);
}
/* ===== /ПРОДУКЦИЯ — КОРОЛЕВСКИЙ СИНИЙ ===== */

/* ===================================================================
   МНОГОРАЗОВАЯ СИНЯЯ ТЕМА — .section-blue (Наши клиенты, Контакты).
   Королевский синий фон + светлый текст + стеклянные карточки в тон
   раздела «Продукция». Чередуется с белыми секциями.
   ЧТОБЫ ВЕРНУТЬ СЕКЦИЮ В БЕЛУЮ: убрать класс section-blue в index.html
   и вернуть section-light.
   =================================================================== */
.section-blue {
  background:
    radial-gradient(60% 50% at 50% -6%, rgba(190, 222, 255, 0.34), transparent 58%),
    linear-gradient(180deg, #2f74cf 0%, #225bae 55%, #1a4b97 100%);
  color: #eaf2ff;
}

.section-blue .eyebrow {
  color: #cfe0ff;
}

.section-blue .section-head h2,
.section-blue .section-copy h2 {
  color: #ffffff;
}

/* общая «стеклянная» карточка для синих секций */
.section-blue .client-list div,
.section-blue .contact-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #eaf2ff;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 34px rgba(8, 28, 70, 0.28);
}

.section-blue .client-list div:hover,
.section-blue .contact-card:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 28px 60px rgba(8, 28, 70, 0.4),
    0 0 44px rgba(190, 220, 255, 0.18);
}

/* Наши клиенты */
.section-blue .client-list div {
  color: #ffffff;
}

/* Контакты */
.section-blue .contact-form-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
}

/* Форма-заявка занимает 2 колонки ТОЛЬКО на десктопе. На ≤980px секция уже
   одноколоночная (.contact-cards → 1fr), а span 2 заставлял grid создать
   неявную вторую колонку: карточки «Центральный офис» и «Филиал» вставали в
   ряд и текст обрезался. Раньше сброс грузился внутри @media(max-width:980px),
   но эта блю-тема (та же специфичность, но ниже по файлу) перебивала его —
   поэтому span задаётся только сверху брейкпоинта. */
@media (min-width: 981px) {
  .section-blue .contact-form-card {
    grid-column: span 2;
  }
}

.section-blue .contact-card h3 {
  color: #ffffff;
}

.section-blue .contact-card p {
  color: rgba(230, 238, 255, 0.82);
}

.section-blue .contact-card a {
  color: #ffd98a;
}

.section-blue .lead-form span {
  color: #dbe6ff;
}

.section-blue .lead-form label.consent span {
  color: #dbe6ff;
}

.section-blue .lead-form label.consent a {
  color: #ffd98a;
}

/* поля ввода оставляем светлыми — введённый текст должен быть тёмным/читаемым */
.section-blue .lead-form input,
.section-blue .lead-form textarea {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.94);
}

.section-blue .form-status {
  color: #dbe6ff;
}

/* карточки карт — белые плашки нормально лежат на синем */
.section-blue .contact-map-card {
  border-color: rgba(255, 255, 255, 0.28);
}

/* карточка «Центральный офис»: кнопка чат-бота уходит в нижнюю пустую зону */
.section-blue .contact-office-card {
  display: flex;
  flex-direction: column;
}

/* Блок «Отделы» внутри карточки центрального офиса */
.office-departments {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.office-departments h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.office-departments p {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

.section-blue .contact-office-card .tg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: auto;
  padding: 13px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #29a6e6 0%, #1f8ad0 100%);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 26px rgba(16, 78, 150, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.section-blue .contact-office-card .tg-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(16, 78, 150, 0.45);
}

.tg-button-icon {
  font-size: 16px;
  transform: rotate(-12deg);
}
/* ===== /МНОГОРАЗОВАЯ СИНЯЯ ТЕМА ===== */
