/* Шрифты размещены на сайте (без обращения к Google Fonts) */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/onest-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/onest-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/jbmono-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/jbmono-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =========================================================
   АО «НиК» — дизайн-система
   ========================================================= */
:root {
  /* Палитра основного сайта aonik.ru: #003366 · #f2f2f2 · #ffffff */
  --brand: #003366;
  --navy-900: #003366;          /* шапка, тёмные секции, подвал — как на основном сайте */
  --navy-800: #003d7a;          /* панели поверх тёмного фона */
  --navy-700: #002a54;          /* hover кнопок */
  --navy-600: #003366;
  --navy-500: #2b5d92;
  --signal: #9cc2ea;            /* акцент на тёмном фоне — светлый оттенок #003366 */
  --signal-600: #003366;        /* акцент на светлом фоне */
  --paper: #f2f2f2;
  --paper-2: #e4e7eb;
  --white: #ffffff;
  --ink: #0f1d2e;
  --ink-2: #3a4757;
  --ink-3: #6a7584;
  --line: #d5dae0;
  --line-dark: rgba(242, 242, 242, .16);
  --ok: #2b5d92;
  --c-track: #003366;
  --c-contact: #3f7fc4;
  --c-road: #8c97a3;
  --c-complex: #a9c6e6;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --radius: 4px;
  --radius-lg: 10px;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --shadow: 0 1px 2px rgba(0, 34, 68, .06), 0 8px 24px rgba(0, 34, 68, .08);
  --shadow-lg: 0 24px 64px rgba(0, 34, 68, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--navy-500); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--brand); }
.on-dark .eyebrow::before { background: var(--signal); }
.on-dark .eyebrow { color: rgba(255, 255, 255, .6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--signal { background: #ffffff; color: var(--brand); border-color: #ffffff; }
.btn--signal:hover { background: var(--paper); }
.section .btn--signal, .section--white .btn--signal, form .btn--signal { background: var(--brand); color: #f2f2f2; border-color: var(--brand); }
.section .btn--signal:hover, form .btn--signal:hover { background: var(--navy-700); }
.btn--navy { background: var(--navy-600); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.btn--line { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.arrow-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
  border-bottom: 2px solid var(--brand); padding-bottom: 2px;
}
.arrow-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 51, 102, .97);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: #fff;
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__mark { width: auto; height: 48px; max-width: 240px; flex: none; object-fit: contain; }
.brand > span { display: none; }
.brand__name { font-weight: 800; font-size: 20px; letter-spacing: -.02em; line-height: 1; }
.brand__sub { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-top: 4px; font-weight: 400; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 10px 14px; text-decoration: none; font-weight: 500; font-size: 15px;
  color: rgba(255, 255, 255, .78); border-radius: var(--radius); transition: color .2s, background .2s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -15px; height: 3px; background: var(--signal);
}
.header-phone { display: flex; flex-direction: column; text-decoration: none; text-align: right; line-height: 1.2; flex: none; }
.header-phone b { font-size: 16px; font-weight: 700; letter-spacing: .01em; }
.header-phone span { font-size: 11px; color: rgba(255, 255, 255, .55); font-family: var(--mono); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 1px solid var(--line-dark); border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: #fff; position: relative; transition: transform .25s var(--ease), background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .brand__mark { height: 36px; max-width: 190px; }
  .burger { display: inline-flex; }
  .header-phone { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--navy-900); padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line-dark);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s var(--ease);
  }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .nav a[aria-current="page"]::after { left: auto; right: 0; top: 50%; bottom: auto; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-50%); }
  .nav .nav-phone { display: block; color: var(--signal); font-weight: 700; }
}
.nav .nav-phone { display: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--navy-900); color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); margin-top: 14px; max-width: 18ch; }
.section-head p { color: var(--ink-2); max-width: 46ch; }
.on-dark .section-head p { color: rgba(255, 255, 255, .7); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  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: 48px 48px;
  mask-image: linear-gradient(90deg, transparent 20%, #000 80%);
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 80%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(38px, 6vw, 72px); margin: 16px 0 16px; letter-spacing: -.03em; }
.page-hero p.lead { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, .72); max-width: 60ch; }
.crumbs { font-family: var(--mono); font-size: 12px; color: rgba(255, 255, 255, .5); letter-spacing: .06em; }
.crumbs a { text-decoration: none; color: rgba(255, 255, 255, .7); }
.crumbs a:hover { color: var(--signal); }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: min(88vh, 820px); color: #fff; display: flex; align-items: flex-end; overflow: hidden; background: var(--navy-900); }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 7s linear; }
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 40, 80, .55) 0%, rgba(0, 40, 80, .2) 35%, rgba(0, 51, 102, .94) 100%), linear-gradient(90deg, rgba(0, 51, 102, .72), transparent 70%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 120px; padding-bottom: clamp(32px, 5vw, 56px); }
.hero h1 { font-size: clamp(40px, 7vw, 92px); letter-spacing: -.035em; line-height: .98; max-width: 14ch; margin: 20px 0 24px; }
.hero h1 em { font-style: normal; color: var(--signal); }
.hero__lead { font-size: clamp(16px, 1.7vw, 20px); color: rgba(255, 255, 255, .8); max-width: 54ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero__bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: clamp(40px, 7vw, 88px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .18); flex-wrap: wrap; }
.hero__dots { display: flex; gap: 6px; }
.hero__dots button { width: 28px; height: 3px; padding: 0; border: 0; background: rgba(255, 255, 255, .3); cursor: pointer; position: relative; }
.hero__dots button::before { content: ""; position: absolute; inset: -10px 0; }
.hero__dots button.is-active { background: var(--signal); }
.hero__caption { font-family: var(--mono); font-size: 12px; color: rgba(255, 255, 255, .6); letter-spacing: .06em; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 28px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat__num { font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.stat__num small { font-size: .45em; font-weight: 700; color: var(--navy-500); margin-left: 2px; }
.stat__label { margin-top: 10px; color: var(--ink-2); font-size: 15px; max-width: 22ch; }
.on-dark .stats { border-color: var(--line-dark); }
.on-dark .stat { border-color: var(--line-dark); }
.on-dark .stat__label { color: rgba(255, 255, 255, .65); }
.on-dark .stat__num small { color: var(--signal); }
@media (max-width: 800px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat, .stat + .stat { padding: 24px 16px; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .on-dark .stat { border-bottom-color: var(--line-dark); }
}

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--white); padding: 32px 28px 36px; display: flex; flex-direction: column; gap: 16px; min-height: 280px; transition: background .25s; position: relative; }
.service:hover { background: var(--paper); }
.service__num { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.service__icon { width: 48px; height: 48px; color: var(--navy-600); }
.service h3 { font-size: 21px; margin-top: auto; }
.service p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } .service { min-height: 0; } }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); }
.split__badge { position: absolute; right: -16px; bottom: -24px; background: var(--brand); color: #f2f2f2; padding: 20px 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.split__badge b { display: block; font-size: 40px; line-height: 1; letter-spacing: -.03em; }
.split__badge span { font-size: 13px; font-weight: 600; }
.split h2 { font-size: clamp(30px, 4vw, 46px); margin: 14px 0 20px; }
.split p + p { margin-top: 14px; }
.split p { color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 3px; background: var(--navy-600); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center/contain no-repeat; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split__badge { right: 12px; } }

/* ---------- History timeline ---------- */
.history { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.history::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 10px, transparent 10px 18px); }
.history__item { position: relative; padding: 32px 20px 0 0; }
.history__item::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--navy-900); border: 3px solid var(--signal); }
.history__year { font-family: var(--mono); color: var(--signal); font-size: 14px; }
.history__item h3 { font-size: 17px; margin: 8px 0 6px; font-weight: 600; letter-spacing: -.01em; }
.history__item p { font-size: 14px; color: rgba(255, 255, 255, .62); }
@media (max-width: 1000px) {
  .history { grid-template-columns: 1fr; gap: 28px; padding-left: 28px; }
  .history::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .35) 0 10px, transparent 10px 18px); }
  .history__item { padding: 0; }
  .history__item::before { left: -28px; }
}

/* ---------- Fleet ---------- */
.fleet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fleet__item { border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); padding: 22px 22px 20px; display: flex; gap: 18px; align-items: center; }
.fleet__item b { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; min-width: 2ch; color: var(--navy-600); }
.fleet__item span { font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.brands { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.brands span { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line); padding: 6px 10px; border-radius: 99px; color: var(--ink-2); background: var(--white); }
@media (max-width: 900px) { .fleet { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fleet { grid-template-columns: 1fr; } }

/* ---------- Clients marquee ---------- */
.clients { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.clients div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 22px; font-weight: 600; font-size: 15px; line-height: 1.3; display: flex; flex-direction: column; gap: 8px; }
.clients small { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--ink-3); }
@media (max-width: 900px) { .clients { grid-template-columns: 1fr 1fr; } }

/* ---------- CTA ---------- */
.cta { background: #ffffff; color: var(--brand); border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 72px) 0; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: 45%; background: repeating-linear-gradient(-45deg, rgba(0, 34, 68, .08) 0 18px, transparent 18px 36px); }
.cta .wrap { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(28px, 4vw, 44px); max-width: 20ch; }
.cta p { margin-top: 10px; font-weight: 500; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .7); padding: 64px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 13px; font-family: var(--mono); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--signal); }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; font-family: var(--mono); color: rgba(255, 255, 255, .45); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Status / badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; line-height: 1; white-space: nowrap; }
.badge--active { background: rgba(0, 51, 102, .1); color: var(--brand); }
.badge--active::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 rgba(156, 194, 234, .7); animation: pulse 1.8s infinite; }
.badge--done { background: var(--paper-2); color: var(--ink-2); }
.badge--done::before { content: "✓"; font-size: 11px; }
.badge--cat { background: transparent; border: 1px solid currentColor; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(156, 194, 234, .7); } 70% { box-shadow: 0 0 0 8px rgba(156, 194, 234, 0); } 100% { box-shadow: 0 0 0 0 rgba(156, 194, 234, 0); } }
.on-dark .badge--active { background: rgba(156, 194, 234, .16); color: var(--signal); }

/* ---------- Project cards (shared) ---------- */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.p-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; text-align: left; padding: 0; cursor: pointer; text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.p-card__media { position: relative; aspect-ratio: 16/10; background: var(--navy-800); overflow: hidden; }
.p-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.p-card:hover .p-card__media img { transform: scale(1.05); }
.p-card__media .cover { position: absolute; inset: 0; }
.p-card__tags { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.p-card__tags .badge { background: rgba(0, 34, 68, .82); color: #fff; backdrop-filter: blur(6px); }
.p-card__tags .badge--active { background: #ffffff; color: var(--brand); }
.p-card__tags .badge--active::before { background: var(--brand); animation: none; }
.p-card__photos { position: absolute; right: 12px; bottom: 12px; font-family: var(--mono); font-size: 11px; color: #fff; background: rgba(0, 34, 68, .75); padding: 5px 8px; border-radius: 99px; display: inline-flex; gap: 6px; align-items: center; }
.p-card__photos svg { width: 13px; height: 13px; }
.p-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-card__cat { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; color: var(--ink-3); }
.p-card__cat i { width: 8px; height: 8px; border-radius: 2px; background: var(--cat, var(--navy-600)); }
.p-card h3 { font-size: 19px; letter-spacing: -.015em; line-height: 1.2; }
.p-card__addr { font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card__meta { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.p-card__meta span:last-child { text-align: right; }

/* ---------- Objects page ---------- */
.obj-hero-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid var(--line-dark); }
.obj-hero-stats div { padding: 20px 20px 0 0; }
.obj-hero-stats div + div { padding-left: 20px; border-left: 1px solid var(--line-dark); }
.obj-hero-stats b { display: block; font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.obj-hero-stats b.signal { color: var(--signal); }
.obj-hero-stats span { display: block; margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .6); }
@media (max-width: 800px) {
  .obj-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .obj-hero-stats div, .obj-hero-stats div + div { padding: 16px 12px 16px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); }
  .obj-hero-stats div:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line-dark); }
  .obj-hero-stats div:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
}

/* Active strip */
.now { background: var(--navy-800); color: #fff; padding: 40px 0 48px; }
.now__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.now__head h2 { font-size: 24px; display: flex; align-items: center; gap: 12px; }
.now__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 340px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.now-card { scroll-snap-align: start; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 18px 18px 16px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 10px; transition: background .2s, border-color .2s; }
.now-card:hover { background: rgba(255, 255, 255, .09); border-color: rgba(156, 194, 234, .55); }
.now-card h3 { font-size: 17px; line-height: 1.25; letter-spacing: -.01em; }
.now-card p { font-size: 13px; color: rgba(255, 255, 255, .62); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.progress { height: 4px; background: rgba(255, 255, 255, .12); border-radius: 99px; overflow: hidden; margin-top: auto; }
.progress i { display: block; height: 100%; background: var(--signal); border-radius: 99px; }
.now-card__dates { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: rgba(255, 255, 255, .55); }

/* Year chart / timeline */
.years { background: var(--white); border-bottom: 1px solid var(--line); }
.years .wrap { padding-top: 28px; padding-bottom: 12px; }
.years__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.years__head h2 { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.years__head span { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.years__chart { display: grid; grid-template-columns: repeat(20, minmax(30px, 1fr)); gap: 4px; align-items: end; overflow-x: auto; padding-bottom: 6px; }
.ybar { background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 30px; }
.ybar__col { height: 96px; display: flex; flex-direction: column; justify-content: flex-end; }
.ybar__fill { background: var(--paper-2); border-radius: 3px 3px 0 0; transition: background .2s, height .4s var(--ease); position: relative; display: flex; flex-direction: column-reverse; overflow: hidden; }
.ybar__fill i { display: block; width: 100%; }
.ybar__n { font-family: var(--mono); font-size: 11px; text-align: center; color: var(--ink-3); }
.ybar__y { font-family: var(--mono); font-size: 11px; text-align: center; color: var(--ink-2); border-top: 2px solid var(--line); padding-top: 6px; }
.ybar:hover .ybar__y { color: var(--ink); border-top-color: var(--ink-3); }
.ybar.is-on .ybar__y { color: var(--brand); font-weight: 700; border-top-color: var(--brand); }
.ybar.is-off .ybar__fill { opacity: .28; }
.years__legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.years__legend span { display: inline-flex; align-items: center; gap: 6px; }
.years__legend i { width: 10px; height: 10px; border-radius: 2px; }

/* Toolbar */
.toolbar { position: sticky; top: var(--header-h); z-index: 30; background: rgba(242, 242, 242, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.toolbar .wrap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.search { position: relative; flex: 1 1 260px; min-width: 0; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); padding: 0 40px 0 42px; font: inherit; font-size: 15px; color: var(--ink); }
.search input:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(0, 51, 102, .14); }
.search .clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: none; cursor: pointer; color: var(--ink-3); display: none; border-radius: var(--radius); }
.search.has-value .clear { display: block; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); padding: 0 36px 0 14px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; max-width: 240px; }
.select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; height: 36px; padding: 0 12px; border-radius: 3px; cursor: pointer; font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.seg button svg { width: 16px; height: 16px; }
.seg button[aria-pressed="true"] { background: var(--navy-600); color: #fff; }
.toolbar__filters-btn { display: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 36px; border: 1px solid var(--line); background: var(--white); border-radius: 99px; padding: 0 14px; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); white-space: nowrap; transition: border-color .2s, background .2s; }
.chip i { width: 8px; height: 8px; border-radius: 2px; background: var(--cat); }
.chip b { font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--ink-3); }
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-pressed="true"] b { color: rgba(255, 255, 255, .6); }
.toolbar__row2 { flex-basis: 100%; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; user-select: none; }
.toggle input { appearance: none; -webkit-appearance: none; width: 36px; height: 20px; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.toggle input::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.toggle input:checked { background: var(--navy-600); }
.toggle input:checked::after { transform: translateX(16px); }

@media (max-width: 760px) {
  .toolbar { position: static; }
  .toolbar .select select { max-width: 100%; width: 100%; min-width: 0; text-overflow: ellipsis; }
  .toolbar .select { min-width: 0; }
  .toolbar__row2, .toolbar__row2 > div, .chips { min-width: 0; }
  .toolbar__row2 > div { width: 100%; }
  .toolbar__row2 > div .select { flex: 1 1 0; }
  .toolbar .select { flex: 1 1 45%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
}

.results-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 32px 0 20px; flex-wrap: wrap; }
.results-head h2 { font-size: 22px; letter-spacing: -.01em; }
.results-head h2 span { color: var(--ink-3); font-weight: 500; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.active-filters button { border: 0; background: var(--paper-2); border-radius: 99px; height: 30px; padding: 0 10px 0 12px; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.active-filters button::after { content: "×"; font-size: 16px; color: var(--ink-3); }
.active-filters .reset { background: none; text-decoration: underline; padding: 0 6px; }
.active-filters .reset::after { content: none; }

.year-group + .year-group { margin-top: 48px; }
.year-group__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.year-group__head h3 { font-size: 40px; letter-spacing: -.04em; font-weight: 800; line-height: 1; }
.year-group__head span { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }

/* List (table) view */
.p-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; font-size: 14px; }
.p-table th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--paper); white-space: nowrap; }
.p-table th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.p-table th button:hover { color: var(--ink); }
.p-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.p-table tr:last-child td { border-bottom: 0; }
.p-table tbody tr { cursor: pointer; transition: background .15s; }
.p-table tbody tr:hover { background: #f7f8fa; }
.p-table td.t-title b { display: block; font-size: 15px; font-weight: 600; }
.p-table td.t-title span { color: var(--ink-3); font-size: 13px; display: block; margin-top: 2px; max-width: 52ch; }
.p-table td.t-mono { font-family: var(--mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.p-table .cat-dot { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.p-table .cat-dot i { width: 8px; height: 8px; border-radius: 2px; background: var(--cat); }
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); }
@media (max-width: 760px) {
  .p-table thead { display: none; }
  .p-table, .p-table tbody, .p-table tr, .p-table td { display: block; width: 100%; }
  .p-table tr { border-bottom: 1px solid var(--line); padding: 14px 16px; }
  .p-table td { border: 0; padding: 2px 0; }
  .p-table td.t-hide-m { display: none; }
}

/* Timeline view */
.tl { position: relative; padding-left: 120px; }
.tl::before { content: ""; position: absolute; left: 92px; top: 0; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, var(--ink-3) 0 10px, transparent 10px 18px); opacity: .5; }
.tl-year { position: relative; margin-bottom: 40px; }
.tl-year__label { position: absolute; left: -124px; top: 0; width: 74px; text-align: right; font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.tl-year__label small { display: block; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; margin-top: 4px; }
.tl-year::before { content: ""; position: absolute; left: -35px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--navy-600); }
.tl-items { display: grid; gap: 8px; }
.tl-item { display: grid; grid-template-columns: 14px 1fr auto; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; cursor: pointer; text-align: left; transition: border-color .2s, transform .2s var(--ease); }
.tl-item:hover { border-color: var(--ink-3); transform: translateX(4px); }
.tl-item i { width: 10px; height: 10px; border-radius: 2px; background: var(--cat); }
.tl-item b { font-weight: 600; font-size: 15px; }
.tl-item span { display: block; font-size: 13px; color: var(--ink-3); }
.tl-item em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 640px) {
  .tl { padding-left: 28px; }
  .tl::before { left: 7px; }
  .tl-year__label { position: static; width: auto; text-align: left; margin-bottom: 12px; display: flex; align-items: baseline; gap: 10px; }
  .tl-year::before { left: -28px; top: 6px; }
  .tl-item { grid-template-columns: 10px 1fr; }
  .tl-item em { grid-column: 2; }
}

.empty { text-align: center; padding: 80px 20px; border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--white); }
.empty h3 { font-size: 22px; margin-bottom: 8px; }
.empty p { color: var(--ink-2); margin-bottom: 20px; }

/* ---------- Drawer (project detail) ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.drawer.is-open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0, 34, 68, .55); animation: fade .25s ease; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(880px, 100%); background: var(--paper); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .35s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 12px 24px; background: var(--white); border-bottom: 1px solid var(--line); flex: none; }
.drawer__bar .mono { font-size: 12px; color: var(--ink-3); }
.drawer__nav { display: flex; gap: 6px; }
.icon-btn { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); flex: none; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; border-color: var(--line); }
.icon-btn svg { width: 18px; height: 18px; }
.drawer__body { overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.d-head { padding: 32px clamp(20px, 4vw, 40px) 28px; background: var(--white); border-bottom: 1px solid var(--line); }
.d-head__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.d-head h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.025em; }
.d-head p { color: var(--ink-2); margin-top: 12px; font-size: 16px; }
.d-section { padding: 28px clamp(20px, 4vw, 40px); }
.d-section + .d-section { padding-top: 0; }
.d-section h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.fact { background: var(--white); padding: 16px 18px; }
.fact--wide { grid-column: 1 / -1; }
.fact dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.fact dd { margin: 0; font-weight: 600; font-size: 16px; }
.d-timeline { margin-top: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.d-timeline__bar { height: 8px; background: var(--paper-2); border-radius: 99px; position: relative; overflow: hidden; }
.d-timeline__bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--navy-600); border-radius: 99px; }
.d-timeline__bar.is-active i { background: var(--c-contact); }
.d-timeline__labels { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 10px; gap: 12px; }
.d-timeline__labels b { color: var(--ink); font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.gallery button { padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.gallery button:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery button:hover img { transform: scale(1.06); }
.map-box { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); position: relative; aspect-ratio: 16/10; }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-box__ph { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; text-align: center; padding: 24px; background-image: linear-gradient(rgba(0, 51, 102, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 51, 102, .06) 1px, transparent 1px); background-size: 24px 24px; color: var(--ink-2); }
.related { display: grid; gap: 8px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 22, 44, .97); display: none; flex-direction: column; color: #fff; }
.lightbox.is-open { display: flex; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-family: var(--mono); font-size: 13px; color: rgba(255, 255, 255, .7); gap: 12px; }
.lightbox__stage { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; min-height: 0; padding: 0 64px; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 2px; user-select: none; }
.lightbox .icon-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); color: #fff; }
.lightbox .icon-btn:hover { border-color: #fff; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lightbox__prev { left: 12px; } .lightbox__next { right: 12px; }
.lightbox__strip { display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px 16px; justify-content: safe center; scrollbar-width: none; }
.lightbox__strip button { flex: none; width: 72px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: 3px; overflow: hidden; cursor: pointer; opacity: .5; background: #111; }
.lightbox__strip button.is-on { border-color: var(--signal); opacity: 1; }
.lightbox__strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .lightbox__stage { padding: 0 8px; } .lightbox__prev, .lightbox__next { display: none; } }

/* ---------- News ---------- */
.news-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.news-feed { display: grid; gap: 0; }
.news-item { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.news-item:first-child { padding-top: 0; }
.news-item__date { font-family: var(--mono); font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.news-item__date b { display: block; font-family: var(--font); font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: -.04em; line-height: 1; }
.news-item__tag { display: inline-flex; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; gap: 8px; align-items: center; }
.news-item__tag i { width: 8px; height: 8px; border-radius: 2px; background: var(--cat, var(--navy-600)); }
.news-item h3 { font-size: 22px; letter-spacing: -.015em; line-height: 1.25; }
.news-item h3 a { text-decoration: none; }
.news-item h3 a:hover { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.news-item p { color: var(--ink-2); margin-top: 10px; }
.news-item__more { margin-top: 14px; }
.news-item__img { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 560px; }
.news-item__img img { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); width: 100%; }
.news-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.side-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.side-box h4 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.side-box--dark { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.side-box--dark h4 { color: rgba(255, 255, 255, .55); }
.side-box--dark p { color: rgba(255, 255, 255, .72); font-size: 14px; margin-bottom: 16px; }
.media-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.media-list li + li { border-top: 1px solid var(--line); }
.media-list a { display: block; padding: 12px 0; text-decoration: none; }
.media-list a:hover b { color: var(--navy-500); }
.media-list b { display: block; font-weight: 600; font-size: 14px; line-height: 1.35; }
.media-list span { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.news-filter { margin-bottom: 32px; }
@media (max-width: 1000px) { .news-layout { grid-template-columns: 1fr; } .news-side { position: static; } }
@media (max-width: 640px) { .news-item { grid-template-columns: 1fr; gap: 10px; } .news-item__date b { display: inline; font-size: 20px; margin-right: 8px; } }

/* Home news cards */
.n-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.n-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; transition: border-color .2s, transform .3s var(--ease); min-height: 230px; }
.n-card:hover { border-color: var(--ink-3); transform: translateY(-3px); }
.n-card__date { font-family: var(--mono); font-size: 12px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 8px; }
.n-card h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.n-card p { font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.n-card .arrow-link { margin-top: auto; align-self: flex-start; font-size: 14px; }
@media (max-width: 900px) { .n-grid { grid-template-columns: 1fr; } .n-card { min-height: 0; } }

/* ---------- Contacts ---------- */
.contact-top { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: -48px; position: relative; z-index: 2; box-shadow: var(--shadow); }
.contact-main { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 24px; }
.contact-main .big-phone { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.03em; text-decoration: none; line-height: 1; }
.contact-main .big-phone:hover { color: var(--navy-500); }
.contact-main .big-mail { font-size: 20px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--brand); }
.addr-list { display: grid; gap: 16px; padding-top: 20px; border-top: 1px dashed var(--line); }
.addr-list dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.addr-list dd { margin: 0; font-size: 15px; }
.contact-map { min-height: 420px; position: relative; background: var(--paper-2); }
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .contact-top { grid-template-columns: 1fr; } .contact-map { min-height: 340px; } }
.depts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dept { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.dept__icon { width: 44px; height: 44px; border-radius: var(--radius); background: var(--paper); display: flex; align-items: center; justify-content: center; color: var(--navy-600); }
.dept__icon svg { width: 22px; height: 22px; }
.dept h3 { font-size: 19px; letter-spacing: -.01em; }
.dept p.note { font-size: 14px; color: var(--ink-2); margin-top: -6px; }
.dept__rows { display: grid; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.dept__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dept__row a { text-decoration: none; font-weight: 600; font-size: 16px; }
.dept__row a:hover { color: var(--navy-500); }
.dept__row a.mail { font-weight: 500; font-size: 15px; color: var(--ink-2); }
.copy { border: 0; background: none; cursor: pointer; color: var(--ink-3); width: 32px; height: 32px; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.copy:hover { background: var(--paper); color: var(--ink); }
.copy svg { width: 16px; height: 16px; }
@media (max-width: 1000px) { .depts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .depts { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(0, 51, 102, .14); }
.form-note { font-size: 13px; color: var(--ink-3); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.req { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.req div { background: var(--navy-900); padding: 20px; }
.req dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 6px; }
.req dd { margin: 0; font-weight: 600; }
@media (max-width: 760px) { .req { grid-template-columns: 1fr; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius); font-size: 14px; opacity: 0; transition: .25s var(--ease); z-index: 300; pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Статические страницы: объект, охрана труда, конструкции, техника ---------- */
.page-hero .d-head__tags { margin: 18px 0 0; }
.obj-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; padding-bottom: 64px; }
.obj-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
.obj-block + .obj-block { margin-top: 44px; }
.obj-block h2 { font-size: 24px; margin-bottom: 16px; display: flex; align-items: baseline; gap: 10px; }
.muted-count { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--ink-3); }
.obj-about { font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 70ch; }
.obj-more { margin-top: 18px; }
.obj-back { justify-self: start; }
.gallery--page { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.gallery--page a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); cursor: zoom-in; }
.gallery--page a:first-child { grid-column: span 2; grid-row: span 2; }
.gallery--page img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery--page a:hover img { transform: scale(1.05); }
.obj-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 44px; }
.obj-pager a { display: block; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; font-weight: 600; line-height: 1.3; }
.obj-pager a:hover { border-color: var(--ink-3); }
.obj-pager small { display: block; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--ink-3); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; }
.obj-pager__next { text-align: right; }
a.tl-item { text-decoration: none; color: inherit; }
@media (max-width: 1000px) { .obj-layout { grid-template-columns: 1fr; } .obj-aside { position: static; order: -1; } }
@media (max-width: 560px) { .gallery--page { grid-template-columns: 1fr 1fr; } .obj-pager { grid-template-columns: 1fr; } }

.narrow { max-width: 920px; }
.narrow-text { max-width: 72ch; color: var(--ink-2); }
.page-intro { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin: 8px 0 36px; }
.block-title { font-size: 26px; margin: 48px 0 18px; }
.doc-group + .doc-group { margin-top: 32px; }
.doc-group h2 { font-size: 20px; margin-bottom: 12px; }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.docs a { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; }
.docs a:hover { border-color: var(--navy-500); }
.docs__icon { flex: none; width: 44px; height: 52px; border-radius: 4px; background: var(--brand); color: #f2f2f2; font-family: var(--mono); font-size: 11px; font-weight: 700; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; }
.docs b { display: block; font-weight: 600; line-height: 1.35; }
.docs small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.tech { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.tech__num { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--brand); }
.tech h2 { font-size: 22px; margin-bottom: 8px; }
.tech p { color: var(--ink-2); max-width: 70ch; }
.tech__media { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; margin-top: 16px; }
.tech__media a { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; }
.tech__media img { width: 100%; height: 200px; object-fit: contain; background: #fff; }
.tech__media a:last-child img { object-fit: cover; }
.tech__media span { display: block; padding: 8px 12px; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); }
@media (max-width: 640px) { .tech { grid-template-columns: 1fr; gap: 6px; } .tech__media { grid-template-columns: 1fr; } }
.note-box { margin-top: 28px; padding: 16px 18px; background: var(--white); border-left: 3px solid var(--brand); border-radius: var(--radius); color: var(--ink-2); }
.rent-box { display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; background: var(--brand); color: #f2f2f2; border-radius: var(--radius-lg); padding: 28px; }
.rent-box h2 { font-size: 24px; margin-bottom: 8px; }
.rent-box p { color: rgba(242, 242, 242, .8); max-width: 56ch; }
.rent-box__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rent-box .btn--navy { background: #fff; color: var(--brand); }
.rent-box .btn--line { background: transparent; color: #f2f2f2; border-color: rgba(242, 242, 242, .4); }
.seo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.seo-list li { font-size: 14px; color: var(--ink-2); padding: 8px 0; border-bottom: 1px solid var(--line); }
.seo-list a { font-weight: 600; color: var(--ink); }
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Конструктор страниц: блоки ---------- */
.pb > * + * { margin-top: 28px; }
.pb-heading--2 { font-size: clamp(24px, 3vw, 30px); margin-top: 48px !important; padding-top: 28px; border-top: 1px solid var(--line); }
.pb > .pb-heading--2:first-child { margin-top: 0 !important; padding-top: 0; border-top: 0; }
.pb-heading--3 { font-size: 20px; margin-top: 32px !important; }
.pb-heading + * { margin-top: 14px; }
.pb-text { font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 72ch; }
.pb-text p + p, .pb-text p + ul, .pb-text ul + p, .pb-text p + ol, .pb-text ol + p { margin-top: 14px; }
.pb-text ul, .pb-text ol { padding-left: 22px; margin: 0; display: grid; gap: 6px; }
.pb-text a, .pb-note a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.pb-text strong { color: var(--ink); }
.pb-image { margin: 0; }
.pb-image img { border-radius: var(--radius-lg); max-height: 560px; width: auto; max-width: 100%; }
.pb-image--wide img { width: 100%; max-height: none; object-fit: cover; }
.pb-image figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.pb-stats { background: var(--white); border-radius: var(--radius-lg); padding: 0 24px; }
.pb-features { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pb-features .service { min-height: 0; }
.pb-features .service h3 { margin-top: 8px; }
.pb-docs .doc-group h3 { font-size: 18px; margin-bottom: 10px; }
.pb-preview-bar { position: sticky; top: var(--header-h); z-index: 20; background: #fff6e0; color: #6b4e00; text-align: center; padding: 10px 16px; font-weight: 600; font-size: 14px; border-bottom: 1px solid #f0d58a; }
