:root {
  --paper: #e7eef3;
  --card: #fffdf8;
  --ink: #1a1a1a;
  --muted: #3f3f3f;
  --night: #1a1a1a;
  --navy: #1b3a6b;
  --mist: #d9e4f5;
  --sky: #79d0f2;
  --green: #8ad86a;
  --clay: #ff8b4a;
  --rose: #ffb7c8;
  --line: #1a1a1a;
  --shadow: 6px 6px 0 #1a1a1a;
  --display: Georgia, "Palatino Linotype", Palatino, serif;
  --serif: Georgia, "Palatino Linotype", Palatino, serif;
  --sans: "Segoe UI", Candara, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 9;
}
.skip:focus { top: 12px; }

section[id], #zayavka { scroll-margin-top: 128px; }
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid #e4e4e4;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.top-inner, .top-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
  padding: 12px 0 8px;
}
.brand {
  display: flex;
  flex-direction: column;
  color: #e10600;
  font-family: var(--sans);
  font-weight: 800;
  text-decoration: none;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.brand span {
  margin-top: 5px;
  color: #222;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}
.head-place {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
}
.head-msg { display: flex; gap: 8px; margin-left: auto; }
.head-msg a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3f3f3;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
}
.head-msg a:hover { background: #e10600; color: #fff; }
.head-phone {
  color: inherit;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.head-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  background: #e10600;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.head-call:hover { background: #c10500; }
.nav {
  display: flex;
  gap: 22px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 4px 0 10px;
}
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav a:hover { color: #e10600; }
.back { color: var(--ink); font-weight: 700; text-decoration: none; margin-left: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 0;
  background: var(--navy);
  color: #f7fffe;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-ghost {
  background: #fffdf8;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-ghost:hover { background: var(--navy); color: #f7fffe; }
.btn-small { min-height: 40px; padding: 0 14px; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); }

.hero {
  width: min(1120px, calc(100% - 40px));
  margin: 28px auto 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  background: #fff1e4;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 28px 28px 18px;
}
.hero-inner h1 { color: var(--ink); }
.hero .btn { background: var(--ink); color: #fff8f2; }
.hero .btn-ghost { background: #fffdf8; color: var(--ink); }
.hero .btn-ghost:hover { background: var(--ink); color: #fff8f2; }
.kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; }
h1 { margin: 0 0 14px; font-size: clamp(36px, 4.4vw, 58px); line-height: 0.98; color: var(--ink); }
.lead { margin: 0 0 14px; font-size: 18px; max-width: 38rem; }
.aim { margin: 0 0 18px; font-size: 18px; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn-ghost { color: var(--ink); }

.portrait { margin: 0; }
.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: #d9e4f5;
  box-shadow: none;
}
.portrait figcaption {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
}

.catalog-page {
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 0;
}
.catalog-page h1 { margin-top: 0; }
.crumbs {
  margin: 0 0 14px;
  font-size: 14px;
  color: #666;
}
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: #e10600; }
.crumbs span { margin: 0 6px; }
.catalog-page h1 {
  font-family: var(--sans);
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.catalog-lead {
  max-width: 46rem;
  margin: 0 0 18px;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 2px solid #e10600;
  background: #fff;
}
.filter-bar button {
  border: 0;
  background: #f2f2f2;
  color: #1a1a1a;
  padding: 10px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.filter-bar button.is-on,
.filter-bar button:hover { background: #e10600; color: #fff; }
.machine-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 22px auto 0;
}
.machine-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.catalog-card[hidden] { display: none; }
.catalog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.catalog-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
}
.catalog-photo {
  display: block;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}
.catalog-photo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}
.catalog-card:hover .catalog-photo img { transform: scale(1.05); }
.catalog-card h2 {
  margin: 18px 16px 10px;
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: -0.03em;
  text-transform: none;
}
.catalog-card h2 a { color: inherit; text-decoration: none; }
.catalog-card ul {
  list-style: none;
  margin: 0 18px 6px;
  padding: 0;
  font-size: 16px;
  line-height: 1.5;
}
.catalog-card li { margin: 3px 0; }
.catalog-card b { color: #c10500; font-weight: 800; }
.catalog-price {
  margin: 10px 18px 18px;
  font-size: 14px;
  line-height: 1.35;
  color: #3f3f3f;
}
.catalog-price strong {
  display: block;
  margin-top: 4px;
  color: #1a1a1a;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.catalog-order {
  display: block;
  margin: 0 18px 18px;
  padding: 14px 12px;
  background: #e10600;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.catalog-order:hover { background: #c10500; }
.boom-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  padding: 20px;
  background: var(--sky);
  border: 2px solid var(--ink);
}
.boom-hero b {
  font-family: var(--display);
  font-size: 92px;
  line-height: 0.85;
}
.boom-hero span { font-weight: 700; max-width: 14rem; }

.shots {
  width: min(1120px, calc(100% - 40px));
  margin: 28px auto 0;
}
.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.shot-grid.pair { grid-template-columns: 1fr 1fr; }
.shot-grid figure {
  margin: 0;
  background: #fffdf8;
  border: 2px solid var(--ink);
}
.shot-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
.shot-grid figcaption {
  padding: 8px 10px 10px;
  font-weight: 700;
  font-size: 14px;
}
.lane-grid.boom-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}
.lane-grid.boom-grid article { height: 100%; }

.specs, .tags {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  border: 2px solid var(--ink);
  background: #fffdf8;
}
.specs li, .tags li {
  padding: 16px 14px;
  border-right: 2px solid var(--ink);
}
.specs li:nth-child(1) { background: #f3d2b8; color: var(--ink); }
.specs li:nth-child(2) { background: var(--sky); }
.specs li:nth-child(3) { background: var(--green); }
.tags li:nth-child(4n + 1) { background: var(--mist); }
.tags li:nth-child(4n + 2) { background: #d7f3ff; }
.tags li:nth-child(4n + 3) { background: #e4f8d4; }
.tags li:nth-child(4n) { background: #ffe0cc; }
.specs li:last-child { border-right: 0; }
.specs b {
  display: block;
  font-family: var(--display);
  font-size: 36px;
  line-height: 1;
}
.specs span { display: block; margin-top: 4px; font-size: 14px; }
.tags {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 12px;
}
.tags li {
  padding: 12px 14px;
  font-weight: 700;
  font-size: 15px;
}
.tags li:nth-child(4n) { border-right: 0; }
.specs.machines { grid-template-columns: 1fr 1fr; }
.specs.machines li:last-child { border-right: 0; }

.lane, .band, .steps, .docs, .contact, .foot {
  width: 100%;
  margin-inline: 0;
  padding-inline: max(20px, calc((100% - 1120px) / 2));
}
.lane, .steps, .contact { background: #fff; }
.docs { background: #f4f7fb; }
.foot { background: #142033; color: #f4f7fb; }
.foot a { color: inherit; }
.lane, .band, .docs { padding-block: 42px 28px; }
.section-head { max-width: 720px; margin-bottom: 16px; }
.section-head h2, .contact h2, .steps h2, .form h2, dialog.yform h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
  color: var(--ink);
}
.section-head p, .contact p { margin: 0; }

.lane-grid, .cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: stretch;
}
.cards.trio { grid-template-columns: repeat(3, 1fr); }
.lane-grid article, .card {
  background: #fffdf8;
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 16px 16px 18px;
  min-height: 0;
  height: 100%;
  box-shadow: none;
}
.lane-grid b, .card h3 {
  display: block;
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.05;
}
.lane-grid p, .card p { margin: 0; }
.card { position: relative; }
.card::before { display: none; }
.card h3 { margin-top: 8px; }
.card .num {
  display: inline-block;
  background: var(--navy);
  border: 2px solid var(--ink);
  padding: 2px 8px;
  font-family: var(--display);
  font-size: 18px;
  color: #f7fffe;
}
.card:nth-child(2) .num,
.card:nth-child(3) .num,
.card:nth-child(4) .num { color: var(--ink); }
.card:nth-child(1) { background: var(--mist); }
.card:nth-child(2) { background: #d7f3ff; }
.card:nth-child(3) { background: #ffe0cc; }
.card:nth-child(4) { background: #e4f8d4; }
.card:nth-child(2) .num { background: var(--sky); }
.card:nth-child(3) .num { background: var(--clay); }
.card:nth-child(4) .num { background: var(--green); }
.lane-grid article:nth-child(1) { background: var(--mist); }
.lane-grid article:nth-child(2) { background: #d7f3ff; }
.lane-grid article:nth-child(3) { background: #ffe0cc; }
.lane-accent {
  background: var(--green) !important;
  color: var(--ink);
  border-color: var(--ink) !important;
}
.lane-accent p, .lane-accent b { color: var(--ink); }

.ask {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 2px solid var(--ink);
  background: #fffdf8;
}
.ask li { padding: 14px; border-right: 2px solid var(--ink); }
.ask li:nth-child(1) { background: var(--mist); }
.ask li:nth-child(2) { background: #d7f3ff; }
.ask li:nth-child(3) { background: #ffe0cc; }
.ask li:nth-child(4) { background: #e4f8d4; }
.ask li:nth-child(5) { background: var(--rose); }
.ask li:nth-child(6) { background: var(--sky); }
.ask li:nth-child(3n) { border-right: 0; }
.ask li:nth-child(n + 4) { border-top: 2px solid var(--ink); }
.ask b { display: block; font-family: var(--display); font-size: 22px; line-height: 1.1; }
.ask span { display: block; margin-top: 6px; }

.steps { padding-block: 28px; }
.steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: transparent;
  border-radius: 0;
}
.steps li {
  display: block;
  background: #fffdf8;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 16px;
}
.steps li:nth-child(1) { background: var(--mist); }
.steps li:nth-child(2) { background: #d7f3ff; }
.steps li:nth-child(3) { background: #e4f8d4; }
.steps li span {
  font-family: var(--display);
  font-size: 36px;
  line-height: 1;
  color: #f7fffe;
  background: var(--navy);
  display: inline-block;
  padding: 0 8px;
  border: 2px solid var(--ink);
  margin-bottom: 10px;
}
.steps li:nth-child(2) span { background: var(--sky); color: var(--ink); }
.steps li:nth-child(3) span { background: var(--green); color: var(--ink); }
.steps h3 { margin: 0 0 6px; font-size: 24px; color: var(--ink); }
.steps p { margin: 0; color: var(--ink); font-size: 15.5px; }

.doc-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.doc-links a {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 12px 16px;
  text-decoration: none;
  background: #fffdf8;
  border: 2px solid var(--ink);
  border-radius: 0;
  font-weight: 700;
}
.doc-links a:nth-child(1) { background: var(--mist); }
.doc-links a:nth-child(2) { background: #d7f3ff; }
.doc-links a:nth-child(3) { background: #ffe0cc; }
.doc-links a:nth-child(4) { background: #e4f8d4; }
.doc-links a:hover { background: var(--navy); color: #f7fffe; }

.contact {
  display: block;
  padding-block: 36px 32px;
}
.contact > div { max-width: 520px; }
.mail, .phone { margin-top: 12px; font-size: 20px; font-weight: 700; }
.messengers {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 22px;
  margin-top: 14px;
}
.soc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: auto;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.soc svg {
  display: block;
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: none;
  color: #1a1a1a;
}
.soc:hover { color: #e10600; }
.form, .yform {
  background: #fffdf8;
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 18px;
  box-shadow: 6px 6px 0 var(--clay);
}
dialog.yform {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  margin: auto;
  overflow: auto;
}
dialog.yform::backdrop { background: rgba(20, 32, 51, 0.45); }
.order-close {
  float: right;
  margin: 0 0 8px 12px;
  min-height: 40px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.yform iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 1680px;
  border: 0;
  background: #fff;
}
.yform .wait { margin: 12px 0 0; font-size: 15px; }
.form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}
.form input, .form textarea {
  font: inherit;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 0;
  border: 2px solid var(--ink);
  background: #fff;
}
.form textarea { min-height: 96px; resize: vertical; }
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 500;
}
.check input { margin-top: 4px; }
.check a { font-weight: 700; text-decoration: underline; }
.form .btn { width: 100%; }
.result {
  margin: 0;
  white-space: pre-wrap;
  background: var(--mist);
  border: 2px solid var(--ink);
  padding: 14px;
  font-size: 15px;
}
.addr { background: #c5d4ef; color: var(--ink); padding: 0 3px; }

.foot { padding-block: 28px 110px; font-size: 14px; }
.foot a { color: #f4f7fb; }
.foot p { margin: 0 0 6px; }

.dock {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 6;
  gap: 8px;
  padding: 8px;
  background: #fffdf8;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}
.dock .btn { flex: 1; box-shadow: none; }
.dock .btn-ghost { background: #fffdf8; }

.sheet {
  width: min(760px, calc(100% - 40px));
  margin: 28px auto 80px;
  background: #fffdf8;
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 32px 36px 40px;
  box-shadow: var(--shadow);
}
.sheet h1, .sheet h2 {
  font-family: var(--display);
  color: var(--ink);
  text-align: center;
  margin: 0 0 8px;
}
.sheet h2 { font-size: 22px; margin-top: 22px; text-align: left; }
.sheet p { margin: 0 0 10px; }
.sheet .meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 16px;
  font-weight: 600;
}
.sheet .just { text-align: justify; }
.sheet .center { text-align: center; }
.sheet a { color: var(--ink); }

a:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .nav, .head-place { display: none; }
  .top-bar { flex-wrap: wrap; gap: 10px 16px; }
  .head-phone { font-size: 18px; }
  .head-msg { margin-left: 0; }
  .hero { margin-top: 16px; }
  .hero-inner, .cards, .cards.trio, .steps ol, .contact, .doc-links, .specs, .lane-grid, .tags, .ask, .shot-grid, .shot-grid.pair, .boom-grid, .lane-grid.boom-grid, .machine-cards { grid-template-columns: 1fr; }
  .ask li { border-right: 0; border-bottom: 2px solid var(--ink); }
  .ask li:last-child { border-bottom: 0; }
  .tags li, .specs li { border-right: 0; border-bottom: 2px solid var(--ink); }
  .tags li:last-child, .specs li:last-child { border-bottom: 0; }
  .hero-inner { padding: 16px; }
  .portrait { order: -1; }
  .actions { display: none; }
  h1 { font-size: 34px; }
  .dock { display: flex; }
  .sheet { padding: 22px 16px 28px; }
  .sheet .just { text-align: left; }
}
