:root {
  --blue: #2f6f9f;
  --blue-dark: #1d3f5a;
  --accent: #f59f00;
  --accent-dark: #e08e00;
  --text: #1f2933;
  --muted: #5f6b7a;
  --bg: #ffffff;
  --bg-alt: #f3f6f9;
  --border: #dde3ea;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(29, 63, 90, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 820px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 10px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--accent); color: #1f1300; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--blue-dark); }
.btn--block { display: block; width: 100%; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo__mark {
  width: 38px; height: 38px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 20px;
}
.logo__text { font-weight: 800; line-height: 1.1; }
.logo__text small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--text); font-size: 15px; }
.nav a:hover { color: var(--blue); }
.header__phone { font-weight: 700; text-decoration: none; color: var(--blue-dark); white-space: nowrap; }
.burger { display: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: #fff;
  padding: 64px 0 72px;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.badge {
  display: inline-block; margin: 0 0 16px; padding: 4px 12px;
  border-radius: 999px; background: rgba(255,255,255,.15); font-size: 14px;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 48px); }
.hero h1 span { color: var(--accent); }
.hero__list { list-style: none; padding: 0; margin: 24px 0 32px; }
.hero__list li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.hero__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__image { position: relative; background: #fff; border-radius: 20px; padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.hero__price {
  position: absolute; right: -10px; bottom: -22px;
  background: var(--accent); color: #1f1300;
  padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow);
  font-size: 15px; line-height: 1.3;
}
.hero__price b { font-size: 24px; }
.hero__price span { display: block; font-size: 13px; }

/* Sections */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--blue-dark); color: #fff; }
.section--dark a { color: #ffd08a; }
.section__title { font-size: clamp(26px, 3.2vw, 36px); }
.section__lead { color: var(--muted); max-width: 720px; margin: 0 0 36px; }
.note { color: var(--muted); font-size: 14px; margin-top: 20px; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Advantages */
.advantages { padding: 56px 0; }
.adv { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); }
.adv__icon { font-size: 32px; margin-bottom: 8px; }
.adv h3 { font-size: 19px; }
.adv p { margin: 0; color: var(--muted); font-size: 15px; }

/* Product */
.product { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.product__image { background: var(--bg-alt); border-radius: var(--radius); padding: 32px; }

/* Cards */
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 28px; border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow);
}
.card--hit { border: 2px solid var(--accent); }
.card__label {
  position: absolute; top: -13px; left: 24px;
  background: var(--accent); color: #1f1300; font-size: 13px; font-weight: 700;
  padding: 3px 12px; border-radius: 999px;
}
.card__tag { color: var(--muted); margin: 0; font-size: 15px; }
.card__specs { list-style: none; padding: 0; margin: 20px 0; flex: 1; }
.card__specs li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 15px;
}
.card__specs span { color: var(--muted); }
.card__price { font-size: 28px; font-weight: 800; color: var(--blue-dark); margin: 0 0 16px; }

/* Layers */
.layers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.layer { display: flex; gap: 18px; padding: 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.layer__num { font-size: 28px; font-weight: 800; color: var(--accent); line-height: 1; }
.layer h3 { font-size: 19px; }
.layer p { margin: 0; color: var(--muted); font-size: 15px; }
.options { margin-top: 40px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: 15px; }

/* Delivery */
.delivery { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.delivery__towns {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 16px;
}
.delivery__towns li::before { content: "📍 "; }
.delivery__box { padding: 28px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--border); }
.delivery__price { list-style: none; padding: 0; margin: 0 0 16px; }
.delivery__price li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.delivery__box p { margin: 0; color: var(--muted); font-size: 15px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; padding: 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px;
  border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800;
}
.steps b { display: block; font-size: 19px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0;
  font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 26px; color: var(--blue); }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 0 0 18px; color: var(--muted); }

/* Contacts */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contacts__info p { opacity: .85; }
.contacts__list { list-style: none; padding: 0; margin: 24px 0 0; }
.contacts__list li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contacts__list span { display: block; font-size: 13px; opacity: .65; }
.map { margin-top: 48px; }
.map__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; }
.map__head h3 { font-size: 22px; margin: 0; }
.map__head p { margin: 0 0 12px; opacity: .85; }
.map__frame { display: block; width: 100%; height: 400px; border: 0; border-radius: var(--radius); background: #e9ecef; }
@media (max-width: 560px) { .map__frame { height: 300px; } }
.contact-card { display: grid; gap: 12px; background: #fff; color: var(--text); padding: 28px; border-radius: var(--radius); }
.contact-card h3 { font-size: 22px; margin: 0; }
.contact-card p { margin: 0 0 4px; color: var(--muted); }
.contact-card .msg { justify-content: center; padding: 16px; font-size: 17px; }

/* Messenger buttons */
.msg {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 10px;
  color: #fff !important; font-weight: 600; text-decoration: none;
}
.msg__icon { width: 24px; height: 24px; flex: none; }
.msg--call { background: var(--accent); color: #1f1300 !important; }
.msg--call:hover { background: var(--accent-dark); }
.msg--tg { background: #229ed9; }
.msg--tg:hover { background: #1c8bc0; }
.msg--max { background: #6c3cf0; }
.msg--max:hover { background: #5a2fd6; }

/* Footer */
.footer { padding: 24px 0; background: #13293b; color: rgba(255,255,255,.7); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer a { color: rgba(255,255,255,.85); }
.footer p { margin: 0; flex: 1; }

/* Cookie notice */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70;
  max-width: 720px; margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
  background: #fff; color: var(--text); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.2); font-size: 14px;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1; }
.cookie .btn { padding: 10px 20px; white-space: nowrap; }
@media (max-width: 560px) {
  .cookie { flex-direction: column; align-items: stretch; text-align: left; }
}

.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.fab__menu { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.fab__menu[hidden] { display: none; }
.fab__menu .msg { padding: 12px 18px; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.fab__toggle {
  width: 60px; height: 60px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: var(--accent); color: #1f1300; box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.fab__toggle:hover { background: var(--accent-dark); }
.fab__toggle svg { width: 28px; height: 28px; }
.fab__close, .fab.is-open .fab__open { display: none; }
.fab.is-open .fab__close { display: block; }

/* Responsive */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .header__phone { display: none; }
}
@media (max-width: 860px) {
  .hero__inner, .delivery, .contacts, .layers { grid-template-columns: 1fr; }
  .grid--3, .product { grid-template-columns: 1fr; }
  .hero__price { right: 10px; }
  .burger {
    display: block; margin-left: auto; width: 44px; height: 44px;
    border: 0; background: none; cursor: pointer; position: relative;
  }
  .burger span, .burger span::before, .burger span::after {
    position: absolute; left: 10px; width: 24px; height: 2px; background: var(--text); content: "";
    transition: transform .2s;
  }
  .burger span { top: 21px; }
  .burger span::before { top: -7px; left: 0; }
  .burger span::after { top: 7px; left: 0; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--border);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 16px; border-top: 1px solid var(--border); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .grid--4, .steps { grid-template-columns: 1fr; }
  .delivery__towns { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 40px 0 60px; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* Privacy policy page */
.policy h1 { font-size: clamp(28px, 4vw, 40px); }
.policy h2 { font-size: 21px; margin-top: 32px; }
.policy li { margin-bottom: 6px; }
