/* ===== Tokens (фирменный стиль: жёлтый #ffc300, графит #3f3f3f/#565757, бирюза #01e7c0) ===== */
:root {
  --c-primary: #ffc300;
  --c-primary-dark: #e6ad00;
  --c-on-primary: #3f3f3f;
  --c-accent: #01e7c0;
  --c-accent-text: #00927a;
  --c-heading: #3f3f3f;
  --c-text: #565757;
  --c-muted: #7f8080;
  --c-bg: #ffffff;
  --c-bg-alt: #f2f2f1;
  --c-surface: #ffffff;
  --c-border: #d3d3d3;
  --c-input-border: #9a9a9a;
  --c-dark: #3f3f3f;
  --c-darker: #222222;
  --radius: 5px;
  --radius-pill: 30px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --header-h: 64px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--c-heading); text-decoration-color: var(--c-primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #000; }
h1, h2, h3 { color: var(--c-heading); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 6vw, 3rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  border: 0; border-radius: var(--radius-pill);
  font: inherit; font-size: .95rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease-in-out, color .2s ease-in-out, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 3px solid rgba(255, 195, 0, .5); outline-offset: 2px; }
.btn--primary { background: var(--c-primary); color: var(--c-on-primary); }
.btn--primary:hover { background: var(--c-primary-dark); color: var(--c-on-primary); }
.btn--ghost { background: #545555; color: #fff; }
.btn--ghost:hover { background: var(--c-primary); color: var(--c-on-primary); }
.btn--sm { min-height: 40px; padding: 0 20px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-bg-alt);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: flex; align-items: center; }
.logo__img { height: 44px; width: auto; }

.burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border: 0; background: none; cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--c-heading); border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile nav — выезжающая панель */
.nav {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px var(--gutter) 24px;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow);
  transform: translateY(-120%);
  visibility: hidden;
  transition: transform .3s ease, visibility .3s;
}
.nav.is-open { transform: translateY(0); visibility: visible; }
.nav a:not(.btn) { padding: 12px 4px; color: var(--c-text); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--c-bg-alt); }
.nav .btn { margin-top: 12px; }

/* ===== Hero ===== */
.hero { padding: 40px 0 32px; background: var(--c-bg-alt); }
.hero__inner { display: grid; gap: 32px; align-items: center; }
.eyebrow { color: var(--c-accent-text); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75em; }
.lead { font-size: 1.05rem; max-width: 560px; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; }
.hero__art { position: relative; height: 200px; }
.bubble {
  position: absolute; display: grid; place-items: center;
  border-radius: 50%; background: var(--c-surface); box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.bubble--1 { width: 120px; height: 120px; font-size: 3.4rem; left: 50%; top: 40px; transform: translateX(-50%); background: var(--c-primary); }
.bubble--2 { width: 80px; height: 80px; font-size: 2.2rem; left: 8%; top: 10px; animation-delay: -1.5s; }
.bubble--3 { width: 72px; height: 72px; font-size: 2rem; right: 8%; top: 0; animation-delay: -3s; background: var(--c-accent); }
.bubble--4 { width: 64px; height: 64px; font-size: 1.8rem; right: 16%; bottom: 0; animation-delay: -4.5s; }
@keyframes float { 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; } html { scroll-behavior: auto; } }

/* ===== Stats ===== */
.stats { padding: 0 0 32px; background: var(--c-bg-alt); }

/* ===== Sections ===== */
.section { padding: 56px 0; }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-dark); color: #f2f2f1; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: var(--c-primary); text-decoration-color: currentColor; }
.section__title { font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 800; }
.section__title::after { content: ''; display: block; width: 56px; height: 4px; margin-top: 12px; background: var(--c-primary); border-radius: 2px; }
.section__subtitle { color: var(--c-muted); margin-bottom: 24px; }

/* об акции */
.promo { max-width: 760px; }
.promo p { font-size: 1.05rem; }
.promo__lead { font-size: 1.15rem !important; color: var(--c-heading); }
.promo__quote {
  margin: 28px 0; padding: 20px 22px;
  background: var(--c-bg-alt); border-left: 6px solid var(--c-primary); border-radius: var(--radius);
  font-size: clamp(1.3rem, 4.5vw, 1.9rem); font-weight: 800; line-height: 1.25; color: var(--c-heading);
}
.promo__quote span { white-space: nowrap; background: linear-gradient(transparent 60%, rgba(255, 195, 0, .55) 60%); }

/* полоса прогресса (календарь) */
.progress { height: 8px; background: var(--c-bg-alt); border-radius: var(--radius-pill); overflow: hidden; margin: 8px 0; }
.progress__bar { height: 100%; background: linear-gradient(90deg, var(--c-primary), var(--c-accent)); border-radius: inherit; transition: width 1s ease; }
/* ===== Forms ===== */
.field { display: grid; gap: 6px; }
.field__label { font-size: .85rem; font-weight: 600; color: var(--c-heading); }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 16px; /* 16px — чтобы iOS не зумил поле */
  color: var(--c-text); background: var(--c-bg-alt);
  border: 1px solid var(--c-input-border); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
textarea.input { resize: vertical; }
.input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(255, 195, 0, .3); }
.input.is-invalid { border-color: #d33; }



.form__status { margin: 0; min-height: 1.4em; font-weight: 600; }
.form__status.is-error { color: #c62828; }
.form__status.is-success { color: var(--c-accent-text); }
.form__note { font-size: .75rem; color: var(--c-muted); margin: 0; }

/* contacts */
.contacts { display: grid; gap: 32px; }
.contacts__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contacts__label { display: block; font-size: .75rem; color: #b5b5b5; margin-bottom: 2px; }
.contacts__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.contacts__social a {
  padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius-pill);
  color: #fff; text-decoration: none; font-size: .85rem; font-weight: 500; transition: background-color .2s, border-color .2s, color .2s;
}
.contacts__social a:hover { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.requisites { background: rgba(255, 255, 255, .06); padding: 20px; border-radius: var(--radius); font-size: .85rem; }
.requisites p { margin: 0; opacity: .85; line-height: 1.7; }

/* footer */
.footer { background: var(--c-darker); color: #9a9a9a; font-size: .8rem; padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); }
.footer__inner { display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.footer a { color: #9a9a9a; }

/* ===== Tablet ≥ 600px ===== */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .hero__actions { flex-direction: row; }
  .footer__inner { flex-direction: row; justify-content: space-between; }
}

/* ===== Desktop ≥ 900px ===== */
@media (min-width: 900px) {
  :root { --header-h: 80px; }
  .logo__img { height: 56px; }
  .burger { display: none; }
  .nav {
    position: static; flex-direction: row; align-items: center; gap: 28px;
    padding: 0; background: none; border: 0; box-shadow: none;
    transform: none; visibility: visible; transition: none;
  }
  .nav a:not(.btn) { border: 0; padding: 0; font-size: .95rem; }
  .nav a:not(.btn):hover { color: var(--c-heading); text-decoration: underline; text-decoration-color: var(--c-primary); }
  .nav .btn { margin: 0; }

  .hero { padding: 80px 0 56px; }
  .hero__inner { grid-template-columns: 1.3fr 1fr; }
  .hero__art { height: 320px; }
  .bubble--1 { width: 180px; height: 180px; font-size: 5rem; top: 70px; }
  .bubble--2 { width: 110px; height: 110px; font-size: 3rem; }
  .bubble--3 { width: 96px; height: 96px; font-size: 2.6rem; }
  .bubble--4 { width: 88px; height: 88px; font-size: 2.4rem; }

  .section { padding: 88px 0; }
  .contacts { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
