/* Лист — static site. Tokens from design-system.md. No Bootstrap. */

:root {
  --bg: #f4f5f2;
  --ink: #1c1f1c;
  --muted: #5c635c;
  --accent: #2f6f4e;
  --accent-mid: #245a3f;
  --accent-deep: #16382a;
  --cta: #c45c2a;
  --promo: #161616;
  --line: #d5d2c8;
  --surface: #fff;
  --promo-h: 43px;
  --header-h: 100px;
  --chrome: calc(var(--promo-h) + var(--header-h));
  --wrap: 1170px;
  --wrap-wide: 1410px;
  --r: 2px;
  --t: 180ms;
  --ease: ease;
  --font: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 14px/20px var(--font);
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t) var(--ease);
}
a:hover { color: var(--accent-deep); }
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}

h1, h2, h3 { font-weight: 500; margin: 0 0 0.6em; }
h1 { font-size: 36px; line-height: 1.15; }
h2 { font-size: 24px; line-height: 1.25; color: var(--accent); }
h3 { font-size: 18px; line-height: 1.3; }

p { margin: 0 0 1em; }

.skip {
  position: absolute;
  left: 8px;
  top: -40px;
  z-index: 40;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 12px;
}
.skip:focus { top: 8px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
  min-width: 0;
}
.wrap--wide {
  max-width: var(--wrap-wide);
}

h1, h2, h3, p, li {
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.grid {
  display: grid;
  gap: 24px;
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.section {
  padding: 44px 0;
}
.section--gray { background: #eceee8; }
.section--white { background: var(--surface); }
.section--tight { padding: 24px 0; }
.section__title { text-align: center; }

/* Buttons */
.btn {
  display: inline-block;
  border: 0;
  border-radius: var(--r);
  padding: 16px 30px;
  font: 400 16px/1.2 var(--font);
  text-transform: uppercase;
  color: #fff;
  background: var(--cta);
  cursor: pointer;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
  box-sizing: border-box;
  transition: background-color var(--t) var(--ease);
}
.btn:hover { background: #a84c22; color: #fff; }
.btn--alt { background: var(--accent); }
.btn--alt:hover { background: var(--accent-mid); color: #fff; }
.btn--header {
  padding: 12px 26px;
  font-size: 13px;
  line-height: 13px;
  height: 39px;
  background: var(--accent);
}
.header--scrolled .btn--header { background: var(--cta); }
.btn--ghost {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--row {
  display: flex;
  align-items: center;
  width: 100%;
  height: 70px;
  padding: 0 20px 0 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  text-transform: none;
  font-size: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
  text-align: left;
  transition: color var(--t) var(--ease);
}
.btn--row:hover { color: var(--accent); }

/* Promo in flow (scrolls away). Header fixed; docks to top after 43px. */
.promo {
  position: relative;
  z-index: 12;
  flex-shrink: 0;
  height: var(--promo-h);
  background: var(--promo);
  color: #d7e0d7;
  font-size: 14px;
  line-height: var(--promo-h);
  text-align: center;
  padding: 0 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.promo a { color: #c5d8c8; }
.promo a:hover { color: #fff; }

.header {
  position: fixed;
  top: var(--promo-h);
  left: 0;
  right: 0;
  z-index: 11;
  height: var(--header-h);
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
}
.header--docked { top: 0; }
main {
  flex: 1 0 auto;
  width: 100%;
  min-width: 0;
  padding-top: var(--header-h);
}

.header__inner {
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr) minmax(140px, 220px);
  align-items: center;
  height: var(--header-h);
  gap: 12px;
}
.header__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.header__logo {
  display: block;
  height: 40px;
  max-width: 100%;
}
.header__logo img {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: left center;
}
.nav {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: var(--header-h);
  gap: 4px;
  min-width: 0;
}
.nav__item { position: relative; display: flex; align-items: center; min-width: 0; }
.nav__link,
.nav__btn {
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 8px;
  font-size: 16px;
  line-height: 1.2;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: color var(--t) var(--ease);
}
.nav__link:hover,
.nav__btn:hover,
.nav__link[aria-current="page"] { color: var(--accent); }
.nav__sub {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 12;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t) var(--ease), visibility var(--t) var(--ease);
}
.nav__item:hover .nav__sub,
.nav__item:focus-within .nav__sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav__sub a {
  display: block;
  padding: 10px 16px;
  color: var(--ink);
  text-transform: uppercase;
  font-size: 13px;
  transition: color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.nav__sub a:hover { color: var(--accent); background: var(--bg); }

.header__contacts {
  text-align: right;
  font-size: 13px;
  line-height: 1.4;
  min-width: 0;
}
.header__contacts a {
  color: var(--ink);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--t) var(--ease);
}
.header__contacts a:hover { color: var(--accent); }

.menu-toggle {
  display: none;
  height: 44px;
  border: 1px solid var(--ink);
  background: var(--bg);
  cursor: pointer;
  padding: 0 12px;
  color: var(--ink);
  font: 400 14px/1 var(--font);
  white-space: nowrap;
}
.menu-toggle::before {
  content: "☰ ";
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t) var(--ease), visibility var(--t) var(--ease);
}
body.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Footer */
.footer {
  flex-shrink: 0;
  background: var(--accent-deep);
  color: #e8efe9;
  padding: 36px 0 28px;
  min-height: 258px;
  width: 100%;
}
.footer a {
  color: #e8efe9;
  transition: color var(--t) var(--ease);
}
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
  gap: 24px;
}
.footer__brand {
  height: 36px;
  width: auto;
  max-width: 160px;
  margin-bottom: 12px;
  object-fit: contain;
  object-position: left center;
}
.footer__cols { display: contents; }
.footer__col { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin: 0 0 8px; }
.footer__col a::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  background: #e8efe9;
  vertical-align: middle;
}

/* Cards / works / resources — foundation for later fill */
.card,
.resource {
  background: var(--surface);
}
.card__media,
.resource__media,
.work {
  aspect-ratio: 450 / 298;
  overflow: hidden;
  background: #ddd;
}
@media (min-width: 62em) {
  .grid--3 > .card { min-height: 622px; }
  .card__media { height: 298px; aspect-ratio: auto; }
}
.card__media img,
.resource__media img,
.work img,
.mat__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--t) var(--ease);
}
.card:hover img,
.mat:hover img,
.work:hover img { opacity: 0.88; }
.card__body { padding: 16px 8px 8px; }
.card__title {
  color: var(--accent);
  text-decoration: underline;
  font-size: 18px;
  margin-bottom: 8px;
}
.works {
  background: #2a2c2a center / cover no-repeat;
}
.works .section__title { color: #e8efe9; }
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.card { display: block; color: inherit; }
.card:hover { color: inherit; }
.work {
  position: relative;
  aspect-ratio: 352 / 276;
  overflow: hidden;
}
.work figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: rgba(22, 56, 42, 0.72);
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  line-height: 1.3;
}

.why { min-height: 403px; }
.why__item { text-align: center; padding: 8px; }
.why__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: relative;
}
.why__icon::before,
.why__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--accent);
}
.why__item:nth-child(1) .why__icon::before {
  width: 28px; height: 28px; margin: -14px 0 0 -14px;
  box-shadow: 12px 0 0 var(--accent), 0 12px 0 var(--accent), 12px 12px 0 var(--accent);
  background: var(--accent);
}
.why__item:nth-child(2) .why__icon::before {
  width: 22px; height: 28px; margin: -16px 0 0 -11px;
  background: transparent;
  border: 2px solid var(--accent);
}
.why__item:nth-child(3) .why__icon::before {
  width: 24px; height: 24px; margin: -12px 0 0 -12px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: transparent;
}
.why__item:nth-child(3) .why__icon::after {
  width: 2px; height: 10px; margin: -8px 0 0 -1px;
}
.why__item:nth-child(4) .why__icon::before {
  width: 28px; height: 14px; margin: -7px 0 0 -14px;
  background: transparent;
  border: 2px solid var(--accent);
}
.why__item:nth-child(5) .why__icon::before {
  width: 26px; height: 18px; margin: -12px 0 0 -13px;
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: 2px 2px 10px 10px;
}
.why__item:nth-child(6) .why__icon::before {
  width: 20px; height: 20px; margin: -14px 0 0 -10px;
  border-radius: 50%;
}
.why__item:nth-child(6) .why__icon::after {
  width: 14px; height: 10px; margin: 2px 0 0 -7px;
  border-radius: 0 0 8px 8px;
}

.logos__track,
.press__track {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  max-width: 100%;
}
.logos,
.press {
  overflow-x: clip;
}
.logos { min-height: 301px; }
.logos img { height: 72px; width: 72px; object-fit: contain; flex-shrink: 0; }
.slider__nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.slider__nav button {
  min-width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.slider__nav button:hover { background: var(--bg); color: var(--accent); }

.logos .wrap,
.press .wrap {
  display: grid;
  grid-template-columns: 1fr;
}
.logos .section__title,
.press .section__title { grid-column: 1; grid-row: 1; }
.logos [data-slide],
.press [data-slide] {
  grid-column: 1;
  grid-row: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms var(--ease), visibility 200ms var(--ease);
}
.logos [data-slide].is-on,
.press [data-slide].is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.logos .slider__nav,
.press .slider__nav { grid-column: 1; grid-row: 3; }

/* Home sections */
.hero {
  position: relative;
  min-height: 546px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  background: #1a1a1a center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 12, 0.45);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  color: #fff;
  max-width: 18em;
  margin-left: auto;
  margin-right: auto;
  overflow-wrap: anywhere;
}
.hero__sub {
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}
.hero__bullets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  max-width: 100%;
}
.hero__bullets li {
  display: inline;
  max-width: 100%;
}
.hero__bullets li:not(:last-child)::after {
  content: " • ";
  color: #8fbf9a;
}
.hero--print .hero__bullets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 24px;
  max-width: 56em;
  margin-left: auto;
  margin-right: auto;
}
.hero--print .hero__bullets li {
  display: block;
  text-align: center;
}
.hero--print .hero__bullets li:not(:last-child)::after { content: none; }
.hero--print .hero__bullets li::before {
  content: "◆";
  display: block;
  color: #8fbf9a;
  margin-bottom: 6px;
}
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
}
.hero__actions .btn {
  max-width: 100%;
  box-sizing: border-box;
}
.hero__link {
  color: #fff;
  text-decoration: underline;
  text-decoration-style: dotted;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 150px;
  width: 100%;
}
.steps a,
.steps div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 19px 12px 0;
  min-height: 150px;
}
.steps a,
.steps div { transition: filter var(--t) var(--ease); }
.steps a:hover { color: #fff; filter: brightness(1.06); }
.steps__n {
  width: 36px;
  height: 36px;
  border: 2px solid #fff;
  border-radius: 50%;
  line-height: 32px;
  margin-bottom: 10px;
}
.steps__1 { background: #4a9a6c; }
.steps__2 { background: #2f6f4e; }
.steps__3 { background: #245a3f; }
.steps__4 { background: #16382a; }

.nomodel__grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 32px;
  align-items: center;
}
.nomodel__rows { display: flex; flex-direction: column; gap: 12px; }
.nomodel__rows > *::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-right: 16px;
  flex-shrink: 0;
  border: 2px solid var(--accent);
  box-sizing: border-box;
}
.nomodel__rows > :nth-child(1)::before { border-radius: 2px; }
.nomodel__rows > :nth-child(2)::before { border-radius: 50%; }
.nomodel__rows > :nth-child(3)::before {
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
}
.nomodel__rows > :nth-child(4)::before { border-style: dashed; }

.help {
  text-align: center;
  background: #eceee8;
  padding: 32px 0;
  min-height: 178px;
  display: flex;
  align-items: center;
}
.help .wrap { width: 100%; }
.press { min-height: 359px; }
.press blockquote {
  margin: 0 auto;
  max-width: 40em;
  font-size: 16px;
  line-height: 1.5;
}
.press cite { display: block; margin-top: 12px; color: var(--muted); font-style: normal; }

.resource { display: flex; flex-direction: column; }
.resource ul { margin: 12px 16px 16px; padding-left: 18px; flex: 1; }
.resource__btn {
  display: block;
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 16px 0;
  text-transform: uppercase;
  font-size: 18px;
}
.resource__btn:hover { color: #fff; background: var(--accent-mid); }

.skel {
  min-height: 80px;
  outline: 1px dashed transparent;
}

dialog {
  border: 0;
  padding: 24px;
  max-width: 28rem;
  width: calc(100% - 32px);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.form label { display: block; margin: 10px 0 4px; }
.form input,
.form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  font: inherit;
}

/* Material child (PLA template; reuse on other mats) */
.matpage-top {
  padding: 28px 15px 8px;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--muted);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs__sep { opacity: 0.5; }
.matpage-top h1 {
  margin: 0 0 28px;
  max-width: 22em;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.2;
}
.matpage {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr);
  gap: 32px 40px;
  align-items: start;
  margin-bottom: 36px;
}
.mat-gallery {
  min-width: 0;
}
.mat-gallery__stage {
  position: relative;
  background: #e8ebe6;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.mat-gallery__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms var(--ease), visibility 200ms var(--ease);
}
.mat-gallery__slide.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mat-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mat-gallery .slider__nav { margin-top: 12px; }
.mat-gallery__badge {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.matpage__rail {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px 18px 24px;
}
.matpage__rail-title {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--ink);
}
.mat-variants {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.mat-variants li { margin: 0 0 6px; }
.mat-variants__btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.mat-variants__btn:hover { color: var(--accent); }
.mat-variants__btn.is-on {
  border-color: var(--accent);
  background: #fff;
  color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}
.mat-rates {
  margin: 0 0 12px;
}
.mat-rates > div {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.mat-rates dt { color: var(--muted); margin: 0; }
.mat-rates dd { margin: 0; font-weight: 500; }
.mat-rates__note {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.matpage__rail .btn { width: 100%; box-sizing: border-box; }

.mat-prose { max-width: 46em; }
.mat-prose h2 {
  text-align: left;
  margin-bottom: 16px;
}
.mat-prose__lead {
  color: var(--muted);
  margin: 0 0 16px;
}
.mat-bullets {
  margin: 0 0 20px;
  padding-left: 1.2em;
  line-height: 1.55;
}
.mat-bullets li { margin: 0 0 8px; }
.mat-specs {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mat-specs li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
}
.mat-specs li:first-child { border-top: 1px solid var(--line); }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 14px;
}
.spec-table th,
.spec-table td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.spec-table th {
  width: 38%;
  font-weight: 500;
  background: #f7f8f5;
  color: var(--ink);
}

.mat-alts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.mat-alt {
  display: block;
  background: var(--surface);
  color: inherit;
  border: 1px solid var(--line);
}
.mat-alt:hover { color: inherit; }
.mat-alt__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #ddd;
}
.mat-alt__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--t) var(--ease);
}
.mat-alt:hover img { opacity: 0.88; }
.mat-alt__title {
  margin: 14px 14px 4px;
  font-size: 16px;
  color: var(--accent);
}
.mat-alt__name {
  margin: 0 14px 16px;
  color: var(--muted);
  font-size: 14px;
}
.mat-alts__cta {
  text-align: center;
  margin: 32px 0 0;
}

.page-stub {
  /* ponytail: never set padding-top here — it overrides main’s header clear */
  padding-bottom: 64px;
  min-height: calc(100vh - var(--promo-h) - var(--header-h) - 220px);
}
.page-stub .wrap {
  max-width: 40rem;
  padding-top: 40px;
}
.page-stub h1 {
  font-size: clamp(24px, 4vw, 32px);
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.2;
}
.page-stub p {
  color: var(--muted);
  max-width: 36em;
  line-height: 1.5;
  margin: 0;
}

/* Print hub */
.prose { max-width: 46em; margin: 0 auto; line-height: 1.55; }
.prose p { margin: 0 0 1.1em; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.split__dark {
  background: var(--accent-deep);
  color: #e8efe9;
  padding: 36px 28px;
  min-height: 280px;
}
.split__dark h3 { color: #fff; }
.split__dark p { color: #d7e0d7; }
.split__light {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 36px 28px;
  min-height: 280px;
}
.split__light p + .btn,
.split__light p + button { margin-top: 12px; }

.howmuch-note {
  color: var(--muted);
  font-size: 13px;
  max-width: 46em;
  margin: 20px auto 0;
}

.mats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.mat {
  display: block;
  background: var(--surface);
  color: inherit;
}
.mat:hover { color: inherit; }
.mat__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #ddd;
}
.mat__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mat__body { padding: 14px 8px 16px; }
.mat__title {
  color: var(--accent);
  text-decoration: underline;
  font-size: 18px;
  margin: 0 0 8px;
}
.mat__term {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.mat--featured { box-shadow: inset 0 0 0 2px var(--accent); }

.pointer { text-align: center; }
.useful__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}
.useful__list li { margin: 0 0 12px; text-align: center; }
.useful__list a { font-size: 16px; }

.form--brief {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: var(--surface);
  padding: 32px;
  border: 1px solid var(--line);
}
.form--brief .form__full { grid-column: 1 / -1; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.form--brief h3 { margin-top: 0; }

/* Корпуса `/korpusa/` */
.enc-lead__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
}
.enc-lead h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.2;
}
.enc-lead__sub {
  color: var(--muted);
  max-width: 36em;
  margin: 0 0 20px;
}
.enc-lead__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8ebe6;
}
.enc-lead__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.enc-works-cta {
  text-align: center;
  margin: 28px 0 0;
}

/* Delivery / payment utility */
.ship {
  max-width: 46em;
  padding-top: 28px;
  padding-bottom: 64px;
  line-height: 1.55;
}
.ship h1 {
  margin: 0 0 28px;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.2;
  color: var(--ink);
}
.ship-block { margin: 0 0 40px; }
.ship-block h2 {
  margin: 0 0 18px;
  font-size: 22px;
}
.ship-block h3 {
  margin: 22px 0 8px;
  font-size: 16px;
  color: var(--ink);
}
.ship-block p { margin: 0 0 0.9em; color: var(--ink); }
.ship-fee {
  font-weight: 500;
  color: var(--accent-mid);
  white-space: nowrap;
}
.ship-fallback {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
}

.rules {
  max-width: 46em;
  padding-top: 28px;
  padding-bottom: 64px;
  line-height: 1.55;
}
.rules h1 {
  margin: 0 0 20px;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.2;
  color: var(--ink);
}
.rules__lead {
  margin: 0 0 24px;
  color: var(--ink);
}
.rules__list {
  margin: 0 0 28px;
  padding-left: 1.35em;
  max-width: none;
}
.rules__list li {
  margin: 0 0 1em;
  color: var(--ink);
}
.rules__list li:last-child { margin-bottom: 0; }
.rules__note {
  margin: 0;
  padding: 14px 16px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-size: 14px;
}

/* Макеты `/makety/` */
.form select {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: inherit;
  color: inherit;
}
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.maket-offer__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.maket-offer__copy h1 {
  text-align: left;
  margin: 0 0 20px;
  max-width: 18em;
}
.maket-offer__bullets {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.maket-offer__bullets li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--muted);
}
.maket-offer__bullets li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 10px;
  top: 10px;
}
.maket-offer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0;
}
.maket-offer__link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-style: dotted;
}
.maket-offer__media {
  margin: 0;
  background: #e4e8e3;
  overflow: hidden;
}
.maket-offer__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.maket-caps {
  max-width: 40em;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.maket-caps li {
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
  line-height: 1.45;
}
.maket-caps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1em;
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  box-sizing: border-box;
}
.maket-caps li:nth-child(odd)::before { border-radius: 2px; }
.maket-caps li:nth-child(even)::before { border-radius: 50%; }
.maket-cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.maket-case {
  background: var(--surface);
  border: 1px solid var(--line);
}
.maket-case__media {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ddd;
}
.maket-case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--t) var(--ease);
}
.maket-case:hover img { opacity: 0.88; }
.maket-case__body { padding: 18px 18px 22px; }
.maket-case__title {
  margin: 0 0 14px;
  font-size: 18px;
  color: var(--accent);
}
.maket-case__meta {
  margin: 0;
  display: grid;
  gap: 10px;
}
.maket-case__meta div { margin: 0; }
.maket-case__meta dt {
  display: inline;
  font-weight: 600;
  color: var(--ink);
}
.maket-case__meta dt::after { content: ": "; }
.maket-case__meta dd {
  display: inline;
  margin: 0;
  color: var(--muted);
}
.maket-factors {
  max-width: 36em;
  margin: 0 auto;
  padding: 0 0 0 1.2em;
  line-height: 1.55;
}
.maket-factors li { margin: 0 0 10px; }

@media (max-width: 61.99em) {
  .header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .header__brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
  }
  .nav,
  .header__contacts { display: none; }
  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: static;
    flex: 0 0 auto;
    margin: 0;
    margin-left: auto;
    z-index: 15;
    background: var(--surface);
    border: 1px solid var(--ink);
  }
  body.menu-open .nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--chrome);
    left: 0;
    right: 0;
    height: auto;
    max-height: calc(100vh - var(--chrome));
    overflow: auto;
    background: var(--surface);
    z-index: 21;
    padding: 16px 20px 32px;
    align-items: stretch;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }
  body.header-docked.menu-open .nav {
    top: var(--header-h);
    max-height: calc(100vh - var(--header-h));
  }
  body.menu-open .nav__link,
  body.menu-open .nav__btn {
    height: auto;
    line-height: 1.4;
    padding: 12px 0;
    white-space: normal;
    font-size: 18px;
  }
  body.menu-open .nav__sub {
    position: static;
    display: block;
    box-shadow: none;
    padding-left: 12px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .grid--3,
  .grid--4,
  .works-grid,
  .mats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .split,
  .form--brief { grid-template-columns: 1fr; }
  .hero--print .hero__bullets { grid-template-columns: 1fr 1fr; }
  .btn--row { height: auto; min-height: 70px; padding: 14px 16px 14px 20px; }
  .matpage { grid-template-columns: 1fr; }
  .mat-alts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .enc-lead__grid { grid-template-columns: 1fr; }
  .maket-offer__grid { grid-template-columns: 1fr; }
  .maket-cases { grid-template-columns: 1fr; }
  .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 47.99em) {
  h1 { font-size: 26px; }
  .grid--2,
  .grid--3,
  .grid--4,
  .steps,
  .nomodel__grid,
  .footer__grid,
  .works-grid,
  .mats,
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .hero--print .hero__bullets { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 420px; padding: 28px 12px; overflow: visible; }
  .hero h1 { max-width: none; font-size: 24px; }
  .hero__actions { max-width: 100%; }
  .hero__actions .btn {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
  }
  :root { --header-h: 72px; }
  .header {
    height: var(--header-h);
  }
  .header__inner { height: var(--header-h); }
  .header__brand .btn--header { display: none; }
  .header__logo { height: 36px; }
  .header__logo img { height: 36px; max-width: 120px; }
  .menu-toggle {
    height: 40px;
    padding: 0 12px;
  }
  .promo {
    font-size: 12px;
  }
  .page-stub {
    min-height: calc(100vh - var(--promo-h) - var(--header-h) - 280px);
    padding-bottom: 48px;
  }
  .page-stub .wrap { padding-top: 28px; }
  .ship,
  .rules { padding-top: 20px; padding-bottom: 48px; }
  .form--brief { padding: 20px 16px; }
  .footer__grid { gap: 20px; }
  .works-grid { gap: 8px; }
  .section { padding: 32px 0; }
  .mat-alts { grid-template-columns: minmax(0, 1fr); }
  .matpage-top h1 { font-size: 24px; }
  .spec-table th { width: 42%; }
}

@media (min-width: 62em) {
  .nav__link,
  .nav__btn { font-size: 17px; padding: 0 10px; }
}
@media (min-width: 75em) {
  .nav__link,
  .nav__btn { font-size: 18px; }
}

/* CNC / frezerovka — page-local only */
.cnc-offer h1 {
  margin: 0 0 12px;
  max-width: 22em;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.2;
}
.cnc-offer__note {
  margin: 0 0 20px;
  max-width: 40em;
  color: var(--muted);
  font-size: 17px;
}
.cnc-offer__bullets {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  max-width: 40em;
}
.cnc-offer__bullets li {
  position: relative;
  padding-left: 18px;
}
.cnc-offer__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}
.cnc-how {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 32px 40px;
  align-items: center;
}
.cnc-how .section__title { text-align: left; }
.cnc-how .prose { margin: 0 0 20px; }
.cnc-how__media {
  margin: 0;
  background: #e8ebe6;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.cnc-how__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cnc-mats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
  max-width: 40em;
  margin: 0 auto 16px;
}
.cnc-mats h3 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 18px;
}
.cnc-mats ul {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.7;
}
.cnc-mats__note,
.cnc-apps-lead {
  text-align: center;
  color: var(--muted);
  max-width: 40em;
  margin-left: auto;
  margin-right: auto;
}
.cnc-apps { margin-top: 28px; }
.cnc-app {
  padding: 20px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.cnc-app h3 {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 18px;
}
.cnc-app p { margin: 0; line-height: 1.5; }
.cnc-fieldset {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
.cnc-fieldset legend {
  padding: 0;
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 14px;
}
.cnc-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}
.cnc-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
}

@media (max-width: 61.99em) {
  .cnc-how { grid-template-columns: 1fr; }
  .cnc-mats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 47.99em) {
  .cnc-offer__bullets,
  .cnc-mats,
  .cnc-checks { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .card:hover img,
  .mat:hover img,
  .mat-alt:hover img,
  .maket-case:hover img,
  .work:hover img { opacity: 1; }
}

/* Литьё `/litie/` — page-only; do not touch home/matpage rules above */
.litie-hero {
  padding-top: 36px;
  padding-bottom: 40px;
}
.litie-hero h1 {
  margin: 0 0 20px;
  max-width: 22em;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.2;
}
.litie-hero__bullets {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  max-width: 40em;
}
.litie-hero__bullets li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 1.25em;
  line-height: 1.45;
}
.litie-hero__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55em;
  height: 0.55em;
  background: var(--accent);
  transform: rotate(45deg);
}
.litie-hero__cta { margin: 0; }

.litie-families {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}
.litie-family {
  background: var(--surface);
  padding: 0 0 16px;
}
.litie-family__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #ddd;
  margin-bottom: 14px;
}
.litie-family__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.litie-family h3 {
  margin: 0 16px 10px;
  color: var(--accent);
  font-size: 18px;
}
.litie-family ul {
  margin: 0 16px 8px;
  padding-left: 1.15em;
  font-size: 14px;
  line-height: 1.45;
}
.litie-family li { margin: 0 0 6px; }

.litie-why { min-height: 0; }
.litie-why .why__item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
}
.litie-why .why__item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.litie-mid-cta { margin-top: 32px; }

.litie-stages {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: litie-stage;
  max-width: 46em;
  margin-left: auto;
  margin-right: auto;
}
.litie-stages > li {
  counter-increment: litie-stage;
  margin: 0 0 28px;
  padding-left: 3rem;
  position: relative;
}
.litie-stages > li::before {
  content: counter(litie-stage);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.litie-stages h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 500;
  line-height: 2.25rem;
}
.litie-stages p {
  margin: 0 0 0.75em;
  line-height: 1.55;
  color: var(--ink);
}
.litie-stages p:last-child { margin-bottom: 0; }

.litie-fieldset {
  border: 0;
  margin: 12px 0 4px;
  padding: 0;
}
.litie-fieldset legend {
  padding: 0;
  font-size: 14px;
  margin-bottom: 6px;
}
.litie-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 8px;
}
.litie-choices label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}
.litie-choices input {
  width: auto;
  margin: 0;
}

@media (max-width: 61.99em) {
  .litie-families { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 47.99em) {
  .litie-families { grid-template-columns: minmax(0, 1fr); }
  .litie-hero h1 { font-size: 24px; }
  .litie-stages > li { padding-left: 2.75rem; }
}

/* Prototipy `/prototipy/` — append-only */
.proto-graf {
  margin-top: 28px;
  text-align: center;
}
.proto-tech { padding-top: 40px; padding-bottom: 48px; }
.proto-tech__title {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 22px;
  font-weight: 500;
  text-align: center;
}
.proto-tech__h {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 500;
}
.proto-tech__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 28px 40px;
  margin-bottom: 28px;
  align-items: start;
}
.proto-tech__mats {
  margin: 0 0 20px;
  padding-left: 18px;
  line-height: 1.45;
}
.proto-tech__mats li { margin-bottom: 6px; }
.proto-tech__desc p { margin: 0 0 1em; line-height: 1.55; }
.proto-tech__desc p:last-child { margin-bottom: 0; }
.proto-tech__thumbs { margin-top: 8px; }
.proto-stages__title {
  margin: 36px 0 20px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
}
.proto-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.proto-stages li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 16px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.proto-stages__n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 500;
  font-size: 16px;
}
.proto-stages__label {
  font-size: 14px;
  line-height: 1.35;
  max-width: 12em;
}
.proto-stages__note { margin-top: 8px; text-align: center; }

@media (max-width: 61.99em) {
  .proto-tech__layout { grid-template-columns: 1fr; }
  .proto-stages { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 47.99em) {
  .proto-stages { grid-template-columns: minmax(0, 1fr); }
}

/* /modelirovanie/ — thin service; append-only .model- */
.model-hero .wrap { max-width: 46em; }
.model-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.2;
}
.model-hero__lead {
  margin: 0 0 24px;
  max-width: 36em;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}
.model-split { margin: 0 auto; }
.model-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.model-form-note {
  margin: 0 auto 24px;
  text-align: center;
  color: var(--muted);
}
.model-form textarea { min-height: 10rem; }

@media (max-width: 61.99em) {
  .model-steps { grid-template-columns: 1fr; }
}

/* /calculator/ — append-only .calc- */
.calc-page {
  padding-top: 28px;
  padding-bottom: 48px;
  max-width: 46em;
}
.calc-page h1 {
  margin: 0 0 28px;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.2;
}
.calc-banner {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cta);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}
.calc-step {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.calc-step__title {
  margin: 0 0 14px;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.calc-shapes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.calc-shape {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 14px 8px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  text-align: center;
  color: var(--muted);
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.calc-shape:hover { color: var(--accent); border-color: var(--accent); }
.calc-shape:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.calc-shape:has(input:checked) {
  color: var(--accent-deep);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.calc-shape input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.calc-shape__face {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.calc-shape__name {
  font-size: 13px;
  font-weight: 500;
  color: inherit;
}
.calc-dims {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
.calc-field {
  display: block;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.calc-field input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: inherit;
  color: var(--ink);
}
.calc-field--wall { max-width: 12em; }
.calc-hint,
.calc-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.calc-volume {
  margin: 0 0 8px;
  font-size: 15px;
}
.calc-actions { margin: 20px 0 32px; }
.calc-results__title {
  margin: 0 0 12px;
  font-size: 18px;
}
.calc-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}
.calc-table th,
.calc-table td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.calc-table th {
  background: #e8ebe6;
  font-weight: 600;
  font-size: 13px;
}
.calc-table td:last-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 47.99em) {
  .calc-shapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-dims { grid-template-columns: minmax(0, 1fr); }
}

/* /kontakty/ — utility; append-only .contact- */
.contact-map {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
  padding: 28px 20px;
  background:
    linear-gradient(135deg, rgba(47, 111, 78, 0.08), transparent 55%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 11px,
      rgba(213, 210, 200, 0.55) 11px,
      rgba(213, 210, 200, 0.55) 12px
    ),
    var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}
.contact-map__label {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
}
.contact-map__hint {
  margin: 0 auto;
  max-width: 28em;
  color: var(--muted);
  font-size: 14px;
}
.contact-form {
  max-width: 28rem;
  margin: 16px 0 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.contact-success {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  color: var(--ink);
}


/* /blog/ — list + article; append-only .blog- */
.blog {
  max-width: 46em;
  padding-top: 28px;
  padding-bottom: 64px;
  line-height: 1.55;
}
.blog h1 {
  margin: 0 0 28px;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.2;
  color: var(--ink);
}
.blog-lead {
  margin: -12px 0 32px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
  max-width: 36em;
}
.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.blog-teaser {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.blog-teaser:last-child { border-bottom: 1px solid var(--line); }
.blog-teaser__title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
}
.blog-teaser__title a {
  color: var(--ink);
  text-decoration: none;
}
.blog-teaser__title a:hover { color: var(--accent); }
.blog-teaser p {
  margin: 0 0 0.7em;
  color: var(--ink);
  max-width: 40em;
}
.blog-teaser p:last-child { margin-bottom: 0; }
.blog-prose { max-width: 46em; }
.blog-prose h2 {
  margin: 1.6em 0 0.6em;
  font-size: 20px;
  line-height: 1.3;
}
.blog-prose p { margin: 0 0 1.1em; color: var(--ink); }
.blog-prose ul {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
}
.blog-prose li { margin: 0 0 0.4em; }
.blog-related {
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.blog-related h2 {
  margin: 0 0 14px;
  font-size: 18px;
}
.blog-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-related li { margin: 0 0 8px; }
.blog-related a { color: var(--accent); }
.blog-related a:hover { color: var(--accent-mid); }

/* /uroki/ — list + article; append-only .urok- */
.urok {
  max-width: 46em;
  padding-top: 28px;
  padding-bottom: 64px;
  line-height: 1.55;
}
.urok h1 {
  margin: 0 0 28px;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.2;
  color: var(--ink);
}
.urok-lead {
  margin: -12px 0 32px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
  max-width: 36em;
}
.urok-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.urok-teaser {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.urok-teaser:last-of-type { border-bottom: 1px solid var(--line); }
.urok-teaser__title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
}
.urok-teaser__title a {
  color: var(--ink);
  text-decoration: none;
}
.urok-teaser__title a:hover { color: var(--accent); }
.urok-teaser p {
  margin: 0 0 0.7em;
  color: var(--ink);
  max-width: 40em;
}
.urok-teaser p:last-child { margin-bottom: 0; }
.urok-blog {
  margin: 36px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}
.urok-blog h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
}
.urok-blog h2 a {
  color: var(--ink);
  text-decoration: none;
}
.urok-blog h2 a:hover { color: var(--accent); }
.urok-blog p {
  margin: 0 0 0.7em;
  color: var(--ink);
  max-width: 40em;
}
.urok-blog p:last-child { margin-bottom: 0; }
.urok-prose { max-width: 46em; }
.urok-prose h2 {
  margin: 1.6em 0 0.6em;
  font-size: 20px;
  line-height: 1.3;
}
.urok-prose p { margin: 0 0 1.1em; color: var(--ink); }
.urok-prose ol,
.urok-prose ul {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
}
.urok-prose li { margin: 0 0 0.45em; }
.urok-related {
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.urok-related h2 {
  margin: 0 0 14px;
  font-size: 18px;
}
.urok-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.urok-related li { margin: 0 0 8px; }
.urok-related a { color: var(--accent); }
.urok-related a:hover { color: var(--accent-mid); }

/* /raschet/ — quote path; append-only .quote- */
.quote {
  padding: 28px 15px 64px;
}
.quote h1 {
  margin: 0 0 20px;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.2;
}
.quote-banner {
  margin: 0 0 28px;
  padding: 16px 18px;
  border-left: 3px solid var(--cta);
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quote-banner p {
  margin: 0;
  max-width: 46em;
  line-height: 1.55;
  color: var(--ink);
}
.quote-upload { margin: 0 0 40px; }
.quote-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 28px 16px;
  border: 2px dashed var(--line);
  background: var(--bg);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.quote-drop:hover,
.quote-drop:focus-within {
  border-color: var(--accent);
  background: #fff;
}
.quote-drop__icon {
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
}
.quote-drop__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.quote-drop__hint {
  max-width: 28em;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}
.quote-drop input[type="file"] {
  width: 100%;
  max-width: 22em;
  margin-top: 8px;
  font: inherit;
}
.quote-formats {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}
.quote-formats strong { color: var(--ink); font-weight: 500; }
.quote-benefits h2 {
  margin: 0 0 20px;
  text-align: center;
  font-size: clamp(20px, 2.4vw, 24px);
}
.quote-benefits__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.quote-benefits__list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink);
}
.quote-benefits__n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 500;
  font-size: 15px;
}

@media (max-width: 61.99em) {
  .quote-benefits__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 47.99em) {
  .quote-benefits__list { grid-template-columns: minmax(0, 1fr); }
}

/* /printery/ — intro + 2×2 tech teasers */
.printers-intro h1 { margin-bottom: 0.75em; }
.printers-teasers .card__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

/* /specproekty/ — pitch + 3 lines + 2 stories */
.spec {
  max-width: 64em;
  padding-top: 28px;
  padding-bottom: 64px;
  line-height: 1.55;
}
.spec h1 {
  margin: 0 0 20px;
  max-width: 22em;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.2;
  color: var(--ink);
}
.spec__pitch {
  max-width: 42em;
  margin: 0 0 22px;
  color: var(--ink);
}
.spec__lines {
  max-width: 36em;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}
.spec__lines li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 1.4em;
  color: var(--ink);
}
.spec__lines li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border: 2px solid var(--accent);
  transform: rotate(45deg);
  box-sizing: border-box;
}
.spec-stories { margin-top: 8px; }
.case__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* /faq/ — index + answer; append-only .faq- */
.faq {
  max-width: 46em;
  padding-top: 28px;
  padding-bottom: 64px;
  line-height: 1.55;
}
.faq h1 {
  margin: 0 0 28px;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.2;
  color: var(--ink);
}
.faq-lead {
  margin: -12px 0 32px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
  max-width: 36em;
}
.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.faq-list li {
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.faq-list a {
  display: block;
  padding: 16px 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  line-height: 1.35;
}
.faq-list a:hover { color: var(--accent); }
.faq-prose { max-width: 46em; }
.faq-prose p { margin: 0 0 1.1em; color: var(--ink); }
.faq-prose p:last-child { margin-bottom: 0; }
.faq-related {
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.faq-related h2 {
  margin: 0 0 14px;
  font-size: 18px;
}
.faq-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.faq-related li { margin: 0 0 8px; }
.faq-related a { color: var(--accent); }
.faq-related a:hover { color: var(--accent-mid); }
