/* Бензин.Есть! — landing styles */

:root {
  --brand: #2481cc;
  --brand-dark: #1a6aab;
  --status-yes: #2dbf4d;
  --status-no: #e8453c;
  --status-mixed: #f0a500;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #1c1c1e;
  --hint: #8e8e93;
  --hint-strong: #6b6b70;
  --border: #e2e6eb;
  --shadow-card: 0 2px 14px rgba(28, 28, 30, 0.06);
  --shadow-card-hover: 0 6px 20px rgba(28, 28, 30, 0.09);
  --radius-card: 16px;
  --radius-btn: 22px;
  --font:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI',
    Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 8px 14px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
}
.brand:hover {
  text-decoration: none;
}

.brand-logo {
  display: inline-flex;
}

.brand-name {
  letter-spacing: -0.01em;
}

.header-nav {
  display: flex;
  gap: 6px;
}

.header-link {
  color: var(--hint-strong);
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
}
.header-link:hover {
  color: var(--brand);
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--bg) 0%, #ffffff 100%);
  padding: 56px 0 64px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  max-width: 560px;
}

.hero-title {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  font-weight: 800;
}

.hero-sub {
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.55;
  color: #3a3a3c;
  margin: 0 0 28px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-hint {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--hint-strong);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease,
    box-shadow 0.2s ease;
  text-decoration: none;
}
.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-dark);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(36, 129, 204, 0.28);
}
.btn-primary:hover {
  background: #145889;
  box-shadow: 0 6px 18px rgba(36, 129, 204, 0.36);
}
.btn-primary:active {
  transform: translateY(1px);
}

.btn-icon {
  flex-shrink: 0;
}

/* Section base */
.section-title {
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 36px;
  font-weight: 800;
  text-align: center;
}

/* How it works */
.how {
  padding: 72px 0;
  background: var(--surface);
}

.how-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.how-card {
  background: var(--bg);
  border-radius: var(--radius-card);
  padding: 26px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.how-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border);
  background: #ffffff;
}

.how-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.06em;
}

.how-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.how-h {
  font-size: 17px;
  line-height: 1.25;
  margin: 4px 0 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.how-p {
  font-size: 14px;
  color: #4a4a4c;
  margin: 0;
  line-height: 1.5;
}

/* Trust */
.trust {
  padding: 48px 0 56px;
  background: var(--bg);
}

.trust-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.trust-num {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand);
  line-height: 1;
}

.trust-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.trust-note {
  font-size: 14px;
  color: var(--hint-strong);
  margin: 8px 0 0;
}

/* Second CTA */
.cta2 {
  padding: 64px 0 80px;
  background: var(--surface);
}

.cta2-inner {
  background: linear-gradient(135deg, #1a6aab 0%, #145889 100%);
  border-radius: 22px;
  padding: 48px 32px;
  text-align: center;
  color: #ffffff;
}

.cta2-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.2;
}

.cta2-sub {
  font-size: 16px;
  margin: 0 0 28px;
  opacity: 0.92;
}

.cta2-inner .btn-primary {
  background: #ffffff;
  color: var(--brand-dark);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.cta2-inner .btn-primary:hover {
  background: #f5f7fa;
  color: #145889;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 22px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  color: var(--hint-strong);
  font-size: 14px;
}

.footer-nav {
  display: flex;
  gap: 6px;
}

.footer-nav a {
  color: var(--hint-strong);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
}
.footer-nav a:hover {
  color: var(--brand);
  text-decoration: none;
}

/* Responsive */
/* Small desktop / large tablet: 960-1023px — tighten hero gap, switch how-grid to 2 cols */
@media (max-width: 1023px) and (min-width: 960px) {
  .hero-inner {
    gap: 32px;
  }
  .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet: 640-959px — two columns, tighter gap, smaller visual */
@media (max-width: 959px) and (min-width: 640px) {
  .hero {
    padding: 48px 0 56px;
  }
  .hero-inner {
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    align-items: center;
  }
  .hero-visual svg {
    max-width: 380px;
  }

  .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .how {
    padding: 64px 0;
  }
}

/* Mobile: <640px — single column, visual below text */
@media (max-width: 639px) {
  .header-inner {
    height: 56px;
  }
  .brand-name {
    font-size: 16px;
  }

  .hero {
    padding: 32px 0 44px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-copy {
    margin: 0 auto;
    max-width: 100%;
  }
  .hero-title {
    font-size: clamp(26px, 8vw, 32px);
  }
  .hero-sub {
    font-size: 16px;
  }
  .hero-cta {
    flex-direction: column;
    justify-content: center;
  }
  .btn {
    width: 100%;
    height: 52px;
  }
  .hero-visual {
    order: 2;
  }
  .hero-visual svg {
    max-width: 320px;
  }
  /* Hide secondary bubble meta line below this breakpoint */
  .hero-visual svg .bubble-meta {
    display: none;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }
  .how {
    padding: 48px 0;
  }
  .section-title {
    margin-bottom: 24px;
  }

  .trust {
    padding: 36px 0 40px;
  }

  .cta2 {
    padding: 48px 0 64px;
  }
  .cta2-inner {
    padding: 36px 22px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .footer-nav {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
