/* ==========================================================================
   ASSETECH — стили сайта
   Цвета --accent и --dark задаются в админке (Настройки сайта → Бренд)
   ========================================================================== */

:root {
  --accent: #000F5A;
  --accent-600: color-mix(in srgb, var(--accent) 86%, #000);
  --accent-50: color-mix(in srgb, var(--accent) 8%, #fff);
  --brand: var(--accent);                                       /* фирменный цвет всегда (кнопки, плашки) */
  --accent-light: color-mix(in oklch, var(--accent), #fff 58%); /* акцент на тёмном фоне */
  --dark: #111316;
  --dark-2: color-mix(in srgb, var(--dark) 88%, #fff);
  --dark-3: color-mix(in srgb, var(--dark) 76%, #fff);
  --heading: #15181c;
  --text: #555b63;
  --muted: #6b7079;
  --line: #e5e7ea;
  --gray: #f4f5f7;
  --white: #fff;

  --font-head: "Exo 2", "Segoe UI", Arial, sans-serif;
  --font-body: "Roboto", "Segoe UI", Arial, sans-serif;

  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 10px 30px rgba(17, 19, 22, .08);
  --shadow-lg: 0 20px 50px rgba(17, 19, 22, .16);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --container: 1240px;
  --header-h: 88px;
  --gutter: 16px;
}

/* На тёмных фонах тёмный фирменный цвет не виден — там акцентом служит его светлый оттенок */
.topbar, .hero, .page-header, .stats--dark, .site-footer, .aside-cta, .lead-section__info,
.cta, .testimonials__panel, .partners, .contact-card--accent, .nav-open .nav-overlay { --accent: var(--accent-light); }

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font: 400 16px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.accent { color: var(--accent); }
.icon { flex-shrink: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--accent); color: #fff; padding: 8px 16px; }
.skip-link:focus { left: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 900px; }
@media (min-width: 768px) { :root { --gutter: 24px; } }

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--gray { background: var(--gray); }
@media (min-width: 992px) { .section { padding: 104px 0; } .section--tight { padding: 64px 0; } }

.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } .grid { gap: 30px; } }
@media (min-width: 992px) and (max-width: 1199px) { .grid--4 { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------------- Typography helpers */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; margin-bottom: 14px;
  background: var(--accent-50); color: var(--accent);
  font: italic 600 14px/1.4 var(--font-head); border-radius: var(--radius);
}
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--light .section-title, .section-head--light .section-text { color: #fff; }
.section-head--light .tag { background: rgba(255,255,255,.14); color: #fff; }
.section-title { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.01em; margin-bottom: 14px; }
.section-title--sm { font-size: clamp(22px, 2.4vw, 28px); }
.section-text { font-size: 17px; margin: 0; }
.section-actions { margin-top: 44px; text-align: center; }
.section-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 44px; }
.section-bar .section-head { margin-bottom: 0; }
.lead-text { font-size: 18px; color: var(--heading); }

.rich { font-size: 16.5px; }
.rich h2 { font-size: 30px; margin-top: 1.4em; }
.rich h3 { font-size: 23px; margin-top: 1.3em; }
.rich a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.rich ul, .rich ol { margin: 0 0 1.2em; padding-left: 0; }
.rich ul li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.rich ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }
.rich ol { counter-reset: n; }
.rich ol li { counter-increment: n; position: relative; padding-left: 34px; margin-bottom: 8px; }
.rich ol li::before { content: counter(n); position: absolute; left: 0; top: .15em; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 13px/24px var(--font-head); text-align: center; }
.rich blockquote { margin: 1.5em 0; padding: 20px 24px; background: var(--gray); border-left: 4px solid var(--accent); font-style: italic; color: var(--heading); }
.rich img { border-radius: var(--radius-lg); margin: 1.2em 0; }
.rich table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.rich td, .rich th { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }

.checklist { display: grid; gap: 12px; margin: 24px 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--heading); }
.checklist .icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--accent); color: #fff; stroke-width: 3; margin-top: 1px; }
.checklist--light li { color: #fff; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  --bg: var(--brand); --fg: #fff; --bd: var(--brand);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 28px; overflow: hidden; isolation: isolate;
  background: var(--bg); color: var(--fg); border: 2px solid var(--bd); border-radius: var(--radius);
  font: 600 15px/1.2 var(--font-head); letter-spacing: .02em; text-align: center;
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .2s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--dark); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.btn:hover { color: #fff; border-color: var(--dark); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:active { transform: translateY(1px); }
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--lg { min-height: 56px; padding: 14px 34px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--ghost { --bg: transparent; --bd: rgba(255,255,255,.6); }
.btn--ghost::before { background: #fff; }
.btn--ghost:hover { color: var(--dark); border-color: #fff; }
.btn--outline { --bg: transparent; --fg: var(--heading); --bd: var(--line); }
.btn--light { --bg: #fff; --fg: var(--brand); --bd: #fff; }
.btn--light::before { background: var(--dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius); background: transparent; color: inherit; transition: background .2s, color .2s; }
.icon-btn--accent { background: var(--accent-50); color: var(--accent); }
.icon-btn--accent:hover { background: var(--accent); color: #fff; }
.square-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border: 0; border-radius: var(--radius); background: var(--gray); color: var(--heading); transition: background .25s, color .25s, transform .25s; }
.square-btn:hover { background: var(--accent); color: #fff; }
.square-btn--glass { background: rgba(17,19,22,.45); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }

/* ---------------------------------------------------------------- Topbar */
.topbar { background: var(--dark); color: rgba(255,255,255,.72); font-size: 13.5px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; }
.topbar__info, .topbar__side { display: flex; align-items: center; gap: 24px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 7px; }
.topbar .icon { color: var(--accent); }
.topbar a:hover { color: #fff; }
.topbar__social { gap: 4px !important; }
.topbar__social a { width: 30px; height: 30px; justify-content: center; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); }
.topbar__social a .icon { color: inherit; }
.topbar__social a:hover { background: var(--accent); border-color: var(--accent); }
.lang-switch { display: inline-flex; gap: 2px; }
.lang-switch a { padding: 3px 8px; border-radius: var(--radius); font-weight: 700; font-size: 12.5px; }
.lang-switch a.is-active { background: var(--brand); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.lang-switch--dark a { color: var(--heading); border: 1px solid var(--line); }
@media (max-width: 991px) { .topbar__info span:nth-child(2), .topbar__side > a { display: none; } }
@media (max-width: 639px) { .topbar__info { display: none; } .topbar__inner { justify-content: flex-end; } }

/* ---------------------------------------------------------------- Header */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; transition: box-shadow .3s, transform .35s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; color: var(--heading); }
.logo img { height: 44px; width: auto; }
.logo-text { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 40px; height: 40px; }
.logo-word { font: 800 25px/1 var(--font-head); letter-spacing: .02em; }
.logo--light { color: #fff; }
/* Тёмный логотип на тёмном фоне (если отдельный светлый не загружен): чёрное → белое, цвета сохраняются */
.logo-img--on-dark { filter: invert(1) hue-rotate(180deg) saturate(1.3); }

.main-nav { margin: 0 auto; }
.main-nav__list { display: flex; align-items: center; gap: 4px; }
.main-nav__item { position: relative; }
.main-nav__item > a {
  position: relative; display: flex; align-items: center; gap: 4px;
  padding: 30px 13px; font: 600 15.5px/1 var(--font-head); color: var(--heading); white-space: nowrap;
}
.main-nav__item > a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 22px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.main-nav__item:hover > a::after, .main-nav__item.is-active > a::after { transform: scaleX(1); transform-origin: left; }
.main-nav__item:hover > a, .main-nav__item.is-active > a { color: var(--accent); }
.main-nav__item .caret { transition: transform .25s; }
.main-nav__item:hover .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; left: 0; top: 100%; min-width: 280px; padding: 14px;
  background: #fff; border-top: 3px solid var(--accent); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s var(--ease);
}
.main-nav__item:hover .dropdown, .main-nav__item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 10px 14px; border-radius: var(--radius); font-size: 15px; color: var(--heading); transition: padding .25s, color .2s, background .2s; }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--gray); color: var(--accent); padding-left: 22px; }
.dropdown-toggle, .main-nav__head, .main-nav__foot { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.header-phone { display: flex; align-items: center; gap: 12px; }
.header-phone__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent-50); color: var(--accent); transition: .3s; }
.header-phone:hover .header-phone__icon { background: var(--accent); color: #fff; animation: ring .6s; }
.header-phone small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.header-phone b { display: block; font: 700 17px/1.3 var(--font-head); color: var(--heading); white-space: nowrap; }
.burger { display: none; color: var(--heading); }
.nav-overlay { display: none; }

@keyframes ring { 0%,100% { transform: rotate(0); } 20%,60% { transform: rotate(-14deg); } 40%,80% { transform: rotate(14deg); } }

@media (max-width: 1279px) {
  .header-phone { display: none; }
}
@media (max-width: 1099px) {
  :root { --header-h: 72px; }
  .burger { display: inline-grid; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: 0 auto 0 0; z-index: 210; width: min(360px, 88vw); margin: 0;
    display: flex; flex-direction: column; background: #fff; overflow-y: auto;
    transform: translateX(-100%); transition: transform .4s var(--ease);
  }
  .main-nav.is-open { transform: none; box-shadow: var(--shadow-lg); }
  .main-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }
  .main-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .main-nav__item { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; }
  .main-nav__item > a { flex: 1; padding: 16px 20px; }
  .main-nav__item > a::after, .main-nav__item .caret { display: none; }
  .dropdown-toggle { display: grid; place-items: center; width: 54px; border: 0; background: none; color: var(--heading); transition: transform .25s; }
  .main-nav__item.is-expanded .dropdown-toggle { transform: rotate(180deg); color: var(--accent); }
  .dropdown { position: static; width: 100%; min-width: 0; padding: 0 0 10px; box-shadow: none; border: 0; opacity: 1; visibility: visible; transform: none; display: none; }
  .main-nav__item.is-expanded .dropdown { display: block; }
  .dropdown a { padding: 8px 20px; margin: 0 12px; }
  .main-nav__foot { display: grid; gap: 16px; padding: 20px; margin-top: auto; }
  .nav-overlay { display: block; position: fixed; inset: 0; z-index: 200; background: rgba(17,19,22,.55); opacity: 0; visibility: hidden; transition: .3s; }
  .nav-overlay.is-open { opacity: 1; visibility: visible; }
  .nav-open .site-header { z-index: 250; }
}

/* ---------------------------------------------------------------- Hero slider */
.hero { position: relative; min-height: clamp(560px, 86vh, 860px); background: var(--dark); color: #fff; overflow: hidden; }
.hero__track { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 1s; }
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,11,13,.88) 0%, rgba(10,11,13,.62) 45%, rgba(10,11,13,.2) 100%); }
/* Кадр медленно наезжает: издалека → ближе (Ken Burns).
   Анимация, а не transition: тогда первый слайд, у которого is-active уже в разметке, тоже оживает. */
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1); }
.hero__slide.is-active .hero__bg { animation: hero-zoom 8s linear forwards; }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.12); } }
.hero__content { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 120px; }
.hero__content > * { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero__slide.is-active .hero__content > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__content > :nth-child(2) { transition-delay: .15s; }
.hero__slide.is-active .hero__content > :nth-child(3) { transition-delay: .3s; }
.hero__slide.is-active .hero__content > :nth-child(4) { transition-delay: .45s; }
.hero__tagline { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; font: italic 600 17px/1.3 var(--font-head); color: #fff; }
.hero__tagline::before { content: ""; width: 44px; height: 3px; background: var(--accent); }
.hero__title { max-width: 820px; margin: 0 0 22px; font: 800 clamp(36px, 6vw, 72px)/1.08 var(--font-head); color: #fff; letter-spacing: -.015em; }
.hero__text { max-width: 600px; margin: 0 0 34px; font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,.82); }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__controls { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 3; display: flex; align-items: center; justify-content: space-between; }
.hero__dots { display: flex; gap: 10px; }
.hero__dots button { width: 12px; height: 12px; padding: 0; border: 2px solid rgba(255,255,255,.6); border-radius: 50%; background: transparent; transition: .3s; }
.hero__dots button.is-active { width: 36px; border-radius: 6px; background: var(--accent); border-color: var(--accent); }
.hero__arrows { display: flex; gap: 10px; }
.hero__progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 3px; background: rgba(255,255,255,.12); }
.hero__progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; will-change: transform; }
@media (max-width: 639px) { .hero__arrows { display: none; } .hero__content { padding-bottom: 100px; } }

/* ---------------------------------------------------------------- Page header */
.page-header { position: relative; padding: 90px 0 80px; background: var(--dark); color: #fff; overflow: hidden; }
.page-header::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,11,13,.9), rgba(10,11,13,.55)); }
.page-header::after { content: ""; position: absolute; right: -60px; bottom: -60px; z-index: 1; width: 260px; height: 260px; border: 40px solid var(--accent); opacity: .18; transform: rotate(45deg); }
.page-header__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-header__inner { position: relative; z-index: 2; }
.page-header__title { max-width: 900px; margin: 0 0 12px; color: #fff; font-size: clamp(30px, 4.6vw, 54px); font-weight: 800; }
.page-header__intro { max-width: 680px; color: rgba(255,255,255,.8); font-size: 17px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 14.5px; }
.breadcrumbs li { display: inline-flex; align-items: center; color: rgba(255,255,255,.7); }
.breadcrumbs li + li::before { content: ""; width: 7px; height: 7px; margin: 0 12px; background: var(--accent); transform: rotate(45deg); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs [aria-current] { color: #fff; }
@media (min-width: 992px) { .page-header { padding: 130px 0 110px; } }

/* ---------------------------------------------------------------- Cards */
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; display: block; overflow: hidden; background: var(--gray); aspect-ratio: 4 / 3; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.08); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35)); opacity: 0; transition: opacity .4s; }
.card:hover .card__media::after { opacity: 1; }
.card__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.card__meta { font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.card__title { font-size: 22px; margin: 0 0 10px; }
.card__title--sm { font-size: 19px; }
.card__title a:hover { color: var(--accent); }
.card__text { font-size: 15px; margin-bottom: 16px; }
.card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font: 600 14.5px/1 var(--font-head); color: var(--accent); }
.card__more .icon { transition: transform .3s; }
.card:hover .card__more .icon { transform: translateX(5px); }
.card__icon { position: absolute; right: 18px; bottom: -28px; z-index: 2; display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--radius); background: var(--accent); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 40%, transparent); transition: transform .4s var(--ease), background .3s; }
.card:hover .card__icon { transform: rotateY(180deg); background: var(--dark); }
.card:hover .card__icon .icon { transform: rotateY(180deg); }
.card--category .card__body { padding-top: 30px; }
.card--category .card__media { aspect-ratio: 36 / 26; }
.card--category .card__icon { bottom: 16px; }
.card__icon--float { position: static; margin: -58px 0 18px; width: 64px; height: 64px; }
.card--service .card__body { padding-top: 0; }

.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font: 700 18px/1.2 var(--font-head); color: var(--heading); }
.price small { font-weight: 500; font-size: 13px; color: var(--muted); }
.badge { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 12px; background: var(--accent); color: #fff; font: 600 12.5px/1.3 var(--font-head); border-radius: var(--radius); text-transform: uppercase; letter-spacing: .04em; }
.badge--lg { top: 18px; left: 18px; font-size: 14px; }
.card--product .card__media { aspect-ratio: 4 / 3; }
.card--product .card__body { padding: 20px 22px 20px; }

.card--project { background: transparent; box-shadow: none; overflow: visible; }
.card--project:hover { transform: none; box-shadow: none; }
.card--project .card__media { aspect-ratio: 72 / 56; border-radius: var(--radius-lg); }
.card__panel {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: -46px 18px 0; padding: 18px 20px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.card--project:hover .card__panel { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.card--project:hover .square-btn { background: var(--accent); color: #fff; transform: rotate(90deg); }
.card--project .card__title { margin: 0; }
.card--project.is-hidden { display: none; }
.card--project.is-filtering { animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

.card--post .card__media { aspect-ratio: 3 / 2; }
.date-badge { position: absolute; left: 18px; bottom: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; background: var(--accent); color: #fff; border-radius: var(--radius); font: 600 13px/1 var(--font-head); }

/* ---------------------------------------------------------------- Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters--center { justify-content: center; margin-bottom: 44px; }
.filter { padding: 11px 22px; border: 0; border-radius: var(--radius); background: var(--gray); color: var(--heading); font: 600 14.5px/1 var(--font-head); transition: .25s; }
.filter:hover { color: var(--accent); }
.filter.is-active { background: var(--accent); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 35%, transparent); }

/* ---------------------------------------------------------------- About */
.about__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 992px) { .about__grid { grid-template-columns: 1.05fr 1fr; gap: 80px; } }
.about .section-head { margin-bottom: 26px; }
.about__number { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; }
.about__big { font: 800 clamp(64px, 8vw, 96px)/.9 var(--font-head); color: var(--accent); letter-spacing: -.03em; }
.about__caption { max-width: 280px; font: 600 18px/1.4 var(--font-head); color: var(--heading); }
.about__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px; margin-top: 30px; }
.signature { display: flex; flex-direction: column; padding-left: 20px; border-left: 3px solid var(--accent); }
.signature b { font: italic 700 20px/1.3 var(--font-head); color: var(--heading); }
.signature span { font-size: 14px; color: var(--muted); }
.about__media { position: relative; min-height: 420px; }
.about__img { border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow-lg); }
.about__img--1 { width: 72%; aspect-ratio: 64 / 76; }
.about__img--2 { position: absolute; right: 0; bottom: -30px; width: 54%; aspect-ratio: 52 / 42; border: 8px solid #fff; }
.about__img--3 { position: absolute; right: 6%; top: 8%; width: 30%; aspect-ratio: 1; border: 6px solid #fff; }
.about__deco { position: absolute; left: -24px; bottom: 40px; z-index: -1; width: 160px; height: 160px; background-image: radial-gradient(var(--accent) 2px, transparent 2.5px); background-size: 16px 16px; opacity: .5; }
@media (max-width: 639px) { .about__media { min-height: 0; } }

/* ---------------------------------------------------------------- Split (image + text) */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 992px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split--reverse .split__media { order: 2; } }
.split__media { position: relative; }
.split__media img { position: relative; z-index: 1; width: 100%; border-radius: var(--radius-lg); }
.split__frame { position: absolute; inset: 24px -18px -18px 24px; border: 3px solid var(--accent); border-radius: var(--radius-lg); }
.split--reverse .split__frame { inset: 24px 24px -18px -18px; }
.split__content .section-head { margin-bottom: 22px; }

/* ---------------------------------------------------------------- Stats */
.stats { padding: 56px 0; background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; }
.stats--light { background: var(--gray); color: var(--heading); }
.stats--light::before { display: none; }
.stats--red { background: var(--brand); --accent: var(--accent-light); }
.stats__grid { position: relative; display: grid; gap: 30px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 992px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; align-items: center; gap: 18px; }
.stat__icon { display: grid; place-items: center; width: 70px; height: 70px; flex-shrink: 0; border-radius: var(--radius); background: rgba(255,255,255,.08); color: var(--accent); transition: transform .5s var(--ease); }
.stats--red .stat__icon { color: #fff; background: rgba(0,0,0,.14); }
.stats--light .stat__icon { background: #fff; }
.stat:hover .stat__icon { transform: rotateY(180deg); }
.stat__value { display: block; font: 800 clamp(30px, 3.4vw, 44px)/1.05 var(--font-head); color: inherit; }
.stat__label { font-size: 15px; opacity: .8; }
@media (max-width: 639px) { .stats__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Testimonials */
.testimonials { display: grid; }
@media (min-width: 992px) { .testimonials { grid-template-columns: 1fr 1fr; } }
.testimonials__media { min-height: 320px; background: var(--dark); }
.testimonials__media img { width: 100%; height: 100%; object-fit: cover; }
.testimonials__panel { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 64px var(--gutter); background: var(--brand); color: #fff; }
@media (min-width: 992px) { .testimonials__panel { padding: 90px 80px; } }
.testimonials__panel .section-head { margin-bottom: 26px; }
.testimonials__track { position: relative; display: grid; }
.testimonial { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateX(30px); transition: .6s var(--ease); }
.testimonial.is-active { opacity: 1; visibility: visible; transform: none; }
.testimonial__stars { display: flex; gap: 3px; margin-bottom: 16px; color: #ffd24a; }
.star-fill { fill: currentColor; }
.testimonial blockquote { margin: 0; font: italic 500 clamp(17px, 1.7vw, 21px)/1.6 var(--font-head); }
.testimonials__authors { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.25); }
.author { display: flex; align-items: center; gap: 12px; padding: 6px 14px 6px 6px; border: 0; border-radius: 40px; background: transparent; color: #fff; text-align: left; opacity: .6; transition: .3s; }
.author.is-active, .author:hover { opacity: 1; background: rgba(0,0,0,.14); }
.author img, .author__initial { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.author__initial { display: grid; place-items: center; background: #fff; color: var(--accent); font: 800 20px/1 var(--font-head); }
.author b { display: block; font: 700 15px/1.3 var(--font-head); }
.author small { display: block; font-size: 12.5px; opacity: .8; }
.testimonials__quote { position: absolute; right: 30px; top: 30px; color: rgba(255,255,255,.1); stroke-width: 1.2; }

/* ---------------------------------------------------------------- Process */
.process__list { display: grid; gap: 30px; counter-reset: step; }
@media (min-width: 640px) { .process__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .process__list { grid-template-columns: repeat(var(--steps, 4), 1fr); } }
.step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.step__icon { display: grid; place-items: center; width: 92px; height: 92px; border-radius: var(--radius-lg); background: #fff; color: var(--accent); box-shadow: var(--shadow); transition: background .35s, color .35s, transform .5s var(--ease); }
.step:hover .step__icon { background: var(--accent); color: #fff; transform: translateY(-6px); }
.step__dot { position: relative; width: 100%; height: 50px; }
.step__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; background: var(--dark); transform: translate(-50%, -50%) rotate(45deg); transition: background .3s; z-index: 1; }
.step:hover .step__dot::before { background: var(--accent); }
@media (min-width: 992px) {
  .step__dot::after { content: ""; position: absolute; left: 0; right: -30px; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, var(--muted) 0 6px, transparent 6px 12px); opacity: .5; }
  .step:last-child .step__dot::after { right: 50%; }
  .step:first-child .step__dot::after { left: 50%; }
}
.step__card { position: relative; flex: 1; width: 100%; padding: 30px 26px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; transition: transform .4s var(--ease); }
.step:hover .step__card { transform: translateY(-4px); }
.step__card::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transition: transform .45s var(--ease); }
.step:hover .step__card::before { transform: scaleX(1); }
.step__title { font-size: 20px; margin-bottom: 10px; }
.step__card p { font-size: 15px; margin: 0; position: relative; z-index: 1; }
.step__num { position: absolute; right: 12px; bottom: -14px; font: 800 86px/1 var(--font-head); color: transparent; -webkit-text-stroke: 1.5px var(--line); }

/* ---------------------------------------------------------------- Partners */
.partners { padding: 56px 0; background: var(--brand); color: #fff; overflow: hidden; }
.partners__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 30px; margin-bottom: 30px; }
.partners__title { margin: 0; color: #fff; font-size: 28px; }
.partners__head p { margin: 0; opacity: .85; }
.partners__marquee { mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partners__marquee { padding: 8px 0; }
.partners__track { display: flex; width: max-content; animation: marquee 40s linear infinite; will-change: transform; }
.is-offscreen .partners__track, .is-offscreen .cta__phone-icon::after, .is-offscreen.cta::after { animation-play-state: paused; }
.partners__marquee:hover .partners__track { animation-play-state: paused; }
/* Логотипы клиентов — в своих цветах на белых карточках */
.partner {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 210px; height: 110px; margin-right: 24px; padding: 14px 22px;
  background: #fff; border-radius: var(--radius-lg); box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.partner:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(0, 0, 0, .28); }
.partner img { width: auto; height: 72px; max-width: 100%; object-fit: contain; }
.partner b { font: 800 20px/1.2 var(--font-head); letter-spacing: .02em; color: var(--brand); text-align: center; }
@media (max-width: 639px) { .partner { width: 160px; height: 90px; margin-right: 16px; } .partner img { height: 58px; } }
/* Вариант «Светлый фон»: логотипы в своих цветах без карточек */
.partners--light { --accent: var(--brand); background: #eceff3; color: var(--text); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partners--light .partners__title { color: var(--heading); }
.partners--light .partners__head p { color: var(--muted); opacity: 1; }
.partners--light .partner { background: transparent; box-shadow: none; }
.partners--light .partner img { opacity: .9; transition: opacity .3s; }
.partners--light .partner:hover { box-shadow: none; transform: translateY(-3px); }
.partners--light .partner:hover img { opacity: 1; }
.partners--light .partner b { color: var(--heading); opacity: .75; }
/* Вариант «Белые логотипы» на тёмном фоне */
.partners--mono .partner { background: transparent; box-shadow: none; }
.partners--mono .partner:hover { box-shadow: none; }
.partners--mono .partner img { filter: brightness(0) invert(1); opacity: .85; }
.partners--mono .partner b { color: #fff; font-size: 24px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- Features */
.feature { position: relative; padding: 34px 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.feature::after { content: ""; position: absolute; right: -40px; top: -40px; width: 100px; height: 100px; background: var(--accent-50); border-radius: 50%; transition: transform .6s var(--ease); }
.feature:hover { border-color: transparent; transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature:hover::after { transform: scale(6); }
.feature > * { position: relative; z-index: 1; }
.feature__icon { display: inline-grid; place-items: center; width: 68px; height: 68px; margin-bottom: 20px; border-radius: var(--radius); background: var(--accent); color: #fff; }
.feature__title { font-size: 20px; }
.feature p { margin: 0; font-size: 15px; }

/* ---------------------------------------------------------------- CTA band */
.cta { position: relative; padding: 64px 0; background: var(--brand); color: #fff; overflow: hidden; }
.cta--dark { background: var(--dark); }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; mix-blend-mode: luminosity; }
.cta::after { content: ""; position: absolute; right: 8%; top: -80px; width: 240px; height: 240px; border: 36px solid rgba(255,255,255,.08); transform: rotate(45deg); animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(405deg); } }
.cta__inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.cta__title { margin: 0 0 8px; color: #fff; font-size: clamp(26px, 3.2vw, 40px); }
.cta--red .cta__title .accent { color: var(--accent-light); }
.cta__text { margin: 0; max-width: 620px; opacity: .88; font-size: 17px; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.cta__phone { display: flex; align-items: center; gap: 14px; color: #fff; }
.cta__phone:hover { color: #fff; }
.cta__phone-icon { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); }
.cta__phone-icon::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); animation: ring-out 2s ease-out infinite; }
.cta__phone small { display: block; font-size: 13px; opacity: .8; }
.cta__phone b { font: 700 22px/1.2 var(--font-head); }
@keyframes ring-out { from { transform: scale(1); opacity: .9; } 70%, to { transform: scale(1.55); opacity: 0; } }
@media (min-width: 992px) { .cta { padding: 80px 0; } }

/* ---------------------------------------------------------------- Lead form */
.lead-section__grid { display: grid; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
@media (min-width: 992px) { .lead-section__grid { grid-template-columns: 1fr 1.1fr; } }
.lead-section__info { position: relative; padding: 48px var(--gutter); background: var(--dark); color: #fff; }
.lead-section__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.lead-section__info-inner { position: relative; }
.lead-section__form { padding: 40px var(--gutter); background: #fff; }
@media (min-width: 768px) { .lead-section__info, .lead-section__form { padding: 60px 56px; } }

.lead-form { position: relative; }
.lead-form__fields { display: grid; gap: 16px; margin-bottom: 20px; }
@media (min-width: 640px) { .lead-form__fields { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font: 600 14px/1.3 var(--font-head); color: var(--heading); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--gray); color: var(--heading); font: inherit; font-size: 15.5px; line-height: 1.6;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
/* select: убираем системный вид и рисуем свою стрелку, чтобы поле совпадало с остальными */
.field select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field select:hover { border-color: var(--muted); }
.field select option { color: var(--heading); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--accent); background-color: #fff; box-shadow: 0 0 0 4px var(--accent-50);
}
.field.is-invalid input, .field.is-invalid select { border-color: var(--accent); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.lead-form__note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.lead-form__status { display: none; }
.lead-form.is-sending button[type=submit] { opacity: .6; pointer-events: none; }
.lead-form.is-done .lead-form__fields, .lead-form.is-done button[type=submit], .lead-form.is-done .lead-form__note { display: none; }
.lead-form.is-done .lead-form__status, .lead-form.is-error .lead-form__status { display: block; }
.lead-form__ok { display: none; flex-direction: column; align-items: center; gap: 8px; padding: 24px 0; text-align: center; }
.lead-form__ok .icon { color: #1fa463; animation: pop .6s var(--ease); }
.lead-form__ok b { font: 700 22px/1.3 var(--font-head); color: var(--heading); }
.lead-form.is-done .lead-form__ok { display: flex; }
.lead-form__err { display: none; margin-top: 14px; padding: 12px 16px; background: var(--accent-50); color: var(--accent); border-radius: var(--radius); font-size: 14.5px; }
.lead-form.is-error .lead-form__err { display: block; }

/* ---------------------------------------------------------------- Modal */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10,11,13,.7); backdrop-filter: blur(3px); animation: fade .3s; }
.modal__dialog { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 40px 28px 30px; background: #fff; border-top: 4px solid var(--accent); border-radius: var(--radius-lg); animation: rise .45s var(--ease); }
@media (min-width: 640px) { .modal__dialog { padding: 48px 44px 36px; } }
.modal__close { position: absolute; right: 10px; top: 10px; color: var(--heading); }
.modal__close:hover { color: var(--accent); }
.modal__title { font-size: 28px; margin-bottom: 8px; }
.modal__subject { margin: 0 0 8px; padding: 8px 12px; background: var(--gray); border-left: 3px solid var(--accent); font-weight: 500; color: var(--heading); }
.modal__text { font-size: 15px; }
.modal .lead-form__fields { grid-template-columns: 1fr; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.97); } }
body.has-modal { overflow: hidden; }

/* ---------------------------------------------------------------- Catalog */
.catalog-layout { display: grid; gap: 40px; }
@media (min-width: 992px) { .catalog-layout { grid-template-columns: 290px 1fr; gap: 40px; } .catalog-layout .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .catalog-layout .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.catalog-layout .lead-text { margin-bottom: 30px; }
.aside-title { font-size: 22px; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 2px solid var(--line); position: relative; }
.aside-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 60px; height: 2px; background: var(--accent); }
.aside-nav { display: grid; gap: 6px; margin-bottom: 28px; }
.aside-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--gray); border-radius: var(--radius); font: 600 15px/1.3 var(--font-head); color: var(--heading); transition: .25s; }
.aside-nav a .icon { color: var(--accent); transition: color .25s; }
.aside-nav a:hover { padding-left: 22px; color: var(--accent); }
.aside-nav a.is-active { background: var(--accent); color: #fff; }
.aside-nav a.is-active .icon { color: #fff; }
.aside-cta { padding: 30px 26px; background: var(--dark); color: rgba(255,255,255,.8); border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.aside-cta::before { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border: 22px solid var(--accent); opacity: .5; transform: rotate(45deg); }
.aside-cta b { display: block; position: relative; margin-bottom: 8px; font: 700 20px/1.3 var(--font-head); color: #fff; }
.aside-cta p { position: relative; font-size: 14.5px; }
@media (min-width: 992px) { .catalog-aside { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; } }

.product { display: grid; gap: 40px; }
@media (min-width: 992px) { .product { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; } .product__gallery { position: sticky; top: calc(var(--header-h) + 20px); } }
.product__gallery { position: relative; }
.product__main { display: none; border-radius: var(--radius-lg); overflow: hidden; background: var(--gray); cursor: zoom-in; }
.product__main.is-active { display: block; animation: fade .4s; }
.product__main img { width: 100%; aspect-ratio: 90 / 68; object-fit: cover; }
.product__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product__thumb { padding: 0; border: 2px solid transparent; border-radius: var(--radius); overflow: hidden; background: none; opacity: .65; transition: .25s; }
.product__thumb.is-active, .product__thumb:hover { border-color: var(--accent); opacity: 1; }
.product__thumb img { width: 80px; height: 60px; object-fit: cover; }
.price-box { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 20px 0; padding: 20px 24px; background: var(--gray); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.price-box__label { font-size: 15px; color: var(--muted); }
.price-box__value { font: 800 34px/1 var(--font-head); color: var(--heading); }
.price-box__value small { font-size: 18px; font-weight: 600; }
.price-box__value--sm { font-size: 24px; }
.price-box__unit { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 30px; font-size: 14.5px; color: var(--heading); }
.chips .icon { color: var(--accent); }
.mini-specs { margin: 0; border-top: 1px solid var(--line); }
.mini-specs div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.mini-specs dt { color: var(--muted); }
.mini-specs dd { margin: 0; font-weight: 600; color: var(--heading); text-align: right; }
.doc-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 600; color: var(--accent); }
.specs-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.specs-table th, .specs-table td { padding: 15px 22px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.specs-table th { width: 45%; font-weight: 500; color: var(--muted); }
.specs-table td { font-weight: 600; color: var(--heading); }
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: 0; }
.specs-table tr:hover { background: var(--accent-50); }

/* ---------------------------------------------------------------- Project & post detail */
.project { display: grid; gap: 40px; }
@media (min-width: 992px) { .project { grid-template-columns: 1fr 340px; gap: 56px; } .project__aside { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; } }
.project__cover { margin: 0 0 36px; border-radius: var(--radius-lg); overflow: hidden; }
.project__block { margin-bottom: 36px; }
.passport { margin: 0 0 24px; padding: 10px 26px; background: var(--gray); border-top: 4px solid var(--accent); border-radius: var(--radius); }
.passport div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.passport div:last-child { border-bottom: 0; }
.passport dt { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.passport dt .icon { color: var(--accent); }
.passport dd { margin: 4px 0 0; font: 700 17px/1.35 var(--font-head); color: var(--heading); }
.gallery-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.gallery-grid__item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gallery-grid__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-grid__item::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 70%, transparent); color: #fff; font: 300 48px/1 var(--font-head); opacity: 0; transition: opacity .3s; }
.gallery-grid__item:hover::after { opacity: 1; }
.gallery-grid__item:hover img { transform: scale(1.08); }
.post__meta { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--muted); }
.post__meta .icon { color: var(--accent); }
.post__cover { margin: 0 0 28px; border-radius: var(--radius-lg); overflow: hidden; }
.post + .section, article > .section { padding-top: 0; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius); background: var(--gray); font: 700 16px/1 var(--font-head); color: var(--heading); }
.pagination a.is-active, .pagination a:hover { background: var(--accent); color: #fff; }

/* ---------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; cursor: pointer; list-style: none; font: 600 17px/1.4 var(--font-head); color: var(--heading); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: var(--radius); background: var(--accent-50); color: var(--accent); transition: transform .3s, background .3s, color .3s; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq__item[open] summary { color: var(--accent); }
.faq__answer { padding: 0 24px 20px; }
.faq__answer p:last-child { margin: 0; }

/* ---------------------------------------------------------------- Contacts */
.contact { display: grid; gap: 40px; }
@media (min-width: 992px) { .contact { grid-template-columns: 1fr 1.25fr; gap: 56px; } }
.contact__cards { display: grid; gap: 14px; align-content: start; }
.contact-card { display: flex; align-items: center; gap: 18px; padding: 22px 24px; background: var(--gray); border-radius: var(--radius-lg); color: var(--heading); transition: transform .35s var(--ease), background .3s, box-shadow .3s; }
a.contact-card:hover { color: var(--heading); background: #fff; box-shadow: var(--shadow-lg); transform: translateX(6px); }
.contact-card__icon { display: grid; place-items: center; width: 58px; height: 58px; flex-shrink: 0; border-radius: var(--radius); background: var(--accent); color: #fff; }
.contact-card small { display: block; font-size: 13.5px; color: var(--muted); }
.contact-card b { display: block; font: 700 18px/1.4 var(--font-head); word-break: break-word; }
.contact-card--accent { background: var(--dark); color: #fff; }
.contact-card--accent small { color: rgba(255,255,255,.6); }
a.contact-card--accent:hover { background: var(--dark); color: #fff; }
.contact__form { padding: 36px var(--gutter); border: 1px solid var(--line); border-radius: var(--radius-lg); border-top: 4px solid var(--accent); }
@media (min-width: 768px) { .contact__form { padding: 44px; } }
.contact__form .section-text { margin-bottom: 24px; }
.map iframe { display: block; width: 100%; height: 440px; border: 0; filter: grayscale(.4); }

/* ---------------------------------------------------------------- Video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.video .responsive-object { position: static !important; padding: 0 !important; height: 100%; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--dark); color: rgba(255,255,255,.66); font-size: 15px; }
.site-footer__grid { display: grid; gap: 40px; padding-top: 72px; padding-bottom: 56px; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .site-footer__grid { grid-template-columns: 1.3fr .8fr 1fr 1.2fr; gap: 50px; padding-top: 96px; } }
.site-footer__about p { margin: 22px 0; }
.footer-title { position: relative; margin-bottom: 26px; padding-bottom: 14px; color: #fff; font-size: 20px; }
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--accent); }
.footer-links { display: grid; gap: 10px; }
.footer-links a { position: relative; display: inline-flex; align-items: center; gap: 8px; transition: color .25s, padding .25s; }
.footer-links a::before { content: ""; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); }
.footer-links a:hover { color: #fff; padding-left: 6px; }
.footer-contacts { display: grid; gap: 14px; margin-bottom: 22px; }
.footer-contacts li { display: flex; gap: 12px; }
.footer-contacts .icon { color: var(--accent); margin-top: 3px; }
.footer-contacts a:hover { color: #fff; }
.footer-call { position: relative; display: block; padding: 22px 24px; background: var(--brand); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); color: #fff; overflow: hidden; transition: transform .3s var(--ease); }
.footer-call:hover { color: #fff; transform: translateY(-4px); }
.footer-call small { display: block; font-size: 14px; opacity: .9; }
.footer-call b { display: block; font: 800 24px/1.3 var(--font-head); }
.footer-call__bg { position: absolute; right: -8px; bottom: -14px; width: 84px; height: 84px; opacity: .14; transform: rotate(-12deg); }
.social { display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius); background: rgba(255,255,255,.07); color: #fff; transition: background .25s, transform .25s; }
.social a:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 30px; padding-top: 22px; padding-bottom: 22px; font-size: 14px; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__bottom a:hover { color: #fff; }

/* ---------------------------------------------------------------- Floating buttons */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: var(--radius); background: var(--accent); color: #fff; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(20px); transition: .35s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--dark); }
.mobile-call { position: fixed; left: 16px; bottom: 20px; z-index: 90; display: none; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: var(--shadow-lg); }
.mobile-call::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--accent); animation: ring-out 2s ease-out infinite; }
.mobile-call:hover { color: #fff; }
@media (max-width: 767px) { .mobile-call { display: grid; } }

/* ---------------------------------------------------------------- Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 60px 16px; background: rgba(10,11,13,.93); animation: fade .25s; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius); animation: rise .35s var(--ease); }
.lightbox button { position: absolute; display: grid; place-items: center; width: 50px; height: 50px; border: 0; border-radius: var(--radius); background: rgba(255,255,255,.1); color: #fff; }
.lightbox button:hover { background: var(--accent); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------------------------------------------------------------- 404 */
.e404 { position: relative; overflow: hidden; padding: 64px 0 80px; background: linear-gradient(180deg, var(--gray), #fff 70%); }
.e404::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--brand) 12%, transparent) 1.5px, transparent 2px); background-size: 24px 24px; mask-image: linear-gradient(180deg, #000, transparent 75%); pointer-events: none; }
.e404__grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .e404 { padding: 96px 0 110px; } .e404__grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.e404__code { display: block; margin-bottom: 8px; font: 800 clamp(96px, 16vw, 180px)/.9 var(--font-head); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 3px var(--brand); background: linear-gradient(90deg, var(--brand) 0 50%, transparent 50%) no-repeat; background-size: 0 100%; -webkit-background-clip: text; background-clip: text; animation: e404-fill 1.4s .3s var(--ease) forwards; }
@keyframes e404-fill { to { background-size: 200% 100%; } }
.e404__title { margin: 0 0 14px; font-size: clamp(28px, 3.4vw, 42px); }
.e404__text { max-width: 480px; margin: 0; font-size: 17px; }
.e404__art svg { display: block; width: 100%; max-width: 480px; margin: 0 auto; }
.e404__slot { animation: e404-blink 1.8s ease-in-out infinite; }
@keyframes e404-blink { 50% { opacity: .35; } }
.e404__fallen { transform-box: fill-box; transform-origin: 50% 100%; animation: e404-wobble 3.5s ease-in-out infinite; }
@keyframes e404-wobble { 0%, 100% { transform: rotate(0); } 8% { transform: rotate(-4deg); } 16% { transform: rotate(2deg); } 24% { transform: rotate(0); } }
.e404__more { position: relative; margin-top: 56px; }
.e404__hint { margin: 0 0 18px; font-size: 20px; }
.e404__cats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.e404__cat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); font: 600 15px/1.3 var(--font-head); color: var(--heading); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.e404__cat:hover { color: var(--heading); border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.e404__cat-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--radius); background: var(--accent-50); color: var(--brand); transition: background .25s, color .25s; }
.e404__cat:hover .e404__cat-icon { background: var(--brand); color: #fff; }
.e404__cat-arrow { margin-left: auto; color: var(--muted); transition: transform .25s, color .25s; }
.e404__cat:hover .e404__cat-arrow { color: var(--brand); transform: translateX(4px); }
.e404__call { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; padding: 14px 22px 14px 14px; border-radius: var(--radius-lg); background: var(--brand); color: #fff; transition: transform .25s var(--ease); }
.e404__call:hover { color: #fff; transform: translateY(-3px); }
.e404__call-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.e404__call small { display: block; font-size: 13.5px; opacity: .85; }
.e404__call b { font: 700 19px/1.3 var(--font-head); }

/* ---------------------------------------------------------------- Reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- Светлый акцент на тёмном фоне: тёмные иконки поверх */
.topbar__social a:hover, .social a:hover, .hero .square-btn:hover { color: var(--dark); }
.checklist--light .icon, .contact-card--accent .contact-card__icon { color: var(--dark); }
.author__initial { color: var(--brand); }

/* ---------------------------------------------------------------- До / после (сравнение фото) */
.ba { --pos: 50%; position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--gray); user-select: none; -webkit-user-select: none; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { position: absolute; inset: 0; z-index: 1; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba--gray .ba__before .ba__img { filter: grayscale(1) contrast(1.05); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 14px rgba(0, 0, 0, .35); pointer-events: none; }
.ba__knob {
  position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; transform: translate(-50%, -50%);
  border: 3px solid #fff; border-radius: 50%; background: color-mix(in srgb, var(--brand) 55%, transparent);
  color: #fff; backdrop-filter: blur(4px); box-shadow: 0 6px 20px rgba(0, 0, 0, .3); transition: transform .2s var(--ease);
}
.ba__knob .icon { margin: 0 -3px; }
.ba:hover .ba__knob, .ba.is-dragging .ba__knob { transform: translate(-50%, -50%) scale(1.08); }
.ba:focus-within .ba__knob { outline: 3px solid var(--accent-light); outline-offset: 3px; }
.ba__label { position: absolute; top: 16px; z-index: 3; padding: 7px 14px; border-radius: var(--radius); background: rgba(17, 19, 22, .6); color: #fff; font: 600 14px/1 var(--font-head); letter-spacing: .03em; pointer-events: none; transition: opacity .2s; }
.ba__label--before { left: 16px; }
.ba__label--after { right: 16px; }
.ba { cursor: ew-resize; touch-action: pan-y; }  /* по вертикали страница прокручивается, по горизонтали — двигается ползунок */
.ba__range { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }  /* только для клавиатуры */
.ba__caption { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 15px; }
@media (max-width: 639px) { .ba { aspect-ratio: 4 / 3; } .ba__knob { width: 44px; height: 44px; } .ba__label { top: 10px; padding: 5px 10px; font-size: 12.5px; } .ba__label--before { left: 10px; } .ba__label--after { right: 10px; } }

/* ---------------------------------------------------------------- Благодарственные письма (в блоке «Отзывы») */
.testimonials__media--letters {
  position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
  padding: 56px 24px; background-color: #eef1f6;
  background-image: radial-gradient(color-mix(in srgb, var(--brand) 14%, transparent) 1.5px, transparent 2px);
  background-size: 22px 22px;
}
.testimonials__media--letters::before { content: ""; position: absolute; right: -90px; bottom: -90px; width: 280px; height: 280px; border: 46px solid color-mix(in srgb, var(--brand) 9%, transparent); transform: rotate(45deg); }
.letters { position: relative; width: 100%; max-width: 440px; }
.letters__head { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.letters__icon { display: grid; place-items: center; width: 54px; height: 54px; flex-shrink: 0; border-radius: var(--radius); background: var(--brand); color: #fff; }
.letters__title { display: block; font: 700 22px/1.25 var(--font-head); color: var(--heading); }
.letters__head small { display: block; font-size: 14px; color: var(--muted); }
.letters__stage { position: relative; width: min(100%, 340px); aspect-ratio: 210 / 297; margin: 0 auto 0 8px; }
.letter {
  position: absolute; inset: 0; display: block; overflow: hidden; border-radius: 3px; background: #fff;
  box-shadow: 0 18px 40px rgba(17, 19, 22, .18), 0 2px 6px rgba(17, 19, 22, .08);
  transform-origin: 50% 100%; transition: transform .65s var(--ease), opacity .5s, box-shadow .3s;
  z-index: 1; opacity: 0; pointer-events: none; transform: translateX(22%) rotate(10deg) scale(.82);
}
.letter img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.letter[data-offset="0"] { z-index: 5; opacity: 1; pointer-events: auto; transform: none; cursor: zoom-in; }
.letter[data-offset="1"] { z-index: 4; opacity: 1; pointer-events: auto; transform: translateX(11%) rotate(4deg) scale(.95); cursor: pointer; }
.letter[data-offset="2"] { z-index: 3; opacity: .9; pointer-events: auto; transform: translateX(21%) rotate(8deg) scale(.9); cursor: pointer; }
.letter[data-offset="-1"] { z-index: 6; opacity: 0; transform: translateX(-115%) rotate(-12deg) scale(.95); }
.letter[data-offset="1"]::after, .letter[data-offset="2"]::after { content: ""; position: absolute; inset: 0; background: rgba(17, 19, 22, .06); }
.letter[data-offset="0"]:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(17, 19, 22, .24); }
.letter__zoom { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; opacity: 0; transform: scale(.8); transition: .3s var(--ease); }
.letter[data-offset="0"]:hover .letter__zoom, .letter[data-offset="0"]:focus-visible .letter__zoom { opacity: 1; transform: none; }
.letters__nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 400px; margin-top: 34px; }
.letters__nav .square-btn { background: #fff; box-shadow: var(--shadow); }
.letters__nav .square-btn:hover { background: var(--brand); color: #fff; }
.letters__caption { flex: 1; min-width: 0; text-align: center; }
.letters__caption b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 16px/1.3 var(--font-head); color: var(--heading); }
.letters__caption span { font: 600 13px/1.4 var(--font-head); color: var(--muted); letter-spacing: .08em; }
@media (min-width: 992px) { .testimonials__media--letters { padding: 70px 56px; } }
@media (max-width: 639px) { .letters__stage { width: min(78%, 300px); margin-left: 4px; } }

/* ---------------------------------------------------------------- Логотипы слева + тёмная панель справа */
.partners-split { display: grid; }
@media (min-width: 992px) { .partners-split { grid-template-columns: 1fr 1fr; } }

/* левая светлая половина с логотипами */
.partners-split__logos {
  position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
  padding: 56px var(--gutter); background-color: #eef1f6;
  background-image: radial-gradient(color-mix(in srgb, var(--brand) 14%, transparent) 1.5px, transparent 2px);
  background-size: 22px 22px;
}
@media (min-width: 992px) { .partners-split__logos { padding: 80px 56px; } }
.logos {
  position: relative; display: grid; width: 100%; max-width: 660px;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 6px 10px;
  padding: 22px 18px; background: #fff; border-radius: var(--radius-lg);
  box-shadow: 0 14px 40px rgba(17, 19, 22, .08);
  transition: opacity .4s var(--ease);
}
.logos.is-fading { opacity: 0; }
.logo-tile {
  display: grid; place-items: center; min-width: 0; overflow: hidden; height: 84px; padding: 8px 10px;
  background: transparent; border-radius: var(--radius);
  transition: transform .35s var(--ease);
}
.logo-tile img { min-width: 0; max-width: 100%; max-height: 50px; width: auto; height: auto; object-fit: contain; }
.logo-tile b { min-width: 0; font: 800 14px/1.2 var(--font-head); color: var(--brand); text-align: center; overflow-wrap: anywhere; }
a.logo-tile:hover { transform: translateY(-4px) scale(1.04); }
.logo-tile.is-hidden { display: none; }

/* правая тёмная половина с текстом */
.partners-split__panel { --accent: var(--accent-light); position: relative; overflow: hidden; padding: 56px var(--gutter); background: var(--brand); color: rgba(255, 255, 255, .82); }
@media (min-width: 992px) { .partners-split__panel { padding: 90px 80px; } }
.partners-split__inner { position: relative; max-width: 620px; }
.partners-split__panel .section-title { color: rgba(255, 255, 255, .62); margin-bottom: 14px; }
.partners-split__panel .section-title .accent { color: #fff; }
.partners-split__panel .section-text { color: rgba(255, 255, 255, .8); }
.partners-split__panel .tag { background: rgba(255, 255, 255, .14); color: #fff; }
.partners-split__mark { position: absolute; right: -40px; bottom: -30px; color: rgba(255, 255, 255, .07); stroke-width: 1.2; pointer-events: none; }
.reasons { display: grid; gap: 20px; margin: 30px 0 0; }
.reason { display: flex; gap: 16px; align-items: flex-start; }
.reason__icon { display: grid; place-items: center; width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; background: #fff; color: var(--brand); box-shadow: 0 6px 16px rgba(0, 0, 0, .22); }
.reason b { display: block; font: 700 17px/1.35 var(--font-head); color: #fff; }
.reason div span { display: block; font-size: 15px; color: rgba(255, 255, 255, .75); }

/* ---------------------------------------------------------------- Бегущие строки логотипов */
.logo-rows { padding: 64px 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
@media (min-width: 992px) { .logo-rows { padding: 84px 0; } }
.logo-rows__head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.logo-rows__head .section-title { margin-bottom: 12px; }
.logo-rows__head .section-text { margin: 0 auto; }
.logo-rows__strip { display: grid; gap: 14px; mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.lrow { overflow: hidden; }
.lrow__track { display: flex; width: max-content; gap: 14px; will-change: transform; animation: lrow-move var(--dur, 45s) linear infinite; }
.lrow--left .lrow__track { animation-direction: normal; }
.lrow--right .lrow__track { animation-direction: reverse; }
.logo-rows.is-offscreen .lrow__track { animation-play-state: paused; }
@keyframes lrow-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-rows .logo-tile {
  width: 200px; height: 92px; flex-shrink: 0; background: var(--gray); border-radius: var(--radius-lg);
  transition: background .3s, transform .3s var(--ease);
}
.logo-rows a.logo-tile:hover { background: #fff; box-shadow: var(--shadow); transform: translateY(-4px); }
.logo-rows .logo-tile img { max-height: 54px; }
@media (max-width: 639px) { .logo-rows .logo-tile { width: 156px; height: 78px; } .logo-rows .logo-tile img { max-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .lrow__track { animation: none; } .logo-rows__strip { mask-image: none; } .lrow { overflow-x: auto; } }
