:root {
    --bg: #000000;           /* black for header/hero */
    --bg-alt: #111111;       /* slightly lighter black for alternate sections */
    --text: #0f172a;         /* dark navy text for contrast */
    --muted: #475569;        /* muted text */
    --card: #ffffff;         /* white cards */
    --brand: #f7af74;        /* yellow brand color */
    --brand-hover: #ffdbb3;  /* darker yellow hover */
    --border: #e5e7eb;       /* light gray borders */
    --body-bg: #f7f7f8;      /* light page background */
  }
  
  /* ---------- Global ---------- */
  * {
    box-sizing: border-box;
  }
  
  html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--text);
    background-color: var(--body-bg);
  }
  
  a {
    color: var(--brand);
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  img {
    max-width: 100%;
    display: block;
  }
  
  .container {
    width: min(1100px, 92vw);
    margin: 0 auto;
  } 
  
  .thank-you {
  text-align: center;
  padding: 80px 0;
  }

  .thank-you .btn {
  margin-top: 20px;
  }
  
  .hidden {
    display: none;
  }
  
  /* ---------- Header ---------- */
  .site-header {
    background: var(--bg);
    border-bottom: 2px solid var(--brand);
    position: sticky;
    top: 0;
    z-index: 10;
  }
  
  .site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
  }
  
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: #fdfdf4;
  }
  
  .logo {
    font-size: 22px;
  }
  
  .nav {
    display: flex;
    gap: 18px;
    align-items: center;
  }
  
  .nav a {
    color: #fdfdf4;
    font-weight: 500;
  }
  
  .nav a:hover {
    color: var(--brand);
  }
  
  .nav .cta {
    background: var(--brand);
    color: #000;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
  }
  
  .nav .cta:hover {
    background: var(--brand-hover);
  }
  
  .burger {
    display: none;
    font-size: 22px;
    background: transparent;
    border: 0;
    color: white;
    cursor: pointer;
  }
  
  /* ---------- Hero ---------- */
  .hero {
    background: var(--bg);
    color: white;
    padding: 64px 0 48px;
    text-align: left;
  }
  
  .hero-inner {
    display: grid;
    gap: 16px;
  }
  
  .hero h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: clamp(28px, 4vw, 44px);
    margin: 0;
    color: var(--brand);
  }
  
  .hero h2 {
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 600;
    color:#fdfdf4;
  }
  
  .hero p {
    color: #fdfdf4;
    margin: 6px 0 0;
    max-width: 60ch;
  }
  
  .hero .hero-cta {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
  }
  
  /* ---------- Buttons ---------- */
  .btn {
    display: inline-block;
    background: var(--brand);
    color: #000;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    border: 2px solid transparent;
    transition: all 0.2s ease;
  }
  
  .btn:hover {
    background: var(--brand-hover);
  }
  
  .btn.outline {
    background: transparent;
    color: var(--brand);
    border-color: var(--brand);
  }
  
  .btn.outline:hover {
    background: var(--brand);
    color: #000;
  }
  
  /* ---------- Sections ---------- */
  .section {
    padding: 30px 0;
    background: #f8fafc;
  }
  
  .section.alt {
    background: #f8fafc; /* можно поменять на var(--body-bg) или другое, если понадобится */
  }
  
  .section h2 {
    font-size: clamp(22px, 3.5vw, 32px);
    margin: 0 0 18px;
    color: var(--bg);
  }
  
  /* ---------- Cards & Grid ---------- */
  .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  
  .card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  }
  
  .card h3 {
    margin: 0 0 6px;
    font-size: 18px;
  }
  
  .card p {
    margin: 0;
    color: var(--muted);
  }
  
  /* ---------- Lists ---------- */
  .list-check {
    line-height: 1.9;
  }
  
  .list-check li {
    margin-left: 1.2em;
  }
  
  /* ---------- Contact section ---------- */
  .contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  
  .contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
  }
  
  /* Телефон/Email — чёрные в карточке */
  .contact-card a {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
  }
  
  .contact-card a:hover {
    color: var(--brand-hover);
    text-decoration: underline;
  }
  
  .contact-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: grid;
    gap: 10px;
  }
  
  /* label только для обычных полей, без согласия */
  .contact-form label:not(.agree) {
    display: grid;
    gap: 6px;
    font-weight: 600;
  }
  
  /* Поля и плейсхолдеры */
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font: inherit;
  }
  
  .contact-form input::placeholder,
  .contact-form textarea::placeholder {
    color: #9faaba;
    opacity: 1;
    font-size: 12px;
  }
  
  .contact-form input:focus,
  .contact-form textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.25);
  }
  
  /* autofill fix (Chrome) */
  .contact-form input:-webkit-autofill,
  .contact-form textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: var(--text);
  }
  
  /* Чекбокс + текст + кнопка в одну линию */
  .form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .agree {
    font-weight: 500;
  }
  .contact-form .btn {
    font-size: 13px; 
  }
  
  .form-note {
    color: var(--muted);
    font-size: 13px;
  }
  
  /* ---------- Footer ---------- */
  .site-footer {
    background: var(--bg-alt);
    color: #f1f5f9;
    border-top: 2px solid var(--brand);
  }
  
  .site-footer .footer-inner {
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .site-footer a {
    color: var(--brand);
  }

  .hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr; /* текст шире, картинка уже */
  align-items: center;
  gap: 30px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-img {
  width: 100%;
  max-width: 460px;      /* ограничение размера */
  justify-self: end;     /* прижать к правой стороне */
  border-radius: 12px;
}
#why,
#contact {
  scroll-margin-top: 80px;
}
  
  /* ---------- Responsive ---------- */
  @media (max-width: 900px) {
    .grid {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .contact-wrap {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 680px) {
      .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    align-items: center;
  }

  .hero-img {
    margin: 20px auto 0;
    max-width: 340px;
    justify-self: center;
  }

    .nav {
      display: none;
      position: absolute;
      top: 56px;
      right: 4vw;
      background: var(--bg-alt);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 10px;
      flex-direction: column;
    }
  
    .nav a {
      color: #f8fafc;
    }
  
    .nav.open {
      display: flex;
    }
  
    .burger {
      display: block;
    }
  
    .grid {
      grid-template-columns: 1fr;
    }
  }