:root {
  --bg: #06131e;
  --bg-soft: #0b1d2b;
  --surface: rgba(8, 24, 37, 0.78);
  --surface-strong: rgba(11, 31, 47, 0.92);
  --surface-light: rgba(240, 248, 255, 0.08);
  --border: rgba(170, 209, 233, 0.18);
  --border-strong: rgba(170, 209, 233, 0.32);
  --text: #f5fbff;
  --text-soft: #c7d6e1;
  --text-muted: #9bb0bf;
  --brand: #4dd0bf;
  --brand-strong: #20bba6;
  --brand-soft: rgba(77, 208, 191, 0.16);
  --accent: #ff8c61;
  --accent-strong: #ff7340;
  --accent-soft: rgba(255, 140, 97, 0.18);
  --warning: #ffd166;
  --shadow: 0 24px 80px rgba(2, 9, 16, 0.42);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --content-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(77, 208, 191, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 140, 97, 0.18), transparent 32%),
    linear-gradient(180deg, #07111a 0%, #081725 36%, #06131e 100%);
  min-width: 320px;
  transition: background 220ms ease, color 220ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 85%);
  pointer-events: none;
  transition: background-image 220ms ease, opacity 220ms ease;
}

body[data-theme="light"] {
  --bg: #edf4f8;
  --bg-soft: #f8fbfd;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-light: rgba(10, 35, 53, 0.06);
  --border: rgba(20, 57, 85, 0.12);
  --border-strong: rgba(20, 57, 85, 0.22);
  --text: #102233;
  --text-soft: #4d6579;
  --text-muted: #74899a;
  --brand: #169b90;
  --brand-strong: #0f857b;
  --brand-soft: rgba(22, 155, 144, 0.12);
  --accent: #ff8c61;
  --accent-strong: #ff6f3d;
  --accent-soft: rgba(255, 140, 97, 0.14);
  --warning: #b97a06;
  --shadow: 0 24px 70px rgba(24, 56, 84, 0.14);
  background:
    radial-gradient(circle at top left, rgba(22, 155, 144, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 140, 97, 0.16), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #f2f7fb 44%, #eaf2f7 100%);
}

body[data-theme="light"]::before {
  background-image:
    linear-gradient(rgba(16, 34, 51, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 34, 51, 0.05) 1px, transparent 1px);
}

body[data-theme="light"] .site-header__inner {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow: 0 18px 44px rgba(24, 56, 84, 0.08);
}

body[data-theme="light"] .site-header.scrolled .site-header__inner,
body[data-theme="light"] .site-nav.is-open {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--border);
  box-shadow: 0 18px 48px rgba(24, 56, 84, 0.14);
}

body[data-theme="light"] .menu-button,
body[data-theme="light"] .theme-toggle,
body[data-theme="light"] .nav-toggle {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body[data-theme="light"] .popup-menu a,
body[data-theme="light"] .pill,
body[data-theme="light"] .metric-card,
body[data-theme="light"] .quick-links a,
body[data-theme="light"] .faq-item,
body[data-theme="light"] .field input,
body[data-theme="light"] .field select,
body[data-theme="light"] .field textarea,
body[data-theme="light"] .btn-secondary {
  background: rgba(10, 35, 53, 0.035);
}

body[data-theme="light"] .popup-menu a[aria-current="page"] {
  background: rgba(22, 155, 144, 0.08);
}

body[data-theme="light"] .hero__content,
body[data-theme="light"] .hero__panel,
body[data-theme="light"] .product-card,
body[data-theme="light"] .region-card,
body[data-theme="light"] .support-card,
body[data-theme="light"] .faq-card,
body[data-theme="light"] .contact-card,
body[data-theme="light"] .form-card,
body[data-theme="light"] .site-footer__inner {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 248, 251, 0.98) 100%);
  box-shadow: var(--shadow);
}

body[data-theme="light"] .product-card--featured {
  border-color: rgba(255, 140, 97, 0.26);
  background: linear-gradient(180deg, rgba(255, 245, 240, 0.95) 0%, rgba(255, 249, 246, 0.98) 100%);
}

body[data-theme="light"] .product-card__label,
body[data-theme="light"] .theme-toggle__value {
  background: rgba(10, 35, 53, 0.055);
}

body[data-theme="light"] .brand img,
body[data-theme="light"] .footer-brand img {
  filter: drop-shadow(0 10px 22px rgba(24, 56, 84, 0.08));
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.container {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 0;
  transition: padding 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.site-header.scrolled {
  padding: 12px 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(8, 19, 30, 0.28);
  backdrop-filter: blur(22px);
}

.site-header.scrolled .site-header__inner,
.site-nav.is-open {
  background: rgba(7, 18, 28, 0.9);
  border-color: var(--border);
  box-shadow: 0 14px 40px rgba(3, 10, 17, 0.28);
}

.brand {
  flex-shrink: 0;
}

.brand img {
  width: 166px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.site-nav a {
  color: var(--text-soft);
  font-size: 0.96rem;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.popup-menu a:hover,
.popup-menu a:focus-visible {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-group {
  position: relative;
}

.menu-button,
.theme-toggle,
.nav-toggle {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.menu-button:hover,
.menu-button:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible,
.nav-toggle:hover,
.nav-toggle:focus-visible {
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.theme-toggle {
  justify-content: space-between;
  min-width: 168px;
  padding: 8px 10px 8px 12px;
  gap: 12px;
}

.theme-toggle__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.theme-toggle__label {
  font-size: 0.92rem;
  font-weight: 700;
}

.theme-toggle__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.theme-toggle__icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff3cd 0%, #ffd166 56%, #ff8c61 100%);
  box-shadow:
    0 0 0 1px rgba(255, 209, 102, 0.28),
    0 0 18px rgba(255, 140, 97, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.theme-toggle__icon::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(7, 18, 28, 0.96);
  transition: transform 180ms ease, opacity 180ms ease;
}

body[data-theme="light"] .theme-toggle__icon {
  box-shadow:
    0 0 0 6px rgba(255, 209, 102, 0.14),
    0 0 20px rgba(255, 140, 97, 0.16);
}

body[data-theme="light"] .theme-toggle__icon::after {
  opacity: 0;
  transform: scale(0.25);
}

.menu-button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.menu-button[aria-expanded="true"]::after {
  transform: rotate(-135deg) translateY(-1px);
}

.popup-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 250px;
  padding: 12px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.popup-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.popup-menu a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  overflow-wrap: anywhere;
}

.popup-menu a[aria-current="page"] {
  color: var(--text);
  border-color: var(--border);
  background: rgba(77, 208, 191, 0.08);
}

.popup-menu small {
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff7f2;
  box-shadow: 0 16px 40px rgba(255, 115, 64, 0.22);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--border-strong);
}

.btn-link {
  color: var(--brand);
  font-weight: 700;
}

.nav-toggle {
  display: none;
}

.nav-toggle__line {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  display: block;
}

.hero {
  padding: 42px 0 36px;
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

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

.hero__layout--single .hero__content {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.hero__layout--single .eyebrow,
.hero__layout--single .hero__actions {
  justify-content: center;
}

.hero__layout--single .hero__lede {
  margin-left: auto;
  margin-right: auto;
}

.locale-ua .hero__layout--single .hero__content {
  max-width: 1120px;
  min-height: 340px;
  justify-content: center;
}

.locale-ua #support .highlights-grid {
  grid-template-columns: 1fr;
}

.hero__content,
.hero__panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(10, 27, 42, 0.92) 0%, rgba(8, 20, 31, 0.94) 100%);
  box-shadow: var(--shadow);
}

.hero__content {
  padding: 54px;
}

.hero__content::before,
.hero__panel::before,
.support-card::before,
.contact-card::before,
.product-card--featured::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(77, 208, 191, 0.22), transparent 72%);
  pointer-events: none;
}

.hero__panel {
  padding: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h1 {
  margin-top: 18px;
  font-size: clamp(3rem, 6vw, 5.35rem);
  max-width: 12ch;
}

.hero__lede {
  margin: 22px 0 0;
  max-width: 60ch;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__microcopy {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.inline-links a,
.hero__microcopy a {
  color: var(--brand);
}

.inline-links a:hover,
.inline-links a:focus-visible,
.hero__microcopy a:hover,
.hero__microcopy a:focus-visible {
  color: #8ce5d9;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.pill strong {
  color: var(--text);
}

.hero-panel__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-panel__title strong {
  font-size: 1.08rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metrics-grid {
  display: grid;
  gap: 14px;
}

.metric-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.metric-card strong {
  display: block;
  font-size: 1.05rem;
}

.metric-card span {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  line-height: 1.65;
}

.metric-card small {
  display: block;
  margin-top: 10px;
  color: var(--warning);
  font-size: 0.82rem;
}

.quick-links {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-soft);
}

.quick-links a span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.section {
  padding: 42px 0;
}

.section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section__header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 12ch;
}

.section__header p {
  max-width: 54ch;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.product-grid,
.region-grid,
.highlights-grid,
.footer-grid {
  display: grid;
  gap: 18px;
}

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

.product-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(9, 25, 38, 0.94) 0%, rgba(7, 19, 30, 0.96) 100%);
  min-height: 100%;
}

.product-card--featured {
  border-color: rgba(255, 140, 97, 0.32);
  background:
    linear-gradient(180deg, rgba(37, 20, 18, 0.94) 0%, rgba(20, 16, 24, 0.96) 100%);
}

.product-card__label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-card--featured .product-card__label {
  background: var(--accent-soft);
  color: var(--accent);
}

.product-card h3 {
  margin-top: 18px;
  font-size: 1.72rem;
}

.product-card p {
  margin: 14px 0 0;
  color: var(--text-soft);
  line-height: 1.72;
}

.product-card ul,
.contact-card ul,
.footer-links ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.product-card li,
.contact-card li,
.footer-links li {
  position: relative;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.7;
}

.product-card li + li,
.contact-card li + li,
.footer-links li + li {
  margin-top: 10px;
}

.product-card li::before,
.contact-card li::before,
.footer-links li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.product-card__footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.product-card__meta {
  color: var(--text-muted);
  font-size: 0.92rem;
}

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

.region-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(9, 25, 38, 0.88) 0%, rgba(7, 19, 30, 0.95) 100%);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.region-card:hover,
.region-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.region-card__country {
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warning);
}

.region-card strong {
  font-size: 1.34rem;
}

.region-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.region-card span {
  margin-top: auto;
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.highlights-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.highlights-grid--single {
  grid-template-columns: 1fr;
}

.support-card,
.faq-card,
.contact-card,
.form-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(9, 25, 38, 0.92) 0%, rgba(7, 19, 30, 0.96) 100%);
  box-shadow: var(--shadow);
}

.support-card h2,
.faq-card h2,
.contact-card h2 {
  font-size: 2rem;
}

.support-card p,
.faq-card p,
.contact-card p,
.footer-brand p {
  margin: 14px 0 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.faq-item {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 0 20px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--brand);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0;
  padding: 0 0 18px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
}

.contact-card__note {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 800;
}

.legal-note {
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.legal-note a {
  color: var(--brand);
}

.lead-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.fieldset__legend {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #7e97a8;
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-soft) 50%),
    linear-gradient(135deg, var(--text-soft) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 22px,
    calc(100% - 16px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(77, 208, 191, 0.42);
  box-shadow: 0 0 0 4px rgba(77, 208, 191, 0.12);
}

.field textarea {
  min-height: 156px;
  resize: vertical;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: rgba(255, 140, 97, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 140, 97, 0.12);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.form-status.is-error {
  color: var(--accent);
}

.form-status.is-success {
  color: var(--brand);
}

.site-footer {
  padding: 18px 0 60px;
}

.site-footer__inner {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(9, 25, 38, 0.92) 0%, rgba(7, 19, 30, 0.96) 100%);
  box-shadow: var(--shadow);
  padding: 30px;
}

.footer-grid {
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.8fr));
}

.footer-brand img {
  width: 168px;
}

.footer-links h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-soft);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-bottom a {
  color: var(--text-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 420ms ease, transform 420ms ease;
}

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

.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;
}

.legal-page main {
  padding-bottom: 20px;
}

.legal-page .page-shell {
  overflow: visible;
}

.legal-hero {
  padding-top: 26px;
}

.legal-hero__content {
  max-width: 1120px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.legal-section {
  padding-top: 10px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.legal-toc,
.legal-article {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(10, 27, 42, 0.92) 0%, rgba(8, 20, 31, 0.94) 100%);
  box-shadow: var(--shadow);
}

.legal-toc {
  position: sticky;
  top: 118px;
  padding: 26px;
}

.legal-toc h2 {
  margin: 14px 0 18px;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
}

.legal-toc__nav {
  display: grid;
  gap: 18px;
}

.legal-toc__group,
.legal-toc__content {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.legal-toc__group strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.98rem;
}

.legal-toc__group ul,
.legal-toc__content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.legal-toc__group li,
.legal-toc__content li {
  margin: 0;
}

.legal-toc a {
  color: var(--text-soft);
  line-height: 1.5;
  transition: color 160ms ease;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--text);
}

.legal-article {
  padding: 30px;
}

.legal-article__meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.legal-document-title {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}

.legal-prose {
  color: var(--text-soft);
  line-height: 1.78;
}

.legal-prose > :first-child {
  margin-top: 0;
}

.legal-prose p,
.legal-prose ul,
.legal-prose ol {
  margin: 0 0 1.2rem;
}

.legal-prose h2,
.legal-prose h3,
.legal-prose h4 {
  color: var(--text);
  margin: 2.1rem 0 0.9rem;
  line-height: 1.24;
  scroll-margin-top: 124px;
}

.legal-prose h4 {
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.legal-prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-prose a:hover,
.legal-prose a:focus-visible {
  color: var(--text);
}

.legal-prose .st-c-dark-blue {
  color: var(--brand);
}

.legal-prose .pb-3 {
  margin-bottom: 1.35rem;
}

.legal-prose .b-back-to-top {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.legal-prose .b-back-to-top a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

body[data-theme="light"] .legal-toc,
body[data-theme="light"] .legal-article {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 248, 251, 0.98) 100%);
  box-shadow: var(--shadow);
}

body[data-theme="light"] .legal-toc__group,
body[data-theme="light"] .legal-toc__content,
body[data-theme="light"] .legal-article__meta {
  background: rgba(10, 35, 53, 0.035);
}

@media (max-width: 1180px) {
  .hero__layout,
  .highlights-grid,
  .contact-layout,
  .legal-layout {
    grid-template-columns: 1fr;
  }

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

  .legal-toc {
    position: static;
  }
}

@media (max-width: 980px) {
  .site-header__inner {
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 10px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-actions {
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 48px;
    height: 48px;
    padding: 0;
  }

  .hero__content,
  .hero__panel,
  .support-card,
  .faq-card,
  .contact-card,
  .legal-toc,
  .legal-article,
  .form-card,
  .site-footer__inner {
    padding: 24px;
  }

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

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

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .site-header {
    padding: 12px 0;
  }

  .site-header__inner {
    padding: 12px 14px;
    gap: 14px;
  }

  .brand img {
    width: 150px;
  }

  .menu-button,
  .theme-toggle {
    padding: 10px 12px;
  }

  .hero {
    padding-top: 18px;
  }

  .hero__content {
    padding-top: 30px;
  }

  .legal-article {
    padding: 24px;
  }

  h1 {
    font-size: clamp(2.6rem, 15vw, 4.1rem);
  }

  .section__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .region-grid,
  .field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .header-actions .btn-primary {
    flex: 1 1 auto;
  }

  .popup-menu {
    right: auto;
    left: 0;
    min-width: min(280px, calc(100vw - 48px));
  }

  .hero__actions,
  .support-actions,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .menu-button,
  .theme-toggle {
    width: 100%;
  }
}
