/* =========================================================
   ПСК — Первая Сервисная Компания
   Общие стили сайта. Основа: белый фон, графитовый текст,
   синий акцент. Подключается на всех страницах.
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-soft-2: #eef2f7;
  --ink: #1e1f22;
  --ink-2: #454a52;
  --muted: #737a85;
  --line: #e5e8ee;
  --accent: #0b5ed7;
  --accent-dark: #0847a6;
  --accent-soft: #e8f0fe;
  --accent-glow: rgba(11, 94, 215, 0.18);
  --ok: #17a673;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 14px 40px rgba(18, 28, 45, 0.08);
  --shadow-lg: 0 30px 70px rgba(18, 28, 45, 0.14);
  --container: 1200px;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding-left: 1.2em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

.section { padding: 96px 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 64px 0; }
@media (max-width: 860px) { .section { padding: 64px 0; } .section--tight { padding: 48px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); border-radius: 2px; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 640px; }
.muted { color: var(--muted); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head--center .lead { margin: 0 auto; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px var(--accent-glow); }
.btn--primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px var(--accent-glow); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.btn--sm { padding: 11px 20px; font-size: 0.92rem; }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, height .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(18, 28, 45, 0.06); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 46px; width: auto; transition: transform .35s var(--ease); }
.logo:hover img { transform: scale(1.03); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 16px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 0.98rem;
  transition: color .25s, background .25s;
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.header__cta { display: inline-flex; }
.burger {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 6px;
    background: #fff; padding: 16px 16px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(18,28,45,.1);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .3s;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 18px; font-size: 1.05rem; }
  .header__cta { display: none; }
  .burger { display: inline-flex; }
}
main { padding-top: var(--header-h); }

/* ---------- Hero главной ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 88px; min-height: min(calc(100vh - var(--header-h)), 880px); display: flex; align-items: center; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(30, 31, 34, 0.10) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: blobFloat 18s ease-in-out infinite alternate; }
.blob--1 { width: 520px; height: 520px; background: #cfe0ff; top: -140px; right: 8%; }
.blob--2 { width: 420px; height: 420px; background: #e9e4ff; bottom: -160px; left: -80px; animation-duration: 22s; animation-delay: -6s; }
.blob--3 { width: 300px; height: 300px; background: #d7f3ea; top: 45%; right: -80px; animation-duration: 26s; animation-delay: -12s; }
@keyframes blobFloat { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px, 30px) scale(1.08); } 100% { transform: translate(30px, -30px) scale(0.96); } }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__title { margin-bottom: 22px; }
.hero__title .accent { color: var(--accent); position: relative; display: inline-block; }
.hero__title .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px; background: var(--accent-soft); z-index: -1; border-radius: 6px;
  transform: scaleX(0); transform-origin: left; animation: underline 1s var(--ease) .9s forwards;
}
@keyframes underline { to { transform: scaleX(1); } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: 0.95rem; }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 18px; height: 18px; color: var(--ok); }

.hero__visual { position: relative; perspective: 1200px; }
.hero__card {
  position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 1 / 1; max-height: 560px; margin-left: auto; width: 100%;
  transform-style: preserve-3d; transition: transform .2s ease-out; background: var(--bg-soft);
}
.hero__card img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hero__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 20, 40, .45)); }
.hero__ring { position: absolute; inset: -22px; border: 1.5px dashed rgba(11, 94, 215, .35); border-radius: 40px; animation: ringPulse 7s ease-in-out infinite; pointer-events: none; }
@keyframes ringPulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.03); opacity: .45; } }
.badge {
  position: absolute; z-index: 2; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; font-size: 0.9rem; font-weight: 600; color: var(--ink);
  animation: floatY 6s ease-in-out infinite;
}
.badge strong { display: block; font-size: 1.05rem; color: var(--accent); line-height: 1.1; }
.badge small { color: var(--muted); font-weight: 600; }
.badge--1 { top: 8%; left: -6%; animation-delay: -1s; }
.badge--2 { bottom: 14%; left: -10%; animation-delay: -3s; }
.badge--3 { top: 24%; right: -8%; animation-delay: -5s; }
.badge__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.badge__icon svg { width: 22px; height: 22px; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero__scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: var(--muted); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero__scroll i { width: 1px; height: 36px; background: linear-gradient(var(--accent), transparent); animation: scrollHint 1.8s ease-in-out infinite; }
@keyframes scrollHint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 1000px) {
  .hero { min-height: 0; padding: 48px 0 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__card { max-height: none; aspect-ratio: 4 / 3; }
  .badge--1 { left: 4%; } .badge--2 { left: 4%; } .badge--3 { right: 4%; }
  .hero__scroll { display: none; }
}
@media (max-width: 640px) {
  .badge { padding: 9px 12px; font-size: .8rem; } .badge strong { font-size: .95rem; } .badge__icon { width: 32px; height: 32px; }
  .hero__ring { display: none; }
}

/* Анимация появления элементов hero (stagger) */
.hero .stagger > * { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; }
.hero .stagger > *:nth-child(1) { animation-delay: .05s; }
.hero .stagger > *:nth-child(2) { animation-delay: .18s; }
.hero .stagger > *:nth-child(3) { animation-delay: .31s; }
.hero .stagger > *:nth-child(4) { animation-delay: .44s; }
.hero .stagger > *:nth-child(5) { animation-delay: .57s; }
.hero__visual { opacity: 0; transform: translateY(30px) scale(.97); animation: rise 1.1s var(--ease) .35s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Бегущая строка ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; padding: 18px 0; }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { display: inline-flex; align-items: center; gap: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap; font-size: .95rem; letter-spacing: .02em; }
.marquee__track span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: opacity, transform; }
.reveal--left { transform: translateX(-36px); }
.reveal--right { transform: translateX(36px); }
.reveal--scale { transform: scale(.94); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Карточки ---------- */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__num { position: absolute; top: 18px; left: 18px; width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.92); color: var(--accent); font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow); }
.card__body { padding: 26px 26px 30px; }
.card__body h3 { margin-bottom: 10px; }
.card__body p { color: var(--ink-2); margin-bottom: 0; }
.card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; }
.card__link svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.card__link:hover svg { transform: translateX(4px); }

.icon-card { padding: 30px 28px; }
.icon-card__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 20px; transition: transform .5s var(--ease), background .3s, color .3s; }
.icon-card__icon svg { width: 28px; height: 28px; }
.icon-card:hover .icon-card__icon { transform: rotate(-6deg) scale(1.06); background: var(--accent); color: #fff; }
.icon-card ul { padding-left: 0; list-style: none; margin-top: 14px; display: grid; gap: 8px; color: var(--ink-2); font-size: .97rem; }
.icon-card ul li { padding-left: 24px; position: relative; }
.icon-card ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 14px; height: 2px; background: var(--accent); border-radius: 2px; }

/* ---------- Компетенции (чередование) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature--reverse .feature__media { order: 2; }
.feature__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5 / 4; position: relative; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature__media:hover img { transform: scale(1.05); }
.feature__media::before { content: ""; position: absolute; inset: auto -40px -40px auto; width: 180px; height: 180px; border-radius: 50%; background: var(--accent-soft); z-index: -1; }
.feature__body h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.feature__body ul { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 10px; }
.feature__body li { display: flex; gap: 12px; color: var(--ink-2); }
.feature__body li::before { content: "✓"; color: var(--accent); font-weight: 800; flex: none; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 28px; } .feature--reverse .feature__media { order: 0; } }

/* ---------- Статистика ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding: 30px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-align: left; }
.stat__value { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; color: var(--accent); line-height: 1; margin-bottom: 8px; display: flex; align-items: baseline; gap: 4px; }
.stat__value small { font-size: 55%; }
.stat__label { color: var(--ink-2); font-weight: 600; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Витрина продукта ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.showcase__media { position: relative; }
.showcase__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.showcase__chip { position: absolute; top: 22px; left: 22px; background: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; color: var(--accent); box-shadow: var(--shadow); }
.showcase__list { display: grid; gap: 14px; margin: 26px 0 30px; padding: 0; list-style: none; }
.showcase__list li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); }
.showcase__list li i { flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .85rem; margin-top: 2px; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 32px; padding: 64px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #eef3ff 60%, #e6f7f1 100%); border: 1px solid var(--line);
}
.cta::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(#cfe0ff, transparent 70%); top: -180px; right: -120px; animation: blobFloat 20s ease-in-out infinite alternate; }
.cta__media { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 1; max-width: 380px; margin-left: auto; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__body { position: relative; }
.cta__contacts { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 26px; }
.cta__contacts a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.cta__contacts a svg { width: 22px; height: 22px; color: var(--accent); }
.cta__contacts a:hover { color: var(--accent); }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; padding: 40px 28px; } .cta__media { margin-left: 0; max-width: 100%; aspect-ratio: 16/10; } }

/* ---------- Подвал ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 16px; }
.footer__grid ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer__grid a { color: var(--ink-2); font-weight: 600; }
.footer__grid a:hover { color: var(--accent); }
.footer .logo img { height: 52px; }
.footer__about { color: var(--muted); font-size: .95rem; margin-top: 16px; max-width: 320px; }
.footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Внутренние страницы ---------- */
.page-hero { position: relative; padding: 72px 0 56px; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.page-hero .hero__grid { opacity: .7; }
.page-hero__inner { position: relative; max-width: 820px; }
.breadcrumbs { display: flex; gap: 10px; color: var(--muted); font-size: .9rem; margin-bottom: 22px; font-weight: 600; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.page-hero h1 { margin-bottom: 18px; }
.page-hero .stagger > * { opacity: 0; transform: translateY(20px); animation: rise .8s var(--ease) forwards; }
.page-hero .stagger > *:nth-child(2) { animation-delay: .12s; }
.page-hero .stagger > *:nth-child(3) { animation-delay: .24s; }
.page-hero .stagger > *:nth-child(4) { animation-delay: .36s; }

.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.subnav a { padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 700; font-size: .92rem; transition: .3s; }
.subnav a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Процесс / таймлайн ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; counter-reset: step; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--line); }
.timeline__progress { position: absolute; left: 0; top: 27px; height: 2px; background: var(--accent); width: 0; transition: width 1.6s var(--ease); }
.timeline.is-visible .timeline__progress { width: 100%; }
.step { position: relative; padding-top: 74px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line); color: var(--accent); font-weight: 800; display: grid; place-items: center; font-size: 1.1rem;
  transition: border-color .4s, background .4s, color .4s, transform .4s var(--ease);
}
.timeline.is-visible .step::before { border-color: var(--accent); }
.step:hover::before { background: var(--accent); color: #fff; transform: scale(1.08); }
.step h4 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 1000px) { .timeline { grid-template-columns: repeat(3, 1fr); } .timeline::before, .timeline__progress { display: none; } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } .step { padding-top: 0; padding-left: 74px; } }

/* ---------- Продукты ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product__gallery { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.product__gallery a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--bg-soft); }
.product__gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.product__gallery a:hover img { transform: scale(1.05); }
.product__gallery--2 { grid-template-columns: 1fr 1fr; }
.product__gallery--2 a:first-child { grid-column: 1 / -1; aspect-ratio: 16/10; }
.product__tag { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem; margin-bottom: 14px; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; }
.spec div { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--bg-soft); }
.spec dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.spec dd { margin: 0; font-weight: 700; color: var(--ink); }
.checklist { list-style: none; padding: 0; display: grid; gap: 12px; margin: 20px 0; }
.checklist li { display: flex; gap: 12px; color: var(--ink-2); }
.checklist li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5ed7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat; margin-top: 3px; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; gap: 28px; } .product__gallery { position: static; } .spec { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 640px; }
table.cmp th, table.cmp td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp th { background: var(--bg-soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
table.cmp tr:last-child td { border-bottom: 0; }
table.cmp td:first-child { font-weight: 700; color: var(--ink); width: 26%; }
table.cmp td { color: var(--ink-2); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery a { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; display: block; box-shadow: var(--shadow); }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery a:hover img { transform: scale(1.06); }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15, 18, 24, .9); display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 16px; box-shadow: var(--shadow-lg); transform: scale(.94); transition: transform .35s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; font-size: 22px; line-height: 1; }

/* ---------- Шаблон «О компании» ---------- */
.placeholder {
  border: 2px dashed #b9c4d6; border-radius: var(--radius-sm); padding: 18px 20px; color: #5a6b85; background: #f8faff; font-size: .95rem;
}
.placeholder strong { color: var(--accent); }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.person { text-align: center; }
.person__photo { aspect-ratio: 1; border-radius: 50%; background: var(--bg-soft-2); margin: 0 auto 14px; width: 70%; display: grid; place-items: center; color: var(--muted); font-size: .8rem; border: 2px dashed #c7d0de; }
.person h4 { margin-bottom: 4px; }
.person p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, 1fr); } }
.history { display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 12px; }
.history__item { position: relative; padding: 0 0 30px 34px; }
.history__item::before { content: ""; position: absolute; left: -9px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.history__year { font-weight: 800; color: var(--accent); font-size: 1.1rem; margin-bottom: 4px; }
.history__item p { color: var(--ink-2); margin: 0; }
.docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.doc { aspect-ratio: 3/4; border-radius: var(--radius-sm); border: 2px dashed #c7d0de; background: var(--bg-soft); display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .9rem; padding: 16px; }
@media (max-width: 800px) { .docs { grid-template-columns: repeat(2, 1fr); } }
.requisites { width: 100%; border-collapse: collapse; }
.requisites td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.requisites td:first-child { color: var(--muted); width: 38%; font-weight: 600; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list li svg { width: 24px; height: 24px; color: var(--accent); flex: none; margin-top: 2px; }
.contact-list strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.map-placeholder { aspect-ratio: 16/10; border-radius: var(--radius); border: 2px dashed #c7d0de; background: var(--bg-soft); display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Доступность / reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero .stagger > *, .hero__visual, .page-hero .stagger > * { opacity: 1; transform: none; }
}
:focus-visible { outline: 3px solid rgba(11, 94, 215, .5); outline-offset: 3px; border-radius: 6px; }
