/* Пензатент — стили сайта. Мобильная версия в приоритете. */
:root {
  --brand: #b90100;
  --accent: #ffc107;
  --brand-d: #8f0100;
  --brand-50: #fff1ef;
  --ink: #12161b;
  --ink-2: #222a33;
  --text: #1d242c;
  --muted: #5a6572;
  --line: #e3e7ec;
  --bg: #ffffff;
  --bg-2: #f4f6f8;
  --ok: #1f9d55;
  --err: #d33b2c;
  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(18, 22, 27, 0.06), 0 8px 24px rgba(18, 22, 27, 0.06);
  --shadow-lg: 0 18px 48px rgba(18, 22, 27, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --gap: 16px;
  --hdr: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }

body {
  margin: 0;
  font: 16px/1.55 var(--font);
  color: var(--text);
  background: var(--bg);
  padding-bottom: 72px; /* мобильная панель */
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-d); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3 { color: var(--ink); line-height: 1.18; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button { font: inherit; }
:focus-visible { outline: 3px solid rgba(185, 1, 0, 0.45); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gap); }
.wrap--narrow { max-width: 860px; }
.i { width: 20px; height: 20px; flex: none; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: 12px; border: 2px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  white-space: nowrap; max-width: 100%;
}
.btn span { overflow: hidden; text-overflow: ellipsis; }
.btn:active { transform: translateY(1px); }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-d); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-d); }
.btn--light { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn--light:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.btn--lg { min-height: 54px; font-size: 16px; }
.btn--block { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.btns .btn { flex: 1 1 100%; }

/* ---------- шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.hdr__in { display: flex; align-items: center; gap: 12px; min-height: var(--hdr); }
.logo { display: inline-flex; color: var(--brand); flex: none; }
.logo svg { width: 132px; height: auto; display: block; }
.logo--light svg { width: 150px; }
.nav, .hdr__contacts, .hdr__max, .hdr__cta { display: none; }
.hdr__call { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand-d); }
.burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }

.burger__close { display: none; }
.menu-open, .menu-open body { overflow: hidden; }

.drawer { position: fixed; inset: 0; z-index: 95; background: #f4f6f8; display: flex; flex-direction: column; animation: drawerIn 0.22s ease; }
.drawer[hidden] { display: none; }
@keyframes drawerIn { from { opacity: 0; transform: translateY(10px); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--hdr); padding: 0 var(--gap); background: #fff; border-bottom: 1px solid var(--line); }
.drawer__close { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 14px var(--gap) calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.drawer__quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 4px; }
.drawer__q { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: 13px; text-decoration: none; cursor: pointer; }
.drawer__q .i { color: var(--brand-d); }
.drawer__q--call { background: var(--brand); border-color: var(--brand); color: #fff; }
.drawer__q--call .i { color: #fff; }
.drawer__q--lead { background: var(--ink); border-color: var(--ink); color: #fff; }
.drawer__q--lead .i { color: #ffc107; }
.drawer__group { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.drawer__group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 16px; font-weight: 800; font-size: 17px; color: var(--ink); }
.drawer__group > summary::-webkit-details-marker { display: none; }
.drawer__group > summary .i { margin-left: auto; color: var(--brand); transition: transform 0.2s; }
.drawer__group[open] > summary .i { transform: rotate(45deg); }
.drawer__cnt { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--bg-2); border-radius: 999px; padding: 2px 8px; }
.drawer__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 12px 4px; }
.drawer__tiles a { display: flex; flex-direction: column; gap: 6px; padding: 6px 6px 10px; border-radius: 12px; background: var(--bg-2); color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.drawer__tiles img, .drawer__ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; background: #e6eaee; display: flex; align-items: center; justify-content: center; color: #b7c0ca; }
.drawer__tiles span { padding: 0 4px; }
.drawer__all { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 12px 12px; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line); color: var(--brand-d); font-weight: 700; text-decoration: none; }
.drawer__all .i { width: 16px; height: 16px; }
.drawer__link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.drawer__link > .i:first-child { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--brand-50); color: var(--brand-d); }
.drawer__link > span { flex: 1; display: grid; font-weight: 800; font-size: 16px; }
.drawer__link small { font-weight: 500; font-size: 13px; color: var(--muted); }
.drawer__link > .i:last-child { width: 18px; height: 18px; color: #b3bcc6; }
.drawer__contacts { display: grid; gap: 8px; margin-top: 8px; padding: 18px 16px; border-radius: 16px; background: var(--ink); color: #c9d1da; }
.drawer__phone { font-size: 24px; font-weight: 900; color: #fff; text-decoration: none; }
.drawer__phone--2 { font-size: 18px; color: #dfe5ec; }
.drawer__contacts p { display: flex; gap: 8px; margin: 0; font-size: 14px; }
.drawer__contacts p .i { width: 18px; height: 18px; color: #ffc107; flex: none; margin-top: 2px; }
.drawer__contacts .btn { margin-top: 8px; }
@media (min-width: 1024px) { .drawer { display: none !important; } }

/* ---------- первый экран ---------- */
.hero { background: linear-gradient(180deg, var(--bg-2), #fff); padding: 20px 0 36px; }
.hero--landing { padding-top: 12px; }
.hero--slim { padding-bottom: 20px; }
.hero__grid { display: grid; gap: 24px; align-items: center; }
.hero__grid > *, .product > * { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--brand-d); background: var(--brand-50); padding: 6px 12px; border-radius: 999px; margin: 0 0 14px; }
.eyebrow .i { width: 16px; height: 16px; }
.hero__title { font-size: clamp(28px, 7.2vw, 52px); font-weight: 800; margin: 0 0 14px; }
.hero__lead { font-size: clamp(16px, 4.2vw, 19px); color: var(--ink-2); margin: 0 0 8px; max-width: 46em; }
.hero__note { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.hero__note .i { width: 18px; height: 18px; }
.hero__media img { width: 100%; border-radius: var(--r); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-2); }

.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink-2); }
.ticks .i { color: var(--ok); margin-top: 2px; }

.price-badge { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 16px 0 0; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 15px; }
.price-badge b { font-size: 22px; }
.price-badge span { color: #c9d1da; }

.stats { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stats li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 10px; text-align: center; }
.stats b { display: block; font-size: clamp(20px, 5.4vw, 30px); color: var(--brand-d); line-height: 1.1; }
.stats span { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; margin-top: 4px; }

/* ---------- хлебные крошки ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 0; margin: 4px 0 14px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b3bcc6; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-d); }

/* ---------- секции ---------- */
.sec { padding: 44px 0; }
.sec--alt { background: var(--bg-2); }
.sec__head { margin-bottom: 22px; max-width: 760px; }
.sec__title { font-size: clamp(24px, 5.8vw, 36px); font-weight: 800; margin: 0 0 8px; }
.sec__lead { color: var(--muted); margin: 0; font-size: 16px; }
.more { margin: 22px 0 0; }
.more .btn { width: 100%; }
.note { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* ---------- карточки ---------- */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.card { min-width: 0; }
.card__link { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--text); transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; }
.card__link:hover { box-shadow: var(--shadow); border-color: #d3d9e0; transform: translateY(-2px); color: var(--text); }
.card__img { display: block; aspect-ratio: 4 / 3; background: var(--bg-2); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card__link:hover .card__img img { transform: scale(1.04); }
.card__ph { display: flex; align-items: center; justify-content: center; height: 100%; color: #b7c0ca; }
.card__ph .i { width: 40px; height: 40px; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.card__t { font-weight: 800; font-size: 17px; color: var(--ink); line-height: 1.3; }
.card__d { color: var(--muted); font-size: 14px; line-height: 1.45; }
.card__p { font-weight: 700; color: var(--brand-d); }
.card__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--brand-d); font-weight: 700; font-size: 14px; }
.card__more .i { width: 16px; height: 16px; }
.cards--works .card__t { font-size: 15px; font-weight: 700; }

/* телефоны: крупные карточки с фото */
@media (max-width: 639px) {
  .cards { gap: 12px; }
  .card__img { aspect-ratio: 16 / 9; }
  .card__body { padding: 12px 14px 14px; gap: 4px; }
  .card__t { font-size: 17px; }
  .card__d { font-size: 14px; }
  .cards--products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cards--products .card__img { aspect-ratio: 4 / 3; }
  .cards--products .card__body { padding: 10px 10px 12px; }
  .cards--products .card__t { font-size: 14px; }
  .cards--products .card__d { display: none; }
  .feat { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 16px; }
  .feat__i { grid-row: span 2; margin: 0; }
  .feat__t { font-size: 16px; }
  .feat__d { font-size: 14px; }
  .step { padding: 14px 14px 14px 62px; }
  .step__n { left: 14px; top: 14px; width: 34px; height: 34px; }
}
/* карточки разделов: фото с подписью поверх (как в каталоге) */
.cards--photo .card__link { position: relative; isolation: isolate; color: #fff; border: 0; min-height: 230px; justify-content: flex-end; background: #1a2027; }
.cards--photo .card__img { position: absolute; inset: 0; z-index: -2; aspect-ratio: auto; }
.cards--photo .card__link::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 10, 13, 0) 25%, rgba(8, 10, 13, 0.55) 55%, rgba(8, 10, 13, 0.92) 100%); transition: opacity 0.3s; }
.cards--photo .card__body { flex: none; padding: 18px; }
.cards--photo .card__t { color: #fff; font-size: 20px; }
.cards--photo .card__d { color: #d6dde4; }
.cards--photo .card__p { color: #ffc107; }
.cards--photo .card__more { color: #fff; }
.cards--photo .card__link:hover { color: #fff; box-shadow: 0 18px 40px rgba(18, 22, 27, 0.25); }
@media (min-width: 1024px) { .cards--photo .card__link { min-height: 300px; } .cards--services.cards--photo .card__link { min-height: 340px; } }

/* ---------- преимущества ---------- */
.feats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.sec--alt .feat { border-color: transparent; }
.feat__i { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--brand-50); color: var(--brand-d); margin-bottom: 10px; }
.feat__t { font-weight: 800; color: var(--ink); margin: 0 0 4px; font-size: 17px; }
.feat__d { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- этапы ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; counter-reset: s; }
.step { position: relative; background: #fff; border-radius: var(--r); padding: 18px 18px 18px 70px; min-width: 0; }
.step__n { position: absolute; left: 18px; top: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step__t { font-weight: 800; color: var(--ink); margin: 0 0 4px; }
.step__d { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- цены ---------- */
.ptable { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.ptable__row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
.ptable__row:first-child { border-top: 0; }
.ptable__row:nth-child(even) { background: #fafbfc; }
.ptable__name { min-width: 0; }
.ptable__name small { display: block; color: var(--muted); font-size: 13px; }
.ptable__price { font-weight: 800; color: var(--ink); white-space: nowrap; text-align: right; }
.ptable__h { font-size: 20px; margin: 28px 0 10px; }
.ptable__h a { color: var(--ink); text-decoration: none; }

/* ---------- галерея ---------- */
.gal { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gal a { display: block; border-radius: var(--r-sm); overflow: hidden; background: var(--bg-2); aspect-ratio: 4 / 3; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gal a:hover img { transform: scale(1.05); }
.gal--work { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
.gal--work a { aspect-ratio: auto; }
.gal--work img { height: auto; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 16px 18px; font-weight: 700; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__i { color: var(--brand); transition: transform 0.2s; margin-top: 2px; }
.faq__item[open] .faq__i { transform: rotate(45deg); }
.faq__a { padding: 0 18px 16px; color: var(--ink-2); }

/* ---------- текст из редактора ---------- */
.rich { font-size: 16px; color: var(--ink-2); overflow-wrap: anywhere; }
.rich h2 { font-size: 24px; margin: 1.4em 0 0.5em; }
.rich h3 { font-size: 19px; margin: 1.2em 0 0.4em; }
.rich ul, .rich ol { margin: 0 0 1em; }
.rich li { margin: 0.25em 0; }
.rich img { border-radius: var(--r-sm); margin: 1em 0; }
.rich table { width: 100%; border-collapse: collapse; margin: 1em 0; display: block; overflow-x: auto; }
.rich td, .rich th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.rich > :last-child { margin-bottom: 0; }

/* ---------- заявка ---------- */
.cta { background: var(--ink); color: #dfe5ec; }
.cta__grid { display: grid; gap: 24px; }
.cta__grid > * { min-width: 0; }
.cta__title { color: #fff; font-size: clamp(24px, 6vw, 36px); font-weight: 800; }
.cta__lead { color: #c4ccd5; }
.cta__list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.cta__list li { display: flex; gap: 10px; align-items: center; }
.cta__list .i { color: var(--brand); }
.cta__list a { color: #fff; font-weight: 700; text-decoration: none; }
.cta__form { background: #fff; color: var(--text); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-lg); }

.lead-form { display: grid; gap: 12px; }
.lead-form__title { font-size: 20px; font-weight: 800; color: var(--ink); margin: 0; }
.lead-form__text { color: var(--muted); margin: 0; font-size: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 50px;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(185, 1, 0, 0.18); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.4; }
.consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--brand); flex: none; }
.lead-form__status { margin: 0; font-size: 14px; min-height: 1em; }
.lead-form__status.is-ok { color: var(--ok); font-weight: 700; }
.lead-form__status.is-err { color: var(--err); }
.lead-form.is-sent .field, .lead-form.is-sent .consent, .lead-form.is-sent button { display: none; }

/* ---------- модальное окно ---------- */
.modal { border: 0; padding: 0; width: min(520px, calc(100% - 24px)); max-height: calc(100% - 24px); border-radius: 18px; box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(12, 15, 19, 0.6); }
.modal__box { position: relative; padding: 24px 20px 20px; }
.modal__title { font-size: 22px; font-weight: 800; color: var(--ink); margin: 0 40px 6px 0; }
.modal__text { color: var(--muted); font-size: 14px; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--bg-2); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink); }

/* ---------- лайтбокс ---------- */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(8, 10, 13, 0.94); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb img { max-width: 96vw; max-height: 86vh; width: auto; border-radius: 8px; }
.lb button { position: absolute; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 26px; line-height: 1; }
.lb__close { top: 14px; right: 14px; }
.lb__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb__count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #aab4bf; font-size: 14px; }

/* ---------- встраиваемые карты и отзывы ---------- */
.embed { position: relative; border-radius: var(--r); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.embed--map { height: 380px; }
.embed--reviews { height: 640px; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- товар ---------- */
.product { display: grid; gap: 22px; }
.product__main { display: block; border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.product__main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product__thumbs { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.product__thumbs a { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.product__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- контакты ---------- */
.contacts { display: grid; gap: 24px; }
.contacts > * { min-width: 0; }
.contacts__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contacts__list li { display: flex; gap: 14px; }
.contacts__list .i { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--brand-50); color: var(--brand-d); }
.contacts__list p { margin: 0 0 4px; }
.contacts__h { font-weight: 800; color: var(--ink); }
.contacts__form { background: var(--bg-2); border-radius: var(--r); padding: 20px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.tag { display: inline-block; padding: 7px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand-d); font-weight: 600; font-size: 14px; text-decoration: none; }

.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 28px 0 0; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; }
.pager span { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- подвал ---------- */
.ftr { background: #0d1014; color: #aeb7c1; padding: 44px 0 0; font-size: 15px; }
.ftr a { color: #e3e8ee; text-decoration: none; }
.ftr a:hover { color: var(--brand); }
.ftr__grid { display: grid; gap: 28px; }
.ftr__grid > * { min-width: 0; }
.ftr__about p { margin: 14px 0 0; }
.ftr__stat b { color: #fff; font-size: 20px; }
.ftr__h { color: #fff; font-weight: 800; margin: 0 0 12px; }
.ftr__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ftr__contacts p { margin: 0 0 8px; }
.ftr__contacts span { color: #8a94a0; font-size: 13px; }
.ftr__social { display: flex; gap: 14px; }
.ftr__bottom { border-top: 1px solid #222930; margin-top: 32px; padding-top: 18px; padding-bottom: 20px; font-size: 13px; display: grid; gap: 6px; }
.ftr__bottom p { margin: 0; }

/* ---------- мобильная панель ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end;
  height: calc(62px + env(safe-area-inset-bottom)); padding: 0 4px env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(18, 22, 27, 0.08);
}
.mbar__btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: 62px; border: 0; background: none; color: var(--muted); padding: 0;
  font-size: 11.5px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.mbar__btn .i { width: 23px; height: 23px; }
.mbar__btn--call { color: var(--brand-d); }
.mbar__btn--call:hover { color: var(--brand); }
.mbar__btn--lead { color: var(--ink); }
.mbar__fab { width: 54px; height: 54px; margin-top: -24px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, #e3261b, var(--brand-d)); color: #fff; box-shadow: 0 10px 24px rgba(185, 1, 0, 0.45); }
.mbar__fab .i { width: 26px; height: 26px; }
.mbar__btn--lead:active .mbar__fab { transform: scale(0.94); }

/* =============== планшет =============== */
@media (min-width: 640px) {
  :root { --gap: 24px; }
  .btns .btn { flex: 0 1 auto; }
  .more .btn { width: auto; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .stats span { font-size: 13px; }
  .modal__box { padding: 30px 28px 26px; }
  .cta__form { padding: 26px; }
  .ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =============== десктоп =============== */
@media (min-width: 1024px) {
  :root { --hdr: 76px; }
  body { padding-bottom: 0; }
  .mbar, .burger, .hdr__call { display: none !important; }
  .logo svg { width: 150px; }
  .nav { display: block; margin-left: 12px; }
  .nav__list { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
  .nav__item { position: relative; }
  .nav__item > a { display: block; padding: 10px 9px; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; border-radius: 8px; white-space: nowrap; }
  .nav__item > a:hover, .nav__item > a[aria-current] { color: var(--brand-d); background: var(--brand-50); }
  .dd { display: none; position: absolute; top: 100%; left: 0; min-width: 280px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
  .dd--cols { columns: 2; min-width: 560px; column-gap: 8px; }
  .dd li { break-inside: avoid; }
  .dd a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
  .dd a:hover { background: var(--bg-2); color: var(--brand-d); }
  .nav__item--dd:hover .dd, .nav__item--dd:focus-within .dd { display: block; }
  .hdr__contacts { display: flex; flex-direction: column; margin-left: auto; text-align: right; line-height: 1.25; }
  .hdr__phone { font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; white-space: nowrap; }
  .hdr__hours { font-size: 12px; color: var(--muted); white-space: nowrap; }
  .hdr__cta { display: inline-flex; min-height: 44px; padding: 10px 16px; }
  .hero__title { font-size: clamp(34px, 3.4vw, 46px); }

  .hero { padding: 36px 0 64px; }
  .hero--landing { padding-top: 18px; }
  .hero--slim { padding-bottom: 32px; }
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 48px; }
  .stats { max-width: 560px; }
  .sec { padding: 72px 0; }
  .sec__head { margin-bottom: 32px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .cards--services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards--works { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step { padding: 70px 20px 20px; }
  .step__n { top: 20px; left: 20px; }
  .gal { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .gal--work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; align-items: center; }
  .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 44px; align-items: start; }
  .contacts { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; }
  .ftr__grid { grid-template-columns: 1.1fr 1fr 1.5fr 1.1fr; gap: 36px; }
  .ftr__list--cols { columns: 2; column-gap: 20px; display: block; }
  .ftr__list--cols li { margin-bottom: 8px; break-inside: avoid; }
  .ftr__bottom { display: flex; justify-content: space-between; }
}

@media (min-width: 1280px) {
  .hdr__max { display: inline-flex; min-height: 44px; padding: 10px 14px; }
  .nav__item > a { padding: 10px 11px; }
}

@media (max-width: 359px) {
  .logo svg { width: 112px; }
  .stats li { padding: 10px 6px; }
  .btn { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =============== технологичный тёмный первый экран =============== */
.hero--tech { position: relative; overflow: hidden; background: #0c1015; color: #dbe2ea; isolation: isolate; }
.hero--tech .hero__bg {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 70% at 78% 35%, rgba(185, 1, 0, 0.28), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(185, 1, 0, 0.12), transparent 70%),
    linear-gradient(180deg, #0c1015 0%, #11171e 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, rgba(0, 0, 0, 0.85));
}
.hero--tech .hero__title { color: #fff; }
.hero--tech .hero__lead { color: #c3ccd6; }
.hero--tech .hero__note { color: #9aa6b2; }
.hero--tech .ticks li { color: #e6ebf0; }
.hero--tech .ticks .i { color: var(--brand); }
.hero--tech .eyebrow { background: rgba(255, 193, 7, 0.12); color: #ffc107; border: 1px solid rgba(255, 193, 7, 0.4); }
.hero--tech .crumbs ol, .hero--tech .crumbs a { color: #8f9aa6; }
.hero--tech .crumbs li[aria-current] { color: #dbe2ea; }
.hero--tech .price-badge { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); }
.hero--tech .rich { color: #c3ccd6; }
.hero--tech .rich a { color: #ffc107; }
.hero--tech .stats li { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); backdrop-filter: blur(6px); }
.hero--tech .stats b { color: #ffc107; }
.hero--tech .stats span { color: #a5b0bb; }
.hero--tech .tag { background: rgba(255, 193, 7, 0.14); color: #ffc107; }
.hero--tech .hero__media { position: relative; }
.hero--tech .hero__media img { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.hero--tech .hero__media::after {
  content: ""; position: absolute; inset: -1px; border-radius: var(--r); pointer-events: none;
  background: linear-gradient(135deg, rgba(185, 1, 0, 0.55), transparent 40%, transparent 60%, rgba(255, 255, 255, 0.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
}
.btn--light.btn--max { border-color: rgba(255, 193, 7, 0.55); }

.hero--home { padding: 28px 0 0; min-height: 0; }
.hero--home .hero__grid { position: relative; z-index: 1; padding-bottom: 28px; }
.hero__scene { position: absolute; z-index: -1; right: -18%; top: 0; width: 120%; height: 62%; opacity: 0.55; pointer-events: none; transition: opacity 1.2s; }
.hero__scene:not(.is-on) { opacity: 0; }
.hero--home .hero__text { position: relative; }

.marquee { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, 0.08); background: rgba(0, 0, 0, 0.25); overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee a { flex: none; padding: 14px 22px; color: #9aa6b2; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; position: relative; }
.marquee a::after { content: ""; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--brand); opacity: 0.7; }
.marquee a:hover { color: #fff; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* полоса с параллаксом */
.band { position: relative; overflow: hidden; color: #fff; min-height: 420px; display: flex; align-items: center; isolation: isolate; }
.band__media { position: absolute; inset: -18% 0; z-index: -2; will-change: transform; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 13, 17, 0.92) 0%, rgba(10, 13, 17, 0.7) 55%, rgba(10, 13, 17, 0.35) 100%); }
.band__in { padding-top: 56px; padding-bottom: 56px; }
.band__title { font-size: clamp(34px, 9vw, 72px); font-weight: 900; line-height: 1; margin: 0 0 14px; letter-spacing: -0.02em; background: linear-gradient(90deg, #fff, #ffc107); -webkit-background-clip: text; background-clip: text; color: transparent; }
.band__text { max-width: 560px; color: #d5dce4; font-size: 17px; margin: 0; }

/* появление при прокрутке */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* 3D-наклон */
[data-tilt] { transform-style: preserve-3d; transition: transform 0.25s ease-out; will-change: transform; }
.card__link { transform-style: preserve-3d; }

@media (min-width: 640px) {
  .hero__scene { right: -10%; width: 90%; height: 70%; opacity: 0.6; }
}
@media (min-width: 1024px) {
  .hero--home { padding-top: 56px; }
  .hero--home .hero__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); min-height: 560px; padding-bottom: 56px; }
  .hero__scene { right: -4%; top: 0; width: 62%; height: 100%; opacity: 1; }
  .band { min-height: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* телефон: 3D-сцена отдельным блоком под первым экраном */
@media (max-width: 639px) {
  .hero--home { display: flex; flex-direction: column; }
  .hero--home > .wrap { order: 1; }
  .hero--home > .hero__scene { order: 2; position: relative; right: auto; top: auto; width: 100%; height: 300px; opacity: 1; margin: -12px 0 4px; }
  .hero--home > .hero__scene:not(.is-on) { display: none; }
  .hero--home > .marquee { order: 3; }
  .hero--home .hero__grid { padding-bottom: 8px; }
}

.review { display: block; }
.review__stars { color: var(--accent); letter-spacing: 2px; margin: 0 0 8px; font-size: 18px; }
.review__by { margin: 12px 0 0; font-weight: 700; color: var(--ink); font-size: 14px; }

/* ---------- «Что делаем» ---------- */
@media (min-width: 1024px) {
  .feats--work { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.note--center { display: flex; gap: 8px; align-items: center; justify-content: center; text-align: center; margin-top: 18px; color: var(--ink-2); font-weight: 600; }
.note--center .i { color: var(--brand); }

/* ---------- полоса-призыв ---------- */
.sec--tight { padding: 8px 0; }
.cband { display: grid; gap: 4px; padding: 22px 20px; border-radius: var(--r); background: #f3f5f7; border: 1px solid var(--line); border-left: 4px solid var(--brand); }
.cband__title { font-size: clamp(20px, 5vw, 26px); font-weight: 800; color: var(--ink); margin: 0 0 4px; }
.cband__lead { color: var(--ink-2); margin: 0; }
.cband .btns { margin-top: 14px; }
@media (min-width: 1024px) {
  .sec--tight { padding: 16px 0; }
  .cband { grid-template-columns: minmax(280px, 1fr) auto; align-items: center; gap: 28px; padding: 28px 32px; }
  .cband .btns { margin-top: 0; flex-wrap: wrap; justify-content: flex-end; max-width: 640px; }
}

/* ---------- до / после ---------- */
.ba-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.ba { margin: 0; background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.ba__frame { position: relative; aspect-ratio: 4 / 3; background: var(--bg-2); overflow: hidden; user-select: none; touch-action: pan-y; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15); pointer-events: none; }
.ba__knob { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }
.ba__knob .i { width: 22px; height: 22px; }
.ba__tag { position: absolute; top: 12px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; pointer-events: none; }
.ba__tag--before { left: 12px; background: rgba(18, 22, 27, 0.75); color: #fff; }
.ba__tag--after { right: 12px; background: var(--brand); color: #fff; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; }
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 100vh; }
.ba__range:focus-visible + .ba__line, .ba__frame:focus-within .ba__knob { outline: 3px solid rgba(185, 1, 0, 0.45); }
.ba figcaption { padding: 14px 16px 16px; font-weight: 800; color: var(--ink); }
.ba__num { display: block; font-size: 12px; font-weight: 700; color: var(--brand-d); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
@media (min-width: 640px) { .ba-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ba-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }

/* =============== светлый первый экран страниц услуг и продукции =============== */
.hero--soft { position: relative; overflow: hidden; isolation: isolate; background: #f1f3f6; }
.hero--soft .hero__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, #f3f5f7 0%, #eef1f4 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
  mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.hero--soft .hero__media img { box-shadow: 0 24px 60px rgba(18, 22, 27, 0.18); }
.hero--soft .stats { max-width: 560px; }


/* =============== фото-баннеры первого экрана =============== */
.hero--photo { position: relative; overflow: hidden; isolation: isolate; background: #11161c; color: #e7ecf1; display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px; padding: 18px 0 34px; }
.hero--photo.hero--slim { min-height: 300px; padding-bottom: 28px; }
.hero__photo { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__photo-in { position: absolute; inset: -12% 0; will-change: transform; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 13, 17, 0.55) 0%, rgba(10, 13, 17, 0.25) 30%, rgba(10, 13, 17, 0.82) 72%, rgba(10, 13, 17, 0.94) 100%);
}
.hero--photo > .wrap { position: relative; width: 100%; }
@media (max-width: 1023px) {
  .hero--photo:not(.hero--slim) { padding-top: 44vw; }
  .hero--photo.hero--slim { padding-top: 120px; }
  .hero--photo::before { background: linear-gradient(180deg, rgba(10, 13, 17, 0.15) 0%, rgba(10, 13, 17, 0.1) 16%, rgba(10, 13, 17, 0.78) 38%, rgba(10, 13, 17, 0.94) 70%, #0d1116 100%); }
  .hero--photo .hero__photo-in { inset: -6% 0 auto; height: 70%; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .hero--photo.hero--slim .hero__photo-in { height: auto; inset: -8% 0; -webkit-mask-image: none; mask-image: none; }
  .hero--photo.hero--slim::before { background: linear-gradient(180deg, rgba(10, 13, 17, 0.2) 0%, rgba(10, 13, 17, 0.55) 45%, rgba(10, 13, 17, 0.9) 100%); }
}
.hero--photo .hero__grid { display: block; }
.hero--photo .hero__title { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }
.hero--photo .hero__lead, .hero--photo .rich { color: #dfe5eb; }
.hero--photo .rich a { color: #ffc107; }
.hero--photo .hero__note { color: #c4ccd5; }
.hero--photo .ticks li { color: #f1f4f7; }
.hero--photo .ticks .i { color: #ffc107; }
.hero--photo .eyebrow { background: rgba(255, 193, 7, 0.16); color: #ffc107; border: 1px solid rgba(255, 193, 7, 0.5); backdrop-filter: blur(6px); }
.hero--photo .crumbs ol, .hero--photo .crumbs a { color: rgba(255, 255, 255, 0.72); }
.hero--photo .crumbs li[aria-current] { color: #fff; }
.hero--photo .crumbs li + li::before { color: rgba(255, 255, 255, 0.4); }
.hero--photo .price-badge { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(8px); }
.hero--photo .stats li { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px); }
.hero--photo .stats b { color: #ffc107; }
.hero--photo .stats span { color: #d2d9e0; }
.hero--photo .tag { background: rgba(255, 255, 255, 0.14); color: #fff; }
.hero--photo .btn--ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.hero--photo .btn--ghost:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }
.hero--photo .hero__text { max-width: 760px; }
@media (min-width: 1024px) {
  .hero--photo { min-height: 640px; padding: 28px 0 64px; }
  .hero--photo.hero--slim { min-height: 400px; padding-bottom: 48px; }
  .hero--photo::before { background: linear-gradient(90deg, rgba(10, 13, 17, 0.9) 0%, rgba(10, 13, 17, 0.7) 42%, rgba(10, 13, 17, 0.2) 75%, rgba(10, 13, 17, 0.1) 100%), linear-gradient(180deg, rgba(10, 13, 17, 0.45), transparent 25%); }
  .hero--photo .hero__title { font-size: clamp(38px, 3.8vw, 56px); }
}
/* главная: фото под 3D-сценой */
.hero--photo-bg .hero__photo { z-index: -3; }
.hero--photo-bg .hero__photo img { opacity: 0.62; }
.hero__slides img { position: absolute; inset: 0; opacity: 0 !important; transition: opacity 1.4s ease, transform 7s ease-out; transform: scale(1.08); }
.hero__slides img.is-on { opacity: 0.62 !important; transform: scale(1); }
.hero--photo-bg .hero__bg { background: radial-gradient(50% 60% at 80% 40%, rgba(185, 1, 0, 0.22), transparent 70%), linear-gradient(90deg, rgba(12, 16, 21, 0.9) 0%, rgba(12, 16, 21, 0.62) 45%, rgba(12, 16, 21, 0.2) 100%); }
@media (max-width: 1023px) { .hero--photo-bg .hero__bg { background: linear-gradient(180deg, rgba(12, 16, 21, 0.5) 0%, rgba(12, 16, 21, 0.8) 45%, rgba(12, 16, 21, 0.95) 100%); } }

/* =============== лента фото =============== */
.strip { background: #0f1418; padding: 10px 0; }
.strip__list { list-style: none; margin: 0; padding: 0 10px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.strip__list::-webkit-scrollbar { display: none; }
.strip__list li { flex: 0 0 auto; scroll-snap-align: start; }
.strip__list a { display: block; width: 210px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #1c232a; }
.strip__list img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s, opacity 0.3s; opacity: 0.92; }
.strip__list a:hover img { transform: scale(1.06); opacity: 1; }
@media (min-width: 1024px) { .strip__list { padding: 0 16px; gap: 10px; } .strip__list a { width: 280px; } }

/* =============== мозаика фото =============== */
.mosaic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 132px; gap: 8px; grid-auto-flow: dense; }
.mosaic__i a { display: block; height: 100%; border-radius: 12px; overflow: hidden; background: var(--bg-2); position: relative; }
.mosaic__i img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.mosaic__i a:hover img { transform: scale(1.06); }
.mosaic__i a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.25)); opacity: 0; transition: opacity 0.3s; }
.mosaic__i a:hover::after { opacity: 1; }
.mosaic__i--big { grid-column: span 2; grid-row: span 2; }
@media (min-width: 640px) { .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 10px; } }
@media (min-width: 1024px) {
  .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 190px; gap: 12px; }
}

/* =============== плитки работ и альбомов =============== */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile__link { position: relative; display: block; aspect-ratio: 4 / 3.4; border-radius: 14px; overflow: hidden; background: #1a2027; color: #fff; text-decoration: none; isolation: isolate; }
.tile__link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tile__link::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(8, 10, 13, 0.88) 100%); }
.tile__link:hover { color: #fff; }
.tile__link:hover img { transform: scale(1.06); }
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px 12px; display: grid; gap: 4px; }
.tile__t { font-weight: 800; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile__tag { justify-self: start; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(185, 1, 0, 0.92); color: #fff; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile__n { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: rgba(255, 255, 255, 0.78); font-weight: 600; }
.tile__n .i { width: 14px; height: 14px; }
.tile .card__ph { height: 100%; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } .tile__t { font-size: 15px; } }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } .tile__body { padding: 14px 16px 16px; } .tile__t { font-size: 16px; } }

/* =============== кнопки-фильтры =============== */
.chips { margin: 0 calc(-1 * var(--gap)) 20px; }
.chips__in { display: flex; gap: 8px; overflow-x: auto; padding: 2px var(--gap) 6px; scrollbar-width: none; }
.chips__in::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; transition: border-color 0.15s, background 0.15s; }
.chip span { font-size: 12px; color: var(--muted); background: var(--bg-2); border-radius: 999px; padding: 1px 7px; }
.chip:hover { border-color: var(--brand); color: var(--brand-d); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-on span { background: rgba(255, 255, 255, 0.16); color: #fff; }
@media (min-width: 1024px) { .chips { margin: 0 0 28px; } .chips__in { flex-wrap: wrap; overflow: visible; padding: 0; } }

/* =============== цифры во всю ширину =============== */
.sband { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: #fff; padding: 48px 0; }
.sband__bg { position: absolute; inset: -15% 0; z-index: -2; will-change: transform; }
.sband__bg img { width: 100%; height: 100%; object-fit: cover; }
.sband--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(10, 13, 17, 0.92), rgba(10, 13, 17, 0.72) 60%, rgba(185, 1, 0, 0.55)); }
.sband__title { font-size: clamp(22px, 5vw, 32px); font-weight: 800; margin: 0 0 22px; text-align: center; }
.sband__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.sband__list li { text-align: center; padding: 20px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px); }
.sband__list b { display: block; font-size: clamp(40px, 11vw, 64px); line-height: 1; font-weight: 900; background: linear-gradient(90deg, #fff, #ffc107); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sband__list span { display: block; margin-top: 8px; color: #d0d7de; font-size: 15px; }
@media (min-width: 640px) { .sband__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1024px) { .sband { padding: 84px 0; } .sband__title { margin-bottom: 36px; } .sband__list li { padding: 32px 16px; } }

/* =============== общая полировка =============== */
.sec__title { letter-spacing: -0.02em; }
.sec__head::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--brand); margin-top: 14px; }
.card__link { border-radius: 16px; }
.feat { border-radius: 16px; transition: transform 0.2s, box-shadow 0.2s; }
.feat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn { border-radius: 12px; }
.btn--brand { box-shadow: 0 8px 22px rgba(185, 1, 0, 0.28); }
.hero--soft .hero__bg { background: linear-gradient(180deg, #f3f5f7 0%, #eef1f4 100%); }
.menu-open .mbar, .menu-open .cookie { display: none !important; }
.drawer__body > * { flex-shrink: 0; }

/* «до / после»: тёмный блок, как на старой странице ремонта */
#do-posle { background: #12161b; color: #d5dce4; }
#do-posle .sec__title { color: #fff; }
#do-posle .sec__lead { color: #b8c1cb; }
#do-posle .ba { background: #1b2129; border-color: #2a323c; display: flex; flex-direction: column; }
#do-posle .ba figcaption { order: -1; color: #fff; font-size: 18px; padding: 18px 18px 14px; }
#do-posle .ba__num { color: #9aa6b2; }
.ba__hint { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; color: #8b96a2; }
#do-posle .btn--ghost { background: transparent; color: #fff; border-color: #39424d; }
#do-posle .btn--ghost:hover { border-color: var(--brand); color: #fff; }
.more--center { text-align: center; }

/* отзывы: Яндекс + свои колонкой */
.rv-grid { display: grid; gap: 18px; }
.rv-grid > * { min-width: 0; }
.rv-ya .more { margin-top: 14px; }
.rv-own { display: grid; gap: 12px; align-content: start; }
.rv-own__h { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 800; font-size: 18px; color: var(--ink); }
.rv-own__h .i { color: var(--accent); }
.rv-own__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rv-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.rv-card .review__stars { margin: 0 0 6px; }
.rv-card__t { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.rv-card .review__by { margin-top: 10px; }
@media (min-width: 1024px) {
  .rv-grid--2 { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .rv-grid--2 .rv-own__list { max-height: 640px; overflow-y: auto; padding-right: 4px; }
}

/* фирменные цвета: красный + жёлтый */
.sec__head::after { background: linear-gradient(90deg, var(--brand) 0 60%, var(--accent) 60% 100%); }
.marquee a::after { background: var(--accent); opacity: 0.9; }
.ba__knob { background: var(--accent); color: #12161b; }
.ba__line { background: var(--accent); }
.ba__tag--after { background: var(--brand); }
.price-badge b { color: var(--accent); }
.hero--soft .price-badge b { color: #fff; }
.step__n { background: var(--brand); box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.35); }
.feat__i { background: var(--brand-50); color: var(--brand); }
.chip.is-on span { background: var(--accent); color: #12161b; }
.pager span { background: var(--brand); border-color: var(--brand); }
.drawer__q--lead .i { color: var(--accent); }
.tile__tag { background: var(--brand); }
.cta__list .i { color: var(--accent); }
.ftr a:hover { color: var(--accent); }
.mbar__fab { box-shadow: 0 10px 24px rgba(185, 1, 0, 0.4), 0 0 0 3px rgba(255, 193, 7, 0.9); }
.lead-note { font-size: 17px; color: var(--ink-2); margin: 0 0 18px; }

/* условия работы */
.terms { background: #fff; border-bottom: 1px solid var(--line); }
.terms__list { list-style: none; margin: 0; padding: 14px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.terms__list li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.terms__i { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--brand-50); color: var(--brand); flex: none; }
.terms__list span { display: grid; font-size: 13px; color: var(--muted); line-height: 1.35; }
.terms__list b { color: var(--ink); font-size: 14.5px; }
@media (min-width: 1024px) { .terms__list { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 22px 0; } .terms__list span { font-size: 14px; } .terms__list b { font-size: 16px; } }

/* =============== расчёт в 3 шага =============== */
.quiz-sec { background: linear-gradient(135deg, #12161b 0%, #1d232b 60%, #2a1414 100%); color: #d5dce4; }
.quiz { display: grid; gap: 24px; }
.quiz > * { min-width: 0; }
.quiz__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 193, 7, 0.12); border: 1px solid rgba(255, 193, 7, 0.4); color: var(--accent); font-weight: 700; font-size: 14px; }
.quiz__eyebrow .i { width: 16px; height: 16px; }
.quiz__title { color: #fff; font-size: clamp(26px, 6vw, 40px); font-weight: 900; margin: 0 0 12px; letter-spacing: -0.02em; }
.quiz__lead { color: #c4ccd5; margin: 0 0 18px; }
.quiz__points { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.quiz__points li { display: flex; gap: 10px; align-items: flex-start; color: #e6ebf0; font-weight: 600; }
.quiz__points .i { color: var(--accent); flex: none; }
.quiz__form { background: #fff; color: var(--text); border-radius: 18px; padding: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.quiz__bar { height: 6px; border-radius: 6px; background: var(--bg-2); overflow: hidden; margin-bottom: 16px; }
.quiz__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 6px; transition: width 0.3s; }
.quiz__step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 12px; }
.quiz__step[hidden] { display: none; }
.quiz__q { padding: 0; margin: 0 0 4px; font-size: 20px; font-weight: 800; color: var(--ink); }
.quiz__q span { display: block; font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.quiz__opts { display: grid; gap: 8px; }
.quiz__opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; transition: border-color 0.15s, background 0.15s; }
.quiz__opt:hover { border-color: var(--brand); }
.quiz__opt input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.quiz__opt:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.quiz__nav { display: flex; gap: 10px; margin-top: 4px; }
.quiz__nav .btn { flex: 1; }
.quiz__nav .btn--ghost { flex: 0 0 auto; }
.quiz__form.is-sent .quiz__step, .quiz__form.is-sent .quiz__bar { display: none; }
.quiz-sec .btn--light { margin-top: 4px; }
@media (min-width: 1024px) {
  .quiz { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: center; }
  .quiz__form { padding: 28px; }
}

/* фото к заявке */
.filebox { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px dashed #c9d1da; border-radius: 12px; cursor: pointer; background: #fafbfc; position: relative; }
.filebox:hover { border-color: var(--brand); }
.filebox .i { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--brand-50); color: var(--brand); flex: none; }
.filebox span { display: grid; }
.filebox b { color: var(--ink); font-size: 15px; }
.filebox small { color: var(--muted); font-size: 13px; }
.filebox input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.filebox__list { margin: 4px 0 0; font-size: 13px; color: var(--ok); font-weight: 700; min-height: 0; }

/* для чего подходит */
.uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.uses li { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); font-weight: 600; color: var(--ink-2); }
.uses .i { color: var(--brand); flex: none; }
@media (min-width: 640px) { .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .uses { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
