/* Grundlayout & Typografie */
:root {
  --fg-brand: #7c3aed;
  --fg-brand-soft: #ede7ff;
  --fg-brand-dark: #4c1d95;
  --fg-bg-soft: #f5f5fb;
  --fg-text-main: #1f2933;
  --fg-text-muted: #6b7280;
  --fg-radius-xl: 1.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px; /* минимум 17px */
  line-height: 1.7;
  color: var(--fg-text-main);
  background-color: #ffffff;
}

/* Links */
a {
  color: var(--fg-brand);
}

a:hover {
  color: var(--fg-brand-dark);
}

/* Navbar */
.header .navbar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.navbar-brand {
  font-size: 1.35rem;
  color: var(--fg-brand);
}

.navbar-brand i {
  font-size: 1.1rem;
}

.navbar-brand:hover {
  color: var(--fg-brand-dark);
}

.nav-link {
  font-weight: 500;
  color: var(--fg-text-main);
}

.nav-link:hover,
.nav-link.active {
  color: var(--fg-brand);
}

/* Hero */
.hero-section {
  background: radial-gradient(circle at top left, #ede9fe 0, #eef2ff 35%, #ffffff 70%);
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--fg-text-muted);
}

.hero-media {
  position: relative;
}

.hero-floating-card {
  position: absolute;
  bottom: 0;
  left: 8%;
  transform: translateY(40%);
  max-width: 320px;
}

.icon-circle,
.icon-circle-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-color: var(--fg-brand-soft);
  color: var(--fg-brand-dark);
}

.icon-circle {
  width: 48px;
  height: 48px;
  font-size: 1.3rem;
}

.icon-circle-sm {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

/* Sections */
.section-padding {
  padding: 4.5rem 0;
}

.bg-soft {
  background-color: var(--fg-bg-soft);
}

.section-heading h2 {
  font-size: 2rem;
}

.section-heading p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Badges & Pills */
.text-brand {
  color: var(--fg-brand-dark) !important;
}

.bg-brand-soft {
  background-color: var(--fg-brand-soft) !important;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background-color: var(--fg-brand-soft);
  color: var(--fg-brand-dark);
  font-size: 1.15rem;
}

/* Buttons */
.btn-brand {
  background: linear-gradient(135deg, var(--fg-brand), #f97316);
  border: none;
  color: #ffffff;
  border-radius: 999px;
  padding-inline: 1.6rem;
  font-weight: 600;
}

.btn-brand:hover {
  background: linear-gradient(135deg, var(--fg-brand-dark), #ea580c);
  color: #ffffff;
}

.btn-outline-brand {
  border-radius: 999px;
  border: 1px solid var(--fg-brand);
  color: var(--fg-brand-dark);
  font-weight: 600;
}

.btn-outline-brand:hover {
  background-color: var(--fg-brand);
  color: #ffffff;
}

/* Cards */
.card {
  border-radius: var(--fg-radius-xl);
}

.card-text {
  font-size: 0.95rem;
}

/* Avatar */
.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background-color: var(--fg-brand-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--fg-brand-dark);
}

/* Тёмный футер */
.footer {
  background-color: #020617;
  color: #e5e7eb;
}

.footer p {
  color: #e5e7eb;
}

.footer .footer-muted {
  color: #9ca3af !important;
}

.footer-link {
  color: #cbd5f5;
  text-decoration: none;
}

.footer-link:hover {
  color: #fbbf24;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  max-width: 360px;
  z-index: 1080;
  background-color: #ffffff;
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
}

.cookie-banner.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-inner {
  font-size: 0.9rem;
}

/* Forms */
.form-control,
.form-select {
  border-radius: 0.9rem;
  border-color: rgba(148, 163, 184, 0.6);
  font-size: 0.98rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--fg-brand);
  box-shadow: 0 0 0 0.15rem rgba(124, 58, 237, 0.18);
}

/* Alerts */
.alert {
  border-radius: 1rem;
}

/* Helpers */
.small {
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-floating-card {
    position: static;
    transform: none;
    margin-top: -1rem;
  }

  .cookie-banner {
    right: 1rem;
    left: 1rem;
    max-width: unset;
  }
}
