/* Графитовый «чертёжный лист» с сигнальным оранжевым, как на стройплощадке.
   Первый экран — типографика и цифры опыта. Внизу первого экрана — штамп чертежа с реквизитами. */
:root {
  --graphite: #1c2129;
  --graphite-2: #262c36;
  --paper: #ffffff;
  --stone: #eff1f3;
  --line: #dde1e6;
  --ink: #161a20;
  --text: #333a45;
  --mute: #5e6773;
  --signal: #e8590c;
  --signal-d: #c44a08;
  --on-dark: #e9ecf0;
  --on-dark-mute: #9aa3af;
  --focus: #ffd43b;
  --f-display: "PT Sans Caption", "PT Sans", Arial, system-ui, sans-serif;
  --f-body: "Golos Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--f-body); color: var(--text); background: var(--paper); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--signal-d); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--focus); color: var(--ink); font-weight: 600; }
.skip:focus { top: 8px; }
h1, h2, h3 { text-wrap: balance; }

/* Шапка */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--graphite); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.top__in { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__txt { display: flex; flex-direction: column; font: 700 19px/1 var(--f-display); letter-spacing: .02em; text-transform: uppercase; }
.logo__txt small { margin-top: 5px; font: 500 12px/1 var(--f-body); letter-spacing: .08em; color: var(--on-dark-mute); }
.nav { display: flex; gap: 32px; margin-left: auto; }
.nav a { color: var(--on-dark); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--signal); }
.phone { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; padding-block: 12px; }
.phone-btn { display: none; place-items: center; width: 44px; height: 44px; background: var(--signal); margin-left: auto; }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; margin: 5px 0; background: #fff; }

/* Первый экран */
.hero {
  color: var(--on-dark); padding-block: 104px;
  background-color: var(--graphite);
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.hero__in { display: grid; grid-template-columns: 1.55fr 1fr; gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 22px; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--signal); }
h1 { margin: 0 0 26px; overflow-wrap: break-word; font: 700 clamp(30px, 4.2vw, 54px)/1.1 var(--f-display); color: #fff; letter-spacing: -.01em; }
.lead { margin: 0 0 36px; max-width: 560px; font-size: 19px; line-height: 1.55; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 15px 28px; background: var(--signal); color: #fff; border: 2px solid var(--signal); font: 600 16px/1.2 var(--f-body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--signal-d); border-color: var(--signal-d); color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .4); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.hero__stats { margin: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.hero__stats > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.hero__stats dd { margin: 0; font: 700 clamp(40px, 5vw, 64px)/1 var(--f-display); color: #fff; font-variant-numeric: tabular-nums; }
.hero__stats dd span { color: var(--signal); }
.hero__stats .dd-s { font-size: clamp(28px, 3.4vw, 42px); }
.hero__stats dt { font-size: 16px; line-height: 1.35; color: var(--on-dark); }

/* Секции */
.sec { padding-block: 104px; }
.sec--stone { background: var(--stone); }
.sec--dark { background: var(--graphite); color: var(--on-dark); }
.grid2 > *, .hero__in > * { min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.sec__head { margin-bottom: 56px; }
.kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--signal-d); }
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--signal); }
.sec--dark .kicker { color: var(--signal); }
h2 { margin: 0; max-width: 760px; font: 700 clamp(28px, 3.4vw, 44px)/1.12 var(--f-display); color: var(--ink); letter-spacing: -.01em; }
.sec--dark h2 { color: #fff; }

/* История */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 3px solid var(--ink); }
.timeline li { position: relative; padding: 32px 24px 0 0; }
.timeline li::before { content: ""; position: absolute; top: -9px; left: 0; width: 15px; height: 15px; background: var(--signal); }
.timeline li:last-child::before { width: 21px; height: 21px; top: -12px; }
.timeline b { display: block; margin-bottom: 14px; font: 700 24px/1.1 var(--f-display); color: var(--ink); }
.timeline h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.3; color: var(--ink); }
.timeline p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--mute); }

/* Направления */
.how { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 24px; margin-top: 24px; padding: 32px; background: var(--graphite); color: var(--on-dark); }
.how h3 { margin: 0; font: 700 22px/1.2 var(--f-display); color: #fff; }
.how ol { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; margin: 0; padding: 0; list-style: none; }
.how li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 15px; line-height: 1.45; }
.how b { font: 700 15px/1.45 var(--f-display); color: var(--signal); font-variant-numeric: tabular-nums; }

/* Госпитали ветеранов войн */

/* Объекты */
.gal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.g { grid-column: span 2; text-align: left; position: relative; padding: 0; border: 0; background: var(--graphite); cursor: zoom-in; overflow: hidden; font: inherit; }
.g--wide { grid-column: span 3; }
.g img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s; }
.g:hover img { transform: scale(1.03); }
.g span { position: absolute; left: 0; bottom: 0; max-width: 100%; padding: 10px 16px; background: var(--graphite); color: #fff; font-size: 15px; font-weight: 500; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; pointer-events: none; }
.g:focus-visible span { opacity: 1; transform: none; }
@media (hover: hover) { .g:hover span { opacity: 1; transform: none; } }
@media (hover: none) { .g span { display: none; } }
.ba__t { margin: 40px 0 16px; font-size: 19px; line-height: 1.3; color: var(--ink); }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ba figure { position: relative; margin: 0; aspect-ratio: 4/3; max-width: 100%; background: var(--stone); }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba figcaption { position: absolute; left: 0; top: 0; padding: 8px 18px; background: var(--graphite); color: #fff; font: 700 15px/1.2 var(--f-display); }
.ba figure + figure figcaption { background: var(--signal); }
.lb { position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 20px; background: rgba(12, 15, 20, .94); cursor: zoom-out; }
.lb img { max-height: 82vh; cursor: default; }
.lb p { margin: 0; color: #fff; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 72px; background: rgba(255, 255, 255, .08); border: 0; color: #fff; font-size: 40px; cursor: pointer; }
.lb__nav:hover { background: rgba(255, 255, 255, .18); }
.lb__prev { left: 12px; }
.lb__next { right: 12px; }
.lb__x { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 18px; width: 48px; height: 48px; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; }

/* Контакты */
.big { margin: 32px 0 6px; font: 700 clamp(26px, 3vw, 36px)/1.2 var(--f-display); }
.mail { margin: 0 0 4px; font-size: 20px; }
.mail a, .addr a, .foot a { display: inline-block; padding-block: 10px; }
.mail a { color: #fff; }
.mail a:hover { color: var(--signal); }
.big a { display: inline-block; padding-block: 6px; color: #fff; text-decoration: none; }
.big a:hover { color: var(--signal); }
.hours { margin: 0; color: var(--on-dark); }
.addr { margin: 4px 0 28px; color: var(--on-dark-mute); }
.addr a { color: #fff; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.req { margin: 0; border-top: 1px solid rgba(255, 255, 255, .25); }
.req > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .25); font-size: 16px; }
.req dt { color: var(--on-dark-mute); }
.req dd { margin: 0; color: #fff; }
.foot { background: var(--graphite); color: var(--on-dark-mute); font-size: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.foot__in { display: flex; justify-content: space-between; padding-block: 22px; }
.foot a { color: var(--on-dark-mute); }

/* Планшет */
@media (max-width: 1020px) {
  .work { grid-template-columns: 1fr; gap: 28px; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; background: var(--graphite); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 16px max(24px, env(safe-area-inset-left, 0px)); border-top: 1px solid rgba(255, 255, 255, .08); }
  .burger { display: block; }
  .phone { margin-left: auto; }
  .hero__in, .grid2 { grid-template-columns: 1fr; gap: 40px; }
    .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 3px solid var(--ink); margin-left: 6px; }
  .timeline li { padding: 0 0 32px 28px; }
  .timeline li::before { top: 6px; left: -9px; }
  .timeline li:last-child::before { top: 4px; left: -12px; }
  .how ol { grid-template-columns: 1fr; }
  .gal { grid-template-columns: 1fr 1fr; }
  .g, .g--wide { grid-column: span 1; }
}
/* Телефон */
@media (max-width: 640px) {
  .lb__nav { width: 44px; height: 60px; font-size: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
  .sec { padding-block: 64px; }
  .sec__head { margin-bottom: 36px; }
  .hero { padding-block: 56px 40px; }
  .lead { font-size: 17px; }
  .logo__txt small, .phone { display: none; }
  .phone-btn { display: grid; }
  .burger { margin-left: 8px; }
  .hero__stats > div { grid-template-columns: 128px minmax(0, 1fr); gap: 16px; padding: 16px 0; }
  .how { padding: 22px 18px; }
  .how ol { grid-template-columns: 1fr; gap: 12px; }
  h1 { font-size: clamp(28px, 8vw, 36px); }
      .gal { grid-template-columns: 1fr 1fr; gap: 10px; }
  .g, .g--wide { grid-column: span 1; }
  .g span { font-size: 13px; padding: 6px 10px; }
  .ba { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ba figcaption { font-size: 13px; padding: 5px 12px; }
  .req > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Капитальный и текущий ремонт */
.kt { margin-bottom: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.kt__col { padding: 36px 32px; background: var(--paper); }
.kt__col h3 { margin: 0 0 12px; font: 700 24px/1.2 var(--f-display); color: var(--ink); }
.kt__col p { margin: 0; max-width: 480px; color: var(--mute); }

/* Виды работ: слева перечень, справа фото */
.work { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; align-items: start; padding-block: 48px; border-top: 3px solid var(--ink); }
.work__n { margin: 0 0 10px; font: 700 14px/1 var(--f-display); color: var(--signal-d); letter-spacing: .08em; }
.work h3 { margin: 0 0 20px; font: 700 26px/1.15 var(--f-display); color: var(--ink); }
.work ul { margin: 0; padding: 0; list-style: none; }
.work li { padding: 10px 0 10px 22px; position: relative; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.4; }
.work li::before { content: ""; position: absolute; left: 0; top: 19px; width: 9px; height: 9px; background: var(--signal); }
.work__ph { display: grid; grid-template-columns: repeat(min(var(--n, 2), 2), minmax(0, 1fr)); gap: 12px; }
.work__ph .g { grid-column: auto; }
.work__ph[style*="--n:1"] { grid-template-columns: minmax(0, 1fr); }
.work__ph[style*="--n:1"] .g img { aspect-ratio: 16/9; }
@media (max-width: 1020px) { .work { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 640px) {
  .kt { grid-template-columns: 1fr; }
  .kt__col { padding: 24px 20px; }
  .kt__col h3 { font-size: 20px; }
  .work { padding-block: 32px; gap: 24px; }
  .work h3 { font-size: 22px; }
  .work__ph { display: flex; gap: 10px; margin-inline: -18px; padding-inline: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 18px; -webkit-overflow-scrolling: touch; }
  .work__ph .g { flex: 0 0 78%; scroll-snap-align: start; }
  .work__ph[style*="--n:1"] .g { flex-basis: 100%; }
  .work__ph .g span { font-size: 13px; padding: 6px 10px; }
}

/* Заказчики и отзывы */
.cgs { display: grid; gap: 40px; }
.cg h3 { margin: 0 0 16px; padding-bottom: 12px; border-bottom: 3px solid var(--ink); font: 700 13px/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.cg ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cg li { display: flex; align-items: center; min-height: 76px; padding: 16px 18px; background: var(--paper); border-left: 4px solid var(--signal); font: 700 15px/1.3 var(--f-display); letter-spacing: -.005em; color: var(--ink); }
@media (max-width: 1020px) { .cg ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cg ul { grid-template-columns: 1fr; } .cg li { min-height: 0; padding: 14px 16px; font-size: 14px; } }

/* Карточки заказчиков: раскрываются при наведении и по нажатию */
.cg ul { align-items: stretch; }
.cg li { position: relative; padding: 0; display: flex; min-height: 0; }
.cg li .c { position: relative; display: flex; flex: 1; align-items: center; width: 100%; min-height: 76px; padding: 16px 40px 16px 18px; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.cg li .c i { position: absolute; right: 14px; top: 12px; font: 700 20px/1 var(--f-body); font-style: normal; color: var(--mute); transition: transform .2s, color .2s; }
.cg li .more { display: none; position: absolute; z-index: 5; left: -4px; top: 100%; width: max(calc(100% + 4px), 300px); margin-top: 0; padding: 16px 18px 18px; background: var(--ink); color: var(--on-dark); font: 400 14px/1.5 var(--f-body); box-shadow: 0 12px 28px rgba(22, 26, 32, .28); }
.cg li:nth-child(4n) .more { left: auto; right: 0; }
.cg li.is-open { border-left-color: var(--ink); z-index: 6; }
.cg li.is-open .more, .cg li:has(.c:focus-visible) .more { display: block; }
.cg li.is-open .c i { color: var(--signal-d); transform: rotate(45deg); }
@media (hover: hover) {
  .cg li:hover { border-left-color: var(--ink); z-index: 6; }
  .cg li:hover .more { display: block; }
  .cg li:hover .c i { color: var(--signal-d); transform: rotate(45deg); }
}
.more dl { margin: 0; }
.more dt { margin: 0 0 2px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-mute); }
.more dd { margin: 0 0 12px; color: #fff; }
.more dd:last-child { margin-bottom: 0; }
.more .site { display: inline-block; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .25); width: 100%; color: var(--signal); font-weight: 600; text-decoration: none; }
.more .site:hover { color: #fff; }
@media (max-width: 1020px) { .cg li:nth-child(4n) .more { left: -4px; right: auto; } .cg li:nth-child(2n) .more { left: auto; right: 0; } }
@media (max-width: 640px) {
  .cg li { flex-direction: column; }
  .cg li .c { flex: none; min-height: 0; padding: 14px 40px 14px 16px; }
  .cg li .more, .cg li:nth-child(n) .more { position: static; width: auto; box-shadow: none; }
  .cg li:hover .more { display: none; }
  .cg li.is-open .more, .cg li.is-open:hover .more { display: block; }
}

/* Сворачиваемые группы заказчиков */
.cgs { gap: 12px; }
.cg { border-top: 3px solid var(--ink); }
.cg summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; cursor: pointer; list-style: none; font: 700 13px/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.cg summary::-webkit-details-marker { display: none; }
.cg summary i { flex: none; width: 12px; height: 12px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.cg[open] summary i { transform: rotate(-135deg) translate(-3px, -3px); }
.cg summary:hover span { color: var(--signal-d); }
.cg ul { margin-bottom: 28px; }
.rvtag { align-self: center; margin-left: 10px; padding: 2px 7px; background: var(--stone); font: 600 11px/1.3 var(--f-body); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--signal-d); white-space: nowrap; }
.cg li .c { flex-wrap: wrap; }
.cg li .more { width: max(calc(100% + 4px), 360px); max-height: 70vh; overflow-y: auto; }
.more .rv { padding-left: 12px; border-left: 3px solid var(--signal); font-size: 14px; line-height: 1.55; }
@media (max-width: 640px) { .cg summary { padding: 16px 2px; } .cg li .more, .cg li:nth-child(n) .more { max-height: none; } }

.timeline b small { display: block; margin-top: 4px; font: 600 13px/1.2 var(--f-body); letter-spacing: .02em; color: var(--signal-d); }

/* Допуски: СРО и лицензия МЧС */
.sec--tight { padding-block: 72px; }
.sec--tight .sec__head { margin-bottom: 32px; }
.adm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.adm article { padding: 28px 28px 26px; border-top: 4px solid var(--ink); background: var(--stone); }
.adm h3 { margin: 0 0 12px; font: 700 13px/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--signal-d); }
.adm__name { margin: 0 0 10px; font: 700 20px/1.3 var(--f-display); color: var(--ink); }
.adm p:last-child { margin: 0; color: var(--mute); font-size: 16px; line-height: 1.5; }
@media (max-width: 1020px) { .adm { grid-template-columns: 1fr; } .sec--tight { padding-block: 48px; } }

/* До и после */
.beaf { margin-top: 48px; padding-top: 40px; border-top: 3px solid var(--ink); }
.beaf__head { max-width: 640px; margin-bottom: 28px; }
.beaf__head h3 { margin: 0 0 10px; font: 700 26px/1.2 var(--f-display); color: var(--ink); }
.beaf__head p { margin: 0; color: var(--mute); }
.car__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.car__track::-webkit-scrollbar { display: none; }
.car .cmp { flex: 0 0 100%; aspect-ratio: 16 / 10; scroll-snap-align: start; }
.car .cmp figcaption { font-size: 16px; padding: 40px 20px 16px; }
.car .cmp__l { top: 16px; padding: 5px 12px; font-size: 13px; }
.car .cmp__l--b { left: 16px; }
.car .cmp__l--a { right: 16px; }
.car__bar { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.car__btn { flex: none; width: 48px; height: 48px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font: 700 26px/1 var(--f-body); cursor: pointer; }
.car__btn:hover { background: var(--ink); color: #fff; }
.car__btn:disabled { opacity: .35; cursor: default; background: var(--paper); color: var(--ink); }
.car__dots { display: flex; gap: 8px; margin-inline: auto; }
.car__dots button { width: 36px; height: 6px; padding: 0; border: 0; background: var(--line); cursor: pointer; }
.car__dots button[aria-current="true"] { background: var(--signal); }
.car__n { min-width: 48px; font: 600 15px/1 var(--f-body); color: var(--mute); text-align: right; }
.cmp { position: relative; margin: 0; aspect-ratio: 1; overflow: hidden; background: var(--stone); touch-action: pan-y; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp .cmp__b { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.cmp::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--p); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; }
.cmp__l { position: absolute; top: 10px; padding: 3px 9px; font: 700 12px/1.4 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(28,33,41,.82); pointer-events: none; }
.cmp__l--b { left: 10px; }
.cmp__l--a { right: 10px; background: var(--signal); }
.cmp input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.cmp:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.cmp figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; font: 600 14px/1.3 var(--f-body); color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); pointer-events: none; }
@media (max-width: 640px) { .beaf { margin-top: 32px; padding-top: 28px; } .beaf__head h3 { font-size: 22px; } .car .cmp { aspect-ratio: 4 / 5; } .car .cmp figcaption { font-size: 14px; padding: 28px 14px 12px; } .car__dots button { width: 22px; } }
/* Допуски: выписка из реестра СРО */
.sro__lead { margin: 24px 0 0; max-width: 480px; }
.sro__status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 24px 0 0; font-size: 15px; color: var(--mute); }
.sro__status span { padding: 6px 12px; background: var(--signal); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.sro__doc { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px; margin-top: 32px; }
.sro__thumb { display: block; width: 168px; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(22, 26, 32, .12); transition: transform .2s; }
.sro__thumb:hover { transform: translateY(-3px); }
.sro__thumb img { width: 100%; height: auto; }
.sro__links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.sro__ext { display: inline-block; padding-block: 10px; font-weight: 600; }
.sro__facts { margin: 0; border-top: 3px solid var(--ink); }
.sro__facts > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sro__facts dt { font-size: 14px; line-height: 1.4; color: var(--mute); }
.sro__facts dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.sro__facts > div:nth-child(2) dd, .sro__facts > div:nth-child(3) dd { font: 700 17px/1.4 var(--f-display); }
@media (max-width: 640px) {
  .sro__facts > div { grid-template-columns: 1fr; gap: 4px; }
  .sro__thumb { width: 132px; }
}

.hero__chip { display: inline-block; margin-top: 24px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .25); color: var(--on-dark); font-size: 14px; font-weight: 500; text-decoration: none; }
.hero__chip:hover { border-color: var(--signal); color: #fff; }
/* Допуски: тёмный блок */
.sec--dark .sro__lead { color: var(--on-dark); }
.sec--dark .sro__status { color: var(--on-dark-mute); }
.sec--dark .sro__thumb { border-color: rgba(255, 255, 255, .2); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.sec--dark .sro__ext { color: var(--signal); }
.sec--dark .sro__facts { border-top-color: rgba(255, 255, 255, .35); }
.sec--dark .sro__facts > div { border-bottom-color: rgba(255, 255, 255, .2); }
.sec--dark .sro__facts dt { color: var(--on-dark-mute); }
.sec--dark .sro__facts dd { color: #fff; }

/* Фото видов работ: на компьютере сначала два снимка, остальные по кнопке */
.work__more { display: none; }
@media (min-width: 641px) {
  .work__more { display: inline-block; margin-top: 12px; padding: 12px 20px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font: 600 15px/1 var(--f-body); cursor: pointer; }
  .work__more:hover { background: var(--ink); color: #fff; }
}
.work__side { min-width: 0; }
/* До и после: не больше экрана по высоте */
.car { max-width: 720px; }
.car .cmp { aspect-ratio: 4 / 3; max-height: min(70vh, 560px); }

/* Компактнее: фото видов работ и До и после */
.work { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.work__ph { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 640px; }
.work__ph .g img { aspect-ratio: 4 / 3; }
@media (min-width: 641px) { .work__ph.is-folded .g:nth-child(n+4) { display: none; } }
.car { max-width: 460px; }
.car .cmp { aspect-ratio: 4 / 3; max-height: 340px; }
@media (max-width: 1020px) { .work { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .car { max-width: none; } .car .cmp { aspect-ratio: 4 / 3; max-height: 300px; } }
/* До и после: заголовок слева, снимок справа, как в видах работ */
@media (min-width: 1021px) {
  .beaf { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; align-items: start; }
  .beaf__head { margin-bottom: 0; }
  .car { max-width: 520px; }
  .car .cmp { max-height: 390px; }
}

/* Сотрудничество и страница для бригад */
.coop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.coop article { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; background: var(--paper); border-top: 4px solid var(--signal); }
.coop h3 { margin: 0 0 12px; font: 700 20px/1.25 var(--f-display); color: var(--ink); }
.coop p { margin: 0 0 24px; color: var(--mute); font-size: 16px; line-height: 1.5; }
.coop .btn { margin-top: auto; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.pg { padding-block: 80px; }
.pg h1 { margin: 0 0 20px; max-width: 18ch; font: 700 clamp(28px, 4.4vw, 48px)/1.1 var(--f-display); }
.pg__lead { max-width: 640px; margin: 0 0 32px; font-size: 19px; color: var(--on-dark-mute); }
.tags { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.tags li { padding: 14px 0 14px 22px; position: relative; border-top: 1px solid var(--line); }
.tags li::before { content: ""; position: absolute; left: 0; top: 23px; width: 9px; height: 9px; background: var(--signal); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; padding: 28px; background: var(--paper); border-top: 4px solid var(--ink); }
.steps li::before { content: "0" counter(s); display: block; margin-bottom: 10px; font: 700 14px/1 var(--f-display); color: var(--signal-d); letter-spacing: .08em; }
.steps b { display: block; margin-bottom: 8px; font: 700 20px/1.2 var(--f-display); color: var(--ink); }
@media (max-width: 1020px) { .coop, .steps { grid-template-columns: 1fr; } .pg { padding-block: 48px; } }
@media (max-width: 640px) { .tags { grid-template-columns: 1fr; } }

/* Страница для бригад: крупно и просто, в первую очередь для телефона */
.pg--hero { padding-block: 64px 56px; }
.pg--hero h1 { max-width: 16ch; font-size: clamp(34px, 6vw, 60px); }
.pg--hero .pg__lead { font-size: 21px; line-height: 1.5; color: #fff; }
.call { display: inline-block; padding: 22px 36px; background: var(--signal); color: #fff; text-decoration: none; font: 700 clamp(26px, 5vw, 40px)/1.1 var(--f-display); }
.call small { display: block; margin-bottom: 8px; font: 600 16px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; }
.call:hover { background: var(--signal-d); color: #fff; }
.pg__sub { margin: 18px 0 0; font-size: 18px; color: var(--on-dark-mute); }
.pg__sub--dark { color: var(--mute); margin: 0 0 20px; }
.pg__sec { padding-block: 64px; }
.pg__sec h2 { margin: 0 0 28px; font: 700 clamp(26px, 4vw, 38px)/1.15 var(--f-display); color: var(--ink); }
.trades { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trades li { position: relative; overflow: hidden; background: var(--graphite); color: #fff; }
.trades img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; opacity: .8; }
.trades b { position: absolute; left: 0; right: 0; bottom: 34px; padding: 0 16px; font: 700 clamp(20px, 2.6vw, 26px)/1.15 var(--f-display); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.trades span { position: absolute; left: 0; right: 0; bottom: 10px; padding: 0 16px; font-size: 16px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.trades li::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.trades b, .trades span { z-index: 1; }
.pg__also { margin: 20px 0 0; font-size: 18px; color: var(--ink); }
.say { margin: 0 0 32px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.say li { padding: 20px 24px; background: var(--paper); border-left: 6px solid var(--signal); font-size: 18px; }
.say b { display: block; margin-bottom: 4px; font: 700 20px/1.2 var(--f-display); color: var(--ink); }
.pg__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.pg .btn, .pg__btns .btn { font-size: 19px; padding: 18px 32px; }
.btn--line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.pg__addr { margin: 0 0 6px; font: 700 clamp(20px, 3vw, 28px)/1.3 var(--f-display); color: var(--ink); }
.callbar { display: none; }
@media (max-width: 760px) {
  .trades { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .trades b { font-size: 17px; bottom: 30px; padding: 0 10px; }
  .trades span { font-size: 14px; padding: 0 10px; bottom: 8px; }
  .say { grid-template-columns: 1fr; }
  .call { display: block; text-align: center; }
  .pg__btns .btn { flex: 1 1 100%; text-align: center; }
  .callbar { display: block; position: sticky; bottom: 0; z-index: 20; padding: 16px; background: var(--signal); color: #fff; text-align: center; text-decoration: none; font: 700 18px/1.2 var(--f-body); }
}
h1, h2, h3 { text-wrap: balance; }
