
/* ==========================================================================
   Стройка ВЕКА · страница «О компании» (/about-us/)
   Константы сняты с живого сайта stroikaveka77.ru
   ========================================================================== */
:root{
  --burgundy:#9b1823;          /* бордо САЙТА (не бордо брендбука #902A35) */
  --burgundy-hover:#7a1219;
  --ink:#000;
  --head:#303030;
  --muted:#636363;
  --surface:#f5f5f5;
  --surface-cool:#f1f3f7;
  --white:#fff;
  --hairline:#d0d0d0;
  --radius:2px;
  --container:1370px;
  --pad-x:100px;
  --section-y:60px;
}
.ab-about,.ab-about *{box-sizing:border-box}

.ab-about{
  background:var(--white);color:var(--ink);
  font:400 16px/1.3 'IBM Plex Sans',system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;text-wrap:pretty;
}
/* ⛔ Скоуп через :where() — он не добавляет специфичности.
   Прямой префикс `.ab-about a` поднимал эти правила до 0,1,1 и они начинали
   бить компоненты (`.ab-btn`, `.ab-dop__t`, `.ab-h2` — все 0,1,0): текст кнопки
   красился в бордо на бордовом фоне, а у заголовков пропадал отступ снизу. */
:where(.ab-about) img{display:block;max-width:100%}
:where(.ab-about) a{color:var(--burgundy);text-decoration:none}
:where(.ab-about) a:hover{color:var(--burgundy-hover);text-decoration:underline}
:where(.ab-about) h1,:where(.ab-about) h2,:where(.ab-about) h3{margin:0;font-weight:500}
:where(.ab-about) p{margin:0}

.ab-wrap{max-width:var(--container);margin:0 auto;padding:0 var(--pad-x)}
.ab-section{padding:var(--section-y) 0}
.ab-section--gray{background:var(--surface)}
.ab-section--cool{background:var(--surface-cool)}
.ab-h2{margin-bottom:20px;font-size:28px;line-height:32px;color:var(--head)}
.ab-lead{margin-bottom:28px;color:var(--muted)}

/* Кнопки */
.ab-btn{
  display:inline-block;padding:10px 50px;border-radius:var(--radius);
  font-size:16px;font-weight:300;line-height:1.3;border:0;cursor:pointer;
  font-family:inherit;background:var(--burgundy);color:var(--white);
  transition:background .2s cubic-bezier(.4,0,.2,1);
}
.ab-btn:hover{background:var(--burgundy-hover);color:var(--white);text-decoration:none}
.ab-btn--ghost{background:transparent;color:var(--head);border:1px solid var(--burgundy);padding:9px 30px}
.ab-btn--ghost:hover{background:var(--burgundy);color:var(--white)}

/* 1 · Герой */
.ab-hero{position:relative;min-height:560px;display:flex;align-items:center;overflow:hidden}
.ab-hero__bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ab-hero__scrim{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.72) 0%,rgba(0,0,0,.5) 45%,rgba(0,0,0,.15) 100%)}
.ab-hero__inner{position:relative;max-width:var(--container);width:100%;margin:0 auto;padding:120px var(--pad-x) 60px}
.ab-hero__body{max-width:530px;display:flex;flex-direction:column;gap:22px;align-items:flex-start;color:var(--white)}
.ab-hero h1{font-size:44px;line-height:1.1}
.ab-hero p{font-size:20px;font-weight:300;line-height:1.35}
.ab-hero .ab-btn{margin-top:8px;box-shadow:0 6px 18px rgba(0,0,0,.3)}

/* 2 · Цифры */
.ab-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.ab-stat{background:var(--surface);padding:28px;display:flex;flex-direction:column;gap:8px}
.ab-stat__n{font-size:34px;font-weight:500;line-height:1.1}
.ab-stat__t{font-size:13px;line-height:1.35;color:var(--muted)}
.ab-section--gray .ab-stat{background:var(--white)}

/* 3 · Кто мы */
.ab-split{display:grid;grid-template-columns:550px minmax(0,1fr);gap:60px;align-items:start}
.ab-split__media{position:relative;aspect-ratio:4/3;background:#e3e3e3;overflow:hidden}
.ab-split__media img{width:100%;height:100%;object-fit:cover}
.ab-prose{display:flex;flex-direction:column;gap:16px}
.ab-prose h2{margin-bottom:4px}

/* 4 · Видео */
.ab-video{position:relative;aspect-ratio:16/9;background:#e3e3e3;overflow:hidden;display:block}
.ab-video img{width:100%;height:100%;object-fit:cover}
.ab-video__play{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:84px;height:84px;border-radius:50%;background:var(--burgundy);
  display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,.25);
}

/* 5 · Почему нам доверяют */
.ab-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.ab-card{background:var(--white);padding:30px 32px;display:flex;gap:28px;align-items:flex-start;justify-content:space-between}
.ab-card__txt{display:flex;flex-direction:column;gap:10px;min-width:0}
.ab-card h3{font-size:17px;line-height:1.3}
.ab-card p{font-size:16px;color:var(--muted)}
.ab-card svg{flex:none}

/* 6 · Слово директора */
.ab-founder{display:grid;grid-template-columns:minmax(0,1fr) 325px;gap:80px;align-items:center}
.ab-founder__txt{display:flex;flex-direction:column;gap:24px}
.ab-founder__txt p{font-size:18px;line-height:1.45}
.ab-sign{display:flex;align-items:center;gap:16px}
.ab-sign__rule{width:40px;height:1px;background:var(--burgundy);flex:none}
.ab-sign b{font-weight:500}
.ab-sign span{color:var(--muted)}
.ab-portrait{position:relative;aspect-ratio:3/4;background:#e3e3e3;overflow:hidden}
.ab-portrait img{width:100%;height:100%;object-fit:cover}

/* 7 · Команда */
.ab-head-row{display:flex;justify-content:space-between;align-items:flex-start;gap:40px;margin-bottom:28px}
.ab-head-row p{color:var(--muted);max-width:620px;margin-top:10px}
.ab-team{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.ab-member{display:flex;flex-direction:column;gap:12px}
.ab-member__media{position:relative;aspect-ratio:3/4;background:var(--surface-cool);overflow:hidden}
.ab-member__media img{width:100%;height:100%;object-fit:cover;object-position:center 15%}
/* Монограмма — временная замена портрету, пока нет съёмки */
.ab-member__mono{
  position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;
  padding-bottom:32px;background:var(--surface-cool);
  font-size:72px;font-weight:300;line-height:1;color:var(--burgundy);letter-spacing:.03em;
}
.ab-member__role{font-size:13px;color:var(--muted)}
.ab-member__name{font-size:17px;font-weight:500;line-height:1.3}

/* 8 · Аккордеон «как строится работа» */
.ab-steps-grid{display:grid;grid-template-columns:minmax(0,600px) minmax(0,1fr);gap:60px;align-items:start}
.ab-acc{display:flex;flex-direction:column}
.ab-acc__item{border-bottom:1px solid var(--burgundy)}
.ab-acc__btn{
  width:100%;display:flex;justify-content:space-between;align-items:center;gap:20px;
  background:transparent;border:0;padding:18px 0;font-family:inherit;
  font-size:17px;font-weight:500;line-height:1.3;color:var(--ink);text-align:left;cursor:pointer;
}
.ab-acc__btn svg{flex:none;transition:transform .25s cubic-bezier(.4,0,.2,1)}
.ab-acc__item[open] .ab-acc__btn svg,
.ab-acc__item.is-open .ab-acc__btn svg{transform:rotate(180deg)}
.ab-acc__body{padding:0 40px 18px 0;color:var(--muted)}
.ab-acc__item:not(.is-open) .ab-acc__body{display:none}

/* 9 · Слайдер проектов */
.ab-slider-head{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px}
.ab-slider-nav{display:flex;align-items:center;gap:16px}
.ab-round{
  width:44px;height:44px;border-radius:50%;background:var(--burgundy);border:0;cursor:pointer;
  display:flex;align-items:center;justify-content:center;transition:background .2s;
}
.ab-round:hover{background:var(--burgundy-hover)}
.ab-slider{
  display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 40px) / 3);gap:20px;
  overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;
  scrollbar-width:none;-ms-overflow-style:none;
}
.ab-slider::-webkit-scrollbar{display:none}
.ab-proj{display:flex;flex-direction:column;gap:12px;color:var(--ink);scroll-snap-align:start}
.ab-proj:hover{color:var(--ink);text-decoration:none}
.ab-proj__media{position:relative;aspect-ratio:4/3;background:#e3e3e3;overflow:hidden}
.ab-proj__media img{width:100%;height:100%;object-fit:cover;transition:transform .4s cubic-bezier(.2,.8,.2,1)}
.ab-proj:hover .ab-proj__media img{transform:scale(1.03)}
.ab-proj__t{font-size:17px;font-weight:500;line-height:1.3}
.ab-proj__m{font-size:14px;color:var(--muted)}

/* 10 · Отзывы (виджет уже подключён на сайте) */
.ab-reviews-slot{
  min-height:220px;border:1px dashed var(--burgundy);background:var(--white);
  display:flex;align-items:center;justify-content:center;text-align:center;
  padding:24px;font-size:14px;color:var(--muted);
}

/* 11 · Документы */
.ab-docs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.ab-doc{background:var(--surface);padding:26px 28px 28px;display:flex;flex-direction:column;gap:10px}
.ab-doc h3{font-size:17px;line-height:1.3}
.ab-doc p{font-size:16px;color:var(--muted)}

/* 12 · Контакты */
.ab-contacts{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,420px);gap:40px;align-items:stretch}
.ab-map{position:relative;min-height:460px;background:#e3e3e3;overflow:hidden}
.ab-map__tiles{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,1fr)}
.ab-map__tiles img{width:100%;height:100%;object-fit:cover}
.ab-map__pin{position:absolute;left:50%;top:50%;transform:translate(-50%,-100%);display:flex;flex-direction:column;align-items:center}
.ab-map__pin b{background:var(--burgundy);color:var(--white);font-size:13px;font-weight:400;line-height:1.3;padding:8px 12px;white-space:nowrap}
.ab-map__pin i{width:0;height:0;border-left:8px solid transparent;border-right:8px solid transparent;border-top:10px solid var(--burgundy)}
.ab-map__attr{position:absolute;right:6px;bottom:4px;font-size:10px;color:var(--muted);background:rgba(255,255,255,.8);padding:1px 5px}
.ab-form-card{background:var(--white);padding:32px;display:flex;flex-direction:column;gap:24px}
.ab-nap{display:flex;flex-direction:column;gap:12px}
.ab-nap dt{font-size:13px;color:var(--muted);margin-bottom:2px}
.ab-nap dd{margin:0}
.ab-nap a{color:var(--ink)}
.ab-rule{height:1px;background:var(--burgundy)}
.ab-form{display:flex;flex-direction:column;gap:14px}
.ab-form input[type=text],.ab-form input[type=tel]{
  height:46px;border:1px solid var(--hairline);border-radius:var(--radius);
  padding:0 14px;font-family:inherit;font-size:16px;background:var(--white);outline:none;
}
.ab-form input:focus{border-color:var(--burgundy)}
.ab-consent{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.35;color:var(--muted);cursor:pointer}
.ab-consent input{margin:2px 0 0;width:16px;height:16px;accent-color:var(--burgundy);flex:none}
.ab-form .ab-btn{align-self:flex-start}

/* 13 · Вам также будет интересно */
.ab-dop{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.ab-dop__item{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:#e3e3e3;color:var(--white)}
.ab-dop__item:hover{color:var(--white);text-decoration:none}
.ab-dop__item img{width:100%;height:100%;object-fit:cover;transition:transform .4s cubic-bezier(.2,.8,.2,1)}
.ab-dop__item:hover img{transform:scale(1.03)}
.ab-dop__scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.1) 0%,rgba(0,0,0,.35) 45%,rgba(0,0,0,.82) 100%)}
.ab-dop__body{position:absolute;left:24px;right:24px;bottom:24px;display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.ab-dop__t{font-size:20px;font-weight:500;line-height:1.25;color:var(--white);text-shadow:0 1px 12px rgba(0,0,0,.55)}
.ab-dop__more{background:var(--white);color:var(--ink);font-size:13px;padding:7px 18px;border-radius:var(--radius);line-height:1.2}

/* Контакты складываются в колонку раньше остальных блоков: карте и форме
   вдвоём тесно уже на планшете в альбоме (1194 px у iPad), и правая колонка
   сжималась до 194 px — текст и поля формы вылезали за карточку. */
@media (max-width:1100px){
  .ab-contacts{grid-template-columns:minmax(0,1fr);gap:28px}
  .ab-form-card{max-width:560px}
}

/* --------------------------- Планшет ≤1024 --------------------------- */
@media (max-width:1024px){
  :root{--pad-x:40px;--section-y:48px}
  .ab-hero{min-height:480px}
  .ab-hero__inner{padding:100px var(--pad-x) 48px}
  .ab-hero h1{font-size:36px}
  .ab-stats,.ab-docs,.ab-team{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ab-split,.ab-steps-grid,.ab-founder,.ab-contacts{grid-template-columns:minmax(0,1fr);gap:28px}
  .ab-founder{grid-template-columns:minmax(0,1fr)}
  .ab-portrait{max-width:325px}
  .ab-cards{grid-template-columns:minmax(0,1fr)}
  .ab-slider{grid-auto-columns:calc((100% - 20px) / 2)}
  .ab-dop{grid-template-columns:minmax(0,1fr)}
  .ab-dop__item{aspect-ratio:16/9}
  .ab-map{min-height:340px}
}

/* --------------------------- Телефон ≤640 --------------------------- */
@media (max-width:640px){
  :root{--pad-x:25px;--section-y:44px}
  .ab-h2{font-size:22px;line-height:1.2}
  .ab-hero{min-height:0}
  .ab-hero__scrim{background:linear-gradient(180deg,rgba(0,0,0,.45) 0%,rgba(0,0,0,.7) 100%)}
  .ab-hero__inner{padding:96px var(--pad-x) 44px}
  .ab-hero__body{max-width:none;gap:16px}
  .ab-hero h1{font-size:24px;line-height:1.2}
  .ab-hero p{font-size:17px}
  .ab-hero .ab-btn,.ab-btn--block{display:block;width:100%;text-align:center;padding:13px 20px}
  .ab-stats{gap:12px}
  .ab-stat{padding:20px 18px}
  .ab-stat__n{font-size:28px}
  .ab-docs,.ab-cards{grid-template-columns:minmax(0,1fr);gap:12px}
  .ab-card{flex-direction:row-reverse;justify-content:flex-end;gap:18px;padding:20px}
  .ab-card svg{width:50px;height:50px}
  .ab-head-row{flex-direction:column;gap:8px}
  .ab-head-row .ab-btn{width:100%;text-align:center}
  /* Команда и проекты — горизонтальный свайп */
  .ab-team{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin:0 calc(var(--pad-x) * -1);padding:0 var(--pad-x)}
  .ab-team::-webkit-scrollbar{display:none}
  .ab-member{flex:none;width:210px;scroll-snap-align:start}
  .ab-member__mono{font-size:56px;padding-bottom:24px}
  .ab-slider{display:flex;grid-auto-flow:unset;margin:0 calc(var(--pad-x) * -1);padding:0 var(--pad-x)}
  .ab-proj{flex:none;width:290px}
  .ab-slider-head{flex-wrap:wrap}
  .ab-video__play{width:60px;height:60px}
  .ab-video__play svg{width:24px;height:24px}
  .ab-founder__txt p{font-size:17px}
  .ab-map{min-height:0;aspect-ratio:4/3}
  .ab-map__tiles{grid-template-columns:repeat(2,1fr)}
  .ab-map__tiles img:nth-child(3),.ab-map__tiles img:nth-child(6){display:none}
  .ab-form-card{padding:24px 20px}
  .ab-form input[type=text],.ab-form input[type=tel]{height:48px}
  .ab-form .ab-btn{align-self:stretch;text-align:center}
  .ab-acc__btn{font-size:16px;padding:16px 0;min-height:48px}
  .ab-acc__body{padding-right:30px}
  .ab-dop__t{font-size:19px}
}


/* ==========================================================================
   Сборка в тему (08.09.2026): области, которых в макете не было
   ========================================================================== */

/* Хлебные крошки Yoast в первом экране */
.ab-about .ab-crumbs{font-size:13px;line-height:1.4;color:rgba(255,255,255,.72);margin-bottom:2px}
.ab-about .ab-crumbs a{color:rgba(255,255,255,.72)}
.ab-about .ab-crumbs a:hover{color:#fff;text-decoration:underline}
.ab-about .ab-crumbs span.breadcrumb_last{color:#fff}

/* Карта: конструктор Яндекса вместо превью-тайлов */
.ab-about .ab-map{position:relative;overflow:hidden;background:var(--surface)}
.ab-about .ab-map > script + *,
.ab-about .ab-map iframe,
.ab-about .ab-map ymaps{position:absolute!important;inset:0;width:100%!important;height:100%!important;border:0;display:block}

/* Форма: боевой Contact Form 7 в оформлении карточки */
.ab-about .ab-form--cf7 .wpcf7{margin:0}
.ab-about .ab-form--cf7 .wpcf7-form > p{margin:0 0 12px}
.ab-about .ab-form--cf7 .wpcf7-form > p:last-of-type{margin-bottom:0}
.ab-about .ab-form--cf7 .title{display:block;margin-bottom:14px;font-size:18px;font-weight:500;line-height:1.25;color:var(--head)}
.ab-about .ab-form--cf7 .title span{display:block}
.ab-about .ab-form--cf7 .wpcf7-form-control-wrap{display:block}
.ab-about .ab-form--cf7 input[type=text],
.ab-about .ab-form--cf7 input[type=tel],
.ab-about .ab-form--cf7 input[type=email]{
  width:100%;height:46px;border:1px solid var(--hairline);border-radius:var(--radius);
  padding:0 14px;font-family:inherit;font-size:16px;background:var(--white);color:var(--ink);outline:none;
}
.ab-about .ab-form--cf7 input[type=text]:focus,
.ab-about .ab-form--cf7 input[type=tel]:focus{border-color:var(--burgundy)}
.ab-about .ab-form--cf7 textarea.popup-action{display:none}
.ab-about .ab-form--cf7 .wpcf7-list-item{margin:0}
.ab-about .ab-form--cf7 .wpcf7-list-item label{display:flex;gap:10px;align-items:flex-start;cursor:pointer}
.ab-about .ab-form--cf7 .wpcf7-list-item-label{font-size:13px;line-height:1.35;color:var(--muted)}
.ab-about .ab-form--cf7 input[type=checkbox]{width:16px;height:16px;margin:1px 0 0;accent-color:var(--burgundy);flex:none}
.ab-about .ab-form--cf7 input[type=submit]{
  display:block;width:100%;padding:13px 20px;border:0;border-radius:var(--radius);cursor:pointer;
  font-family:inherit;font-size:16px;font-weight:300;line-height:1.3;text-align:center;
  background:var(--burgundy);color:var(--white);transition:background .2s cubic-bezier(.4,0,.2,1);
}
.ab-about .ab-form--cf7 input[type=submit]:hover{background:var(--burgundy-hover)}
.ab-about .ab-form--cf7 .wpcf7-not-valid-tip{font-size:12px;color:var(--burgundy);margin-top:4px}
.ab-about .ab-form--cf7 .wpcf7-response-output{margin:12px 0 0;padding:10px 12px;font-size:13px;border-radius:var(--radius)}

/* Виджет отзывов подключается своим скриптом, слот из макета не используется */
.ab-about .sw-app{min-height:220px}
