:root {
  --color-primary: #0F2854;
  --color-secondary: #1C4D8D;
  --color-accent: #4988C4;
  --color-soft: #BDE8F5;
  --color-bg: #f6fbff;
  --color-text: #13233d;
  --color-muted: #4a5e7f;
  --color-white: #ffffff;
  --color-success: #1f7a4e;
  --color-error: #c23636;
  --font-main: "Inter", "Segoe UI", Arial, sans-serif;
  --font-heading: "Poppins", "Segoe UI", Arial, sans-serif;
  --shadow-sm: 0 8px 20px rgba(15, 40, 84, 0.08);
  --shadow-md: 0 16px 42px rgba(15, 40, 84, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.2rem;
  --space-2xl: 3rem;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover,
a:focus-visible {
  color: var(--color-primary);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(73, 136, 196, 0.18);
  box-shadow: 0 6px 18px rgba(15, 40, 84, 0.06);
}

.header-row {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-primary);
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  box-shadow: 0 0 0 3px rgba(73, 136, 196, 0.2);
}

.nav-toggle {
  display: none;
  border: 1px solid #a8c7e2;
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  flex-direction: column;
  gap: 4px;
}

.burger-line {
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 999px;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.nav-toggle.is-open .burger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open .burger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .burger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
}

.hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  background: linear-gradient(130deg, #eaf7fc 0%, #f6fbff 45%, #d7edf8 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-xl);
  align-items: center;
}

.badges {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
}

.badge {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
  color: var(--color-primary);
}

.hero p {
  margin: 0 0 var(--space-md);
  color: var(--color-muted);
}

.price-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.price-new {
  font-size: 2rem;
  color: var(--color-primary);
  font-weight: 800;
}

.price-old {
  font-size: 1.2rem;
  color: #6f7f99;
  text-decoration: line-through;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
}

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

.section h2 {
  margin-top: 0;
  margin-bottom: var(--space-md);
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  color: var(--color-primary);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

article {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.list {
  margin: 0;
  padding-left: 1rem;
}

.list li + li {
  margin-top: var(--space-xs);
}

.form {
  display: grid;
  gap: var(--space-sm);
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

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

input,
textarea {
  width: 100%;
  border: 1px solid #c7d5e8;
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.8rem;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(73, 136, 196, 0.18);
}

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

.field-error {
  min-height: 1.1rem;
  font-size: 0.8rem;
  color: var(--color-error);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.checkbox-row input {
  width: auto;
  margin-top: 0.15rem;
}

.btn {
  border: 0;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  cursor: pointer;
  padding: 0.78rem 1.2rem;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

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

.btn.secondary {
  background: var(--color-secondary);
}

.btn.light {
  background: var(--color-white);
  color: var(--color-primary);
  border: 1px solid #a4c5de;
}

.faq details {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.faq details + details {
  margin-top: var(--space-sm);
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
}

.cta-band {
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  background: linear-gradient(120deg, #0f2854 0%, #1c4d8d 70%);
  color: var(--color-white);
}

.cta-band h2,
.cta-band p,
.cta-band a {
  color: var(--color-white);
}

.site-footer {
  margin-top: var(--space-2xl);
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-xl) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-md);
  align-items: center;
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #d7eaff;
}

.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 70;
  max-width: 760px;
  margin-inline: auto;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid #ccdef1;
  padding: var(--space-md);
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-sm);
}

.cookie-settings {
  margin-top: var(--space-sm);
  border-top: 1px solid #d7e6f6;
  padding-top: var(--space-sm);
  display: none;
}

.cookie-settings.show {
  display: block;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  background-color: #bdcfe2;
  transition: 0.3s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--color-secondary);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.legal {
  padding: var(--space-2xl) 0;
}

.legal article {
  margin-bottom: var(--space-md);
}

.thank-you {
  min-height: 75vh;
  display: grid;
  place-items: center;
  padding: var(--space-2xl) 0;
}

.thank-card {
  width: min(700px, 100% - 2rem);
  text-align: center;
}

.thank-card h1 {
  margin-top: 0;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
  font-family: var(--font-heading);
}

.thank-card > p {
  margin-bottom: var(--space-lg);
  color: var(--color-muted);
}

.thank-steps,
.thank-order,
.thank-contact {
  text-align: left;
  border: 1px solid #d7e6f6;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background: #f8fcff;
  margin-bottom: var(--space-md);
}

.thank-steps h2,
.thank-order h2,
.thank-contact h2 {
  margin-top: 0;
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
  font-size: 1.1rem;
}

.thank-order p,
.thank-contact p {
  margin: 0.25rem 0;
}

@media (max-width: 1200px) {
  :root {
    --space-2xl: 2.6rem;
    --space-xl: 2rem;
  }
}

@media (max-width: 1024px) {
  .container {
    width: min(100% - 1.5rem, var(--container));
  }

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

@media (max-width: 960px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--color-white);
    border-bottom: 0;
    display: none;
    padding: 5.5rem 1rem 2rem;
    width: 100vw;
    min-height: 100vh;
    overflow-y: auto;
    z-index: 60;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1.3rem;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 0.8rem 0.9rem;
    background: #f1f7fc;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 61;
  }

  .price-row {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  :root {
    --space-2xl: 2.2rem;
    --space-xl: 1.75rem;
    --space-lg: 1.2rem;
  }

  .hero {
    padding-top: var(--space-xl);
  }

  .header-row {
    min-height: 66px;
  }

  .card,
  article,
  .cta-band {
    padding: var(--space-md);
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 576px) {
  body {
    font-size: 0.95rem;
  }

  .container {
    width: min(100% - 1rem, var(--container));
  }

  .brand {
    font-size: 1.05rem;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .price-new {
    font-size: 1.7rem;
  }

  .price-old {
    font-size: 1rem;
  }

  .cookie-banner {
    inset: auto 0.5rem 0.5rem 0.5rem;
    padding: 0.85rem;
  }
}

@media (max-width: 480px) {
  .badge {
    width: 100%;
    text-align: center;
  }

  .checkbox-row {
    font-size: 0.85rem;
  }

  .footer-links {
    gap: 0.6rem;
  }

  .footer-links a {
    font-size: 0.9rem;
  }
}

@media (max-width: 375px) {
  .header-row {
    min-height: 62px;
  }

  .nav-toggle {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .hero h1 {
    font-size: 1.45rem;
  }

  input,
  textarea {
    font-size: 0.9rem;
    padding: 0.65rem 0.7rem;
  }
}

@media (max-width: 320px) {
  :root {
    --space-2xl: 1.7rem;
    --space-xl: 1.3rem;
    --space-lg: 1rem;
    --space-md: 0.85rem;
  }

  body {
    font-size: 0.9rem;
  }

  .brand {
    font-size: 0.95rem;
  }

  .hero h1 {
    font-size: 1.28rem;
    line-height: 1.25;
  }

  .price-new {
    font-size: 1.45rem;
  }

  .btn {
    padding: 0.68rem 0.9rem;
    font-size: 0.9rem;
  }

  .cookie-banner {
    padding: 0.7rem;
  }
}
