/* ============================================================
   Мир-ГНБ — буровая компания. Основные стили.
   Промышленный стиль: антрацит + акцентный оранжевый.
   Mobile-first, адаптив.
   ============================================================ */

:root {
  --c-anthracite: #1c1f24;
  --c-graphite:   #2a2e35;
  --c-graphite-2: #33383f;
  --c-orange:     #ff7a00;
  --c-orange-d:   #e96b00;
  --c-yellow:     #ffc107;
  --c-white:      #ffffff;
  --c-paper:      #f5f6f8;
  --c-paper-2:    #eceef1;
  --c-text:       #20242b;
  --c-muted:      #6b7280;
  --c-border:     #e2e5ea;
  --shadow-sm: 0 1px 3px rgba(16,20,28,.08), 0 1px 2px rgba(16,20,28,.06);
  --shadow-md: 0 6px 18px rgba(16,20,28,.10);
  --shadow-lg: 0 18px 40px rgba(16,20,28,.16);
  --radius: 10px;
  --radius-lg: 16px;
  --maxw: 1200px;
  --header-h: 72px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1em; }

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

.section { padding: 64px 0; }
.section--tight { padding: 44px 0; }
.section--dark { background: var(--c-anthracite); color: #d8dde4; }
.section--paper { background: var(--c-paper); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-head h2 { margin-bottom: .35em; }
.section-head p { color: var(--c-muted); font-size: 1.05rem; }
.section--dark .section-head p { color: #9aa3af; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-orange); margin-bottom: .8em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 14px 26px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-orange); color: #fff; }
.btn--primary:hover { background: var(--c-orange-d); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--dark { background: var(--c-anthracite); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--outline { background: #fff; color: var(--c-text); border-color: var(--c-border); }
.btn--outline:hover { border-color: var(--c-orange); color: var(--c-orange-d); }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn--block { width: 100%; justify-content: center; }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-anthracite); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.header__bar {
  display: flex; align-items: center; gap: 20px;
  height: var(--header-h);
}
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.25rem; line-height: 1; }
.logo > span { display: flex; flex-direction: column; justify-content: center; }
.logo__mark {
  width: 48px; height: 48px; flex: 0 0 auto;
  object-fit: cover; display: block;
  border-radius: 10px; background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.logo small { display: block; font-size: .6rem; font-weight: 600; letter-spacing: .14em; color: var(--c-orange); text-transform: uppercase; margin-top: 3px; }

.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.nav__link {
  display: block; padding: 10px 14px; font-size: .95rem; font-weight: 600;
  color: #d4d9e0; border-radius: 8px; transition: color .15s, background .15s;
}
.nav__link:hover, .nav__link.is-active { color: #fff; background: rgba(255,255,255,.08); }

.nav__item--has-sub { position: relative; }
.nav__item--has-sub > .nav__link::after { content: "▾"; margin-left: 6px; font-size: .75em; opacity: .7; }
.subnav {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0;
  min-width: 280px; background: #fff; color: var(--c-text);
  border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav__item--has-sub:hover .subnav,
.nav__item--has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .92rem; font-weight: 500; }
.subnav a:hover { background: var(--c-paper); color: var(--c-orange-d); }

.header__contacts { display: flex; align-items: center; gap: 14px; }
.header__phone { font-weight: 800; font-size: 1.02rem; white-space: nowrap; }
.header__phone small { display: block; font-size: .62rem; font-weight: 600; color: #9aa3af; letter-spacing: .08em; }

.burger {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 10px;
}
.burger span { height: 2.5px; background: #fff; border-radius: 2px; transition: .25s; }
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--c-anthracite);
}
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .35;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,23,28,.92) 0%, rgba(20,23,28,.72) 45%, rgba(20,23,28,.35) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: 90px 0 96px; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 .accent { color: var(--c-orange); }
.hero__lead { font-size: 1.2rem; color: #cfd5dd; margin-bottom: 1.8em; max-width: 600px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 48px; }
.hero__stat strong { display: block; font-size: 2.2rem; color: var(--c-orange); line-height: 1; }
.hero__stat span { font-size: .9rem; color: #aeb6c0; }

/* ============================================================
   Directions (направления деятельности)
   ============================================================ */
.dir-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.dir-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.dir-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d4d8de; }
.dir-card__icon {
  width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,122,0,.12); color: var(--c-orange-d); margin-bottom: 16px;
}
.dir-card__icon svg { width: 28px; height: 28px; }
.dir-card h3 { margin-bottom: .4em; }
.dir-card p { color: var(--c-muted); font-size: .96rem; margin-bottom: 1em; }
.dir-card .link-arrow { font-weight: 700; color: var(--c-orange-d); font-size: .92rem; }
.dir-card .link-arrow::after { content: " →"; }

/* ============================================================
   Category tiles (популярные категории аренды)
   ============================================================ */
.cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.cat-tile {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); background: var(--c-graphite);
  display: block;
}
.cat-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease; filter: brightness(.78);
}
.cat-tile:hover img { transform: scale(1.06); filter: brightness(.6); }
.cat-tile__label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 14px 14px;
  color: #fff; font-weight: 700; font-size: 1rem;
  background: linear-gradient(to top, rgba(15,17,21,.9), rgba(15,17,21,0));
}
.cat-tile__label small { display:block; font-weight:600; font-size:.72rem; color: var(--c-orange); text-transform: uppercase; letter-spacing:.06em; }

/* ============================================================
   Why us
   ============================================================ */
.why-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-item__num { font-size: 1.6rem; font-weight: 900; color: var(--c-orange); flex: 0 0 auto; line-height: 1; }
.why-item h3 { font-size: 1.15rem; margin-bottom: .25em; color: #fff; }
.section--dark .why-item p { color: #9aa3af; margin: 0; font-size: .95rem; }

/* ============================================================
   Split block (mixtures / training)
   ============================================================ */
.split { display: grid; gap: 36px; align-items: center; grid-template-columns: 1fr; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.split__body h2 { margin-bottom: .5em; }
.split__body ul { list-style: none; padding: 0; margin: 0 0 1.4em; }
.split__body li { padding: 8px 0 8px 30px; position: relative; color: var(--c-text); }
.split__body li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 16px; height: 16px;
  background: var(--c-orange); border-radius: 4px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ============================================================
   Lead form
   ============================================================ */
.lead {
  background: linear-gradient(135deg, var(--c-graphite), var(--c-anthracite));
  color: #fff; border-radius: var(--radius-lg); padding: 40px 28px;
  box-shadow: var(--shadow-lg);
}
.lead h2 { color: #fff; }
.lead p { color: #aeb6c0; }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 22px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: #cfd5dd; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 9px; border: 1.5px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06); color: #fff; font-family: inherit; font-size: .98rem;
}
.field input::placeholder, .field textarea::placeholder { color: #8b93a0; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c-orange); background: rgba(255,255,255,.1);
}
.field select option { color: #000; }
.field textarea { resize: vertical; min-height: 90px; }
.field--full { grid-column: 1 / -1; }
.form-note { font-size: .78rem; color: #8b93a0; margin: 4px 0 0; }

/* ============================================================
   Product cards (catalog)
   ============================================================ */
.catalog-layout { display: grid; gap: 28px; grid-template-columns: 1fr; }
.filters {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow-sm); align-self: start;
}
.filters h3 { font-size: 1.05rem; }
.filter-group { margin-bottom: 18px; }
.filter-group h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); margin-bottom: 8px; }
.filter-opt { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: .93rem; cursor: pointer; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: #fff; border: 1.5px solid var(--c-border); cursor: pointer; transition: .15s;
}
.chip:hover { border-color: var(--c-orange); color: var(--c-orange-d); }
.chip.is-active { background: var(--c-anthracite); color: #fff; border-color: var(--c-anthracite); }

.product-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.product-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card__media { position: relative; aspect-ratio: 4/3; background: var(--c-paper-2); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 10px; left: 10px; padding: 5px 10px; border-radius: 6px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff;
}
.badge--in { background: #1ba94c; }
.badge--out { background: #9aa3af; }
.badge--soon { background: var(--c-yellow); color: #3a2c00; }
.product-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.product-card__specs { list-style: none; padding: 0; margin: 0 0 14px; font-size: .85rem; color: var(--c-muted); }
.product-card__specs li { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed var(--c-border); }
.product-card__specs li span:last-child { color: var(--c-text); font-weight: 600; }
.product-card__price { margin-top: auto; }
.product-card__price .num { font-size: 1.35rem; font-weight: 800; color: var(--c-text); }
.product-card__price .per { font-size: .82rem; color: var(--c-muted); }
.product-card__actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }

/* ============================================================
   Breadcrumbs / page hero
   ============================================================ */
.page-hero {
  background: var(--c-anthracite); color: #fff; padding: 36px 0 40px; position: relative;
}
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.page-hero p { color: #9aa3af; margin: 0; max-width: 680px; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: .85rem; color: #8b93a0; }
.crumbs a:hover { color: var(--c-orange); }
.crumbs li::after { content: "/"; margin-left: 6px; color: #4b515b; }
.crumbs li:last-child::after { content: ""; }
.crumbs li:last-child { color: #cfd5dd; }

/* sub-category cards (rental overview) */
.subcat-grid { display: grid; gap: 18px; grid-template-columns: repeat(2,1fr); }
.subcat-card {
  background:#fff; border:1px solid var(--c-border); border-radius: var(--radius-lg); overflow:hidden;
  box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
}
.subcat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.subcat-card__media { aspect-ratio: 16/10; overflow:hidden; }
.subcat-card__media img { width:100%; height:100%; object-fit:cover; transition: transform .4s; }
.subcat-card:hover .subcat-card__media img { transform: scale(1.05); }
.subcat-card__body { padding: 16px; }
.subcat-card__body h3 { font-size: 1.08rem; margin-bottom: .25em; }
.subcat-card__body p { color: var(--c-muted); font-size: .88rem; margin: 0 0 10px; }
.subcat-card__body .link-arrow { font-weight:700; color: var(--c-orange-d); font-size:.9rem; }
.subcat-card__body .link-arrow::after { content:" →"; }

/* generic prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* feature row */
.feat-grid { display:grid; gap:20px; grid-template-columns: 1fr; }
.feat { background:#fff; border:1px solid var(--c-border); border-radius: var(--radius); padding:22px; box-shadow: var(--shadow-sm); }
.feat__icon { width:48px;height:48px;border-radius:10px;background:rgba(255,122,0,.12);color:var(--c-orange-d);display:grid;place-items:center;margin-bottom:12px;}
.feat__icon svg{width:24px;height:24px;}
.feat h3{font-size:1.08rem;margin-bottom:.3em;}
.feat p{color:var(--c-muted);font-size:.92rem;margin:0;}

/* ============================================================
   Photo slider (production)
   ============================================================ */
.slider {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16 / 11; background: var(--c-graphite); box-shadow: var(--shadow-md);
}
.slider__slide { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity .5s ease; cursor: zoom-in; }
.slider__slide.is-active { opacity: 1; z-index: 1; }
.slider__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(16,20,28,.45); color: #fff; font-size: 1.05rem;
  display: grid; place-items: center; transition: background .15s;
}
.slider__arrow:hover { background: rgba(16,20,28,.75); }
.slider__arrow--prev { left: 12px; }
.slider__arrow--next { right: 12px; }
.slider__dots {
  position: absolute; bottom: 12px; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: center; gap: 8px;
}
.slider__dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.55); transition: background .15s, transform .15s;
}
.slider__dot.is-active { background: var(--c-orange); transform: scale(1.25); }

/* ============================================================
   Price table + calculator (services)
   ============================================================ */
.price-layout { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
.price-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.price-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.price-table th, .price-table td { padding: 12px 18px; text-align: left; }
.price-table thead th { background: var(--c-anthracite); color: #fff; font-weight: 700; }
.price-table tbody tr:nth-child(even) { background: #f6f7f9; }
.price-table td:last-child { font-weight: 700; color: var(--c-orange-d); white-space: nowrap; }
.price-conditions { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 8px; }
.price-conditions li { position: relative; padding-left: 26px; color: #4b5563; font-size: .95rem; }
.price-conditions li::before { content: "•"; position: absolute; left: 8px; color: var(--c-orange); font-weight: 700; }

.calc {
  background: linear-gradient(135deg, var(--c-graphite), var(--c-anthracite));
  color: #fff; border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow-lg);
}
.calc h3 { color: #fff; font-size: 1.25rem; margin-bottom: .3em; }
.calc__hint { color: #aeb6c0; font-size: .9rem; margin-bottom: 18px; }
.calc .field { margin-bottom: 14px; }
.calc .field label { display: block; font-size: .85rem; color: #aeb6c0; margin-bottom: 6px; }
.calc .field select, .calc .field input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08); color: #fff; font-size: 1rem; font-family: var(--font);
}
.calc .field select option { color: var(--c-text); background: #fff; }
.calc .field select:focus, .calc .field input:focus { outline: 2px solid var(--c-orange); border-color: transparent; }
.calc__result {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 16px 0 6px; flex-wrap: wrap;
}
.calc__result span { color: #aeb6c0; font-size: .95rem; }
.calc__result strong { font-size: 1.9rem; color: var(--c-orange); line-height: 1; }
.calc__note { color: #aeb6c0; font-size: .85rem; margin: 0 0 14px; }
.calc .btn { margin-top: 8px; }

/* ============================================================
   Drilling tools catalog
   ============================================================ */
.toolgroup { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; margin-bottom: 28px; }
.toolgroup__media img {
  width: 100%; aspect-ratio: 16 / 8; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: block;
}
.toolgroup__head h2 { margin-bottom: .35em; }
.toolgroup__head p { color: var(--c-muted); margin: 0; max-width: 720px; }
.tool-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.tool-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tool-card h3 { font-size: 1.08rem; margin-bottom: 12px; }
.tool-card .product-card__specs { margin-bottom: 16px; }
.tool-card__actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tool-card__price { font-weight: 700; color: var(--c-muted); font-size: .92rem; }

/* ============================================================
   Articles
   ============================================================ */
.article-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.article-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.article-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-graphite); }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.article-card:hover .article-card__media img { transform: scale(1.04); }
.article-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card__body time { color: var(--c-muted); font-size: .85rem; }
.article-card__body h2 { font-size: 1.2rem; line-height: 1.35; margin: 0; }
.article-card__body h2 a { color: var(--c-text); text-decoration: none; }
.article-card__body h2 a:hover { color: var(--c-orange-d); }
.article-card__body p { color: var(--c-muted); font-size: .93rem; margin: 0 0 6px; flex: 1; }

.lightbox {
  position: fixed; inset: 0; background: rgba(16,20,28,.92);
  display: none; align-items: center; justify-content: center; z-index: 300; padding: 48px 64px;
}
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 100%; max-height: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox__close,
.lightbox__nav {
  position: absolute; background: none; border: none; color: #fff; cursor: pointer;
  font-size: 2rem; line-height: 1; padding: 12px; opacity: .8; transition: opacity .15s;
}
.lightbox__close:hover, .lightbox__nav:hover { opacity: 1; }
.lightbox__close { top: 12px; right: 16px; font-size: 2.4rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: #14171b; color: #9aa3af; padding: 56px 0 28px; font-size: .92rem; }
.footer a:hover { color: var(--c-orange); }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; margin-bottom: 36px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 8px; }
.footer__brand .logo { color: #fff; margin-bottom: 14px; }
.footer__contacts li { display: flex; gap: 8px; align-items: flex-start; }
.footer__req { font-size: .8rem; line-height: 1.7; color: #767e8a; }
.footer__map { border-radius: 12px; overflow: hidden; border: 1px solid #262b31; min-height: 200px; }
.footer__map iframe { width: 100%; height: 100%; min-height: 220px; border: 0; filter: grayscale(.3) contrast(1.05); }
.footer__legal {
  display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 22px 0 4px;
  border-top: 1px solid #262b31;
}
.footer__legal a { font-size: .85rem; color: #9aa3af; }
.footer__legal a:hover { color: var(--c-orange); }
.footer__bottom {
  border-top: 1px solid #262b31; padding-top: 20px; display: flex; flex-wrap: wrap;
  gap: 10px; justify-content: space-between; font-size: .82rem; color: #6b727d;
}

/* call-back modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(10,12,15,.6); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.modal-backdrop.is-open { display: flex; }
.modal {
  background: #fff; color: var(--c-text); border-radius: var(--radius-lg); padding: 32px 26px;
  width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); position: relative;
}
.modal h3 { font-size: 1.4rem; }
.modal p { color: var(--c-muted); font-size: .92rem; }
.modal .field label { color: var(--c-text); }
.modal .field input, .modal .field select, .modal .field textarea { background: var(--c-paper); border-color: var(--c-border); color: var(--c-text); }
.modal .field input::placeholder { color: #9aa3af; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; background: var(--c-paper); border-radius: 8px; cursor: pointer; font-size: 1.2rem; }
.modal__close:hover { background: var(--c-paper-2); }

.form-success { display: none; padding: 14px 16px; border-radius: 9px; background: rgba(27,169,76,.12); color: #137a37; font-weight: 600; font-size: .92rem; margin-top: 14px; }
.form-success.is-shown { display: block; }

/* utilities */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.hide { display: none !important; }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 600px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .feat-grid { grid-template-columns: repeat(2,1fr); }
}
@media (min-width: 768px) {
  .dir-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .split--rev .split__media { order: 2; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .subcat-grid { grid-template-columns: repeat(3,1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__map-col { grid-column: 1 / -1; }
  .feat-grid { grid-template-columns: repeat(3,1fr); }
  .price-layout { grid-template-columns: 1.2fr 1fr; }
  .tool-grid { grid-template-columns: repeat(2,1fr); }
  .article-grid { grid-template-columns: repeat(2,1fr); }
  .toolgroup { grid-template-columns: 340px 1fr; }
  .toolgroup__media img { aspect-ratio: 4 / 3; }
}
@media (min-width: 992px) {
  .tool-grid { grid-template-columns: repeat(4,1fr); }
}
@media (min-width: 992px) {
  .dir-grid { grid-template-columns: repeat(5, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .catalog-layout { grid-template-columns: 260px 1fr; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; }
  .footer__map-col { grid-column: auto; }
  .lead { padding: 48px 44px; }
}

/* ---- mobile nav ---- */
@media (max-width: 991px) {
  .burger { display: flex; }
  .header__contacts .header__phone { display: none; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: rgba(20, 23, 28, .82);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    margin: 0; padding: 16px;
    transform: translateX(100%); transition: transform .28s ease; overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 14px 12px; font-size: 1.05rem; border-radius: 8px; }
  .nav__item--has-sub > .nav__link::after { float: right; }
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: rgba(255,255,255,.04); color: #cfd5dd; margin: 4px 0 8px; padding: 4px;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav__item--has-sub.is-expanded .subnav { max-height: 600px; }
  .subnav a { color: #cfd5dd; }
  .subnav a:hover { background: rgba(255,255,255,.08); color: #fff; }
}
