/* A.E. MEDIA — flexbox only, no grid */

:root {
  /* Блок hero/header: основной #6B21A8, фон #F9F5FF (макет) */
  --color-purple: #6b21a8;
  --color-purple-dark: #581a90;
  --color-purple-soft: #f3e8ff;
  --color-purple-mid: #e9d5ff;
  --color-purple-step-mid: #9333ea;
  --color-ink: #1a1a1a;
  --color-muted: #6b7280;
  --color-border: #e9e4ef;
  --color-bg: #ffffff;
  --color-bg-soft: #f9f5ff;
  --color-hero-bg: #f9f5ff;
  --color-dark: #0c0c0f;
  --color-dark-card: #1a1625;
  --purple-rgb: 107, 33, 168;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 12px 40px rgba(17, 24, 39, 0.08);
  --shadow-card: 0 4px 24px rgba(17, 24, 39, 0.06);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-8: 96px;
  --space-9: 120px;
  --container: 1280px;
  --font: "Sora", system-ui, -apple-system, sans-serif;
  --font-display: "Sora", system-ui, -apple-system, sans-serif;
  --font-hero: "Sora", var(--font-display);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.65s;
  /* Крупные заголовки: плавное масштабирование от узких телефонов до десктопа */
  --fs-hero-title: clamp(1.875rem, 4vw + 1.1rem, 5.25rem);
  --fs-section-title: clamp(1.625rem, 3.2vw + 1rem, 3.375rem);
  --fs-mission-title: clamp(1.6875rem, 3.2vw + 1.05rem, 3.25rem);
  --fs-features-section: clamp(1.625rem, 3.8vw + 0.85rem, 3rem);
  --fs-section-left: clamp(1.5625rem, 2.8vw + 0.9rem, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-muted);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--color-ink);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  margin: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

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

.text-accent {
  color: #701898;
}

.body-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-muted);
  max-width: 36rem;
}

.badge {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1) var(--space-2);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-purple);
  background: var(--color-purple-soft);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
}

.badge--hero {
  border: 1px solid rgba(112, 24, 152, 0.18);
  border-radius: 14px;
  height: 28px;
  min-width: 245px;
  background: rgba(112, 24, 152, 0.08);
  margin-bottom: var(--space-3);
  box-shadow: 0 1px 2px rgba(107, 33, 168, 0.06);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.11em;
  color: #701898;
}

.badge--on-dark {
  background: rgba(var(--purple-rgb), 0.22);
  color: var(--color-purple-mid);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    background 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out);
}

.btn--primary {
  background: var(--color-purple);
  color: #fff;
  box-shadow: 0 4px 18px rgba(var(--purple-rgb), 0.38);
}

.btn--primary:hover {
  background: var(--color-purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(var(--purple-rgb), 0.45);
}

.btn--outline {
  background: #fff;
  color: var(--color-purple);
  border-color: rgba(var(--purple-rgb), 0.4);
}

.btn--outline:hover {
  border-color: var(--color-purple);
  background: var(--color-purple-soft);
  transform: translateY(-2px);
}

.btn__arrow {
  margin-left: 6px;
  display: inline-block;
  transition: transform 0.2s var(--ease-out);
}

.btn--primary:hover .btn__arrow {
  transform: translateX(3px);
}

.btn--outline--hero {
  border-width: 1px;
  border-color: #e5e7eb;
  color: var(--color-purple);
  background: #fff;
}

.btn--outline--hero:hover {
  border-color: #d1d5db;
  background: #fff;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn--block {
  width: 100%;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 245, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(107, 33, 168, 0.08);
  animation: header-in 0.6s var(--ease-out) both;
}

@keyframes header-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: var(--space-3);
}

.logo {
  font-family: var(--font-display);
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-purple);
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.88;
}

.logo__text {
  line-height: 1;
}

.logo__swoosh {
  display: block;
  width: 118px;
  height: 8px;
  color: var(--color-purple);
  flex-shrink: 0;
}

.nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.nav__list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.nav__list a {
  transition: color 0.2s;
  font-weight: 400;
  font-size: 14px;
  color: rgba(46, 38, 56, 0.85);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

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

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero — радиальный градиент, центр светлее (#F9F5FF) */
.hero {
  padding: var(--space-8) 0 var(--space-9);
  background:
    radial-gradient(ellipse 90% 75% at 50% 42%, #ffffff 0%, #fdfbff 28%, var(--color-hero-bg) 58%, #f3ebfb 100%);
  overflow: hidden;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero__title {
  font-weight: 700;
  font-size: var(--fs-hero-title);
  color: #110e17;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
}

@media (max-width: 767px) {
  .hero__title {
    line-height: 1.14;
    letter-spacing: -0.028em;
  }
}

.hero__lead {
  margin-bottom: var(--space-5);
  font-weight: 300;
  font-size: clamp(0.9375rem, 1.5vw + 0.65rem, 1.125rem);
  color: #615473;
}

.hero__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.animate-in {
  opacity: 0;
  transform: translateY(28px);
  animation: fade-up 0.85s var(--ease-out) forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-in {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .header {
    animation: none;
  }
}

/* Scroll reveal */
.reveal,
.reveal-stagger {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.section {
  padding: var(--space-9) 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  text-align: center;
  margin-bottom: var(--space-6);
}

.section-head .badge {
  margin-bottom: var(--space-2);
}

.section-head--features,
.section-head--contact {
  margin-bottom: var(--space-6);
}

.section-head--features .section-title,
.section-head--contact .section-title {
  max-width: none;
}

.badge--features {
  font-family: var(--font-display);
  background: rgba(155, 103, 182, 0.1);
  color: #9b67b6;
  border: 1px solid rgba(155, 103, 182, 0.28);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-section-title);
  color: #fff;
  letter-spacing: -0.025em;
  max-width: 22ch;
  line-height: 1.12;
  /*color: #b169e0;*/
}

@media (max-width: 767px) {
  .section-title {
    letter-spacing: -0.022em;
    line-height: 1.14;
  }

  .section-head--infra .section-title {
    max-width: none;
  }
}

.section-title.section-title--features-hero {
  color: #000;
  font-size: var(--fs-features-section);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: none;
}

@media (max-width: 767px) {
  .section-title.section-title--features-hero {
    line-height: 1.15;
    letter-spacing: -0.026em;
  }
}

.section-title.section-title--contact {
  color: #111;
  max-width: none;
}

.section-title--left {
  text-align: left;
  max-width: none;
  margin-bottom: var(--space-3);
  font-size: var(--fs-section-left);
}

.section-head--on-dark .section-title {
  max-width: 24ch;
}

.section-title--light {
  color: #fff;
}

/* Mission / About — макет: белый фон, ~60/40, акцент #7E3AF2 */
.mission {
  --mission-accent: #7e3af2;
  --mission-accent-soft: rgba(126, 58, 242, 0.35);
  --mission-surface: #f9f5ff;
  --mission-body: #4b5563;
  background: #fff;
}

.mission__row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 5rem);
}

.mission__copy {
  flex: 1 1 100%;
  min-width: 0;
}

@media (min-width: 900px) {
  .mission__copy {
    flex: 1 1 70%;
    max-width: 680px;
  }
}

.mission__copy-wrap {
  position: relative;
  padding-left: var(--space-3);
}

.mission__copy-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 2px;
  background: rgba(112, 24, 152, 0.15);
}

.badge--mission {
  border: 1px solid rgba(112, 24, 152, 0.18);
  border-radius: 14px;
  width: 137px;
  height: 28px;
  background: rgba(112, 24, 152, 0.08);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.11em;
  color: #701898;
  margin-bottom: var(--space-3);
}

.mission__title {
  font-weight: 700;
  font-size: var(--fs-mission-title);
  color: #110e17;
  margin-bottom: var(--space-4);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

@media (max-width: 767px) {
  .mission__title {
    line-height: 1.16;
    letter-spacing: -0.026em;
  }
}

.mission__title-accent {
  color: #701898;
}

.mission__body {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: var(--space-3);
  max-width: 36rem;
}

.mission__body p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--mission-body);
}

.mission__cards {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: var(--space-4);
  min-width: 0;
}

@media (min-width: 900px) {
  .mission__cards {
    flex: 1 1 38%;
    max-width: 420px;
  }
}

.mission-card {
  position: relative;
  padding: var(--space-4) var(--space-4) var(--space-4) calc(var(--space-4) + 8px);
  background: var(--mission-surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(126, 58, 242, 0.08);
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.04);
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.mission-card::before {
  content: "";
  position: absolute;
  left: var(--space-3);
  top: var(--space-4);
  bottom: var(--space-4);
  width: 4px;
  border-radius: 2px;
  background: rgba(112, 24, 152, 0.7);
}

.mission-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(126, 58, 242, 0.1);
}

.mission-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-ink);
}

.mission-card__text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--mission-body);
  margin: 0;
}

/* Services — макет: #F9F9FB, акцент rgba(112, 24, 152, 0.7), карточки с номером 01–06 */
.services {
  --svc-purple: rgba(112, 24, 152, 0.7);
  --svc-purple-rgb: 124, 58, 237;
  --svc-lav: #f3e8ff;
  --svc-heading: #111827;
  --svc-card-text: #4b5563;
  --svc-sub: #6b7280;
  background:
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(124, 58, 237, 0.07) 0%, transparent 52%),
    #f9f9fb;
}

.section-head--services {
  margin-bottom: var(--space-6);
}

.section-head--services .section-title--services {
  color: var(--svc-heading);
  max-width: none;
}

.badge--services {
  border: 1px solid rgba(112, 24, 152, 0.18);
  border-radius: 14px;
  min-width: 121px;
  height: 28px;
  background: rgba(112, 24, 152, 0.08);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.11em;
  color: #701898;
  padding: 4px 12px;
  background: var(--svc-lav);
  margin-bottom: var(--space-2);
}

.services__sub {
  margin: var(--space-2) 0 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
  color: var(--svc-sub);
  text-align: center;
}

.services__grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.service-card {
  flex: 1 1 100%;
  min-width: 0;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .service-card {
    flex: 1 1 calc((100% - 28px) / 2);
    max-width: calc((100% - 28px) / 2);
  }
}

@media (min-width: 960px) {
  .service-card {
    flex: 1 1 calc((100% - 56px) / 3);
    max-width: calc((100% - 56px) / 3);
  }
}

.service-card__box {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
  padding: 32px;
  background: #fff;
  border: none;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-top: 3px solid var(--svc-purple);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}

.service-card__box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.09);
}

.service-card__num {
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-3);
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--svc-purple);
  background: var(--svc-lav);
}

.service-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--svc-heading);
}

.service-card__text {
  font-size: 0.9375rem;
  line-height: 1.5;
  font-weight: 400;
  color: var(--svc-card-text);
  flex-grow: 1;
  margin: 0;
}

/* AI Approach / Infrastructure — тёмный блок, #A855F7, glass cards */
.infra {
  --infra-bg: #0d0b14;
  --infra-bg-core: #09090b;
  --infra-accent: #b169e0;
  --infra-accent-rgb: 168, 85, 247;
  --infra-muted: #94a3b8;
  --infra-icon: #581c87;
  position: relative;
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
  background-color: var(--infra-bg-core);
  background-image:
    radial-gradient(ellipse 75% 55% at 50% 38%, rgba(168, 85, 247, 0.22) 0%, transparent 58%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(88, 28, 135, 0.15) 0%, transparent 50%);
}

.section-head--infra .section-title {
  max-width: 22ch;
}

.infra__title {
  color: #fff;
}

.infra__accent {
  color: var(--infra-accent);
}

.infra__sub {
  margin: var(--space-3) 0 0;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.badge--infra-ai {
  font-family: var(--font-display);
  background: rgba(168, 85, 247, 0.08);
  color: var(--infra-accent);
  border: 1px solid rgba(168, 85, 247, 0.45);
  margin-bottom: var(--space-2);
}

.infra__slider {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--space-4);
}

.infra__viewport {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.infra__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}

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

.infra-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.infra__controls {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.infra__dots {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.infra__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s var(--ease-out);
}

.infra__dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

.infra__dot.is-active {
  background: var(--infra-accent);
  transform: scale(1.15);
}

.infra-card__box {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 100%;
  padding: 30px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid var(--infra-accent);
  background: rgba(15, 12, 24, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.3s var(--ease-out),
    border-color 0.3s,
    box-shadow 0.3s;
}

.infra-card__box:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(168, 85, 247, 0.08);
}

.infra-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--infra-icon);
  margin-bottom: var(--space-3);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

.infra-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-2);
}

.infra-card__text {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--infra-muted);
  flex-grow: 1;
  margin: 0;
}

.infra__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.1);
  color: var(--infra-accent);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s var(--ease-out);
}

.infra__arrow:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.55);
}

.infra__arrow--next:hover {
  transform: translateX(2px);
}

.infra__arrow--prev:hover {
  transform: translateX(-2px);
}

.infra__arrow:focus-visible {
  outline: 2px solid var(--infra-accent);
  outline-offset: 2px;
}

.infra__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* Process — белый фон, THE PROCESS, круги rgba(112, 24, 152, 0.7) → #A78BFA → #8B5CF6 → #6D28D9 */
.process {
  background: #fff;
}

.badge--process {
  font-family: var(--font-display);
  padding: 4px 16px;
  background: #f3e8ff;
  color: rgba(112, 24, 152, 0.7);
  border: 1px solid rgba(124, 58, 237, 0.35);
  margin-bottom: var(--space-2);
}

.section-title--process {
  color: #000;
  max-width: none;
}

.process__steps {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--space-5);
  padding-top: var(--space-2);
}

@media (min-width: 900px) {
  .process__steps {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
  }
}

.process-step {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  text-align: left;
}

@media (min-width: 900px) {
  .process-step {
    flex: 1 1 0;
    min-width: 0;
  }
}

.process-step__num {
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
  flex-shrink: 0;
  border: 2px solid transparent;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.process-step__num:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.2);
}

.process-step:nth-child(1) .process-step__num {
  background: #fff;
  color: rgba(112, 24, 152, 0.7);
  border: 1px solid #701898;

}

.process-step:nth-child(2) .process-step__num {
  background: rgba(112, 24, 152, 0.5);
  color: #fff;
  border: 1.50px solid #e0d8ee;

}

.process-step:nth-child(3) .process-step__num {
  background: rgba(112, 24, 152, 0.7);
  color: #fff;
  border: 1.50px solid #e0d8ee;

}

.process-step:nth-child(4) .process-step__num {
  background: #701898;
  color: #fff;
  border: 1.50px solid #e0d8ee;

}

.process-step__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: #000;
}

.process-step__text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
  max-width: 100%;
}

@media (min-width: 900px) {
  .process-step__text {
    max-width: 220px;
  }
}

/* Ecosystem — WHO WE WORK WITH, #F9F8FC, карточки с полоской снизу слева */
.ecosystem {
  background: #f9f8fc;
}

.badge--ecosystem {
  font-family: var(--font-display);
  background: #f5f3ff;
  color: rgba(112, 24, 152, 0.7);
  border: 1px solid rgba(124, 58, 237, 0.28);
  margin-bottom: var(--space-2);
}

.section-title--ecosystem {
  color: #000;
  max-width: none;
}

.ecosystem__row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.eco-card {
  flex: 1 1 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 20px;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}

@media (min-width: 768px) {
  .eco-card {
    flex: 1 1 calc((100% - 56px) / 3);
    max-width: calc((100% - 56px) / 3);
    min-width: 240px;
  }
}

.eco-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.eco-card:hover .eco-card__bar {
  width: 48px;
  opacity: 1;
}

.eco-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: #000;
}

.eco-card__text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #71717a;
  flex-grow: 1;
  margin: 0 0 var(--space-4);
}

.eco-card__link {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: rgba(112, 24, 152, 0.7);
  margin-bottom: var(--space-3);
  transition: gap 0.2s var(--ease-out), color 0.2s;
}

.eco-card__link:hover {
  color: #6d28d9;
  gap: 12px;
}

.eco-card__arrow {
  display: inline-block;
  font-weight: 700;
  transition: transform 0.2s var(--ease-out);
}

.eco-card__link:hover .eco-card__arrow {
  transform: translateX(3px);
}

.eco-card__link-label {
  display: inline-block;
}

.eco-card__bar {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(112, 24, 152, 0.7);
  flex-shrink: 0;
  transition:
    width 0.3s var(--ease-out),
    opacity 0.2s;
}

/* Features — WHY AEMEDIA, линия + 01–04, акцент #9b67b6 */
.features {
  background: #fff;
}

.features__row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.feature {
  flex: 1 1 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  text-align: left;
}

@media (min-width: 640px) {
  .feature {
    flex: 1 1 calc((100% - 24px) / 2);
    max-width: calc((100% - 24px) / 2);
  }
}

@media (min-width: 900px) {
  .feature {
    flex: 1 1 calc((100% - 72px) / 4);
    max-width: calc((100% - 72px) / 4);
    min-width: 0;
  }
}

.feature__top {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: var(--space-3);
}

.feature__line {
  display: block;
  width: 30px;
  height: 2px;
  border-radius: 1px;
  background: #9b67b6;
}

.feature__index {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #9b67b6;
  opacity: 0.95;
}

.feature__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: #000;
}

.feature__text {
  font-size: 0.9375rem;
  line-height: 1.62;
  color: #666;
  margin: 0;
}

/* Contact — #F9F8FF, карточка 24px, поля #F3F4F6 */
.contact {
  background-color: #f9f8ff;
  background-image: radial-gradient(ellipse 70% 55% at 50% 48%, rgba(124, 58, 237, 0.09) 0%, transparent 58%);
}

.badge--contact {
  font-family: var(--font-display);
  background: rgba(124, 58, 237, 0.12);
  color: #5b21b6;
  border: 1px solid rgba(124, 58, 237, 0.2);
  margin-bottom: var(--space-2);
}

.contact__wrap {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
}

.contact__wrap .section-head {
  margin-bottom: var(--space-5);
}

.contact__sub {
  margin: var(--space-3) 0 0;
  text-align: center;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
  color: #6b7280;
}

.contact-form {
  width: 90%;
  max-width: 600px;
  padding: 40px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(17, 24, 39, 0.06);
  border: 1px solid rgba(243, 244, 246, 0.9);
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: var(--space-3);
}

.contact-form__alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.5;
}

.contact-form__alert--success {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.contact-form__alert--error {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.contact-form__alert--error a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.contact-form__alert--error a:hover {
  color: #7f1d1d;
}

.field__error:empty {
  display: none;
}

.field__error:not(:empty) {
  display: block;
  margin-top: 6px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #b91c1c;
}

.field__input--contact.is-invalid {
  border-color: rgba(239, 68, 68, 0.65);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.field__input--contact.is-invalid:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.btn--contact-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.field {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
}

.field__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-ink);
}

.field__input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--color-ink);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field__input--contact {
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f3f4f6;
  color: #111;
}

.field__input--contact::placeholder {
  color: #9ca3af;
}

.field__input--contact:hover {
  background: #eef0f3;
}

.field__input--contact:focus {
  outline: none;
  background: #fff;
  border-color: rgba(112, 26, 153, 0.35);
  box-shadow: 0 0 0 3px rgba(112, 26, 153, 0.12);
}

.field__input::placeholder {
  color: #9ca3af;
}

.field__input:hover {
  border-color: #d1d5db;
}

.field__input:focus {
  outline: none;
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px rgba(var(--purple-rgb), 0.15);
}

.field__input--textarea {
  resize: vertical;
  min-height: 120px;
}

.field__input--contact.field__input--textarea {
  min-height: 140px;
  line-height: 1.5;
}

.btn--contact-submit {
  font-family: var(--font-display);
  margin-top: var(--space-1);
  padding: 16px 24px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  background: #701a99;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(112, 26, 153, 0.35);
  transition:
    transform 0.2s var(--ease-out),
    background 0.2s,
    box-shadow 0.2s;
}

.btn--contact-submit:hover {
  background: #5c1580;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(112, 26, 153, 0.4);
}

.contact__mailto {
  margin: var(--space-5) 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #6b7280;
  text-align: center;
}

.contact__mailto a {
  color: #6d28d9;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.contact__mailto a:hover {
  color: #5b21b6;
  text-decoration: underline;
}

/* Footer — макет: слева логотип + дуга, центр копирайт, справа ссылки */
.footer {
  padding: var(--space-4) 0 var(--space-5);
  border-top: 1px solid var(--color-border);
  background: #ffffff;
}

.footer__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-4);
}

.footer-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-brand:hover {
  opacity: 0.88;
  text-decoration: none;
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.footer-brand__ae {
  color: #5d3a8e;
}

.footer-brand__media {
  color: #000000;
}

.footer-brand__orbit {
  display: block;
  width: 168px;
  height: auto;
  flex-shrink: 0;
  margin-top: -2px;
}

.footer__center {
  flex: 1 1 220px;
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.footer__tagline,
.footer__address {
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  color: #999999;
  margin: 0;
}

.footer__legal {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-shrink: 0;
}

.footer__legal a {
  font-weight: 500;
  font-size: 0.8125rem;
  color: #999999;
  text-decoration: none;
  transition: color 0.2s;
}

.footer__legal a:hover {
  color: #5d3a8e;
  text-decoration: underline;
}

/* Подвал всегда виден; запас снизу — чтобы ссылки не прятались под cookie-bar */
html:not(.cookie-consent-done) .footer {
  padding-bottom: calc(var(--space-5) + 4.5rem);
}

@media (max-width: 767px) {
  .footer {
    padding: var(--space-3) 0 var(--space-4);
  }

  html:not(.cookie-consent-done) .footer {
    padding-bottom: calc(var(--space-4) + 4.25rem);
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-2);
  }

  .footer-brand {
    align-items: center;
  }

  .footer__center {
    flex: 1 1 auto;
    margin: 20px 0;
    order: 2;
    text-align: center;
    gap: 3px;
  }

  .footer__legal {
    order: 3;
    justify-content: center;
    gap: var(--space-3);
  }
}

/* Mobile navigation & tighter sections */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 72px var(--space-3) auto var(--space-3);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: var(--space-4);
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.25s var(--ease-out),
      transform 0.25s var(--ease-out),
      visibility 0.25s;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .nav .btn {
    width: 100%;
  }

  .mission__row {
    flex-direction: column;
  }

  .hero {
    padding: var(--space-6) 0 var(--space-8);
  }

  .badge--hero {
    min-width: 0;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .section {
    padding: var(--space-6) 0;
  }

  .contact-form {
    width: 100%;
    padding: 20px;
  }
}

/* Cookie consent bar */
html:not(.cookie-consent-done) body {
  padding-bottom: 5.5rem;
}

html.cookie-consent-done .cookie-consent {
  display: none;
}

.cookie-consent {
  position: fixed;
  z-index: 200;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-3) 0;
  padding-bottom: max(var(--space-3), env(safe-area-inset-bottom, 0px));
  background: #ffffff;
  border-top: 1px solid #e8e4ee;
  box-shadow: 0 -8px 32px rgba(17, 24, 39, 0.06);
}

.cookie-consent__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.cookie-consent__text {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  font-family: var(--font);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #888888;
  max-width: 36rem;
}

.cookie-consent__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  flex-shrink: 0;
  flex-grow: 0;
}

.cookie-consent__link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #5d3a8e;
  text-decoration: none;
}

.cookie-consent__link:hover {
  text-decoration: underline;
}

.cookie-consent__accept {
  min-width: 5.5rem;
}

@media (max-width: 767px) {
  .cookie-consent {
    padding: var(--space-2) 0;
    padding-bottom: max(var(--space-2), calc(env(safe-area-inset-bottom, 0px) + 8px));
  }

  .cookie-consent__inner {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--space-2);
  }

  .cookie-consent__text {
    flex: none;
    max-width: none;
  }

  .cookie-consent__actions {
    justify-content: space-between;
    width: 100%;
  }
}

@media (min-width: 768px) {
  .cookie-consent__text {
    flex: 1 1 220px;
  }
}

/* Legal static pages */
.page-legal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-legal main {
  flex: 1 0 auto;
}

.legal-header {
  padding: var(--space-3) 0;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.legal-header__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.legal-back {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: #5d3a8e;
  text-decoration: none;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-main {
  padding: var(--space-6) 0 var(--space-8);
}

.legal-doc {
  max-width: 42rem;
  margin: 0 auto;
}

.legal-doc h1 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  margin-bottom: var(--space-2);
  color: var(--color-ink);
}

.legal-doc__meta {
  font-size: 0.875rem;
  color: #888888;
  margin: 0 0 var(--space-5);
  line-height: 1.5;
}

.legal-doc h2 {
  font-size: 1.0625rem;
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
  color: #333333;
}

.legal-doc h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  color: #444444;
}

.legal-doc p {
  margin: 0 0 var(--space-3);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #555555;
}

.legal-doc ul {
  margin: 0 0 var(--space-3);
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #555555;
}

.legal-doc li {
  margin-bottom: var(--space-1);
}

.legal-doc a {
  color: #5d3a8e;
  text-decoration: underline;
}

.legal-doc a:hover {
  color: #4a2f72;
}

.legal-doc code {
  font-family: ui-monospace, monospace;
  font-size: 0.85em;
  background: #f3f4f6;
  padding: 0.12em 0.35em;
  border-radius: 4px;
}
