/* ==========================================================================
   Лендинг Sell & Buy — глобальные стили
   ========================================================================== */

:root {
  --color-white: #ffffff;
  --color-dark-blue: #020658;
  --color-primary-25: #f0f9ff;
  --color-primary-300: #50b6fb;
  --color-primary-400: #35a0e7;
  --color-primary-500: #2891d7;
  --color-primary-600: #197bbd;
  --color-neutral-700: #1f1f1f;
  --color-neutral-600: #4b4b4b;
  --color-neutral-400: #cacaca;
  --color-neutral-200: #eeeeee;
  --color-neutral-75: #f8f8f8;
  --color-green: #6bb700;

  --font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --container-max: 1920px;
  --side-padding: 130px;

  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-card: 18px 13px 56.4px 0 rgba(172, 197, 230, 0.25);
  --shadow-card-alt: -26px -6px 107.3px 0 rgba(172, 197, 230, 0.25);

  --site-header-height: 90px;
  --scroll-offset-top: calc(var(--site-header-height) + 20px);
  /* На экранах шире container-max — выравнивание контента по центру, фон секции на 100% */
  --section-inline-padding: max(var(--side-padding), calc((100% - var(--container-max)) / 2));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: var(--scroll-offset-top);
  /* Защита от декора (свечения, «орбиты», размытые ореолы), вылезающих за
     секцию и дающих горизонтальный скролл на узких экранах. `clip` вместо
     `hidden` — не создаёт контейнер прокрутки и не ломает position:sticky выше. */
  overflow-x: clip;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  color: var(--color-neutral-700);
  background-color: var(--color-white);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-main {
  padding-top: var(--site-header-height);
}

/* ==========================================================================
   Flash-toast (уведомления после редиректа)
   ========================================================================== */

.site-toast-region {
  position: fixed;
  z-index: 1200;
  top: calc(var(--site-header-height) + 16px);
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.site-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border-left: 4px solid transparent;
  box-shadow:
    0 4px 16px rgba(2, 6, 88, 0.06),
    0 20px 48px -16px rgba(2, 6, 88, 0.28);
  transform: translateX(20px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: auto;
}

.site-toast--visible {
  transform: translateX(0);
  opacity: 1;
}

.site-toast--leaving {
  transform: translateX(20px);
  opacity: 0;
}

.site-toast--success {
  border-left-color: var(--color-green);
}

.site-toast--success .site-toast__icon {
  color: var(--color-green);
}

.site-toast--error {
  border-left-color: #e5484d;
}

.site-toast--error .site-toast__icon {
  color: #e5484d;
}

.site-toast__icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.site-toast__message {
  flex: 1;
  margin: 0;
  padding-top: 1px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--color-neutral-700);
}

.site-toast__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: -4px -4px -4px 0;
  padding: 4px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-neutral-600);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-toast__close:hover {
  color: var(--color-neutral-700);
  background-color: var(--color-neutral-75);
}

.site-toast__close:focus-visible {
  outline: 2px solid var(--color-primary-400);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .site-toast {
    transition: none;
  }
}

@media (max-width: 480px) {
  .site-toast-region {
    right: 12px;
    left: 12px;
    width: auto;
  }
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
}

/* ==========================================================================
   Переиспользуемые кнопки
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.btn:active {
  transform: translateY(0);
  opacity: 1;
}

.btn--primary {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  height: 48px;
  padding: 8px 52px;
  min-width: 220px;
}

.btn--secondary {
  background-color: var(--color-white);
  color: var(--color-dark-blue);
  border: 1px solid var(--color-dark-blue);
  height: 48px;
  padding: 8px 48px;
  min-width: 220px;
}

.btn--accent {
  background-color: var(--color-primary-400);
  color: var(--color-white);
  height: 56px;
  padding: 14px 40px;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.2px;
  min-width: 260px;
}

.btn--accent:hover {
  background-color: var(--color-primary-500);
  opacity: 1;
}

.btn--cta-dark {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  height: 56px;
  padding: 8px 40px;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.2px;
  min-width: 260px;
}

/* ==========================================================================
   Шапка сайта
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-neutral-200);
  box-shadow: 0 1px 0 rgba(2, 6, 88, 0.04);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 90px;
  padding: 0 var(--side-padding);
  max-width: var(--container-max);
  margin: 0 auto;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__logo img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.site-header__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--color-neutral-700);
  background: transparent;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.site-header__burger:active {
  opacity: 0.7;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;
  color: var(--color-neutral-700);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--color-primary-500);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Компактные кнопки в шапке — глобальные .btn--primary / .btn--secondary
   рассчитаны на CTA в hero (min-width: 220px), в хедере это слишком широко. */
.site-header__actions .btn {
  height: 44px;
  min-width: 0;
  padding: 8px 22px;
  font-size: 15px;
}

/* ==========================================================================
   Переключатель языков
   ========================================================================== */

.lang-switch {
  display: inline-flex;
  align-items: center;
}

.lang-switch__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--color-neutral-600);
  transition: color 0.15s ease, background-color 0.15s ease;
  text-decoration: none;
}

.lang-switch__link:hover {
  color: var(--color-primary-500);
}

.lang-switch__link--current {
  color: var(--color-dark-blue);
}

/* --- Вариант для шапки: компактные капсулы с короткими кодами RU/EN/BE. --- */
.lang-switch--header {
  background-color: var(--color-neutral-75);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}

.lang-switch--header .lang-switch__link {
  height: 32px;
  min-width: 36px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.lang-switch--header .lang-switch__name {
  display: none;
}

.lang-switch--header .lang-switch__link--current {
  background-color: var(--color-white);
  box-shadow: 0 1px 2px rgba(2, 6, 88, 0.08);
}

/* --- Вариант для мобильного меню: ряд кнопок с полным названием. --- */
.lang-switch--mobile {
  display: flex;
  gap: 8px;
  margin: 24px 0 4px;
  padding-top: 24px;
  border-top: 1px solid var(--color-neutral-200);
}

.lang-switch--mobile .lang-switch__link {
  flex: 1 1 0;
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px;
  min-height: 56px;
  border-radius: var(--radius-sm);
  background-color: var(--color-neutral-75);
  font-weight: 500;
}

.lang-switch--mobile .lang-switch__code {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-neutral-600);
}

.lang-switch--mobile .lang-switch__name {
  font-size: 14px;
  line-height: 18px;
}

.lang-switch--mobile .lang-switch__link--current {
  background-color: var(--color-primary-25);
  color: var(--color-dark-blue);
}

.lang-switch--mobile .lang-switch__link--current .lang-switch__code {
  color: var(--color-primary-500);
}

/* ==========================================================================
   Мобильное меню (оверлей)
   ========================================================================== */

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: var(--color-white);
  flex-direction: column;
  padding: 16px 20px 40px;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.mobile-menu--open {
  transform: translateX(0);
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  flex-shrink: 0;
}

.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--color-neutral-700);
  background: transparent;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.mobile-menu__logo img {
  height: 24px;
  width: auto;
  display: block;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding: 0 4px;
}

.mobile-menu__nav a {
  display: flex;
  align-items: center;
  height: 40px;
  font-size: 18px;
  line-height: 22px;
  font-weight: 600;
  color: var(--color-neutral-700);
  transition: color 0.2s ease;
}

.mobile-menu__nav a:active {
  color: var(--color-primary-500);
}

.mobile-menu__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

.mobile-menu__btn {
  width: 100%;
  height: 60px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  min-width: 0;
  padding: 8px 24px;
}

/* ==========================================================================
   Первый экран (hero)
   ========================================================================== */

.hero {
  background-color: var(--color-dark-blue);
  background-image:
    radial-gradient(80% 60% at 100% 0%, rgba(53, 160, 231, 0.25) 0%, transparent 60%),
    linear-gradient(180deg, #060a6e 0%, #020658 55%, #01023f 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__bg-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 80%);
  opacity: 0.7;
}

.hero__bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
}

.hero__bg-glow--blue {
  width: 720px;
  height: 720px;
  top: -240px;
  right: -160px;
  background: radial-gradient(circle, rgba(80, 182, 251, 0.55) 0%, rgba(80, 182, 251, 0) 70%);
}

.hero__bg-glow--green {
  width: 520px;
  height: 520px;
  left: -180px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(155, 224, 62, 0.32) 0%, rgba(155, 224, 62, 0) 70%);
  opacity: 0.45;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 96px var(--side-padding) 112px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero__title {
  font-size: 44px;
  line-height: 52px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 24px 0;
}

.hero__title-accent {
  background: linear-gradient(120deg, #9be03e 0%, #50b6fb 60%, #c5f05a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.hero__subtitle {
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  max-width: 56ch;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 999px;
  background-color: rgba(155, 224, 62, 0.12);
  border: 1px solid rgba(155, 224, 62, 0.35);
  color: #c5f05a;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero__badge-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #9be03e;
  box-shadow: 0 0 0 3px rgba(155, 224, 62, 0.25);
  flex-shrink: 0;
}

.hero__badge-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(155, 224, 62, 0.55);
  animation: hero-pulse 2.4s ease-out infinite;
}

@keyframes hero-pulse {
  0%   { transform: scale(0.6); opacity: 0.9; }
  70%  { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.hero__secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 16px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  color: var(--color-white);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, transform 0.2s ease;
}

.hero__secondary svg {
  transition: transform 0.2s ease;
}

.hero__secondary:hover {
  color: #c5f05a;
}

.hero__secondary:hover svg {
  transform: translateX(3px);
}

.hero__highlights {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 14px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.72);
}

.hero__highlights li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__highlights svg {
  color: #9be03e;
  flex-shrink: 0;
}

.hero__images {
  position: relative;
  height: 594px;
  width: 100%;
  max-width: 881px;
  justify-self: end;
}

.hero__images-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(80, 182, 251, 0.35) 0%, transparent 70%),
    radial-gradient(50% 60% at 80% 80%, rgba(155, 224, 62, 0.18) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero__image-desktop {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 88%;
  max-width: 877px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: #0a0f3a;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 0 4px rgba(255, 255, 255, 0.03);
}

.hero__image-desktop img {
  width: 100%;
  height: auto;
  display: block;
}

.hero__image-mobile {
  position: absolute;
  right: 0;
  top: 89px;
  z-index: 2;
  width: 235px;
  max-height: 501px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: #0a0f3a;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero__image-mobile img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Блок «О продукте» — графики
   ========================================================================== */

.section-about {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 112px var(--section-inline-padding) 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.section-about::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(80, 182, 251, 0.10) 0%, transparent 70%),
    linear-gradient(180deg, var(--color-white) 0%, var(--color-primary-25) 100%);
  pointer-events: none;
}

.about__images {
  position: relative;
  width: 100%;
  max-width: 815px;
  /* Высота через aspect-ratio стопки (485/815), чтобы колонка на ноутах сжималась пропорционально */
  height: 0;
  padding-bottom: 59.51%;
}

.about__images-glow {
  position: absolute;
  inset: -10% -8% -10% -8%;
  z-index: 0;
  background:
    radial-gradient(50% 60% at 30% 30%, rgba(80, 182, 251, 0.28) 0%, transparent 70%),
    radial-gradient(45% 55% at 80% 80%, rgba(155, 224, 62, 0.22) 0%, transparent 70%);
  filter: blur(48px);
  pointer-events: none;
}

.about__image {
  position: absolute;
  border: 4px solid var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: #fff;
  transition: transform 0.4s ease;
}

.about__image img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.about__image--top {
  left: 0;
  top: 0;
  width: 65%;
  max-width: 534px;
  aspect-ratio: 1138 / 792;
  height: auto;
  box-shadow: var(--shadow-card-alt);
  z-index: 1;
}

.about__image--bottom {
  left: 27%;
  top: 28.45%;
  width: 72%;
  max-width: 592px;
  aspect-ratio: 1356 / 794;
  height: auto;
  box-shadow: var(--shadow-card);
  z-index: 2;
}

.section-about:hover .about__image--top {
  transform: translate(-4px, -4px);
}

.section-about:hover .about__image--bottom {
  transform: translate(4px, 4px);
}

.about__tip {
  position: absolute;
  z-index: 3;
  left: -8px;
  bottom: -32px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 320px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(80, 182, 251, 0.25);
  border-radius: var(--radius-md);
  box-shadow:
    0 18px 40px rgba(2, 6, 88, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.about__tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary-300) 0%, var(--color-primary-500) 100%);
  color: var(--color-white);
  flex-shrink: 0;
}

.about__tip-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about__tip-eyebrow {
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-primary-500);
  margin: 0;
}

.about__tip-text {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--color-neutral-700);
  margin: 0;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 772px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: rgba(80, 182, 251, 0.12);
  color: var(--color-primary-600);
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary-400);
  box-shadow: 0 0 0 3px rgba(80, 182, 251, 0.2);
}

.about__features {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 28px;
}

.about__feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.about__feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(80, 182, 251, 0.14) 0%, rgba(155, 224, 62, 0.18) 100%);
  color: var(--color-primary-600);
  flex-shrink: 0;
}

.about__feature-title {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: var(--color-neutral-700);
  margin: 0 0 4px 0;
}

.about__feature-desc {
  font-size: 14px;
  line-height: 20px;
  color: var(--color-neutral-600);
  margin: 0;
}

.section-title {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--color-neutral-700);
  margin: 0;
}

.section-lead {
  font-size: 20px;
  line-height: 28px;
  color: var(--color-neutral-600);
  font-weight: 400;
}

/* ==========================================================================
   Блок интеграций
   ========================================================================== */

.section-integration {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 80px var(--section-inline-padding) 100px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}

.section-integration::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 50% at 100% 50%, rgba(80, 182, 251, 0.10) 0%, transparent 70%),
    linear-gradient(180deg, var(--color-primary-25) 0%, var(--color-white) 100%);
  pointer-events: none;
}

.integration__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 772px;
}

.integration__tags-label {
  margin: 8px 0 -8px;
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-neutral-600);
}

.integration__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.integration__tags li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background-color: var(--color-white);
  color: var(--color-primary-600);
  border: 1px solid rgba(40, 145, 215, 0.22);
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.integration__tags li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary-400);
  flex-shrink: 0;
}

.integration__tags li:hover {
  transform: translateY(-2px);
  background-color: var(--color-primary-25);
  box-shadow: 0 6px 16px rgba(40, 145, 215, 0.15);
}

.integration__diagram {
  position: relative;
  width: 100%;
  max-width: 818px;
  min-width: 0;
  aspect-ratio: 818 / 460;
  height: auto;
  container-type: inline-size;
  container-name: integration-diagram;
}

.integration__ring {
  position: absolute;
  left: 52.12%;
  top: 46.74%;
  border-radius: 50%;
  border-style: dashed;
  border-color: rgba(40, 145, 215, 0.28);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: integration-spin 80s linear infinite;
}

.integration__ring--inner {
  width: 43.99%;
  height: auto;
  aspect-ratio: 1;
  border-width: 1.5px;
  opacity: 0.7;
}

.integration__ring--outer {
  width: 58.68%;
  height: auto;
  aspect-ratio: 1;
  border-width: 1px;
  opacity: 0.45;
  animation-direction: reverse;
  animation-duration: 120s;
}

@keyframes integration-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.integration__hub {
  position: absolute;
  left: 35%;
  top: 16.3%;
  width: 34.23%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, var(--color-white) 0%, var(--color-neutral-75) 100%);
  border: 4px solid var(--color-white);
  box-shadow:
    var(--shadow-card),
    0 0 0 1px rgba(40, 145, 215, 0.12) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: visible;
  z-index: 2;
}

.integration__hub-cart {
  position: relative;
  width: 45%;
  height: auto;
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-300) 0%, var(--color-primary-500) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  overflow: visible;
  box-shadow:
    0 12px 28px rgba(40, 145, 215, 0.35),
    0 0 0 6px rgba(80, 182, 251, 0.10);
}

/* Корзина — через image_tag (img), не inline svg */
.integration__hub-cart img,
.integration__hub-cart svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  flex-shrink: 0;
}

.integration__hub-label {
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: var(--color-neutral-700);
  letter-spacing: 0.01em;
}

.integration__node {
  position: absolute;
  width: 12.22%;
  height: auto;
  aspect-ratio: 1;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15em;
  padding: 0.45em;
  /* em-масштаб от ширины диаграммы (cqi), не % у svg — иначе в Chrome иконка 0×0 */
  font-size: clamp(10px, 1.75cqi, 13px);
  color: var(--color-primary-500);
  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(40, 145, 215, 0.10);
  z-index: 2;
  animation: integration-float 5s ease-in-out infinite;
}

.integration__node svg {
  display: block;
  flex: 0 0 auto;
  width: 3.2em;
  height: 3.2em;
  min-width: 30px;
  min-height: 30px;
  max-width: 52px;
  max-height: 52px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.integration__node-label {
  display: block;
  flex: 0 1 auto;
  box-sizing: border-box;
  max-width: 92%;
  font-size: 0.92em;
  line-height: 1.1;
  font-weight: 600;
  color: var(--color-neutral-600);
  letter-spacing: -0.02em;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@container integration-diagram (max-width: 680px) {
  .integration__node {
    font-size: clamp(9px, 1.55cqi, 11px);
    padding: 0.4em;
  }

  .integration__node svg {
    width: 2.85em;
    height: 2.85em;
    min-width: 26px;
    min-height: 26px;
    max-width: 42px;
    max-height: 42px;
  }

  .integration__node-label {
    font-size: 0.9em;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

/* Центры узлов — концы линий в integration__connectors--desktop (viewBox 818×460) */
.integration__node--card {
  left: 23.17%;
  top: 12.67%;
  animation-delay: 0s;
}

.integration__node--message {
  left: 19.91%;
  top: 50.98%;
  animation-delay: -1.6s;
}

.integration__node--check {
  left: 76.04%;
  right: auto;
  top: 16.15%;
  color: var(--color-green);
  animation-delay: -3.2s;
}

@keyframes integration-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -8px; }
}

/* Бейдж «можно добавить» — на краю круга с корзиной, масштабируется вместе с hub-cart */
.integration__plus {
  position: absolute;
  right: -8%;
  bottom: -4%;
  width: 36%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: var(--color-white);
  box-shadow:
    0 4px 14px rgba(15, 23, 42, 0.08),
    0 0 0 4px rgba(155, 224, 62, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green);
  z-index: 3;
  animation: integration-pulse 2.6s ease-in-out infinite;
}

.integration__plus svg {
  width: 42%;
  height: auto;
  aspect-ratio: 1;
  stroke: currentColor;
  stroke-width: 2.5;
}

@keyframes integration-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08), 0 0 0 4px rgba(155, 224, 62, 0.18); }
  50%      { box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08), 0 0 0 10px rgba(155, 224, 62, 0); }
}

.integration__connectors {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.integration__connectors line {
  stroke: rgba(40, 145, 215, 0.45);
  stroke-width: 2;
  stroke-dasharray: 6 5;
  stroke-linecap: round;
}

.integration__connectors--mobile {
  display: none;
}

/* ==========================================================================
   Блок «Для кого»
   ========================================================================== */

.for-whom-wrap {
  padding: 24px 32px 48px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.for-whom {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(80, 182, 251, 0.20) 0%, transparent 60%),
    linear-gradient(180deg, var(--color-primary-25) 0%, #e8f4fe 100%);
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding: 80px 64px;
  align-items: center;
}

.for-whom__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(40, 145, 215, 0.12) 1px, transparent 0);
  background-size: 24px 24px;
  mask-image: radial-gradient(80% 80% at 50% 50%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000 30%, transparent 90%);
  opacity: 0.55;
}

.for-whom__bg-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  bottom: -120px;
  left: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 224, 62, 0.22) 0%, rgba(155, 224, 62, 0) 70%);
  filter: blur(40px);
}

.for-whom__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.for-whom__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.for-whom__industries {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.for-whom__industries li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background-color: var(--color-white);
  color: var(--color-neutral-700);
  border: 1px solid rgba(40, 145, 215, 0.20);
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.for-whom__industries li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary-400);
  flex-shrink: 0;
}

.for-whom__industries li:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(40, 145, 215, 0.15);
}

.for-whom__industry--active {
  background: linear-gradient(135deg, var(--color-green) 0%, #8ad300 100%) !important;
  color: var(--color-white) !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(107, 183, 0, 0.30) !important;
}

.for-whom__industry--active::before {
  display: none;
}

.for-whom__industry--active svg {
  color: var(--color-white);
}

.for-whom__images {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 818 / 488;
  min-width: 0;
  /* Явная высота — чтобы % у вложенных absolute-рамок считались стабильно. */
  height: auto;
}

.for-whom__image {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background-color: #d9d9d9;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}

.for-whom__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.for-whom__image:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  z-index: 2;
}

/* Координаты коллажа (макет 818×488): inset вместо width+height %. */
.for-whom__image--1 {
  inset: 0 85.82% 73.36% 0;
}

.for-whom__image--2 {
  inset: 0 34.35% 36.89% 16.99%;
}

.for-whom__image--3 {
  inset: 0 0 67.42% 68.58%;
}

.for-whom__image--4 {
  inset: 68.03% 51.47% 0 0;
}

.for-whom__image--5 {
  inset: 37.5% 0 0 68.58%;
}

/* ==========================================================================
   Блок преимуществ
   ========================================================================== */

.section-advantages {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 96px var(--section-inline-padding);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section-advantages::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 50% at 0% 100%, rgba(155, 224, 62, 0.10) 0%, transparent 70%),
    linear-gradient(180deg, var(--color-white) 0%, var(--color-primary-25) 100%);
  pointer-events: none;
}

.advantages__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.advantages__header .section-eyebrow {
  align-self: center;
}

.advantages__title {
  margin: 0;
}

.advantages__subtitle {
  margin: 0;
  font-size: 18px;
  line-height: 26px;
  color: var(--color-neutral-600);
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
}

.advantage-card {
  position: relative;
  overflow: hidden;
  background-color: var(--color-white);
  border: 1px solid rgba(40, 145, 215, 0.12);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 289px;
  height: 100%;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.advantage-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary-300) 0%, var(--color-green) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.advantage-card:hover {
  transform: translateY(-4px);
  border-color: rgba(40, 145, 215, 0.30);
  box-shadow: 0 18px 36px rgba(40, 145, 215, 0.14);
}

.advantage-card:hover::after {
  opacity: 1;
}

.advantage-card:hover .advantage-card__icon {
  transform: scale(1.05);
  box-shadow: 0 14px 30px rgba(40, 145, 215, 0.35);
}

.advantage-card__number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
  color: rgba(40, 145, 215, 0.10);
  letter-spacing: -0.02em;
  pointer-events: none;
}

.advantage-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.advantage-card__icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--color-primary-300) 0%, var(--color-primary-500) 100%);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(40, 145, 215, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.advantage-card__icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.advantage-card__title {
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  color: var(--color-neutral-700);
  margin: 0;
}

.advantage-card__text {
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  color: var(--color-neutral-600);
}

.advantages__footer {
  margin: 8px 0 0;
  text-align: center;
  font-size: 15px;
  line-height: 22px;
  color: var(--color-neutral-600);
}

.advantages__footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  color: var(--color-primary-600);
  font-weight: 600;
  transition: color 0.2s ease, gap 0.2s ease;
}

.advantages__footer-link svg {
  transition: transform 0.2s ease;
}

.advantages__footer-link:hover {
  color: var(--color-primary-500);
}

.advantages__footer-link:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Блок вопросов и ответов (FAQ)
   ========================================================================== */

.section-faq {
  padding: 96px var(--side-padding);
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.section-faq__header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: var(--scroll-offset-top);
}

.section-faq__title {
  margin: 0;
}

.section-faq__subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-neutral-600);
}

.section-faq__cta {
  margin-top: 16px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(155, 224, 62, 0.16) 0%, transparent 70%),
    linear-gradient(135deg, var(--color-primary-25) 0%, var(--color-white) 100%);
  border: 1px solid rgba(40, 145, 215, 0.18);
}

.section-faq__cta-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: var(--color-neutral-700);
}

.section-faq__cta-text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-neutral-600);
}

.section-faq__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--color-primary-600);
  transition: color 0.2s ease;
}

.section-faq__cta-link svg {
  transition: transform 0.2s ease;
}

.section-faq__cta-link:hover {
  color: var(--color-primary-500);
}

.section-faq__cta-link:hover svg {
  transform: translateX(3px);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.faq-item {
  background-color: var(--color-white);
  border: 1px solid rgba(40, 145, 215, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(40, 145, 215, 0.28);
}

.faq-item[open] {
  border-color: rgba(40, 145, 215, 0.30);
  box-shadow: 0 14px 32px rgba(40, 145, 215, 0.10);
}

.faq-item__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  color: var(--color-neutral-700);
  cursor: pointer;
  list-style: none;
  user-select: none;
  outline: none;
  transition: color 0.2s ease;
}

.faq-item__summary:hover {
  color: var(--color-primary-600);
}

.faq-item[open] .faq-item__summary {
  color: var(--color-primary-600);
  padding-bottom: 12px;
}

.faq-item__summary::-webkit-details-marker {
  display: none;
}

.faq-item__summary:focus-visible {
  box-shadow: inset 0 0 0 2px var(--color-primary-400);
  border-radius: var(--radius-md);
}

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

.faq-item[open] .faq-item__chevron {
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--color-primary-300) 0%, var(--color-primary-500) 100%);
  color: var(--color-white);
}

.faq-item__answer {
  padding: 0 28px 24px;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-neutral-600);
}

.faq-item__answer p {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(40, 145, 215, 0.10);
}

/* ==========================================================================
   Контакты (форма + соцсети)
   ========================================================================== */

.section-contacts {
  background-color: var(--color-dark-blue);
  padding: 72px var(--side-padding);
}

.contacts {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 1320px;
  margin: 0 auto;
  box-shadow: 0 30px 80px -40px rgba(2, 6, 88, 0.45);
}

.contacts__form-wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  padding: 64px 72px;
  align-items: stretch;
  /* Мягкое фирменное свечение в левом верхнем углу — глубина без отвлечения от формы. */
  background:
    radial-gradient(640px 320px at 0% 0%, rgba(80, 182, 251, 0.10) 0%, transparent 60%),
    radial-gradient(420px 320px at 100% 100%, rgba(2, 6, 88, 0.05) 0%, transparent 65%),
    var(--color-white);
}

/* --- Колонка с текстом (интро) ---------------------------------------- */

.contacts__intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 100%;
  min-width: 0;
}

.contacts__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background-color: var(--color-primary-25);
  color: var(--color-primary-600);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.contacts__eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-green);
  box-shadow: 0 0 0 4px rgba(107, 183, 0, 0.18);
  flex-shrink: 0;
}

.contacts__benefits {
  list-style: none;
  margin: 12px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--color-neutral-200);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contacts__benefits li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-neutral-700);
  font-weight: 500;
}

.contacts__benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(107, 183, 0, 0.14);
  color: var(--color-green);
  flex-shrink: 0;
  margin-top: -2px;
}

.contacts__benefit-icon svg {
  display: block;
}

.contacts__trust {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0;
  padding: 14px 16px;
  background-color: var(--color-primary-25);
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 20px;
  color: var(--color-neutral-700);
}

.contacts__trust svg {
  color: var(--color-primary-500);
  flex-shrink: 0;
  margin-top: 1px;
}

/* --- Колонка с формой -------------------------------------------------- */

.contacts-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 100%;
  min-width: 0;
  padding: 32px 32px 28px;
  background-color: var(--color-neutral-75);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-neutral-200);
}

.contacts-form__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}

.contacts-form__title {
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  color: var(--color-neutral-700);
  margin: 0;
}

.contacts-form__subtitle {
  font-size: 14px;
  line-height: 20px;
  color: var(--color-neutral-600);
  margin: 0;
}

/* Поля формы — модель из sellnbuy-admin (_inputs.scss).
   Лейбл всегда статичен сверху, маленький; у инпута увеличенный padding-top,
   чтобы текст вводился ниже лейбла. На фокус — primary‑цвет рамки и лейбла. */
.field {
  position: relative;
  width: 100%;
}

.field__label,
.field__label--inside {
  position: absolute;
  top: 8px;
  left: 16px;
  right: 16px;
  display: block;
  width: auto;
  max-width: none;
  background: transparent;
  padding: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--color-neutral-600);
  white-space: normal;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  pointer-events: none;
  z-index: 2;
  transition: color 0.15s ease;
}

.field__required {
  color: var(--color-primary-600);
  font-size: 12px;
  margin-left: 2px;
}

.field__control {
  width: 100%;
  height: 56px;
  padding: 22px 16px 6px;
  border: 1px solid var(--color-neutral-400);
  border-radius: 8px;
  background-color: var(--color-white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 16px;
  line-height: 20px;
  color: var(--color-neutral-700);
  box-sizing: border-box;
}

.field__control--textarea {
  height: auto;
  min-height: 140px;
  resize: vertical;
  padding: 28px 16px 12px;
}

.field__control::placeholder {
  color: var(--color-neutral-500);
}

.field__control:focus {
  border-color: var(--color-primary-600);
  box-shadow: 0 0 0 3px rgba(40, 145, 215, 0.15);
}

.field:has(.field__control:focus) .field__label,
.field:has(.field__control:focus) .field__label--inside {
  color: var(--color-primary-600);
}

.field__control:disabled {
  border-color: var(--color-neutral-400);
  color: var(--color-neutral-500);
  background-color: var(--color-neutral-75);
  cursor: not-allowed;
}

.field:has(.field__control:disabled) .field__label,
.field:has(.field__control:disabled) .field__label--inside {
  color: var(--color-neutral-400);
}

.contacts-form__submit {
  width: 100%;
  margin-top: 8px;
}

.contacts-form__note {
  font-size: 13px;
  line-height: 18px;
  color: var(--color-neutral-600);
  margin: 4px 0 0;
}

.contacts-form__note a {
  color: var(--color-primary-500);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contacts-form__note a:hover {
  color: var(--color-primary-600);
}

/* ==========================================================================
   Юридическая страница (/privacy) — политика / условия / cookie
   ========================================================================== */

.legal-page {
  background-color: var(--color-neutral-75);
  padding: 64px var(--side-padding) 96px;
}

.legal-page__inner {
  max-width: 820px;
  margin: 0 auto;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 64px 64px 56px;
  box-shadow: 0 4px 32px rgba(20, 40, 80, 0.04);
}

.legal-page__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.legal-page__eyebrow {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-primary-500);
  margin: 0;
}

.legal-page__title {
  font-size: 36px;
  line-height: 44px;
  font-weight: 600;
  color: var(--color-neutral-700);
  margin: 0;
}

.legal-page__updated {
  font-size: 15px;
  line-height: 22px;
  color: var(--color-neutral-600);
  margin: 0;
}

.legal-page__updated a {
  color: var(--color-primary-500);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page__notice {
  margin: 16px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--color-primary-400);
  background-color: var(--color-primary-25);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 22px;
  color: var(--color-neutral-700);
}

.legal-page__notice a {
  color: var(--color-primary-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page__toc {
  background-color: var(--color-neutral-75);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 48px;
}

.legal-page__toc-title {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-neutral-600);
  margin: 0 0 12px;
}

.legal-page__toc ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
}

.legal-page__toc li {
  font-size: 15px;
  line-height: 22px;
  color: var(--color-neutral-700);
}

.legal-page__toc a {
  color: var(--color-neutral-700);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-page__toc a:hover {
  color: var(--color-primary-500);
  border-bottom-color: var(--color-primary-300);
}

.legal-page__section {
  margin-bottom: 40px;
  scroll-margin-top: var(--scroll-offset-top);
}

.legal-page__section:last-of-type {
  margin-bottom: 24px;
}

.legal-page__section h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  color: var(--color-neutral-700);
  margin: 0 0 16px;
}

.legal-page__section h3 {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: var(--color-neutral-700);
  margin: 24px 0 8px;
}

.legal-page__section p {
  font-size: 16px;
  line-height: 26px;
  color: var(--color-neutral-700);
  margin: 0 0 14px;
}

.legal-page__section p:last-child {
  margin-bottom: 0;
}

.legal-page__section ul {
  margin: 0 0 16px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-page__section li {
  font-size: 16px;
  line-height: 24px;
  color: var(--color-neutral-700);
}

.legal-page__section a {
  color: var(--color-primary-500);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.legal-page__section a:hover {
  color: var(--color-primary-600);
}

.legal-page__section strong {
  font-weight: 600;
  color: var(--color-neutral-700);
}

.legal-page__footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-neutral-200);
  font-size: 15px;
  line-height: 22px;
  color: var(--color-neutral-600);
}

.legal-page__footer a {
  color: var(--color-primary-500);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 1024px) {
  .legal-page {
    padding: 48px var(--side-padding) 72px;
  }

  .legal-page__inner {
    padding: 48px 40px;
  }

  .legal-page__title {
    font-size: 30px;
    line-height: 38px;
  }
}

@media (max-width: 720px) {
  .legal-page {
    padding: 24px 16px 48px;
  }

  .legal-page__inner {
    padding: 32px 20px 28px;
    border-radius: 16px;
  }

  .legal-page__title {
    font-size: 24px;
    line-height: 30px;
  }

  .legal-page__updated {
    font-size: 14px;
    line-height: 20px;
  }

  .legal-page__toc {
    padding: 20px;
    margin-bottom: 32px;
  }

  .legal-page__toc ol {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .legal-page__section {
    margin-bottom: 32px;
  }

  .legal-page__section h2 {
    font-size: 20px;
    line-height: 26px;
  }

  .legal-page__section h3 {
    font-size: 17px;
    line-height: 22px;
    margin-top: 20px;
  }

  .legal-page__section p,
  .legal-page__section li {
    font-size: 15px;
    line-height: 22px;
  }
}

/* ==========================================================================
   SEO-лендинги (/crm-dlya-kafe, /crm-dlya-restorana, /avtomatizaciya-biznesa)
   ========================================================================== */

.seo-page {
  display: flex;
  flex-direction: column;
}

.seo-page__hero {
  position: relative;
  padding: 72px var(--side-padding) 80px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-primary-25) 0%, var(--color-white) 100%);
}

.seo-page__hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.seo-page__hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.seo-page__hero-glow--blue {
  width: 420px;
  height: 420px;
  top: -120px;
  right: 10%;
  background: rgba(80, 182, 251, 0.35);
}

.seo-page__hero-glow--green {
  width: 320px;
  height: 320px;
  bottom: -80px;
  left: 5%;
  background: rgba(107, 183, 0, 0.2);
}

.seo-page__hero-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.seo-page__eyebrow {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-primary-500);
  margin: 0;
}

.seo-page__title {
  font-size: 48px;
  line-height: 56px;
  font-weight: 600;
  color: var(--color-neutral-700);
  margin: 0;
}

.seo-page__lead {
  font-size: 18px;
  line-height: 28px;
  color: var(--color-neutral-600);
  margin: 0;
  max-width: 720px;
}

.seo-page__hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

.seo-page__secondary-link {
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  color: var(--color-primary-500);
  text-decoration: none;
}

.seo-page__secondary-link:hover {
  color: var(--color-primary-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.seo-page__intro,
.seo-page__benefits,
.seo-page__faq,
.seo-page__related {
  padding: 72px var(--side-padding);
}

.seo-page__intro-inner,
.seo-page__benefits-inner,
.seo-page__faq-inner,
.seo-page__related-inner {
  max-width: 820px;
  margin: 0 auto;
}

.seo-page__section-title {
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  color: var(--color-neutral-700);
  margin: 0 0 24px;
}

.seo-page__text {
  font-size: 17px;
  line-height: 28px;
  color: var(--color-neutral-600);
  margin: 0 0 16px;
}

.seo-page__text:last-child {
  margin-bottom: 0;
}

.seo-page__features {
  padding: 72px var(--side-padding);
  background-color: var(--color-neutral-75);
}

.seo-page__features-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.seo-page__features-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin-bottom: 40px;
}

.seo-page__feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.seo-page__feature-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
}

.seo-page__feature-title {
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  color: var(--color-neutral-700);
  margin: 0 0 12px;
}

.seo-page__feature-text {
  font-size: 16px;
  line-height: 24px;
  color: var(--color-neutral-600);
  margin: 0;
}

.seo-page__benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.seo-page__benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 17px;
  line-height: 26px;
  color: var(--color-neutral-600);
}

.seo-page__benefit-list svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-green);
}

.seo-page__faq .faq-list {
  max-width: 820px;
}

.seo-page__cta {
  padding: 80px var(--side-padding);
  background: linear-gradient(135deg, var(--color-dark-blue) 0%, #0a1a8f 100%);
}

.seo-page__cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.seo-page__cta-title {
  font-size: 36px;
  line-height: 44px;
  font-weight: 600;
  color: var(--color-white);
  margin: 0;
}

.seo-page__cta-text {
  font-size: 17px;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.seo-page__cta-btn {
  margin-top: 8px;
}

.seo-page__related {
  background-color: var(--color-neutral-75);
  padding-top: 48px;
  padding-bottom: 48px;
}

.seo-page__related-title {
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-neutral-600);
  margin: 0 0 16px;
}

.seo-page__related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.seo-page__related a {
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;
  color: var(--color-primary-500);
  text-decoration: none;
}

.seo-page__related a:hover {
  color: var(--color-primary-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 1024px) {
  .seo-page__hero {
    padding: 56px var(--side-padding) 64px;
  }

  .seo-page__title {
    font-size: 40px;
    line-height: 48px;
  }

  .seo-page__feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .seo-page__hero,
  .seo-page__intro,
  .seo-page__features,
  .seo-page__benefits,
  .seo-page__faq,
  .seo-page__cta {
    padding-left: 24px;
    padding-right: 24px;
  }

  .seo-page__title {
    font-size: 32px;
    line-height: 40px;
  }

  .seo-page__lead {
    font-size: 16px;
    line-height: 24px;
  }

  .seo-page__section-title,
  .seo-page__cta-title {
    font-size: 28px;
    line-height: 34px;
  }

  .seo-page__feature-card {
    padding: 24px;
  }

  .seo-page__hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .seo-page__hero-actions .btn {
    justify-content: center;
  }
}

/* ==========================================================================
   Подвал сайта
   ========================================================================== */

/* Тёмный подвал в несколько колонок.
   Токены цвета локальны здесь, чтобы не засорять глобальный :root
   (остальная страница на светлой палитре). */
.site-footer {
  --footer-bg:        var(--color-dark-blue);
  --footer-bg-soft:   #0a0f78;
  --footer-text:      rgba(255, 255, 255, 0.78);
  --footer-text-mute: rgba(255, 255, 255, 0.55);
  --footer-link:      #ffffff;
  --footer-link-hover: var(--color-primary-300);
  --footer-divider:   rgba(255, 255, 255, 0.12);

  background:
    radial-gradient(120% 80% at 0% 0%, var(--footer-bg-soft) 0%, transparent 60%),
    radial-gradient(120% 80% at 100% 0%, rgba(40, 145, 215, 0.18) 0%, transparent 60%),
    var(--footer-bg);
  color: var(--footer-text);
  padding: 80px var(--side-padding) 32px;
  margin-top: auto;
}

.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
  min-width: 0;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr);
  gap: 64px;
  align-items: start;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 420px;
  /* Позволяет grid/flex‑родителю сжимать колонку уже max-content детей (иначе
     кнопка с width:max-content раздувает трек и даёт горизонтальный скролл). */
  min-width: 0;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: max-content;
}

.site-footer__logo img {
  height: 40px;
  width: auto;
  display: block;
  /* logo-footer.svg уже для тёмного фона (белый текст и корзина, стрелки #020658).
     Не применять invert к img: иначе стрелки и корпус сливаются в один цвет. */
}

.site-footer__tagline {
  font-size: 16px;
  line-height: 24px;
  color: var(--footer-text);
  margin: 0;
  max-width: 380px;
}

.site-footer__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--footer-divider);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: var(--footer-text);
  width: max-content;
  max-width: 100%;
  margin: 0;
}

.site-footer__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-green);
  box-shadow: 0 0 0 4px rgba(107, 183, 0, 0.18);
  flex-shrink: 0;
}

.site-footer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background-color: var(--color-primary-400);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 4px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.site-footer__cta:hover {
  background-color: var(--color-primary-500);
  transform: translateY(-1px);
}

.site-footer__cta svg {
  display: block;
  flex-shrink: 0;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.site-footer__col-title {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--footer-text-mute);
  margin: 0 0 18px;
}

.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__col a {
  color: var(--footer-link);
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-footer__col a:hover {
  color: var(--footer-link-hover);
}

.site-footer__contacts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-footer__contact-label {
  font-size: 12px;
  line-height: 16px;
  color: var(--footer-text-mute);
  font-weight: 500;
}

.site-footer__contacts a {
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: var(--footer-link);
  word-break: break-all;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding-top: 28px;
  border-top: 1px solid var(--footer-divider);
}

.site-footer__copy,
.site-footer__made {
  font-size: 13px;
  line-height: 18px;
  color: var(--footer-text-mute);
  margin: 0;
}

.site-footer__legal {
  display: flex;
  align-items: center;
  gap: 8px 24px;
  flex-wrap: wrap;
}

.site-footer__legal a {
  font-size: 13px;
  line-height: 18px;
  color: var(--footer-text);
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-footer__legal a:hover {
  color: var(--footer-link-hover);
}

/* ==========================================================================
   Адаптивная вёрстка
   ========================================================================== */

@media (max-width: 1440px) {
  :root {
    --side-padding: 64px;
  }

  .hero__inner,
  .section-about,
  .section-integration {
    gap: 40px;
  }

  .for-whom__content {
    padding-left: 32px;
  }
}

@media (max-width: 1200px) {
  /* Двухколоночный about: узкая колонка — уменьшаем смещение нижней карточки */
  .about__image--bottom {
    left: 22%;
    top: 26%;
    width: 76%;
  }

  .hero__title {
    font-size: 38px;
    line-height: 46px;
  }

  .hero__subtitle,
  .section-lead {
    font-size: 18px;
    line-height: 26px;
  }

  .section-title {
    font-size: 32px;
  }

  .for-whom {
    padding: 56px 40px;
    gap: 32px;
  }

  .contacts__form-wrap {
    padding: 48px 48px;
    gap: 48px;
  }
}

/* Шапка: бургер раньше, чем остальная сетка — даже компактному меню
   нужно ≥1280px (логотип + 5 пунктов + 2 кнопки). Ниже — скрываем desktop-nav. */
@media (max-width: 1280px) {
  :root {
    --site-header-height: 76px;
  }

  .site-header__inner {
    height: 76px;
    justify-content: flex-start;
    gap: 16px;
  }

  .site-header__burger {
    display: inline-flex;
  }

  .site-nav,
  .site-header__actions {
    display: none;
  }

  .mobile-menu {
    display: flex;
  }
}

@media (max-width: 1024px) {
  :root {
    --side-padding: 32px;
  }

  .btn--primary,
  .btn--secondary {
    height: 44px;
    min-width: 0;
    padding: 8px 24px;
  }

  .hero__inner,
  .section-about,
  .section-integration,
  .for-whom {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__inner {
    padding: 80px var(--side-padding) 100px;
  }

  .hero__bg-grid {
    background-size: 44px 44px;
  }

  .hero__bg-glow--blue {
    width: 520px;
    height: 520px;
  }

  .hero__highlights {
    gap: 10px 20px;
  }

  .section-about {
    padding: 100px var(--section-inline-padding) 80px;
    gap: 48px;
  }

  .about__features {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .about__tip {
    left: 0;
    right: 0;
    bottom: -48px;
    margin: 0 auto;
    max-width: 360px;
  }

  .for-whom__content {
    padding-left: 0;
  }

  .hero__images,
  .about__images,
  .integration__diagram,
  .for-whom__images {
    margin: 0 auto;
  }

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

  .section-faq {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 80px var(--side-padding);
  }

  .section-faq__header {
    position: static;
    top: auto;
  }

  .contacts__form-wrap {
    grid-template-columns: 1fr;
    padding: 48px 32px;
    gap: 40px;
  }

  .contacts-form {
    padding: 28px 28px 24px;
  }

  .site-footer {
    padding: 64px var(--side-padding) 32px;
  }

  .site-footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .site-footer__brand {
    max-width: none;
  }

  .site-footer__columns {
    gap: 32px;
  }
}

/* ==========================================================================
   Мобильная вёрстка (≤720px) — макет Figma Mobile (375px)
   ========================================================================== */

@media (max-width: 720px) {
  :root {
    --side-padding: 20px;
  }

  /* --- Шапка --- */
  :root {
    --site-header-height: 56px;
  }

  .site-header__inner {
    height: 56px;
    padding: 16px 20px;
    gap: 12px;
  }

  .site-header__logo img {
    height: 24px;
  }

  /* --- Типографика (общие переопределения) --- */
  .section-title {
    font-size: 22px;
    line-height: 26px;
  }

  .section-lead {
    font-size: 16px;
    line-height: 20px;
  }

  /* --- Кнопки --- */
  .btn--accent,
  .btn--cta-dark {
    width: 100%;
    min-width: 0;
    height: 60px;
    padding: 8px 24px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
    letter-spacing: 0;
  }

  /* --- Первый экран --- */
  .hero__inner {
    padding: 44px 20px;
    gap: 40px;
    grid-template-columns: 1fr;
  }

  .hero__content {
    gap: 48px;
    width: 100%;
  }

  .hero__title {
    font-size: 30px;
    line-height: 36px;
    margin-bottom: 20px;
  }

  .hero__title-accent {
    white-space: normal;
  }

  .hero__subtitle {
    font-size: 18px;
    line-height: 24px;
  }

  .hero__badge {
    padding: 6px 12px;
    font-size: 12px;
    line-height: 16px;
    gap: 8px;
  }

  .hero__badge-dot {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 0 2px rgba(107, 183, 0, 0.25);
  }

  .hero__bg-grid {
    background-size: 36px 36px;
    opacity: 0.5;
  }

  .hero__bg-glow--blue {
    width: 420px;
    height: 420px;
    top: -180px;
    right: -120px;
  }

  .hero__bg-glow--green {
    width: 320px;
    height: 320px;
    left: -140px;
    bottom: -160px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero__secondary {
    height: 48px;
    justify-content: center;
    padding: 0;
  }

  .hero__highlights {
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
    font-size: 13px;
    line-height: 18px;
  }

  .hero__images {
    height: auto;
    max-width: 100%;
    aspect-ratio: 335 / 226;
    justify-self: stretch;
  }

  .hero__images-glow {
    filter: blur(28px);
  }

  .hero__image-desktop {
    width: 99.7%;
    border-width: 1px;
    border-radius: 6px;
    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.35),
      0 0 0 1px rgba(255, 255, 255, 0.04);
  }

  .hero__image-mobile {
    width: 38%;
    top: 14.97%;
    bottom: 0.7%;
    left: auto;
    right: 0;
    transform: translateX(calc(-50% + 50.4%));
    height: auto;
    border-width: 1.5px;
    border-radius: 6px;
  }

  /* --- О продукте --- */
  .section-about {
    padding: 56px 20px 40px;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
  }

  .about__text {
    order: -1;
    gap: 16px;
    width: 100%;
    max-width: none;
  }

  .section-eyebrow {
    padding: 5px 12px;
    font-size: 12px;
    line-height: 14px;
  }

  .about__features {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 8px;
  }

  .about__feature-icon {
    width: 36px;
    height: 36px;
  }

  .about__feature-title {
    font-size: 15px;
    line-height: 20px;
  }

  .about__feature-desc {
    font-size: 14px;
    line-height: 18px;
  }

  .about__images {
    height: 199px;
    padding-bottom: 0;
    width: 100%;
    max-width: 335px;
    margin: 0 auto;
  }

  .about__images-glow {
    display: none;
  }

  .about__tip {
    display: none;
  }

  .about__image {
    border-width: 1.5px;
    border-radius: 6px;
  }

  .about__image--top {
    width: 65%;
    max-width: none;
    aspect-ratio: auto;
    height: 76.6%;
    left: 0;
    top: 0;
  }

  .about__image--bottom {
    width: 75%;
    max-width: none;
    aspect-ratio: auto;
    height: 71.5%;
    left: auto;
    right: 0;
    top: 28.5%;
  }

  .about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* --- Интеграции --- */
  .section-integration {
    padding: 56px 20px 56px;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
  }

  .integration__text {
    gap: 16px;
    width: 100%;
    max-width: none;
  }

  .integration__tags-label {
    margin: 4px 0 -4px;
    font-size: 12px;
    line-height: 14px;
  }

  .integration__tags {
    gap: 6px;
  }

  .integration__tags li {
    padding: 6px 12px;
    font-size: 13px;
    line-height: 16px;
  }

  /* Диаграмма 335×172: все позиции в % от макета, чтобы линии SVG и узлы
     масштабировались одинаково (Chrome на узкой ширине ломал px-вёрстку). */
  .integration__diagram {
    display: block;
    width: min(100%, 335px);
    max-width: 335px;
    min-width: 0;
    aspect-ratio: 335 / 172;
    height: auto;
    margin: 0 auto;
  }

  .integration__ring {
    display: none;
  }

  .integration__hub {
    left: 50%;
    top: 8.14%;
    width: 41.79%;
    height: auto;
    aspect-ratio: 1;
    transform: translateX(-50%);
    border-width: 1.5px;
    gap: 4px;
  }

  .integration__hub-cart {
    width: 50%;
    height: auto;
    aspect-ratio: 1;
    box-shadow:
      0 6px 16px rgba(40, 145, 215, 0.3),
      0 0 0 4px rgba(80, 182, 251, 0.10);
  }

  .integration__hub-label {
    font-size: 11px;
    line-height: 13px;
  }

  .integration__node {
    width: 16.72%;
    height: auto;
    aspect-ratio: 1;
    font-size: 10px;
    padding: 0.35em;
    gap: 0.1em;
    animation: none;
  }

  .integration__node svg {
    width: 3em;
    height: 3em;
    min-width: 26px;
    min-height: 26px;
    max-width: 36px;
    max-height: 36px;
    stroke-width: 1.6;
  }

  .integration__node-label {
    display: block;
    font-size: 0.88em;
    max-width: 94%;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  /* POS и чат-боты — левее/дальше от хаба (не залезать на круг) */
  .integration__node--card {
    left: 3%;
    top: 0;
  }

  .integration__node--message {
    left: 1%;
    top: 68%;
  }

  .integration__node--check {
    left: auto;
    right: 4.18%;
    top: 2.91%;
  }

  .integration__plus {
    right: -10%;
    bottom: -6%;
    width: 38%;
    animation: none;
  }

  .integration__connectors--desktop {
    display: none;
  }

  .integration__connectors--mobile {
    display: block;
    width: 100%;
    height: 100%;
  }

  /* --- Для кого --- */
  .for-whom-wrap {
    padding: 16px 20px 32px;
  }

  .for-whom {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 44px 20px;
    border-radius: 20px;
    align-items: stretch;
  }

  .for-whom__content {
    gap: 32px;
    padding-left: 0;
    width: 100%;
    max-width: 335px;
    margin: 0 auto;
  }

  .for-whom__text {
    gap: 16px;
  }

  .for-whom__text > .section-title {
    font-size: 22px;
    line-height: 26px;
  }

  .for-whom__industries {
    margin-top: 8px;
    gap: 6px;
  }

  .for-whom__industries li {
    padding: 6px 12px;
    font-size: 13px;
    line-height: 16px;
  }

  .for-whom__image {
    cursor: default;
  }

  .for-whom__image:hover {
    transform: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
  }

  .for-whom__images {
    height: auto;
    max-width: 100%;
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 64px;
    gap: 8px;
    width: 100%;
    aspect-ratio: auto;
  }

  .for-whom__image {
    position: static;
    inset: auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 10px;
  }

  /* picture из responsive_image_tag — растягиваем на ячейку сетки */
  .for-whom__image picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  .for-whom__image img {
    position: static;
    inset: auto;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
  }

  .for-whom__image--1 {
    grid-column: 1 / span 1;
    grid-row: 2 / span 1;
    inset: auto;
  }

  .for-whom__image--2 {
    grid-column: 2 / span 3;
    grid-row: 1 / span 2;
    inset: auto;
  }

  .for-whom__image--3 {
    grid-column: 5 / span 2;
    grid-row: 1 / span 1;
    inset: auto;
  }

  .for-whom__image--4 {
    grid-column: 1 / span 4;
    grid-row: 3 / span 1;
    inset: auto;
  }

  .for-whom__image--5 {
    grid-column: 5 / span 2;
    grid-row: 2 / span 2;
    inset: auto;
  }

  /* --- Преимущества --- */
  .section-advantages {
    padding: 56px 20px;
    gap: 28px;
  }

  .advantages__header {
    align-items: flex-start;
    text-align: left;
    gap: 12px;
  }

  .advantages__title {
    font-size: 22px;
    line-height: 26px;
    text-align: left;
  }

  .advantages__subtitle {
    font-size: 15px;
    line-height: 21px;
  }

  .advantages__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .advantage-card {
    padding: 22px 20px;
    gap: 14px;
    min-height: auto;
    border-radius: var(--radius-md);
  }

  .advantage-card__number {
    top: 14px;
    right: 18px;
    font-size: 36px;
  }

  .advantage-card__head {
    gap: 12px;
  }

  .advantage-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 6px 14px rgba(40, 145, 215, 0.22);
  }

  .advantage-card__icon svg {
    width: 26px;
    height: 26px;
  }

  .advantage-card:hover {
    transform: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    border-color: rgba(40, 145, 215, 0.12);
  }

  .advantage-card:hover::after {
    opacity: 0;
  }

  .advantage-card:hover .advantage-card__icon {
    transform: none;
    box-shadow: 0 6px 14px rgba(40, 145, 215, 0.22);
  }

  .advantage-card__title {
    font-size: 17px;
    line-height: 22px;
    padding-right: 40px;
  }

  .advantage-card__text {
    font-size: 15px;
    line-height: 20px;
  }

  .advantages__footer {
    text-align: left;
    font-size: 14px;
    line-height: 20px;
  }

  .advantages__footer-link {
    margin-left: 0;
    display: inline-flex;
  }

  /* --- Вопросы и ответы --- */
  .section-faq {
    padding: 56px 20px;
    gap: 28px;
  }

  .section-faq__header {
    gap: 12px;
  }

  .section-faq__title {
    font-size: 22px;
    line-height: 26px;
    text-align: left;
  }

  .section-faq__subtitle {
    font-size: 15px;
    line-height: 21px;
  }

  .section-faq__cta {
    margin-top: 8px;
    padding: 18px 18px 16px;
    border-radius: var(--radius-md);
  }

  .section-faq__cta-title {
    font-size: 15px;
    line-height: 20px;
  }

  .section-faq__cta-text {
    font-size: 13px;
    line-height: 18px;
  }

  .section-faq__cta-link {
    font-size: 13px;
    line-height: 18px;
  }

  .faq-list {
    gap: 10px;
  }

  .faq-item__summary {
    padding: 18px 20px;
    font-size: 16px;
    line-height: 22px;
    gap: 16px;
  }

  .faq-item[open] .faq-item__summary {
    padding-bottom: 10px;
  }

  .faq-item__chevron {
    width: 28px;
    height: 28px;
  }

  .faq-item__answer {
    padding: 0 20px 20px;
    font-size: 15px;
    line-height: 22px;
  }

  /* --- Контакты --- */
  .section-contacts {
    padding: 44px 12px;
  }

  .contacts {
    border-radius: 16px;
  }

  .contacts__form-wrap {
    grid-template-columns: 1fr;
    padding: 32px 16px;
    gap: 32px;
  }

  .contacts__intro {
    gap: 14px;
    text-align: center;
    align-items: center;
    max-width: none;
  }

  .contacts__eyebrow {
    font-size: 12px;
    line-height: 16px;
    padding: 5px 12px 5px 10px;
  }

  .contacts__intro .section-title {
    font-size: 22px;
    line-height: 28px;
  }

  .contacts__benefits {
    align-self: stretch;
    text-align: left;
    padding-top: 20px;
    margin-top: 6px;
  }

  .contacts__benefits li {
    font-size: 15px;
    line-height: 22px;
  }

  .contacts__trust {
    align-self: stretch;
    text-align: left;
    font-size: 13px;
    line-height: 18px;
    padding: 12px 14px;
  }

  .contacts-form {
    width: 100%;
    gap: 22px;
    padding: 24px 20px 22px;
    border-radius: 16px;
  }

  .contacts-form__title {
    font-size: 18px;
    line-height: 24px;
  }

  .contacts-form__subtitle {
    font-size: 13px;
    line-height: 18px;
  }

  .contacts-form__note {
    font-size: 12px;
    line-height: 16px;
    text-align: center;
  }

  .contacts-form__submit {
    height: 60px;
  }

  /* На узком экране длинные лейблы переносятся в 2 строки —
     даём textarea запас под высоту двухстрочного лейбла. */
  .field__control--textarea {
    padding-top: 44px;
  }

  /* --- Подвал --- */
  .site-footer {
    padding: 56px 20px 28px;
  }

  .site-footer__inner {
    gap: 40px;
  }

  .site-footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .site-footer__logo img {
    height: 32px;
  }

  .site-footer__tagline {
    font-size: 15px;
    line-height: 22px;
  }

  .site-footer__cta {
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-content: center;
    height: auto;
    min-height: 48px;
    padding: 10px 14px;
    white-space: normal;
    flex-wrap: wrap;
    text-align: center;
    row-gap: 4px;
  }

  .site-footer__columns {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }

  .site-footer__col-title {
    margin-bottom: 14px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 24px;
  }

  .site-footer__legal {
    gap: 8px 20px;
  }
}

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

/* ==========================================================================
   Согласие на cookie — нижний баннер + модальное окно
   ========================================================================== */

.cookie-banner {
  position: fixed;
  z-index: 1100;
  inset: auto 16px 16px 16px;
  padding: 0;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow:
    0 -2px 16px rgba(2, 6, 88, 0.04),
    0 24px 60px -20px rgba(2, 6, 88, 0.35);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.cookie-banner--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 24px 32px;
  align-items: center;
  padding: 20px 24px;
  max-width: 1320px;
  margin: 0 auto;
}

.cookie-banner__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cookie-banner__title {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: var(--color-neutral-700);
  margin: 0;
}

.cookie-banner__lead {
  font-size: 14px;
  line-height: 20px;
  color: var(--color-neutral-600);
  margin: 0;
}

.cookie-banner__lead a {
  color: var(--color-primary-500);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__lead a:hover {
  color: var(--color-primary-600);
}

.cookie-banner__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* --- Кнопки (баннер и модалка общие) ---------------------------------- */

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--color-neutral-700);
  transition: background-color 0.15s ease, color 0.15s ease,
              border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.cookie-btn:active {
  transform: translateY(1px);
}

.cookie-btn--primary {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  border-color: var(--color-dark-blue);
}

.cookie-btn--primary:hover {
  background-color: #0a0f78;
}

.cookie-btn--secondary {
  background-color: var(--color-white);
  color: var(--color-neutral-700);
  border-color: var(--color-neutral-400);
}

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

.cookie-btn--ghost {
  background: transparent;
  color: var(--color-neutral-600);
  border-color: transparent;
  padding: 0 12px;
}

.cookie-btn--ghost:hover {
  color: var(--color-dark-blue);
  background-color: var(--color-neutral-75);
}

/* --- Модальное окно ---------------------------------------------------- */

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cookie-modal--open {
  display: flex;
}

.cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(2, 6, 88, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: cookie-modal-fade 0.18s ease;
}

.cookie-modal__panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 32px);
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -20px rgba(2, 6, 88, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cookie-modal-pop 0.2s ease;
}

@keyframes cookie-modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes cookie-modal-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--color-neutral-200);
}

.cookie-modal__title {
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  color: var(--color-neutral-700);
  margin: 0;
}

.cookie-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-neutral-600);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cookie-modal__close:hover {
  background-color: var(--color-neutral-75);
  color: var(--color-neutral-700);
}

.cookie-modal__body {
  padding: 22px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-modal__intro {
  font-size: 14px;
  line-height: 20px;
  color: var(--color-neutral-600);
  margin: 0;
}

.cookie-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-cat {
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  background-color: var(--color-neutral-75);
}

.cookie-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.cookie-cat__title {
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: var(--color-neutral-700);
  margin: 0;
}

.cookie-cat__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.cookie-cat__badge--always {
  background-color: rgba(107, 183, 0, 0.14);
  color: #3f7100;
}

.cookie-cat__desc {
  font-size: 13px;
  line-height: 19px;
  color: var(--color-neutral-600);
  margin: 0;
}

/* --- Переключатели ----------------------------------------------------- */

.cookie-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.cookie-toggle__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cookie-toggle__track {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  background-color: var(--color-neutral-400);
  border-radius: 999px;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.cookie-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background-color: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.cookie-toggle__input:checked + .cookie-toggle__track {
  background-color: var(--color-primary-500);
}

.cookie-toggle__input:checked + .cookie-toggle__track .cookie-toggle__thumb {
  transform: translateX(18px);
}

.cookie-toggle__input:focus-visible + .cookie-toggle__track {
  box-shadow: 0 0 0 3px rgba(40, 145, 215, 0.25);
}

.cookie-toggle__label {
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: var(--color-neutral-600);
}

.cookie-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 28px;
  border-top: 1px solid var(--color-neutral-200);
  background-color: var(--color-neutral-75);
}

.cookie-modal__footer-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 720px) {
  .cookie-banner {
    inset: auto 8px 8px 8px;
  }

  .cookie-banner__inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 18px 16px;
  }

  .cookie-banner__actions {
    justify-content: stretch;
  }

  .cookie-banner__actions .cookie-btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  .cookie-modal {
    padding: 0;
    align-items: flex-end;
  }

  .cookie-modal__panel {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
    animation: cookie-modal-slide-up 0.22s ease;
  }

  @keyframes cookie-modal-slide-up {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .cookie-modal__header,
  .cookie-modal__footer {
    padding: 16px 18px;
  }

  .cookie-modal__body {
    padding: 18px;
  }

  .cookie-modal__footer {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }

  .cookie-modal__footer-right {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }

  .cookie-modal__footer .cookie-btn {
    height: 44px;
    width: 100%;
  }
}

/* ==========================================================================
   Блог — список и статья
   ========================================================================== */

.blog-index {
  position: relative;
  width: 100%;
  padding: 72px var(--section-inline-padding) 96px;
  background: linear-gradient(180deg, var(--color-primary-25) 0%, var(--color-white) 42%);
  overflow: hidden;
}

.blog-index__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blog-index__bg-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  top: -180px;
  right: 8%;
  border-radius: 50%;
  background: rgba(80, 182, 251, 0.22);
  filter: blur(90px);
}

.blog-index__inner {
  position: relative;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.blog-index__header {
  margin-bottom: 40px;
  max-width: 760px;
}

.blog-index__eyebrow {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-primary-500);
  margin: 0 0 12px;
}

.blog-index__title {
  font-size: 40px;
  line-height: 48px;
  font-weight: 600;
  color: var(--color-neutral-700);
  margin: 0 0 16px;
}

.blog-index__lead {
  font-size: 18px;
  line-height: 28px;
  color: var(--color-neutral-600);
  margin: 0;
}

.blog-index__empty {
  font-size: 17px;
  line-height: 26px;
  color: var(--color-neutral-600);
  margin: 0;
  padding: 24px 0;
}

.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.blog-list__item {
  min-width: 0;
}

.blog-list__link {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid rgba(40, 145, 215, 0.12);
  box-shadow: 0 8px 28px rgba(20, 40, 80, 0.05);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-list__link:hover {
  border-color: rgba(40, 145, 215, 0.28);
  box-shadow: 0 12px 32px rgba(20, 40, 80, 0.08);
  transform: translateY(-1px);
}

.blog-list__thumb {
  flex-shrink: 0;
  width: 80px;
  height: 56px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-neutral-75);
}

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

.blog-list__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.blog-list__date {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--color-primary-500);
}

.blog-list__title {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: var(--color-neutral-700);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-list__excerpt {
  font-size: 14px;
  line-height: 20px;
  color: var(--color-neutral-600);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-list__arrow {
  flex-shrink: 0;
  color: var(--color-primary-400);
  transition: color 0.2s ease, transform 0.2s ease;
}

.blog-list__link:hover .blog-list__arrow {
  color: var(--color-primary-600);
  transform: translateX(2px);
}

.blog-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.blog-pagination .pagy {
  --H: 205;
  --S: 72%;
  --L: 48%;
  --B: 0;
  --A: 1;
  --spacing: 0.35rem;
  --padding: 0.7rem;
  --rounding: 999px;
  --border-width: 0;
  --font-size: 0.875rem;
  --font-weight: 600;
  --line-height: 1.4;
  --text: hsl(var(--H) var(--S) calc(var(--L) - (25 * var(--B))) / var(--A));
  --text-hover: hsl(var(--H) var(--S) calc(var(--L) - (30 * var(--B))) / var(--A));
  --text-current: hsl(var(--H) var(--S) calc(100 * (var(--B) + 1)) / var(--A));
  --background: hsl(var(--H) var(--S) calc(var(--L) + (30 * var(--B))) / var(--A));
  --background-hover: hsl(var(--H) var(--S) calc(var(--L) + (20 * var(--B))) / var(--A));
  --background-current: hsl(var(--H) var(--S) var(--L) / var(--A));
  color: var(--text);
  font-size: var(--font-size);
  line-height: var(--line-height);
  font-weight: var(--font-weight);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-pagination .pagy > :not([hidden]) ~ :not([hidden]) {
  margin-inline-start: var(--spacing);
}

.blog-pagination .pagy a:not([role="separator"]) {
  display: block;
  text-decoration: none;
  background-color: var(--background);
  padding: calc(var(--padding) / 3) var(--padding);
  border-radius: var(--rounding);
  color: inherit;
}

.blog-pagination .pagy a[href]:hover {
  background-color: var(--background-hover);
  color: var(--text-hover);
}

.blog-pagination .pagy a:not([href]) {
  cursor: default;
}

.blog-pagination .pagy a[role="link"]:not([aria-current]) {
  opacity: 0.6;
}

.blog-pagination .pagy a[aria-current] {
  background-color: var(--background-current);
  color: var(--text-current);
}

.blog-article {
  position: relative;
  width: 100%;
  padding: 40px var(--section-inline-padding) 80px;
  background: linear-gradient(180deg, var(--color-primary-25) 0%, var(--color-white) 32%);
  overflow: hidden;
}

.blog-article__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blog-article__bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.blog-article__bg-glow--blue {
  width: 520px;
  height: 520px;
  top: -200px;
  right: 6%;
  background: rgba(80, 182, 251, 0.24);
}

.blog-article__bg-glow--green {
  width: 420px;
  height: 420px;
  top: 120px;
  left: -8%;
  background: rgba(155, 224, 62, 0.14);
}

.blog-article__inner {
  position: relative;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.blog-article__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 20px;
}

.blog-article__breadcrumbs {
  flex: 1 1 auto;
  min-width: 0;
}

.blog-article__breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 20px;
}

.blog-article__breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-neutral-500);
}

.blog-article__breadcrumbs-item:not(:last-child)::after {
  content: "/";
  color: var(--color-neutral-400);
}

.blog-article__breadcrumbs-link {
  color: var(--color-primary-500);
  text-decoration: none;
  font-weight: 500;
}

.blog-article__breadcrumbs-link:hover {
  color: var(--color-primary-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-article__sheet {
  width: 100%;
  padding: 36px 44px 32px;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid rgba(40, 145, 215, 0.12);
  box-shadow: var(--shadow-card);
}

.blog-article__header {
  margin-bottom: 24px;
}

.blog-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-neutral-500);
}

.blog-article__date {
  font-weight: 600;
  color: var(--color-primary-500);
}

.blog-article__meta-sep {
  color: var(--color-neutral-400);
}

.blog-article__reading-time,
.blog-article__author {
  color: var(--color-neutral-500);
}

.blog-article__author {
  font-weight: 500;
}

.blog-article__title {
  font-size: 40px;
  line-height: 48px;
  font-weight: 600;
  color: var(--color-neutral-700);
  margin: 0 0 12px;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.blog-article__lead {
  font-size: 19px;
  line-height: 28px;
  color: var(--color-neutral-600);
  margin: 0;
  max-width: 920px;
  text-wrap: pretty;
}

.blog-share {
  display: flex;
  align-items: center;
}

.blog-share--topbar {
  flex: 0 0 auto;
}

.blog-share__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.blog-share__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(40, 145, 215, 0.16);
  background: var(--color-white);
  color: var(--color-neutral-700);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.blog-share__button svg {
  display: block;
  flex-shrink: 0;
}

.blog-share__button-text {
  display: none;
}

.blog-share__button:hover {
  border-color: rgba(40, 145, 215, 0.32);
  background: var(--color-primary-25);
  color: var(--color-primary-600);
}

.blog-share__button--copied {
  border-color: rgba(88, 166, 44, 0.35);
  background: rgba(155, 224, 62, 0.16);
  color: var(--color-neutral-700);
}

.blog-share__button--telegram:hover {
  border-color: rgba(42, 171, 238, 0.35);
  background: rgba(42, 171, 238, 0.1);
  color: #1f8fd4;
}

.blog-share__button--vk:hover {
  border-color: rgba(76, 117, 163, 0.35);
  background: rgba(76, 117, 163, 0.1);
  color: #4c75a3;
}

.blog-article__cover {
  margin: 0 0 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(40, 145, 215, 0.1);
}

.blog-article__cover img {
  display: block;
  width: 100%;
  height: auto;
}

.blog-article__content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-article__toc {
  margin: 0 0 32px;
  padding: 22px 24px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(40, 145, 215, 0.14);
  border-left: 4px solid var(--color-primary-400);
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(155, 224, 62, 0.08) 0%, transparent 55%),
    linear-gradient(135deg, var(--color-primary-25) 0%, var(--color-white) 72%);
}

.blog-article__toc[hidden] {
  display: none;
}

.blog-article__toc-title {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(40, 145, 215, 0.12);
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary-600);
}

.blog-article__toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(var(--toc-rows, 4), auto);
  grid-auto-flow: column;
  gap: 6px 18px;
  counter-reset: toc;
}

.blog-article__toc-item {
  min-width: 0;
  font-size: 15px;
  line-height: 22px;
}

.blog-article__toc-item a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-neutral-700);
  text-decoration: none;
  overflow-wrap: break-word;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.blog-article__toc-item a:hover {
  background: rgba(40, 145, 215, 0.08);
  color: var(--color-primary-600);
}

.blog-article__toc-item a:focus-visible {
  outline: 2px solid var(--color-primary-400);
  outline-offset: 1px;
}

.blog-article__toc-item--level-1 a::before,
.blog-article__toc-item--level-2 a::before {
  content: counter(toc);
  counter-increment: toc;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: -1px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid rgba(40, 145, 215, 0.2);
  color: var(--color-primary-600);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.blog-article__toc-item a:hover::before {
  background: var(--color-primary-400);
  border-color: var(--color-primary-400);
  color: var(--color-white);
}

.blog-article__toc-item--level-3 a {
  padding-left: 28px;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-neutral-600);
}

.blog-article__toc-item--level-3 a::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin: 7px 0 0;
  border-radius: 50%;
  background: var(--color-primary-400);
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.blog-article__toc-item--level-3 a:hover::before {
  opacity: 1;
  background: var(--color-primary-400);
}

.blog-article__body {
  font-size: 18px;
  line-height: 30px;
  color: var(--color-neutral-700);
}

.blog-article__body h2 {
  font-size: 28px;
  line-height: 34px;
  margin: 32px 0 14px;
  scroll-margin-top: var(--scroll-offset-top);
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.blog-article__body h3 {
  font-size: 22px;
  line-height: 28px;
  margin: 28px 0 10px;
  scroll-margin-top: var(--scroll-offset-top);
}

.blog-article__body h1 {
  scroll-margin-top: var(--scroll-offset-top);
}

.blog-article__body p,
.blog-article__body ul,
.blog-article__body ol {
  margin: 0 0 16px;
}

.blog-article__body a {
  color: var(--color-primary-500);
}

.blog-article__body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.blog-article__body blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--color-primary-400);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--color-primary-25);
  color: var(--color-neutral-600);
}

/* Blog article prose — cards, callouts, steps (Action Text content) */
.blog-article__body .blog-prose__section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid rgba(40, 145, 215, 0.12);
}

.blog-article__body .blog-prose__section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.blog-article__body .blog-prose__section--final {
  margin-bottom: 8px;
}

.blog-article__body h2 {
  position: relative;
  padding-top: 4px;
}

.blog-article__body .blog-prose__section > h2 {
  margin-top: 0;
}

.blog-article__body .blog-prose__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 0;
}

.blog-article__body .blog-prose__card {
  margin: 0;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--color-neutral-75);
  border: 1px solid rgba(40, 145, 215, 0.1);
}

.blog-article__body .blog-prose__card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  color: var(--color-neutral-700);
}

.blog-article__body .blog-prose__card p {
  margin: 0;
  font-size: 16px;
  line-height: 26px;
  color: var(--color-neutral-600);
}

.blog-article__body .blog-prose__card p + p {
  margin-top: 10px;
}

.blog-article__body .blog-prose__panel-list {
  margin: 20px 0;
  padding: 18px 22px 18px 42px;
  border-radius: var(--radius-md);
  background: var(--color-neutral-75);
  border: 1px solid rgba(40, 145, 215, 0.08);
  list-style: none;
}

.blog-article__body .blog-prose__panel-list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 0;
  font-size: 17px;
  line-height: 26px;
  color: var(--color-neutral-600);
}

.blog-article__body .blog-prose__panel-list li:last-child {
  margin-bottom: 0;
}

.blog-article__body .blog-prose__panel-list li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary-400);
}

.blog-article__body .blog-prose__callout {
  margin: 28px 0 0;
  padding: 20px 24px;
  border: 1px solid rgba(40, 145, 215, 0.16);
  border-left: 4px solid var(--color-primary-400);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background:
    radial-gradient(90% 90% at 100% 0%, rgba(155, 224, 62, 0.1) 0%, transparent 65%),
    linear-gradient(135deg, var(--color-primary-25) 0%, var(--color-white) 100%);
}

.blog-article__body .blog-prose__callout--accent {
  border-left-color: var(--color-green);
  background:
    radial-gradient(90% 90% at 100% 0%, rgba(40, 145, 215, 0.08) 0%, transparent 65%),
    linear-gradient(135deg, rgba(107, 183, 0, 0.08) 0%, var(--color-white) 100%);
}

.blog-article__body .blog-prose__callout p {
  margin: 0;
  font-size: 17px;
  line-height: 26px;
  color: var(--color-neutral-600);
}

.blog-article__body .blog-prose__callout p + p {
  margin-top: 10px;
}

.blog-article__body .blog-prose__callout a {
  font-weight: 600;
}

.blog-article__body .blog-prose__flow {
  margin-top: 12px !important;
  font-size: 15px !important;
  line-height: 24px !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-primary-600) !important;
}

.blog-article__body .blog-prose__checklist {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: checklist;
}

.blog-article__body .blog-prose__checklist li {
  counter-increment: checklist;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid rgba(40, 145, 215, 0.1);
  font-size: 16px;
  line-height: 26px;
  color: var(--color-neutral-600);
}

.blog-article__body .blog-prose__checklist li::before {
  content: counter(checklist);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--color-primary-25);
  color: var(--color-primary-600);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.blog-article__body .blog-prose__checklist-text {
  min-width: 0;
  overflow-wrap: break-word;
}

.blog-article__body .blog-prose__checklist-text strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  color: var(--color-neutral-700);
  overflow-wrap: break-word;
}

.blog-article__body .blog-prose__checklist-text p {
  margin: 0;
}

.blog-article__body .blog-prose__steps {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: step;
}

.blog-article__body .blog-prose__steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--color-neutral-75);
  border: 1px solid rgba(40, 145, 215, 0.08);
  font-size: 16px;
  line-height: 26px;
  color: var(--color-neutral-600);
  overflow-wrap: break-word;
}

.blog-article__body .blog-prose__steps li::before {
  content: counter(step);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-400) 0%, var(--color-primary-600) 100%);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.blog-article__body .blog-prose__step-text {
  flex: 1;
  min-width: 0;
}

.blog-article__body .blog-prose__steps li strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  color: var(--color-neutral-700);
}

/* Старые статьи без .blog-prose__step-text */
.blog-article__body .blog-prose__steps li:not(:has(.blog-prose__step-text)) {
  display: block;
  overflow: hidden;
}

.blog-article__body .blog-prose__steps li:not(:has(.blog-prose__step-text))::before {
  float: left;
  margin-right: 16px;
}

.blog-article__footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(40, 145, 215, 0.1);
}

.blog-article__back {
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: var(--color-primary-500);
  text-decoration: none;
}

.blog-article__back:hover {
  color: var(--color-primary-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-article__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(155, 224, 62, 0.14) 0%, transparent 70%),
    linear-gradient(135deg, var(--color-primary-25) 0%, var(--color-white) 100%);
  border: 1px solid rgba(40, 145, 215, 0.16);
}

.blog-article__cta-title {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  color: var(--color-neutral-700);
}

.blog-article__cta-text {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  color: var(--color-neutral-600);
}

.blog-article__cta-button {
  flex-shrink: 0;
}

.blog-article__related {
  margin-top: 40px;
}

.blog-article__related-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 20px;
}

.blog-article__related-title {
  margin: 0;
  font-size: 26px;
  line-height: 32px;
  font-weight: 600;
  color: var(--color-neutral-700);
}

.blog-article__related-link {
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: var(--color-primary-500);
  text-decoration: none;
}

.blog-article__related-link:hover {
  color: var(--color-primary-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==========================================================================
   Админка блога
   ========================================================================== */

.admin-layout {
  min-height: 100vh;
  background: var(--color-neutral-75);
}

.admin-layout__header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-neutral-200);
}

.admin-layout__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.admin-layout__brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-neutral-700);
  text-decoration: none;
}

.admin-layout__nav {
  display: flex;
  gap: 20px;
}

.admin-layout__nav a {
  font-size: 15px;
  color: var(--color-primary-500);
  text-decoration: none;
}

.admin-layout__main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.admin-flash {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.admin-flash--notice {
  background: rgba(107, 183, 0, 0.12);
  color: #3f6900;
}

.admin-flash--alert {
  background: rgba(220, 53, 69, 0.1);
  color: #842029;
}

.admin-page__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.admin-page__eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary-500);
  margin: 0 0 8px;
}

.admin-page__title {
  font-size: 32px;
  line-height: 38px;
  margin: 0;
  color: var(--color-neutral-700);
}

.admin-page__header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-table-wrap {
  overflow-x: auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(20, 40, 80, 0.05);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-neutral-200);
  vertical-align: top;
}

.admin-table th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-neutral-600);
}

.admin-table__slug {
  display: block;
  font-size: 13px;
  color: var(--color-neutral-600);
  margin-top: 4px;
}

.admin-table__link {
  color: var(--color-neutral-700);
  font-weight: 500;
  text-decoration: none;
}

.admin-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-table__actions a {
  color: var(--color-primary-500);
  text-decoration: none;
  font-size: 14px;
}

.admin-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.admin-badge--draft {
  background: rgba(75, 75, 75, 0.12);
  color: var(--color-neutral-600);
}

.admin-badge--published {
  background: rgba(107, 183, 0, 0.15);
  color: #3f6900;
}

.admin-empty {
  color: var(--color-neutral-600);
}

.admin-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
}

.admin-meta dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-neutral-600);
  margin-bottom: 4px;
}

.admin-meta dd {
  margin: 0;
  color: var(--color-neutral-700);
}

.admin-preview {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.admin-preview h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.admin-page__footer {
  display: flex;
  gap: 20px;
  align-items: center;
}

.admin-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-primary-500);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.admin-link--danger {
  color: #c0392b;
}

.admin-form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.admin-form__errors {
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

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

.admin-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-form__field--wide {
  grid-column: 1 / -1;
}

.admin-form__field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-neutral-700);
}

.admin-form__field input,
.admin-form__field select,
.admin-form__field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  font: inherit;
}

.admin-form__hint {
  font-size: 13px;
  line-height: 18px;
  color: var(--color-neutral-600);
  margin: 0;
}

.admin-form__cover-preview img {
  display: block;
  max-width: 240px;
  border-radius: var(--radius-md);
  margin-top: 8px;
}

.admin-form__actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.admin-rich-text {
  display: grid;
  gap: 10px;
}

.admin-rich-text__tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-md);
  background: var(--color-surface-muted, #f4f4f5);
  width: fit-content;
}

.admin-rich-text__tab {
  appearance: none;
  border: 0;
  border-radius: calc(var(--radius-md) - 2px);
  background: transparent;
  color: var(--color-text-muted, #52525b);
  font: inherit;
  font-size: 14px;
  line-height: 1;
  padding: 10px 14px;
  cursor: pointer;
}

.admin-rich-text__tab--active {
  background: #fff;
  color: var(--color-text, #18181b);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.admin-rich-text__hint {
  margin: 0;
}

.admin-rich-text__source {
  width: 100%;
  min-height: 420px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.5;
  tab-size: 2;
  resize: vertical;
  padding: 14px 16px;
  border: 1px solid var(--color-border, #d4d4d8);
  border-radius: var(--radius-md);
  background: #fafafa;
  color: var(--color-text, #18181b);
}

.admin-rich-text__source:focus {
  outline: 2px solid var(--color-primary, #2563eb);
  outline-offset: 1px;
}

.admin-rich-text trix-editor {
  min-height: 320px;
}

.admin-rich-text__preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-rich-text__preview-note {
  margin: 0;
  flex: 1 1 240px;
}

.admin-rich-text__preview-refresh {
  appearance: none;
  border: 1px solid var(--color-border, #d4d4d8);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text, #18181b);
  font: inherit;
  font-size: 14px;
  line-height: 1;
  padding: 10px 14px;
  cursor: pointer;
}

.admin-rich-text__preview-refresh:hover {
  border-color: var(--color-primary, #2563eb);
  color: var(--color-primary, #2563eb);
}

.admin-rich-text__preview-sheet {
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid rgba(40, 145, 215, 0.12);
  box-shadow: var(--shadow-card);
}

.admin-rich-text__preview-title {
  font-size: 32px;
  line-height: 40px;
}

.admin-rich-text__preview-lead {
  margin-top: 0;
}

@media (max-width: 1024px) {
  .blog-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .blog-index,
  .blog-article {
    padding: 48px 24px 72px;
  }

  .blog-article__sheet {
    padding: 24px 20px 20px;
  }

  .blog-article__title {
    font-size: clamp(21px, 6.4vw, 26px);
    line-height: 1.32;
  }

  .blog-article__lead {
    font-size: 16px;
    line-height: 24px;
  }

  .blog-article__body {
    font-size: 16px;
    line-height: 26px;
  }

  .blog-article__body h2 {
    font-size: 22px;
    line-height: 28px;
    margin: 28px 0 12px;
    text-wrap: balance;
  }

  .blog-article__body h3 {
    font-size: 19px;
    line-height: 26px;
    margin: 24px 0 8px;
  }

  .blog-article__body .blog-prose__card h3 {
    font-size: 16px;
    line-height: 22px;
  }

  .blog-article__body .blog-prose__card p {
    font-size: 15px;
    line-height: 24px;
  }

  .blog-article__body .blog-prose__panel-list li {
    font-size: 15px;
    line-height: 24px;
  }

  .blog-article__body .blog-prose__callout p {
    font-size: 15px;
    line-height: 24px;
  }

  .blog-article__body .blog-prose__flow {
    font-size: 14px !important;
    line-height: 22px !important;
  }

  .blog-article__body .blog-prose__checklist li {
    font-size: 15px;
    line-height: 24px;
    padding: 12px 14px;
    gap: 12px;
  }

  .blog-article__body .blog-prose__steps li {
    font-size: 15px;
    line-height: 24px;
    padding: 14px 16px;
    gap: 12px;
  }

  .blog-article__body .blog-prose__steps li::before {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .blog-article__body .blog-prose__section {
    margin-top: 36px;
    padding-top: 36px;
  }

  .blog-article__body .blog-prose__cards {
    grid-template-columns: 1fr;
  }

  .blog-article__body .blog-prose__callout {
    padding: 16px 18px;
  }

  .blog-article__body .blog-prose__checklist li::before {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .blog-article__toc {
    margin-bottom: 24px;
    padding: 16px 18px 14px;
  }

  .blog-article__toc-title {
    margin-bottom: 12px;
    padding-bottom: 10px;
    font-size: 13px;
    line-height: 16px;
  }

  .blog-article__toc-list {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
    gap: 4px;
  }

  .blog-article__toc-item {
    font-size: 14px;
    line-height: 20px;
  }

  .blog-article__toc-item a {
    padding: 8px 10px;
    gap: 8px;
  }

  .blog-article__toc-item--level-1 a::before,
  .blog-article__toc-item--level-2 a::before {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .blog-article__toc-item--level-3 a {
    padding-left: 22px;
    font-size: 13px;
    line-height: 19px;
  }

  .blog-article__topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-share__actions {
    justify-content: flex-start;
  }

  .blog-article__cta {
    padding: 18px 16px;
  }

  .blog-article__cta-title {
    font-size: 20px;
    line-height: 26px;
  }

  .blog-article__cta-button {
    width: 100%;
    justify-content: center;
  }

  .blog-index__title {
    font-size: 32px;
    line-height: 40px;
  }

  .blog-list__link {
    padding: 14px 16px;
    gap: 12px;
  }

  .blog-list__thumb {
    width: 72px;
    height: 52px;
  }

  .admin-form__grid {
    grid-template-columns: 1fr;
  }

  .admin-page__header {
    flex-direction: column;
  }
}

/* ==========================================================================
   Доступность: уважение к настройке «уменьшить анимацию»
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
