:root {
  --color-bg: #f5f7fb;
  --color-surface: #ffffff;
  --color-surface-alt: #eef2f9;
  --color-text: #1d2433;
  --color-muted: #5b667c;
  --color-primary: #1e4fd6;
  --color-primary-dark: #153a9c;
  --color-accent: #16a57d;
  --color-border: #d7deed;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 6px 20px rgba(18, 35, 77, 0.08);
  --shadow-md: 0 12px 30px rgba(18, 35, 77, 0.12);
  --max-width: 1140px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--color-text);
  background: linear-gradient(180deg, #f7f9fe 0%, #f5f7fb 38%, #eef3fb 100%);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
}

.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  box-shadow: var(--shadow-sm);
}

.logo-text {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
}

.menu-toggle {
  border: 1px solid var(--color-border);
  background: #fff;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-content: center;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
}

.menu {
  position: absolute;
  top: 76px;
  right: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1rem;
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 220px;
}

.menu.open {
  display: flex;
}

.menu a {
  color: var(--color-text);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.82rem 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  border-color: var(--color-border);
  color: var(--color-text);
  background: #fff;
}

.hero {
  padding: 4.2rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

h1, h2, h3 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.45rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.14rem;
  margin-bottom: 0.5rem;
}

.hero-content p {
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-points li {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  min-height: 280px;
  object-fit: cover;
}

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

.section-alt {
  background: var(--color-surface-alt);
}

.section-header {
  margin-bottom: 1.4rem;
}

.cards-grid {
  display: grid;
  gap: 1rem;
}

.card, .step, .contact-card, .legal-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.card {
  padding: 1.2rem;
}

.card p {
  color: var(--color-muted);
}

.steps-grid {
  display: grid;
  gap: 1rem;
}

.step {
  padding: 1.2rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(30, 79, 214, 0.12);
  color: var(--color-primary-dark);
  font-weight: 800;
  margin-bottom: 0.7rem;
}

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

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.faq-answer p {
  color: var(--color-muted);
  padding: 0 1rem 1rem;
}

.faq-item.open .faq-answer {
  max-height: 260px;
}

.contact-main, .legal-main {
  padding: 2.5rem 0 3rem;
}

.contact-grid {
  display: grid;
  gap: 1rem;
}

.contact-card {
  padding: 1.2rem;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.contact-list strong {
  display: block;
}

form {
  display: grid;
  gap: 0.9rem;
}

label {
  font-weight: 600;
}

input, textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.75rem 0.8rem;
  font: inherit;
  color: var(--color-text);
  background: #fff;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.field-error {
  border-color: #c83737;
}

.form-message {
  display: none;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  font-size: 0.93rem;
}

.form-message.success {
  display: block;
  background: rgba(22, 165, 125, 0.14);
  color: #0b6a50;
}

.form-message.error {
  display: block;
  background: rgba(200, 55, 55, 0.14);
  color: #872a2a;
}

.legal-card {
  padding: 1.3rem;
  max-width: 900px;
  margin: 0 auto;
}

.legal-meta {
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.legal-summary {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  margin: 1rem 0 1.2rem;
}

.legal-summary ul {
  margin-left: 1rem;
  display: grid;
  gap: 0.4rem;
}

.legal-card section {
  margin: 1.2rem 0;
}

.legal-card p,
.legal-card li {
  color: #334155;
}

.legal-card ul {
  margin-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.site-footer {
  margin-top: 2rem;
  background: #0f1b37;
  color: #e6edff;
  padding-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 1rem;
}

.footer-title {
  font-size: 1.03rem;
  margin-bottom: 0.6rem;
  color: #fff;
}

.site-footer a {
  color: #cddcff;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 1rem;
  padding: 1rem 0;
  font-size: 0.92rem;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 0;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: none;
}

.back-to-top.show {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(30, 79, 214, 0.28);
  outline-offset: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 860px) {
  .menu-toggle {
    display: none;
  }

  .menu {
    position: static;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    min-width: unset;
    background: transparent;
    box-shadow: none;
    border: 0;
    padding: 0;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .faq-answer,
  .btn {
    transition: none !important;
  }
}