/* ===== Theme tokens ===== */
:root {
  --bg: #faf5f0;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #fff6ef;
  --text: #1a1108;
  --muted: #6d5c47;
  --border: #f0e4d6;
  --primary: #ff6b1a;
  --primary-600: #e55c10;
  --primary-soft: #fff0e6;
  --green: #22c55e;
  --green-soft: #dcfce7;
  --shadow: 0 18px 40px -18px rgba(100, 50, 0, 0.3);
  --shadow-sm: 0 8px 20px -12px rgba(100, 50, 0, 0.2);
  --radius: 20px;
  --radius-sm: 14px;
}

html[data-theme="dark"] {
  --bg: #0d0b09;
  --bg-alt: #141110;
  --surface: #1c1814;
  --surface-2: #252018;
  --text: #f5ede4;
  --muted: #a99880;
  --border: #352d24;
  --primary: #ff7b2e;
  --primary-600: #ff6b1a;
  --primary-soft: #2e1e10;
  --green: #4ade80;
  --green-soft: #14332a;
  --shadow: 0 22px 48px -20px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 10px 24px -14px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
img, svg { display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}
.container--narrow { max-width: 820px; }
.accent { color: var(--primary); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; border: 0; cursor: pointer;
  padding: 11px 20px; border-radius: 999px; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 14px 26px; font-size: 16px; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 10px 22px -10px var(--primary); }
.btn--primary:hover { background: var(--primary-600); }
.btn--soft { background: var(--primary-soft); color: var(--primary); }
.btn--soft:hover { filter: brightness(.97); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; color: var(--text); }
.logo__mark { color: var(--primary); display: inline-flex; }
.logo__text strong { color: var(--primary); font-weight: 800; }
.logo__text { font-weight: 600; }

.nav { display: flex; gap: 26px; margin-left: 14px; }
.nav a { color: var(--muted); font-weight: 600; font-size: 15px; transition: color .2s; }
.nav a:hover { color: var(--text); }

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background .2s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: block; }
html[data-theme="light"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: block; }

.burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero { padding: 64px 0 0; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% 40% auto -10%; height: 620px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 25%, transparent), transparent);
  filter: blur(20px); z-index: 0; opacity: .55;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 18px;
}
.badge--soft { background: var(--surface); border: 1px solid var(--border); }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; }
.hero__lead { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 540px; }
.hero__cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero__perks { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; padding: 0; margin: 26px 0 0; }
.hero__perks li { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; color: var(--muted); }
.hero__perks svg { color: var(--green); }

/* Hero floating cards */
.hero__card { position: relative; display: grid; gap: 16px; }
.mini-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.mini-card--fuel { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.mini-card__row { display: flex; align-items: center; gap: 12px; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot--orange { background: var(--primary); box-shadow: 0 0 0 5px var(--primary-soft); }
.mini-card__title { font-weight: 700; }
.mini-card__sub { font-size: 13px; color: var(--muted); }
.mini-card__badge { background: var(--green); color: #fff; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.mini-card__head { font-weight: 700; margin-bottom: 12px; }
.result-line { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; color: var(--muted); }
.result-line b { color: var(--text); }
.result-line .ok { color: var(--green); }
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; margin: 10px 0 8px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--green)); border-radius: 999px; }
.mini-card__foot { font-size: 12px; color: var(--muted); }
.mini-card--order { display: flex; align-items: center; justify-content: space-between; }
.mini-card__amount { font-size: 18px; font-weight: 800; }
.mini-card__status { font-size: 13px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 6px 12px; border-radius: 999px; }

/* Stats */
.stats { margin-top: 64px; }
.stats__inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.stat { text-align: center; }
.stat b { display: block; font-size: 30px; font-weight: 800; color: var(--primary); }
.stat span { font-size: 14px; color: var(--muted); }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section__head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-top: 10px; }
.section__head p { color: var(--muted); margin-top: 12px; font-size: 17px; }

.grid { display: grid; gap: 20px; }
.grid--services { grid-template-columns: repeat(3, 1fr); }
.grid--fuel { grid-template-columns: repeat(3, 1fr); }
.grid--steps { grid-template-columns: repeat(3, 1fr); }
.grid--pricing { grid-template-columns: repeat(3, 1fr); }

/* Feature cards */
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.feature__icon {
  width: 52px; height: 52px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 16px;
}
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* Fuel / specialties */
.spec {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; text-align: center; transition: transform .2s, box-shadow .2s;
}
.spec:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.spec__ic { font-size: 34px; display: block; margin-bottom: 10px; }
.spec h4 { font-size: 17px; }
.spec__meta { font-size: 13px; color: var(--muted); }

/* Steps */
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.step__num { width: 44px; height: 44px; border-radius: 14px; background: var(--primary); color: #fff; font-weight: 800; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* Pricing */
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; text-align: center; transition: transform .2s ease, box-shadow .2s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card--pop { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); position: relative; }
.price-card--pop::before {
  content: "Хит"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 800;
  padding: 4px 14px; border-radius: 999px;
}
.price-card__label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.price-card__amount { font-size: 32px; font-weight: 800; margin: 10px 0 4px; }
.price-card__desc { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.price-card__list { list-style: none; padding: 0; margin: 0 0 22px; text-align: left; display: grid; gap: 8px; }
.price-card__list li { font-size: 14px; padding-left: 22px; position: relative; color: var(--muted); }
.price-card__list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* CTA */
.cta { padding: 20px 0 84px; }
.cta__inner {
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  border-radius: 28px; padding: 44px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.cta__text h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.cta__text p { opacity: .92; margin-top: 8px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta__actions .btn--primary { background: #fff; color: var(--primary); }
.cta__actions .btn--primary:hover { background: #f0f0f0; }
.cta__actions .btn--soft { background: rgba(255,255,255,.18); color: #fff; }
.cta__actions .btn--soft:hover { background: rgba(255,255,255,.28); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 20px; }
.faq__item summary { list-style: none; cursor: pointer; font-weight: 700; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 22px; color: var(--primary); font-weight: 700; transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--muted); padding: 0 0 18px; }

/* Footer */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 320px; }
.footer__col h5 { font-size: 15px; margin-bottom: 14px; }
.footer__col a, .footer__col p { display: block; color: var(--muted); font-size: 14px; margin-bottom: 9px; transition: color .2s; }
.footer__col a:hover { color: var(--primary); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 20px; }
.footer__links a:hover { color: var(--primary); }

/* ===== Floating messenger buttons ===== */
.fab-group {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
.fab {
  display: flex; align-items: center; gap: 10px;
  width: 56px; height: 56px; border-radius: 28px;
  padding: 0 16px; overflow: hidden;
  color: #fff; text-decoration: none;
  transition: width .3s ease, transform .2s ease, box-shadow .2s ease;
}
.fab:hover { width: 170px; transform: scale(1.05); }
.fab--tg { background: #2aabee; box-shadow: 0 6px 20px rgba(42, 171, 238, 0.45); }
.fab--tg:hover { box-shadow: 0 8px 28px rgba(42, 171, 238, 0.65); }
.fab--max { background: #7B2FFF; box-shadow: 0 6px 20px rgba(123, 47, 255, 0.4); }
.fab--max:hover { box-shadow: 0 8px 28px rgba(123, 47, 255, 0.6); }
.fab svg { flex: none; }
.fab__label { font-weight: 700; font-size: 14px; white-space: nowrap; opacity: 0; transition: opacity .2s ease; }
.fab:hover .fab__label { opacity: 1; }

/* ===== Contact modal ===== */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; pointer-events: none; opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  overflow-y: auto;
}
.modal.is-open { pointer-events: auto; opacity: 1; visibility: visible; }
.modal__overlay {
  position: absolute; inset: 0; background: rgba(10, 8, 4, .6);
  backdrop-filter: blur(6px);
}
.modal__dialog {
  position: relative; width: 100%; max-width: 440px;
  max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; padding: 28px; box-shadow: var(--shadow);
  transform: translateY(16px) scale(.98);
  transition: transform .25s ease;
}
.modal.is-open .modal__dialog { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.modal__close:hover { background: var(--primary-soft); }
.modal__head { text-align: center; margin-bottom: 22px; }
.modal__logo { color: var(--primary); display: inline-flex; margin-bottom: 12px; }
.modal__head h2 { font-size: 24px; font-weight: 800; }
.modal__head p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.modal__messengers { display: grid; gap: 12px; margin-bottom: 18px; }
.messenger-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 16px; border: 2px solid var(--border);
  background: var(--surface-2); text-decoration: none; color: var(--text);
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.messenger-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.messenger-btn--tg:hover { border-color: #2aabee; }
.messenger-btn--max:hover { border-color: #7B2FFF; }
.messenger-btn__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.messenger-btn--tg .messenger-btn__icon { background: #2aabee; }
.messenger-btn--max .messenger-btn__icon { background: #7B2FFF; }
.messenger-btn__text { text-align: left; flex: 1; }
.messenger-btn__text b { display: block; font-size: 16px; font-weight: 800; }
.messenger-btn__text span { font-size: 13px; color: var(--muted); }
.messenger-btn__arrow { font-size: 22px; color: var(--muted); font-weight: 700; }
.modal__hint { font-size: 13px; color: var(--muted); text-align: center; opacity: .8; }
body.modal-open { overflow: hidden; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 8px 22px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .burger { display: inline-flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .grid--services, .grid--steps, .grid--pricing { grid-template-columns: repeat(2, 1fr); }
  .grid--fuel { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .header__actions .btn--ghost { display: none; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .grid--services, .grid--steps, .grid--pricing { grid-template-columns: 1fr; }
  .grid--fuel { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
  .cta__inner { padding: 28px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
