/* =========================================================
   ООО «Принтер», офсетная типография, Рыбинск, с 1991 года
   Mobile-first. База для телефона, далее ≥720px и ≥1080px.

   Идея: тёмный «цех» в первом экране с фотографией машины,
   дальше светлые рабочие блоки. Краски CMYK только как акценты.
   Главная задача страницы: быстро оставить заявку.
   ========================================================= */

:root {
  --paper: #F5F6F7;
  --sheet: #FFFFFF;
  --ink: #14161B;
  --ink-soft: #5B606C;
  --rule: #E1E3E8;
  --accent: #D1006F;          /* пурпур (M) */
  --accent-strong: #A8005A;
  --on-accent: #FFFFFF;
  --c: #00A0E0; --m: #E0007A; --y: #FFE100; --k: #14161B;
  --error: #C4262E;
  --success: #1E7F3C;

  /* тёмный первый экран одинаков в обеих темах */
  --night: #0F1115;
  --night-2: #191C22;
  --night-text: #F2F3F5;
  --night-soft: #A6ABB6;

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --radius: 14px;
  --gutter: 16px;
  --container: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111317; --sheet: #1A1D23; --ink: #EEF0F3; --ink-soft: #A3A8B3; --rule: #2B2F37;
    --accent: #FF4FA3; --accent-strong: #FF7ABA; --on-accent: #111317;
    --error: #FF6B6B; --success: #5AD17E; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #111317; --sheet: #1A1D23; --ink: #EEF0F3; --ink-soft: #A3A8B3; --rule: #2B2F37;
  --accent: #FF4FA3; --accent-strong: #FF7ABA; --on-accent: #111317;
  --error: #FF6B6B; --success: #5AD17E; color-scheme: dark;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--font-body); color: var(--ink); background: var(--paper); }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 7vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h3 { font-size: 1.12rem; line-height: 1.3; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: var(--paper); padding: .5rem 1rem; }
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.section { padding-block: 4rem; }
.section-head { display: grid; gap: .75rem; margin-bottom: 2.25rem; max-width: 46rem; }
.eyebrow { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.eyebrow::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .6em; border-radius: 50%; background: var(--accent); vertical-align: .05em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 58ch; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .8rem 1.5rem; border: 0; border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .2s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { color: var(--on-accent); transform: translateY(-2px); box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
/* блик, пробегающий по кнопке */
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { color: inherit; transform: translateY(-2px); }
.btn-arrow { transition: transform .3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--night-text);
  transition: background-color .35s, box-shadow .35s, color .35s;
}
.site-header.is-solid, .page-light .site-header {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--rule); color: var(--ink);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; transition: min-height .35s var(--ease); }
.site-header.is-solid .header-inner { min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; margin-right: auto; }
.logo:hover { color: inherit; }
.logo-mark { width: 34px; height: 34px; flex: none; transition: transform .6s var(--ease); }
.logo:hover .logo-mark { transform: rotate(90deg); }
.logo-text { display: grid; line-height: 1; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.logo-text small { margin-top: 4px; font: 400 .6rem/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; opacity: .7; }

.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; }
.site-nav a { position: relative; color: inherit; text-decoration: none; font-weight: 500; padding-block: .4rem; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-mail { display: none; font: 500 .92rem var(--font-mono); color: inherit; text-decoration: none; opacity: .85; }
.header-cta { min-height: 42px; padding: .55rem 1.1rem; font-size: .95rem; }

.nav-toggle { display: grid; gap: 5px; width: 44px; height: 44px; padding: 12px 10px; background: none; border: 0; color: inherit; cursor: pointer; }
.nav-toggle span { height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* мобильное меню: полноэкранная панель */
.mobile-nav {
  position: fixed; inset: 0; z-index: 49; display: grid; align-content: center; gap: 1.5rem;
  padding: calc(90px + env(safe-area-inset-top, 0px)) 24px 40px;
  background: var(--night); color: var(--night-text);
  clip-path: circle(0 at calc(100% - 38px) 36px); visibility: hidden;
  transition: clip-path .6s var(--ease), visibility 0s .6s;
}
.mobile-nav.is-open { clip-path: circle(150% at calc(100% - 38px) 36px); visibility: visible; transition: clip-path .6s var(--ease); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.mobile-nav a { color: inherit; text-decoration: none; font: 700 clamp(1.8rem, 9vw, 2.6rem)/1.25 var(--font-display); }
.mobile-nav .mail { font: 500 1rem var(--font-mono); color: var(--night-soft); }
body.menu-open .site-header { color: var(--night-text); background: transparent; box-shadow: none; backdrop-filter: none; }

/* ---------- Первый экран ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--night-text);
  background: radial-gradient(80rem 40rem at 85% 0%, #23262E 0%, var(--night) 60%);
  padding-block: calc(110px + env(safe-area-inset-top, 0px)) 3rem;
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-copy { display: grid; gap: 1.4rem; min-width: 0; }
.hero .eyebrow { color: var(--night-soft); }
.hero .lead { color: var(--night-soft); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: block; animation: line-up 1s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .accent { background: linear-gradient(90deg, var(--c), var(--m) 55%, var(--y)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes line-up { from { transform: translateY(105%); } }
.hero .fade-up { animation: fade-up .9s var(--ease) both; }
.hero .fade-up.d1 { animation-delay: .3s; } .hero .fade-up.d2 { animation-delay: .42s; } .hero .fade-up.d3 { animation-delay: .54s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero .btn-ghost { color: var(--night-text); }

/* ---------- Фото ---------- */
.photo {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--radius);
  background: #1B1E24; aspect-ratio: 4 / 3; max-width: 100%;
}
.photo > svg, .photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo > img { z-index: 1; }
.photo figcaption {
  position: absolute; z-index: 2; left: 12px; bottom: 12px; padding: .35rem .7rem; border-radius: 999px;
  background: rgba(15,17,21,.72); color: #F2F3F5; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 500 .78rem var(--font-mono); letter-spacing: .04em;
}
/* фото раскрывается шторкой и медленно «дышит» */
.hero-photo { aspect-ratio: 5 / 4; animation: unveil 1.3s var(--ease) .15s both; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.hero-photo > svg, .hero-photo > img { animation: ken 18s ease-in-out infinite alternate; }
@keyframes unveil { from { clip-path: inset(0 0 100% 0 round var(--radius)); } to { clip-path: inset(0 0 0 0 round var(--radius)); } }
@keyframes ken { from { transform: scale(1.04); } to { transform: scale(1.12) translate(-1.5%, -1%); } }

/* иллюстрация машины: вращение валов и движение листа */
.press-art .spin { transform-box: fill-box; transform-origin: center; animation: spin 3s linear infinite; }
.press-art .spin.rev { animation-direction: reverse; }
.press-art .travel { animation: travel 3.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes travel { from { transform: translateX(0); } to { transform: translateX(640px); } }

/* ---------- Цифры ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 3rem; background: rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; }
.stat { display: grid; gap: .25rem; padding: 1.25rem; background: var(--night); min-width: 0; }
.stat b { font: 800 clamp(1.8rem, 5vw, 2.6rem)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.stat span { color: var(--night-soft); font-size: .92rem; }
.stat:nth-child(1) b { color: var(--c); } .stat:nth-child(2) b { color: var(--m); } .stat:nth-child(3) b { color: var(--y); }

/* ---------- Изделия ---------- */
.products { display: grid; gap: 12px; }
.product {
  --mx: 50%; --my: 50%;
  position: relative; display: grid; gap: .5rem; align-content: start; text-align: left;
  padding: 1.4rem 1.4rem 1.2rem; border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--sheet); color: var(--ink); font: inherit; cursor: pointer; overflow: hidden;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease);
}
/* мягкое пятно света следует за курсором */
.product::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}
.product:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--rule)); box-shadow: 0 20px 40px -24px rgba(20,22,27,.35); }
.product:hover::before { opacity: 1; }
.product > * { position: relative; }
.product-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.product:nth-child(3n+2) .product-dot { background: var(--m); }
.product:nth-child(3n) .product-dot { background: var(--y); }
.product p { color: var(--ink-soft); font-size: .97rem; }
.product .go { margin-top: .4rem; font-weight: 600; color: var(--accent); }
.product .go span { display: inline-block; transition: transform .3s var(--ease); }
.product:hover .go span { transform: translateX(5px); }

/* ---------- Производство ---------- */
.production { background: var(--night); color: var(--night-text); }
.production .lead, .production .eyebrow { color: var(--night-soft); }
.press-grid { display: grid; gap: 1.25rem; }
.press-card { display: grid; gap: 1rem; }
.press-card h3 { font-size: 1.35rem; }
.press-card p { color: var(--night-soft); }
.photo.parallax > svg, .photo.parallax > img { inset: -8% 0; height: 116%; transform: translateY(var(--py, 0px)); will-change: transform; }
.finishes { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.finishes li { padding: .45rem .9rem; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); font-size: .93rem; }

/* ---------- Шаги ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: .5rem; padding: 1.5rem; border-radius: var(--radius); background: var(--sheet); border: 1px solid var(--rule); }
.steps li::before { content: "0" counter(s); font: 700 .85rem var(--font-mono); color: var(--accent); }
.steps p { color: var(--ink-soft); }

/* ---------- Заявка ---------- */
.order { background: linear-gradient(180deg, var(--paper), color-mix(in srgb, var(--accent) 6%, var(--paper))); }
.order-grid { display: grid; gap: 2rem; align-items: start; }
.order-aside { display: grid; gap: 1.1rem; }
.order-aside .mail { font: 600 1.15rem var(--font-mono); color: var(--ink); text-decoration: none; word-break: break-all; }
.order-card { padding: 1.5rem; border-radius: calc(var(--radius) + 6px); background: var(--sheet); border: 1px solid var(--rule); box-shadow: 0 30px 60px -40px rgba(20,22,27,.4); }

.form { display: grid; gap: 1rem; }
.form-grid { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .92rem; padding: 0; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: .75rem .95rem;
  border: 1.5px solid var(--rule); border-radius: 10px;
  font: inherit; background: var(--paper); color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: var(--sheet); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; color: var(--ink-soft); cursor: pointer; }
.check input { margin-top: .25rem; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.error { color: var(--error); font-size: .85rem; }
.error:empty { display: none; }
.form-status:empty { display: none; }
.form-status { padding: .9rem 1rem; border-radius: 10px; font-weight: 600; animation: fade-up .5s var(--ease); }
.form-status.is-success { color: var(--success); background: color-mix(in srgb, var(--success) 12%, transparent); }
.form-status.is-error { color: var(--error); background: color-mix(in srgb, var(--error) 10%, transparent); }
.field.is-flash select { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }

/* ---------- Внутренние страницы ---------- */
.page-light main { padding-top: calc(72px + env(safe-area-inset-top, 0px)); }
.page-head { padding-block: 3rem 2rem; }
.page-head .container { display: grid; gap: 1rem; }
.breadcrumbs { font: .8rem var(--font-mono); color: var(--ink-soft); }
.breadcrumbs a { color: var(--ink-soft); }

.contacts-grid { display: grid; gap: 2rem; align-items: start; }
.contact-list { display: grid; gap: 1.5rem; font-style: normal; }
.contact-item { display: grid; gap: .35rem; }
.managers { list-style: none; padding: 0; margin: 0; display: grid; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--sheet); }
.managers li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .9rem 1.1rem; }
.managers li + li { border-top: 1px solid var(--rule); }
.managers a { font-family: var(--font-mono); color: var(--ink); text-decoration: none; white-space: nowrap; }
.requisites { font: .82rem/1.7 var(--font-mono); color: var(--ink-soft); }

/* Блог */
.posts-head { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.filters { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: 4px; }
.chip { flex: none; min-height: 40px; padding: .4rem 1rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--sheet); color: var(--ink); font: inherit; font-size: .92rem; cursor: pointer; transition: background-color .2s, color .2s; }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.search input { width: 100%; min-height: 46px; padding: .6rem 1rem; border: 1.5px solid var(--rule); border-radius: 999px; font: inherit; background: var(--sheet); color: var(--ink); }
.post-grid { display: grid; gap: 12px; }
.post-card { display: grid; gap: .6rem; align-content: start; padding: 1.4rem; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(20,22,27,.35); }
.post-card h2, .post-card h3 { font-size: 1.08rem; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); }
.post-card p:last-child { color: var(--ink-soft); font-size: .96rem; }
.post-card[hidden] { display: none; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font: .8rem var(--font-mono); color: var(--ink-soft); }
.tag { padding: .1rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.empty-state { text-align: center; color: var(--ink-soft); margin-top: 1rem; }
.subscribe-box { display: grid; gap: 1.5rem; padding: 1.75rem; margin-top: 3rem; border-radius: calc(var(--radius) + 6px); background: var(--sheet); border: 1px solid var(--rule); }

/* Статья */
.article .container { display: grid; gap: 1.1rem; }
.article-body { display: grid; gap: 1rem; margin-top: .5rem; }
.article-body h2 { font-size: 1.4rem; margin-top: 1rem; }
.article-body ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: .75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
th { font: 500 .76rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; white-space: nowrap; }
.note { padding: 1rem 1.25rem; border-radius: 10px; background: color-mix(in srgb, var(--c) 10%, transparent); color: var(--ink-soft); }
.comments .container { display: grid; gap: 1.25rem; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment { padding: 1rem 0; border-bottom: 1px solid var(--rule); animation: fade-up .5s var(--ease); }
.comment-author { font-weight: 700; }
.comment-author time { font-weight: 400; color: var(--ink-soft); font-size: .85rem; margin-left: .5rem; }
.no-comments { display: none; color: var(--ink-soft); }
.comment-list:empty + .no-comments { display: block; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--night); color: var(--night-soft); font-size: .95rem; }
.cmyk-line { display: grid; grid-template-columns: repeat(4, 1fr); height: 4px; }
.cmyk-line span:nth-child(1) { background: var(--c); } .cmyk-line span:nth-child(2) { background: var(--m); }
.cmyk-line span:nth-child(3) { background: var(--y); } .cmyk-line span:nth-child(4) { background: #3A3E47; }
.footer-inner { display: grid; gap: 2rem; padding-block: 3rem 2rem; }
.footer-col { display: grid; gap: .5rem; align-content: start; min-width: 0; }
.site-footer .logo { color: var(--night-text); }
.footer-col a { color: var(--night-text); text-decoration: none; }
.footer-col .mail { font: 500 1rem var(--font-mono); }
.footer-label { font: .75rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #6E7380; }
.copy { padding-block: 1.25rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }

/* ---------- Появление при прокрутке ---------- */
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.reveal.is-pending { opacity: 0; transform: translateY(32px); filter: blur(6px); }
.reveal-photo { transition: clip-path 1.2s var(--ease); }
.reveal-photo.is-pending { clip-path: inset(100% 0 0 0 round var(--radius)); }

/* ---------- Переход между страницами: краски C, M, Y, K ложатся по очереди ---------- */
.plates { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
.plates span { position: absolute; inset: 0; transform: translateY(100%); }
.plates span:nth-child(1) { background: var(--c); }
.plates span:nth-child(2) { background: var(--m); }
.plates span:nth-child(3) { background: var(--y); }
.plates span:nth-child(4) { background: var(--night); display: grid; place-items: center; }
.plates svg { width: 54px; height: 54px; color: #F2F3F5; opacity: 0; }
.plates.is-in span { animation: plate-in .55s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.plates.is-in svg { animation: mark-in .4s var(--ease) .35s both; }
.plates.is-out span { transform: translateY(0); animation: plate-out .65s var(--ease) both; animation-delay: calc((3 - var(--i)) * 60ms); }
.plates.is-out svg { opacity: 1; animation: mark-out .3s ease both; }
@keyframes plate-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes plate-out { from { transform: translateY(0); } to { transform: translateY(-100%); } }
@keyframes mark-in { from { opacity: 0; transform: rotate(-90deg) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes mark-out { to { opacity: 0; transform: scale(.8); } }
html.plates-cover::after { content: ""; position: fixed; inset: 0; z-index: 9998; background: var(--night); }

/* =========================================================
   ≥ 720px
   ========================================================= */
@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .section { padding-block: 5.5rem; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .products, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .press-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .posts-head { grid-template-columns: 1fr auto; align-items: center; }
  .header-mail { display: inline; }
}

/* =========================================================
   ≥ 1080px
   ========================================================= */
@media (min-width: 1080px) {
  .section { padding-block: 7rem; }
  .hero { padding-block: 150px 4rem; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
  .site-nav { display: block; }
  .nav-toggle, .mobile-nav { display: none; }
  .header-inner { gap: 2rem; }
  .products, .post-grid { grid-template-columns: repeat(3, 1fr); }
  .order-grid { grid-template-columns: .85fr 1.15fr; gap: 4rem; }
  .order-card { padding: 2.25rem; }
  .contacts-grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .subscribe-box { grid-template-columns: 1fr 1.2fr; padding: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal.is-pending, .reveal-photo.is-pending { opacity: 1; transform: none; filter: none; clip-path: none; }
  .plates { display: none; }
}

/* ---------- Правки ---------- */
.stat b span { font: inherit; color: inherit; }
/* фото в карточке раскрывается вместе с карточкой */
.press-card .photo { transition: clip-path 1.2s var(--ease) .1s; clip-path: inset(0 0 0 0 round var(--radius)); }
.press-card.is-pending .photo { clip-path: inset(100% 0 0 0 round var(--radius)); }
.press-card.is-pending { filter: none; }
/* на телефоне кнопка заявки живёт в меню и в первом экране */
@media (max-width: 719px) {
  .header-cta { display: none; }
  .logo-text small { display: none; }
}
.mobile-nav .btn { font: 600 1.05rem/1.2 var(--font-body); margin-top: .5rem; }

/* =========================================================
   НАШИ РАБОТЫ
   ========================================================= */
.works-head { display: grid; gap: 1.25rem; margin-bottom: 2rem; }
.works-grid { display: grid; gap: 1.25rem; }
.work { display: grid; align-content: start; gap: 1rem; transition: opacity .4s var(--ease), transform .5s var(--ease), filter .5s var(--ease); }
.work.is-hidden { display: none; }
.work.is-entering { animation: work-in .55s var(--ease) both; animation-delay: calc(var(--n, 0) * 60ms); }
@keyframes work-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.work-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); }
.work-photo { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--sheet); }
.work-photo > svg, .work-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work-photo > img { z-index: 1; }
.work-photo::after {
  content: "+"; position: absolute; z-index: 2; right: 12px; bottom: 12px; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(15,17,21,.75); color: #fff;
  font: 400 1.4rem/1 var(--font-body); opacity: 0; transform: scale(.7); transition: opacity .3s, transform .4s var(--ease);
}
.work-open:hover .work-photo > svg, .work-open:hover .work-photo > img { transform: scale(1.06); }
.work-open:hover .work-photo::after, .work-open:focus-visible .work-photo::after { opacity: 1; transform: none; }
.work-body { display: grid; gap: .45rem; }
.work-cat { font: .75rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.work-desc { color: var(--ink-soft); font-size: .96rem; }
.work-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .25rem 0 0; padding: 0; list-style: none; }
.work-tags li { padding: .2rem .6rem; border-radius: 999px; border: 1px solid var(--rule); font-size: .8rem; color: var(--ink-soft); }

/* Просмотр крупно */
.lightbox { width: min(1100px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: calc(var(--radius) + 6px); background: var(--sheet); color: var(--ink); overflow: auto; }
.lightbox::backdrop { background: rgba(10,11,14,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lightbox[open] { animation: lb-in .45s var(--ease); }
.lightbox[open]::backdrop { animation: lb-fade .35s ease; }
@keyframes lb-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@keyframes lb-fade { from { opacity: 0; } }
.lightbox-inner { position: relative; display: grid; }
.lightbox-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.lightbox-media > svg, .lightbox-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lightbox-media > img { z-index: 1; }
.lightbox-media.is-swapping > * { animation: lb-swap .45s var(--ease); }
@keyframes lb-swap { from { opacity: 0; transform: scale(1.04); } }
.lightbox-info { display: grid; gap: .7rem; align-content: start; padding: 1.5rem; }
.lightbox-info h3 { font-size: 1.5rem; }
.lightbox-cta { justify-self: start; margin-top: .5rem; }
.lightbox-close, .lightbox-nav {
  position: absolute; z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(15,17,21,.75); color: #fff; font-size: 1.1rem; cursor: pointer;
  backdrop-filter: blur(6px); transition: transform .3s var(--ease), background-color .2s;
}
.lightbox-close:hover, .lightbox-nav:hover { transform: scale(1.08); background: var(--accent); }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-nav { top: calc(min(100vw - 24px, 1100px) * .75 / 2 - 22px); }
.lightbox-nav.prev { left: 12px; } .lightbox-nav.next { right: 12px; }

@media (min-width: 720px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .works-head { grid-template-columns: 1fr auto; align-items: end; }
}
@media (min-width: 1080px) {
  .works-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem 1.5rem; }
  .lightbox-inner { grid-template-columns: 1.5fr 1fr; }
  .lightbox-info { padding: 2.5rem 2rem; align-content: center; }
  .lightbox-nav { top: 50%; translate: 0 -50%; }
  .lightbox-nav.next { right: calc(40% + 12px); }
}

/* ---------- 3D-сцена в первом экране ---------- */
.press3d-canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; transition: opacity 1s var(--ease); cursor: grab; }
.js-press3d.is-3d .press3d-canvas { opacity: 1; }
.js-press3d.is-3d > svg { visibility: hidden; transition: visibility 0s 1s; }
.hero-photo.js-press3d > svg { animation: none; }

/* ---------- Подробности работы ---------- */
.work-details { display: grid; gap: 0; margin: .5rem 0 0; border-top: 1px solid var(--rule); }
.work-details > div { display: grid; grid-template-columns: minmax(7rem, 40%) 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); font-size: .94rem; }
.work-details dt { color: var(--ink-soft); }
.work-details dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.lightbox-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.lightbox-actions .lightbox-cta { margin-top: 0; }
.lightbox-more[hidden] { display: none; }

/* ---------- Страница кейса ---------- */
.case { display: grid; gap: 1.25rem; }
.case-gallery { display: grid; gap: 12px; }
.case-grid { display: grid; gap: 2rem; margin-top: 1rem; }
.case-text { display: grid; gap: .75rem; max-width: 65ch; }
.case-text h2 { font-size: 1.3rem; margin-top: .75rem; }
.case-aside { display: grid; gap: 1rem; align-content: start; }
.case-aside .btn { justify-self: start; }

/* ---------- Госзаказчикам ---------- */
.gos-facts { display: grid; gap: 12px; }
.gos-fact { display: grid; gap: .6rem; align-content: start; padding: 1.5rem; border-radius: var(--radius); background: var(--sheet); border: 1px solid var(--rule); }
.gos-fact p:last-child { color: var(--ink-soft); }
.contracts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; }
.contracts:empty { display: none; }
.contract { display: grid; gap: .5rem 1.25rem; align-items: center; padding: 1.1rem 1.25rem; background: var(--night-2); }
.contract-law { justify-self: start; padding: .2rem .6rem; border-radius: 999px; background: rgba(255,255,255,.08); font: .78rem var(--font-mono); }
.contract-subject { color: var(--night-text); font-weight: 600; }
.contract-customer { color: var(--night-soft); font-size: .92rem; }
.contract a { color: #FF7ABA; white-space: nowrap; }
.contracts-empty { display: grid; gap: .75rem; justify-items: start; max-width: 60ch; color: var(--night-soft); }
.contracts-empty .btn { color: var(--night-text); }
.contracts-empty[hidden] { display: none; }
.page-light .hero-actions { margin-top: .5rem; }

@media (min-width: 720px) {
  .gos-facts { grid-template-columns: repeat(2, 1fr); }
  .case-gallery { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .contract { grid-template-columns: auto 1fr auto; }
}
@media (min-width: 1080px) {
  .gos-facts { grid-template-columns: repeat(4, 1fr); }
  .case-grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; }
  .header-mail { display: none; }
}
@media (min-width: 1320px) { .header-mail { display: inline; } }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); }

/* =========================================================
   НЕОБХОДИМЫЕ ЧАСТИ: формы, требования, правовые страницы
   ========================================================= */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.field-label { font-weight: 600; font-size: .92rem; }
.file-drop {
  display: grid; gap: .2rem; justify-items: center; text-align: center; padding: 1.1rem;
  border: 1.5px dashed var(--rule); border-radius: 10px; background: var(--paper); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.file-drop:hover, .file-drop.is-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--paper)); }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop:focus-within { outline: 3px solid var(--c); outline-offset: 2px; }
.file-drop b { color: var(--accent); }
.file-drop small { color: var(--ink-soft); font-size: .8rem; }
.file-list { font-size: .85rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.file-list:empty { display: none; }
.form-note { font-size: .85rem; color: var(--ink-soft); }
.check a { color: inherit; }

.copy { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.copy a { color: var(--night-soft); }

.mobile-cta {
  position: fixed; z-index: 40; left: 16px; right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateY(160%); transition: transform .45s var(--ease);
}
.mobile-cta.is-shown { transform: none; }
@media (min-width: 720px) { .mobile-cta { display: none; } }

.reqs { display: grid; gap: 12px; }
.req { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.4rem; border-radius: var(--radius); background: var(--sheet); border: 1px solid var(--rule); }
.req-num { font: 700 .9rem var(--font-mono); color: var(--accent); padding-top: .2rem; }
.req h2 { font-size: 1.08rem; margin-bottom: .4rem; }
.req p { color: var(--ink-soft); }
.req-send { display: grid; gap: .6rem; margin-top: 2rem; padding: 1.5rem; border-radius: var(--radius); background: color-mix(in srgb, var(--c) 10%, var(--sheet)); }
.req-send h2 { font-size: 1.3rem; }
@media (min-width: 900px) { .reqs { grid-template-columns: 1fr 1fr; } }

.legal-body { display: grid; gap: .9rem; margin-top: 1.5rem; }
.legal-body h2 { font-size: 1.15rem; margin-top: .75rem; }
.legal-body p { color: var(--ink-soft); }
.legal-body b { color: var(--ink); }
.legal-date { font: .85rem var(--font-mono); color: var(--ink-soft); }

.notfound { min-height: 70vh; display: grid; align-content: center; }
.notfound .container { display: grid; gap: 1.4rem; }

.cookie {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; max-width: 620px; margin-inline: auto;
  padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--night); color: var(--night-text);
  font-size: .92rem; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); animation: fade-up .5s var(--ease);
}
.cookie a { color: #FF7ABA; }
.cookie .btn { min-height: 40px; padding: .5rem 1rem; }
.works-head > *, .posts-head > * { min-width: 0; }
body { overflow-x: clip; }
.order-grid > *, .contacts-grid > *, .hero-grid > * { min-width: 0; }

/* ---------- Окно благодарности за заявку ---------- */
.thanks { width: min(480px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: calc(var(--radius) + 6px); background: var(--sheet); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
.thanks::backdrop { background: rgba(10,11,14,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.thanks[open] { animation: lb-in .5s var(--ease); }
.thanks-inner { position: relative; display: grid; gap: .8rem; justify-items: center; text-align: center; padding: 2.25rem 1.75rem 1.75rem; }
.thanks h2 { font-size: 1.45rem; }
.thanks-text, .thanks-how { color: var(--ink-soft); }
.thanks-how:empty { display: none; }
.thanks-text b { color: var(--ink); }
.thanks .btn { margin-top: .5rem; min-width: 160px; }
.thanks-check { width: 64px; height: 64px; color: var(--success); }
.thanks-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .7s var(--ease) .15s forwards; }
.thanks-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s var(--ease) .65s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.thanks-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); font-size: 1rem; cursor: pointer; }
.thanks-x:hover { background: var(--paper); color: var(--ink); }
.thanks .eyebrow { margin-top: .25rem; }
@media (prefers-reduced-motion: reduce) { .thanks-check circle, .thanks-check path { stroke-dashoffset: 0; } }
.field-wide { grid-column: 1 / -1; }
.form-hint { font-size: .85rem; color: var(--ink-soft); margin-top: -.35rem; }

/* ---------- Навигация между статьями ---------- */
.post-pager { display: grid; gap: 12px; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.post-pager a { display: grid; gap: .3rem; padding: 1rem 1.25rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .3s var(--ease); }
.post-pager a:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.post-pager span { font: .78rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.post-pager b { font-weight: 600; line-height: 1.35; }
.post-pager .next { text-align: right; }
@media (min-width: 720px) { .post-pager { grid-template-columns: 1fr 1fr; } }
.related { padding-top: 2rem; background: var(--sheet); border-top: 1px solid var(--rule); }
.related .post-card { background: var(--paper); }
.related .posts-head a { font-weight: 600; text-decoration: none; justify-self: end; }
html { scroll-behavior: auto; }

/* ---------- Дизайн макетов ---------- */
.products-more { margin-top: 1.25rem; color: var(--ink-soft); }
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.design { background: var(--sheet); border-block: 1px solid var(--rule); }
.design-grid { display: grid; gap: 2rem; align-items: start; }
.design-copy { display: grid; gap: 1.1rem; justify-items: start; }
.design-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.design-list li { display: grid; gap: .3rem; padding: 1.2rem 1.3rem 1.2rem 1.6rem; border-radius: var(--radius); background: var(--paper); border-left: 4px solid var(--c); }
.design-list li:nth-child(2) { border-left-color: var(--m); }
.design-list li:nth-child(3) { border-left-color: var(--y); }
.design-list li:nth-child(4) { border-left-color: var(--ink); }
.design-list span { color: var(--ink-soft); font-size: .95rem; }
@media (min-width: 1080px) { .design-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; } .design-list { grid-template-columns: 1fr 1fr; } }

/* ---------- Логотип (векторный, из комплекта логотипа) ---------- */
.logo-svg { display: block; height: 34px; width: auto; }
.logo:hover .logo-svg g { transform-box: fill-box; transform-origin: center; }
.site-footer .logo-svg { height: 30px; }
@media (min-width: 1080px) { .logo-svg { height: 38px; } }

/* ---------- Правки 11.10: шапка, часы работы, карточки машин ---------- */
.site-nav a, .header-cta, .header-mail { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) { .site-nav ul { gap: 1.1rem; } }
@media (min-width: 1320px) and (max-width: 1499px) { .header-mail { display: none; } }
.hero-hours { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.4rem; color: var(--night-text); font-weight: 500; }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: #2BD46A; box-shadow: 0 0 0 0 rgba(43,212,106,.6); animation: live 2s infinite; flex: none; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(43,212,106,0); } 100% { box-shadow: 0 0 0 0 rgba(43,212,106,0); } }
@media (prefers-reduced-motion: reduce) { .dot-live { animation: none; } }
.press-card .photo { aspect-ratio: 16 / 9; }
.press-card .photo.parallax > svg { inset: 0; height: 100%; transform: none; object-fit: contain; }
.press-card { align-content: start; }

/* Седьмой пункт меню «Производство» */
@media (min-width: 1080px) and (max-width: 1279px) { .site-nav ul { gap: .8rem; } .site-nav a { font-size: .95rem; } }

/* Кнопка Telegram в шапке */
.header-tg { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; flex: none; width: 40px; height: 40px; border-radius: 999px; background: #229ED9; color: #fff; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.header-tg svg { width: 20px; height: 20px; }
.header-tg span { display: none; font: 600 .9rem var(--font-body); }
.header-tg:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(34,158,217,.7); }
.header-tg:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
@media (max-width: 719px) { .header-tg { margin-left: auto; } }
@media (min-width: 1080px) { .header-inner { gap: 1.5rem; } .logo, .header-cta { flex-shrink: 0; } }
@media (min-width: 1280px) { .site-nav ul { gap: 1.4rem; } }
