/*
Theme Name: Индиаг
Theme URI: https://in-diag.ru/
Author: Индиаг
Description: Фирменная тема сайта ООО «Индиаг»: главная, услуги, каталог продукции, проекты, новости, контакты с формой заявки.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: indiag
*/

/* ---------- tokens ---------- */
:root {
  --bg: #f2f6f3;
  --bg-white: #fff;
  --bg-soft: #e6ece8;
  --ink: #111820;
  --ink-2: #3d4753;
  --ink-3: #4a5461;
  --ink-4: #5b6572;
  --muted: #8a949e;
  --line: #cdd3da;
  --line-soft: #e6ece8;
  --dark: #0f2a22;
  --dark-2: #143329;
  --dark-3: #0a1f19;
  --dark-line: #24493b;
  --dark-text: #eef2f6;
  --dark-muted: #c2d3ca;
  --dark-muted-2: #93aa9f;
  --accent: oklch(0.58 0.15 155);
  --accent-dark: oklch(0.52 0.15 155);
  --accent-light: oklch(0.8 0.13 150);
  --font: 'Onest', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --container: 1400px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(56px, 9vw, 120px);
  --header-h: 92px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { font: inherit; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
p, span, b, a, li, figcaption, td, th { overflow-wrap: break-word; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark); }
.section--dark .eyebrow { color: var(--accent-light); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 28px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--dark { background: var(--dark); color: #fff; border-color: var(--dark); font-weight: 500; }
.btn--dark:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; font-weight: 500; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { border-color: rgba(255, 255, 255, 0.45); color: var(--dark-text); background: rgba(15, 42, 34, 0.4); font-weight: 500; }
.btn--light:hover { background: #fff; color: var(--dark); border-color: #fff; }
.btn--upper { text-transform: uppercase; letter-spacing: 0.02em; font-weight: 700; font-size: 16px; }
.btn--sm { padding: 14px 24px; }
.link-more { font-weight: 500; color: var(--accent-dark); }
.link-more:hover { color: var(--accent); }
.link-underline { font-weight: 500; border-bottom: 1px solid currentColor; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--dark); color: var(--dark-text); box-shadow: none; transition: background 0.35s ease, box-shadow 0.35s ease; }
.site-header--overlay { background: transparent; }
.site-header--overlay.is-scrolled, .site-header--overlay.is-open { background: rgba(15, 42, 34, 0.97); }
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: 40px; }
.brand { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; color: var(--dark-text); line-height: 1.1; }
.brand__logo { display: block; height: 32px; width: auto; }
.brand__tagline { font-size: 15px; color: var(--dark-muted-2); letter-spacing: 0.02em; white-space: nowrap; }
.nav { display: flex; flex: 1; min-width: 0; justify-content: center; height: var(--header-h); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav > ul > li { position: relative; display: flex; }
.nav > ul > li > a { display: flex; align-items: center; padding: 0 14px; font-size: clamp(17px, 1.35vw, 20px); color: var(--dark-text); border-bottom: 3px solid transparent; white-space: nowrap; transition: color 0.2s ease; }
.nav > ul > li > a:hover, .nav > ul > li.current-menu-item > a, .nav > ul > li.current-menu-ancestor > a { border-bottom-color: var(--accent); }
.nav > ul > li > a:hover { color: var(--accent-light); }
.nav .sub-menu { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); min-width: 280px; background: var(--dark-2); border-top: 1px solid #1e4034; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); padding: 20px 0; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity 0.2s ease; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
.nav .sub-menu a { display: block; padding: 10px 28px; font-size: 18px; color: var(--dark-text); white-space: nowrap; }
.nav .sub-menu a:hover { color: var(--accent-light); }
.nav .sub-menu .sub-menu { display: none; }
.nav .menu-item--mega > .sub-menu { display: grid; grid-template-columns: repeat(2, minmax(240px, 1fr)); gap: 4px 24px; padding: 24px 12px; min-width: 620px; }
.nav .menu-item--mega > .sub-menu .description { display: block; font-size: 15px; color: #8593a4; line-height: 1.4; }
.nav .menu-item--mega > .sub-menu a { white-space: normal; font-weight: 600; font-size: 18px; padding: 10px 16px; }
.header-phone { font-weight: 600; font-size: 21px; white-space: nowrap; flex-shrink: 0; color: var(--dark-text); }
.burger, .header-call { display: none; }

/* mobile header */
@media (max-width: 1320px) {
  :root { --header-h: 64px; }
  .site-header__inner { gap: 12px; justify-content: space-between; }
  .brand__logo { height: 24px; }
  .brand__tagline { font-size: 11px; }
  .nav, .header-phone { display: none; }
  .header-call { display: flex; align-items: center; height: 44px; padding: 0 12px; font-weight: 600; font-size: 15px; color: var(--dark-text); border: 1px solid rgba(255, 255, 255, 0.3); white-space: nowrap; }
  .header-right { display: flex; align-items: center; gap: 8px; }
  .burger { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; cursor: pointer; }
  .burger span { width: 20px; height: 2px; background: var(--dark-text); transition: transform 0.25s ease, opacity 0.25s ease; }
  .is-open .burger { background: rgba(255, 255, 255, 0.12); }
  .is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .is-open .burger span:nth-child(2) { opacity: 0; }
  .is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--dark); border-top: 1px solid #1e4034; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); max-height: calc(100vh - 65px); overflow-y: auto; padding: 8px 16px 24px; }
  .is-open .mobile-menu { display: block; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 0; }
  .mobile-menu > ul > li > a { display: block; padding: 16px 0; border-bottom: 1px solid #1e4034; font-size: 20px; font-weight: 500; color: var(--dark-text); }
  .mobile-menu li.current-menu-item > a, .mobile-menu li.current-menu-ancestor > a { color: var(--accent-light); }
  .mobile-menu .sub-menu { padding: 0 0 8px 16px; }
  .mobile-menu .sub-menu a { display: block; padding: 10px 0; font-size: 17px; color: var(--dark-muted); }
  .mobile-menu .sub-menu .sub-menu { display: none; }
  .mobile-menu__phone { display: block; padding: 20px 0 6px; font-size: 24px; font-weight: 600; color: var(--dark-text); }
  .mobile-menu__mail { display: block; font-size: 17px; color: var(--accent-light); }
}
@media (min-width: 1321px) { .mobile-menu { display: none !important; } }
.site-header--overlay + .site-main { margin-top: calc(-1 * var(--header-h)); }

/* ---------- sections ---------- */
.section { padding: var(--section-y) 0; }
.section--white { background: var(--bg-white); }
.section--dark { background: var(--dark); color: var(--dark-text); }
.section--tight { padding-bottom: 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 4.5vw, 56px); }
.section-head__text { display: flex; flex-direction: column; gap: 20px; max-width: 820px; }
.section-title { font-size: clamp(27px, 3.3vw, 52px); line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
.section-lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--ink-2); }
.section--dark .section-lead { color: var(--dark-muted); }

/* page hero (inner pages) */
.page-hero { background: var(--dark); color: var(--dark-text); }
.page-hero .container { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(44px, 7vw, 88px); display: flex; flex-direction: column; gap: 28px; }
.page-hero--compact .container { padding-bottom: clamp(40px, 6.5vw, 80px); gap: 24px; }
.crumbs { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-family: var(--mono); font-size: 15px; color: var(--dark-muted-2); }
.crumbs span:last-child { color: var(--dark-muted); }
.crumbs a:hover { color: #fff; }
.page-title { font-size: clamp(32px, 4.9vw, 78px); line-height: 1.04; font-weight: 700; letter-spacing: -0.02em; }
.page-title--md { font-size: clamp(28px, 4.2vw, 66px); line-height: 1.06; text-wrap: balance; max-width: 1100px; }
.page-title--sm { font-size: clamp(26px, 3.6vw, 56px); line-height: 1.08; text-wrap: balance; max-width: 1100px; }
.page-lead { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.5; color: var(--dark-muted); max-width: 980px; }
.page-meta { font-family: var(--mono); font-size: 15px; color: var(--dark-muted-2); }

/* ---------- home hero ---------- */
.hero { position: relative; min-height: 600px; height: calc(100vh - 0px); max-height: 1080px; background: var(--dark); color: var(--dark-text); overflow: hidden; }
@media (min-width: 700px) { .hero { min-height: 720px; } }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(15, 42, 34, 0.96) 0%, rgba(15, 42, 34, 0.75) 35%, rgba(15, 42, 34, 0.1) 65%, rgba(15, 42, 34, 0.7) 100%); }
.hero__inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-top: clamp(104px, 14vw, 130px); padding-bottom: clamp(24px, 4vw, 48px); }
.hero__content { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 32px; max-width: 900px; }
.hero__counter { display: flex; gap: 16px; align-items: center; font-family: var(--mono); font-size: 14px; color: var(--dark-muted); }
.hero__counter i { width: 40px; height: 1px; background: var(--dark-muted); flex-shrink: 0; }
.hero__counter b { font-weight: 400; white-space: nowrap; flex-shrink: 0; }
.hero__title { font-weight: 400; font-size: clamp(40px, 4.9vw, 78px); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.hero__title b { font-weight: 700; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 28px; }
.hero__tags { display: flex; gap: 10px 32px; flex-wrap: wrap; font-size: 17px; color: var(--dark-muted); }
.hero__controls { display: flex; align-items: center; gap: 28px; }
.hero__dots { display: flex; gap: 10px; }
.hero__dots button { width: 40px; height: 3px; border: 0; padding: 0; cursor: pointer; background: rgba(255, 255, 255, 0.3); }
.hero__dots button.is-active { background: var(--accent); }
.hero__down { width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, 0.35); display: grid; place-items: center; font-size: 20px; color: var(--dark-text); }

/* ---------- cards & carousels ---------- */
.carousel { overflow: hidden; margin: -24px calc(-1 * var(--gutter)); padding: 24px var(--gutter); touch-action: pan-y; }
.carousel__track { display: flex; gap: 24px; transition: transform 0.7s cubic-bezier(0.65, 0, 0.25, 1); }
.carousel__item { flex: 0 0 var(--card-w, calc((100% - 48px) / 3)); min-width: 0; opacity: 0.25; transition: opacity 0.6s ease; }
.carousel__item.is-visible { opacity: 1; }
.carousel__nav { display: flex; align-items: center; gap: 24px; margin-top: clamp(28px, 4.5vw, 56px); }
.carousel__nav button { width: 52px; height: 52px; border: 1px solid var(--ink); background: none; cursor: pointer; font-size: 20px; flex-shrink: 0; color: var(--ink); }
.carousel__nav button:hover { background: var(--ink); color: #fff; }
.carousel__bar { flex: 1; height: 2px; background: #e1e5ea; position: relative; }
.carousel__bar i { position: absolute; top: 0; bottom: 0; background: var(--accent); transition: left 0.7s cubic-bezier(0.65, 0, 0.25, 1); }
.carousel__counter { font-family: var(--mono); font-size: 16px; color: var(--ink-3); flex-shrink: 0; }
.card { background: var(--bg); display: flex; flex-direction: column; height: 100%; transition: transform 0.35s ease, box-shadow 0.35s ease; }
.card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(15, 42, 34, 0.14); }
.section--white .card { background: var(--bg); }
.card--white { background: var(--bg-white); }
.card__media { position: relative; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__media--contain img { object-fit: contain; padding: 6%; }
.card__arrow { position: absolute; right: 0; bottom: 0; width: 52px; height: 52px; background: var(--dark); color: #fff; display: grid; place-items: center; font-size: 20px; }
.card__body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__title { font-weight: 600; font-size: 22px; line-height: 1.3; }
.card__text { font-size: 16px; color: var(--ink-3); line-height: 1.55; }
.card__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.card__photos div { position: relative; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.card__photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card--project { padding: 28px; gap: 18px; }
.card--project .card__num { font-family: var(--mono); font-size: 15px; color: var(--accent-dark); }
.card--project .card__title { font-size: 22px; line-height: 1.25; }
.card--project .card__text { flex: 1; }

/* grids */
.grid-auto { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-2 { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: center; }
.grid-2--start { align-items: start; }

/* ---------- promo (Vibropotok) ---------- */
.promo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 64px); align-items: center; }
.promo__text { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.promo__title { font-size: clamp(32px, 3.9vw, 62px); line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; }
.promo__lead { font-size: 22px; line-height: 1.45; color: var(--dark-muted); }
.promo__stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--dark-line); }
.promo__stats div { padding: 22px 0; border-bottom: 1px solid var(--dark-line); display: flex; flex-direction: column; gap: 4px; }
.promo__stats div + div { padding-left: 24px; border-left: 1px solid var(--dark-line); }
.promo__stats b { font-size: 32px; }
.promo__stats span { color: var(--dark-muted-2); font-size: 16px; }
.promo__list { display: flex; flex-direction: column; gap: 12px; font-size: 18px; }
.promo__list div { display: flex; gap: 14px; }
.promo__list div::before { content: '—'; color: var(--accent-light); }
.promo__media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; min-width: 0; }
.promo__media div { position: relative; aspect-ratio: 4 / 3; background: #fff; overflow: hidden; }
.promo__media div:first-child { grid-column: 1 / 3; aspect-ratio: 16 / 10; }
.promo__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.promo__media div:last-child img { object-fit: cover; }

/* ---------- detail layout (service / project / news single) ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(32px, 5vw, 64px); align-items: start; padding-top: clamp(44px, 7vw, 88px); }
.detail-grid__main { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); min-width: 0; }
.aside { position: sticky; top: 124px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.aside-card { background: var(--bg-white); padding: 28px clamp(20px, 4vw, 32px); display: flex; flex-direction: column; gap: 4px; }
.aside-card__label { font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em; color: var(--ink-4); padding-bottom: 10px; }
.aside-card a { padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: 18px; line-height: 1.35; }
.aside-card a:hover, .aside-card a.is-active { color: var(--accent-dark); }
.aside-card a.is-active { font-weight: 600; }
.aside-card .link-more { padding-top: 14px; font-size: 17px; }
.aside-cta { background: var(--dark); color: var(--dark-text); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.aside-cta b { font-size: 24px; line-height: 1.25; }
.aside-cta span { font-size: 17px; line-height: 1.55; color: var(--dark-muted); }
.aside-cta .aside-cta__phone { font-size: 26px; font-weight: 600; color: var(--dark-text); }
.aside-cta .btn { width: 100%; }
@media (max-width: 1000px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } .aside { position: static; } }

/* ---------- prose (editor content) ---------- */
.prose { display: flex; flex-direction: column; gap: 20px; font-size: 19px; line-height: 1.65; color: var(--ink-2); min-width: 0; }
.prose h2 { font-size: clamp(24px, 2.5vw, 40px); line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); margin-top: 24px; text-wrap: balance; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: clamp(21px, 1.9vw, 26px); line-height: 1.25; font-weight: 600; color: var(--ink); margin-top: 8px; }
.prose ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.prose ul li { position: relative; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line); }
.prose ul li::before { content: '—'; position: absolute; left: 0; top: 14px; color: var(--accent); font-weight: 700; }
.prose ul li b { color: var(--ink); }
.prose ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 10px; }
.prose figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.prose figure img { width: 100%; height: auto; background: #fff; }
.prose figcaption { font-size: 16px; color: var(--ink-4); }
.prose .wp-block-image img, .prose img { max-width: 100%; height: auto; }
.prose table { width: 100%; border-collapse: collapse; background: var(--bg-white); font-size: 18px; }
.prose th, .prose td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose th { color: var(--ink-4); font-weight: 400; width: 40%; }
.prose td { font-weight: 500; }
.prose a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose .wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.prose .wp-block-column { background: var(--bg-white); padding: 24px; }
.prose .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.prose .cards > div { background: var(--bg-white); padding: 24px; display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.prose .cards b { font-size: 21px; line-height: 1.3; color: var(--ink); }
.prose .cards img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.prose .cards ul { border: 0; }
.prose .cards ul li { padding: 6px 0 6px 26px; border: 0; }
.prose .cards ul li::before { top: 6px; }
.prose .cards ul li::before { content: '✓'; }
.prose .note { border: 1px dashed #c98a1a; background: #fdf6e7; padding: 18px 22px; font-size: 16px; line-height: 1.55; color: #6b4a0c; }
.prose .img-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.prose .img-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.section--dark .prose { color: var(--dark-muted); }
.section--dark .prose h2, .section--dark .prose h3 { color: var(--dark-text); }

/* ---------- services archive ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 48px); }
.filters a { padding: 12px 22px; border: 1px solid #b9c4bd; font-size: 17px; font-weight: 500; white-space: nowrap; transition: background 0.25s ease, color 0.25s ease; }
.filters a:hover { border-color: var(--dark); }
.filters a.is-active { background: var(--dark); color: #fff; border-color: var(--dark); }
.filters small { font-family: var(--mono); font-size: 14px; opacity: 0.6; margin-left: 6px; }
.service-list { display: flex; flex-direction: column; gap: 24px; }
.service-row { background: var(--bg-white); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); transition: box-shadow 0.35s ease; }
.service-row:hover { box-shadow: 0 24px 48px rgba(15, 42, 34, 0.12); }
.service-row__body { padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.service-row__title { font-size: clamp(26px, 2.3vw, 36px); line-height: 1.18; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.service-row__text { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.service-row__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
.service-row__media { display: grid; gap: 4px; background: var(--bg-soft); min-width: 0; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.service-row__media div { position: relative; min-height: 320px; }
.service-row__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- catalog (gtlab-style) ---------- */
.catalog-page { background: var(--bg-white); }
.crumbs-bar { background: var(--bg-soft); }
.crumbs-bar .container { padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: clamp(16px, 1.5vw, 21px); line-height: 1.35; color: var(--ink-2); }
.crumbs-bar i { font-style: normal; color: var(--muted); }
.crumbs-bar span { color: var(--ink); }
.crumbs-bar a:hover { color: var(--accent-dark); }
.catalog { padding: clamp(32px, 4.5vw, 56px) 0 clamp(56px, 8vw, 110px); }
.catalog__title { font-size: clamp(30px, 3.1vw, 44px); line-height: 1.15; font-weight: 400; letter-spacing: -0.01em; margin-bottom: clamp(20px, 2.5vw, 32px); }
.cat-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 32px; align-items: start; }
.cat-main { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.cat-intro { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 860px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 215px), 1fr)); gap: 36px 28px; }
.pcard { display: flex; flex-direction: column; min-width: 0; text-align: center; }
.pcard__media { display: block; position: relative; aspect-ratio: 1 / 1; background: #f1f4f2; }
.pcard__media img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.pcard__body { display: flex; flex-direction: column; flex: 1; box-shadow: 0 2px 6px rgba(15, 42, 34, 0.18); background: #fff; }
.pcard__title { display: block; flex: 1; padding: 12px 10px 14px; font-size: 17px; line-height: 1.4; min-height: 76px; }
.pcard__title:hover { color: var(--accent-dark); }
.pcard__btn { display: block; background: var(--dark); color: #fff; padding: 11px 12px; font-size: 16px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.pcard__btn:hover { background: var(--accent-dark); }
.pager { display: flex; justify-content: center; }
.pager .page-numbers { display: flex; border: 1px solid #c9d1cc; background: #fff; list-style: none; margin: 0; padding: 0; }
.pager .page-numbers li a, .pager .page-numbers li span { min-width: 42px; height: 36px; padding: 0 10px; display: grid; place-items: center; font-size: 17px; border-right: 1px solid #c9d1cc; color: var(--ink); }
.pager .page-numbers li a:hover { background: var(--bg-soft); }
.pager .page-numbers li .current { background: var(--bg-soft); }
.cat-side__head { width: 100%; display: flex; justify-content: space-between; align-items: center; background: var(--dark); color: #fff; border: 0; padding: 15px 16px; font-size: 20px; font-weight: 500; text-align: left; cursor: default; }
.cat-side__head i { display: none; font-style: normal; font-size: 15px; }
.tree { background: var(--bg-soft); padding: 6px 16px 10px; }
.tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul ul { padding-left: 18px; display: none; }
.tree li.is-open > ul { display: block; }
.tree li { border-top: 1px solid #cfd8d2; }
.tree > ul > li:first-child { border-top: 0; }
.tree ul ul li { border-top: 0; }
.tree__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; overflow: hidden; }
.tree ul ul .tree__row { padding: 8px 0; }
.tree__row a { flex: 1; min-width: 0; font-size: 18px; line-height: 1.3; }
.tree ul ul .tree__row a { font-size: 16px; color: var(--ink-2); }
.tree__row a:hover { color: var(--accent-dark); }
.tree li.is-active > .tree__row > a { font-weight: 700; color: var(--ink); }
.tree__toggle { border: 0; background: none; cursor: pointer; font-size: 13px; padding: 4px 2px; color: var(--ink); transition: transform 0.2s ease; }
.tree li.is-open > .tree__row > .tree__toggle { transform: rotate(90deg); }
@media (max-width: 1000px) {
  .cat-layout { grid-template-columns: minmax(0, 1fr); }
  .cat-side { order: -1; }
  .cat-side__head { cursor: pointer; }
  .cat-side__head i { display: inline; }
  .cat-side .tree { display: none; }
  .cat-side.is-open .tree { display: block; }
}

/* product page */
.prod-top { display: grid; grid-template-columns: minmax(0, 665px) minmax(0, 1fr); gap: clamp(24px, 2.5vw, 32px); align-items: start; padding: clamp(24px, 3vw, 40px) 0 0; }
.prod-gallery { display: grid; grid-template-columns: minmax(0, 131px) minmax(0, 1fr); gap: clamp(12px, 2.6vw, 38px); align-items: start; min-width: 0; }
.prod-gallery--single { grid-template-columns: minmax(0, 1fr); }
.prod-thumbs { display: flex; flex-direction: column; gap: clamp(10px, 1.8vw, 26px); min-width: 0; }
.prod-thumbs button { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 2px solid transparent; background: #f1f4f2; cursor: pointer; overflow: hidden; }
.prod-thumbs button.is-active { border-color: var(--accent); }
.prod-thumbs img, .prod-main img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.prod-main { position: relative; aspect-ratio: 1 / 1; background: #f1f4f2; min-width: 0; }
.prod-info { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.prod-info h1 { font-size: clamp(26px, 2.3vw, 32px); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.prod-info .prose { font-size: 17px; line-height: 1.55; color: var(--ink); gap: 10px; }
.prod-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px 28px; padding-top: 8px; }
.prod-actions .btn { padding: 12px 16px; }
.prod-actions .btn--outline { border-width: 2px; border-color: var(--dark); color: var(--dark); }
.prod-actions .btn--outline:hover { background: var(--dark); color: #fff; }
.prod-body { padding: clamp(36px, 5vw, 72px) 0 clamp(56px, 8vw, 110px); }
.prod-body .cat-layout { gap: clamp(20px, 2vw, 28px); }
.prod-sections { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); min-width: 0; }
.spec-table { min-width: 0; }
.spec-row { display: grid; grid-template-columns: minmax(0, 13fr) minmax(0, 7fr); gap: 2px 20px; padding: 11px 20px; font-size: 16px; line-height: 1.45; }
.spec-row:nth-child(odd) { background: var(--bg-soft); }
.spec-row--head { background: var(--dark) !important; color: #fff; padding: 14px 20px; font-size: 20px; font-weight: 700; }
.prod-h2 { font-size: clamp(22px, 1.9vw, 26px); line-height: 1.25; font-weight: 700; }
.related { display: flex; flex-direction: column; gap: 28px; }
.related__group { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.related__group h3 { font-size: 19px; font-weight: 700; }
.related__grid { display: grid; grid-template-columns: repeat(var(--per, 4), minmax(0, 1fr)); gap: 20px; }
.related__pager { display: flex; align-items: center; gap: 14px; font-size: 20px; font-weight: 700; color: oklch(0.5 0.15 155); }
.related__pager button { border: 0; background: none; cursor: pointer; font-size: 26px; line-height: 1; color: inherit; padding: 0 4px; }
.side-block { display: flex; flex-direction: column; gap: 12px; }
.side-block h2 { font-size: 24px; line-height: 1.2; font-weight: 400; }
.side-block img { display: block; width: 100%; height: auto; background: var(--bg-soft); }
.docs { display: flex; flex-direction: column; gap: 14px; }
.docs a { display: flex; align-items: center; gap: 12px; font-size: 17px; line-height: 1.4; color: var(--ink-2); }
.docs a:hover { color: var(--accent-dark); }
.docs a i { flex-shrink: 0; width: 30px; height: 38px; background: var(--dark); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; display: grid; place-items: center; letter-spacing: 0.04em; }
.docs a em { font-style: normal; color: var(--muted); }
.cat-side-product { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
/* правая колонка каталога закреплена при прокрутке (на компьютере) */
@media (min-width: 1001px) {
  .cat-side, .cat-side-product { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
  .cat-side::-webkit-scrollbar, .cat-side-product::-webkit-scrollbar { width: 6px; }
  .cat-side::-webkit-scrollbar-thumb, .cat-side-product::-webkit-scrollbar-thumb { background: #c9d1cc; }
}
@media (max-width: 1000px) { .prod-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .prod-gallery { grid-template-columns: minmax(0, 1fr); }
  .prod-thumbs { flex-direction: row; order: 2; }
  .prod-thumbs button { width: 72px; flex-shrink: 0; }
  .spec-row { grid-template-columns: minmax(0, 1fr); }
  .spec-row--head span:last-child { display: none; }
  .spec-row span:last-child { font-weight: 600; }
}

/* ---------- news ---------- */
.news-card { background: var(--bg-white); display: flex; flex-direction: column; min-width: 0; color: var(--ink); transition: transform 0.35s ease, box-shadow 0.35s ease; }
.news-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(15, 42, 34, 0.14); }
.news-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; }
.news-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.news-card__date { font-family: var(--mono); font-size: 14px; color: var(--accent-dark); }
.news-card__title { font-size: 22px; line-height: 1.3; font-weight: 600; }
.news-card__text { font-size: 17px; line-height: 1.55; color: var(--ink-3); flex: 1; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.news-single__cover { position: relative; aspect-ratio: 16 / 9; background: #fff; overflow: hidden; }
.news-single__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-single__excerpt { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.55; font-weight: 500; color: var(--ink); }
.aside-card .news-link { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; font-size: 17px; line-height: 1.35; }
.aside-card .news-link small { font-family: var(--mono); font-size: 13px; color: var(--ink-4); }

/* ---------- projects ---------- */
.project-row { background: var(--bg-white); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); transition: box-shadow 0.35s ease; }
.project-row:hover { box-shadow: 0 24px 48px rgba(15, 42, 34, 0.12); }
.project-row .card__photos { gap: 4px; background: var(--bg-soft); }
.project-row__body { padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 18px; min-width: 0; }
.project-row__title { font-size: clamp(24px, 2.3vw, 34px); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }

/* ---------- about / partners / misc blocks ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px 40px; }
.feature { display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; }
.feature__num { font-size: 46px; font-weight: 300; line-height: 1; color: var(--accent); }
.feature b { font-size: 22px; line-height: 1.25; }
.feature p { font-size: 17px; line-height: 1.55; color: var(--ink-3); }
.boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.box { background: var(--bg-white); padding: 32px; display: flex; flex-direction: column; gap: 20px; min-height: 240px; transition: transform 0.35s ease, box-shadow 0.35s ease; }
.box:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(15, 42, 34, 0.14); }
.box p { font-size: 22px; line-height: 1.35; font-weight: 500; margin-top: auto; }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.logos > * { position: relative; height: 130px; border: 1px solid #e1e5ea; background: #fff; display: grid; place-items: center; padding: 16px; color: var(--muted); font-size: 14px; text-align: center; }
.logos a:hover { border-color: var(--accent); }
.logos img { max-height: 90px; width: auto; object-fit: contain; }
.cta-box { background: var(--dark); color: var(--dark-text); padding: clamp(24px, 4.5vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 40px; align-items: center; }
.cta-box h2 { font-size: clamp(25px, 2.9vw, 44px); line-height: 1.15; font-weight: 600; }
.cta-box p { font-size: 18px; color: var(--dark-muted); line-height: 1.6; margin-top: 16px; }
.cta-box__contacts { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-box__phone { font-size: 32px; font-weight: 600; color: var(--dark-text); }
.cta-box__mail { font-size: 20px; color: var(--accent-light); }
.cta-box__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- contacts ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; align-items: stretch; }
.contact-card { background: var(--bg-white); padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.contact-card h2 { font-size: clamp(30px, 2.6vw, 40px); line-height: 1.15; font-weight: 600; }
.contact-rows { display: flex; flex-direction: column; border-top: 1px solid #dde2e8; }
.contact-rows div { padding: 24px 0; border-bottom: 1px solid #dde2e8; display: flex; flex-direction: column; gap: 8px; }
.contact-rows small { font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-4); }
.contact-rows a, .contact-rows span { font-size: 22px; line-height: 1.45; }
.contact-rows .contact-rows__phone { font-size: clamp(28px, 2.4vw, 36px); font-weight: 600; }
.contact-rows .contact-rows__mail { font-size: 24px; font-weight: 500; color: var(--accent-dark); }
.contact-card__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.map-box { position: relative; min-height: 520px; background: var(--bg-soft); min-width: 0; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.request { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px 64px; align-items: start; }
.request__text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark-3); color: #a7b2bf; font-size: 16px; }
.site-footer .container { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 40px; display: flex; flex-direction: column; gap: clamp(24px, 4vw, 48px); }
.site-footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid #1a3a2f; }
.site-footer__brand { display: flex; flex-direction: column; gap: 12px; }
.site-footer__brand img { height: 26px; width: auto; margin-bottom: 6px; }
.site-footer__phone { color: var(--dark-text); font-size: 26px; font-weight: 600; }
.site-footer__brand span { line-height: 1.6; max-width: 380px; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px 28px; flex-wrap: wrap; color: #d6dde5; }
.site-footer__nav a:hover { color: var(--accent-light); }
.site-footer__nav .sub-menu { display: none; }
.site-footer__tags { font-size: 15px; line-height: 1.7; color: #7d8998; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; font-size: 15px; color: #7d8998; }
.site-footer__bottom div { display: flex; gap: 10px 28px; flex-wrap: wrap; }
.site-footer__bottom a { color: #a7b2bf; }
.site-footer__bottom a:hover { color: var(--accent-light); }
.site-footer__bottom a[data-cookie-settings] { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- legal ---------- */
.legal-note { border: 1px dashed #c98a1a; background: #fdf6e7; padding: 20px 24px; font-size: 17px; line-height: 1.55; color: #6b4a0c; }

@media (max-width: 600px) {
  .prose table, .prose tbody, .prose tr { display: block; width: 100%; }
  .prose th, .prose td { display: block; width: 100%; padding: 6px 16px; border: 0; }
  .prose th { padding-top: 14px; }
  .prose td { padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
}
.prose ul li, .prose ol li { min-width: 0; }
.prose ul li > * { min-width: 0; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(32px, 5vw, 64px); align-items: start; padding-top: clamp(44px, 7vw, 88px); }
.about-aside { position: sticky; top: 124px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.about-photo { margin: 0; background: var(--bg-white); }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 1000px) { .about-grid { grid-template-columns: minmax(0, 1fr); } .about-aside { position: static; } .about-photo { max-width: 420px; } }

/* ---------- carousel drag ---------- */
.carousel { cursor: grab; }
.carousel.is-grabbing { cursor: grabbing; }
.carousel.is-grabbing .carousel__track { transition: none; }
.carousel img { -webkit-user-drag: none; user-select: none; }

/* ---------- Max ---------- */
.max-float { position: fixed; right: 24px; bottom: 24px; z-index: 900; display: block; width: 60px; height: 60px; border-radius: 50%; box-shadow: 0 10px 28px rgba(60, 40, 180, 0.35); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.max-float img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.max-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 34px rgba(60, 40, 180, 0.45); }
.ck-banner.ck-open ~ .max-float { bottom: 110px; }
@media (max-width: 700px) { .max-float { right: 14px; bottom: 14px; width: 52px; height: 52px; } }
.max-popup { position: fixed; inset: 0; z-index: 1100; background: rgba(10, 31, 25, 0.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.max-popup[hidden] { display: none; }
.max-popup__box { position: relative; width: min(100%, 760px); background: var(--bg-white); display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); padding: clamp(24px, 4vw, 44px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); }
.max-popup__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink-4); }
.max-popup__close:hover { color: var(--ink); }
.max-popup__qr { display: grid; place-items: center; background: var(--bg); padding: 16px; min-height: 260px; }
.max-popup__qr img { width: 100%; max-width: 228px; height: auto; }
.max-popup__qr-empty { width: 200px; height: 200px; border: 2px dashed #b9c4bd; display: grid; place-items: center; text-align: center; color: var(--ink-4); font-weight: 600; line-height: 1.3; }
.max-popup__text { display: flex; flex-direction: column; gap: 16px; align-self: center; min-width: 0; }
.max-popup__text b { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; }
.max-popup__text p { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.max-btn { align-self: flex-start; }
@media (max-width: 600px) { .max-popup__box { grid-template-columns: minmax(0, 1fr); } .max-popup__qr { min-height: 0; } .max-btn { align-self: stretch; } }

/* ---------- 404 ---------- */
.not-found { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
