/* =========================================================
   СПАДАР — стили сайта (по макету Figma «Дизайн Спадар»)
   ========================================================= */

/* Bebas Neue Bold (Fontfabric) с кириллицей. Положите файлы шрифта
   в assets/fonts/ — пока их нет, используется запасной Sofia Sans Extra Condensed. */
@font-face {
  font-family: "Bebas Neue Spadar";
  src: url("../fonts/BebasNeue-Bold.woff2") format("woff2"),
       url("../fonts/BebasNeue-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #e51f1f;
  --red-dark: #c41616;
  --black: #000;
  --dark: #0b1112;
  --grey: #f1f2f4;
  --grey-dark: #636363;
  --white: #fff;

  --font-head: "Bebas Neue Spadar", "Bebas Neue", "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --font-body: "Roboto", Arial, sans-serif;

  --container: 1776px;
  --gutter: clamp(16px, 3.75vw, 72px);
  --section-gap: clamp(64px, 6.7vw, 128px);

  --h1: clamp(46px, 5.2vw, 100px);
  --h2: clamp(42px, 4.7vw, 90px);
  --h3: clamp(26px, 2.1vw, 40px);
  --h4: clamp(22px, 1.7vw, 32px);
  --h5: clamp(20px, 1.25vw, 24px);
  --body1: clamp(18px, 1.25vw, 24px);
  --body2: clamp(16px, 0.94vw, 18px);

  --r-xl: 32px;
  --r-l: 24px;
  --r-m: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: var(--body2);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Типографика ---------- */
.h1, .h2, .h3, .h4, .h5 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--black);
}
.h1 { font-size: var(--h1); line-height: 0.9; }
.h2 { font-size: var(--h2); line-height: 0.9; }
.h3 { font-size: var(--h3); line-height: 1.2; }
.h4 { font-size: var(--h4); line-height: 1.2; }
.h5 { font-size: var(--h5); line-height: 1.2; }
.red { color: var(--red); }
.text { color: var(--grey-dark); font-size: var(--body2); line-height: 1.3; }
.text--black { color: var(--black); }
.lead { font-size: var(--body1); font-weight: 700; line-height: 1.3; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 16px 56px;
  border-radius: 100px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--red-dark); }
.btn--white { background: var(--white); color: var(--red); }
.btn--white:hover { background: var(--red); color: var(--white); }
.btn--grey { background: var(--grey-dark); }
.btn--grey:hover { background: #4d4d4d; }
.btn--block { width: 100%; }
.btn--sm { padding: 16px 24px; }

/* Кнопка + круглая стрелка (компонент «2 buttons») */
.btn-pair {
  display: inline-flex;
  align-items: stretch;
}
.btn-pair .btn { padding: 16px 24px; border-radius: 73px; }
.btn-pair__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  transition: background-color .2s, transform .2s;
}
.btn-pair__icon img { width: 24px; height: 24px; }
.btn-pair:hover .btn,
.btn-pair:hover .btn-pair__icon { background: var(--red-dark); }
.btn-pair:hover .btn-pair__icon { transform: rotate(45deg); }
.btn-pair--white .btn { background: var(--white); color: var(--red); }
.btn-pair--white .btn-pair__icon { background: var(--white); }
.btn-pair--white:hover .btn,
.btn-pair--white:hover .btn-pair__icon { background: var(--white); }

.round-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  transition: transform .2s;
}
.round-btn img { width: 24px; height: 24px; }
.round-btn--red { width: 40px; height: 40px; background: var(--red); }

/* ---------- Header ---------- */
.header { padding-top: 24px; position: relative; z-index: 20; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--grey);
  font-size: 16px;
  color: var(--grey-dark);
}
.topbar__links, .topbar__contacts { display: flex; align-items: center; gap: 20px 32px; flex-wrap: wrap; }
.topbar__links { gap: 20px; }
.topbar a:hover { color: var(--red); }
.topbar__item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.topbar__item img { width: 24px; height: 24px; }
.topbar__drop { display: inline-flex; align-items: center; gap: 8px; }
.topbar__drop img { width: 16px; height: 16px; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
}
.logo { display: flex; align-items: flex-start; gap: 8px; flex: none; }
.logo img { width: 171px; height: 40px; }
.logo span { width: 80px; font-size: 12px; line-height: 0.9; color: var(--grey-dark); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav > a,
.nav__drop > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  padding: 8px 0;
  transition: color .2s;
}
.nav > a:hover, .nav__drop:hover > a, .nav a.is-active { color: var(--red); }
.nav__drop { position: relative; }
.nav__drop > a img { width: 16px; height: 16px; transition: transform .2s; }
.nav__drop:hover > a img { transform: rotate(180deg); }
.nav__menu {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 320px;
  padding: 12px;
  background: var(--white);
  border-radius: var(--r-m);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .2s;
}
.nav__drop:hover .nav__menu,
.nav__drop:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 16px;
  color: var(--grey-dark);
}
.nav__menu a:hover { background: var(--grey); color: var(--red); }

.navbar__actions { display: flex; align-items: center; gap: 16px; flex: none; }
.call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--grey);
}
.call-btn img { width: 19px; height: 19px; }

.burger {
  display: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--grey);
  position: relative;
}
.burger span,
.burger span::before,
.burger span::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  background: var(--black);
  content: "";
  transition: .2s;
}
.burger span { top: 24px; }
.burger span::before { top: -6px; left: 0; margin: 0; }
.burger span::after { top: 6px; left: 0; margin: 0; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Main / секции ---------- */
main { display: flex; flex-direction: column; gap: var(--section-gap); padding: 48px 0 var(--section-gap); }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: var(--grey);
  border-radius: var(--r-xl);
}

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hero__left { display: flex; flex-direction: column; gap: 20px; }
.hero__intro { padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.hero__intro .text { max-width: 394px; padding-bottom: 24px; }
.hero__intro .h1 { margin-bottom: 8px; }
.hero__product { padding: 24px; display: flex; gap: 24px; }
.hero__product-img {
  flex: none;
  width: 298px;
  height: 243px;
  border-radius: var(--r-m);
  overflow: hidden;
  background: #111;
}
.hero__product-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 90%; }
.hero__product-body { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.hero__product-body .h4 { margin-bottom: 16px; }
.hero__product-body .text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero__product-body .btn { align-self: flex-start; }
.hero__photo {
  position: relative;
  min-height: 560px;
  border-radius: var(--r-xl);
  overflow: hidden;
}
.hero__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__glass {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 24px 0;
  border-radius: var(--r-l);
  background: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero__glass .h4 { margin-bottom: 16px; }
.hero__glass .text { padding-bottom: 24px; color: var(--black); }
.hero__glass:hover .round-btn { transform: rotate(45deg); }

/* ---------- Почему выбирают ---------- */
.why { display: flex; justify-content: space-between; gap: 48px; }
.why__left { display: flex; flex-direction: column; gap: 32px; max-width: 724px; }
.why__left .text { max-width: 426px; color: rgba(0, 0, 0, .7); margin-bottom: 16px; }
.why__list { width: 876px; max-width: 55%; flex: none; display: flex; flex-direction: column; gap: 16px; }
.why__item {
  display: flex;
  gap: clamp(24px, 4vw, 78px);
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--grey-dark);
}
.why__num {
  flex: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--h2);
  line-height: 0.9;
  color: var(--red);
  min-width: 1.2em;
}
.why__item .h3 { margin-bottom: 8px; }

/* ---------- Карточки товаров ---------- */
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
/* Когда в каталоге ровно три товара — три колонки (адаптив ниже переопределяет) */
.products--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: var(--r-l);
  background: var(--grey);
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, .08); transform: translateY(-4px); }
.product-card__img { height: 333px; overflow: hidden; border-radius: var(--r-m); }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.product-card__body { display: flex; flex-direction: column; gap: 24px; flex: 1; }
.product-card__body > div { flex: 1; }
.product-card .h3 { margin-bottom: 16px; }
.product-card .btn { height: 53px; }
.product-card--soon .product-card__img { position: relative; }
.product-card--soon .product-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .2);
}
.product-card--soon .product-card__img span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  color: var(--white);
}
.product-card--soon .product-card__img img { object-fit: cover; object-position: center; }

/* ---------- Баннер (Сколково / О компании) ---------- */
.banner {
  position: relative;
  overflow: hidden;
  min-height: 415px;
  padding: 40px;
  border-radius: var(--r-xl);
  background: var(--grey);
}
.banner__content { position: relative; z-index: 1; max-width: 831px; display: flex; flex-direction: column; gap: 24px; }
.banner__content .h2 { margin-bottom: 8px; }
.banner__content .text { max-width: 694px; padding-bottom: 24px; }
.banner__content .btn-pair { align-self: flex-start; }
.banner__art { position: absolute; top: 0; right: 0; bottom: 0; width: 666px; max-width: 45%; }
.banner__art--skolkovo .sk-logo { position: absolute; left: 0; top: 158px; width: 241px; height: 241px; z-index: 1; }
.banner__art--skolkovo .sk-ill {
  position: absolute;
  left: 100px;
  top: 0;
  width: calc(100% - 100px);
  height: 415px;
  object-fit: cover;
  object-position: 0 40%;
}
.banner--founder { min-height: 491px; }
.banner__art--founder { width: 784px; }
.banner__art--founder .lines { position: absolute; inset: 0 0 0 7%; width: 93%; height: 100%; opacity: .3; object-fit: fill; }
.banner__art--founder .person {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
}

/* ---------- Калькулятор ---------- */
.calc { display: grid; grid-template-columns: 726px 1fr; gap: 24px; align-items: stretch; }
.calc__steps { display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.calc__step { display: flex; gap: 16px; align-items: flex-start; }
.calc__step .num { flex: none; }
.calc__step .h4 { margin-bottom: 8px; }
.calc__steps .btn { align-self: flex-start; margin-top: 8px; }
.calc__card { position: relative; overflow: hidden; min-height: 439px; padding: 32px; }
.calc__card .h3 { margin-bottom: 16px; }
.calc__card .text { max-width: 544px; position: relative; z-index: 1; }
.calc__card > img { position: absolute; left: 396px; top: -145px; width: 800px; height: 800px; }

.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 18px;
}

/* ---------- Где купить ---------- */
.buy { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.buy__item {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 16px;
  border-radius: var(--r-m);
  background: var(--grey);
}
.buy__item > div { flex: 1; }
.buy__item .h4 { margin-bottom: 16px; }
.buy__item--accent { background: var(--red); }
.buy__item--accent .h4 { color: var(--white); }
.buy__item--accent .text { color: var(--grey); }
.buy__item--accent .num { background: var(--white); color: var(--red); }

/* ---------- Акции ---------- */
.promos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.promo {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 370px;
  padding: 24px;
  border-radius: var(--r-m);
  overflow: hidden;
  color: var(--white);
  font-size: var(--body1);
}
.promo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.promo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .6) 100%);
}
.promo p, .promo .round-btn { position: relative; z-index: 2; }
.promo p { flex: 1; }
.promo .round-btn { opacity: 0; transform: translateX(-8px); transition: .2s; }
.promo:hover > img { transform: scale(1.04); }
.promo:hover .round-btn { opacity: 1; transform: none; }

/* ---------- Блог ---------- */
.news-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.news { position: relative; display: flex; flex-direction: column; }
.news__img { position: relative; height: 308px; border-radius: var(--r-m) var(--r-m) 0 0; overflow: hidden; }
.news__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.5)); }
.news__date {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 8px;
  border-radius: 100px;
  background: var(--grey);
  font-size: 14px;
  line-height: 1.1;
}
.news__body {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 16px;
  border-radius: 0 0 var(--r-m) var(--r-m);
  background: var(--grey);
}
.news__body > div { flex: 1; min-width: 0; }
.news__body .h5 { margin-bottom: 8px; }
.news__body .text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news:hover .news__img img { transform: scale(1.04); }
.news:hover .round-btn { transform: rotate(-45deg); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1026px 1fr; gap: 24px; }
.faq__list { display: flex; flex-direction: column; gap: 16px; }
.faq__item { border-radius: var(--r-m); background: var(--grey); }
.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: var(--body1);
  line-height: 1.3;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary img { flex: none; width: 24px; height: 24px; transition: transform .2s; }
.faq__item[open] summary img { transform: rotate(180deg); }
.faq__item .text { padding: 0 24px 24px; margin-top: -8px; }
.faq__img { position: relative; border-radius: var(--r-l); overflow: hidden; min-height: 360px; }
.faq__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Блок заявки (Bitrix24) ---------- */
.lead-form {
  position: relative;
  overflow: hidden;
  min-height: 419px;
  padding: 32px;
  border-radius: var(--r-xl);
  background: var(--grey);
}
.lead-form__content { position: relative; z-index: 1; max-width: 1144px; display: flex; flex-direction: column; gap: 40px; }
.lead-form__actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.lead-form__note { max-width: 544px; font-size: 12px; line-height: 1.1; color: var(--grey-dark); }
.lead-form__note a { text-decoration: underline; }
.lead-form__art { position: absolute; right: -117px; top: -144px; width: 658px; height: 658px; transform: scaleX(-1); }

/* ---------- Footer ---------- */
.footer {
  margin-top: auto;
  padding: 40px var(--gutter) 16px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--grey);
}
.footer__inner { max-width: var(--container); margin: 0 auto; }
.footer__top { display: flex; justify-content: space-between; gap: 32px; padding-bottom: 16px; }
.footer__brand { display: flex; flex-direction: column; gap: 32px; }
.footer__logo img { width: 163px; height: 38px; }
.footer__logo span { display: block; margin-top: 4px; font-size: 12px; line-height: 0.9; color: var(--grey-dark); }
.socials { display: flex; gap: 8px; }
.socials a { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; position: relative; transition: transform .2s; }
.socials a:hover { transform: translateY(-2px); }
.socials img { width: 32px; height: 32px; }
.socials .rutube img { position: absolute; width: 48px; height: 48px; max-width: none; top: -16px; left: 0; }
.footer__col { display: flex; flex-direction: column; gap: 32px; }
.footer__group { display: flex; flex-direction: column; gap: 16px; }
.footer__group ul { display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--grey-dark); }
.footer__col a:hover { color: var(--red); }
.footer__col--docs { max-width: 349px; }
.footer__contacts { display: flex; flex-direction: column; gap: 32px; align-items: flex-end; text-align: right; }
.footer__contacts .text { margin-top: 4px; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--grey-dark);
  font-size: 14px;
  line-height: 1.1;
  color: var(--grey-dark);
}
.footer__bottom nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer__bottom a:hover { color: var(--red); }
.footer__dev { display: inline-flex; align-items: baseline; gap: 8px; }
.footer__dev img { width: 93px; height: 18px; }

/* ---------- Каталог / товар ---------- */
.breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--grey-dark); margin-bottom: 24px; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs > * + *::before { content: "/"; margin-right: 8px; color: var(--grey-dark); }

.product-top { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.product-main { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.product-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 613px;
  border-radius: var(--r-xl);
  background: var(--grey);
  overflow: hidden;
}
.product-gallery img { width: 82.6%; height: 563px; object-fit: cover; object-position: 50% 94%; }
/* Горизонтальные фото товаров (3D-смесь, карьер) — во всю площадь галереи */
.product-gallery--wide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.product-info {
  position: sticky;
  top: 24px;
  padding: 32px;
  border-radius: var(--r-xl);
  background: var(--grey);
}
.product-info .h1 { margin-bottom: 16px; }
.product-info .lead { margin-bottom: 24px; }
.product-info .text { padding-bottom: 24px; margin-top: 24px; }
.product-info__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.product-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--white);
  font-size: 14px;
  color: var(--grey-dark);
}

.article .h3 { padding: 24px 0 12px; }
.article .h3:first-child { padding-top: 0; }
.article .text { padding-bottom: 24px; }
.article > .btn, .article > .btn-pair { margin-bottom: 8px; }
.article strong { display: block; padding-bottom: 24px; font-size: var(--body2); }
.bullets { display: flex; flex-direction: column; gap: 4px; padding-bottom: 24px; color: var(--grey-dark); }
.bullets li { display: flex; align-items: flex-start; }
.bullets li::before {
  content: "";
  flex: none;
  width: 32px;
  height: 24px;
  background: url("../icons/bullet.svg") no-repeat 0 0 / 32px 24px;
}
.bullets li span { padding-top: 0; }

.specs { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: var(--body2); }
.specs td { padding: 14px 0; border-bottom: 1px solid #d9dbe0; vertical-align: top; }
.specs td:first-child { color: var(--grey-dark); padding-right: 24px; }
.specs td:last-child { text-align: right; font-weight: 500; }

.page-title { margin-bottom: 32px; }

/* ---------- О компании ---------- */
.about-hero__img { height: 660px; border-radius: var(--r-xl); overflow: hidden; margin: 32px 0 24px; }
.about-hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; }
.about-hero__text { max-width: 876px; }
.about-hero__text .text { padding-bottom: 24px; }

.about { display: grid; grid-template-columns: 576px 1fr; gap: 24px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 32px; }
.stat { display: flex; flex-direction: column; gap: 32px; padding: 16px; border-radius: var(--r-m); background: var(--grey); }
.about__gallery { display: grid; grid-template-rows: 1fr 1fr; gap: 24px; min-height: 579px; }
.about__gallery img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 17px; }
.about__gallery-row { display: grid; gap: 24px; min-height: 0; }
.about__gallery-row--a { grid-template-columns: 426fr 726fr; }
.about__gallery-row--b { grid-template-columns: 726fr 426fr; }

.history { display: flex; flex-direction: column; gap: 24px; }
.history__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.history__img { position: relative; border-radius: var(--r-m); overflow: hidden; min-height: 400px; }
.history__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.history__text { padding: 24px 24px 0; border-radius: var(--r-m); background: var(--grey); }
.history__text .h4 { padding-bottom: 12px; }
.history__text .text { padding-bottom: 24px; }
.history__text .bullets { padding-top: 0; padding-bottom: 12px; }

.years { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.year { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: 248px; padding: 24px; border-radius: var(--r-m); background: var(--grey); }
.year--img { padding: 0; overflow: hidden; }
.year--img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Калькулятор: форма и результат ---------- */
.calc__form { display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.field { display: flex; flex-direction: column; gap: 8px; }
.input, .select select {
  width: 100%;
  height: 56px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--grey);
  font: inherit;
  font-size: 18px;
  color: var(--black);
  outline: none;
  transition: border-color .2s;
  -moz-appearance: textfield;
}
.input::-webkit-outer-spin-button, .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input::placeholder { color: var(--grey-dark); }
.input:focus, .select select:focus { border-color: var(--red); }
.select { position: relative; display: block; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer; }
.select::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 16px;
  width: 24px;
  height: 24px;
  background: url("../icons/chevron-down-red.svg") no-repeat center / 24px;
  pointer-events: none;
}
.calc__error { color: var(--red); font-size: 14px; margin-top: -8px; }
.calc__form .btn { align-self: flex-start; }
.calc__card-body { position: relative; z-index: 1; max-width: 593px; }
.calc__card-body .text { margin-bottom: 24px; }
.calc__result { display: flex; flex-direction: column; gap: 8px; margin: 0 0 24px; }
.calc__result div { display: flex; align-items: baseline; gap: 8px; }
.calc__result dd { margin: 0; font-size: 18px; }

/* ---------- Акция ---------- */
.promo-banner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.promo-banner__img { position: relative; min-height: 420px; border-radius: var(--r-xl); overflow: hidden; }
.promo-banner__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-banner__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; padding: 40px; border-radius: var(--r-xl); background: var(--grey); }
.promo-banner__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--red); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 36px;
}

/* ---------- Где купить ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.split__img { position: relative; height: 613px; border-radius: var(--r-m); overflow: hidden; }
.split__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__body { display: flex; flex-direction: column; gap: 32px; }
.split__body .text { padding-bottom: 0; }
.split__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn--grey-light { background: var(--grey); color: var(--red); }
.btn--grey-light:hover { background: var(--red); color: var(--white); }
.faq__item summary .h4 { font-weight: 700; }
.partner { padding: 0 24px 12px; }
.partner a:hover, .contact-card a:hover { color: var(--red); }
.note-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 16px; padding: 24px; border-radius: var(--r-m); border: 1px dashed #c9ccd2; }
.steps { margin: 0; padding: 0 0 24px; list-style: none; display: flex; flex-direction: column; gap: 4px; color: var(--grey-dark); }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps span { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 8px; background: var(--red); color: var(--white); font-size: 16px; }
.history__img--shade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.5)); }
.history__btn { padding-bottom: 24px; }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.contact-card { display: flex; flex-direction: column; gap: 32px; padding: 24px; border-radius: var(--r-l); background: var(--grey); }
.contact-card__rows { display: flex; flex-direction: column; gap: 16px; font-size: 18px; }
.contact-card__rows > div { display: flex; flex-direction: column; gap: 8px; }
.contact-card__label { font-size: 16px; color: var(--grey-dark); }
.contact-map { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-l); background: var(--grey); overflow: hidden; }
.contact-card--address { justify-content: space-between; min-height: 337px; }
.contact-address { font-size: 18px; margin-bottom: 24px; max-width: 284px; }
.contact-map__frame { position: relative; min-height: 337px; border-radius: var(--r-m); overflow: hidden; }
.contact-map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Товар: ссылка ---------- */
.product-info__link { display: inline-block; margin-top: 24px; color: var(--red); font-weight: 500; }
.product-info__link:hover { text-decoration: underline; }
.article > .btn-pair, .article > button.btn { margin-bottom: 8px; }

/* ---------- 404 ---------- */
.nf { min-height: 520px; display: flex; align-items: center; }
.nf__code { font-family: var(--font-head); font-weight: 700; font-size: clamp(120px, 16vw, 280px); line-height: .85; color: var(--red); }
.nf .banner__content { gap: 24px; }

/* ---------- Окно контактов (пока не подключён Bitrix24) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(0, 0, 0, .5);
}
.modal[hidden] { display: none; }
.modal__box {
  position: relative; width: min(480px, 100%);
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  padding: 40px 32px 32px; border-radius: var(--r-xl); background: var(--white);
}
.modal__box a:not(.btn):hover { color: var(--red); }
.modal__close { position: absolute; top: 12px; right: 16px; font-size: 32px; line-height: 1; color: var(--grey-dark); }
.modal__close:hover { color: var(--red); }
.modal-open { overflow: hidden; }

/* ---------- Подвал: кнопка ---------- */
.footer__brand .btn { align-self: flex-start; }

/* ---------- Адаптив ---------- */
@media (max-width: 1500px) {
  .nav { gap: 20px; }
  .topbar__contacts .topbar__item--hours { display: none; }
  .calc { grid-template-columns: 1fr 1fr; }
  .faq { grid-template-columns: 3fr 2fr; }
  .about { grid-template-columns: 1fr 1.3fr; }
}

@media (max-width: 1279px) {
  .topbar { display: none; }
  .burger { display: inline-block; }
  .navbar__actions .btn { display: none; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(420px, 100%);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 96px 24px 24px;
    background: var(--white);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s, visibility .3s;
    overflow-y: auto;
    z-index: -1;
  }
  .menu-open .nav { transform: none; visibility: visible; box-shadow: -16px 0 40px rgba(0, 0, 0, .12); }
  .nav .btn { margin-top: 24px; }
  .nav > a, .nav__drop > a { padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--grey); width: 100%; justify-content: space-between; }
  .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 4px 0 8px; min-width: 0; }
  .nav__menu a { padding: 8px 0; }
  .nav .nav__mobile-only { display: flex; }
  .navbar__actions { position: relative; z-index: 2; }
  .logo { position: relative; z-index: 2; }

  .hero { grid-template-columns: 1fr; }
  .hero__photo { min-height: 640px; }
  .why { flex-direction: column; }
  .why__list { width: 100%; max-width: none; }
  .products, .buy, .news-list, .years { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promos { grid-template-columns: 1fr 1fr; }
  .promo:last-child { display: none; }
  .banner__art { opacity: .35; }
  .calc, .faq, .about, .product-top, .history__row { grid-template-columns: 1fr; }
  .product-main { display: contents; }
  .product-gallery { order: 1; }
  .product-info { order: 2; }
  .article { order: 3; }
  .product-info { position: static; }
  .promo-banner, .split { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split__img { height: 420px; }
  .history__row--reverse .history__img { order: -1; }
  .footer__top { flex-wrap: wrap; }
  .footer__contacts { align-items: flex-start; text-align: left; }
  .lead-form__art { opacity: .4; }
}

@media (min-width: 1280px) {
  .nav .nav__mobile-only { display: none; }
}

@media (max-width: 767px) {
  .header { padding-top: 16px; }
  .logo img { width: 128px; height: 30px; }
  .logo span { display: none; }
  main { padding-top: 24px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero__product { flex-direction: column; }
  .hero__product-img { width: 100%; }
  .hero__photo { min-height: 520px; }
  .hero__glass { left: 12px; right: 12px; bottom: 12px; padding: 16px 16px 0; }
  .products, .buy, .news-list, .years, .promos, .stats { grid-template-columns: 1fr; }
  .promo:last-child { display: flex; }
  .why__item { gap: 16px; }
  .banner { padding: 24px; min-height: 0; }
  .banner__art { position: relative; max-width: none; width: auto; height: 260px; margin: 24px -24px -24px; opacity: 1; }
  .banner__art--skolkovo .sk-logo { width: 140px; height: 140px; top: 100px; left: 16px; }
  .banner__art--skolkovo .sk-ill { left: 90px; width: calc(100% - 90px); height: 260px; }
  .banner__art--founder .person { height: 100%; }
  .calc__card { min-height: 360px; padding: 24px; }
  .calc__card > img { left: 30%; top: auto; bottom: -460px; width: 600px; height: 600px; }
  .lead-form { padding: 24px; }
  .lead-form { padding-bottom: 140px; }
  .lead-form__art { width: 300px; height: 300px; top: auto; bottom: -150px; right: -110px; opacity: 1; }
  .faq__item summary { padding: 16px; }
  .faq__item .text { padding: 0 16px 16px; }
  .product-gallery { height: 380px; }
  .product-gallery img { height: 360px; }
  .product-info { padding: 24px; }
  .about-hero__img { height: 320px; }
  .about__gallery { min-height: 0; }
  .about__gallery-row--a, .about__gallery-row--b { grid-template-columns: 1fr 1fr; }
  .about__gallery img { height: 180px; }
  .history__img { min-height: 300px; }
  .btn { padding: 16px 32px; white-space: normal; text-align: center; }
  .btn-pair .btn { padding: 16px 24px; }
  .specs td:last-child { text-align: left; }
  .contacts, .contact-map { grid-template-columns: 1fr; }
  .contact-map { grid-column: auto; }
  .contact-card--address { min-height: 0; gap: 24px; }
  .contact-map__frame { min-height: 300px; }
  .split__img { height: 300px; }
  .promo-banner__img { min-height: 260px; }
  .promo-banner__body { padding: 24px; }
  .note-card { flex-direction: column; align-items: flex-start; }
  .partner { padding: 0 16px 8px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
