/* ===== Fonts (local) ===== */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../font/Manrope-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../font/Manrope-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../font/Manrope-Semibold.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../font/Manrope-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../font/Manrope-ExtraBold.woff2') format('woff2');
}

/* ===== Variables ===== */
/* Тёмная тема (по умолчанию) */
:root {
  --color-bg: #0a0a0f;
  --color-bg-elevated: #12121a;
  --color-bg-card: #16161f;
  --color-surface: #1c1c28;
  --color-text: #e8e8ed;
  --color-text-muted: #9898a6;
  --color-accent: #AD8AFF;
  --color-accent-hover: #c4a8ff;
  --color-accent-muted: rgba(173, 138, 255, 0.15);
  --color-border: rgba(255, 255, 255, 0.08);
  --header-bg: rgba(10, 10, 15, 0.85);
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --nav-panel-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
  --hero-gradient: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(173, 138, 255, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(173, 138, 255, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(173, 138, 255, 0.06), transparent);
  --hero-grid: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  --logo-filter: brightness(0) invert(1);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.25s ease;
  --container: min(100% - 2rem, 1200px);
  --header-height: 72px;
}

/* Светлая тема: адаптация к теме браузера (когда пользователь не выбрал тему) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg: #f5f5f8;
    --color-bg-elevated: #ffffff;
    --color-bg-card: #fafafc;
    --color-surface: #eeeef2;
    --color-text: #1a1a22;
    --color-text-muted: #5c5c6b;
    --color-accent: #7c5dd4;
    --color-accent-hover: #6b4bc4;
    --color-accent-muted: rgba(124, 93, 212, 0.12);
    --color-border: rgba(0, 0, 0, 0.08);
    --header-bg: rgba(255, 255, 255, 0.9);
    --overlay-bg: rgba(0, 0, 0, 0.25);
    --nav-panel-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    --hero-gradient: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 93, 212, 0.12), transparent),
      radial-gradient(ellipse 60% 40% at 100% 50%, rgba(124, 93, 212, 0.08), transparent),
      radial-gradient(ellipse 60% 40% at 0% 80%, rgba(124, 93, 212, 0.06), transparent);
    --hero-grid: linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    --logo-filter: none;
  }
}

/* Светлая тема: явный выбор пользователя */
[data-theme="light"] {
  --color-bg: #f5f5f8;
  --color-bg-elevated: #ffffff;
  --color-bg-card: #fafafc;
  --color-surface: #eeeef2;
  --color-text: #1a1a22;
  --color-text-muted: #5c5c6b;
  --color-accent: #7c5dd4;
  --color-accent-hover: #6b4bc4;
  --color-accent-muted: rgba(124, 93, 212, 0.12);
  --color-border: rgba(0, 0, 0, 0.08);
  --header-bg: rgba(255, 255, 255, 0.9);
  --overlay-bg: rgba(0, 0, 0, 0.25);
  --nav-panel-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  --hero-gradient: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 93, 212, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(124, 93, 212, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(124, 93, 212, 0.06), transparent);
  --hero-grid: linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  --logo-filter: none;
}

/* Тёмная тема: явный выбор пользователя */
[data-theme="dark"] {
  --color-bg: #0a0a0f;
  --color-bg-elevated: #12121a;
  --color-bg-card: #16161f;
  --color-surface: #1c1c28;
  --color-text: #e8e8ed;
  --color-text-muted: #9898a6;
  --color-accent: #AD8AFF;
  --color-accent-hover: #c4a8ff;
  --color-accent-muted: rgba(173, 138, 255, 0.15);
  --color-border: rgba(255, 255, 255, 0.08);
  --header-bg: rgba(10, 10, 15, 0.85);
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --nav-panel-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
  --hero-gradient: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(173, 138, 255, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(173, 138, 255, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(173, 138, 255, 0.06), transparent);
  --hero-grid: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  --logo-filter: brightness(0) invert(1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

main {
  flex: 1;
}

/* Skip link: скрыт визуально, виден при фокусе (Tab) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0.5rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-bg);
  background: var(--color-accent);
  border-radius: var(--radius-md);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0.5rem;
  outline: 2px solid var(--color-accent-hover);
  outline-offset: 2px;
}

/* На страницах продуктов — отступ под хедер и вокруг карточки */
body.page-product main {
  padding-top: var(--header-height);
  padding-bottom: 1rem;
}

body.page-product .page--card-bg {
  margin-block: 0.75rem;
}

body.page-product .page--card-bg.section {
  padding-block: 1.5rem;
}

@media (min-width: 768px) {
  body.page-product .page--card-bg.section {
    padding-block: 2rem;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

ul {
  list-style: none;
}

/* ===== Layout ===== */
.container {
  width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

.section {
  padding-block: 4rem;
}

@media (min-width: 768px) {
  .section {
    padding-block: 5rem;
  }
}

@media (min-width: 1024px) {
  .section {
    padding-block: 6rem;
  }
}

.section--dark {
  background: var(--color-bg-elevated);
}

.section--alt {
  background: var(--color-bg-card);
}

/* Секции и карточки всегда видимы (анимация по скроллу отключена) */

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.section__title--light {
  color: var(--color-text);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition), border-color var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 28px;
  width: auto;
  filter: var(--logo-filter);
}

.burger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  transition: opacity var(--transition);
}

.burger:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 767px) {
  .burger {
    margin-left: auto;
  }
}

/* Переключатель темы */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: 0.5rem;
  flex-shrink: 0;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-text);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.theme-toggle:hover {
  color: var(--color-accent);
  background: var(--color-accent-muted);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
}

/* В тёмной теме показываем солнце (переключить на светлую) */
.theme-toggle .theme-toggle__icon--sun {
  display: block;
}

.theme-toggle .theme-toggle__icon--moon {
  display: none;
}

/* В светлой теме показываем луну (переключить на тёмную) */
[data-theme="light"] .theme-toggle .theme-toggle__icon--sun {
  display: none;
}

[data-theme="light"] .theme-toggle .theme-toggle__icon--moon {
  display: block;
}

/* Переключатель языка */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.lang-switcher__link {
  color: var(--color-text);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.lang-switcher__link:hover {
  color: var(--color-accent);
  background: var(--color-accent-muted);
}

.lang-switcher__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.lang-switcher__link--current {
  color: var(--color-text-muted);
  cursor: default;
  pointer-events: none;
}

.lang-switcher__sep {
  color: var(--color-text-muted);
  user-select: none;
}

@media (min-width: 768px) {
  .burger {
    display: none;
  }
}

.nav__list {
  display: none;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .nav__list {
    display: flex;
  }
}

.nav__link {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9375rem;
}

.nav__link:hover {
  color: var(--color-accent);
}

/* Mobile menu */
@media (max-width: 767px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    background: var(--color-bg-elevated);
    padding: 2rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav__list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 1rem;
  }

  .nav__link {
    display: block;
    padding: 1rem;
    font-size: 1.125rem;
    border-radius: var(--radius-md);
  }
}

.header__overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--overlay-bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

@media (max-width: 767px) {
  .header__overlay.is-visible {
    display: block;
  }
}

/* Мобильная панель меню (вне шапки — всегда поверх контента) */
.nav-panel {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1002;
  pointer-events: none;
}

.nav-panel.is-open {
  display: block;
  pointer-events: auto; /* клик по затемнённой области закрывает меню */
}

.nav-panel.is-open .nav-panel__nav {
  transform: translateX(0);
}

.nav-panel__nav {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 100vw - 2rem);
  padding-top: var(--header-height);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 2rem;
  background: var(--color-bg-elevated);
  box-shadow: var(--nav-panel-shadow);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

/* Плавное появление пунктов меню при открытии */
.nav-panel.is-open .nav-panel__link {
  animation: nav-panel-link-in 0.25s ease both;
}

.nav-panel.is-open .nav-panel__list li:nth-child(1) .nav-panel__link { animation-delay: 0.1s; }
.nav-panel.is-open .nav-panel__list li:nth-child(2) .nav-panel__link { animation-delay: 0.14s; }
.nav-panel.is-open .nav-panel__list li:nth-child(3) .nav-panel__link { animation-delay: 0.18s; }
.nav-panel.is-open .nav-panel__list li:nth-child(4) .nav-panel__link { animation-delay: 0.22s; }
.nav-panel.is-open .nav-panel__list li:nth-child(5) .nav-panel__link { animation-delay: 0.26s; }
.nav-panel.is-open .nav-panel__list li:nth-child(6) .nav-panel__link { animation-delay: 0.3s; }

@keyframes nav-panel-link-in {
  from {
    opacity: 0;
    transform: translateX(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nav-panel__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-panel__link {
  display: block;
  padding: 1rem 1rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: color var(--transition), background var(--transition);
}

.nav-panel__link:hover {
  color: var(--color-accent);
  background: var(--color-accent-muted);
}

@media (min-width: 768px) {
  .nav-panel {
    display: none !important;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-height);
  padding-bottom: 3rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image: var(--hero-grid);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.hero__title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
}

.hero__title-accent {
  color: var(--color-accent);
  display: inline-block;
}

.hero__text {
  max-width: 540px;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.3s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__scroll-icon {
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-text-muted);
  border-radius: 12px;
  position: relative;
}

.hero__scroll-icon::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}

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

@keyframes scrollDot {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent-hover);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-bg);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ===== About ===== */
.about__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
  }

  .about__media {
    order: 0;
  }

  .about__content {
    order: 1;
  }
}

.about__image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}

.about__image-wrap img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.about__lead {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
}

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

.about__text + .about__text {
  margin-top: 1rem;
}

/* ===== Mission ===== */
.mission__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .mission__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 4rem;
  }

  /* Левая колонка: заголовок и текст в одном блоке */
  .mission__column {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Правая колонка: картинка */
  .mission__visual {
    grid-column: 2;
  }
}

.mission__content {
  display: grid;
  gap: 1.5rem;
}

.mission__text {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 65ch;
}

.mission__image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}

.mission__image-wrap img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

/* ===== Products ===== */
.products .container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.product-card {
  display: grid;
  gap: 2rem;
  padding: 2rem;
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

@media (min-width: 1024px) {
  .product-card {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 3rem;
    padding: 3rem;
  }

  /* Первая строка: иконка и лейбл на всю ширину */
  .product-card__top {
    grid-column: 1 / -1;
  }

  /* Вторая строка: текст слева, картинка справа */
  .product-card__body {
    grid-column: 1;
  }

  .product-card__visual {
    grid-column: 2;
  }

  /* Третья строка: кнопка в левой колонке */
  .product-card__action {
    grid-column: 1;
    grid-row: 3;
  }
}

/* Акцентные цвета продуктов */
.product-card--dtalks .product-card__badge {
  color: #79BEFE;
  background: rgba(121, 190, 254, 0.18);
}
.product-card--dtalks .product-card__features li::before {
  background: #79BEFE;
}
.product-card--dtalks .product-card__action {
  background: #79BEFE;
  border-color: #79BEFE;
  color: #0a0a0f;
}
.product-card--dtalks .product-card__action:hover {
  background: #8fc9fe;
  border-color: #8fc9fe;
  color: #0a0a0f;
}
.product-card--dtalks .mockup__window {
  border-top: 3px solid #79BEFE;
}

.product-card--dartboard .product-card__badge {
  color: #62FFF9;
  background: rgba(98, 255, 249, 0.18);
}
.product-card--dartboard .product-card__features li::before {
  background: #62FFF9;
}
.product-card--dartboard .product-card__action {
  background: #62FFF9;
  border-color: #62FFF9;
  color: #0a0a0f;
}
.product-card--dartboard .product-card__action:hover {
  background: #85fff9;
  border-color: #85fff9;
  color: #0a0a0f;
}
.product-card--dartboard .mockup__window {
  border-top: 3px solid #62FFF9;
}

.product-card--multirem .product-card__badge {
  color: #FF8A0D;
  background: rgba(255, 138, 13, 0.18);
}
.product-card--multirem .product-card__features li::before {
  background: #FF8A0D;
}
.product-card--multirem .product-card__action {
  background: #FF8A0D;
  border-color: #FF8A0D;
  color: #0a0a0f;
}
.product-card--multirem .product-card__action:hover {
  background: #ff9b2e;
  border-color: #ff9b2e;
  color: #0a0a0f;
}
.product-card--multirem .mockup__window {
  border-top: 3px solid #FF8A0D;
}

.product-card__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product-card__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
}

.product-card__badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-accent);
  background: var(--color-accent-muted);
  border-radius: var(--radius-sm);
  width: fit-content;
}

.product-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1rem 0 0.75rem;
}

.product-card__text {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.product-card__features {
  margin-bottom: 1.5rem;
}

.product-card__features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}

.product-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

.product-card__visual {
  display: flex;
  justify-content: flex-start; /* мобильные и планшеты: влево по колонке */
  align-items: center;
}

@media (min-width: 1024px) {
  .product-card__visual {
    justify-content: center; /* десктоп: по центру колонки */
  }
}

.product-card__mockup {
  width: 100%;
  max-width: 360px;
}

.mockup__window {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  padding: 1rem;
}

.mockup__window--screenshot {
  padding: 0;
}

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

.mockup__window > span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.mockup__content {
  display: flex;
  gap: 0.5rem;
  min-height: 200px;
}

.mockup__sidebar {
  width: 80px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
}

.mockup__chat {
  flex: 1;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
}

.mockup__chat::before,
.mockup__chat::after {
  content: '';
  height: 12px;
  background: var(--color-border);
  border-radius: 4px;
}

.mockup__chat::after {
  height: 24px;
  width: 70%;
  align-self: flex-end;
}

/* Строки чата в макете DTalks */
.mockup__chat-lines {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 0;
}
.mockup__chat-line {
  height: 10px;
  background: var(--color-border);
  border-radius: 4px;
  width: 85%;
}
.mockup__chat-line--own {
  width: 70%;
  align-self: flex-end;
  opacity: 0.8;
}

/* Колонки канбана с заголовками и карточками */
.mockup__column-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}
.mockup__column-cards {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.mockup__column-card {
  height: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.25rem 0.4rem;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Таблица CRM с подписями */
.mockup__table-head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}
.mockup__table-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.mockup__table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  height: 24px;
  align-items: center;
}
.mockup__table-row span {
  height: 8px;
  background: var(--color-bg);
  border-radius: 4px;
  opacity: 0.9;
}
.mockup__table-row span:nth-child(2) { width: 90%; }
.mockup__table-row span:nth-child(3) { width: 80%; }

/* Блок платформ на странице продукта */
.page-detail__platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1.5rem 0;
}
.page-detail__platforms span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}
.page-detail__platforms .platform-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.platform-tag {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}

/* Канбан-макет (Dartboard) */
.mockup__columns {
  display: flex;
  gap: 0.5rem;
  min-height: 180px;
}

.mockup__window--kanban .mockup__column {
  flex: 1;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
}

.mockup__window--kanban .mockup__column:not(:has(.mockup__column-title))::before {
  content: '';
  display: block;
  height: 10px;
  background: var(--color-border);
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.mockup__window--kanban .mockup__column:not(:has(.mockup__column-title)):nth-child(2)::after {
  content: '';
  display: block;
  height: 24px;
  width: 100%;
  background: var(--color-border);
  border-radius: 4px;
  margin-top: 0.5rem;
  opacity: 0.7;
}

/* CRM-макет (Multirem) */
.mockup__window--crm .mockup__table {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mockup__row {
  height: 12px;
  background: var(--color-bg);
  border-radius: 4px;
}

.mockup__row--head {
  height: 10px;
  background: var(--color-border);
  opacity: 0.8;
}

.mockup__row:nth-child(2) { width: 100%; }
.mockup__row:nth-child(3) { width: 95%; }
.mockup__row:nth-child(4) { width: 88%; }

/* ===== Why ===== */
.why__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .why__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.why-card {
  padding: 1.75rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition), transform var(--transition);
}

.why-card:hover {
  border-color: rgba(173, 138, 255, 0.3);
  transform: translateY(-2px);
}

.why-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.why-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.why-card__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* ===== CTA ===== */
.cta {
  position: relative;
  padding-block: 5rem;
}

.cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.cta__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, var(--color-accent-muted), transparent);
  border-radius: var(--radius-xl);
  pointer-events: none;
}

.cta__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta__text {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 40ch;
  margin-inline: auto;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ===== Footer ===== */
.footer {
  padding-block: 1.25rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.footer__nav a:hover {
  color: var(--color-accent);
}

.footer__legal {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer__legal a {
  color: var(--color-text-muted);
}

.footer__legal a:hover {
  color: var(--color-accent);
}

.footer__copy {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 1.25rem;
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner--hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner__text {
  font-size: 0.9375rem;
  color: var(--color-text);
  margin-bottom: 1rem;
  max-width: 56rem;
}

.cookie-banner__link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__link:hover {
  color: var(--color-accent-hover);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cookie-banner__btn {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-family: var(--font);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.cookie-banner__btn--ok {
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
}

.cookie-banner__btn--ok:hover {
  background: var(--color-accent-hover);
  color: var(--color-bg);
}

@media (min-width: 480px) {
  .cookie-banner {
    padding: 1.25rem 1.5rem;
  }
  .cookie-banner__text {
    margin-bottom: 1rem;
  }
}

/* ===== 404 page ===== */
.error-page {
  padding-top: calc(var(--header-height) + 4rem);
  text-align: center;
}

.error-page .page__title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 0.5rem;
}

.error-page .error-page__text {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* ===== Breadcrumbs ===== */
.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  list-style: none;
}

.breadcrumb__item:not(:last-child)::after {
  content: '›';
  margin-left: 0.5rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}

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

.breadcrumb__link:hover {
  color: var(--color-accent);
}

.breadcrumb__item[aria-current] {
  color: var(--color-text);
}

/* ===== Внутренние страницы ===== */
.page--card-bg {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  margin-inline: auto;
  max-width: min(800px, 100% - 2rem);
}

.page--card-bg .product-card__top {
  margin-bottom: 1rem;
}

.page__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.page__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
}

.page__updated {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.page__badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-bottom: 0;
}

.page__badge--dtalks {
  color: #79BEFE;
  background: rgba(121, 190, 254, 0.18);
}

.page__badge--dartboard {
  color: #62FFF9;
  background: rgba(98, 255, 249, 0.18);
}

.page__badge--multirem {
  color: #FF8A0D;
  background: rgba(255, 138, 13, 0.18);
}

.page-detail {
  max-width: 720px;
  margin-inline: auto;
}

.page-detail__definition {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 1rem;
  max-width: 65ch;
}

.page-detail__lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.page-detail__mockup {
  margin: 2.5rem 0;
}

.page-detail__mockup .product-card__mockup {
  margin-inline: auto;
}

/* Пара картинок: десктоп + мобильный */
.page-detail__mockups {
  margin: 2.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  align-items: flex-start;
}

.mockup-pair {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* Картинка с верхней окантовкой */
.mockup-simple {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-top: 3px solid;
  background: var(--color-surface);
}

.mockup-simple--expand {
  cursor: pointer;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
}

.mockup-simple--expand:hover {
  border-color: var(--color-text-muted);
}

.mockup-simple--expand:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.product-card--dtalks .mockup-simple {
  border-top-color: #79BEFE;
}

.product-card--dartboard .mockup-simple {
  border-top-color: #62FFF9;
}

.product-card--multirem .mockup-simple {
  border-top-color: #FF8A0D;
}

.mockup-simple__img,
.mockup-simple img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

/* Плейсхолдер (div) — фиксированное соотношение сторон */
.mockup-simple__img:not(img) {
  min-height: 200px;
  aspect-ratio: 16 / 10;
  background: var(--color-bg);
}

.mockup-simple--desktop .mockup-simple__img:not(img) {
  aspect-ratio: 16 / 10;
  min-height: 200px;
}

.mockup-simple--mobile .mockup-simple__img:not(img) {
  aspect-ratio: 9 / 16;
  min-height: 280px;
}

/* Реальные картинки (img) — сохраняют своё соотношение сторон */
.mockup-simple img {
  aspect-ratio: auto;
  min-height: 0;
  object-fit: contain;
  object-position: top;
}

.page-detail__mockups > .mockup-simple {
  width: 100%;
  max-width: 360px;
}

.page-detail__mockups > .mockup-simple:last-child {
  max-width: 200px;
}

/* Полноэкранный просмотр картинки */
.fullscreen-mockup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.fullscreen-mockup.is-open {
  opacity: 1;
  visibility: visible;
}

.fullscreen-mockup__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.fullscreen-mockup__close:hover {
  background: var(--color-bg-elevated);
}

.fullscreen-mockup__close:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.fullscreen-mockup__content {
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-mockup__content .mockup-simple {
  max-width: 100%;
  max-height: 95vh;
  width: auto;
  cursor: default;
}

.fullscreen-mockup__content .mockup-simple__img,
.fullscreen-mockup__content .mockup-simple img {
  max-height: 85vh;
  max-width: 95vw;
  width: auto;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.page-detail__docs {
  margin-top: 2.5rem;
}

.page-detail__cta {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.page-detail__cta p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.page-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.page__content {
  max-width: 65ch;
}

.content-block h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--color-text);
}

.content-block h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--color-text);
}

.content-block p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.content-block a {
  color: var(--color-accent);
}

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

.content-block__list,
.contact-list {
  list-style: none;
  margin: 1rem 0;
}

.content-block__list li,
.contact-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}

.content-block__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

.product-card--dtalks .content-block__list li::before {
  background: #79BEFE;
}

.product-card--dartboard .content-block__list li::before {
  background: #62FFF9;
}

.product-card--multirem .content-block__list li::before {
  background: #FF8A0D;
}

.about__definition {
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.contact-list a {
  color: var(--color-accent);
}

/* ===== Contact page ===== */
.contact-page {
  padding-top: calc(var(--header-height) + 2rem);
}

.contact-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-intro__title {
  margin-bottom: 0.75rem;
}

.contact-intro__answer {
  font-size: 1.0625rem;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  max-width: 65ch;
}

.contact-intro__answer a {
  color: var(--color-accent);
}

.contact-intro__text {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 40ch;
  margin-inline: auto;
}

.contact-cards {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

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

@media (min-width: 1024px) {
  .contact-cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: left;
}

.contact-card:hover {
  border-color: rgba(173, 138, 255, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.contact-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  background: var(--color-accent-muted);
  border-radius: var(--radius-md);
  color: var(--color-accent);
}

.contact-card__icon--wa {
  color: #25D366;
  background: rgba(37, 211, 102, 0.15);
}

.contact-card__icon--tg {
  color: #0088cc;
  background: rgba(0, 136, 204, 0.15);
}

.contact-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.contact-card__value {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  flex: 1;
}

.contact-card__action {
  width: 100%;
  justify-content: center;
  pointer-events: none;
}

.contact-note {
  text-align: center;
  padding: 1.5rem 2rem;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.contact-note p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* ===== Privacy Policy page ===== */
.privacy-page {
  padding-top: calc(var(--header-height) + 2rem);
}

.privacy-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.privacy-intro__title {
  margin-bottom: 0.75rem;
}

.privacy-intro__definition {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-text);
  max-width: 65ch;
  margin-inline: auto;
  margin-bottom: 0.75rem;
}

.privacy-intro__text {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 44ch;
  margin-inline: auto;
  margin-bottom: 1rem;
}

.privacy-intro__badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.privacy-intro__lang {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.875rem;
}

.privacy-intro__lang a {
  color: var(--color-text-muted);
}

.privacy-intro__lang a:hover {
  color: var(--color-accent);
}

.privacy-nav {
  margin-bottom: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.privacy-nav__label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.privacy-nav__list {
  display: grid;
  gap: 0.5rem;
}

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

@media (min-width: 768px) {
  .privacy-nav__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.privacy-nav__list a {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.privacy-nav__list a:hover {
  color: var(--color-accent);
}

.privacy-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.privacy-section {
  padding: 1.75rem 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.privacy-section__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.privacy-section__subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.privacy-section p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.privacy-section p:last-child {
  margin-bottom: 0;
}

.privacy-section a {
  color: var(--color-accent);
}

.privacy-section a:hover {
  text-decoration: underline;
}

.privacy-definitions {
  margin-top: 1rem;
}

.privacy-definitions dt {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.privacy-definitions dt:first-child {
  margin-top: 0;
}

.privacy-definitions dd {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-left: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--color-accent-muted);
}

.privacy-cta {
  margin-top: 2.5rem;
  padding: 2rem;
  text-align: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.privacy-cta__text {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.privacy-cta .btn {
  min-width: 180px;
}

/* ===== Кнопка «Наверх» ===== */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-bg);
  box-shadow: 0 4px 16px rgba(173, 138, 255, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 6px 20px rgba(173, 138, 255, 0.4);
}

.back-to-top:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}
