:root {
  --bordo: #6d0f17;
  --bordo-dark: #4d0a10;
  --red: #c3122a;
  --red-soft: #f6e6e8;
  --red-line: #ecccd1;
  --ink: #16171a;
  --ink-2: #3d4149;
  --muted: #6d7280;
  --bg: #ffffff;
  --bg-2: #fbfafa;
  --bg-3: #f4f2f2;
  --line: #e6e3e3;
  --ok: #157347;
  --warn: #b25e00;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 10, 12, .06), 0 8px 28px rgba(80, 12, 22, .07);
  --shadow-lg: 0 12px 48px rgba(80, 12, 22, .16);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ---------------- Шапка ---------------- */

.topbar {
  background: var(--bordo);
  color: #f7e9ea;
  font-size: 13.5px;
  padding: 7px 0;
}
.topbar .wrap { display: flex; gap: 18px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.topbar b { color: #fff; }

.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 26px; height: 70px; }

.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); font-size: 19px; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: linear-gradient(150deg, var(--red), var(--bordo));
  display: grid; place-items: center; color: #fff; font-size: 19px;
}
.logo small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--ink-2); font-size: 14.5px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { background: var(--bg-3); color: var(--bordo); text-decoration: none; }
.nav a.btn { color: #fff; background: var(--red); }
.nav a.btn:hover { color: #fff; background: var(--bordo); }

.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 9px; width: 42px; height: 40px; font-size: 18px; cursor: pointer; }

/* ---------------- Кнопки ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 12px 22px; border-radius: 10px; transition: .15s ease;
  background: var(--red); color: #fff; text-decoration: none; line-height: 1.2;
}
.btn:hover { background: var(--bordo); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-ghost { background: #fff; color: var(--bordo); border: 1.5px solid var(--red-line); }
.btn-ghost:hover { background: var(--red-soft); color: var(--bordo); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 8px; }
.btn-lg { padding: 15px 30px; font-size: 16.5px; }

/* ---------------- Первый экран ---------------- */

.hero {
  background:
    radial-gradient(1100px 460px at 88% -10%, rgba(195, 18, 42, .10), transparent 60%),
    linear-gradient(180deg, #fff, var(--bg-2));
  border-bottom: 1px solid var(--line);
  padding: 62px 0 58px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red-soft); color: var(--bordo);
  border: 1px solid var(--red-line);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600;
  margin-bottom: 20px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -.028em; margin: 0 0 18px; font-weight: 800; }
h1 em { font-style: normal; color: var(--red); }

.lead { font-size: 17.5px; color: var(--ink-2); margin: 0 0 28px; max-width: 46ch; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }

.hero-facts { display: flex; gap: 30px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-facts div b { display: block; font-size: 25px; font-weight: 800; color: var(--bordo); letter-spacing: -.02em; }
.hero-facts div span { font-size: 13.5px; color: var(--muted); }

.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.price-card header {
  background: var(--bordo); color: #fff; padding: 15px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.price-card header b { font-size: 15.5px; }
.price-card header span { font-size: 12px; opacity: .8; }
.price-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 13px 20px; border-bottom: 1px solid var(--bg-3); font-size: 14.5px;
}
.price-row:last-child { border-bottom: 0; }
.price-row .n { font-weight: 600; }
.price-row .g { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.price-row .p { font-weight: 800; color: var(--bordo); white-space: nowrap; font-size: 15.5px; }
.price-card footer { padding: 14px 20px; background: var(--bg-2); font-size: 12.5px; color: var(--muted); }

/* ---------------- Секции ---------------- */

section[id], div[id] { scroll-margin-top: 88px; }
section { padding: 66px 0; }
section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.sec-head { max-width: 700px; margin-bottom: 38px; }
.sec-tag { color: var(--red); font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 10px; }
h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.025em; margin: 0 0 12px; font-weight: 800; }
.sec-head p { color: var(--ink-2); margin: 0; font-size: 16.5px; }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: .18s ease;
}
.card:hover { border-color: var(--red-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.card .ico {
  width: 42px; height: 42px; border-radius: 11px; background: var(--red-soft);
  display: grid; place-items: center; font-size: 20px; margin-bottom: 15px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: 14.8px; }

/* Каталог топлива */
.fuel-card { display: flex; flex-direction: column; }
.fuel-card .grade {
  align-self: flex-start; background: var(--bordo); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; letter-spacing: .03em;
}
.fuel-card h3 { margin: 14px 0 6px; }
.fuel-card .price {
  margin-top: auto; padding-top: 16px; font-size: 26px; font-weight: 800;
  color: var(--bordo); letter-spacing: -.025em;
}
.fuel-card .price small { font-size: 13.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.fuel-card .btn { margin-top: 14px; width: 100%; }

/* Шаги */
.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 26px 22px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: -16px; left: 22px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 800; font-size: 15px;
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(195, 18, 42, .3);
}
.step h3 { margin: 6px 0 7px; font-size: 16.5px; font-weight: 700; }
.step p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* География */
.geo-box { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: start; }
.geo-list { display: flex; flex-wrap: wrap; gap: 8px; }
.geo-list span {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 13px; font-size: 14px; color: var(--ink-2);
}
.geo-list span:hover { border-color: var(--red-line); color: var(--bordo); }

/* FAQ */
.faq { max-width: 820px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0; margin-bottom: 10px; background: #fff; overflow: hidden;
}
.faq details[open] { border-color: var(--red-line); }
.faq summary {
  cursor: pointer; padding: 17px 20px; font-weight: 600; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--red); font-size: 22px; font-weight: 400; flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); font-size: 15.2px; }

/* Заявка / CTA */
.cta-band {
  background: linear-gradient(135deg, var(--bordo), var(--bordo-dark));
  color: #fff; border-radius: 18px; padding: 44px; text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 56ch; margin: 0 auto 24px; font-size: 16.5px; }
.cta-band .btn { background: #fff; color: var(--bordo); }
.cta-band .btn:hover { background: var(--red-soft); }

/* Форма заявки */
.lead-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); max-width: 700px; margin-inline: auto;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15.5px; color: var(--ink); background: #fff; transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(195, 18, 42, .12);
}
.field textarea { resize: vertical; min-height: 84px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; text-align: center; }
.form-msg { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14.5px; margin-bottom: 16px; display: none; }
.form-msg.err { background: var(--red-soft); color: var(--bordo); border: 1px solid var(--red-line); display: block; }
.form-msg.ok { background: #e7f5ee; color: var(--ok); border: 1px solid #bfe3d0; display: block; }

.form-success { text-align: center; padding: 22px 0; }
.form-success .big { font-size: 46px; margin-bottom: 12px; }
.form-success h3 { font-size: 22px; margin: 0 0 8px; }
.form-success p { color: var(--ink-2); margin: 0 0 20px; }

/* Подвал */
.footer { background: var(--ink); color: #a9adb5; padding: 48px 0 26px; font-size: 14.5px; }
.footer .wrap { display: grid; grid-template-columns: 1.25fr .85fr .8fr 1.15fr; gap: 34px; }
.footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; font-weight: 700; }
.footer a { color: #a9adb5; display: block; margin-bottom: 8px; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer .req { font-size: 13px; line-height: 1.6; margin-bottom: 14px; color: #9096a0; }
.footer .req b { display: block; color: #fff; font-size: 14px; margin-bottom: 4px; }
.footer .req span { display: block; }
.footer .logo small { color: #82868e; }
.footer-bottom {
  border-top: 1px solid #2a2c31; margin-top: 34px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #7d818a;
}

/* ---------------- Адаптив ---------------- */

@media (max-width: 980px) {
  .hero-grid, .geo-box { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 10px 20px 16px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .burger { display: block; }
  .header .wrap { gap: 12px; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  section { padding: 46px 0; }
  .grid-3, .grid-4, .grid-2, .steps, .field-row { grid-template-columns: 1fr; }
  .cta-band { padding: 30px 22px; }
  .lead-form { padding: 22px 18px; }
  .hero { padding: 40px 0 44px; }
  .footer .wrap { grid-template-columns: 1fr; }
}
