/* Надпись на логотипе — плотный геометрический гротеск.
   Montserrat (SIL OFL), файлы css/fonts, вес 100–900. Запасной стек — Segoe UI. */

@font-face {
  font-family: "KPD Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "KPD Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "KPD Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Красный снят с полос логотипа, самый частый тон #e95845. */
  --yellow: #e95845;
  --yellow-hover: #f06c58;
  --yellow-deep: #c73d32;
  --ink: #212529;
  --ink-2: #343a40;
  --muted: #868e96;
  --muted-2: #adb5bd;
  --line: #e9ecef;
  --line-2: #f1f3f5;
  --paper: #f8f9fa;
  --footer: #1b1e20;
  --radius: 0;
}

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

html {
  font-size: 14px;
  font-family: "KPD Sans", "Segoe UI", sans-serif, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
}

::selection {
  background: #e95845;
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Каталог и карточка товара: фото на белом, страница того же цвета. Главная не входит — у неё белая только лента каталога. */
body:has(.prod-photo),
body:not(:has(.home-categories)):has(.cat-grid) {
  background: #fff;
}

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

a { color: inherit; }

button, input, textarea { font-family: inherit; }

p { margin: 20px 0; line-height: 24px; }

h1, h2 { font-weight: 800; letter-spacing: -0.035em; color: var(--ink); }
h3, h4 { font-weight: 650; letter-spacing: -0.02em; color: var(--ink); }

.skip-link {
  position: absolute;
  left: 8px;
  top: -40px;
  background: var(--yellow);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 1000;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* ---------------------------------------------------------- шапка */

.header {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 46px auto;
  align-items: center;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  width: 100vw;
  height: 100%;
  background: #fff linear-gradient(-180deg, #212529 0%, #212529 46px, #e2e2e2 46px, #fefefe 57px, #fff 100%);
}

.header-top {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 46px;
  padding: 12px 0;
  color: var(--muted-2);
  line-height: 22px;
}

.header-block { position: relative; white-space: nowrap; }

.header-block__icon {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-block;
  vertical-align: middle;
  color: var(--yellow);
  margin-right: 8px;
}

.header-block__icon svg { display: block; width: 26px; height: 26px; stroke-width: 2.4; }

.header-block__content { display: inline-block; vertical-align: middle; }

.header-block__text {
  display: inline-block;
  vertical-align: middle;
  line-height: 20px;
  color: #fff;
  text-decoration: none;
}

.header-block__link {
  display: inline-block;
  vertical-align: middle;
  text-decoration: none;
  font-size: 13px;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: var(--yellow);
  background: none;
  border-bottom: 1px solid rgba(233, 88, 69, 0.7);
  line-height: 16px;
  margin-left: 8px;
}

.header-block__link:hover {
  color: #fff;
  background: none;
  border-bottom-color: #fff;
}

.header-logo { padding: 24px 8px 24px 0; }

.header-logo img {
  width: auto;
  max-width: 220px;
  height: auto;
  display: block;
}

.header-nav { position: relative; }

.header-nav__icon {
  display: none;
  color: var(--ink-2);
  width: 32px;
  height: 32px;
  padding: 9px 6px;
  margin: 0 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 260;
}

.header-nav__icon svg { display: block; width: 20px; height: 14px; }

.header-nav__body {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px 12px 20px 8px;
}

.header-nav__item {
  font-weight: 600;
  letter-spacing: -0.01em;
  display: block;
  font-size: 14px;
  color: var(--ink);
  line-height: 22px;
  text-decoration: none;
  padding: 9px 11px 7px;
  white-space: nowrap;
  position: relative;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.header-nav__item::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 5px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
  pointer-events: none;
}

.header-nav__item:hover,
.header-nav__item_active {
  background: transparent;
  color: var(--yellow-deep);
}

.header-nav__item:hover::after,
.header-nav__item_active::after { transform: scaleX(1); }

.header-nav__item_active { font-weight: 700; }

.header-nav-dropdown { position: relative; }

.header-nav-dropdown > .header-nav__item {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%23868E96' fill-rule='evenodd' d='M7.775 1.367c.3-.312.3-.82 0-1.132a.747.747 0 0 0-1.088 0L4 3.034 1.313.234a.747.747 0 0 0-1.088 0c-.3.313-.3.82 0 1.133l3.2 3.398A.75.75 0 0 0 4 5a.75.75 0 0 0 .575-.234l3.2-3.398z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 22px;
}

.header-nav-dropdown > .header-nav__item::after { right: 22px; }

.header-nav-dropdown__body {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 2px 40px 0 rgba(33, 37, 41, 0.1);
  flex-direction: column;
  padding: 16px 0;
  min-width: 220px;
  z-index: 260;
}

.header-nav-dropdown__body::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -8px;
  border: 8px solid transparent;
  border-bottom-color: #fff;
}

.header-nav-dropdown:hover .header-nav-dropdown__body,
.header-nav-dropdown.open .header-nav-dropdown__body { display: flex; }

.header-nav-dropdown__body .header-nav__item { font-weight: 500; }

.header-nav-dropdown__body .header-nav__item::after { content: none; }

.header-nav-dropdown__body .header-nav__item:hover,
.header-nav-dropdown__body .header-nav__item_active {
  background: #fff8f7;
  color: var(--yellow-deep);
  box-shadow: inset 2px 0 0 var(--yellow);
}

.header-pricelist { padding: 16px 0; }

/* ---------------------------------------------------------- кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding: 9px 20px;
  border-radius: 0;
  font-size: 14px;
  border: 0;
  line-height: 22px;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.btn:hover {
  background: var(--yellow-deep);
  color: #fff;
  box-shadow: none;
  transform: none;
}

.btn:active { box-shadow: none; transform: none; background: #a83228; color: #fff; }

.btn__icon { display: inline-flex; }
.btn__icon svg { display: block; width: 20px; height: 20px; stroke-width: 2.4; }

.btn-ghost,
.btn_black {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.btn-ghost:hover,
.btn_black:hover { background: var(--yellow); color: var(--ink); }

/* ---------------------------------------------------------- первый экран */

.hero {
  position: relative;
  margin: 0;
  color: #fff;
  width: 100%;
  max-width: none;
  padding: 7vw 20px 10vw;
  background-color: #212529;
  background-image:
    linear-gradient(rgba(33, 37, 41, 0.45), rgba(33, 37, 41, 0.55)),
    url("/site/static/img/pptx/zavod-hero-1920.webp");
  background-size: cover;
  background-position: center;
  z-index: 2;
  overflow: hidden;
}

.hero__title {
  text-align: center;
  width: 80%;
  max-width: 1024px;
  margin: 0 auto 80px;
  padding: 0 24px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 42px;
  line-height: 48px;
}

.hero__content {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.hero::before,
.hero::after {
  content: "";
  width: 100%;
  height: 10vw;
  background: var(--paper);
  position: absolute;
  top: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero::before {
  right: 50%;
  transform: rotate(10deg);
  transform-origin: right;
}

.hero::after {
  left: 50%;
  transform: rotate(-10deg);
  transform-origin: left;
}

.icon-slider__body { display: flex; }

.icon-slider__block {
  text-align: center;
  flex: 1 1 auto;
  padding: 16px;
  animation: icon-in 0.7s ease both;
}

.icon-slider__block:nth-child(2) { animation-delay: 0.14s; }
.icon-slider__block:nth-child(3) { animation-delay: 0.28s; }

.icon-slider__icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 8px;
  color: var(--yellow);
  animation: icon-float 3.6s ease-in-out infinite;
}

.icon-slider__block:nth-child(1) .icon-slider__icon { animation-delay: 0.7s; }
.icon-slider__block:nth-child(2) .icon-slider__icon { animation-delay: 1.15s; }
.icon-slider__block:nth-child(3) .icon-slider__icon { animation-delay: 1.55s; }

.icon-slider__icon svg {
  width: 76px;
  height: 76px;
  display: block;
  margin: 0 auto;
  stroke-width: 2.6;
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: icon-draw 1.15s ease forwards;
  transition: transform 0.25s ease;
}

.icon-slider__block:nth-child(2) .icon-slider__icon svg { animation-delay: 0.16s; }
.icon-slider__block:nth-child(3) .icon-slider__icon svg { animation-delay: 0.32s; }

.icon-slider__block:hover .icon-slider__icon svg { transform: scale(1.08); }

@keyframes icon-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes icon-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.icon-slider__title {
  display: block;
  margin: 10px auto;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
}

.icon-slider__text {
  line-height: 20px;
  max-width: 300px;
  margin: 0 auto;
  font-size: 14px;
  opacity: 0.9;
}

/* ---------------------------------------------------------- секции */

section {
  max-width: 1280px;
  width: 100%;
  margin: 30px auto 60px;
  padding: 0 24px;
  position: relative;
  z-index: 3;
}

section.full {
  max-width: 100%;
  padding: 0;
  margin-top: 40px;
  margin-bottom: 40px;
}

.section-title,
.content h2 {
  font-weight: 800;
  letter-spacing: -0.035em;
  font-size: 30px;
  line-height: 36px;
  margin: 0 0 20px;
}

h1.section-title {
  font-size: 42px;
  line-height: 48px;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}

.center { text-align: center; }

.wrap { width: 100%; }

.lede { font-size: 16px; line-height: 24px; color: var(--ink-2); max-width: 760px; }

.page-hero { margin-top: 18px; margin-bottom: 8px; }

.crumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  margin: 0 0 16px;
  line-height: 22px;
  font-size: 13px;
}

.crumbs li { display: inline-flex; align-items: center; }

.crumbs a {
  position: relative;
  padding-right: 14px;
  margin-right: 8px;
  color: #697178;
  text-decoration: none;
}

.crumbs a::after {
  content: "";
  width: 3px;
  height: 5px;
  position: absolute;
  top: 8px;
  right: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='3' height='5' viewBox='0 0 3 5'%3E%3Cpath fill='%23868E96' d='M.82 4.86a.48.48 0 0 1-.68-.68L1.82 2.5.14.82A.48.48 0 0 1 .82.14l2.04 2A.48.48 0 0 1 3 2.5a.48.48 0 0 1-.14.36l-2.04 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

.crumbs a:hover { color: var(--yellow-deep); }

.crumbs [aria-current="page"] { color: var(--muted-2); }

/* каталог — сетка как category-slider */

.cat-grid,
.home-categories .cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding-top: 8px;
}

.cat-card {
  display: block;
  text-align: center;
  color: var(--ink-2);
  text-decoration: none;
  padding: 16px 4px;
  position: relative;
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
}

.cat-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  display: block;
  margin: 8px 0;
  background: transparent;
  transition: transform 0.28s ease;
}

.cat-card:hover { color: var(--yellow-deep); }

.cat-card:hover img { transform: translateY(-4px); }

.cat-card h2,
.cat-card h3 {
  display: inline-block;
  max-width: 100%;
  position: relative;
  margin: 16px 0 4px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 14px;
  line-height: 22px;
}

.cat-card h2::after,
.cat-card h3::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin: 6px auto 0;
  background: var(--yellow);
  transition: width 0.28s ease;
}

.cat-card:hover h2,
.cat-card:hover h3 { color: var(--yellow-deep); }

.cat-card:hover h2::after,
.cat-card:hover h3::after { width: 100%; }

.cat-card p { margin: 0 0 8px; color: var(--muted); font-weight: 400; font-size: 13px; }

.cat-card p:empty { display: none; }

/* второй экран главной: белый фон как у фото, без серой подложки */

.home-categories {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 56px 24px 72px;
  background: #fff;
}

.home-categories .wrap {
  max-width: 1232px;
  margin: 0 auto;
}

.home-categories .cat-card {
  background: transparent;
  animation: cat-in 0.5s ease both;
}

.home-categories .cat-card:nth-child(2) { animation-delay: 0.04s; }
.home-categories .cat-card:nth-child(3) { animation-delay: 0.08s; }
.home-categories .cat-card:nth-child(4) { animation-delay: 0.12s; }
.home-categories .cat-card:nth-child(5) { animation-delay: 0.16s; }
.home-categories .cat-card:nth-child(6) { animation-delay: 0.2s; }
.home-categories .cat-card:nth-child(7) { animation-delay: 0.24s; }
.home-categories .cat-card:nth-child(8) { animation-delay: 0.28s; }
.home-categories .cat-card:nth-child(n + 9) { animation-delay: 0.32s; }

@keyframes cat-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .home-categories .cat-card,
  .cat-card img,
  .cat-card h2::after,
  .cat-card h3::after,
  .news-card img,
  .news-card::before,
  .header-nav__item::after,
  .page-anchors a::after,
  .icon-slider__block,
  .icon-slider__icon,
  .icon-slider__icon svg { animation: none; transition: none; }

  .icon-slider__icon svg { stroke-dashoffset: 0; }
}

.page-anchors {
  position: sticky;
  top: 0;
  z-index: 25;
  width: 100%;
  max-width: none;
  margin: 0 0 8px;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px -18px rgba(33, 37, 41, 0.45);
}

.page-anchors__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.page-anchors a {
  position: relative;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 15px;
  line-height: 22px;
}

.page-anchors a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.page-anchors a:hover,
.page-anchors a:focus-visible { color: var(--yellow-deep); }

.page-anchors a:hover::after,
.page-anchors a:focus-visible::after { transform: scaleX(1); }

#about,
#proizvodstvo,
#laboratoriya,
#dostavka,
#stati,
#kratko { scroll-margin-top: 64px; }

.section-more { margin-top: 20px; }

.aeo .answer {
  background: #fff;
  border-left: 4px solid var(--yellow);
  padding: 8px 8px 8px 20px;
}

/* три фото сфер применения */

.activity {
  display: flex;
  margin: 40px 0;
}

.activity__item {
  flex: 1 0 33.333%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background-color: #343a40;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #fff;
  text-align: center;
  text-decoration: none;
  padding: 60px 20px;
  position: relative;
}

.activity__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(33, 37, 41, 0.45);
}

.activity__icon,
.activity__text { position: relative; z-index: 1; }

.activity__icon { display: block; color: var(--yellow); margin: 0 auto 8px; }

.activity__icon svg { width: 64px; height: 64px; display: block; stroke-width: 2.6; }

.activity__text {
  margin: 16px auto;
  max-width: 70%;
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
}

/* о заводе и карта */

.about .split {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.about .split > div:first-child { flex: 1 1 45%; }

.about .map-wrap,
.about .split > .map-wrap { flex: 1 0 50%; min-width: 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.split.reverse > img { order: -1; }

.prod-photo { width: 100%; background: #fff; }

.answer dl {
  display: grid;
  grid-template-columns: minmax(140px, 240px) 1fr;
  gap: 8px 16px;
  margin: 16px 0;
}

.answer dt { color: var(--muted); }
.answer dd { margin: 0; font-weight: 500; }

/* преимущества */

.adv-grid {
  display: flex;
  background: #fff;
}

.adv {
  flex: 1 1 0;
  text-align: center;
  padding: 24px 16px;
  border-right: 1px solid var(--line-2);
}

.adv:last-child { border-right: 0; }

.adv b {
  display: block;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  margin-bottom: 8px;
}

.adv p { margin: 0 auto; max-width: 280px; font-size: 14px; line-height: 22px; opacity: 0.9; }

/* пролёты, склад, новости, галерея */

.bay { max-width: 1280px; margin: 0 auto 8px; padding: 0 24px; }

.bay h3 { font-size: 24px; line-height: 30px; margin: 0 0 12px; }

.prod-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.prod-mini a,
.prod-mini .item {
  width: 120px;
  text-align: center;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}

.prod-mini img { width: 100%; height: 90px; object-fit: cover; background: #fff; display: block; margin-bottom: 6px; }

.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.gal-grid a { display: block; background: #dee2e6; }

.gal-grid img { width: 100%; height: 180px; object-fit: cover; display: block; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.news-card {
  display: block;
  position: relative;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.news-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--yellow);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.22s ease;
  z-index: 1;
}

.news-card:hover::before { transform: scaleY(1); }

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.news-card:hover img { transform: scale(1.04); }

.news-card .pad { padding: 16px; }

.news-card time { color: var(--muted); font-size: 13px; }

.news-card h2,
.news-card h3 { margin: 8px 0 0; font-size: 16px; line-height: 22px; font-weight: 650; letter-spacing: -0.02em; }

.news-card:hover h2,
.news-card:hover h3 { color: var(--yellow-deep); }

.article-body h2 { font-size: 24px; line-height: 30px; }

.vac {
  background: #fff;
  padding: 8px 24px 16px;
  margin-bottom: 16px;
}

.vac h2 { font-size: 20px; line-height: 26px; }

.vac ul,
.article-body ul,
.lede ul {
  margin: 12px 0;
  padding-left: 24px;
  list-style: none;
}

.vac ul li,
.article-body ul li {
  position: relative;
  margin: 8px 0;
  line-height: 22px;
}

.vac ul li::before,
.article-body ul li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--yellow);
  border-radius: 10px;
  position: absolute;
  left: -16px;
  top: 8px;
}

/* таблица марок */

.toolbar { margin: 0 0 12px; }

.toolbar input,
.form input:not([type="checkbox"]),
.form textarea {
  width: 100%;
  border: 1px solid #ced4da;
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 22px;
  border-radius: 0;
}

.toolbar input { max-width: 420px; }

body:has(.prod-photo) .toolbar input { background: var(--paper); }

.form input:not([type="checkbox"]):focus,
.form textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(233, 88, 69, 0.16);
}

.form input::placeholder,
.form textarea::placeholder {
  color: #495057;
  opacity: 1;
}

.form textarea { min-height: 110px; resize: vertical; }

.form > .btn,
.form > .ok { grid-column: 1 / -1; justify-self: start; }

.table-wrap { overflow-x: auto; background: #fff; }

.table-hint { color: var(--muted); font-size: 13px; }

table { width: 100%; border-collapse: collapse; background: #fff; }

caption {
  text-align: left;
  font-weight: 600;
  padding: 14px 12px;
  caption-side: top;
}

th, td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th { background: var(--line-2); font-weight: 500; }

tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--yellow); }

/* заявки, карта, вопросы */

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.form .full { grid-column: 1 / -1; }

.consent {
  display: block;
  position: relative;
  margin: 0;
  padding: 12px 14px 12px 42px;
  border: 1px solid #ced4da;
  background: #fff8f7;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

.consent input {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: #e95845;
}

.consent a,
.lede a,
.article-body a,
.faq-answer a,
.about p a,
.vac p a {
  color: var(--yellow-deep);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.consent a:hover,
.lede a:hover,
.article-body a:hover,
.faq-answer a:hover,
.about p a:hover,
.vac p a:hover { color: var(--yellow); }

.ok { display: none; color: #2b8a3e; font-weight: 500; }
.ok.show { display: block; }

.cta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--ink);
  color: #fff;
  padding: 24px;
  margin-bottom: 28px;
}

.cta-bar b { font-size: 20px; }

.cta .contact-grid { grid-template-columns: minmax(0, 640px); }

.about ul { margin: 12px 0; padding-left: 24px; list-style: none; }
.about ul li { position: relative; margin: 8px 0; line-height: 22px; }
.about ul li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--yellow);
  border-radius: 10px;
  position: absolute;
  left: -16px;
  top: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.contact-list { display: grid; gap: 10px; }

.contact-list a,
.contact-list div { color: var(--ink); text-decoration: none; }

.map-wrap { min-height: 280px; background: #e9ecef; }

.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

.map-facade { padding: 28px 20px; }

.map-facade b { display: block; margin-bottom: 8px; font-size: 16px; }

.map-facade span { display: block; color: var(--ink-2); margin-bottom: 16px; }

.map-open {
  display: inline-block;
  margin-left: 14px;
  color: var(--yellow-deep);
  font-weight: 600;
  text-decoration: none;
}

.map-open:hover { text-decoration: underline; }

.faq-item { background: #fff; border-bottom: 1px solid var(--line); }

.faq-item summary {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 16px;
  transition: color 0.15s ease;
}

.faq-item summary:hover,
.faq-item[open] summary { color: var(--yellow-deep); }

.faq-answer { padding: 0 16px 14px; }

.faq-answer p { margin: 8px 0; }

/* ---------------------------------------------------------- подвал */

.footer { background: var(--ink); color: #fff; margin-top: 20px; }

.footer__body {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
}

.footer__logo {
  display: inline-block;
  align-self: flex-start;
  padding: 8px 0;
}

.footer__logo img { display: block; width: 188px; height: auto; background: transparent; }

.footer-contacts { flex: 1 1 auto; }

.footer-block {
  position: relative;
  padding-left: 36px;
  margin: 16px 0;
}

.footer-block__icon {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--yellow);
}

.footer-block__icon svg { width: 24px; height: 24px; display: block; stroke-width: 2.4; }

.footer-block__text {
  display: block;
  color: var(--muted);
  text-decoration: none;
  line-height: 22px;
}

.footer-block__text:hover { color: var(--yellow); }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
}

.footer-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: var(--yellow); }

.footer__bottom { background: var(--footer); color: var(--muted); font-size: 13px; }

.footer__bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  line-height: 18px;
}

.footer__bottom a { color: var(--yellow); text-decoration: none; }
.footer__bottom a:hover { text-decoration: underline; }

/* ---------------------------------------------------------- модальные */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(33, 37, 41, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 400;
  padding: 20px;
}

.overlay.open { display: flex; }

.modal {
  background: #fff;
  padding: 24px;
  width: min(520px, 100%);
  display: grid;
  gap: 12px;
}

.modal.form { grid-template-columns: 1fr; }

.form > h2 { grid-column: 1 / -1; }

.modal h2 { margin: 0 0 4px; font-size: 24px; }

.lightbox { max-width: min(1100px, 100%); max-height: 86vh; object-fit: contain; background: #fff; }

body.menu-open { overflow: hidden; }

/* ---------------------------------------------------------- мобильные */

@media (max-width: 992px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }

  .header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: none;
    min-height: 60px;
    margin: 0;
    padding: 0 8px 0 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .header:has(.header-nav.active) { z-index: 500; }

  .header::before { display: none; }

  .header-top,
  .header-pricelist { display: none; }

  .header-logo { flex: 1 1 auto; padding: 8px 0; }

  .header-logo img { height: 40px; width: auto; }

  .header-nav { flex: 0 0 auto; }

  .header-nav__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    color: var(--ink);
  }

  .header-nav__icon svg { width: 22px; height: 16px; stroke-width: 2.2; }

  .header-nav.active .header-nav__icon { z-index: 410; }

  .header-nav.active .header-nav__icon svg { opacity: 0; }

  .header-nav.active .header-nav__icon::before,
  .header-nav.active .header-nav__icon::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 21px;
    height: 2px;
    background: currentColor;
  }

  .header-nav.active .header-nav__icon::before { transform: rotate(45deg); }

  .header-nav.active .header-nav__icon::after { transform: rotate(-45deg); }

  .header-nav__body { display: none; }

  .header-nav.active .header-nav__body {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 400;
    padding: 68px 0 calc(16px + env(safe-area-inset-bottom, 0px));
    overflow: auto;
    box-shadow: none;
  }

  .header-nav.active .header-nav__body::before {
    content: "Меню";
    position: absolute;
    top: 18px;
    left: 20px;
    color: var(--ink);
    font-size: 20px;
    line-height: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
  }

  .header-nav-dropdown:hover .header-nav-dropdown__body { display: none; }

  .header-nav-dropdown__body {
    position: static;
    transform: none;
    box-shadow: none;
    background: var(--paper);
    display: none;
    min-width: 0;
    padding: 0;
  }

  .header-nav-dropdown__body::after { display: none; }

  .header-nav-dropdown.open .header-nav-dropdown__body,
  .header-nav-dropdown.open:hover .header-nav-dropdown__body { display: flex; }

  .header-nav__body .header-nav__item {
    width: 100%;
    max-width: none;
    padding: 16px 20px;
    font-size: 17px;
    line-height: 22px;
    white-space: normal;
    border-bottom: 1px solid var(--line);
  }

  .header-nav__body .header-nav__item::after { display: none; }

  .header-nav-dropdown > .header-nav__item {
    background-position: right 20px center;
    padding-right: 40px;
  }

  .header-nav-dropdown__body .header-nav__item {
    padding-left: 32px;
    font-size: 15px;
    background: var(--paper);
  }

  .page-anchors { top: 60px; }

  .hero__title,
  h1.section-title { font-size: 36px; line-height: 42px; }

  .section-title { font-size: 24px; line-height: 30px; }

  section { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 768px) {
  .activity { flex-direction: column; }

  .activity__item {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    min-height: 0;
    padding: 24px 20px;
  }

  .activity__icon { margin: 0 16px 0 0; }

  .activity__text { margin: 0; max-width: none; }

  .about .split,
  .split,
  .contact-grid,
  .adv-grid,
  .footer__body,
  .form { display: block; }

  .adv { border-right: 0; border-bottom: 1px solid var(--line-2); }

  .form .full { grid-column: auto; }

  .cta-bar,
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; }

  .cat-grid,
  .home-categories .cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }

  .home-categories .cat-card { flex: none; width: auto; margin: 0; }

  .cat-card { padding: 8px 4px 12px; }

  .cat-card img { height: 96px; margin: 4px 0; }

  .cat-card h2,
  .cat-card h3 { margin: 8px 0 2px; font-size: 13px; line-height: 18px; }

  .page-anchors__inner { padding-left: 20px; padding-right: 20px; gap: 8px 16px; }

  .hero { padding: 10vw 16px 15vw; }
  .hero__title {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 24px;
    font-size: 28px;
    line-height: 34px;
    overflow-wrap: break-word;
  }

  .answer dl { grid-template-columns: 1fr; }
  .answer dd { margin-bottom: 8px; }

  .header-pricelist .btn__text { display: none; }
  .header-pricelist .btn { padding: 7px 10px; border-radius: 16px; }
  .header-pricelist .btn__icon { margin: 0; }
}

@media (max-width: 480px) {
  .header { padding: 0 4px 0 12px; }
  .header-logo img { height: 40px; width: auto; }
  .header-pricelist { display: none; }
  h1.section-title,
  .hero__title { font-size: 28px; line-height: 34px; }
  .section-title { font-size: 20px; line-height: 26px; }
  section { padding-left: 16px; padding-right: 16px; }
}

/* -------------------------------------------------------------- чат завода */

.kpd-chat {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 320;
}

.kpd-chat__toggle { position: relative; }

.kpd-chat__toggle svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke-width: 2.2;
}

.kpd-chat--away:not(.open) {
  visibility: hidden;
  pointer-events: none;
}

.kpd-chat__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  display: none;
  flex-direction: column;
  width: min(380px, calc(100vw - 32px));
  height: min(520px, calc(100dvh - 140px));
  background: #fff;
  border: 1px solid #ced4da;
  box-shadow: none;
}

.kpd-chat.open .kpd-chat__panel { display: flex; }

.kpd-chat__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  background: var(--ink);
  color: #fff;
}

.kpd-chat__head h2 {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.kpd-chat__head p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 18px;
  color: #f1f3f5;
}

.kpd-chat__head a {
  color: #fff;
  font-weight: 650;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.kpd-chat__head a:hover { color: var(--yellow); }

.kpd-chat__close {
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  padding: 4px 0 4px 8px;
}

.kpd-chat__close:hover { color: var(--yellow); }

.kpd-chat__log {
  flex: 1 1 auto;
  overflow: auto;
  padding: 14px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kpd-chat__bubble {
  max-width: 92%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.kpd-chat__bubble--user {
  align-self: flex-end;
  background: #fff8f7;
  border-color: var(--yellow);
}

.kpd-chat__bubble--wait { color: var(--muted); }

.kpd-chat__form {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.kpd-chat__form label {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
}

.kpd-chat__form textarea {
  width: 100%;
  min-height: 64px;
  max-height: 120px;
  resize: vertical;
  border: 1px solid #ced4da;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 0;
}

.kpd-chat__form textarea::placeholder { color: #495057; opacity: 1; }

.kpd-chat__form textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(233, 88, 69, 0.16);
}

.kpd-chat__form .btn { justify-self: start; }

@media (max-width: 640px) {
  .kpd-chat__panel {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    width: auto;
    height: min(70dvh, 560px);
  }
}

/* Нижняя панель телефона: заявка, консультация, звонок. На компьютере её нет. */

.app-bar { display: none; }

@media (max-width: 992px) {
  .app-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 280;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px));
  }

  .app-bar__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 52px;
    padding: 4px 2px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 11px;
    font-weight: 650;
    line-height: 14px;
    text-decoration: none;
    cursor: pointer;
  }

  .app-bar__btn svg { width: 22px; height: 22px; display: block; stroke-width: 2; }

  .app-bar__btn.is-on,
  .app-bar__btn:active { color: var(--yellow-deep); }

  .app-bar__btn--call { color: var(--yellow-deep); }

  .kpd-chat__toggle { display: none; }

  .kpd-chat__panel {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    width: auto;
    height: min(68dvh, 560px);
  }
}
