:root {
  color-scheme: light dark;
  --background: #f5f7fb;
  --surface: #ffffff;
  --surface-muted: #eef2f8;
  --text: #172033;
  --text-muted: #5c667a;
  --border: #d9e0eb;
  --accent: #5267e8;
  --accent-hover: #3f52ca;
  --accent-text: #ffffff;
  --focus: #a85b00;
  --shadow: 0 16px 42px rgb(31 43 78 / 8%);
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0e1421;
    --surface: #171f2e;
    --surface-muted: #202a3c;
    --text: #f1f4fa;
    --text-muted: #aeb8ca;
    --border: #303b50;
    --accent: #8292ff;
    --accent-hover: #9ba8ff;
    --accent-text: #101525;
    --focus: #ffb84d;
    --shadow: 0 16px 42px rgb(0 0 0 / 24%);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

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

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  transform: translateY(calc(-100% - 16px));
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 40px, 980px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 90%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  width: min(100% - 40px, 1400px);
  min-height: 68px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
  padding-block: 10px;
}

.brand,
.footer-brand {
  color: var(--text);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand {
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  min-width: 0;
  margin-left: auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.site-nav > a {
  display: inline-flex;
  min-height: 44px;
  padding-block: 9px;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav > a[aria-current="page"] {
  color: var(--text);
}

.language-switcher {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.language-switcher a {
  display: inline-flex;
  min-height: 36px;
  padding: 6px 8px;
  align-items: center;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
}

.language-switcher a[aria-current="page"] {
  background: var(--surface-muted);
  color: var(--text);
}

.header-action {
  display: flex;
  flex: 0 0 100%;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
}

.button:hover {
  background: var(--accent-hover);
  color: var(--accent-text);
}

.button-small {
  min-height: 40px;
  padding: 7px 14px;
}

.site-main {
  padding-block: 72px 88px;
}

.about-page {
  display: grid;
  gap: 20px;
}

.hero {
  padding: 8px 0 30px;
}

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

h1,
h2 {
  margin-top: 0;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.lead {
  max-width: 760px;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}

.about-page section {
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.about-page p {
  margin: 0 0 16px;
}

.about-page p:last-child {
  margin-bottom: 0;
}

.about-page ul,
.about-page ol {
  margin: 0;
  padding-left: 1.4rem;
}

.about-page li + li {
  margin-top: 8px;
}

.about-page li::marker {
  color: var(--accent);
  font-weight: 700;
}

.operator-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
}

.operator-details div {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-muted);
}

.operator-details dt {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.operator-details dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.legal-document {
  display: grid;
  gap: 20px;
}

.legal-document > header {
  padding-bottom: 24px;
}

.legal-document > header h1 {
  margin-bottom: 14px;
}

.legal-meta {
  margin: 0;
  color: var(--text-muted);
}

.legal-toc,
.legal-section,
.legal-note {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.legal-toc,
.legal-section {
  padding: clamp(24px, 5vw, 42px);
}

.legal-toc h2 {
  font-size: 1.25rem;
}

.legal-toc ol {
  columns: 2;
  column-gap: 44px;
  margin: 0;
  padding-left: 1.4rem;
}

.legal-toc li {
  break-inside: avoid;
  margin-bottom: 7px;
}

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

.legal-section {
  scroll-margin-top: 90px;
  box-shadow: var(--shadow);
}

.legal-section p {
  margin: 0 0 16px;
}

.legal-section p:last-child,
.legal-section ul:last-child,
.legal-section dl:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 0 0 16px;
  padding-left: 1.4rem;
}

.legal-section li + li {
  margin-top: 7px;
}

.legal-section li::marker {
  color: var(--accent);
}

.legal-note {
  margin-block: 20px;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  background: var(--surface-muted);
}

.legal-note p {
  margin: 0;
}

.home-page {
  display: grid;
  gap: 28px;
}

.home-hero,
.home-section,
.final-cta {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.home-hero {
  padding: clamp(32px, 7vw, 68px);
  background: linear-gradient(145deg, var(--surface), var(--surface-muted));
}

.home-hero h1 {
  max-width: 820px;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.home-actions .button {
  min-height: 48px;
  padding: 10px 18px;
  font-weight: 700;
  text-decoration: none;
}

.home-actions .button-secondary {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.home-actions .button-secondary:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.home-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 24px 0 0;
  padding: 0;
  color: var(--text-muted);
  list-style: none;
}

.home-trust li::before {
  margin-right: 7px;
  color: var(--accent);
  content: "✓";
  font-weight: 800;
}

.home-section,
.final-cta {
  padding: clamp(28px, 6vw, 48px);
}

.home-section > p:last-child,
.home-card > p:last-child,
.home-card > ul:last-child,
.pricing-card > p:last-child,
.pricing-card > ul:last-child,
.final-cta > p:last-child {
  margin-bottom: 0;
}

.home-grid,
.steps-grid,
.pricing-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.home-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.steps-grid,
.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}

.home-card,
.pricing-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-muted);
}

.home-card h3,
.pricing-card h3 {
  margin: 0 0 10px;
  line-height: 1.3;
}

.home-card p,
.pricing-card p {
  margin: 0 0 12px;
}

.home-card ul,
.pricing-card ul,
.home-section > ul {
  margin: 0 0 16px;
  padding-left: 1.4rem;
}

.home-card li + li,
.pricing-card li + li,
.home-section > ul li + li {
  margin-top: 6px;
}

.step-number {
  display: inline-flex;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
}

.pricing-card .price {
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 800;
}

.final-cta {
  text-align: center;
}

.final-cta h2,
.final-cta .lead {
  margin-inline: auto;
}

.final-cta .home-actions {
  justify-content: center;
}

.faq-document {
  display: grid;
  gap: 28px;
}

.faq-document > header {
  padding-bottom: 16px;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  padding: clamp(24px, 5vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.faq-item h2 {
  margin-bottom: 14px;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
}

.faq-item p,
.faq-item ul {
  margin: 0 0 14px;
}

.faq-item p:last-child,
.faq-item ul:last-child {
  margin-bottom: 0;
}

.faq-item ul {
  padding-left: 1.4rem;
}

.faq-item li + li {
  margin-top: 6px;
}

.faq-item li::marker {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  padding-block: 40px;
  font-size: 0.86rem;
}

.footer-grid p {
  margin: 0 0 3px;
}

.footer-grid .footer-brand {
  margin-bottom: 10px;
  font-size: 1rem;
}

.footer-contact,
.footer-contact nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.footer-contact nav {
  margin-bottom: 11px;
}

@media (max-width: 1040px) {
  .header-inner {
    padding-block: 10px;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .site-nav {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    gap: 4px 16px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 980px);
  }

  .header-inner {
    min-height: 0;
    padding-block: 12px;
    gap: 12px;
  }

  .site-nav {
    padding-bottom: 4px;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
  }

  .language-switcher {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .site-main {
    padding-block: 48px 60px;
  }

  .operator-details,
  .legal-toc ol,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .legal-toc ol {
    columns: 1;
  }

  .footer-contact,
  .footer-contact nav {
    align-items: flex-start;
  }
}
