/* ================================================================
   ПЕРЕМЕННЫЕ ОФОРМЛЕНИЯ — поменяйте здесь, чтобы перекрасить весь сайт
   ================================================================ */
:root {
  --color-bg: #f6f8fb;
  --color-surface: #ffffff;
  --color-text: #16233a;
  --color-text-muted: #5b6b83;
  --color-primary: #0f2540;      /* тёмно-синий — шапка, футер */
  --color-primary-light: #17335a;
  --color-accent: #ff6a3d;       /* оранжевый — кнопки заявки */
  --color-accent-hover: #e6552a;
  --color-border: #e4e9f1;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(15, 37, 64, 0.08);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container-width: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: clamp(24px, 3vw, 32px);
  text-align: center;
  margin-bottom: 32px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn--accent {
  background: var(--color-accent);
  color: #fff;
}
.btn--accent:hover { background: var(--color-accent-hover); transform: translateY(-1px); }
.btn--lg { padding: 16px 30px; font-size: 17px; }
.btn--block { width: 100%; }

.badge {
  display: inline-block;
  background: rgba(255, 106, 61, 0.12);
  color: var(--color-accent-hover);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 1px 0 var(--color-border);
}
.header__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
}
.brand { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.brand__logo { height: 32px; width: auto; align-self: flex-start; }
.brand__tagline { font-size: 12px; color: var(--color-text-muted); }
.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  white-space: nowrap;
}
.header__cta { display: none; }
@media (min-width: 720px) {
  .header__cta { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-light) 55%, #1d3f6b 100%);
  color: #fff;
  padding: 48px 0 64px;
}
.hero__grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; align-items: start; }
}
.hero h1 { font-size: clamp(28px, 4vw, 42px); }
.hero__subtitle { color: #cfdbee; font-size: 17px; max-width: 46ch; }
.hero__bullets { margin-bottom: 28px; }
.hero__bullets li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
  color: #e6edf9;
  font-size: 15px;
}
.hero__bullets li::before { content: "✓"; color: #6be3b0; font-weight: 800; }
.hero__actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hero__cta-subtext { font-size: 13px; color: #b9c6dd; }

.hero__form-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--color-text);
  box-shadow: var(--shadow);
}

/* ---------- Форма заявки (используется в hero и в модалке) ---------- */
.lead-form h3 { font-size: 20px; }
.lead-form__subtitle { color: var(--color-text-muted); font-size: 14px; margin-bottom: 18px; }
.lead-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text-muted);
}
.lead-form input, .lead-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 14px;
  background: #fafbfd;
}
.lead-form input:focus, .lead-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #fff;
}
.lead-form__consent { font-size: 12px; color: var(--color-text-muted); margin-top: 10px; }
.lead-form__product {
  background: #f1f5fb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}
.lead-form__product.is-visible { display: block; }
.lead-form__success {
  display: none;
  background: #eafbf2;
  color: #1a7a4c;
  border-radius: 10px;
  padding: 14px;
  font-weight: 600;
  font-size: 14px;
}
.lead-form__success.is-visible { display: block; }
.lead-form.is-submitted form { display: none; }

/* ---------- Переваги ---------- */
.features { padding: 56px 0; }
.features__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.feature-card__icon { font-size: 28px; margin-bottom: 10px; }
.feature-card h3 { font-size: 16px; }
.feature-card p { color: var(--color-text-muted); font-size: 14px; margin: 0; }

/* ---------- Каталог ---------- */
.catalog { padding: 24px 0 64px; }
.catalog__tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}
.catalog__tab {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
}
.catalog__tab.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.catalog__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.product-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card__media {
  background: linear-gradient(135deg, #eef3fb, #dfe8f6);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  position: relative;
}
.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.product-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product-card__category { font-size: 12px; color: var(--color-text-muted); margin-bottom: 4px; }
.product-card h3 { font-size: 16px; margin-bottom: 6px; }
.product-card p { font-size: 13px; color: var(--color-text-muted); flex: 1; }
.product-card__price { font-weight: 800; font-size: 17px; margin-bottom: 12px; }
.product-card__cta {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  padding: 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
}
.product-card__cta:hover { background: var(--color-primary-light); }

/* ---------- Кроки ---------- */
.steps { padding: 24px 0 64px; }
.steps__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.step-card { text-align: center; }
.step-card__number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 12px;
}
.step-card h3 { font-size: 16px; }
.step-card p { font-size: 13px; color: var(--color-text-muted); }

/* ---------- FAQ ---------- */
.faq { padding: 24px 0 64px; }
.faq__list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item__q {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: transparent;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item__q::after { content: "+"; font-size: 20px; color: var(--color-text-muted); }
.faq-item.is-open .faq-item__q::after { content: "–"; }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  color: var(--color-text-muted);
  font-size: 14px;
  transition: max-height .2s ease, padding .2s ease;
}
.faq-item.is-open .faq-item__a { max-height: 300px; padding: 0 20px 18px; }

/* ---------- Финальный CTA ---------- */
.final-cta {
  background: var(--color-primary);
  color: #fff;
  padding: 56px 0;
}
.final-cta__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.final-cta h2 { max-width: 32ch; font-size: clamp(20px, 3vw, 28px); }

/* ---------- Футер ---------- */
.footer { background: #0b1c31; color: #9fb0c9; padding: 22px 0 90px; font-size: 13px; }
.footer__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Плавающая панель (моб.) ---------- */
.floating-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  z-index: 60;
  box-shadow: 0 -4px 16px rgba(0,0,0,.12);
}
@media (min-width: 720px) {
  .floating-bar { display: none; }
}
.floating-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  font-weight: 700;
  font-size: 14px;
}
.floating-bar__btn--call { background: var(--color-primary); color: #fff; }
.floating-bar__btn--form { background: var(--color-accent); color: #fff; }

/* ---------- Модалка ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 22, 39, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal-overlay.is-open { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px 24px;
  position: relative;
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f1f3f7;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 15px;
  color: var(--color-text-muted);
}
