/* Дизайн-система по референсу data-point.ru, вторая итерация — сверена
   с полностраничными скриншотами референса:
   Inter Tight; чёрный #1C1B1E на белом; рабочий акцент — синий #174EB5
   (кнопки, ссылки, чипы, плюсы); серые подложки #F5F5F5; прямые углы;
   метки [ Раздел ] серым; коралловый оставлен только пометкам .todo. */

:root {
  --ink: #1c1b1e;
  --ink-soft: #6b6b6d;
  --grey: #9d9d9e;
  --line: #e6e6e7;
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --blue: #174eb5;
  --blue-dark: #113c8d;
  --todo: #ff8562;
  --max: 1364px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter Tight", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 38px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* ---------- типографика ---------- */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.4vw, 64px); }
h2 { font-size: clamp(30px, 3.5vw, 48px); }
h3 { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.3; }

.tag { font-size: 13px; font-weight: 400; color: var(--grey); }
.tag::before { content: "[ "; }
.tag::after  { content: " ]"; }

.sub-note { font-size: 14.5px; color: var(--ink-soft); max-width: 52ch; line-height: 1.55; }

.todo { border-bottom: 1px dashed var(--todo); padding-bottom: 1px; cursor: help; }
.stat-big.todo { border-bottom: none; }
.stat-big.todo::after {
  content: "уточнить"; display: inline-block; vertical-align: super;
  font-size: 11px; font-weight: 500; letter-spacing: .04em; color: var(--todo);
  border: 1px dashed var(--todo); padding: 2px 7px; margin-left: 12px;
}

/* ---------- шапка ---------- */
header.site {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background .25s, border-color .25s, box-shadow .25s;
}
header.site.stuck { box-shadow: 0 6px 24px -18px rgba(28,27,30,.35); }
header.site .bar { display: flex; align-items: center; gap: 34px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: .06em; white-space: nowrap; }
.logo .mark { width: 30px; height: 30px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 700; letter-spacing: 0; }
.btn-cat {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14.5px; font-weight: 500;
}
.btn-cat .plus { width: 22px; height: 22px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 15px; line-height: 1; }
nav.main { display: flex; gap: 30px; margin-left: auto; }
nav.main a { font-size: 14.5px; color: var(--ink); opacity: .85; transition: opacity .15s; }
nav.main a:hover, nav.main a.on { opacity: 1; }
.head-phone { font-weight: 600; font-size: 14.5px; white-space: nowrap; }

/* прозрачная шапка над хиро; при прокрутке возвращается белая */
header.site.over-hero:not(.stuck) { background: transparent; border-color: transparent; color: #fff; }
header.site.over-hero:not(.stuck) nav.main a { color: #fff; opacity: .88; }
header.site.over-hero:not(.stuck) nav.main a:hover,
header.site.over-hero:not(.stuck) nav.main a.on { opacity: 1; }
header.site.over-hero:not(.stuck) .bar { text-shadow: 0 1px 8px rgba(10,12,15,.45); }
header.site.over-hero:not(.stuck) .todo { border-bottom-color: rgba(255,255,255,.55); }
header.site.over-hero:not(.stuck) .logo .mark { background: #fff; color: var(--ink); }
header.site.over-hero:not(.stuck) .btn-cat .plus { background: #fff; color: var(--ink); }
main { padding-top: 60px; }
body.has-hero main { padding-top: 0; }
@media (max-width: 960px) { nav.main { display: none; } }
@media (max-width: 620px) {
  .head-phone { display: none; }
  header.site .bar { gap: 20px; }
  .hero .inner { padding-top: 96px; }
  .hero-feats { grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 26px; }
  section.block { padding: 72px 0; }
  .sec-head { margin-bottom: 38px; }
  .about .left { justify-items: start; }
  .photo-strip img { height: 60vw; }
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: 14px; font-weight: 500;
  padding: 14px 26px; border: none;
  background: var(--blue); color: #fff;
  cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--blue-dark); }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: var(--bg-soft); }
.link-act { color: var(--blue); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.link-act .plus { width: 18px; height: 18px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 13px; }
.link-act:hover { color: var(--blue-dark); }
.link-act:hover .plus { background: var(--blue-dark); }

/* ---------- хиро ---------- */
.hero {
  position: relative; color: #fff;
  min-height: min(96vh, 860px);
  display: flex; flex-direction: column;
  overflow: hidden;
}
/* .wrap внутри флекс-колонки: margin:auto по поперечной оси отменяет
   растягивание и сжимает блок по контенту — возвращаем полную ширину */
.hero > .wrap { width: 100%; }
.hero > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(10,12,15,.66) 0%, rgba(10,12,15,.28) 9%, rgba(10,12,15,0) 20%),
    linear-gradient(102deg, rgba(10,12,15,.78) 0%, rgba(10,12,15,.45) 46%, rgba(10,12,15,.18) 74%, rgba(10,12,15,.42) 100%),
    linear-gradient(0deg, rgba(10,12,15,.62) 0%, rgba(10,12,15,0) 34%);
}
.hero .inner { position: relative; z-index: 1; padding-top: 118px; }
.hero h1 { max-width: 21ch; }
.hero .mid { flex: 1; }
.hero .foot { position: relative; z-index: 1; display: grid; gap: 34px; padding-bottom: 0; }
.hero .sub { max-width: 44ch; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.92); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .actions .btn { padding: 16px 34px; font-size: 14.5px; }
/* нижняя полоса фич: линия + 4 колонки с квадратиками */
.hero-feats {
  border-top: 1px solid rgba(255,255,255,.28);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding: 26px 0 34px; margin-top: 44px;
}
@media (max-width: 900px) { .hero-feats { grid-template-columns: repeat(2, 1fr); } }
.hero-feats div { font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,.92); max-width: 24ch; }
.sqs { display: flex; gap: 4px; margin-bottom: 10px; }
.sqs i { width: 8px; height: 8px; background: rgba(255,255,255,.32); }
.sqs i.on { background: #fff; }

/* хиро внутренних страниц */
.hero.page { min-height: 460px; }
.hero.page h1 { font-size: clamp(30px, 3.4vw, 48px); }
.crumbs { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 20px; }
.crumbs a:hover { color: #fff; }
.hero.page .foot { padding-bottom: 34px; display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero-points span { font-size: 13.5px; color: rgba(255,255,255,.9); display: inline-flex; align-items: center; gap: 8px; }
.hero-points span::before { content: ""; width: 7px; height: 7px; background: #fff; }

/* ---------- секции ---------- */
section.block { padding: 118px 0; }
section.block.tight { padding: 84px 0; }
.sec-head { display: grid; gap: 18px; margin-bottom: 62px; }
.sec-head .row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.sec-head h2 { max-width: 20ch; }

/* ---------- разделы каталога: серые карточки с плюсом ---------- */
.grid { display: grid; gap: 12px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.c6 { grid-template-columns: repeat(6, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px) { .grid.c6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1020px) { .grid.c4 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid.c4, .grid.c3, .grid.c2, .grid.c6 { grid-template-columns: 1fr; } }

.cat-card {
  position: relative; background: var(--bg-soft);
  padding: 18px; min-height: 240px;
  display: flex; flex-direction: column;
  transition: background .18s;
}
.cat-card:hover { background: #ededee; }
.cat-card .plus {
  position: absolute; top: 14px; right: 14px;
  width: 24px; height: 24px; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: 16px; line-height: 1;
}
.cat-card .ph { flex: 1; display: flex; align-items: center; justify-content: center; padding: 10px 4px 18px; }
.cat-card .ph img {
  max-height: 138px; width: auto; max-width: 100%;
  object-fit: contain; mix-blend-mode: multiply;
  transition: transform .3s ease;
}
.cat-card:hover .ph img { transform: scale(1.05); }
.cat-card h3 { font-size: 15.5px; }
.cat-card small { font-size: 13px; color: var(--grey); margin-top: 3px; }

/* ---------- карточка товара: без рамки, серая фотозона ---------- */
.prod { display: flex; flex-direction: column; }
.prod .ph { background: var(--bg-soft); aspect-ratio: 1/0.82; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 12px; }
.prod .ph img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s ease; }
.prod .ph.scene { padding: 0; }
.prod .ph.scene img { object-fit: cover; mix-blend-mode: normal; }
.prod:hover .ph img { transform: scale(1.03); }
.prod .in { padding: 14px 0 0; display: grid; gap: 5px; }
.prod .name { font-weight: 600; font-size: 14.5px; line-height: 1.3; transition: color .15s; }
.prod:hover .name { color: var(--blue); }
.prod .spec { font-size: 12px; color: var(--grey); line-height: 1.45; }
.prod .price { font-weight: 700; font-size: 15.5px; margin-top: 5px; }
.prod .price small { font-weight: 400; font-size: 12px; color: var(--ink-soft); }

/* ---------- преимущества: слева заголовок+фото, справа список ---------- */
.adv-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
@media (max-width: 960px) { .adv-split { grid-template-columns: 1fr; gap: 44px; } }
.adv-split .left { display: grid; gap: 26px; align-content: start; }
.adv-split .left img { width: min(100%, 420px); aspect-ratio: 4/3; object-fit: cover; margin-top: 26px; }
.adv-list { display: grid; }
.adv-list article { border-top: 1px solid var(--ink); padding: 20px 0 26px; display: grid; gap: 10px; }
.adv-list .head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.adv-list h3 { font-size: 16px; max-width: 30ch; }
.adv-list .num { font-size: 12.5px; color: var(--blue); white-space: nowrap; }
.adv-list .num::before { content: "[ "; color: var(--grey); }
.adv-list .num::after { content: " ]"; color: var(--grey); }
.adv-list p { font-size: 13.5px; color: var(--ink-soft); max-width: 56ch; }

/* ---------- о компании ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 40px; } }
.about .left { display: grid; gap: 40px; align-content: start; }
.year-row { display: flex; align-items: flex-end; gap: 18px; }
.stat-big { font-size: clamp(90px, 9.5vw, 150px); font-weight: 700; letter-spacing: -0.04em; line-height: 0.85; }
.year-row small { font-size: 13px; color: var(--ink-soft); line-height: 1.4; padding-bottom: 10px; max-width: 16ch; }
.about .right { display: grid; gap: 24px; justify-items: start; }
.photo-strip { width: 100%; }
.photo-strip img { width: 100%; height: min(56vw, 620px); object-fit: cover; }

/* ---------- шаги: серые карточки с чипами ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .steps { grid-template-columns: 1fr; } }
.steps article { background: var(--bg-soft); padding: 20px 20px 26px; display: grid; gap: 0; align-content: start; min-height: 240px; }
.steps .top { display: flex; align-items: center; gap: 12px; }
.steps .n { font-size: 13px; font-weight: 500; }
.steps .chip { background: #fff; color: var(--blue); font-size: 12px; font-weight: 500; padding: 5px 12px; }
.steps h3 { font-size: 15.5px; margin-top: 46px; max-width: 24ch; }
.steps p { font-size: 13px; color: var(--ink-soft); margin-top: 12px; max-width: 40ch; }

/* ---------- CTA: фото слева, синяя панель справа ---------- */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
@media (max-width: 900px) { .cta-split { grid-template-columns: 1fr; } }
.cta-split .photo { min-height: 420px; }
.cta-split .photo img { width: 100%; height: 100%; object-fit: cover; }
.cta-split .panel { background: var(--blue); color: #fff; padding: clamp(28px, 4vw, 56px); display: grid; gap: 20px; align-content: start; }
.cta-split .tag { color: rgba(255,255,255,.65); }
.cta-split h2 { font-size: clamp(24px, 2.4vw, 34px); }
.cta-split p.note { font-size: 13.5px; color: rgba(255,255,255,.8); max-width: 52ch; }
.cta-split form { display: grid; gap: 26px; margin-top: 10px; }
.cta-split .frow { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
@media (max-width: 560px) { .cta-split .frow { grid-template-columns: 1fr; } }
.cta-split input, .cta-split textarea {
  font: inherit; font-size: 14px; width: 100%;
  background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,.45);
  color: #fff; padding: 8px 0 10px; resize: vertical;
}
.cta-split input::placeholder, .cta-split textarea::placeholder { color: rgba(255,255,255,.65); }
.cta-split input:focus, .cta-split textarea:focus { outline: none; border-bottom-color: #fff; }
.cta-split .agree { display: flex; gap: 10px; align-items: flex-start; font-size: 11.5px; color: rgba(255,255,255,.7); max-width: 56ch; }
.cta-split .agree input { width: 14px; height: 14px; margin-top: 2px; accent-color: #fff; }
.cta-split .agree a { text-decoration: underline; }
.cta-split .btn.light { justify-self: start; padding: 13px 30px; }

/* ---------- футер: белый ---------- */
footer.site { background: var(--bg); border-top: 1px solid var(--line); padding: 76px 0 40px; }
footer.site .cols { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 48px; padding-bottom: 52px; }
@media (max-width: 900px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { footer.site .cols { grid-template-columns: 1fr; } }
footer.site .logo { font-size: 23px; }
footer.site .logo .mark { width: 40px; height: 40px; font-size: 20px; }
footer.site .brand p { font-size: 13.5px; color: var(--ink-soft); max-width: 34ch; margin-top: 18px; }
footer.site h4 { font-size: 13px; font-weight: 400; color: var(--grey); margin-bottom: 16px; }
footer.site .list { display: grid; gap: 9px; }
footer.site .list a { font-size: 14px; }
footer.site .list a:hover { color: var(--blue); }
.foot-phone { font-weight: 700; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.01em; display: block; }
.foot-mail { font-weight: 700; font-size: clamp(17px, 1.6vw, 21px); display: block; margin-top: 2px; }
.msg-btns { display: flex; gap: 10px; margin-top: 18px; }
.msg-btns a { background: var(--blue); color: #fff; font-size: 13px; font-weight: 500; padding: 10px 18px; }
.msg-btns a:hover { background: var(--blue-dark); }
footer.site .fine { border-top: 1px solid var(--line); padding-top: 26px; font-size: 11.5px; color: var(--grey); line-height: 1.55; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { footer.site .fine { grid-template-columns: 1fr; } }

/* ---------- внутренние страницы ---------- */
/* лид: первый абзац статьи крупнее и спокойнее */
.article .body p.lead-p { font-size: 19px; line-height: 1.6; color: var(--ink-soft); }

/* нижняя полоса хиро внутренних страниц — та же система, что на главной */
.hero.page .hero-feats { grid-template-columns: repeat(3, 1fr) auto; align-items: start; }
.hero.page .hero-feats .cta-cell { align-self: center; }
@media (max-width: 900px) {
  .hero.page .hero-feats { grid-template-columns: 1fr 1fr; }
  .hero.page .hero-feats .cta-cell { grid-column: 1 / -1; }
}

/* карточка «смотрите также»: сценное фото сверху, подпись ниже */
.cat-card.scene { padding: 0; min-height: 0; background: #fff; }
.cat-card.scene .ph { padding: 0; flex: none; }
.cat-card.scene .ph img { max-height: none; height: 190px; width: 100%; object-fit: cover; mix-blend-mode: normal; }
.cat-card.scene .in { background: var(--bg-soft); padding: 18px; transition: background .18s; }
.cat-card.scene:hover .in { background: #ededee; }
.cat-card.scene small { display: block; }

/* контакты: карточка базы */
.base-card { background: var(--bg-soft); padding: 26px 24px 30px; position: relative; display: grid; gap: 12px; align-content: start; }
.base-card .plus { position: absolute; top: 16px; right: 16px; width: 24px; height: 24px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 16px; }
.base-card h3 { font-size: 18px; }
.base-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* ---------- статья (внутренние страницы) ---------- */
.article { display: grid; grid-template-columns: minmax(0, 760px) 300px; gap: 72px; padding: 84px 0 96px; }
@media (max-width: 1020px) { .article { grid-template-columns: 1fr; } }
.article .body { font-size: 16.5px; line-height: 1.65; }
.article .body > * + * { margin-top: 1.1em; }
.article .body h2 { font-size: clamp(23px, 2.4vw, 30px); margin-top: 2em; }
.article .body h3 { margin-top: 1.6em; }
.article .body ul, .article .body ol { padding-left: 22px; display: grid; gap: 8px; }
.article .body li::marker { color: var(--blue); font-weight: 700; }
.article .body table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.article .body th, .article .body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.article .body th { background: var(--bg-soft); font-weight: 600; }
.article .body .tbl { overflow-x: auto; }

aside.rail { display: grid; gap: 14px; align-content: start; position: sticky; top: 86px; }
.rail > .tag { margin-bottom: 2px; }
.rail .card { border: 1px solid var(--line); padding: 24px; display: grid; gap: 12px; }
.rail .card.dark { background: var(--blue); color: #fff; border-color: var(--blue); }
.rail .card h3 { font-size: 17px; }
.rail .card p { font-size: 13.5px; color: var(--ink-soft); }
.rail .card.dark p { color: rgba(255,255,255,.75); }
.rail nav { display: grid; border: 1px solid var(--line); }
.rail nav a { padding: 12px 18px; font-size: 13.5px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.rail nav a:last-child { border-bottom: none; }
.rail nav a:hover { color: var(--ink); background: var(--bg-soft); }

/* ---------- reveal (прогрессивное улучшение) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.anim .rv { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
  html.anim .rv.in { opacity: 1; transform: none; }
}

/* ---------- cookie-уведомление (152-ФЗ) ---------- */
.cookie{
  position:fixed; left:0; right:0; bottom:0; z-index:60;
  background:var(--ink); color:#fff;
  display:flex; flex-wrap:wrap; gap:18px; align-items:center; justify-content:center;
  padding:16px 24px;
}
.cookie[hidden]{display:none;}
.cookie p{font-size:13px; line-height:1.5; max-width:86ch; color:rgba(255,255,255,.85);}
.cookie a{color:#fff; text-decoration:underline;}
.cookie button{
  font:inherit; font-size:13.5px; font-weight:500; background:#fff; color:var(--ink);
  border:none; padding:11px 26px; cursor:pointer; white-space:nowrap;
}
.cookie button:hover{background:var(--bg-soft);}
