/* Бетонные укрытия — стиль «светлый инженерный» (по утверждённому превью design/preview/index.html). */

@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-400.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-700.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #ecebe7; --ink: #1f2124; --mute: #5f5e5a; --line: #c9c7bf; --paper: #f6f5f2;
  --accent: #c4501a; --accent-2: #e2611b;
  /* Акцент для мелкого текста: чуть темнее, чтобы контраст на светлом фоне был ≥ 4.5:1. */
  --accent-ink: #b0461a;
  --font: 'Manrope', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.5; position: relative; isolation: isolate; overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; }

/* Фактура бетона: крупные растянутые пятна (без повторов) + мелкое зерно + редкие тёмные поры. */
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='1' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .2 0 0 0 0 .21 0 0 0 -40 5.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='.7'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .18 0 0 0 0 .18 0 0 0 0 .19 .7 0 0 0 -.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.5'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1000' preserveAspectRatio='none'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004' numOctaves='4' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .3 0 0 0 0 .29 1.3 0 0 0 -.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)' opacity='.3'/%3E%3C/svg%3E");
  background-size: 420px 420px, 260px 260px, 100% 100%; background-repeat: repeat, repeat, no-repeat; }
/* Чертёжная сетка: едва заметная, только по краям, под контентом исчезает. */
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgb(31 33 36 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(31 33 36 / .07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, #000 0, transparent max(8vw, calc((100vw - 1120px) / 2)), transparent calc(100% - max(8vw, calc((100vw - 1120px) / 2))), #000 100%);
          mask-image: linear-gradient(90deg, #000 0, transparent max(8vw, calc((100vw - 1120px) / 2)), transparent calc(100% - max(8vw, calc((100vw - 1120px) / 2))), #000 100%); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--ink); color: #f2f1ee; padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Видимый фокус для клавиатуры. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.total :focus-visible, .kit-in :focus-visible { outline-color: #f2f1ee; }

/* Пометка неизвестного значения — заметно, акцентным цветом. */
.tbd { color: var(--accent-ink); font-style: italic; font-weight: 500 !important; }

/* ---- Кнопки ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid var(--accent); border-radius: 10px;
  background: var(--accent); color: #fff; font: 700 15px/1 var(--font); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #f2f1ee; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---- 00 Шапка ---- */
.site-head { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; padding: 20px 0; border-bottom: 1px solid var(--ink); flex-wrap: wrap; }
.logo { font-weight: 800; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.logo small { display: block; font-weight: 500; font-size: 12px; color: var(--mute); letter-spacing: 0; text-transform: none; }
.nav ul { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; }
.nav a { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--accent); }
.head-actions { display: flex; align-items: center; gap: 16px; }
.tel { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.tel:hover { color: var(--accent-ink); }

/* ---- 01 Первый экран ---- */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 56px 0; align-items: center; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent-ink); border: 1px solid var(--accent); padding: 4px 10px; letter-spacing: .06em; text-transform: uppercase; }
h1 { font-size: 48px; line-height: 1.05; margin: 16px 0; font-weight: 800; letter-spacing: -.02em; }
.lead { font-size: 18px; color: var(--mute); max-width: 32em; }
.callout { border-left: 4px solid var(--accent); padding: 4px 0 4px 16px; margin: 12px 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-media { margin: 0; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--ink); display: block; }
.dim { font-size: 12px; color: var(--mute); display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--ink); margin-top: 6px; padding-top: 4px; }

/* ---- Общие блоки ---- */
h2 { font-size: 32px; line-height: 1.15; margin: 0 0 24px; letter-spacing: -.01em; }
.block { padding: 48px 0; border-top: 1px solid var(--ink); scroll-margin-top: 8px; }
.footnote { font-size: 13px; color: var(--mute); margin: 16px 0 0; }
.num { font-size: 13px; font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; padding-top: 1px; letter-spacing: .04em; }
.lbl { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; color: var(--ink); }
.hint { font-size: 13px; color: var(--mute); margin: 10px 0 0; }

/* ---- 02 Факты ---- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; border: 1px solid var(--ink); background: var(--paper); }
.fact { display: grid; align-content: start; gap: 6px; padding: 22px 24px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact b { font-size: 18px; line-height: 1.25; font-weight: 800; }
.fact-note { font-size: 14px; color: var(--mute); }

/* ---- 03 Модели ---- */
.models { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--ink); display: flex; flex-direction: column; }
.card img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; display: block; border-bottom: 1px solid var(--ink); }
.card .body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 12px; font-size: 22px; }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec th, .spec td { border-top: 1px dashed var(--line); padding: 6px 0; }
.spec th { text-align: left; font-weight: 500; }
.spec td { text-align: right; font-weight: 600; }
.price { font-size: 30px; font-weight: 800; margin: 16px 0 20px; line-height: 1.2; }
.price small { display: block; font-size: 13px; font-weight: 500; color: var(--mute); margin-top: 4px; }
.card .btn { margin-top: auto; }

/* ---- 04 Что входит / что докупить ---- */
.kit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kit-in { background: var(--ink); color: #f2f1ee; border: 1px solid var(--ink); padding: 24px; display: grid; align-content: start; gap: 18px; }
.kit-in .tag { color: #f2f1ee; border-color: #f2f1ee; justify-self: start; }
.kit-in h3 { margin: 0; font-size: 22px; line-height: 1.2; }
.kit-in p { margin: 0; color: #c9c7bf; font-size: 15px; }
.kit-in dl { margin: 0; display: grid; }
.kit-in dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #b4b2a9; padding-top: 12px; border-top: 1px solid #3a3c40; }
.kit-in dd { margin: 4px 0 14px; font-size: 15px; }
.kit-in dd:last-child { margin-bottom: 0; }
.opt { background: var(--paper); border: 1px solid var(--ink); display: flex; flex-direction: column; }
.opt-media { margin: 0; border-bottom: 1px solid var(--ink); }
.opt-media .shots { display: grid; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr); aspect-ratio: 4/3; overflow: hidden; }
.opt-media .shots.pair { grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ink); }
.opt-media img { width: 100%; height: 100%; object-fit: cover; display: block; min-width: 0; }
.opt-media .dim { margin: 0; padding: 4px 12px; }
.opt .body { padding: 20px; display: grid; gap: 10px; align-content: start; flex: 1; }
.opt .tag { justify-self: start; }
.opt h3 { margin: 0; font-size: 22px; }
.opt p { margin: 0; font-size: 15px; }
.opt .opt-price { display: flex; justify-content: space-between; gap: 12px; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: auto; font-size: 14px; }
.opt .opt-price b { font-weight: 700; }

/* ---- 05 Вопросы и ответы ---- */
.faq { border-top: 1px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 24px; gap: 16px; align-items: center; padding: 18px 0; font-size: 18px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 24px; height: 24px; justify-self: end;
  background: linear-gradient(var(--accent), var(--accent)) center / 14px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2px 14px no-repeat;
  transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-ink); }
.faq .answer { padding: 0 40px 20px 0; color: var(--mute); }
.faq .answer p { margin: 0 0 8px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---- 06 Заявка: бланк заказа ---- */
.box { background: #f7f6f3; border: 1px solid var(--ink); margin: 0; overflow-x: clip; } /* слои тени телефона выходят за край на 70px */
.box-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 32px 32px 28px; border-bottom: 1px solid var(--ink); }
.box-head h2 { margin: 0 0 8px; }
.box-head .lead { margin: 0; font-size: 16px; }
.box-head .call { text-align: right; font-size: 13px; color: var(--mute); white-space: nowrap; }
.box-head .call a { display: block; font-size: 20px; font-weight: 800; color: var(--ink); text-decoration: none; }
.steps { display: grid; grid-template-columns: 1fr 1fr; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 0 12px; padding: 24px 32px; border-top: 1px solid var(--line); min-width: 0; }
.step > div { min-width: 0; }
.step:nth-child(-n+2) { border-top: 0; }
.step:nth-child(even) { border-left: 1px solid var(--line); }
.fields { display: grid; gap: 12px; }
.foot { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.total { padding: 24px 32px; background: var(--ink); color: #f2f1ee; display: grid; gap: 6px; align-content: center; }
.total .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.total small { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #b4b2a9; margin-bottom: 4px; }
.total b { font-size: 30px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.total .fn { margin: 6px 0 0; padding-top: 10px; border-top: 1px solid #3a3c40; font-size: 13px; color: #b4b2a9; }
.send { padding: 24px 32px; display: grid; gap: 16px; align-content: center; }
.form-status { margin: 0; font-size: 14px; }
.form-status:empty { display: none; }
/* Поле-ловушка для спам-ботов: людям не видно и не доступно с клавиатуры. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Компоненты SL UI внутри бланка: на всю ширину, по левому краю, спокойная геометрия. */
.pb { font-family: var(--font); }
.box .pb-f, .box .ph, .box .sd-plate, .box .pb-topics, .box .ck-plate { width: 100%; max-width: none; margin-inline: 0; }
.box .bl { display: grid; justify-items: stretch; gap: 10px; }
.box .bl-price { display: none; }
.box .bl-note { justify-items: start; margin: 0; font-size: 13px; }
.box .bl-seg { width: 100%; }
.box .pb-topics { justify-content: flex-start; }
.box .bl-plate, .box .sd-plate, .box .ph-head, .box .ph-sheet, .box .ph-shade, .box .pb-box { border-radius: 10px; }
.box .bl-seg > i, .box .bl-opt, .box .ph-well::before, .box .ph-ring { border-radius: 7px; }
.box .ck-chip { border-radius: 8px; }
.box .bl-plate, .box .sd-plate, .box .ck-chip, .box .pb-box { box-shadow: 0 0 0 1px var(--line); }
.box .ck-plate { padding: 0; background: none; box-shadow: none; }
.box .pb-btn { width: 100%; border-radius: 10px; box-shadow: none; }
/* Телефон — как поле «Имя»: на всю ширину, белый, одна тонкая линия, разделитель после кода. */
.box .pb-phone.ph { width: 100% !important; } /* контроллер компонента ограничивает ширину инлайном */
.box .ph-head::before { box-shadow: 0 0 0 1px var(--line); }
.box .ph-sheet { box-shadow: 0 0 0 1px var(--line); }
.box .ph-well::before { background: none; }
.box .ph-well.code { flex: 0 0 72px; }
.box .ph-well.code::after { content: ""; position: absolute; right: -3px; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.box .ck-text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.box .ck-text a:hover { color: var(--accent-ink); }

/* ---- 07 Контакты и подвал ---- */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); background: var(--paper); }
.contact { padding: 24px; min-width: 0; }
.contact + .contact { border-left: 1px solid var(--line); }
.contact p { margin: 0; }
.contact .lbl { margin-bottom: 10px; color: var(--mute); }
.contact-tel { font-size: 24px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.contact-tel:hover { color: var(--accent-ink); }
.site-foot { border-top: 1px solid var(--ink); padding: 24px 0 40px; display: grid; gap: 8px; font-size: 13px; color: var(--mute); }
.site-foot p { margin: 0; }
.site-foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-foot a { color: var(--ink); text-underline-offset: 2px; }

/* ---- Страница политики ПДн (/privacy) ---- */
.policy { max-width: 820px; padding: 48px 0 56px; }
.policy h1 { font-size: 40px; margin: 0 0 24px; }
.policy-note { margin: 0 0 32px; padding: 16px 20px; background: var(--paper); border: 1px solid var(--accent); border-left-width: 4px; font-size: 15px; }
.policy-sec { padding: 24px 0; border-top: 1px solid var(--line); }
.policy-sec h2 { font-size: 22px; margin: 0 0 12px; }
.policy-sec p { margin: 0 0 10px; }
.policy-sec p:last-child { margin-bottom: 0; }
.policy-sec ul { margin: 0 0 10px; padding-left: 22px; }
.policy-sec li + li { margin-top: 4px; }
.policy-req { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0 0 12px; padding: 16px 20px; background: var(--paper); border: 1px solid var(--ink); }
.policy-req dt { font-weight: 700; }
.policy-req dd { margin: 0; }
.policy-back { margin: 32px 0 0; }

/* ---- Адаптивность ---- */
@media (max-width: 1000px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .kit { grid-template-columns: 1fr 1fr; }
  .kit-in { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .steps, .foot { grid-template-columns: 1fr; }
  .step:nth-child(2) { border-top: 1px solid var(--line); }
  .step:nth-child(even) { border-left: 0; }
  .box-head { flex-direction: column; align-items: start; }
  .box-head .call { text-align: left; }
  .contacts { grid-template-columns: 1fr; }
  .contact + .contact { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .hero, .models { grid-template-columns: 1fr; }
  .hero { padding: 32px 0 40px; gap: 28px; }
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .nav { order: 3; width: 100%; }
}
@media (max-width: 640px) {
  .kit { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .block { padding: 36px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .site-head { padding: 14px 0; gap: 12px; flex-wrap: wrap; }
  .logo { flex: 1 1 0; min-width: 0; }
  .head-actions .tel { display: none; } /* телефон остаётся в навигации ниже и в блоке «Контакты» */
  .box-head, .step, .total, .send { padding-left: 16px; padding-right: 16px; }
  .step { grid-template-columns: 28px 1fr; gap: 0 8px; }
  .total .row { flex-direction: column; align-items: start; gap: 4px; }
  .box .ph-well.code { flex-basis: 56px; }
  .box .ph input { padding: 0 10px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .faq summary { font-size: 16px; }
  .faq .answer { padding-right: 0; }
  .policy { padding: 32px 0 40px; }
  .policy h1 { font-size: 30px; }
  .policy-req { grid-template-columns: 1fr; gap: 2px; }
  .policy-req dd + dt { margin-top: 8px; }
}
.nav .nav-tel { display: none; }
@media (max-width: 560px) { .nav .nav-tel { display: list-item; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Ошибки у полей формы: класс pb-error и строка .pb-note — из библиотеки; кольцо для телефона и согласия
   и более тёмный красный текст (контраст на светлом бланке) — переопределения проекта. */
.box .pb-error .pb-note { color: #b42318; }
.box [data-field="phone"].pb-error .ph-head::before,
.box [data-field="phone"].pb-error .ph-sheet,
.box [data-field="consent"].pb-error .ck-box { box-shadow: 0 0 0 1px var(--pb-danger), 0 0 0 4px color-mix(in oklab, var(--pb-danger) 18%, transparent); }
.box .pb-btn:disabled { cursor: progress; opacity: .75; }
.form-status[data-tone="error"] { color: #b42318; }
.form-status[data-tone="ok"] { color: #17663a; font-weight: 600; }
