:root {
  --color-primary: #384b70;
  --color-secondary: #507687;
  --color-background: #fcfaee;
  --color-accent: #b8001f;
  --color-surface: #ffffff;
  --color-text: #1d2433;
  --color-muted: #5d6678;
  --font-base: "Segoe UI", Arial, sans-serif;
  --font-heading: "Segoe UI", Arial, sans-serif;
  --font-size-base: 16px;
  --font-size-h1: clamp(1.9rem, 4vw, 3rem);
  --font-size-h2: clamp(1.4rem, 3vw, 2.2rem);
  --font-size-h3: clamp(1.1rem, 2vw, 1.45rem);
  --shadow-soft: 0 8px 24px rgba(56, 75, 112, 0.12);
  --shadow-strong: 0 14px 40px rgba(56, 75, 112, 0.2);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --container: 1140px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.6;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover,
a:focus-visible {
  color: var(--color-accent);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: var(--space-sm) var(--space-md);
}

.skip-link:focus {
  left: 0;
  z-index: 1000;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(252, 250, 238, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(80, 118, 135, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0.8rem 0;
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-primary);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-sm);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(80, 118, 135, 0.15);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(56, 75, 112, 0.3);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
  z-index: 9999999999999999999;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: #f3f6fb;
  border-color: rgba(56, 75, 112, 0.55);
  outline: none;
}

.menu-bars {
  width: 20px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-bar {
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 10px;
  transform-origin: center;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.site-header.menu-open .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .menu-bar:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: var(--space-2xl) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: var(--space-xl);
  align-items: center;
}

.badge-row {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.badge {
  background: rgba(56, 75, 112, 0.12);
  border: 1px solid rgba(56, 75, 112, 0.2);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
}

h1,
h2,
h3 {
  margin: 0 0 var(--space-md);
  color: var(--color-primary);
  font-family: var(--font-heading);
  line-height: 1.2;
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

.price-wrap {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin: var(--space-md) 0 var(--space-lg);
}

.price-current {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
}

.price-old {
  color: var(--color-muted);
  text-decoration: line-through;
}

.panel {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: var(--space-lg);
}

.form-grid {
  display: grid;
  gap: var(--space-sm);
}

label {
  font-weight: 600;
  color: var(--color-primary);
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(56, 75, 112, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(80, 118, 135, 0.15);
  outline: none;
}
.footer-grid nav{
  text-align: center;
}
.error {
  color: var(--color-accent);
  font-size: 0.9rem;
  min-height: 1.2rem;
}

.check-row {
  display: flex;
  gap: var(--space-xs);
  align-items: flex-start;
}

.check-row input {
  width: auto;
  margin-top: 0.2rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-weight: 700;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--color-accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  color: white;
}

.btn-secondary {
  background: var(--color-secondary);
}

.section {
  padding: var(--space-2xl) 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(80, 118, 135, 0.2);
  padding: var(--space-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.faq-list {
  display: grid;
  gap: var(--space-sm);
}

details {
  background: #fff;
  border: 1px solid rgba(80, 118, 135, 0.25);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-primary);
}

.cta-box {
  text-align: center;
  background: linear-gradient(135deg, rgba(56, 75, 112, 0.95), rgba(80, 118, 135, 0.95));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-strong);
}

.cta-box h2,
.cta-box p {
  color: #fff;
}

.site-footer {
  margin-top: var(--space-2xl);
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-xl) 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ffd7de;
}

.legal-main {
  padding: var(--space-2xl) 0;
}

.legal-main article {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: var(--space-xl);
}

.thank-you {
  min-height: 75vh;
  display: grid;
  place-items: center;
  padding: var(--space-xl) 0;
}

.thank-you-card {
  text-align: center;
  max-width: 640px;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  background: #fff;
  border: 1px solid rgba(56, 75, 112, 0.2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-strong);
  padding: var(--space-md);
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.cookie-settings {
  margin-top: var(--space-md);
  border-top: 1px solid rgba(80, 118, 135, 0.25);
  padding-top: var(--space-md);
  display: none;
}

.cookie-settings.visible {
  display: block;
}

.switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

@media (max-width: 1200px) {
  :root {
    --space-2xl: 3.25rem;
  }

  .hero {
    padding: var(--space-xl) 0;
  }
}

@media (max-width: 992px) {
  .hero-grid,
  .cards,
  .two-col {
    grid-template-columns: 1fr;
  }

  .site-nav ul {
    justify-content: center;
  }

  .hero-grid article,
  .hero-grid aside {
    max-width: 760px;
  }

  .cards {
    gap: var(--space-sm);
  }
}

@media (max-width: 980px) {
  :root {
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
  }

  .site-nav ul {
    gap: var(--space-xs);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(252, 250, 238, 0.99);
    display: none;
    z-index: 98;
    padding: 6.2rem 1rem 2rem;
    overflow-y: auto;
  }

  .site-header.menu-open .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--space-sm);
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a {
    display: block;
    width: 100%;
    font-size: 1rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid rgba(56, 75, 112, 0.2);
    border-radius: var(--radius-sm);
  }

  .panel {
    padding: var(--space-md);
  }

  .price-current {
    font-size: 1.7rem;
  }

  .cta-box {
    padding: var(--space-lg);
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

@media (max-width: 576px) {
  :root {
    --font-size-base: 15px;
  }

  .container {
    width: min(100% - 1rem, var(--container));
  }


  .badge-row {
    gap: 0.4rem;
  }

  .badge {
    font-size: 0.82rem;
    padding: 0.32rem 0.62rem;
  }

  .btn {
    width: 100%;
  }

  .cookie-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  h1 {
    line-height: 1.25;
  }

  h2 {
    line-height: 1.3;
  }

  .price-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .price-current {
    font-size: 1.45rem;
  }

  .card {
    padding: var(--space-sm);
  }

  details {
    padding: var(--space-sm);
  }

  .legal-main article {
    padding: var(--space-md);
  }
}

@media (max-width: 375px) {
  :root {
    --font-size-base: 14px;
  }

  .site-nav a {
    padding: 0.72rem 0.8rem;
  }

  .panel,
  .cta-box {
    border-radius: var(--radius-md);
  }

  .cookie-banner {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    padding: var(--space-sm);
  }
}

@media (max-width: 320px) {
  :root {
    --font-size-base: 13px;
    --space-sm: 0.6rem;
    --space-md: 0.8rem;
  }

  .container {
    width: calc(100% - 0.6rem);
  }

  .site-nav a {
    font-size: 0.9rem;
    padding: 0.65rem 0.7rem;
  }

  .badge {
    font-size: 0.76rem;
  }

  .btn {
    padding: 0.7rem 0.85rem;
    font-size: 0.92rem;
  }

  .cookie-banner {
    left: 0.3rem;
    right: 0.3rem;
    bottom: 0.3rem;
  }

  .switch-row {
    gap: 0.35rem;
  }
}

