:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --surface: #ffffff;
  --text: #0b1220;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eff6ff;
  --cta-bg: #0b1220;
  --cta-text: #ffffff;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.04), 0 6px 20px rgba(11, 18, 32, 0.05);
  --shadow: 0 8px 32px rgba(11, 18, 32, 0.07);
  --shadow-lg: 0 20px 50px rgba(11, 18, 32, 0.09);
  --radius: 0.875rem;
  --radius-lg: 1.125rem;
  --radius-pill: 999px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --header-bg: rgba(255, 255, 255, 0.88);
  --nav-mobile-bg: rgba(255, 255, 255, 0.98);
  --input-bg: #f8fafc;
  --hero-glow: rgba(37, 99, 235, 0.06);
  --page-glow: rgba(37, 99, 235, 0.05);
  --placeholder-bg: linear-gradient(145deg, #f8fafc 0%, #ffffff 55%, #f1f5f9 100%);
  --mockup-bar: #f8fafc;
  --mockup-dot: #cbd5e1;
  --mockup-sidebar: linear-gradient(180deg, #f8fafc, #ffffff);
  --mockup-card: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  --feature-icon-bg: #eff6ff;
  --alert-success-bg: #ecfdf5;
  --alert-success-text: #047857;
  --alert-success-border: #a7f3d0;
  --alert-error-bg: #fef2f2;
  --alert-error-text: #b91c1c;
  --alert-error-border: #fecaca;
  color-scheme: light;
}

[data-theme='dark'] {
  --bg: #0b1220;
  --bg-alt: #111827;
  --surface: #151d2e;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --border: #243044;
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --cta-bg: #111827;
  --cta-text: #f8fafc;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.18);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(11, 18, 32, 0.92);
  --nav-mobile-bg: rgba(11, 18, 32, 0.98);
  --input-bg: #0b1220;
  --hero-glow: rgba(59, 130, 246, 0.12);
  --page-glow: rgba(59, 130, 246, 0.1);
  --placeholder-bg: linear-gradient(145deg, #151d2e 0%, #0b1220 55%, #1e293b 100%);
  --mockup-bar: #1e293b;
  --mockup-dot: #64748b;
  --mockup-sidebar: linear-gradient(180deg, #1e3a5f, #151d2e);
  --mockup-card: linear-gradient(135deg, #243044, #151d2e);
  --feature-icon-bg: rgba(59, 130, 246, 0.14);
  --alert-success-bg: rgba(6, 78, 59, 0.35);
  --alert-success-text: #6ee7b7;
  --alert-success-border: #047857;
  --alert-error-bg: rgba(127, 29, 29, 0.35);
  --alert-error-text: #fca5a5;
  --alert-error-border: #b91c1c;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  min-width: 0;
}

.container {
  width: min(1140px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding-block: 0.625rem 0.75rem;
  min-width: 0;
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  min-width: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}

.logo__picture {
  display: block;
  line-height: 0;
}

.logo__image {
  display: block;
  width: auto;
  height: 2rem;
}

.logo__image--mark {
  height: 2rem;
  width: 2rem;
}

.logo--admin .logo__text {
  font-weight: 700;
}

.logo__image--dark {
  display: none;
}

[data-theme='dark'] .logo__image--light {
  display: none;
}

[data-theme='dark'] .logo__image--dark {
  display: block;
}

.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}

.nav {
  display: none;
  gap: 1.25rem;
}

.nav--desktop {
  align-items: center;
  justify-content: center;
}

.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.header__cta--desktop,
.btn.header__cta--desktop {
  display: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.theme-toggle {
  position: relative;
  flex-shrink: 0;
  width: 3.25rem;
  height: 1.875rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(145deg, var(--bg-alt), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 2px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 14px rgba(37, 99, 235, 0.15);
}

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

.theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  display: block;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
  color: #f59e0b;
  transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1), color 0.2s ease, background 0.2s ease;
}

[data-theme='dark'] .theme-toggle {
  background: linear-gradient(145deg, var(--bg-alt), var(--surface));
}

[data-theme='dark'] .theme-toggle__thumb {
  transform: translateX(1.35rem);
  color: #a5b4fc;
}

.theme-toggle__thumb .theme-toggle__icon {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

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

[data-theme='dark'] .theme-toggle__thumb .theme-toggle__icon--sun {
  display: none;
}

[data-theme='dark'] .theme-toggle__thumb .theme-toggle__icon--moon {
  display: inline-flex;
}

@media (max-width: 767px) {
  .container {
    width: min(1120px, calc(100% - 1.25rem));
  }

  .header__inner {
    gap: 0.5rem;
  }

  .header__bar {
    min-height: auto;
  }

  .header__cta--desktop,
  .btn.header__cta--desktop {
    display: none !important;
  }

  .logo__image {
    width: auto;
    max-width: min(7rem, 34vw);
    height: 1.75rem;
    object-fit: contain;
    object-position: left center;
  }

  .header__actions {
    gap: 0.375rem;
  }

  .theme-toggle {
    width: 2.875rem;
    height: 1.625rem;
  }

  .theme-toggle__thumb {
    width: 1.25rem;
    height: 1.25rem;
  }

  [data-theme='dark'] .theme-toggle__thumb {
    transform: translateX(1.15rem);
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.nav-toggle__bars {
  display: grid;
  gap: 0.3rem;
  width: 1.125rem;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header--nav-open .nav-toggle__bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.header--nav-open .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  border-top: 1px solid var(--border);
  background: var(--nav-mobile-bg);
  backdrop-filter: blur(12px);
}

.nav-mobile[hidden] {
  display: none !important;
}

.nav-mobile__inner {
  display: grid;
  gap: 1rem;
  padding: 1rem 0 1.25rem;
}

.nav-mobile__links {
  display: grid;
  gap: 0.25rem;
}

.nav-mobile__links a {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 0.65rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.nav-mobile__links a:hover {
  background: var(--bg-alt);
  color: var(--accent);
}

.nav-mobile__cta {
  width: 100%;
}

body.nav-open {
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.18), 0 8px 20px rgba(37, 99, 235, 0.22);
}

.btn--primary:hover {
  background: var(--accent-dark);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  color: var(--accent);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.hero {
  position: relative;
  padding: 5.5rem 0 3rem;
  background:
    radial-gradient(circle at 85% 10%, var(--hero-glow), transparent 42%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.theme-enterprise .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--border) 55%, transparent) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 85%);
  pointer-events: none;
}

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

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}

.hero__content {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.8vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0.85rem 0 1.15rem;
  font-weight: 700;
  max-width: none;
}

.hero__lead {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: none;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
}

.hero__stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  margin: 0;
}

.hero__stats dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.hero__stats dd {
  margin: 0.25rem 0 0;
  font-weight: 600;
}

.eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section {
  padding: 5.5rem 0;
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section__head {
  max-width: 44rem;
  margin-bottom: 2.75rem;
}

.section__head h2 {
  font-size: clamp(1.875rem, 3.2vw, 2.625rem);
  letter-spacing: -0.035em;
  margin: 0.65rem 0 0.85rem;
  font-weight: 700;
  line-height: 1.12;
}

.section__lead {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.25rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mockup__bar {
  display: flex;
  gap: 0.375rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--mockup-bar);
}

.mockup__bar span {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 999px;
  background: var(--mockup-dot);
}

.mockup__body {
  display: grid;
  grid-template-columns: 5rem 1fr;
  min-height: 18rem;
}

.mockup__sidebar {
  background: var(--mockup-sidebar);
  border-right: 1px solid var(--border);
}

.mockup__main {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.mockup__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.mockup__card {
  height: 4rem;
  border-radius: 0.75rem;
  background: var(--mockup-card);
}

.mockup__card--wide {
  height: 5rem;
}

.mockup__card--accent {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(29, 78, 216, 0.08));
}

.features {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
}

.feature__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.feature h3 {
  margin: 0 0 0.5rem;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
}

.feature-showcase {
  display: grid;
  gap: 4rem;
  min-width: 0;
}

.feature-showcase__item {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1fr;
  min-width: 0;
}

@media (min-width: 56rem) {
  .feature-showcase__item {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }

  .feature-showcase__item--reverse .feature-showcase__media {
    order: 2;
  }

  .feature-showcase__item--reverse .feature-showcase__body {
    order: 1;
  }
}

.feature-showcase__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
}

.feature-showcase__expand {
  display: block;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

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

.feature-showcase__expand-hint {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.feature-showcase__expand:hover .feature-showcase__expand-hint,
.feature-showcase__expand:focus-visible .feature-showcase__expand-hint {
  opacity: 1;
  transform: none;
}

.feature-showcase__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  transition: opacity 0.2s ease;
}

.feature-showcase__expand:hover .feature-showcase__img,
.feature-showcase__expand:focus-visible .feature-showcase__img,
.feature-showcase__expand:hover .module-detail__screenshot-img,
.feature-showcase__expand:focus-visible .module-detail__screenshot-img {
  opacity: 0.92;
}

.feature-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  visibility: hidden;
  pointer-events: none;
}

.feature-lightbox.is-open {
  visibility: visible;
  pointer-events: auto;
}

.feature-lightbox[hidden] {
  display: none !important;
}

/* Как .webpart-room-booking__modal-backdrop в Portal */
.feature-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.feature-lightbox.is-open .feature-lightbox__backdrop {
  opacity: 1;
}

[data-theme='dark'] .feature-lightbox__backdrop {
  background: rgba(15, 23, 42, 0.65);
}

.feature-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(72rem, 100%);
  max-height: calc(100dvh - 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  opacity: 0;
  transform: scale(0.97) translateY(8px);
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-lightbox.is-open .feature-lightbox__dialog {
  opacity: 1;
  transform: none;
}

.feature-lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.92);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    opacity 0.28s ease 0.05s,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
}

.feature-lightbox.is-open .feature-lightbox__close {
  opacity: 1;
  transform: none;
}

.feature-lightbox__close:hover {
  background: #e2e8f0;
  color: #334155;
}

[data-theme='dark'] .feature-lightbox__close {
  background: var(--ui-border, #4a5568);
  color: var(--ui-text, #f1f5f9);
}

[data-theme='dark'] .feature-lightbox__close:hover {
  background: #64748b;
  color: #f8fafc;
}

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

.feature-lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
  padding-top: 0.25rem;
}

.feature-lightbox__img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 7rem);
  margin-inline: auto;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.14);
}

.feature-lightbox__caption {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
  padding: 0 1rem;
}

body.feature-lightbox-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .feature-lightbox,
  .feature-lightbox__backdrop,
  .feature-lightbox__dialog,
  .feature-lightbox__close {
    transition: none;
  }

  .module-carousel__viewport,
  .module-carousel__track {
    transition: none;
  }
}

@media (max-width: 767px) {
  .feature-showcase__expand-hint {
    opacity: 1;
    transform: none;
  }

  .feature-lightbox {
    padding: 0.75rem;
  }

  .feature-lightbox__img {
    max-height: calc(100dvh - 6rem);
    border-radius: 10px;
  }

  .feature-lightbox__caption {
    font-size: 0.9375rem;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .feature-lightbox__backdrop {
    background: rgba(15, 23, 42, 0.65);
  }

  [data-theme='dark'] .feature-lightbox__backdrop {
    background: rgba(15, 23, 42, 0.75);
  }
}

.feature-showcase__placeholder {
  display: grid;
  place-content: center;
  gap: 0.5rem;
  min-height: 14rem;
  padding: 2rem;
  text-align: center;
  background: var(--placeholder-bg);
  color: var(--text-muted);
}

.feature-showcase__placeholder span {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.feature-showcase__placeholder small {
  font-size: 0.9375rem;
  color: var(--text);
  max-width: 18rem;
}

.feature-showcase__body h3 {
  font-size: clamp(1.35rem, 2vw, 1.625rem);
  margin: 0 0 0.85rem;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

@media (min-width: 56rem) {
  .feature-showcase__body {
    padding-left: 1.75rem;
    border-left: 2px solid var(--border);
  }
}

.feature-showcase__body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tabs__btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tabs__btn:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  color: var(--text);
}

.tabs__btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tabs__panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.tabs__panel h3 {
  margin-top: 0;
}

.tabs__panel pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 0.75rem;
  overflow-x: auto;
}

/* ——— Home: feature anchors + gallery (Jinn-like rhythm) ——— */

.feature-anchors__list {
  display: grid;
  gap: 4.5rem;
}

.feature-anchor {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1fr;
  min-width: 0;
}

@media (min-width: 56rem) {
  .feature-anchor {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3.25rem;
  }

  .feature-anchor--reverse .feature-anchor__copy {
    order: 2;
  }

  .feature-anchor--reverse .feature-anchor__media {
    order: 1;
  }
}

.feature-anchor__metric {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1rem;
  margin: 0 0 1.25rem;
}

.feature-anchor__metric strong {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-weight: 700;
}

.feature-anchor__metric span {
  max-width: 16rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.feature-anchor__copy h3 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.feature-anchor__text {
  margin: 0 0 1.35rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.feature-anchor__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.feature-anchor__link::after {
  content: '→';
  transition: transform 0.15s ease;
}

.feature-anchor__link:hover::after {
  transform: translateX(3px);
}

.feature-anchor__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  min-width: 0;
}

.feature-gallery {
  min-width: 0;
}

.feature-gallery__tabs {
  margin-bottom: 1.25rem;
  justify-content: center;
}

.feature-gallery .tabs__panel {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.feature-gallery__layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 56rem) {
  .feature-gallery__layout {
    grid-template-columns: minmax(12rem, 0.38fr) minmax(0, 1fr);
    gap: 1.75rem;
    padding: 1.5rem;
  }
}

.feature-gallery__nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 56rem) {
  .feature-gallery__nav {
    flex-direction: column;
    flex-wrap: nowrap;
    overflow: visible;
    padding-bottom: 0;
    max-height: 28rem;
    overflow-y: auto;
  }
}

.feature-gallery__nav-btn {
  flex: 0 0 auto;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 550;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

@media (min-width: 56rem) {
  .feature-gallery__nav-btn {
    white-space: normal;
    width: 100%;
  }
}

.feature-gallery__nav-btn:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.feature-gallery__nav-btn.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
}

.feature-gallery__stage {
  min-width: 0;
}

.feature-gallery__detail {
  display: none;
  gap: 1.25rem;
  align-items: start;
  grid-template-columns: 1fr;
}

.feature-gallery__detail.is-active {
  display: grid;
}

@media (min-width: 40rem) {
  .feature-gallery__detail.is-active {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.5rem;
    align-items: center;
  }
}

.feature-gallery__detail-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  min-width: 0;
}

.feature-gallery__detail-body h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.feature-gallery__detail-body p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.9875rem;
}

.feature-more__footer {
  display: flex;
  justify-content: center;
  margin: 1.75rem 0 0;
}

.cta {
  padding-bottom: 5.5rem;
}

.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 2.75rem;
  border-radius: var(--radius-lg);
  background: var(--cta-bg);
  color: var(--cta-text);
  border: 1px solid color-mix(in srgb, var(--border) 35%, var(--cta-bg));
  box-shadow: var(--shadow-lg);
}

.cta__copy {
  flex: 1 1 18rem;
  max-width: 36rem;
}

.cta__inner h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.cta__inner p,
.cta__lead {
  color: rgba(255, 255, 255, 0.78);
  margin: 0.65rem 0 0;
  line-height: 1.65;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cta .btn--primary {
  background: #fff;
  color: #0b1220;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.cta .btn--primary:hover {
  background: #f8fafc;
}

.cta .btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  box-shadow: none;
}

.cta .btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
  background: var(--bg-alt);
}

.footer__inner {
  display: grid;
  gap: 2rem;
}

.footer__brand p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 22rem;
  line-height: 1.6;
}

.footer__brand strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.footer nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.footer nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
    justify-content: space-between;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 768px) {
  .nav--desktop {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1.25rem;
    padding-top: 0.125rem;
    border-top: 1px solid var(--border);
  }

  .header__cta--desktop,
  .btn.header__cta--desktop {
    display: inline-flex;
  }

  .nav-toggle,
  .nav-mobile {
    display: none !important;
  }
}

/* --- Form pages (contacts, get-portal) --- */
.page-hero {
  padding: 4rem 0 2rem;
  background:
    radial-gradient(circle at 85% 0%, var(--page-glow), transparent 42%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  letter-spacing: -0.035em;
  font-weight: 700;
}

.page-hero__lead {
  margin: 0;
  color: var(--text-muted);
  max-width: 36rem;
}

/* После page-hero: меньше полного .section, но не вплотную к полоске */
.section--below-hero {
  padding-top: 2.5rem;
}

.page-grid {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 4rem;
}

@media (min-width: 900px) {
  .page-grid {
    grid-template-columns: 1fr 1.15fr;
    align-items: start;
  }
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
}

.info-card h2 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
}

.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.info-list li {
  display: grid;
  gap: 0.15rem;
}

.info-list dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.info-list dd {
  margin: 0;
  font-weight: 500;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
}

.form-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.form-card__hint {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.form {
  display: grid;
  gap: 1.25rem;
}

.form__row {
  display: grid;
  gap: 1.25rem;
}

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

.form__field {
  display: grid;
  gap: 0.4rem;
}

/* class display:grid иначе перекрывает UA [hidden] и поле «Платформа» видно всегда */
.form__field[hidden],
[hidden] {
  display: none !important;
}

.form__field label,
.form__field > span:first-child {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.form__field input,
.form__field textarea,
.form__field select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form__field input[type='radio'],
.form__field input[type='checkbox'] {
  width: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.form__field--choices {
  gap: 0.65rem;
  padding: 0.85rem 1rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
}

.form__field--choices legend {
  padding: 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.form__field label.form__choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
}

.form__choice input {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin: 0.2rem 0 0;
}

.form__choice span {
  flex: 1 1 auto;
  min-width: 0;
}

.form__choice code {
  font-size: 0.85em;
}

.form__field input:focus,
.form__field textarea:focus,
.form__field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form__field textarea {
  min-height: 7rem;
  resize: vertical;
}

.form__field small {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.form__field--hcaptcha {
  margin-top: 0.25rem;
}

.form__field--consent {
  margin-top: 0.15rem;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-muted);
  font-weight: 400;
  cursor: pointer;
}

.form-consent input[type='checkbox'] {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-consent a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-consent a:hover {
  color: var(--accent-dark);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.alert--success {
  background: var(--alert-success-bg);
  color: var(--alert-success-text);
  border: 1px solid var(--alert-success-border);
}

.alert--error {
  background: var(--alert-error-bg);
  color: var(--alert-error-text);
  border: 1px solid var(--alert-error-border);
}

.success { color: var(--alert-success-text); }
.error { color: var(--alert-error-text); }

.pricing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-bottom: 2.5rem;
}

.pricing-grid--channels {
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  align-items: stretch;
}

.pricing-toggle {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  margin: 1.5rem 0 2rem;
}

.pricing-toggle__track {
  display: inline-flex;
  padding: 0.3rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.pricing-toggle__btn {
  min-width: 9.5rem;
  padding: 0.65rem 1.35rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pricing-toggle__btn.is-active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.pricing-toggle__hint {
  margin: 0;
  max-width: 28rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pricing-card__price-wrap {
  margin: 0 0 0.75rem;
}

.pricing-card__price {
  display: inline-block;
  transition: opacity 0.15s ease;
}

.pricing-card__price.is-updating {
  opacity: 0.35;
}

.pricing-card__desc {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pricing-card__features {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pricing-card__features li + li {
  margin-top: 0.35rem;
}

.pricing-card__cta {
  margin-top: auto;
  align-self: flex-start;
}

.pricing-card__cta.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.pricing-section-title {
  margin: 2rem 0 0.35rem;
  font-size: 1.35rem;
}

.pricing-section-lead {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.pricing-compare {
  margin: 0 0 2.5rem;
}

.pricing-compare__table-wrap {
  margin-top: 1rem;
}

.pricing-compare__table td:last-child {
  color: inherit;
  font-weight: inherit;
}

.pricing-compare__table td[colspan] {
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-compare__note {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-compare__note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}

.pricing-card--dev {
  border-style: dashed;
}

.pricing-card__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.pricing-card__channel {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.pricing-card__name {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pricing-card__period {
  display: block;
  margin: 0.15rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.pricing-footnote {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pricing-included {
  margin-top: 2.5rem;
  padding: 1.75rem 1.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.pricing-included__list {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
  color: var(--text);
  line-height: 1.55;
  display: grid;
  gap: 0.35rem;
}

@media (min-width: 48rem) {
  .pricing-included__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem 1.5rem;
  }
}

.pricing-included__list li + li {
  margin-top: 0;
}

.pricing-included__term {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.pricing-toggle--inline {
  margin: 0;
  align-items: flex-start;
}

.pricing-toggle--inline .pricing-toggle__track {
  margin: 0;
}

.pricing-toggle--inline .pricing-toggle__btn {
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
}

.pricing-included__note {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.pricing-included__note:not(.is-active) {
  display: none;
}

.pricing-included__cta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-support {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.pricing-support-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}

.pricing-support-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 800px) {
  .pricing-support-grid--2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pricing-support__note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pricing-card--ai {
  border-color: color-mix(in srgb, #7c3aed 35%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in srgb, #7c3aed 18%, transparent);
}

.pricing-card--support {
  max-width: none;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow-sm);
}

/* ——— SEO sections (home) ——— */

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.hero__badges li {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.product-stats {
  padding: 0 0 3.5rem;
  position: relative;
}

.product-stats__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .product-stats__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.product-stat {
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.product-stat strong {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.product-stat span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.footer__tagline {
  font-weight: 600;
  color: var(--text) !important;
  margin-bottom: 0.35rem !important;
}

.seo-pillars__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seo-pillars__grid--8 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 960px) {
  .seo-pillars__grid--8 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.seo-usecases__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 960px) {
  .seo-pillars__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.seo-pillar,
.seo-usecase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.seo-pillar:hover,
.seo-usecase:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 20%, var(--border));
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  background: var(--accent-soft);
  color: var(--accent);
}

.card-icon svg {
  display: block;
}

.seo-pillar h3,
.seo-usecase h3 {
  margin: 0 0 0.6rem;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.seo-pillar p,
.seo-usecase p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.seo-compare__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.seo-compare__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 36rem;
}

.seo-compare__table th,
.seo-compare__table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.9rem;
  vertical-align: top;
}

.seo-compare__table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--surface) 92%, var(--accent) 8%);
}

.seo-compare__table tbody th[scope='row'] {
  font-weight: 600;
  white-space: nowrap;
}

.seo-compare__table tbody tr:last-child th,
.seo-compare__table tbody tr:last-child td {
  border-bottom: none;
}

.seo-compare__table td:last-child {
  color: var(--text);
  font-weight: 500;
}

.seo-compare__note {
  margin-top: 1rem;
  max-width: 48rem;
}

@media (max-width: 639px) {
  .seo-pillars__grid,
  .seo-usecases__grid {
    grid-template-columns: 1fr;
  }

  .cta__inner {
    padding: 1.75rem 1.5rem;
  }
}

/* ——— Landing / cases / blog ——— */

.product-stats__grid--3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .product-stats__grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.landing-footnote {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

.feature-anchor__heading {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-weight: 700;
}

.feature-anchor__media--tone {
  border: none;
  box-shadow: none;
  background: transparent;
}

.landing-anchor-visual {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.75rem;
  min-height: 14rem;
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
    var(--bg-alt);
  box-shadow: var(--shadow-sm);
}

.landing-anchor-visual__value {
  font-size: clamp(2.75rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--accent);
}

.landing-anchor-visual__label {
  max-width: 16rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.45;
}

.landing-highlights__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .landing-highlights__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .landing-highlights__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.landing-highlight {
  margin: 0;
  padding: 1rem 1.1rem 1rem 2.65rem;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9875rem;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
}

.landing-highlight::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 1.2rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent);
}

.section__head--compact {
  margin-bottom: 1.25rem;
}

.section__head--compact h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.landing-related__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.landing-related__links a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 550;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.landing-related__links a:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  color: var(--accent);
  background: var(--accent-soft);
}

.landing-split {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr minmax(14rem, 18rem);
}

.landing-bullets {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.landing-aside {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  height: fit-content;
  box-shadow: var(--shadow-sm);
}

.landing-aside h3 {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
}

.landing-aside__links {
  display: grid;
  gap: 0.45rem;
}

.landing-aside__links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.cases-grid,
.blog-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  align-items: stretch;
}

.cases-grid .case-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.case-card,
.blog-card {
  padding: 1.5rem 1.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.case-card:hover,
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 18%, var(--border));
}

.case-card h2,
.blog-card h2 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.2rem;
}

.case-card h2 a,
.blog-card h2 a {
  color: inherit;
  text-decoration: none;
}

.case-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.case-card__metrics strong {
  color: var(--text);
  font-size: 1rem;
}

.case-card__metrics--detail {
  margin: 1rem 0 1.5rem;
}

.blog-card__date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.updates-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.updates-card {
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.updates-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}

.updates-card__version {
  margin: 0;
  font-size: 1.375rem;
}

.updates-card__date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.updates-card__section h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.updates-card__section ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.updates-card__section li + li {
  margin-top: 0.35rem;
}

.updates-card__empty {
  margin: 0;
  color: var(--text-muted);
}

/* ——— Developers / SDK releases ——— */

.developers-releases .section__head {
  margin-bottom: 1.75rem;
}

.developers-releases__empty {
  margin: 0;
  color: var(--text-muted);
}

.developers-releases__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.developers-releases__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 40rem;
  table-layout: fixed;
}

.developers-releases__col--version {
  width: 9rem;
}

.developers-releases__col--date {
  width: 11rem;
}

.developers-releases__col--sha {
  width: auto;
}

.developers-releases__col--action {
  width: 11rem;
}

.developers-releases__table th,
.developers-releases__table td {
  padding: 1.15rem 2rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.9375rem;
  vertical-align: middle;
}

.developers-releases__table thead th {
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--surface) 92%, var(--accent) 8%);
  white-space: nowrap;
}

.developers-releases__table thead th:first-child,
.developers-releases__table tbody th[scope='row'],
.developers-releases__table tbody td:first-child {
  padding-left: 2.25rem;
}

.developers-releases__table thead th:last-child,
.developers-releases__table tbody td:last-child {
  padding-right: 2.25rem;
}

.developers-releases__table tbody tr:last-child th,
.developers-releases__table tbody tr:last-child td {
  border-bottom: none;
}

.developers-releases__version {
  font-weight: 600;
  white-space: nowrap;
}

.developers-releases__date {
  color: var(--text-muted);
  white-space: nowrap;
}

.developers-releases__sha-cell {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.developers-releases__sha {
  display: inline-block;
  max-width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.developers-releases__action {
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .developers-releases__table th,
  .developers-releases__table td {
    padding: 1rem 1.25rem;
  }

  .developers-releases__table thead th:first-child,
  .developers-releases__table tbody th[scope='row'],
  .developers-releases__table tbody td:first-child {
    padding-left: 1.25rem;
  }

  .developers-releases__table thead th:last-child,
  .developers-releases__table tbody td:last-child {
    padding-right: 1.25rem;
  }

  .developers-releases__sha-cell {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.article-page__inner {
  width: 100%;
  max-width: 42rem;
  min-width: 0;
}

.article-page h1 {
  margin: 0.5rem 0 0.75rem;
  font-size: clamp(1.5rem, 4.5vw, 2.125rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-page .section__lead {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: baseline;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.article-breadcrumb__current {
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.article-breadcrumb a {
  color: var(--accent);
  flex-shrink: 0;
}

.article-body {
  margin: 1.5rem 0;
  line-height: 1.65;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-body h2 {
  margin: 1.5rem 0 0.65rem;
  font-size: 1.2rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-body h3 {
  margin: 1.25rem 0 0.5rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-body p,
.article-body li,
.article-body blockquote,
.article-body td,
.article-body th {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-body ul,
.article-body ol {
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}

.article-body li {
  margin: 0.35rem 0;
}

.article-body img,
.article-body video,
.article-body iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

.article-body pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.article-body table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.article-body a {
  color: var(--accent);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.faq {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
}

.faq__item summary {
  cursor: pointer;
  font-weight: 600;
}

.faq__answer {
  margin-top: 0.75rem;
}

@media (max-width: 768px) {
  .landing-split {
    grid-template-columns: 1fr;
  }
}

.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

abbr[title] {
  text-decoration: underline dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  cursor: help;
}

.module-card__badge {
  display: inline-block;
  margin: 0.15rem 0.35rem 0.15rem 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.module-card__badges {
  margin: 0 0 0.75rem;
}

.module-card__footer {
  margin-top: auto;
  padding-top: 0.5rem;
}

.module-card__badge--paid {
  color: #9a3412;
  background: color-mix(in srgb, #ea580c 14%, transparent);
}

.module-card__badge--template {
  color: #1e40af;
  background: color-mix(in srgb, #3b82f6 14%, transparent);
}

.case-card--with-screenshot {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.case-card--with-screenshot .module-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.65rem 1.5rem;
}

.module-card__footer > .btn {
  align-self: flex-start;
}

.module-card__screenshot-link {
  display: block;
  flex-shrink: 0;
  overflow: hidden;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}

.case-card--with-screenshot .module-card__screenshot-link {
  margin: 0;
  border-radius: 0;
}

.module-card__screenshot {
  display: block;
  width: 100%;
  height: 11rem;
  object-fit: cover;
  object-position: top center;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.case-card--with-screenshot h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.2rem;
}

.case-card--with-screenshot h3 a {
  color: inherit;
  text-decoration: none;
}

.module-detail__screenshot {
  margin: 0 0 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--text) 8%, transparent);
}

.module-detail__screenshot .feature-showcase__expand {
  border-radius: 12px;
}

.module-detail__screenshot-img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.2s ease;
}

.module-carousel {
  position: relative;
  margin: 0 0 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--text) 8%, transparent);
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}

.module-carousel__stage {
  position: relative;
}

.module-carousel__viewport {
  overflow: hidden;
  min-height: 12rem;
  transition: height 0.35s ease;
}

.module-carousel__track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.35s ease;
  will-change: transform;
}

.module-carousel__slide {
  flex: 0 0 100%;
  margin: 0;
}

.module-carousel__expand {
  width: 100%;
}

.module-carousel__expand .module-detail__screenshot-img {
  vertical-align: middle;
}

.module-carousel__slide.is-active {
  z-index: 1;
}

.module-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--text) 10%, transparent);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.module-carousel__btn:hover {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.module-carousel__btn--prev {
  left: 0.75rem;
}

.module-carousel__btn--next {
  right: 0.75rem;
}

.module-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem 0.35rem;
}

.module-carousel__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 22%, transparent);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

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

.module-carousel__counter {
  margin: 0;
  padding: 0 1rem 0.85rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.module-detail__template {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: 0.95rem;
}

.module-detail__downloads {
  margin: 1.25rem 0 1.75rem;
}

.module-detail__requires ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.module-detail__infra {
  margin-top: 2rem;
}

.module-detail__infra h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.05rem;
}

.module-infra-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
  font-size: 0.875rem;
}

.module-infra-table th,
.module-infra-table td {
  border: 1px solid var(--border);
  padding: 0.45rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.module-infra-table th {
  background: var(--surface);
  font-weight: 600;
}

.module-detail__install {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.module-detail__install ol {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.modules-dev__main h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.1rem;
}

.modules-dev__main h3:first-of-type {
  margin-top: 1.5rem;
}

.modules-dev__grid {
  margin-top: 1rem;
}

.modules-dev__code {
  margin: 1rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 92%, var(--text) 8%);
  font-size: 0.8125rem;
  line-height: 1.55;
  overflow-x: auto;
}

.modules-dev__code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre;
}

.modules-dev__steps {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.modules-dev__steps li {
  line-height: 1.55;
}

.modules-dev__note {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.modules-dev__aside-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .modules-dev .landing-split {
    grid-template-columns: 1fr;
  }
}

/* --- Error / 404 --- */
.error-page {
  position: relative;
  min-height: calc(100vh - 12rem);
  display: flex;
  align-items: center;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, var(--page-glow), transparent 42%),
    radial-gradient(circle at 88% 70%, var(--hero-glow), transparent 40%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 55%, var(--bg) 100%);
}

.error-page__inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  text-align: center;
  margin: 0 auto;
}

.error-page__code {
  margin: 0 0 0.35rem;
  font-size: clamp(5.5rem, 18vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: var(--accent);
  opacity: 0.18;
  user-select: none;
  animation: error-code-in 0.7s ease-out both;
}

.error-page__code--muted {
  color: var(--text-muted);
  opacity: 0.22;
}

.error-page h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  letter-spacing: -0.035em;
  font-weight: 700;
  animation: error-fade-up 0.55s ease-out 0.08s both;
}

.error-page__lead {
  margin: 0 auto 1.75rem;
  max-width: 28rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
  animation: error-fade-up 0.55s ease-out 0.14s both;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  animation: error-fade-up 0.55s ease-out 0.2s both;
}

.error-page__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.25rem;
  font-size: 0.9375rem;
  animation: error-fade-up 0.55s ease-out 0.26s both;
}

.error-page__links a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.error-page__links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@keyframes error-code-in {
  from {
    transform: translateY(0.6rem) scale(0.96);
    filter: opacity(0);
  }
  to {
    transform: none;
    filter: none;
  }
}

@keyframes error-fade-up {
  from {
    opacity: 0;
    transform: translateY(0.65rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .error-page__code,
  .error-page h1,
  .error-page__lead,
  .error-page__actions,
  .error-page__links {
    animation: none;
  }
}

/* --- Cookie banner --- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 40rem;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.15rem;
}

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

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
}

.cookie-banner__text {
  flex: 1 1 16rem;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-muted);
}

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

.cookie-banner__accept {
  flex: 0 0 auto;
  margin-left: auto;
}

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9375rem;
}

.cookies-table th,
.cookies-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.cookies-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cookies-table code {
  font-size: 0.875em;
}

@media (max-width: 560px) {
  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .cookie-banner__accept {
    width: 100%;
    margin-left: 0;
  }
}



/* Demo slot picker */
.demo-picker {
  margin: 0.25rem 0 1.25rem;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.04), transparent 40%);
}

.demo-picker__head {
  margin-bottom: 0.85rem;
}

.demo-picker__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
}

.demo-picker__hint {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted, #64748b);
}

.demo-picker__days {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin-bottom: 0.85rem;
  scrollbar-width: thin;
}

.demo-picker__day {
  flex: 0 0 auto;
  min-width: 4.5rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 0.75rem;
  background: #fff;
  cursor: pointer;
  text-align: center;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.demo-picker__day:hover {
  border-color: #93c5fd;
}

.demo-picker__day.is-active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.demo-picker__day-wd {
  display: block;
  font-size: 0.75rem;
  opacity: 0.85;
  text-transform: lowercase;
}

.demo-picker__day-num {
  display: block;
  font-weight: 650;
  font-size: 0.95rem;
}

.demo-picker__times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.5rem;
}

.demo-picker__time {
  padding: 0.55rem 0.4rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 0.65rem;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.demo-picker__time:hover {
  border-color: #93c5fd;
}

.demo-picker__time.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.demo-picker__selected {
  margin: 0.85rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.9rem;
  font-weight: 600;
}

.demo-picker__empty,
.demo-picker__loading {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted, #64748b);
}

html[data-theme='dark'] .demo-picker {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.12), transparent 45%);
  border-color: rgba(148, 163, 184, 0.25);
}

html[data-theme='dark'] .demo-picker__day,
html[data-theme='dark'] .demo-picker__time {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(148, 163, 184, 0.28);
  color: #e2e8f0;
}

html[data-theme='dark'] .demo-picker__day.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

html[data-theme='dark'] .demo-picker__time.is-active {
  background: rgba(37, 99, 235, 0.25);
  border-color: #60a5fa;
  color: #bfdbfe;
}
