@charset "UTF-8";
/* Единый шаблон всех направлений. Содержимое Gutenberg не переписывается. */
.direction-navigation,.direction-page .section-hero,.direction-page .content-body,.direction-page .content-contact { width:min(100%,var(--content-width)); margin-inline:auto; padding-inline:var(--gutter); }
.direction-navigation { padding-top:28px; font-size:16px; }
.direction-navigation a { color:var(--muted); text-decoration:underline; text-underline-offset:4px; }
.direction-page .section-hero { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr); align-items:center; gap:48px; padding-top:32px; padding-bottom:58px; }
.section-copy,.section-image { min-width:0; }
.section-copy h1 { margin:0 0 22px; font-size:clamp(42px,3.8vw,52px); line-height:1.08; letter-spacing:-.04em; overflow-wrap:normal; word-break:normal; }
.section-copy .lead { max-width:580px; margin-bottom:26px; font-size:18px; }
.direction-actions { display:flex; align-items:center; flex-wrap:wrap; gap:18px 24px; }
.direction-actions .text-link { font-size:16px; }
.section-image { margin:0; display:flex; flex-direction:column; align-items:center; }
.section-image img { width:auto; height:auto; max-width:100%; max-height:300px; object-fit:contain; }
.section-image figcaption { align-self:stretch; padding-top:12px; margin-top:20px; border-top:1px solid var(--line); color:var(--muted); font-size:16px; line-height:1.5; }
.direction-page .content-body { padding-top:10px; padding-bottom:58px; }
.content-body>h2 { margin:44px 0 22px; font-size:clamp(28px,2.8vw,36px); line-height:1.18; letter-spacing:-.03em; color:var(--navy); }
.content-body>h2:first-child { margin-top:0; }
.process-grid,.equipment-grid { display:grid; gap:20px; margin:0; }
.process-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.content-body>.wp-block-group.process-grid>.wp-block-group__inner-container,
.content-body>.wp-block-group.equipment-grid>.wp-block-group__inner-container { display:contents; }
.process-card { min-width:0; border-top:2px solid var(--blue); padding:18px 18px 20px; background:var(--soft); }
.process-card h3 { margin:0 0 10px; color:var(--navy); font-size:19px; line-height:1.35; }
.process-card p,.equipment-card p,.equipment-card li { font-size:16px; line-height:1.65; color:var(--muted); }
.process-card p { margin:0; }
.equipment-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; align-items:stretch; }
.equipment-card { min-width:0; padding:22px; border:1px solid var(--line); }
.equipment-card figure { height:220px; margin:0 0 22px; padding:16px; background:var(--soft); display:flex; align-items:center; justify-content:center; }
.equipment-card figure img { width:auto; height:auto; max-width:100%; max-height:188px; object-fit:contain; mix-blend-mode:normal; }
.equipment-card h3 { margin:0 0 12px; color:var(--navy); font-size:21px; line-height:1.3; letter-spacing:-.015em; }
.equipment-card p { margin:0 0 14px; }
.equipment-card ul { padding-left:19px; margin:0; }
.equipment-card li+li { margin-top:6px; }
.selection-list { columns:2; column-gap:48px; padding-left:20px; margin:0; color:var(--muted); font-size:16px; line-height:1.65; }
.selection-list li { break-inside:avoid; padding-left:2px; margin-bottom:12px; }
.direction-page .content-contact { padding-top:0; padding-bottom:64px; }
.content-contact-inner { background:var(--navy); color:white; padding:36px 40px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:36px; }
.content-contact-inner h2 { font-size:clamp(26px,2.4vw,32px); line-height:1.2; letter-spacing:-.025em; margin:0 0 12px; }
.content-contact-inner p { max-width:640px; color:#d6e0e9; margin:0; }
.direction-contact-links { display:flex; flex-direction:column; align-items:flex-start; gap:14px; }
.direction-contact-links>a:not(.button) { font-weight:700; }
.direction-page .related-materials { background:var(--soft); margin-bottom:56px; }
.related-materials h2 { margin:0 0 26px; color:var(--navy); font-size:28px; line-height:1.2; letter-spacing:-.025em; }
/* Нейтральный раздел: только предмет разговора и действующие контакты. */
.direction-page.is-neutral .section-hero { align-items:start; padding-top:44px; padding-bottom:72px; }
.direction-page.is-neutral .section-copy { padding-top:12px; }
.direction-brief { padding:28px 30px; background:var(--soft); border-top:2px solid var(--blue); }
.direction-brief h2 { margin:0 0 22px; color:var(--navy); font-size:24px; line-height:1.25; letter-spacing:-.02em; }
.direction-brief dl { margin:0; }
.direction-brief dt { font-size:16px; font-weight:700; color:var(--navy); margin:18px 0 4px; }
.direction-brief dd { margin:0; font-size:16px; color:var(--muted); line-height:1.6; }
.direction-brief-contact { margin-top:26px; padding-top:22px; border-top:1px solid #cbd4dd; display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.direction-brief-contact a { color:var(--blue); font-weight:700; }
@media(max-width:1000px) {
  .direction-page .section-hero { grid-template-columns:1fr; gap:32px; }
  .section-copy h1 { max-width:750px; font-size:46px; }
  .section-copy .lead { max-width:680px; }
  .section-image { align-items:flex-start; max-width:600px; }
  .section-image img { max-height:260px; }
  .process-grid { grid-template-columns:1fr; gap:14px; }
  .process-card { padding:20px; }
  .equipment-card { padding:18px; }
  .equipment-card h3 { font-size:20px; }
  .content-contact-inner { padding:30px; gap:26px; }
  .direction-page.is-neutral .section-hero { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:30px; }
  .direction-page.is-neutral h1 { font-size:38px; }
  .direction-brief { padding:24px; }
}
@media(max-width:640px) {
  .direction-navigation { padding-top:22px; }
  .direction-page .section-hero { padding-top:26px; padding-bottom:40px; gap:28px; }
  .section-copy h1,.direction-page.is-neutral h1 { font-size:clamp(30px,8.2vw,36px); line-height:1.1; letter-spacing:-.035em; margin-bottom:18px; }
  .section-copy .lead { font-size:16px; line-height:1.65; margin-bottom:22px; }
  .section-copy .eyebrow { margin-bottom:12px; }
  .direction-actions { gap:18px; }
  .section-image img { max-height:220px; }
  .section-image figcaption { margin-top:15px; }
  .direction-page .content-body { padding-top:0; padding-bottom:40px; }
  .content-body>h2 { font-size:28px; margin-top:36px; margin-bottom:20px; }
  .equipment-grid { grid-template-columns:1fr; gap:18px; }
  .equipment-card { padding:18px; }
  .equipment-card figure { height:192px; padding:10px; margin-bottom:20px; }
  .equipment-card figure img { max-height:172px; }
  .equipment-card h3 { font-size:20px; }
  .selection-list { columns:1; }
  .direction-page .content-contact { padding-bottom:44px; }
  .content-contact-inner { padding:26px 22px; grid-template-columns:1fr; }
  .direction-page .related-materials { margin-bottom:40px; }
  .direction-page.is-neutral .section-hero { grid-template-columns:1fr; padding-top:26px; padding-bottom:44px; gap:32px; }
  .direction-page.is-neutral .section-copy { padding-top:0; }
  .direction-brief { padding:26px 22px; }
}

/* Выпуск review7: меню с направлениями, карточки главной, группы машин, вопросы, форма, каталог. */
.nav-group { position:relative; }
.nav-sub { display:none; position:absolute; top:100%; left:-14px; z-index:30; min-width:300px; padding:8px 0; background:white; border:1px solid var(--line); box-shadow:0 14px 24px rgb(16 45 81 / 10%); flex-direction:column; }
.nav-group:hover .nav-sub,.nav-group:focus-within .nav-sub { display:flex; }
.nav-sub a { padding:9px 18px; white-space:nowrap; }
@media(max-width:1180px) { .main-nav { flex-wrap:wrap; gap:6px 16px; } }
@media(max-width:640px) {
  .nav-sub { display:flex; position:static; min-width:0; padding:0 0 4px 14px; border:0; box-shadow:none; }
  .nav-sub a { white-space:normal; padding-block:8px; font-size:16px; }
}
.company-marks { width:min(100%,var(--content-width)); margin-inline:auto; padding:0 var(--gutter) 30px; }
.company-marks ul { list-style:none; margin:0; padding:18px 0 0; border-top:1px solid var(--line); display:flex; flex-wrap:wrap; gap:12px 44px; }
.company-marks li { font-size:22px; font-weight:800; letter-spacing:-.03em; color:var(--navy); }
.direction-cards { max-width:1200px; margin-inline:auto; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.direction-card { min-width:0; display:flex; flex-direction:column; gap:12px; padding:16px 16px 20px; background:white; border:1px solid var(--line); border-top:2px solid var(--blue); }
.direction-card:hover { border-color:#a2b3c3; border-top-color:var(--blue); }
.direction-card-images { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.direction-card-images img { width:100%; height:110px; padding:6px; object-fit:contain; background:#fff; border:1px solid var(--line); mix-blend-mode:normal; }
.direction-card-images img:only-child { grid-column:1 / -1; height:110px; }
.direction-card-title { color:var(--navy); font-size:18px; font-weight:700; line-height:1.3; letter-spacing:-.01em; }
.direction-card-text { color:var(--muted); font-size:16px; line-height:1.55; }
.direction-card-more { margin-top:auto; color:var(--blue); font-size:16px; font-weight:700; }
.home-clients { padding:40px 0 0; background:var(--soft); }
.machine-group { padding:30px 0 34px; border-top:1px solid var(--line); }
.machine-group:first-child { border-top:0; padding-top:0; }
.machine-group>h2 { margin:0 0 14px; color:var(--navy); font-size:clamp(22px,2.2vw,28px); line-height:1.25; letter-spacing:-.02em; }
.machine-group p { margin:0 0 14px; color:var(--muted); font-size:16px; line-height:1.65; }
.machine-gallery,.machine-items { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:16px; margin:0 0 18px; }
.machine-group figure { height:210px; margin:0; padding:14px; background:var(--soft); display:flex; align-items:center; justify-content:center; }
.machine-group figure img { width:auto; height:auto; max-width:100%; max-height:182px; object-fit:contain; mix-blend-mode:normal; }
.machine-item { min-width:0; }
.machine-item-images { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; margin-bottom:10px; }
.machine-item p { margin:0; font-size:16px; line-height:1.55; }
.machine-specs { margin:0; padding-left:20px; color:var(--muted); font-size:16px; line-height:1.65; }
.machine-specs li+li { margin-top:6px; }
.direction-faq { background:var(--soft); padding:clamp(38px,4.5vw,58px) var(--gutter); }
.direction-faq-inner { max-width:var(--content-width); margin-inline:auto; width:100%; }
.direction-faq h2 { margin:0 0 22px; color:var(--navy); font-size:clamp(26px,2.6vw,32px); line-height:1.2; letter-spacing:-.025em; }
.direction-request { padding:clamp(38px,4.5vw,58px) var(--gutter); }
.direction-request-inner { max-width:var(--content-width); margin-inline:auto; display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:clamp(28px,5vw,64px); align-items:start; }
.direction-request h2 { margin:0 0 14px; color:var(--navy); font-size:clamp(26px,2.6vw,32px); line-height:1.2; letter-spacing:-.025em; }
.direction-request p { margin:0 0 14px; color:var(--muted); }
.direction-request-contact { display:flex; flex-direction:column; gap:8px; }
.direction-request-contact a { color:var(--blue); font-weight:700; }
.form-note { padding:12px 14px; background:var(--soft); border-left:3px solid var(--accent); font-size:16px; }
.form-trap { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-fields { display:grid; gap:16px; margin:0; padding:0; border:0; min-width:0; }
.direction-request .contact-form { max-width:none; margin-top:0; }
.catalog-kinds { display:flex; flex-wrap:wrap; gap:10px 22px; margin:0 0 32px; font-size:16px; }
.catalog-kinds a { color:var(--blue); font-weight:700; text-decoration:underline; text-underline-offset:4px; text-decoration-color:#afc5d9; }
.catalog-kind { padding-top:8px; }
.catalog-kind h2 { margin:24px 0 14px; color:var(--navy); font-size:clamp(22px,2.2vw,28px); line-height:1.25; }
.catalog-empty { color:var(--muted); }
.catalog-sample-note { color:var(--muted); font-size:16px; }
.catalog-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:20px; margin-bottom:24px; }
.catalog-card { min-width:0; padding:20px; border:1px solid var(--line); background:white; }
.catalog-card-image { height:170px; margin-bottom:16px; background:#fff; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:16px; }
.catalog-card-image img { width:auto; max-width:100%; max-height:150px; object-fit:contain; }
.catalog-card h3 { margin:0 0 10px; color:var(--navy); font-size:19px; line-height:1.3; }
.catalog-card p { margin:0 0 10px; color:var(--muted); font-size:16px; line-height:1.55; }
.catalog-card-links span { color:var(--ink); font-weight:700; }
.catalog-card.is-sample { border-style:dashed; }
.catalog-card-mark { margin:12px 0 0; font-size:16px; letter-spacing:.1em; text-transform:uppercase; }
@media(max-width:1000px) {
  .direction-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .direction-request-inner { grid-template-columns:1fr; }
}
@media(max-width:640px) {
  .direction-cards { grid-template-columns:1fr; }
  .machine-gallery,.machine-items { grid-template-columns:1fr; }
  .machine-group figure { height:190px; }
  .company-marks li { font-size:20px; }
}
.machine-gallery>.wp-block-group__inner-container,.machine-items>.wp-block-group__inner-container,.machine-item-images>.wp-block-group__inner-container { display:contents; }

/* Оглавление направления: порядок групп как в мини-сайте клиента. */
.direction-contents { width:min(100%,var(--content-width)); margin-inline:auto; padding:0 var(--gutter) 34px; }
.contents-details { border-top:2px solid var(--blue); background:var(--soft); }
.contents-details summary { padding:16px 20px; color:var(--navy); font-size:18px; font-weight:700; line-height:1.4; cursor:pointer; list-style:none; }
.contents-details summary::-webkit-details-marker { display:none; }
.contents-details summary::after { content:"+"; float:right; color:var(--blue); font-size:25px; font-weight:400; line-height:1; }
.contents-details[open] summary::after { content:"−"; }
.contents-list { margin:0; padding:0 20px 20px 44px; columns:3; column-gap:36px; font-size:16px; line-height:1.5; color:var(--muted); }
.contents-list li { break-inside:avoid; padding:5px 0 5px 2px; }
.contents-list a { color:var(--blue); text-decoration:underline; text-decoration-color:#afc5d9; text-underline-offset:4px; }
.contents-list a:hover { color:var(--navy); text-decoration-color:currentColor; }
.machine-group { scroll-margin-top:24px; }
.direction-contents { scroll-margin-top:24px; }
.machine-group .to-contents { margin:16px 0 0; font-size:16px; line-height:1.5; }
.machine-group .to-contents a { color:var(--blue); text-decoration:underline; text-decoration-color:#afc5d9; text-underline-offset:4px; }
@media(max-width:1100px) { .contents-list { columns:2; } }
@media(max-width:768px) { .contents-list { columns:1; padding-left:40px; } }

/* Выпуск review12: лоск по экспресс-аудиту 05.11.2026 (docs/audit/fable-express-2026-11-05.md). Цвета текста не менялись. */
:root { --section-pad:72px; --line-soft:#e2e6eb; }
@media(max-width:768px) { :root { --section-pad:48px; } }

/* 1. Заголовки H1: спокойный трекинг и интерлиньяж. */
.home-editorial-copy h1,.section-copy h1,.editorial-page h1,.contact-page h1 { line-height:1.1; letter-spacing:-.02em; }
@media(max-width:640px) {
  .home-editorial-copy h1,.section-copy h1,.editorial-page h1,.contact-page h1 { font-size:34px; line-height:1.15; letter-spacing:-.02em; }
}

/* 2. Единый шаг вертикального ритма секций. */
.home-editorial { padding-top:64px; padding-bottom:var(--section-pad); }
.home-selector,.home-selection,.home-faq,.home-materials,.home-contact,.direction-faq,.direction-request,.related-materials { padding-block:var(--section-pad); }
@media(max-width:640px) { .home-editorial { padding-top:32px; padding-bottom:var(--section-pad); } }

/* 3. Метка над заголовком и единый заголовок секции. */
.eyebrow { margin-bottom:12px; font-size:16px; font-weight:400; letter-spacing:.08em; line-height:1.5; color:var(--muted); }
.home-editorial-copy .eyebrow,.home-selection-heading .eyebrow { color:var(--muted); }
.selector-heading,.home-selection-heading { display:block; margin-bottom:0; }
.selector-heading .eyebrow,.home-selection-heading .eyebrow,.content-section-heading .eyebrow { margin-bottom:12px; }
.selector-heading h2,.home-selection-heading h2,.content-section-heading h2,.direction-faq h2 { margin:0 0 32px; font-size:36px; line-height:1.15; font-weight:700; letter-spacing:-.02em; color:var(--navy); }
.content-section-heading { margin-bottom:0; align-items:flex-end; }
.content-section-heading>div { min-width:0; }
.direction-request h2,.home-contact h2 { font-size:36px; line-height:1.15; font-weight:700; letter-spacing:-.02em; margin:0 0 16px; }
@media(max-width:640px) {
  .selector-heading h2,.home-selection-heading h2,.content-section-heading h2,.direction-faq h2,.direction-request h2,.home-contact h2 { font-size:28px; }
  .selector-heading h2,.home-selection-heading h2,.content-section-heading h2,.direction-faq h2 { margin-bottom:24px; }
}

/* 4. Контактный блок главной на белом, подвал остаётся тёмным. */
.home-contact { background:#fff; color:var(--ink); border-top:1px solid var(--line-soft); }
.home-contact h2 { color:var(--navy); }
.home-contact p { color:var(--muted); }
.home-contact .button-light { background:var(--navy); color:#fff; }
.home-contact .button-light:hover { background:var(--blue); }
.home-contact-links>a:not(.button) { color:var(--navy); }

/* 5. Карточки направлений: рамка, отступ, наведение. */
.direction-card { padding:20px 20px 24px; border:1px solid var(--line-soft); border-top:2px solid var(--blue); transition:border-color .15s,transform .15s; }
.direction-card:hover { border-color:var(--blue); transform:translateY(-2px); }
.direction-card:hover .direction-card-more { text-decoration:underline; text-underline-offset:4px; }
@media(prefers-reduced-motion:reduce) { .direction-card:hover { transform:none; } }

/* 6. Пара действий: основная кнопка и вторая кнопка-контур одной высоты. */
.button { padding:12px 24px; }
.home-actions .text-link,.direction-actions .text-link { display:inline-flex; align-items:center; gap:10px; min-height:52px; padding:12px 24px; border:1px solid var(--blue); background:transparent; color:var(--blue); font-size:16px; font-weight:700; text-decoration:none; }
.home-actions .text-link:hover,.direction-actions .text-link:hover { background:var(--soft); color:var(--navy); }

/* 7. Фото первого экрана: белый фон, рамка 1px, одна подпись слева, фото не растягивается. */
.home-editorial-photo,.section-image { margin:0; padding:24px; background:#fff; border:1px solid var(--line); }
.home-editorial-photo { display:flex; flex-direction:column; align-items:center; }
.home-editorial-photo img { width:auto; height:auto; max-width:100%; }
.home-editorial-photo figcaption,.section-image figcaption { display:block; align-self:stretch; width:100%; margin-top:20px; padding-top:12px; border-top:1px solid var(--line); color:var(--muted); font-size:16px; line-height:1.5; text-align:left; }
.home-editorial-photo figcaption span+span::before { content:" — "; white-space:pre; }
.section-image { align-items:center; }

/* 8. Группы машин: заголовки, ширина списков, подложки фото белые с рамкой. */
.machine-group { padding:0 0 16px; border-top:1px solid var(--line); }
.machine-group>h2 { margin:48px 0 16px; font-size:26px; line-height:1.25; }
.machine-group:first-child>h2 { margin-top:0; }
.machine-specs { max-width:72ch; }
.machine-specs li { margin:0 0 6px; line-height:1.6; }
.machine-specs li+li { margin-top:0; }
.machine-specs li::marker { color:var(--blue); }
.machine-group figure,.equipment-card figure { background:#fff; border:1px solid var(--line); mix-blend-mode:normal; }
@media(max-width:640px) { .machine-group>h2 { font-size:24px; margin-top:36px; } }

/* 9. Вопросы и ответы: правый край ссылки совпадает с краем списка. */
.home-faq .content-section-heading { max-width:900px; }
.faq-list .wp-block-details summary::after { top:22px; font-size:20px; font-weight:400; color:var(--blue); }
@media(max-width:640px) { .faq-list .wp-block-details summary::after { top:20px; } }

/* 10. Подвал: иерархия колонок и нижняя строка. */
.site-footer h2 { margin:0 0 16px; color:rgba(255,255,255,.6); font-size:16px; letter-spacing:.06em; text-transform:uppercase; }
.footer-directions,.footer-navigation,.footer-contact { gap:0; line-height:2; }
.footer-directions a,.footer-navigation a { color:rgba(255,255,255,.88); }
.site-footer a:hover { color:#fff; text-decoration:underline; text-underline-offset:4px; }
.footer-company { margin-top:40px; padding-top:20px; border-top:1px solid rgba(255,255,255,.14); color:rgba(255,255,255,.6); }
.footer-company-name { color:#fff; }
@media(max-width:640px) { .footer-directions,.footer-navigation,.footer-contact { gap:0; } }

/* 11. Полоса знаков "Полиграфспектр" и "СЕЗАМ". */
.company-marks { padding-bottom:0; }
.company-marks ul { padding:20px 0; border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); gap:12px 48px; }
.company-marks li { font-weight:500; color:var(--muted); letter-spacing:.04em; }

/* 12. Шапка: наведение, текущий раздел, фокус, компактная высота. */
.site-header { padding-block:14px; }
.main-nav a { position:relative; font-weight:500; }
.main-nav a:hover { text-decoration:none; color:var(--navy); box-shadow:inset 0 -2px 0 var(--blue); }
.main-nav a[aria-current] { box-shadow:inset 0 -2px 0 var(--blue); }
.main-nav a:focus-visible { outline:2px solid var(--blue); outline-offset:4px; }

/* 05.11.2026: ссылка "Все вопросы" под списком FAQ на главной; подпись бренда в подвале строчными. */
.home-faq-more { max-width:900px; margin:24px 0 0; }
.brand-light span { text-transform:none; letter-spacing:0; }

/* 05.11.2026: карта Яндекса на странице контактов. */
.company-map { width:100%; margin:40px 0 0; }
.company-map iframe { display:block; width:100%; height:420px; border:1px solid var(--line); }
.company-map-coords { margin:12px 0 0; color:var(--muted); font-size:16px; }
@media(max-width:640px) { .company-map iframe { height:320px; } }

/* 05.11.2026: логотипы клиента вместо текстовых знаков. */
.brand img { display:block; height:64px; width:auto; }
.brand-light .brand-plate { display:inline-block; padding:10px 14px; background:#fff; }
.brand-light .brand-plate img { height:52px; }
.company-marks li img { display:block; height:56px; width:auto; }
.company-marks ul { align-items:center; }
@media(max-width:640px) {
  .brand img { height:44px; }
  .company-marks li img { height:44px; }
}

/* Выпуск review14: блок "О компании", мастер подбора, кнопки на страницах направлений. */
.visually-hidden { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.company-about { width:min(100%,var(--content-width)); margin-inline:auto; padding:0 var(--gutter); }
.company-about-inner { padding:24px 0 28px; border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); }
.company-about .eyebrow { margin-bottom:16px; }
.company-about-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 48px; }
.company-about-item { min-width:0; display:flex; align-items:center; gap:24px; }
.company-about-item img { flex:none; display:block; height:56px; width:auto; max-width:50%; }
.company-about-item p { margin:0; color:var(--ink); font-size:16px; line-height:1.5; }
.home-clients h2 { margin:0 0 16px; font-size:28px; color:var(--navy); }
@media(max-width:768px) {
  .company-about-grid { grid-template-columns:1fr; gap:20px; }
  .company-about-item img { height:44px; }
}
.wizard-form { max-width:900px; }
.wizard-progress { margin:0 0 16px; color:var(--muted); font-size:16px; font-weight:700; }
.wizard-step { margin:0 0 28px; padding:0; border:0; min-width:0; }
.wizard-step legend { padding:0; margin:0 0 14px; color:var(--navy); font-size:22px; font-weight:700; line-height:1.3; }
.wizard-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 14px; }
.wizard-choice { display:flex; align-items:center; gap:12px; min-height:52px; padding:12px 16px; border:1px solid var(--line); background:#fff; font-size:16px; line-height:1.4; cursor:pointer; }
.wizard-choice:hover { border-color:var(--blue); }
.wizard-choice input { flex:none; width:20px; height:20px; margin:0; accent-color:var(--blue); }
.wizard-choice:has(input:checked) { border-color:var(--blue); box-shadow:inset 0 0 0 1px var(--blue); background:var(--soft); }
.wizard-choice:has(input:focus-visible) { outline:var(--focus-ring); outline-offset:2px; }
.wizard-field { display:grid; gap:8px; margin:0 0 16px; font-size:16px; font-weight:700; color:var(--navy); }
.wizard-field input { width:100%; min-height:52px; padding:12px 14px; border:1px solid var(--line); background:#fff; color:var(--ink); font-size:16px; font-weight:400; }
.wizard-contact .consent { display:flex; align-items:flex-start; gap:10px; margin:0 0 20px; font-size:16px; line-height:1.5; color:var(--ink); }
.wizard-contact .consent input { flex:none; width:20px; height:20px; margin:2px 0 0; accent-color:var(--blue); }
.wizard-contact .consent a { color:var(--blue); text-decoration:underline; text-underline-offset:3px; }
.wizard-submit:disabled { opacity:.55; cursor:not-allowed; }
.wizard-nav { display:flex; flex-wrap:wrap; gap:12px; }
.wizard-nav button { min-height:52px; padding:12px 24px; border:1px solid var(--blue); background:transparent; color:var(--blue); font-size:16px; font-weight:700; cursor:pointer; }
.wizard-nav button:hover { background:var(--soft); }
.wizard-nav .wizard-next { background:var(--navy); border-color:var(--navy); color:#fff; }
.wizard-nav .wizard-next:hover { background:var(--blue); }
.wizard-form.is-enhanced .wizard-step { display:none; }
.wizard-form.is-enhanced .wizard-step.is-current { display:block; }
.wizard-form.is-enhanced .wizard-step legend:focus { outline:none; }
.wizard-form:not(.is-enhanced) .wizard-nav { display:none; }
@media(max-width:640px) { .wizard-choices { grid-template-columns:1fr; } .wizard-step legend { font-size:20px; } }
.direction-pick { width:min(100%,var(--content-width)); margin:0 auto; padding:0 var(--gutter) 34px; }
.machine-group .request-machine { margin:12px 0 0; font-size:16px; line-height:1.5; }
.machine-group .request-machine a { color:var(--blue); font-weight:700; text-decoration:underline; text-decoration-color:#afc5d9; text-underline-offset:4px; }
.machine-group .request-machine+.to-contents { margin-top:8px; }

/* Выпуск review15: страницы документов и ссылка на политику в подвале. */
.page-content-body { max-width:72ch; font-size:18px; line-height:1.7; }
.page-content-body h2 { margin:40px 0 16px; color:var(--navy); font-size:26px; line-height:1.25; letter-spacing:-.02em; }
.page-content-body p { margin:0 0 16px; }
.page-content-body ul { margin:0 0 20px; padding-left:22px; }
.page-content-body li { margin-bottom:8px; }
.page-content-body a { color:var(--blue); text-decoration:underline; text-underline-offset:3px; }
.footer-company-links { margin-left:auto; display:flex; flex-wrap:wrap; gap:8px 28px; }
.footer-company-links a { text-decoration:underline; text-underline-offset:4px; }
@media(max-width:980px) { .footer-company-links { margin-left:0; } }
@media(max-width:640px) { .footer-company-links { width:100%; flex-direction:column; } }

/* Выпуск review16: кнопки мессенджеров. */
.header-messengers { display:flex; gap:8px; flex-shrink:0; }
.messenger-icon { display:grid; place-items:center; width:44px; height:44px; border:1px solid var(--line); color:var(--navy); background:#fff; }
.messenger-icon:hover { border-color:var(--blue); background:var(--soft); color:var(--blue); }
.messenger-icon svg { display:block; }
.messenger-line { margin:0 0 16px; font-size:16px; line-height:1.5; }
.messenger-line a { color:var(--blue); font-weight:700; text-decoration:underline; text-underline-offset:4px; }
.home-contact .messenger-line { margin:0; color:var(--muted); }
.home-contact .messenger-line a { color:var(--navy); }
.messenger-buttons { display:flex; flex-wrap:wrap; gap:12px; }
.messenger-button { display:inline-flex; align-items:center; gap:14px; min-height:56px; padding:10px 20px; border:1px solid var(--blue); color:var(--navy); font-size:16px; line-height:1.3; }
.messenger-button:hover { background:var(--soft); }
.messenger-button span { display:grid; }
.messenger-button strong { font-size:16px; }
@media(max-width:640px) {
  .header-messengers { order:1; margin-left:auto; gap:6px; }
  .messenger-icon { width:40px; height:40px; }
  html.nav-ready .menu-toggle { order:2; margin-left:6px; }
}

/* Выпуск review18: крупные фото клиента и просмотр фото в окне. */
.machine-group figure a,.section-image a { display:flex; align-items:center; justify-content:center; max-width:100%; cursor:zoom-in; }
.machine-group figure.machine-photo-large { grid-column:1 / -1; width:min(100%,640px); height:auto; padding:14px; }
.machine-group figure.machine-photo-large img { max-height:480px; }
.section-hero.has-large-photo { grid-template-columns:minmax(0,1fr) minmax(0,640px); }
.section-image.is-large { max-width:640px; width:100%; }
.section-image.is-large img { max-height:480px; }
@media(max-width:1000px) { .section-hero.has-large-photo { grid-template-columns:1fr; } }
.lightbox { position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center; padding:56px 16px 16px; background:rgba(9,28,51,.88); }
.lightbox[hidden] { display:none; }
.lightbox-figure { margin:0; display:flex; flex-direction:column; align-items:center; gap:12px; max-width:100%; }
.lightbox-figure img { display:block; width:auto; height:auto; max-width:92vw; max-height:78vh; background:#fff; }
.lightbox-caption { max-width:92vw; color:#fff; font-size:16px; line-height:1.5; text-align:center; }
.lightbox button { position:absolute; display:grid; place-items:center; width:48px; height:48px; border:1px solid rgba(255,255,255,.6); background:rgba(9,28,51,.9); color:#fff; font-size:24px; line-height:1; cursor:pointer; }
.lightbox button:hover { background:var(--blue); }
.lightbox button:focus-visible { outline:3px solid #fff; outline-offset:2px; }
.lightbox-close { top:8px; right:8px; }
.lightbox-prev { left:8px; top:50%; transform:translateY(-50%); }
.lightbox-next { right:8px; top:50%; transform:translateY(-50%); }
body.lightbox-open { overflow:hidden; }

/* Выпуск review19: группы машин сеткой карточек. */
.direction-page .content-body.machine-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; align-items:stretch; }
.machine-grid>:not(.machine-group) { grid-column:1 / -1; }
@media(max-width:1023px) { .direction-page .content-body.machine-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; } }
@media(max-width:767px) { .direction-page .content-body.machine-grid { grid-template-columns:minmax(0,1fr); gap:16px; } }
.machine-grid>.machine-group.machine-card { min-width:0; padding:0; border:1px solid var(--line); background:#fff; display:flex; flex-direction:column; scroll-margin-top:24px; }
.machine-grid>.machine-group.machine-card:first-child { border-top:1px solid var(--line); padding-top:0; }
.machine-grid>.machine-card>.wp-block-group__inner-container { display:flex; flex-direction:column; flex:1 1 auto; min-width:0; padding:0 0 18px; }
.machine-grid>.machine-card>.wp-block-group__inner-container>* { margin-block:0; }
.machine-card-media { display:flex; align-items:center; justify-content:center; height:220px; margin:0 0 16px; background:#fff; border-bottom:1px solid var(--line); overflow:hidden; }
.machine-card-media figure { display:flex; align-items:center; justify-content:center; width:100%; height:100%; margin:0; padding:12px; border:0; background:#fff; mix-blend-mode:normal; }
.machine-card-media figure a { display:flex; align-items:center; justify-content:center; width:100%; height:100%; }
.machine-card-media figure img { width:auto; height:auto; max-width:100%; max-height:196px; object-fit:contain; background:#fff; mix-blend-mode:normal; }
.machine-card-media.is-empty { background:var(--soft); }
.machine-card-media.is-empty span { color:var(--ink); font-size:16px; line-height:1.5; }
.machine-grid>.machine-card>.wp-block-group__inner-container>h2 { margin:0 18px 10px; font-size:20px; line-height:1.3; letter-spacing:0; color:var(--navy); overflow-wrap:anywhere; }
.machine-grid>.machine-card:first-child>.wp-block-group__inner-container>h2 { margin-top:0; }
.machine-card-summary { margin:0 18px 12px; color:var(--ink); font-size:16px; line-height:1.55; overflow-wrap:anywhere; }
.machine-card-summary p { margin:0 0 6px; color:var(--ink); font-size:16px; line-height:1.55; }
.machine-card-specs { margin:0; padding-left:20px; }
.machine-card-specs li { margin:0 0 4px; color:var(--ink); font-size:16px; line-height:1.55; }
.machine-card-more { margin:0 18px 12px; }
.machine-card-more>summary { display:inline-flex; align-items:center; min-height:44px; padding:8px 18px; border:1px solid var(--blue); color:var(--navy); background:#fff; font-size:16px; font-weight:700; line-height:1.3; cursor:pointer; list-style:none; }
.machine-card-more>summary::-webkit-details-marker { display:none; }
.machine-card-more>summary::after { content:"+"; margin-left:10px; font-size:16px; }
.machine-card-more[open]>summary::after { content:"−"; }
.machine-card-more>summary:hover { background:var(--soft); }
.machine-card-more>summary:focus-visible { outline:var(--focus-ring); outline-offset:2px; }
.machine-card-more-body { margin-top:14px; color:var(--ink); font-size:16px; line-height:1.55; overflow-wrap:anywhere; }
.machine-card-more-body p,.machine-card-more-body li { color:var(--ink); font-size:16px; line-height:1.55; }
.machine-card-more-body ul { margin:0 0 12px; padding-left:20px; }
.machine-card-more-body li { margin:0 0 4px; }
.machine-card-more-body figure { display:flex; justify-content:center; height:auto; margin:0 0 12px; padding:8px; border:1px solid var(--line); background:#fff; mix-blend-mode:normal; }
.machine-card-more-body figure.machine-photo-large { width:auto; }
.machine-card-more-body figure img { width:auto; height:auto; max-width:100%; max-height:180px; object-fit:contain; }
.machine-card-more-body .wp-block-group { display:block; }
.machine-card-more-body .machine-gallery>.wp-block-group__inner-container,.machine-card-more-body .machine-items>.wp-block-group__inner-container,.machine-card-more-body .machine-item>.wp-block-group__inner-container,.machine-card-more-body .machine-item-images>.wp-block-group__inner-container { display:block; }
.machine-grid .machine-card .request-machine { margin:auto 18px 0; padding-top:6px; font-size:16px; }
.machine-grid .machine-card .to-contents { margin:8px 18px 0; font-size:16px; }
/* Очень узкий экран: длинное слово в заголовке направления не должно давать горизонтальную прокрутку. */
.direction-page .section-copy h1 { overflow-wrap:break-word; }
@media(max-width:360px) { .direction-page .section-copy h1 { font-size:28px; } }

/* Превью группы при наведении на пункт содержания: только устройства с мышью. */
@media (hover: hover) and (pointer: fine) {
  .contents-preview { position:fixed; z-index:50; box-sizing:border-box; width:280px; padding:12px; background:#fff; border:1px solid var(--line,#d9e1e8); border-radius:6px; box-shadow:0 6px 20px rgba(16,42,67,.14); pointer-events:none; color:var(--navy,#12304a); font-size:16px; line-height:1.4; }
  .contents-preview[hidden] { display:none; }
  .contents-preview img { display:block; width:100%; height:120px; margin:0 0 10px; object-fit:contain; background:#fff; }
  .contents-preview strong { display:block; font-size:16px; font-weight:700; }
  .contents-preview span { display:block; margin-top:4px; font-size:16px; color:var(--muted,#52616f); }
}

/* Уведомление о cookie: фиксировано внизу, создаётся скриптом. */
.cookie-notice { position:fixed; left:0; right:0; bottom:0; z-index:60; background:#fff; border-top:1px solid var(--line,#dce2e8); box-shadow:0 -4px 16px rgba(16,42,67,.08); }
.cookie-notice-inner { box-sizing:border-box; width:min(100%,var(--content-width,1312px)); margin-inline:auto; padding:14px var(--gutter,20px); display:flex; align-items:center; gap:24px; }
.cookie-notice p { margin:0; flex:1 1 auto; font-size:16px; line-height:1.5; color:var(--navy,#12304a); }
.cookie-notice a { color:var(--blue,#1f5f99); text-decoration:underline; text-underline-offset:3px; }
.cookie-notice button { flex:0 0 auto; min-height:48px; min-width:120px; padding:10px 24px; border:0; background:var(--navy,#12304a); color:#fff; font:inherit; font-size:16px; font-weight:700; cursor:pointer; }
.cookie-notice button:hover { background:var(--blue,#1f5f99); }
@media(max-width:640px) { .cookie-notice-inner { flex-direction:column; align-items:stretch; gap:10px; padding-block:12px; } .cookie-notice button { width:100%; } }

/* Выпуск review23: сетка названий компаний на главной. */
.home-clients ul { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.home-clients li { min-width:0; padding:14px 16px; background:#fff; border:1px solid var(--line); color:var(--ink); font-size:16px; line-height:1.4; overflow-wrap:break-word; hyphens:auto; }
.home-clients li:last-child { background:transparent; border-color:transparent; color:var(--muted); font-style:italic; padding:14px 0 0; margin:0; }
@media(max-width:1024px) { .home-clients ul { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:768px) { .home-clients ul { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } .home-clients li { padding:12px 10px; } .home-clients li:last-child { padding:12px 0 0; } }

/* Выпуск review26: правки по второму аудиту (docs/audit/astra-2026-11-06/). */

/* R1 (образец на самоклейке и штампах): подробности группы широкой панелью под рядом карточек. */
.has-detail-panel:not(.is-panel-mode) { align-items:start; }
.has-detail-panel.is-panel-mode { align-items:stretch; }
.machine-card-toggle { display:inline-flex; align-items:center; align-self:flex-start; min-height:48px; margin:0 18px 12px; padding:8px 18px; border:1px solid var(--blue); background:#fff; color:var(--navy); font-size:16px; font-weight:700; line-height:1.3; cursor:pointer; }
.machine-card-toggle[hidden] { display:none; }
.machine-card-toggle-mark { margin-left:10px; }
.machine-card-toggle:hover { background:var(--soft); }
.machine-card-toggle:focus-visible { outline:var(--focus-ring); outline-offset:2px; }
.machine-grid>.machine-card.is-open { border-color:var(--blue); box-shadow:0 0 0 1px var(--blue); }
.machine-card.is-open .machine-card-toggle { background:var(--navy); border-color:var(--navy); color:#fff; }
.machine-detail-panel { grid-column:1 / -1; position:relative; margin:-8px 0 8px; padding:28px 28px 32px; background:#fff; border:2px solid var(--blue); scroll-margin-top:24px; }
.machine-detail-panel[hidden] { display:none; }
.machine-detail-panel:focus { outline:none; }
.machine-detail-panel:focus-visible { outline:var(--focus-ring); outline-offset:2px; }
/* Стрелка над серединой выбранной карточки связывает панель с карточкой. */
.machine-detail-panel::before { content:""; position:absolute; top:-13px; left:calc(var(--caret-x,60px) - 12px); width:22px; height:22px; background:#fff; border-top:2px solid var(--blue); border-left:2px solid var(--blue); transform:rotate(45deg); }
.machine-detail-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin:0 0 20px; }
.machine-detail-title { flex:1 1 0; min-width:0; contain:inline-size; margin:0; color:var(--navy); font-size:24px; line-height:1.3; letter-spacing:0; overflow-wrap:anywhere; } /* заголовок не растягивает панель, а переносится по её ширине */
.machine-detail-close { flex:none; min-height:48px; padding:8px 20px; border:1px solid var(--blue); background:#fff; color:var(--navy); font-size:16px; font-weight:700; cursor:pointer; }
.machine-detail-close:hover { background:var(--soft); }
.machine-detail-close:focus-visible { outline:var(--focus-ring); outline-offset:2px; }
/* Раскладка панели (review27): фото слева колонкой по размеру фото (не больше 45%), текст справа одним столбцом;
   что не поместилось рядом с фото, продолжается ниже на всю ширину. Высота панели по содержимому. */
/* Группа с фото: две колонки, фото слева (колонка не шире 40%), весь текст справа одним столбцом; под фото текст не уходит. */
.machine-detail-content .machine-card-more-body { margin-top:0; }
.machine-detail-content .machine-card-more-body:has(> .machine-gallery) { display:grid; grid-template-columns:fit-content(40%) minmax(0,1fr); gap:0 32px; align-items:start; }
.machine-detail-content .machine-card-more-body:has(> .machine-gallery) > .machine-gallery { grid-column:1; grid-row:1 / span 20; margin:0; }
.machine-detail-content .machine-card-more-body:has(> .machine-gallery) > :not(.machine-gallery) { grid-column:2; }
.machine-detail-content .machine-card-more-body .machine-gallery { display:block; }
.machine-detail-content .machine-card-more-body .machine-gallery>.wp-block-group__inner-container { display:flex; flex-wrap:wrap; gap:12px; align-items:flex-start; }
.machine-detail-content .machine-card-more-body .machine-specs { max-width:none; margin:0 0 12px; columns:auto; }
.machine-detail-content .machine-card-more-body .machine-specs li { margin:0 0 8px; }
/* Группы с позициями: фото с подписью под ним, позиции рядом по ширине панели; неполный последний ряд стоит по центру, без пустого поля с одной стороны. */
.machine-detail-content .machine-card-more-body .machine-items>.wp-block-group__inner-container { display:flex; flex-wrap:wrap; justify-content:center; gap:20px 28px; align-items:flex-start; }
.machine-detail-content .machine-card-more-body .machine-item { flex:1 1 340px; max-width:520px; min-width:0; }
.machine-detail-content .machine-card-more-body .machine-item-images>.wp-block-group__inner-container { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:10px; }
.machine-detail-content .machine-card-more-body .machine-item p { margin:0; }
.machine-detail-content .machine-card-more-body .machine-item:not(:has(img,p,li)) { display:none; }
.machine-detail-content .machine-card-more-body figure { margin:0; padding:12px; flex:none; max-width:100%; }
.machine-detail-content .machine-card-more-body figure img { max-height:220px; }
/* Метка "+N фото" на фото карточки у групп, где в скрытой части одни фото. */
.machine-card-media { position:relative; }
.machine-card-more-photos { position:absolute; right:8px; bottom:8px; z-index:1; display:inline-flex; align-items:center; min-height:44px; padding:6px 14px; background:var(--navy); color:#fff; font-size:16px; font-weight:700; line-height:1.2; }
.machine-card-more-photos:hover { background:var(--blue); }
.machine-card-more-photos:focus-visible { outline:var(--focus-ring); outline-offset:2px; }
.machine-card-extra[hidden] { display:none; }
@media(max-width:767px) { .machine-card-toggle { display:none; } }

/* R2: крупное фото первого экрана оставляет тексту не меньше ~420 px; ниже 1220 px одна колонка. */
@media(max-width:1219px) { .section-hero.has-large-photo { grid-template-columns:1fr; } .section-image.is-large { justify-self:start; } }

/* R3: одинаковые поля фото в карточках; рамка hero без крупного фото ровно по размеру фото, подпись её не растягивает. */
.machine-card-media figure { padding:16px; }
.machine-card-media figure img { max-height:188px; }
.section-image:not(.is-large) { width:fit-content; min-width:min(100%,280px); max-width:100%; justify-self:end; }
.section-image:not(.is-large) figcaption { width:0; min-width:100%; }
@media(max-width:1000px) { .section-image:not(.is-large) { justify-self:start; } }

/* R4: контакты подвала не слипаются; перенос мессенджеров без разделителя в начале строки. */
@media(min-width:641px) and (max-width:980px) { .footer-contact { gap:6px 32px; } }
.messenger-links { display:inline-flex; flex-wrap:wrap; gap:4px 18px; vertical-align:top; }

/* R5: окно просмотра фото на телефоне, кнопки листания и счётчик под фото, а не поверх. */
.lightbox-bar { display:contents; }
.lightbox-bar[hidden] { display:none; }
.lightbox-count { display:none; }
@media(max-width:767px) {
  .lightbox { flex-direction:column; justify-content:center; gap:12px; padding:64px 12px 12px; overflow-y:auto; }
  .lightbox-figure { flex:0 1 auto; min-height:0; }
  .lightbox-figure img { max-width:100%; max-height:max(140px,calc(100vh - 270px)); max-height:max(140px,calc(100dvh - 270px)); }
  .lightbox-caption { max-width:100%; }
  .lightbox-caption-count { display:none; }
  .lightbox-bar { display:flex; align-items:center; justify-content:center; gap:16px; width:100%; flex:none; }
  .lightbox .lightbox-prev,.lightbox .lightbox-next { position:static; transform:none; flex:none; }
  .lightbox-count { display:block; min-width:88px; color:#fff; font-size:16px; line-height:1.5; text-align:center; }
}

/* R6: у превью в содержании нет собственных отступов, положение задаёт скрипт. */

/* R7: четыре карточки направлений в ряд только от 1280 px, ниже две колонки. */
@media(max-width:1279px) { .direction-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:640px) { .direction-cards { grid-template-columns:1fr; } }

/* R8: мастер подбора, вводная строка, сообщение о стенде и сводка ответов. */
.wizard-intro { max-width:760px; margin:0 0 16px; color:var(--ink); font-size:16px; line-height:1.6; }
.wizard-stand-note { max-width:900px; margin:0 0 24px; padding:14px 16px; background:var(--soft); border-left:3px solid var(--accent); }
.wizard-stand-note p { margin:0; color:var(--ink); font-size:16px; line-height:1.55; }
.wizard-stand-note .wizard-direct { display:flex; flex-wrap:wrap; gap:4px 24px; margin-top:8px; }
.wizard-stand-note .wizard-direct a { display:inline-flex; align-items:center; min-height:44px; color:var(--blue); font-weight:700; text-decoration:underline; text-underline-offset:4px; }
.wizard-summary { margin:0 0 24px; padding:16px 18px; background:var(--soft); border-top:2px solid var(--blue); }
.wizard-summary[hidden] { display:none; }
.wizard-summary-title { margin:0 0 8px; color:var(--navy); font-size:16px; font-weight:700; }
.wizard-summary-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:4px 16px; padding:8px 0; border-top:1px solid var(--line); }
.wizard-summary-row p { margin:0; display:grid; gap:2px; min-width:0; font-size:16px; line-height:1.5; color:var(--ink); }
.wizard-summary-row strong { color:var(--navy); }
.wizard-summary-row span { overflow-wrap:anywhere; }
.wizard-edit { min-height:48px; padding:8px 16px; border:1px solid var(--blue); background:#fff; color:var(--blue); font-size:16px; font-weight:700; cursor:pointer; }
.wizard-edit:hover { background:var(--soft); }
.wizard-edit:focus-visible { outline:var(--focus-ring); outline-offset:2px; }

/* R10: шапка на самом узком экране, логотип и "Меню" в первом ряду, мессенджеры вторым. */
@media(max-width:379px) {
  html.nav-ready .menu-toggle { order:1; margin-left:auto; }
  .header-messengers { order:2; flex-basis:100%; margin-left:0; }
}

/* R11: Escape закрывает выпадающий список направлений на широком экране. */
@media(min-width:641px) {
  .nav-group.is-closed .nav-sub,
  .nav-group.is-closed:hover .nav-sub,
  .nav-group.is-closed:focus-within .nav-sub { display:none; }
}

/* C1: блок "С кем работаем" стоит после выбора направлений на том же фоне, без двойного отступа. */
.home-selector { padding-bottom:56px; }
.home-clients { padding:0 0 64px; }
@media(max-width:768px) { .home-selector { padding-bottom:40px; } .home-clients { padding-bottom:48px; } }

/* 16.11.2026: логотип СЕЗАМ рядом с логотипом Полиграфспектр в шапке и подвале. */
.brand-sezam { display:block; flex-shrink:0; height:38px; width:auto; }
.footer-logos { display:flex; align-items:center; flex-wrap:wrap; gap:12px 16px; }
.brand-light .brand-plate img { display:block; height:52px; width:auto; }
.brand-plate-sezam { display:inline-flex; align-items:center; box-sizing:border-box; height:72px; padding:0 14px; background:#fff; }
.brand-plate-sezam img { display:block; height:31px; width:auto; }
@media(max-width:640px) {
  .brand img { height:38px; }
  .brand-sezam { height:24px; order:2; margin-left:10px; }
  html.nav-ready .menu-toggle { order:1; margin-left:auto; }
  .header-messengers { order:3; flex-basis:100%; margin-left:0; }
}

/* 16.11.2026: хлебные крошки вместо ссылки "Все направления" (вид прежней ссылки). */
.breadcrumbs { width:min(100%,var(--content-width)); margin-inline:auto; padding:28px var(--gutter) 0; font-size:16px; line-height:1.5; }
.breadcrumbs ol { margin:0; padding:0; list-style:none; }
.breadcrumbs li { display:inline; overflow-wrap:anywhere; }
.breadcrumbs li + li::before { content:"\203A"; margin:0 10px; color:var(--muted); }
.breadcrumbs a { color:var(--muted); text-decoration:underline; text-underline-offset:4px; }
.breadcrumbs [aria-current="page"] { color:var(--ink); }
@media(max-width:640px) { .breadcrumbs { padding-top:22px; } }

/* 16.11.2026: карусель фото групп на первом экране направления. Высота сцены задана, слайды не меняют размер блока. */
.hero-carousel { box-sizing:border-box; margin:0; padding:24px; background:#fff; border:1px solid var(--line); width:100%; max-width:520px; justify-self:end; min-width:0; }
.hero-carousel.is-large { max-width:640px; }
.hero-carousel-stage { position:relative; height:300px; display:flex; align-items:center; justify-content:center; }
.hero-carousel.is-large .hero-carousel-stage { height:400px; }
.hero-slide { margin:0; width:100%; height:100%; display:none; align-items:center; justify-content:center; }
.hero-slide.is-active { display:flex; }
.hero-carousel:not(.is-ready) .hero-slide:not(:first-child) { display:none; }
.hero-slide img { width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; background:#fff; }
.hero-carousel-arrow { position:absolute; top:50%; transform:translateY(-50%); width:44px; height:44px; padding:0; border:1px solid var(--line); background:rgb(255 255 255 / 92%); color:var(--navy); font-size:28px; line-height:1; cursor:pointer; }
.hero-carousel-arrow.is-prev { left:0; }
.hero-carousel-arrow.is-next { right:0; }
.hero-carousel-arrow:hover { background:var(--navy); color:#fff; }
.hero-carousel-arrow:focus-visible, .hero-carousel-dots button:focus-visible, .hero-carousel:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.hero-carousel-dots { display:flex; flex-wrap:wrap; justify-content:center; gap:2px; margin-top:10px; }
.hero-carousel-dots button { width:24px; height:24px; padding:0; border:0; background:transparent; cursor:pointer; position:relative; }
.hero-carousel-dots button::before { content:""; position:absolute; inset:7px; border-radius:50%; background:#fff; border:2px solid var(--blue); box-sizing:border-box; }
.hero-carousel-dots button[aria-current="true"]::before { background:var(--blue); }
.hero-carousel-caption { margin:12px 0 0; padding-top:12px; border-top:1px solid var(--line); min-height:4.5em; font-size:16px; line-height:1.5; }
.hero-carousel-caption a { color:var(--muted); text-decoration:underline; text-underline-offset:4px; }
@media(max-width:1000px) { .hero-carousel { justify-self:start; } .hero-carousel-stage, .hero-carousel.is-large .hero-carousel-stage { height:300px; } }
@media(max-width:640px) { .hero-carousel { padding:16px; } .hero-carousel-stage, .hero-carousel.is-large .hero-carousel-stage { height:220px; } }
.company-about-item img.company-mark-sezam { height:44px; }
@media(max-width:640px) { .company-about-item img.company-mark-sezam { height:34px; } }

/* 16.11.2026: блок "С кем работаем" - статичная карта с точками. Подписи городов внутри карты (14 px) - исключение, как на карте Яндекса. */
.clients-map .clients-map-layout { display:block; }
.clients-map .clients-map-figure { position:relative; width:100%; min-width:0; border:0; background:transparent; }
.clients-map .clients-map-image { position:absolute; inset:0; width:100%; height:100%; display:block; -webkit-mask-image:linear-gradient(to right,transparent,#000 9%,#000 91%,transparent),linear-gradient(to bottom,transparent,#000 14%,#000 86%,transparent); mask-image:linear-gradient(to right,transparent,#000 9%,#000 91%,transparent),linear-gradient(to bottom,transparent,#000 14%,#000 86%,transparent); -webkit-mask-composite:source-in; mask-composite:intersect; }
.clients-map ul.clients-map-points { position:absolute; inset:0; display:block; margin:0; padding:0; list-style:none; }
.clients-map ul.clients-map-points > li.map-point { position:absolute; width:0; height:0; padding:0; margin:0; background:none; border:0; font-size:14px; line-height:1.2; }
.clients-map .map-pin { position:absolute; left:-14px; top:-14px; width:28px; height:28px; padding:0; border:0; background:transparent; cursor:pointer; }
.clients-map .map-dot { position:absolute; left:50%; top:50%; width:10px; height:10px; margin:-5px 0 0 -5px; border-radius:50%; background:#40566f; border:2px solid #fff; box-sizing:content-box; }
.clients-map .has-companies .map-dot { width:16px; height:16px; margin:-10px 0 0 -10px; background:var(--blue); border-color:#fff; box-shadow:0 0 0 3px rgb(18 58 102 / 35%); }
.clients-map .map-pin:focus-visible { outline:2px solid var(--blue); outline-offset:1px; border-radius:50%; }
.clients-map .map-label { position:absolute; white-space:nowrap; pointer-events:none; color:var(--ink); font-size:14px; font-weight:500; text-shadow:0 0 3px #fff,0 0 3px #fff,0 0 3px #fff; }
.clients-map .has-companies .map-label { font-weight:700; color:var(--navy); }
.clients-map .map-label.is-right { left:12px; top:-8px; }
.clients-map .map-label.is-left { right:12px; top:-8px; }
.clients-map .map-label.is-top { left:0; top:-26px; transform:translateX(-50%); }
.clients-map .map-label.is-bottom { left:0; top:10px; transform:translateX(-50%); }
.clients-map .map-tip { position:absolute; z-index:5; display:none; min-width:140px; max-width:240px; padding:10px 12px; background:var(--navy); color:#fff; font-size:16px; line-height:1.35; box-shadow:0 8px 20px rgb(16 45 81 / 25%); }
.clients-map .map-tip strong, .clients-map .map-tip span { display:block; }
.clients-map .map-tip span { margin-top:2px; font-weight:400; }
.clients-map .tip-up .map-tip { bottom:20px; left:0; transform:translateX(-50%); }
.clients-map .tip-down .map-tip { top:20px; left:0; transform:translateX(-50%); }
.clients-map .tip-end .map-tip { left:auto; right:-14px; transform:none; }
.clients-map .tip-start .map-tip { left:-14px; transform:none; }
.clients-map .map-point:hover .map-tip, .clients-map .map-point:focus-within .map-tip, .clients-map .map-point.is-open .map-tip { display:block; }
.clients-map .map-point:hover, .clients-map .map-point:focus-within, .clients-map .map-point.is-open { z-index:6; }

@media(max-width:640px) {
  .clients-map .map-label { display:none; }
  .clients-map .map-pin { left:-12px; top:-12px; width:24px; height:24px; }
  .clients-map .has-companies .map-dot { width:12px; height:12px; margin:-8px 0 0 -8px; }
  .clients-map .map-dot { width:8px; height:8px; margin:-4px 0 0 -4px; }
  .clients-map .map-tip { min-width:120px; max-width:200px; }
}
.clients-map ul.clients-map-points > li.map-point:last-child { margin:0; padding:0; background:none; border:0; color:inherit; font-style:normal; }

/* Первый экран главной (с 18.11.2026) - широкий баннер: фото справа на всю высоту (кроссфейд), слева светлая подложка-градиент с текстом. */
.home-banner-section { width:min(100%,var(--content-width)); margin-inline:auto; padding:40px var(--gutter) 40px; }
.home-banner { position:relative; display:flex; align-items:center; min-height:460px; overflow:hidden; isolation:isolate; border-radius:20px; border:1px solid var(--line); background:#fff; }
.home-banner .hero-carousel-stage { display:contents; }
.home-banner .hero-slide { position:absolute; inset:0; z-index:0; margin:0; display:flex; align-items:center; justify-content:flex-end; padding:28px 36px 28px 0; opacity:0; transition:opacity .7s ease; pointer-events:none; }
.home-banner .hero-slide.is-active { opacity:1; }
.home-banner .hero-slide img { width:auto; height:auto; max-width:56%; max-height:100%; object-fit:contain; background:transparent; }
.home-banner::after { content:""; position:absolute; inset:0; z-index:1; pointer-events:none; background:linear-gradient(90deg,#fff 0%,#fff 42%,rgb(255 255 255 / 85%) 52%,rgb(255 255 255 / 0%) 64%); }
.home-banner-copy { position:relative; z-index:2; width:min(54%,640px); padding:52px 0 52px 52px; }
.home-banner-copy .home-editorial-copy { padding:0; }
.home-banner .hero-carousel-arrow { top:auto; bottom:22px; z-index:3; transform:none; }
.home-banner .hero-carousel-arrow.is-prev { left:auto; right:80px; }
.home-banner .hero-carousel-arrow.is-next { right:28px; }
.home-banner .hero-carousel-dots { position:absolute; z-index:3; right:140px; bottom:32px; margin:0; max-width:46%; justify-content:flex-end; }
.home-banner:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
@media(max-width:1100px) { .home-banner-copy { width:min(60%,640px); padding:40px 0 40px 36px; } .home-banner .hero-slide img { max-width:52%; } }
@media(max-width:760px) {
  .home-banner-section { padding-top:20px; padding-bottom:24px; }
  .home-banner { display:block; min-height:0; }
  .home-banner::after { display:none; }
  .home-banner .hero-slide { bottom:auto; height:230px; justify-content:center; padding:16px 16px 28px; }
  .home-banner .hero-slide img { max-width:100%; }
  .home-banner-copy { width:auto; margin-top:258px; padding:22px 20px 28px; background:#fff; }
  .home-banner .hero-carousel-arrow { top:96px; bottom:auto; transform:translateY(-50%); }
  .home-banner .hero-carousel-arrow.is-prev { left:8px; right:auto; }
  .home-banner .hero-carousel-arrow.is-next { right:8px; }
  .home-banner .hero-carousel-dots { top:204px; bottom:auto; right:auto; left:50%; transform:translateX(-50%); max-width:90%; justify-content:center; }
}
@media(prefers-reduced-motion: reduce) { .home-banner .hero-slide { transition:none; } }

/* 16.11.2026: страница "Инструменты" до появления карточек - пустые рамки-места без текста (3 / 2 / 1 в ряд). */
.catalog-placeholders { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin:8px 0 32px; }
.catalog-placeholder { min-height:300px; border:1px dashed #b9c6d4; background:#fff; }
@media(max-width:1000px) { .catalog-placeholders { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:640px) { .catalog-placeholders { grid-template-columns:1fr; gap:16px; } .catalog-placeholder { min-height:200px; } }

/* Примеры продукции: сетка фото сразу после первого экрана направления. */
.direction-page .product-examples { width:min(100%,var(--content-width)); margin-inline:auto; padding:0 var(--gutter) 44px; }
.product-examples h2 { margin:0 0 22px; color:var(--navy); font-size:clamp(26px,2.6vw,32px); line-height:1.2; letter-spacing:-.025em; }
.product-examples-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin:0; padding:0; list-style:none; }
.product-examples-grid li { min-width:0; }
.product-examples-grid figure { margin:0; border:1px solid var(--line); background:var(--soft); }
.product-examples-grid a { display:block; }
.product-examples-grid img { display:block; width:100%; height:260px; object-fit:cover; }
@media(max-width:1023px) { .product-examples-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; } }
@media(max-width:767px) { .product-examples-grid { grid-template-columns:minmax(0,1fr); gap:16px; } .product-examples-grid img { height:240px; } }

/* 22.11.2026 (review51): широкие экраны. До 1600 px правила этого блока не действуют, вид прежний.
   Ширина содержимого (без боковых полей): от 1600 px - 1488, от 1920 px - 1760, от 2560 px - 2400 экранных px.
   На 4K страница целиком увеличена (zoom): от 2560 px в 1,25 раза, от 3840 px в 1,5 раза; размеры ниже заданы до увеличения.
   Абзацы и списки вопросов сохраняют свою ширину строки; растут фон, сетки карточек, фото и первый экран. */
@media(min-width:1600px) {
  :root {
    --content-inner:1488px; --content-width:calc(var(--content-inner) + 2 * var(--gutter));
    --wide-banner-height:520px; --wide-banner-copy:740px; --wide-home-title:60px; --wide-direction-title:56px;
    --wide-direction-photo:140px;
    --wide-hero:600px; --wide-hero-stage:340px; --wide-hero-large:760px; --wide-hero-large-stage:460px;
    --wide-examples-photo:320px;
    --wide-machine-columns:3; --wide-machine-media:270px; --wide-panel-photo:260px;
    --wide-catalog-card:320px; --wide-catalog-photo:200px;
  }
  /* Блоки с собственной шириной 1200 px идут по общей ширине содержимого. */
  .direction-cards,.selector-heading,.selector-options,.home-selection-inner,.direction-faq-inner,.direction-request-inner { max-width:var(--content-inner); }
  .site-footer,.home-contact { padding-inline:max(var(--gutter),calc((100% - var(--content-inner)) / 2)); }
  /* Первый экран главной. */
  .home-banner { min-height:var(--wide-banner-height); }
  .home-banner-copy { width:min(54%,var(--wide-banner-copy)); padding:60px 0 60px 60px; }
  .home-banner .home-editorial-copy h1 { max-width:none; font-size:var(--wide-home-title); }
  .home-banner .hero-slide { padding:32px 48px 32px 0; }
  /* Карточки направлений на главной. */
  .direction-cards { gap:24px; }
  .direction-card { padding:24px 24px 28px; }
  .direction-card-images { gap:12px; }
  .direction-card-images img,.direction-card-images img:only-child { height:var(--wide-direction-photo); }
  /* Первый экран направления. */
  .direction-page .section-copy h1 { font-size:var(--wide-direction-title); }
  .direction-page .section-hero { gap:64px; }
  .direction-page .section-hero.has-large-photo { grid-template-columns:minmax(0,1fr) minmax(0,var(--wide-hero-large)); }
  .hero-carousel { max-width:var(--wide-hero); }
  .hero-carousel .hero-carousel-stage { height:var(--wide-hero-stage); }
  .hero-carousel.is-large,.section-image.is-large { max-width:var(--wide-hero-large); }
  .hero-carousel.is-large .hero-carousel-stage { height:var(--wide-hero-large-stage); }
  .section-image img { max-height:var(--wide-hero-stage); }
  .section-image.is-large img { max-height:var(--wide-hero-large-stage); }
  /* Примеры продукции и карточки групп машин. */
  .product-examples-grid img { height:var(--wide-examples-photo); }
  .direction-page .content-body.machine-grid { grid-template-columns:repeat(var(--wide-machine-columns),minmax(0,1fr)); }
  .machine-card-media { height:var(--wide-machine-media); }
  .machine-card-media figure img { max-height:calc(var(--wide-machine-media) - 32px); }
  .machine-detail-content .machine-card-more-body figure img { max-height:var(--wide-panel-photo); }
  /* Каталог машин. */
  .catalog-grid { grid-template-columns:repeat(auto-fill,minmax(var(--wide-catalog-card),1fr)); gap:24px; }
  .catalog-card-image { height:var(--wide-catalog-photo); }
  .catalog-card-image img { max-height:calc(var(--wide-catalog-photo) - 20px); }
}
@media(min-width:1920px) {
  :root {
    --content-inner:1760px;
    --wide-banner-height:600px; --wide-banner-copy:860px; --wide-home-title:68px; --wide-direction-title:62px;
    --wide-direction-photo:170px;
    --wide-hero:700px; --wide-hero-stage:400px; --wide-hero-large:900px; --wide-hero-large-stage:540px;
    --wide-examples-photo:380px;
    --wide-machine-columns:4; --wide-machine-media:250px; --wide-panel-photo:300px;
    --wide-catalog-card:380px; --wide-catalog-photo:230px;
  }
}
/* 4K: 1920 * 1,25 = 2400 экранных px, текст 16 px выглядит как 20 px. */
@media(min-width:2560px) {
  body { zoom:var(--page-zoom); }
  /* Единицы vw и vh при увеличении тоже растут, окно просмотра фото возвращаем в размер экрана. */
  .lightbox-figure img { max-width:calc(92vw / var(--page-zoom)); max-height:calc(78vh / var(--page-zoom)); }
  .lightbox-caption { max-width:calc(92vw / var(--page-zoom)); }
  :root {
    --page-zoom:1.25;
    --content-inner:1920px;
    --wide-banner-height:640px; --wide-direction-photo:180px;
    --wide-hero-large:960px; --wide-hero-large-stage:560px;
    --wide-examples-photo:410px; --wide-machine-media:270px; --wide-catalog-card:400px;
  }
}
/* 3840 px: 1600 * 1,5 = 2400 экранных px, текст 16 px выглядит как 24 px; раскладка как на 1600 px, чуть свободнее. */
@media(min-width:3840px) {
  :root {
    --page-zoom:1.5;
    --content-inner:1600px;
    --wide-banner-height:540px; --wide-banner-copy:780px; --wide-home-title:62px; --wide-direction-title:58px;
    --wide-direction-photo:150px;
    --wide-hero:640px; --wide-hero-stage:360px; --wide-hero-large:820px; --wide-hero-large-stage:480px;
    --wide-examples-photo:340px;
    --wide-machine-columns:3; --wide-machine-media:290px; --wide-panel-photo:280px;
    --wide-catalog-card:340px; --wide-catalog-photo:210px;
  }
}

/* 22.11.2026 (review52): подвал - одна общая светлая плашка на оба логотипа, одна высота и одна центральная линия.
   Где колонка уже плашки, логотип СЕЗАМ сжимается (телефон) или уходит второй строкой внутри той же плашки. */
.site-footer .footer-logos { display:inline-flex; align-items:center; flex-wrap:wrap; gap:14px 20px; box-sizing:border-box; max-width:100%; padding:14px; background:#fff; vertical-align:top; }
.site-footer .footer-logos .brand { display:block; flex:none; }
.site-footer .footer-logos .brand-plate,.site-footer .footer-logos .brand-plate-sezam { display:block; height:auto; margin:0; padding:0; background:transparent; }
.site-footer .footer-logos .brand-plate img { display:block; height:52px; width:auto; }
.site-footer .footer-logos .brand-plate-sezam { flex:1 1 120px; max-width:132px; min-width:0; }
.site-footer .footer-logos .brand-plate-sezam img { display:block; width:100%; height:auto; }
@media(min-width:1280px) { .footer-main { grid-template-columns:minmax(392px,1.05fr) minmax(0,1.4fr) minmax(0,.95fr) minmax(0,.85fr); } }

/* review53: подробности карточек каталога (Машины и устройства, Инструменты) - тот же образец, что у групп машин: панель под рядом, фото в просмотре. */
.catalog-card .machine-card-toggle { margin:0 0 10px; }
.catalog-card .machine-card-more { margin:0 0 10px; }
.catalog-grid>.catalog-card.is-open { border-color:var(--blue); box-shadow:0 0 0 1px var(--blue); }
.catalog-card.is-open .machine-card-toggle { background:var(--navy); border-color:var(--navy); color:#fff; }
.catalog-card-body { display:flex; flex-wrap:wrap; gap:12px; align-items:flex-start; }
.catalog-card-body>* { margin:0; }
.catalog-card-body>:not(figure) { flex:1 1 100%; min-width:0; }
.catalog-card-body figure { flex:0 0 auto; width:auto; max-width:100%; }
.catalog-card-body figure a { display:flex; align-items:center; justify-content:center; cursor:zoom-in; }
.catalog-card-body figure img { display:block; width:auto; max-width:100%; height:auto; max-height:220px; }
.catalog-card-body p { margin:0; color:var(--ink); }
.catalog-table-scroll { max-width:100%; overflow-x:auto; border:1px solid var(--line); background:#fff; -webkit-overflow-scrolling:touch; }
.catalog-table-scroll:focus-visible { outline:var(--focus-ring); outline-offset:2px; }
.catalog-table-scroll table { width:100%; min-width:640px; border-collapse:collapse; margin:0; }
.catalog-table-scroll th,.catalog-table-scroll td { padding:10px 14px; border:1px solid var(--line); color:var(--ink); font-size:16px; line-height:1.4; text-align:left; vertical-align:top; }
.catalog-table-scroll th { min-width:130px; background:var(--soft); color:var(--navy); font-weight:700; }
.catalog-table-scroll td { white-space:nowrap; }
