/* =====================================================================
   about.html — новая версия страницы «О компании».
   Подключается ПОСЛЕ about.css: шапка, подвал, кнопки и форма заявки
   берутся оттуда, здесь только новые блоки (префикс .ab-).
   ===================================================================== */

:root {
    --ab-bg: #090909;
    --ab-panel: #131313;
    --ab-line: rgba(255, 255, 255, .1);
    --ab-muted: #b7b7b7;
    --ab-orange: #ff8a00;
}

.ab-section { padding: 110px 0; }
.ab-section h2 {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.01em;
}
.ab-head { max-width: 760px; margin-bottom: 50px; }
.ab-head p { color: var(--ab-muted); font-size: 18px; margin-top: 14px; }
.ab-head-row { max-width: none; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.ab-link { color: var(--ab-orange); font-weight: 700; border-bottom: 2px solid rgba(255, 138, 0, .35); }
.ab-link:hover { border-color: var(--ab-orange); }

a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 2px solid var(--ab-orange);
    outline-offset: 3px;
}

/* ---------- Первый экран ---------- */
.ab-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: flex-end;
    padding: 140px 0 70px;
    overflow: hidden;
}
.ab-hero-media, .ab-hero-media img {
    position: absolute; inset: 0; width: 100%; height: 100%;
}
.ab-hero-media img { object-fit: cover; }
.ab-hero-media::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.7) 45%, rgba(0,0,0,.25) 100%),
        linear-gradient(0deg, rgba(9,9,9,1) 0%, rgba(9,9,9,0) 35%);
}
.ab-hero-inner { position: relative; z-index: 2; }
.ab-crumbs { color: #999; font-size: 14px; margin-bottom: 18px; }
.ab-crumbs a { color: #ccc; }
.ab-crumbs a:hover { color: var(--ab-orange); }
.ab-hero h1 {
    font-size: clamp(29px, 5.4vw, 68px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.02em;
    max-width: 14ch;
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0,0,0,.6);
}
.ab-lead { font-size: clamp(16px, 1.6vw, 20px); color: #dcdcdc; max-width: 620px; margin-bottom: 34px; }
.ab-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ab-actions .button { border: none; cursor: pointer; font-family: inherit; font-size: 16px; }
.ab-btn-ghost {
    display: inline-block; padding: 14px 28px; border-radius: 8px;
    border: 2px solid rgba(255,255,255,.35); color: #fff; font-weight: 700;
    transition: border-color .25s, color .25s;
}
.ab-btn-ghost:hover { border-color: var(--ab-orange); color: var(--ab-orange); }

.ab-facts {
    display: grid; grid-template-columns: repeat(4, auto); justify-content: start;
    gap: 0; margin-top: 60px; border-top: 1px solid var(--ab-line);
}
.ab-facts > div { padding: 22px 48px 0 0; margin-right: 48px; border-right: 1px solid var(--ab-line); }
.ab-facts > div:last-child { border-right: 0; margin-right: 0; }
.ab-facts dt { font-size: clamp(26px, 3vw, 38px); font-weight: 800; color: var(--ab-orange); line-height: 1; font-variant-numeric: tabular-nums; }
.ab-facts dd { color: var(--ab-muted); font-size: 15px; margin-top: 8px; }

/* ---------- Кто мы ---------- */
.ab-who { background: var(--ab-bg); }
.ab-who-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: start; }
.ab-who-text h2 { margin-bottom: 26px; }
.ab-who-text > p { color: #cfcfcf; font-size: 18px; line-height: 1.85; margin-bottom: 20px; max-width: 64ch; }
.ab-ticks { list-style: none; margin-top: 30px; border-top: 1px solid var(--ab-line); }
.ab-ticks li { padding: 16px 0 16px 28px; border-bottom: 1px solid var(--ab-line); position: relative; color: #cfcfcf; }
.ab-ticks li::before {
    content: ""; position: absolute; left: 0; top: 25px;
    width: 12px; height: 2px; background: var(--ab-orange);
}
.ab-ticks strong { color: #fff; }
.ab-who-photo { border-radius: 14px; overflow: hidden; position: sticky; top: 110px; }
.ab-who-photo img { width: 100%; display: block; }

/* ---------- Станочный парк: лист техпаспорта ---------- */
.ab-park { background: #0e0e0e; }
.ab-sheet {
    border: 2px solid rgba(255, 138, 0, .55);
    border-radius: 4px;
    background:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 24px 24px,
        var(--ab-panel);
}
.ab-row {
    display: grid; grid-template-columns: 1fr 1.3fr 1.4fr;
    border-bottom: 1px solid var(--ab-line);
}
.ab-row:last-child { border-bottom: 0; }
.ab-row > span { padding: 20px 24px; border-right: 1px solid var(--ab-line); line-height: 1.6; }
.ab-row > span:last-child { border-right: 0; }
.ab-row.ab-row-head > span {
    font-size: 13px; font-weight: 700; color: var(--ab-orange);
    padding-top: 14px; padding-bottom: 14px;
    border-bottom: 2px solid rgba(255, 138, 0, .55);
}
.ab-row-head { border-bottom: 0; }
.ab-eq { font-weight: 700; color: #fff; }
.ab-row > span:nth-child(2) { color: var(--ab-muted); }
.ab-num { font-variant-numeric: tabular-nums; color: #eee; }
.ab-sheet-note { margin-top: 22px; color: var(--ab-muted); }
.ab-sheet-note a { color: var(--ab-orange); font-weight: 700; border-bottom: 1px solid rgba(255,138,0,.4); margin-left: 6px; }

/* ---------- Что изготавливаем ---------- */
.ab-make-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--ab-line);
}
.ab-make-item {
    display: block; padding: 28px 30px 28px 0; color: #fff;
    border-bottom: 1px solid var(--ab-line);
    transition: background .25s;
}
.ab-make-item:nth-child(odd) { padding-right: 40px; border-right: 1px solid var(--ab-line); }
.ab-make-item:nth-child(even) { padding-left: 40px; }
.ab-make-item h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; transition: color .25s; }
.ab-make-item p { color: var(--ab-muted); max-width: 52ch; }
.ab-make-item:hover h3 { color: var(--ab-orange); }
.ab-make-wide { grid-column: 1 / -1; border-right: 0 !important; }

/* ---------- Этапы ---------- */
.ab-steps { background: #0e0e0e; }
.ab-steps-list {
    list-style: none; counter-reset: step;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
}
.ab-steps-list li {
    counter-increment: step; position: relative;
    padding: 64px 22px 0 0;
}
.ab-steps-list li::before {
    content: counter(step);
    position: absolute; top: 0; left: 0;
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--ab-orange); color: #111; font-weight: 800;
}
.ab-steps-list li::after {
    content: ""; position: absolute; top: 20px; left: 52px; right: 12px;
    height: 2px; background: rgba(255,138,0,.3);
}
.ab-steps-list li:last-child::after { display: none; }
.ab-steps-list h3 { font-size: 20px; margin-bottom: 8px; }
.ab-steps-list p { color: var(--ab-muted); font-size: 15px; }

/* ---------- Фото ---------- */
.ab-photo-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 170px; gap: 10px;
}
.ab-photo-grid a { display: block; overflow: hidden; border-radius: 8px; background: #151515; }
.ab-photo-grid a:first-child { grid-column: span 3; grid-row: span 2; }
.ab-photo-grid a:nth-child(2), .ab-photo-grid a:nth-child(3) { grid-column: span 3; }
.ab-photo-grid a:nth-child(n+4) { grid-column: span 2; }
.ab-photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.ab-photo-grid a:hover img { transform: scale(1.04); }

/* ---------- FAQ ---------- */
.ab-faq { background: #0e0e0e; }
.ab-faq-inner { max-width: 860px; }
.ab-faq h2 { margin-bottom: 34px; }
.ab-faq details { border-bottom: 1px solid var(--ab-line); }
.ab-faq details:first-of-type { border-top: 1px solid var(--ab-line); }
.ab-faq summary {
    cursor: pointer; list-style: none; padding: 22px 40px 22px 0;
    font-size: 19px; font-weight: 700; position: relative;
}
.ab-faq summary::-webkit-details-marker { display: none; }
.ab-faq summary::after {
    content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    font-size: 28px; font-weight: 400; color: var(--ab-orange); transition: transform .25s;
}
.ab-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.ab-faq details p { color: var(--ab-muted); padding: 0 40px 22px 0; max-width: 70ch; }

/* ---------- Контакты ---------- */
.ab-contact { background: linear-gradient(180deg, #121212, #090909); border-top: 3px solid var(--ab-orange); }
.ab-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.ab-contact-lead { color: #cfcfcf; font-size: 19px; margin: 18px 0 30px; max-width: 46ch; }
.ab-contact-list > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--ab-line); }
.ab-contact-list > div:first-child { border-top: 1px solid var(--ab-line); }
.ab-contact-list dt { color: #8d8d8d; font-size: 15px; }
.ab-contact-list dd { color: #fff; font-weight: 600; }
.ab-contact-list a { color: #fff; border-bottom: 1px solid rgba(255,138,0,.5); }
.ab-contact-list a:hover { color: var(--ab-orange); }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
    .ab-who-grid, .ab-contact-grid { grid-template-columns: 1fr; gap: 44px; }
    .ab-who-photo { position: static; }
    .ab-steps-list { grid-template-columns: 1fr; gap: 26px; }
    .ab-steps-list li { padding: 0 0 0 60px; min-height: 40px; }
    .ab-steps-list li::after { top: 48px; bottom: -22px; left: 19px; right: auto; width: 2px; height: auto; }
}
@media (max-width: 860px) {
    .ab-section { padding: 76px 0; }
    .ab-facts { grid-template-columns: repeat(2, 1fr); }
    .ab-facts > div { margin-right: 0; padding-right: 16px; border-right: 0; }
    .ab-row, .ab-row-head { grid-template-columns: 1fr; }
    .ab-row-head { display: none; }
    .ab-row > span { border-right: 0; padding: 4px 18px; }
    .ab-row > span:first-child { padding-top: 18px; }
    .ab-row > span:last-child { padding-bottom: 18px; }
    .ab-make-grid { grid-template-columns: 1fr; }
    .ab-make-item, .ab-make-item:nth-child(odd), .ab-make-item:nth-child(even) { padding: 22px 0; border-right: 0; }
    .ab-photo-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
    .ab-photo-grid a:first-child { grid-column: span 2; grid-row: span 2; }
    .ab-photo-grid a:nth-child(n+2) { grid-column: span 1; grid-row: span 1; }
}
@media (max-width: 768px) {
    .ab-hero { min-height: 0; padding: 120px 0 50px; }
    .ab-actions .button, .ab-btn-ghost { width: 100%; text-align: center; }
    .ab-contact-list > div { grid-template-columns: 1fr; gap: 4px; }
    .ab-faq summary { font-size: 17px; }
}


/* =====================================================================
   Первый экран v2: цех слева под текстом, команда справа,
   между ними размытый переход.
   ===================================================================== */
.ab-hero-media img { filter: blur(2px) brightness(.8); transform: scale(1.03); }
.ab-hero-media::after {
    background:
        linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.72) 40%, rgba(0,0,0,.45) 100%),
        linear-gradient(0deg, rgba(9,9,9,1) 0%, rgba(9,9,9,0) 35%);
}
.ab-hero-team {
    position: absolute; top: 0; right: 0; bottom: 0; width: 56%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 14%, #000 40%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 14%, #000 40%);
}
.ab-hero-team img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; display: block; }
.ab-hero-team::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(0deg, rgba(9,9,9,1) 0%, rgba(9,9,9,.35) 28%, rgba(9,9,9,0) 50%),
        linear-gradient(180deg, rgba(9,9,9,.55) 0%, rgba(9,9,9,0) 22%);
}
/* полоса размытия на стыке: цех «перетекает» в фото команды */
.ab-hero-seam {
    position: absolute; top: 0; bottom: 0; left: 38%; width: 18%;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%, #000 55%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 45%, #000 55%, transparent);
    pointer-events: none;
}
.ab-hero-inner { max-width: 1400px; }
.ab-hero h1 { max-width: none; margin-bottom: 26px; }
.ab-h1-main { display: block; max-width: 11ch; }
.ab-h1-sub {
    display: block; margin-top: 18px; max-width: 30ch;
    font-size: clamp(16px, 1.5vw, 21px); font-weight: 600; line-height: 1.4;
    letter-spacing: 0; color: var(--ab-orange); text-shadow: none;
}
.ab-lead { max-width: 540px; }
.ab-facts { grid-template-columns: repeat(3, auto); }

@media (max-width: 860px) {
    .ab-hero { flex-direction: column; justify-content: flex-end; padding-top: 0; }
    .ab-hero-team {
        position: relative; width: calc(100% + 0px); height: 46vh; min-height: 280px;
        -webkit-mask-image: none; mask-image: none; margin-top: 72px;
    }
    .ab-hero-team::after { background: linear-gradient(0deg, rgba(9,9,9,1) 0%, rgba(9,9,9,0) 45%); }
    .ab-hero-seam { display: none; }
    .ab-hero-inner { margin-top: -60px; }
    .ab-hero-media::after { background: rgba(0,0,0,.82); }
    .ab-facts { grid-template-columns: repeat(3, 1fr); }
    .ab-facts dt { font-size: 24px; }
    .ab-facts dd { font-size: 13px; }
}

/* подгонка: заголовок в 3 строки, фото команды шире, цех чуть светлее */
@media (min-width: 861px) {
    .ab-hero { min-height: 0; height: max(640px, calc(100vh - 20px)); padding: 110px 0 44px; align-items: center; }
    .ab-hero h1 { font-size: clamp(34px, 4.3vw, 60px); }
    .ab-h1-main { max-width: 14ch; }
    .ab-hero-team { width: 62%; }
    .ab-hero-seam { left: 33%; }
    .ab-facts { margin-top: 36px; }
    .ab-lead { margin-bottom: 26px; }
}
.ab-hero-media img { filter: blur(2px) brightness(1); }
.ab-hero-media::after {
    background:
        linear-gradient(90deg, rgba(0,0,0,.84) 0%, rgba(0,0,0,.6) 38%, rgba(0,0,0,.35) 100%),
        linear-gradient(0deg, rgba(9,9,9,1) 0%, rgba(9,9,9,0) 30%);
}
.ab-h1-main { max-width: none !important; }

/* Станочный парк — простой перечень характеристик */
.ab-specs {
    display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 56px;
    border-top: 1px solid var(--ab-line);
}
.ab-specs > div {
    display: grid; grid-template-columns: minmax(170px, 38%) 1fr; gap: 18px;
    padding: 18px 0; border-bottom: 1px solid var(--ab-line);
}
.ab-specs dt { font-weight: 700; color: #fff; line-height: 1.5; }
.ab-specs dd { color: #d6d6d6; line-height: 1.6; font-variant-numeric: tabular-nums; }
.ab-specs-more { margin-top: 26px; }
@media (max-width: 1100px) { .ab-specs { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ab-specs > div { grid-template-columns: 1fr; gap: 4px; } }

/* «Кто мы»: коллаж из трёх фото с наложением */
.ab-collage { position: relative; width: 100%; aspect-ratio: 1 / .95; }
.ab-collage img {
    position: absolute; display: block; object-fit: cover;
    border: 7px solid var(--ab-bg); border-radius: 12px;
    box-shadow: 0 22px 50px rgba(0,0,0,.55);
}
.ab-c1 { left: 0; top: 0; width: 78%; aspect-ratio: 4 / 3; z-index: 1; }
.ab-c2 { right: 0; top: 24%; width: 40%; aspect-ratio: 3 / 4; z-index: 3; object-position: 50% 30%; }
.ab-c3 { left: 7%; bottom: 0; width: 57%; aspect-ratio: 4 / 3; z-index: 2; }
@media (max-width: 1100px) { .ab-collage { max-width: 640px; } }

/* Первый экран v3: слоган, подзаголовок, гео-строка, сноска */
@media (min-width: 861px) {
    .ab-hero { height: auto; min-height: calc(100vh - 20px); }
}
.ab-h1-sub {
    color: #ececec; font-size: clamp(18px, 1.75vw, 24px); font-weight: 600;
    max-width: 28ch; margin-top: 16px;
}
.ab-star { color: var(--ab-orange); font-size: .45em; vertical-align: super; margin-left: 2px; }
.ab-geo { color: #cfcfcf; font-size: 16px; line-height: 1.55; max-width: 520px; margin-bottom: 16px; }
.ab-geo strong {
    display: block; color: var(--ab-orange); text-transform: uppercase;
    font-size: clamp(15px, 1.35vw, 18px); font-weight: 800; letter-spacing: .04em; margin-bottom: 4px;
}
.ab-hero .ab-lead { font-size: 16px; color: #bdbdbd; max-width: 520px; }
.ab-footnote { margin-top: 16px; font-size: 13px; color: #8d8d8d; }
.ab-faq details a { color: var(--ab-orange); border-bottom: 1px solid rgba(255,138,0,.4); }
.ab-h1-sub { max-width: 34ch; }
.ab-geo { max-width: 600px; }

/* v4: звёздочка перед подзаголовком, плотнее отступы, оранжевые линии в станочном парке */
.ab-star-inline { color: var(--ab-orange); margin-right: 2px; }
.ab-section { padding: 64px 0; }
.ab-head { margin-bottom: 30px; }
@media (min-width: 861px) {
    .ab-hero { padding-bottom: 32px; }
}
@media (max-width: 860px) {
    .ab-section { padding: 48px 0; }
}
.ab-specs { border-top: 2px solid var(--ab-orange); }
.ab-specs > div { border-bottom: 1px solid rgba(255, 138, 0, .55); }
.ab-specs > div:nth-last-child(-n+2) { border-bottom-color: var(--ab-orange); }
@media (max-width: 1100px) {
    .ab-specs > div:nth-last-child(2) { border-bottom-color: rgba(255, 138, 0, .55); }
}

/* Подписка на обновления — под цифрами первого экрана */
.ab-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 22px; }
.ab-follow span { color: #bdbdbd; font-size: 15px; margin-right: 4px; }
.ab-follow a {
    display: inline-block; padding: 8px 18px; border-radius: 999px;
    border: 1.5px solid rgba(255, 138, 0, .7); color: #fff; font-weight: 700; font-size: 14px;
    transition: background .2s, border-color .2s;
}
.ab-follow a:hover { background: var(--ab-orange); border-color: var(--ab-orange); }
@media (max-width: 560px) { .ab-follow span { width: 100%; } }
