/* ГигаКалория — общие стили. Цвета и шрифт меняются в :root */
:root {
  --ink: #111111;
  --muted: #5f6b6b;
  --paper: #ffffff;
  --soft: #f2f6f6;
  --line: #dbe4e4;
  --accent: #e69900;
  --accent-dark: #c48300;
  --accent-soft: #fdf3dc;
  --teal: #008a8a;
  --teal-dark: #006f6f;
  --radius: 6px;
  --font: Roboto, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.55; font-size: 17px; }
img, iframe { max-width: 100%; }
a { color: var(--teal-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 750; }
h2 { font-size: clamp(25px, 3.4vw, 34px); font-weight: 720; }
section h2 { text-align: center; }
h3 { font-size: 19px; font-weight: 680; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
section.alt { background: var(--soft); }
.lead { font-size: 19px; color: var(--muted); max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }

/* Кнопки */
.btn { display: inline-block; padding: 14px 28px; border-radius: var(--radius); background: var(--accent); color: var(--ink); text-decoration: none; border: 2px solid var(--accent-dark); cursor: pointer; font: inherit; font-weight: 650; text-align: center; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.ghost { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.ghost:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn.small { padding: 10px 20px; font-size: 15px; }
.note { font-size: 15px; color: var(--muted); margin-top: 14px; }

/* Шапка */
header.top { position: sticky; top: 0; z-index: 20; background: #000; }
header.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; max-width: 1240px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 22px; color: #f2f2f2; text-decoration: none; margin-right: auto; }
.logo img { height: 46px; width: 46px; }
.logo b { font-weight: 500; color: #f2f2f2; }
nav.menu { display: flex; gap: 28px; }
nav.menu a { color: #fff; text-decoration: none; font-size: 15px; text-transform: uppercase; letter-spacing: .02em; font-weight: 500; }
nav.menu a:hover, nav.menu a.active { color: var(--accent); }
.auth { display: flex; gap: 10px; }
.burger { display: none; background: none; color: #fff; border: 1px solid #444; border-radius: 6px; padding: 8px 12px; font: inherit; cursor: pointer; }

/* Оффер */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-weight: 650; }
.band { background: linear-gradient(110deg, #c48300 0%, #7a8c56 45%, #008a8a 100%); color: #fff; padding: 44px 0; }
.band .wrap { display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; text-align: center; }
.band p { margin: 0; font-size: clamp(20px, 2.6vw, 28px); font-weight: 300; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 48px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare > div { padding: 22px 26px; }
.compare .them { background: var(--soft); color: var(--muted); }
.compare .us { background: var(--accent-soft); }
.compare small { display: block; font-size: 15px; margin-bottom: 4px; }
.compare strong { font-size: 22px; }

/* Преимущества */
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 36px; margin-top: 32px; }
.perks article { display: flex; gap: 14px; align-items: flex-start; }
.perks img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.perks h3 { margin: 2px 0 4px; }
.perks p { color: var(--muted); font-size: 15px; margin: 0; }

/* Как сделать расчет */
.how { margin-top: 36px; max-width: 760px; }
ol.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
ol.steps li { counter-increment: s; position: relative; padding: 0 0 22px 52px; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; }
ol.steps b { display: block; }
ol.steps span { color: var(--muted); font-size: 16px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-cap { font-size: 15px; color: var(--muted); margin-top: 10px; }

/* Инструкция */
.faq { margin-top: 28px; max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* Тарифы */
.tariffs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.tariff { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; }
.tariff.main { border: 2px solid var(--teal); }
.tariff .price { font-size: 32px; font-weight: 780; margin: 6px 0 14px; }
.tariff p { color: var(--muted); font-size: 16px; flex: 1; }
.tariff .btn { text-align: center; }

/* Контакты и вопросы */
#contacts { padding: 48px 0; }
form.question { max-width: 860px; margin: 0 auto; }
.q-row { display: grid; grid-template-columns: 220px 1fr auto; gap: 10px; align-items: stretch; }
form input[type=email], form textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
form.question textarea { height: 46px; min-height: 46px; resize: vertical; }
.q-row .btn { padding: 10px 18px; white-space: nowrap; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.consent input { margin-top: 3px; }
.consent label { font-weight: 400; margin: 0; }

/* Подвал */
footer { background: #000; color: #c6cfd8; padding: 36px 0; font-size: 15px; }
footer a { color: #fff; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }

/* Юридические страницы */
.doc { padding: 48px 0 72px; max-width: 760px; }
.doc h2 { margin-top: 1.6em; font-size: 22px; text-align: left; }

/* Cookie-баннер */
#cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(22,33,44,.18); padding: 18px 20px; font-size: 14px; z-index: 50; display: none; }
#cookie.show { display: block; }
#cookie p { margin: 0 0 12px; }

#sent { display: none; position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #111; color: #fff; padding: 14px 22px; border-radius: var(--radius); z-index: 70; font-size: 16px; }
#sent.show { display: block; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .tariffs { grid-template-columns: 1fr 1fr; }
  .how { grid-template-columns: 1fr; gap: 32px; }
  .q-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  section { padding: 52px 0; }
  .burger { display: block; }
  nav.menu { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #000; flex-direction: column; gap: 0; padding: 8px 20px 14px; }
  nav.menu.open { display: flex; }
  nav.menu a { padding: 12px 0; }
  .compare { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .perks, .tariffs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
