:root {
  --navy: #0e2a47;
  --navy-2: #163a5f;
  --accent: #f5a623;
  --accent-dark: #d98c0b;
  --text: #1c2733;
  --muted: #5b6b7b;
  --line: #e3e8ee;
  --bg: #f5f7fa;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(14, 42, 71, .08);
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy); }
h1 { font-size: clamp(30px, 4.5vw, 52px); }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--gray { background: var(--bg); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section__head p { color: var(--muted); max-width: 620px; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-weight: 700; cursor: pointer; transition: .2s;
  white-space: nowrap;
}
.btn--accent { background: var(--accent); color: var(--navy); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--outline { border-color: currentColor; color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--light { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--navy); }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.topbar { background: var(--navy); color: #c9d6e3; font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a:hover { color: var(--white); }

.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.logo__mark {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy) 0 55%, var(--accent) 55% 100%);
  display: grid; place-items: center; color: var(--white); font-size: 17px;
}
.logo__text small { display: block; font-weight: 600; font-size: 12px; color: var(--muted); }

.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { font-weight: 600; color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.is-active { color: var(--navy); border-color: var(--accent); }

.header__actions { display: flex; align-items: center; gap: 14px; }
.header__phone { font-weight: 800; color: var(--navy); white-space: nowrap; }
.request-link { position: relative; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.request-link__count {
  min-width: 22px; height: 22px; border-radius: 11px; padding: 0 6px;
  background: var(--accent); color: var(--navy); font-size: 12px;
  display: inline-grid; place-items: center;
}
.burger { display: none; background: none; border: 0; font-size: 28px; cursor: pointer; color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white);
  background: linear-gradient(90deg, rgba(14,42,71,.92) 0%, rgba(14,42,71,.7) 45%, rgba(14,42,71,.15) 100%), url('../img/hero.jpg') center/cover no-repeat;
}
.hero .container { padding-top: 110px; padding-bottom: 110px; }
.hero h1 { color: var(--white); max-width: 720px; }
.hero__lead { font-size: 19px; max-width: 600px; color: #dbe5ef; margin-bottom: 32px; }
.hero__buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__facts { display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.hero__facts b { display: block; font-size: 30px; color: var(--accent); }
.hero__facts span { color: #c9d6e3; font-size: 14px; }

.page-head { background: var(--navy); color: var(--white); padding: 44px 0; }
.page-head h1 { color: var(--white); margin-bottom: 6px; font-size: clamp(26px, 3.5vw, 40px); }
.breadcrumbs { font-size: 14px; color: #a9bccf; }
.breadcrumbs a:hover { color: var(--white); }

/* ---------- Category cards ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px;
  display: flex; align-items: end; color: var(--white); box-shadow: var(--shadow);
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,42,71,0) 30%, rgba(14,42,71,.9) 100%); }
.cat-card:hover img { transform: scale(1.06); }
.cat-card__body { position: relative; z-index: 1; padding: 20px; }
.cat-card__body h3 { color: var(--white); margin-bottom: 4px; }
.cat-card__body p { margin: 0; font-size: 14px; color: #dbe5ef; }

/* ---------- Product cards ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card__sku { font-size: 12px; color: var(--muted); letter-spacing: .03em; }
.card__title { font-size: 17px; margin: 4px 0 8px; }
.card__title a:hover { color: var(--accent-dark); }
.card__text { font-size: 14px; color: var(--muted); flex: 1; }
.card__price { font-weight: 800; color: var(--navy); margin: 8px 0 14px; }
.card__actions { display: flex; gap: 10px; }
.card__actions .btn { flex: 1; }

/* ---------- Catalog page ---------- */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: 96px; background: var(--bg); border-radius: var(--radius); padding: 20px; }
.filters h3 { font-size: 16px; margin-bottom: 12px; }
.filters button {
  display: flex; justify-content: space-between; width: 100%; text-align: left;
  background: none; border: 0; padding: 10px 12px; border-radius: 8px;
  font: inherit; font-weight: 600; color: var(--text); cursor: pointer;
}
.filters button:hover { background: var(--white); }
.filters button.is-active { background: var(--navy); color: var(--white); }
.filters button span { opacity: .6; }
.search { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; margin-bottom: 16px; }
.catalog__empty { color: var(--muted); padding: 40px 0; }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.product__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.product__sku { color: var(--muted); font-size: 14px; }
.product__short { font-size: 18px; color: var(--muted); }
.product__buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 24px 0; padding: 20px; background: var(--bg); border-radius: var(--radius); }
.product__price { font-size: 22px; font-weight: 800; color: var(--navy); margin-right: auto; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); }
.qty button { width: 40px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--navy); }
.qty input { width: 56px; border: 0; text-align: center; font: inherit; font-weight: 700; }
.features { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.features li { padding-left: 30px; position: relative; }
.features li::before {
  content: '✓'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--navy); font-size: 12px; font-weight: 800; display: grid; place-items: center;
}
.tabs { margin-top: 56px; }
.specs { width: 100%; border-collapse: collapse; }
.specs td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs td:first-child { color: var(--muted); width: 42%; }
.specs tr:nth-child(odd) td { background: var(--bg); }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.kit { list-style: none; padding: 0; margin: 0; counter-reset: kit; }
.kit li { counter-increment: kit; padding: 10px 0 10px 40px; border-bottom: 1px dashed var(--line); position: relative; }
.kit li::before { content: counter(kit); position: absolute; left: 0; top: 9px; width: 26px; height: 26px; border-radius: 6px; background: var(--navy); color: var(--white); font-size: 13px; display: grid; place-items: center; }
.note { font-size: 14px; color: var(--muted); background: #fff8e8; border-left: 4px solid var(--accent); padding: 14px 16px; border-radius: 8px; }

/* ---------- Advantages / steps ---------- */
.adv { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.adv__item { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.adv__icon { width: 52px; height: 52px; border-radius: 12px; background: #fff3dc; display: grid; place-items: center; font-size: 26px; margin-bottom: 16px; }
.adv__item p { color: var(--muted); margin: 0; font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; counter-reset: step; }
.step { counter-increment: step; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { content: '0' counter(step); display: block; font-size: 34px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: var(--white); border-radius: 20px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: var(--white); margin-bottom: 8px; }
.cta p { color: #c9d6e3; margin: 0; max-width: 560px; }

/* ---------- Request / contacts ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.box--gray { background: var(--bg); border: 0; }
.req-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.req-table td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.req-table td:first-child { color: var(--muted); width: 38%; padding-right: 12px; }

.request-list { list-style: none; padding: 0; margin: 0 0 20px; }
.request-list li { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.request-list img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.request-list .qty input { width: 44px; }
.request-list .qty button { width: 30px; }
.remove { background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; }
.remove:hover { color: #c0392b; }

.form { display: grid; gap: 14px; }
.form label { font-size: 14px; font-weight: 600; display: grid; gap: 6px; }
.form input, .form textarea, .form select {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--white);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form textarea { min-height: 110px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__agree { font-weight: 400 !important; font-size: 13px !important; color: var(--muted); display: flex !important; gap: 8px; align-items: start; }
.send-options { display: none; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.send-options.is-visible { display: flex; }
.form-result { display: none; padding: 14px 16px; border-radius: 10px; background: #e9f7ef; color: #1e6b3d; font-size: 15px; }
.form-result.is-visible { display: block; }

.map { border: 0; width: 100%; height: 360px; border-radius: var(--radius); margin-top: 24px; }

/* ---------- Footer ---------- */
.footer { background: #0a1f35; color: #a9bccf; font-size: 14px; padding: 56px 0 24px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 32px; }
.footer h4 { color: var(--white); margin: 0 0 14px; font-size: 15px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--white); }
.footer .logo { color: var(--white); margin-bottom: 14px; }
.footer .logo__text small { color: #a9bccf; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px);
  background: var(--navy); color: var(--white); padding: 14px 22px; border-radius: 10px;
  box-shadow: var(--shadow); transition: .3s; z-index: 100; font-weight: 600;
}
.toast.is-visible { transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .header__phone { display: none; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--white);
    flex-direction: column; gap: 0; padding: 10px 20px 20px; border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header__actions { margin-left: auto; }
  .catalog, .product, .contacts, .two-col { grid-template-columns: 1fr; }
  .filters { position: static; }
  .hero .container { padding-top: 70px; padding-bottom: 70px; }
  .cta { padding: 32px 24px; }
}
@media (max-width: 560px) {
  .footer__grid, .form__row { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .topbar .container > :last-child { display: none; }
  .request-list li { grid-template-columns: 52px 1fr auto; }
  .request-list li .qty { grid-column: 2; justify-self: start; }
  .header .btn { display: none; }
}
