/* ==========================================================================
   Погонажные изделия — завод «Белка»
   Дизайн-система взята с belka35-pellet.ru: оранжевый #F7931E, тёмный #1A1A1A,
   Roboto, заголовки блоков 48px normal, иконки-плитки 64px радиус 16px.
   ========================================================================== */

:root {
  --orange: #F7931E;
  --orange-dark: #e0820c;
  --orange-soft: #FEF3E4;
  --dark: #1A1A1A;
  --gray: #636464;
  --line: #E4E6E9;
  --bg: #FFFFFF;
  --bg-soft: #F6F7F9;
  --green: #77B259;
  --red: #AC182D;
  --radius: 14px;
  --shadow: 0 6px 28px rgba(26, 26, 26, .08);
  --shadow-hover: 0 14px 40px rgba(26, 26, 26, .14);
  --container: 1280px;
  --header-h: 74px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: Roboto, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--orange); color: #fff; padding: 12px 20px; font-weight: 700;
}
.skip-link:focus { left: 0; }

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

/* ---------- Типографика блоков ---------- */
.block-title {
  font-weight: 400;
  font-size: 48px;
  line-height: 1.25;
  margin: 0 0 24px;
  letter-spacing: -.5px;
}
.block-title--light { color: #fff; }

.section-lead {
  font-size: 18px;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 0 44px;
  color: #3a3a3a;
}
.section-lead--light { color: rgba(255, 255, 255, .82); }
.link { color: var(--orange); text-decoration: none; border-bottom: 1px solid rgba(247, 147, 30, .5); }
.link:hover { border-bottom-color: var(--orange); }

.section { padding: 90px 0; }
.section--info { background: var(--bg); }
.section--params { background: var(--bg-soft); }
.section--usage { background: var(--dark); color: #fff; }
.section--advantages { padding: 90px 0 40px; }
.section--gallery { background: var(--bg-soft); }
.section--numbers { background: var(--dark); }
.section--branches { background: var(--bg); }
.section--questions { background: var(--bg-soft); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid transparent; border-radius: 8px; cursor: pointer;
  font-size: 16px; font-weight: 700; line-height: 1.2; padding: 15px 30px;
  text-decoration: none; transition: background-color .25s, color .25s, border-color .25s, transform .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); }
.btn--outline { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn--outline:hover { background: var(--dark); color: #fff; }
.btn--ghost {
  background: transparent; color: var(--dark); border-color: var(--line);
  padding: 11px 20px; font-size: 15px;
}
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn--block { width: 100%; }

.btn-link {
  background: none; border: 0; border-bottom: 3px solid var(--orange);
  padding: 0 0 4px; cursor: pointer; font-size: 14px; font-weight: 500;
  color: inherit; letter-spacing: .3px; transition: color .25s;
}
.btn-link:hover { color: var(--orange); }
.btn-link--footer { margin-bottom: 4px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header { position: relative; }

.header-top {
  position: sticky; top: 0; z-index: 90;
  background: #fff; border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.header-top.is-stuck { box-shadow: 0 4px 20px rgba(0, 0, 0, .08); }

.header-top__inner {
  display: flex; align-items: center; gap: 26px;
  min-height: var(--header-h);
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo__mark { width: 56px; height: auto; aspect-ratio: 240 / 146; flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text b { font-size: 22px; font-weight: 900; letter-spacing: .5px; }
.logo__text i {
  font-style: normal; font-size: 9.5px; text-transform: uppercase;
  letter-spacing: .8px; color: var(--gray);
}
.logo--footer .logo__text i { text-transform: none; font-size: 12px; letter-spacing: 0; }

.main-menu { margin-right: auto; }
.main-menu ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.main-menu a {
  text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.main-menu a:hover, .main-menu a.is-active { color: var(--orange); border-bottom-color: var(--orange); }

.header-address { position: relative; }
.header-address__toggle {
  background: var(--orange-soft); border: 0; border-radius: 8px;
  padding: 9px 30px 9px 14px; cursor: pointer; font-size: 13px; font-weight: 700;
  color: var(--dark); position: relative; white-space: nowrap;
}
.header-address__toggle::after {
  content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px;
  border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s;
}
.header-address__toggle[aria-expanded="true"]::after { transform: translateY(-30%) rotate(225deg); }

.header-address__list {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 95;
  width: 420px; max-width: calc(100vw - 40px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-hover); padding: 16px 18px;
  display: none;
}
.header-address__list.is-open { display: block; }
.header-address__item {
  font-size: 13px; line-height: 1.35; padding: 6px 0 6px 16px; position: relative;
  border-bottom: 1px dashed var(--line);
}
.header-address__item:last-child { border-bottom: 0; }
.header-address__item::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
}
.header-address__item span { font-weight: 700; }

.header-phone { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.header-phone__num { font-size: 19px; font-weight: 700; text-decoration: none; letter-spacing: -.3px; }
.header-phone__num:hover { color: var(--orange); }

.burger {
  display: none; width: 44px; height: 40px; background: none; border: 0; flex-shrink: 0;
  cursor: pointer; padding: 8px; flex-direction: column; justify-content: space-between;
}
.burger span { display: block; height: 3px; background: var(--dark); border-radius: 2px; transition: transform .3s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 88;
  background: #fff; padding: 24px; overflow-y: auto;
}
.mobile-menu ul { list-style: none; margin: 0 0 24px; padding: 0; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu a { display: block; padding: 15px 0; text-decoration: none; font-size: 18px; font-weight: 500; }
.mobile-menu__phone { display: block; font-size: 24px; font-weight: 700; text-decoration: none; margin-bottom: 16px; }

/* ---------- HERO ---------- */
.hero {
  background:
    linear-gradient(115deg, rgba(26, 26, 26, .94) 0%, rgba(26, 26, 26, .82) 46%, rgba(26, 26, 26, .55) 100%),
    url("../img/photo/factory-1600.jpg") center / cover no-repeat, #1A1A1A;
  color: #fff;
  padding: 62px 0 72px;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }

.hero__title {
  font-size: 46px; font-weight: 400; line-height: 1.15; margin: 0 0 10px; letter-spacing: -1px;
}
.hero__subtitle {
  font-size: 26px; font-weight: 700; color: var(--orange); margin-bottom: 30px;
}
.hero__lists { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; margin-bottom: 34px; }
.hero__list { list-style: none; margin: 0; padding: 0; }
.hero__list--check li {
  position: relative; padding-left: 30px; margin-bottom: 12px; font-size: 16px; line-height: 1.4;
}
.hero__list--check li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px;
  border-radius: 5px; background: var(--orange);
}
.hero__list--check li::after {
  content: ""; position: absolute; left: 5px; top: 8px; width: 8px; height: 4px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
.hero__list--marks li {
  position: relative; padding: 14px 16px 14px 18px; margin-bottom: 12px;
  border-left: 3px solid var(--orange); background: rgba(255, 255, 255, .07);
  border-radius: 0 8px 8px 0; font-size: 15px; font-weight: 500;
}
.hero__footer { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero__footer-note { font-size: 14px; color: rgba(255, 255, 255, .7); }

.hero__right { position: relative; }
.hero__img {
  width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
}
.hero-sale {
  background: var(--orange); color: #fff; border-radius: var(--radius);
  padding: 20px 24px; margin-top: -18px; position: relative; z-index: 2;
  box-shadow: 0 14px 34px rgba(247, 147, 30, .35);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 20px;
}
.hero-sale__title { grid-column: 1; margin: 0; font-size: 22px; font-weight: 900; line-height: 1.1; }
.hero-sale__sub { grid-column: 1; margin: 0; font-size: 15px; opacity: .9; }
.hero-sale__phone {
  grid-column: 2; grid-row: 1 / span 2; font-size: 24px; font-weight: 900;
  text-decoration: none; white-space: nowrap; letter-spacing: -.5px;
}
.hero-sale__note {
  grid-column: 1 / -1; margin: 8px 0 0; font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, .35); padding-top: 8px;
}

/* ==========================================================================
   ПРОДУКЦИЯ
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter {
  background: #fff; border: 2px solid var(--line); border-radius: 30px;
  padding: 9px 20px; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.filter:hover { border-color: var(--orange); color: var(--orange); }
.filter.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }
.filters--branches .filter { background: var(--bg-soft); }
.filters--branches .filter.is-active { background: var(--orange); }

.products {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.product {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; overflow: hidden;
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.product:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: transparent; }
.product[hidden] { display: none; }

.product__media {
  position: relative; background: linear-gradient(160deg, #FAF6EE 0%, #F1E7D3 100%);
  padding: 22px 20px; border-bottom: 1px solid var(--line);
}
.profile { width: 100%; height: auto; }

.badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  padding: 5px 11px; border-radius: 30px; color: #fff;
}
.badge--in { background: var(--green); }
.badge--low { background: var(--orange); }
.badge--order { background: var(--gray); }

.product__body { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.product__title { font-size: 22px; font-weight: 700; margin: 0 0 10px; line-height: 1.2; }
.product__desc { font-size: 15px; line-height: 1.5; color: var(--gray); margin: 0 0 18px; }

.product__specs { margin: 0 0 20px; padding: 0; display: grid; gap: 9px; }
.product__specs > div {
  display: grid; grid-template-columns: 84px 1fr; gap: 10px;
  font-size: 14px; padding-bottom: 9px; border-bottom: 1px dashed var(--line);
}
.product__specs > div:last-child { border-bottom: 0; padding-bottom: 0; }
.product__specs dt { color: var(--gray); }
.product__specs dd { margin: 0; font-weight: 500; }

.product__foot {
  margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; padding-top: 16px; border-top: 2px solid var(--bg-soft); flex-wrap: wrap;
}
.product__price { font-size: 14px; color: var(--gray); white-space: nowrap; }
.product__price b { font-size: 21px; color: var(--dark); font-weight: 900; }
/* цена по карте «Белка» (−20 %) и ориентир по верхнему сорту */
.product__price-card,
.product__price-note { display: block; font-style: normal; font-size: 12.5px; line-height: 1.5; }
.product__price-card { margin-top: 4px; color: var(--orange); font-weight: 700; }
.product__price-note { color: var(--gray); }
.product__foot .btn { flex-shrink: 0; }

.products__empty { text-align: center; padding: 40px 0 0; font-size: 17px; color: var(--gray); }

.info-cta {
  margin-top: 44px; padding: 32px 36px; border-radius: var(--radius);
  background: var(--orange-soft); border: 2px solid rgba(247, 147, 30, .3);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.info-cta__text { font-size: 16px; line-height: 1.6; max-width: 640px; }
.info-cta__text b { display: block; font-size: 22px; margin-bottom: 6px; }
.info-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   ПРОФИЛИ ПОГОНАЖА — сетка чертежей сечений из прайса
   ========================================================================== */
.section--profiles { background: var(--bg-soft); }

.filters .filter i { font-style: normal; opacity: .55; font-size: 13px; margin-left: 2px; }

.profiles-grid {
  display: grid; gap: 14px; margin-top: 8px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.pcard {
  display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  padding: 16px 16px 14px; text-align: left; font: inherit; cursor: pointer;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.pcard:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-3px); }
.pcard[hidden] { display: none; }

.pcard__media {
  display: flex; align-items: center; justify-content: center;
  height: 72px; margin-bottom: 10px;
}
.pcard__media img { max-width: 100%; max-height: 72px; width: auto; height: auto; }
.pcard__nodraw {
  font-size: 15px; font-weight: 700; color: var(--gray);
  padding: 10px 14px; border: 2px dashed var(--line); border-radius: 10px;
}
.pcard__art { font-size: 17px; font-weight: 700; }
.pcard__size { font-size: 13px; color: var(--gray); }
.pcard__price { margin-top: 8px; font-size: 13px; color: var(--gray); }
.pcard__price b { font-size: 18px; font-weight: 900; color: var(--dark); }
.pcard__card { font-size: 12.5px; font-weight: 700; color: var(--orange); }

.profiles-note {
  margin-top: 26px; font-size: 14px; line-height: 1.7; color: var(--gray);
  padding-left: 16px; border-left: 3px solid var(--orange);
}

/* ==========================================================================
   ПАРАМЕТРЫ — табы, таблицы, сорта, калькулятор
   ========================================================================== */
.tabs__nav {
  display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 0;
  border-bottom: 2px solid var(--line);
}
.tabs__btn {
  background: none; border: 0; border-bottom: 3px solid transparent;
  padding: 13px 24px; font-size: 16px; font-weight: 500; cursor: pointer;
  margin-bottom: -2px; transition: color .2s, border-color .2s;
}
.tabs__btn:hover { color: var(--orange); }
.tabs__btn.is-active { color: var(--orange); border-bottom-color: var(--orange); font-weight: 700; }

.tabs__panel { padding-top: 34px; }
.tabs__panel[hidden] { display: none; }

.table-wrap {
  overflow-x: auto; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.table { width: 100%; border-collapse: collapse; min-width: 720px; }
.table th, .table td { padding: 14px 18px; text-align: left; font-size: 15px; }
.table thead th {
  background: var(--dark); color: #fff; font-weight: 500; font-size: 14px;
  white-space: nowrap; position: sticky; top: 0;
}
.table tbody tr { border-bottom: 1px solid var(--line); }
.table tbody tr:last-child { border-bottom: 0; }
.table tbody tr:hover { background: var(--orange-soft); }
.table tbody th { font-weight: 700; }
.table td { color: #3a3a3a; }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.dot--in { background: var(--green); }
.dot--low { background: var(--orange); }
.dot--order { background: var(--gray); }

.swatch {
  display: inline-block; width: 18px; height: 18px; border-radius: 5px;
  margin-right: 9px; vertical-align: -4px; border: 1px solid rgba(0, 0, 0, .12);
}
.swatch--pine { background: linear-gradient(135deg, #F3D9AE, #DDB878); }
.swatch--spruce { background: linear-gradient(135deg, #F7E9CE, #E6D3AC); }

.table-title {
  font-size: 20px; font-weight: 700; margin: 0 0 14px;
}
.table-title:not(:first-child) { margin-top: 38px; }

.table-note { font-size: 14px; color: var(--gray); margin: 18px 0 0; line-height: 1.6; max-width: 900px; }
.table-note a { color: var(--orange); font-weight: 500; }

.grades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grade {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.grade__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.grade__letter {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px;
  background: var(--dark); color: #fff; display: grid; place-items: center;
  font-size: 18px; font-weight: 900; letter-spacing: -.5px;
}
.grade__head h3 { margin: 0; font-size: 20px; font-weight: 700; }
.grade p { margin: 0 0 14px; font-size: 15px; color: var(--gray); line-height: 1.55; }
.grade ul { margin: 0; padding: 0; list-style: none; }
.grade li {
  font-size: 14px; padding: 7px 0 7px 18px; position: relative; border-top: 1px dashed var(--line);
}
.grade li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--orange);
}
.grade--accent { background: var(--orange-soft); border-color: rgba(247, 147, 30, .35); }
.grade--accent .grade__letter { background: var(--orange); }

.tech { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 44px; }
.tech__item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.tech__item h3 { margin: 0 0 6px; font-size: 16px; font-weight: 500; color: var(--gray); }
.tech__value { margin: 0 0 12px; font-size: 40px; font-weight: 900; color: var(--orange); line-height: 1; letter-spacing: -1px; }
.tech__item p:last-child { margin: 0; font-size: 14.5px; line-height: 1.6; color: #3a3a3a; }

.calc {
  background: var(--dark); color: #fff; border-radius: var(--radius); padding: 36px;
}
.calc__title { margin: 0 0 8px; font-size: 28px; font-weight: 700; }
.calc__lead { margin: 0 0 26px; font-size: 16px; color: rgba(255, 255, 255, .72); }
.calc__form { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 18px; margin-bottom: 26px; }
.calc__result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.calc__cell {
  background: rgba(255, 255, 255, .08); border-radius: 10px; padding: 18px 20px;
  border-left: 3px solid var(--orange);
}
.calc__cell span { display: block; font-size: 13px; color: rgba(255, 255, 255, .65); margin-bottom: 4px; }
.calc__cell b { font-size: 28px; font-weight: 900; letter-spacing: -.5px; }
.calc__note { margin: 20px 0 0; font-size: 13px; color: rgba(255, 255, 255, .55); }
.calc .field__label { color: rgba(255, 255, 255, .8); }
.calc .field__control { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; }
.calc .field__control:focus { border-color: var(--orange); background: rgba(255, 255, 255, .16); }
.calc select.field__control option { color: var(--dark); }

/* ==========================================================================
   ПРИМЕНЕНИЕ
   ========================================================================== */
.usage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.usage__item {
  background: rgba(255, 255, 255, .06); border-radius: var(--radius); padding: 30px 26px;
  border-top: 3px solid var(--orange);
}
.usage__icon {
  width: 64px; height: 64px; border-radius: 16px; background: var(--orange);
  display: grid; place-items: center; margin-bottom: 20px;
}
.usage__icon svg { width: 32px; height: 32px; }
.usage__item h3 { margin: 0 0 10px; font-size: 21px; font-weight: 700; }
.usage__item p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .76); }

/* ==========================================================================
   ПРЕИМУЩЕСТВА
   ========================================================================== */
.advantages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 40px; }
.advantages__item { display: flex; gap: 20px; }
.advantages__icon {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: 16px;
  background: var(--orange); display: grid; place-items: center;
}
.advantages__icon svg { width: 30px; height: 30px; }
.advantages__text { margin: 0; font-size: 16px; line-height: 1.6; }
.advantages__text b { display: block; font-size: 17px; margin-bottom: 3px; }

/* ==========================================================================
   ВИДЕО
   ========================================================================== */
.block-video { background: url("../img/photo/warehouse-1600.jpg") center / cover no-repeat, var(--dark); }
.block-video__dark { background: rgba(0, 0, 0, .74); padding: 90px 0; }

/* самостоятельный плеер с реальным роликом завода */
.video-player {
  position: relative; max-width: 960px; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden; background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.video-player__el { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.video-player__cover {
  position: absolute; inset: 0; width: 100%; padding: 0; border: 0; cursor: pointer;
  background: transparent; transition: background .3s;
}
.video-player__cover:hover { background: rgba(0, 0, 0, .18); }
.video-player__cover[hidden] { display: none; }

.video-facts {
  list-style: none; margin: 34px auto 0; padding: 0; max-width: 960px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.video-facts li {
  padding: 18px 20px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .85);
  font-size: 14px; line-height: 1.5;
}
.video-facts b { display: block; font-size: 24px; color: var(--orange); margin-bottom: 4px; }

.video-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; }
.video-side { display: grid; gap: 22px; }
.video-card {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; background: #000;
  transition: transform .3s;
}
.video-card:hover { transform: translateY(-3px); }
.video-card img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s; }
.video-card:hover img { opacity: 1; }
.video-card__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 50%; background: rgba(247, 147, 30, .94);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .4);
}
.video-card__play::after {
  content: ""; position: absolute; left: 52%; top: 50%; transform: translate(-50%, -50%);
  border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent;
}
.video-card:not(.video-card--main) .video-card__play { width: 54px; height: 54px; }
.video-card:not(.video-card--main) .video-card__play::after {
  border-left-width: 15px; border-top-width: 9px; border-bottom-width: 9px;
}
.video-card__label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 20px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85));
  color: #fff; font-size: 15px; font-weight: 500; text-align: left;
}

/* ==========================================================================
   ГАЛЕРЕЯ
   ========================================================================== */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 64px;
}
.gallery:last-child { margin-bottom: 0; }
.gallery__item {
  position: relative; padding: 0; border: 0; cursor: pointer; background: #ddd;
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
  transition: transform .3s, box-shadow .3s;
}
.gallery__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8));
  color: #fff; font-size: 14px; font-weight: 500; text-align: left;
}

/* ==========================================================================
   ЦИФРЫ
   ========================================================================== */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.numbers__item { text-align: center; padding: 26px 14px; border-right: 1px solid rgba(255, 255, 255, .16); }
.numbers__item:last-child { border-right: 0; }
.numbers__item b {
  display: block; font-size: 58px; font-weight: 900; color: var(--orange);
  line-height: 1; letter-spacing: -2px; margin-bottom: 10px;
}
.numbers__item span { font-size: 16px; color: rgba(255, 255, 255, .8); }

/* ==========================================================================
   ОТЗЫВЫ
   ========================================================================== */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); position: relative;
}
.review::before {
  content: "”"; position: absolute; right: 24px; top: 4px;
  font-size: 90px; line-height: 1; color: var(--orange-soft); font-family: Georgia, serif;
}
.review__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; position: relative; }
.review__avatar {
  width: 54px; height: 54px; flex-shrink: 0; border-radius: 50%;
  background: var(--orange); color: #fff; display: grid; place-items: center;
  font-size: 17px; font-weight: 700;
}
.review__head b { display: block; font-size: 17px; }
.review__head i { font-style: normal; font-size: 13.5px; color: var(--gray); }
.review p { margin: 0; font-size: 15px; line-height: 1.65; color: #3a3a3a; position: relative; }

/* ==========================================================================
   ФИЛИАЛЫ
   ========================================================================== */
.branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.branch {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: box-shadow .3s, transform .3s;
}
.branch:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.branch[hidden] { display: none; }
.branch--main { border-color: var(--orange); border-width: 2px; }

.branch__tag {
  align-self: flex-start; font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--orange); background: var(--orange-soft);
  padding: 5px 12px; border-radius: 30px; margin-bottom: 14px;
}
.branch__title { margin: 0 0 8px; font-size: 21px; font-weight: 700; }
.branch__addr { margin: 0 0 14px; font-size: 15px; color: #3a3a3a; line-height: 1.5; }
.branch__phones { list-style: none; margin: 0 0 14px; padding: 0; }
.branch__phones li { margin-bottom: 5px; }
.branch__phones a { font-size: 18px; font-weight: 700; text-decoration: none; letter-spacing: -.3px; }
.branch__phones a:hover { color: var(--orange); }
.branch__phones span { font-size: 12.5px; color: var(--gray); font-weight: 400; }
.branch__hours { margin: 0 0 12px; font-size: 14px; color: var(--gray); }
.branch__note {
  margin: auto 0 0; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 14px; line-height: 1.5; color: #3a3a3a;
}

.branches__map { margin-top: 34px; }
.branches__map-inner {
  height: 420px; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-soft) url("../img/map-stub.svg") center / cover no-repeat;
  display: grid; place-items: center; border: 1px solid var(--line);
}
.branches__map-inner iframe { width: 100%; height: 100%; border: 0; display: block; }
.branches__map-stub {
  margin: 0; text-align: center; background: rgba(255, 255, 255, .94);
  padding: 26px 34px; border-radius: 12px; box-shadow: var(--shadow); max-width: 460px;
  font-size: 14.5px; color: var(--gray); line-height: 1.6;
}
.branches__map-stub b { display: block; font-size: 20px; color: var(--dark); margin-bottom: 6px; }
.branches__map-stub code {
  background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; font-size: 13px;
}

/* ==========================================================================
   ФОРМА
   ========================================================================== */
.questions { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.questions__title { font-size: 42px; font-weight: 400; margin: 0 0 16px; line-height: 1.2; letter-spacing: -.5px; }
.questions__left > p { font-size: 17px; line-height: 1.7; margin: 0 0 22px; color: #3a3a3a; }
.questions__list { list-style: none; margin: 0 0 26px; padding: 0; }
.questions__list li {
  position: relative; padding-left: 32px; margin-bottom: 12px; font-size: 16px;
}
.questions__list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px;
  border-radius: 6px; background: var(--orange);
}
.questions__list li::after {
  content: ""; position: absolute; left: 6px; top: 8px; width: 8px; height: 4px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
.questions__phone { font-size: 32px; font-weight: 900; text-decoration: none; letter-spacing: -1px; }
.questions__phone:hover { color: var(--orange); }

.form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.modal .form { border: 0; box-shadow: none; padding: 0; }

.field { display: block; margin-bottom: 18px; }
.field__label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; }
.field__label i { font-style: normal; color: var(--gray); font-weight: 400; }
.field__control {
  width: 100%; font-family: inherit; font-size: 16px; color: inherit;
  padding: 13px 16px; border: 2px solid var(--line); border-radius: 8px;
  background: #fff; transition: border-color .2s;
}
.field__control:focus { outline: 0; border-color: var(--orange); }
.field__control::placeholder { color: #a3a7ad; }
.field__control:user-invalid, .field__control.is-error { border-color: var(--red); }
textarea.field__control { resize: vertical; min-height: 84px; }
select.field__control {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  padding-right: 42px;
}

.form__policy { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--gray); text-align: center; }
.form__policy a { color: var(--orange); }
.form__consent { display: flex; align-items: flex-start; gap: 9px; text-align: left; cursor: pointer; }
.form__consent input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--orange); }
.form__consent input.is-error { outline: 2px solid var(--red); outline-offset: 2px; }
.form__trap { position: fixed !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.form__status { margin: 12px 0 0; font-size: 14.5px; font-weight: 500; text-align: center; min-height: 0; }
.form__status.is-ok { color: var(--green); }
.form__status.is-error { color: var(--red); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { padding: 46px 0 24px; background: #fff; border-top: 1px solid var(--line); }
.footer__top {
  display: grid; grid-template-columns: auto 1fr auto; gap: 40px;
  padding-bottom: 32px; border-bottom: 1px solid var(--line); margin-bottom: 22px;
}
.footer__brand { display: flex; flex-direction: column; gap: 18px; }
.footer__socials { display: flex; gap: 10px; }
.footer__social {
  width: 40px; height: 40px; border-radius: 10px; background: var(--bg-soft);
  display: grid; place-items: center; color: var(--dark); transition: background-color .2s, color .2s;
}
.footer__social svg { width: 22px; height: 22px; }
.footer__social:hover { background: var(--orange); color: #fff; }

.footer__address { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; align-content: start; }
.footer__address-item { font-size: 13.5px; line-height: 1.4; padding-left: 16px; position: relative; }
.footer__address-item::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--orange);
}
.footer__address-item span { font-weight: 700; }

.footer__phone { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.footer__phone-num { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer__phone-num a { font-size: 19px; font-weight: 700; text-decoration: none; letter-spacing: -.3px; }
.footer__phone-num a:hover { color: var(--orange); }
.footer__email { font-size: 14px !important; font-weight: 400 !important; color: var(--gray); margin-top: 4px; }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
}
.footer__copyright { font-size: 14px; }
.footer__text { font-size: 12.5px; line-height: 1.5; color: var(--gray); max-width: 560px; }
.footer__text a { color: var(--orange); }
.footer__bottom-link { font-size: 13.5px; color: var(--orange); text-decoration: none; letter-spacing: .3px; }
.footer__bottom-link:hover { text-decoration: underline; }

/* ==========================================================================
   МОДАЛЬНЫЕ ОКНА / ЛАЙТБОКС / FAB
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); animation: fade .2s; }
.modal__dialog {
  position: relative; background: #fff; border-radius: var(--radius); padding: 40px;
  width: 100%; max-width: 470px; max-height: 90vh; overflow-y: auto;
  animation: pop .22s ease-out;
}
.modal__close {
  position: absolute; right: 14px; top: 10px; background: none; border: 0;
  font-size: 34px; line-height: 1; color: var(--gray); cursor: pointer; padding: 4px 10px;
}
.modal__close:hover { color: var(--dark); }
.modal__title { margin: 0 0 10px; font-size: 28px; font-weight: 700; line-height: 1.2; }
.modal__lead { margin: 0 0 24px; font-size: 15px; line-height: 1.6; color: var(--gray); }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }

.lightbox {
  position: fixed; inset: 0; z-index: 130; background: rgba(0, 0, 0, .93);
  display: grid; grid-template-columns: 80px 1fr 80px; align-items: center;
  animation: fade .2s;
}
.lightbox[hidden] { display: none; }
.lightbox__figure { grid-column: 2; margin: 0; text-align: center; max-height: 90vh; }
.lightbox__img {
  max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: 10px;
  object-fit: contain;
}
.lightbox__caption { color: #fff; font-size: 16px; margin-top: 18px; }
.lightbox__close {
  position: absolute; right: 20px; top: 14px; background: none; border: 0;
  font-size: 44px; line-height: 1; color: #fff; cursor: pointer; opacity: .8;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__nav {
  background: rgba(255, 255, 255, .12); border: 0; color: #fff; cursor: pointer;
  width: 54px; height: 54px; border-radius: 50%; font-size: 34px; line-height: 1;
  justify-self: center; transition: background-color .2s;
}
.lightbox__nav:hover { background: var(--orange); }
.lightbox__nav--prev { grid-column: 1; }
.lightbox__nav--next { grid-column: 3; }

.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--orange); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 26px rgba(247, 147, 30, .5);
  opacity: 0; visibility: hidden; transform: scale(.7);
  transition: opacity .3s, transform .3s, visibility .3s, background-color .2s;
}
.fab.is-visible { opacity: 1; visibility: visible; transform: scale(1); }
.fab:hover { background: var(--orange-dark); }
.fab svg { width: 28px; height: 28px; }
.fab::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(247, 147, 30, .55); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { transform: scale(.9); opacity: .8; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .fab::after { animation: none; } }

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */
@media (max-width: 1400px) {
  /* адреса дублируются в секции «Филиалы» и подвале — в шапке их прячем раньше меню */
  .header-address { display: none; }
}

@media (max-width: 1200px) {
  .block-title { font-size: 40px; }
  .hero__title { font-size: 40px; }
  .main-menu ul { gap: 16px; }
  .main-menu a { font-size: 14px; }
  .products, .grades, .branches, .reviews { grid-template-columns: repeat(2, 1fr); }
  .tech, .usage, .numbers { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .numbers__item:nth-child(2n) { border-right: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__phone { grid-column: 2; align-items: flex-start; }
  .footer__address { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 1024px) {
  .main-menu, .header-address { display: none; }
  .burger { display: flex; }
  .header-top__inner { gap: 16px; justify-content: space-between; }
  .header-phone { margin-left: auto; flex-shrink: 1; min-width: 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .hero__right { max-width: 560px; }
  .advantages { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .video-side { grid-template-columns: repeat(2, 1fr); }
  .video-facts { grid-template-columns: repeat(2, 1fr); }
  .questions { grid-template-columns: 1fr; gap: 34px; }
  .calc__form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .section { padding: 56px 0; }
  .section--advantages { padding: 56px 0 20px; }
  .block-title { font-size: 30px; margin-bottom: 18px; }
  .section-lead { font-size: 16px; margin-bottom: 30px; }
  .container { padding: 0 16px; }

  /* цена и кнопка в карточке не помещаются в строку — кнопка уходит вниз на всю ширину */
  .product__foot .btn { width: 100%; }

  /* на узких экранах в шапке остаются логотип, телефон и бургер */
  .header-top__inner { gap: 10px; }
  .logo__text i { display: none; }
  .logo__text b { font-size: 20px; }
  .header-phone { align-items: flex-end; }
  .header-phone__num { font-size: 16px; white-space: nowrap; }
  .header-phone .btn-link { display: none; }

  .hero { padding: 40px 0 52px; }
  .hero__title { font-size: 30px; }
  .hero__subtitle { font-size: 20px; margin-bottom: 22px; }
  .hero__lists { grid-template-columns: 1fr; gap: 12px; margin-bottom: 26px; }
  .hero__footer { flex-direction: column; align-items: stretch; text-align: center; }
  .hero-sale { grid-template-columns: 1fr; text-align: center; }
  .hero-sale__phone { grid-column: 1; grid-row: auto; font-size: 26px; margin-top: 6px; }

  .products, .grades, .branches, .reviews, .tech, .usage, .numbers, .advantages { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 40px; }
  .video-side { grid-template-columns: 1fr; }
  .video-facts { grid-template-columns: 1fr; gap: 10px; }
  .profiles-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pcard { padding: 12px 12px 10px; }
  .pcard__media { height: 56px; }
  .pcard__media img { max-height: 56px; }
  .numbers__item { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .16); padding: 18px 0; }
  .numbers__item:last-child { border-bottom: 0; }
  .numbers__item b { font-size: 46px; }

  .info-cta { padding: 24px; flex-direction: column; align-items: stretch; }
  .info-cta__actions .btn { width: 100%; }
  .tabs__nav { gap: 0; }
  .tabs__btn { padding: 11px 14px; font-size: 14px; flex: 1 0 auto; }
  .questions__title { font-size: 28px; }
  .questions__phone { font-size: 26px; }
  .form { padding: 22px; }
  .modal__dialog { padding: 28px 20px; }
  .modal__title { font-size: 23px; }
  .calc { padding: 24px; }
  .calc__form, .calc__result { grid-template-columns: 1fr; }
  .calc__title { font-size: 23px; }

  .footer__top { grid-template-columns: 1fr; gap: 24px; }
  .footer__phone { grid-column: 1; align-items: flex-start; }
  .footer__address { grid-row: auto; grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .lightbox { grid-template-columns: 1fr; grid-template-rows: 1fr auto; padding: 20px; }
  .lightbox__figure { grid-column: 1; grid-row: 1; align-self: center; }
  .lightbox__nav { grid-row: 2; }
  .lightbox__nav--prev { grid-column: 1; justify-self: start; }
  .lightbox__nav--next { grid-column: 1; grid-row: 2; justify-self: end; }

  .fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

@media print {
  .header-top, .mobile-menu, .fab, .modal, .lightbox, .block-video, .filters { display: none !important; }
  .section { padding: 20px 0; }
  body { font-size: 12pt; }
}
