/* ==========================================================================
   Иней — концепт сайта производителя холодильного оборудования
   ========================================================================== */

:root {
  --black: #151515;
  --black-2: #202020;
  --black-3: #2a2a2a;
  --line-dark: #404040;
  --white: #fff;
  --text: #202020;
  --muted: #5b6270;
  --muted-2: #6f7580;
  --muted-dark: #b3b8c2;
  --line: #e6e8eb;
  --bg-soft: #f8f8f8;
  --red: #e12026;
  --red-dark: #b8171c;
  --blue: #1f5fa8;

  --grad-light: linear-gradient(180deg, #d2dae7 0%, #9fb5de 100%);
  --grad-dark: linear-gradient(180deg, #6f7580 0%, #4d5769 100%);

  --font-display: "Russo One", "Arial Black", sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1300px;
  --gutter: 40px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .3s; }
a:hover { color: var(--red); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

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

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

/* градиентный текст — фирменный приём заголовков */
.gradient-text {
  background: var(--grad-light);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gradient-text--dark { background-image: var(--grad-dark); }

.section-title {
  margin: 0 0 64px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw + 8px, 56px);
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 32px;
  border: 0;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--black); color: var(--white); }
.btn--white { background: var(--white); color: var(--text); box-shadow: 0 2px 20px rgba(0,0,0,.05); }
.btn--white:hover { background: var(--red); color: var(--white); }
.btn:active { transform: scale(.97); }

.btn-like {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--white);
  transition: border-color .3s, color .3s, background-color .3s;
}
.btn-like svg { width: 22px; height: 22px; }
.btn-like:hover { border-color: var(--white); }
.btn-like[aria-pressed="true"] { color: var(--red); border-color: var(--red); }
.btn-like[aria-pressed="true"] svg { fill: currentColor; }
.btn-like.is-pop svg { animation: pop .4s var(--ease); }
@keyframes pop { 50% { transform: scale(1.35); } }

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.more-link::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--red);
  transition: width .4s var(--ease);
}
.more-link:hover::before { width: 56px; }

/* плюс, который поворачивается при наведении */
.gallery__plus {
  position: relative;
  width: 14px; height: 14px;
  transition: transform .4s var(--ease);
}
.gallery__plus::before,
.gallery__plus::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 14px; height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.gallery__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
:hover > .gallery__plus { transform: rotate(-90deg); }

/* ---------- Логотип ---------- */

.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo__mark { width: 34px; height: 34px; }
.logo__text { font-family: var(--font-display); font-size: 24px; letter-spacing: .08em; color: var(--black); }

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 6px 30px rgba(0,0,0,.08); }
.header__inner { min-height: var(--header-h); display: flex; align-items: center; gap: 48px; }
.nav { flex: 1; }
.nav__list { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.nav__link { position: relative; display: inline-block; padding: 6px 0; }
.nav__link--accent { font-size: 16px; font-weight: 500; }
.nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.header__actions { display: flex; align-items: center; }
.icon-btn {
  position: relative;
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--black);
  transition: color .3s;
}
.icon-btn:hover { color: var(--red); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn__badge {
  position: absolute; top: 10px; right: 10px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px;
  background: var(--red);
  color: var(--white);
  font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
}

.burger {
  display: none;
  position: relative;
  width: 56px; height: 56px;
  border: 0; border-left: 1px solid var(--line);
  background: none;
}
.burger span {
  position: absolute; left: 18px;
  width: 20px; height: 2px;
  background: var(--black);
  transition: transform .3s var(--ease), opacity .3s;
}
.burger span:nth-child(1) { top: 21px; }
.burger span:nth-child(2) { top: 27px; }
.burger span:nth-child(3) { top: 33px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.search { border-top: 1px solid var(--line); background: var(--white); }
.search:not([hidden]) { animation: drop .35s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }
.search__inner { display: flex; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.search__input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 20px;
  border: 1px solid var(--line);
  font: inherit;
  font-size: 16px;
  transition: border-color .3s;
}
.search__input:focus { outline: 0; border-color: var(--red); }
.search__submit { min-height: 52px; padding: 0 28px; border: 0; background: var(--red); color: var(--white); font-weight: 500; transition: background-color .3s; }
.search__submit:hover { background: var(--black); }

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

.banner {
  position: relative;
  min-height: min(100svh - var(--header-h), 900px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}
.banner__media {
  position: absolute; inset: -40px;
  background: url("../img/hero.jpg") center / cover no-repeat;
  animation: kenburns 24s ease-in-out infinite alternate;
}
.banner::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(21,21,21,.35) 0%, rgba(21,21,21,.85) 75%),
    rgba(21,21,21,.35);
}
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.12) translate(-1.5%, -1%); }
}
.banner__layout {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 80px;
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.banner__title {
  margin: 0;
  max-width: 1100px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw + 6px, 72px);
  line-height: 1.2;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.banner__subtitle { margin: 0; max-width: 640px; font-size: 18px; line-height: 1.55; color: #c9ced8; }
.banner__button svg { width: 18px; height: 18px; }

.banner__scroll {
  position: absolute; left: 50%; bottom: 32px; z-index: 2;
  width: 28px; height: 46px;
  margin-left: -14px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 14px;
}
.banner__scroll span {
  position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--white);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- Готовые решения ---------- */

.readymade {
  position: relative;
  background: var(--black);
  color: var(--white);
  padding: 120px 0 220px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 120px), 0 100%);
}
.readymade__topbar {
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}
.readymade__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 2.4vw + 8px, 40px);
  line-height: 1.2;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* табы-пилюли: иконки, у активного раскрывается подпись, под ним едет красный бегунок */
.tabs {
  position: relative;
  display: flex;
  border: 1px solid var(--line-dark);
  border-radius: 30px;
  isolation: isolate;
}
.tabs__slider {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  border-radius: 30px;
  background: var(--red);
  z-index: -1;
  transition: transform .5s var(--ease), width .5s var(--ease);
}
.tabs__btn {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 28px;
  border: 0;
  border-radius: 30px;
  background: none;
  color: var(--white);
  font-size: 15px;
  white-space: nowrap;
}
.tabs__btn svg { flex: none; width: 20px; height: 20px; }
.tabs__btn::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 30px;
  background: var(--black-2);
  z-index: -1;
  opacity: 0;
  transition: opacity .3s;
}
.tabs__btn:hover:not([aria-selected="true"])::before { opacity: 1; }
.tabs__text {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width .8s var(--ease), opacity .4s, margin .8s var(--ease);
}
.tabs__btn[aria-selected="true"] .tabs__text { max-width: 260px; margin-left: 10px; opacity: 1; }

.models { margin: 0 0 56px; overflow: hidden; }
.models .swiper-slide { width: auto; }
.model {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 92px;
  padding: 6px 28px 6px 14px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--white);
  font-size: 16px;
  transition: background-color .3s, color .3s;
}
.model svg { width: 40px; height: 80px; flex: none; transition: transform .4s var(--ease); }
.model:hover:not([aria-pressed="true"]) { background: var(--black-2); }
.model:hover svg { transform: translateY(-4px); }
.model[aria-pressed="true"] { background: var(--white); color: var(--text); }

.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.product__visual { display: flex; justify-content: center; perspective: 1000px; }
.product__visual svg { width: 100%; max-width: 380px; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
.product__info { min-width: 0; display: flex; flex-direction: column; gap: 28px; }

/* у .swiper margin: 0 auto — во flex-колонке он отключает растягивание, поэтому ширину задаём явно */
.features { width: 100%; overflow: hidden; }
.features .swiper-wrapper { margin: 0; padding: 0; list-style: none; }
.features .swiper-slide { width: 132px; }
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature__img {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px;
  background: linear-gradient(160deg, #f4f5f7 0%, #d9dee6 100%);
  color: var(--black);
  overflow: hidden;
}
.feature__img svg { width: 48px; height: 48px; transition: transform .4s var(--ease); }
.feature:hover .feature__img svg { transform: scale(1.15); }
.feature__label { font-size: 13px; line-height: 1.35; color: #c8ced6; }

.specs { overflow-x: auto; border: 1px solid var(--line-dark); border-radius: 5px; }
.specs table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.specs th, .specs td { padding: 12px 20px; text-align: left; border-bottom: 1px solid var(--black-3); }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 58%; font-weight: 400; color: var(--muted-dark); }
.specs tr { transition: background-color .2s; }
.specs tr:hover { background: var(--black-2); }

.product__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* смена модели */
.is-swapping .product__visual svg { animation: fridgeIn .7s var(--ease); }
.is-swapping .specs tbody { animation: fadeUp .6s var(--ease); }
@keyframes fridgeIn { from { opacity: 0; transform: translateX(60px) rotateY(-12deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Цифры ---------- */

.numbers { position: relative; padding: 0 0 120px; margin-top: -40px; }
.numbers__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0; padding: 0;
  list-style: none;
}
.numbers__item {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px;
  padding: 0 20px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.numbers__item:first-child { border-left: 0; }
.numbers__item > svg { width: 34px; height: 34px; color: var(--red); }
.numbers__value {
  font-family: var(--font-display);
  font-size: clamp(28px, 1.9vw + 14px, 46px);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.numbers__label { max-width: 180px; font-size: 15px; line-height: 1.4; color: var(--muted); }

/* ---------- О компании (видео) ---------- */

.about {
  position: relative;
  z-index: 1;
  background: var(--black);
  color: var(--white);
  padding: 100px 0 80px;
}
.about::before,
.about::after {
  content: "";
  position: absolute; left: 0;
  width: 100%;
  background: var(--black);
}
.about::before { top: -49px; height: 50px; clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%); }
.about::after { bottom: -94px; height: 95px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 45%, 0 100%); }
.about__inner { display: flex; flex-direction: column; gap: 80px; }
.about__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }

.about__video {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  border: 12px solid #3a3a3a;
  border-radius: 14px;
  background: linear-gradient(160deg, #f4f5f7, #dfe3e9);
  cursor: none;
  overflow: hidden;
  transition: border-color .3s;
}
.about__video:hover { border-color: #4a4a4a; }
.about__video-logo { display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--black); transition: transform .6s var(--ease); }
.about__video:hover .about__video-logo { transform: scale(.96); }
.about__video-logo svg { width: 64px; height: 64px; }
.about__video-logo span { font-family: var(--font-display); font-size: 36px; letter-spacing: .14em; }
.about__video-logo small { font-family: var(--font-display); font-size: 12px; letter-spacing: .5em; color: var(--muted); }

/* курсор-кнопка, которая следует за мышью */
.cursor {
  position: fixed; left: 0; top: 0;
  z-index: 50;
  width: 84px; height: 84px;
  pointer-events: none;
  opacity: 0;
}
.cursor > span {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--white);
  color: var(--red);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transform: scale(0);
  transition: transform .35s var(--ease);
}
.cursor svg { width: 26px; height: 26px; margin-left: 4px; }
.cursor.is-active { opacity: 1; }
.cursor.is-active > span { transform: scale(1); }
/* на тач-устройствах курсор стоит по центру */
@media (hover: none) {
  .about__video { cursor: pointer; }
  .cursor { position: absolute; left: auto; top: auto; right: 12px; bottom: 12px; width: 64px; height: 64px; opacity: 1; }
  .cursor > span { transform: none; }
}

.about__text { display: flex; flex-direction: column; gap: 20px; }
.about__stripe { width: 70px; height: 14px; background: var(--red); transform: skewY(-10deg); transform-origin: left; }
.about__text p { margin: 0; font-size: 18px; line-height: 1.6; color: #e3e7ec; }
.about__text p + p { font-size: 16px; color: var(--muted-dark); }

.eco { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.eco__item { display: flex; align-items: center; gap: 16px; font-size: 14px; line-height: 1.45; color: #d3d8de; }
.eco__icon {
  flex: none;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--black-2);
  color: #8cc7a1;
  transition: background-color .3s, color .3s, transform .4s var(--ease);
}
.eco__icon svg { width: 24px; height: 24px; }
.eco__item:hover .eco__icon { background: var(--white); color: var(--black); transform: rotate(-12deg); }

/* ---------- Сервис ---------- */

.service { padding: 200px 0 120px; overflow: hidden; }
.service__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.service__content { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 40px; }
.service__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 1.5vw + 18px, 42px);
  line-height: 1.25;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.service__gear {
  position: absolute; left: -120px; top: 34%;
  width: 260px; height: 260px;
  color: #eceef1;
  z-index: -1;
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 28px; }
.steps__item { display: flex; gap: 22px; }
.steps__num {
  flex: none;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 18px;
  transition: transform .4s var(--ease), background-color .3s;
}
.steps__item:hover .steps__num { transform: scale(1.12); background: var(--black); }
.steps__title { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.steps__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.service__photo { position: relative; height: 560px; overflow: hidden; border-radius: 5px; }
.service__photo img {
  width: 100%; height: 120%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter .6s;
}
.service__photo:hover img { filter: none; }

/* ---------- Преимущества (4 колонки) ---------- */

.articles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #000; color: var(--white); }
.article {
  position: relative;
  min-height: 640px;
  padding: 40px 32px 32px;
  display: flex; flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  border-right: 1px solid #111;
}
.article::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -2;
  background: var(--img, none) center / cover no-repeat;
  filter: grayscale(1) brightness(.75);
  transition: filter .6s, transform 1.2s var(--ease);
}
.article::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.1) 40%, rgba(0,0,0,.2) 60%, rgba(0,0,0,.9) 100%);
  transition: background-color .5s;
}
.article:hover::before { filter: none; transform: scale(1.06); }
.article__head { display: flex; align-items: flex-start; gap: 14px; }
.article__head svg { flex: none; width: 28px; height: 28px; color: var(--red); }
.article__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: .05em;
  text-transform: uppercase;
  hyphens: manual;
}
.article__body {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: auto;
  transition: grid-template-rows .6s var(--ease);
}
.article__body p {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.6;
  color: #e3e7ec;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .4s, transform .6s var(--ease);
}
.article.is-open .article__body { grid-template-rows: 1fr; }
.article.is-open .article__body p { opacity: 1; transform: none; transition-delay: .15s; }
.article.is-open::after { background-color: rgba(0,0,0,.55); }
.article__more {
  align-self: flex-end;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 44px;
  margin-top: 20px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.article__more::before { content: ""; width: 24px; height: 1px; background: var(--red); transition: width .5s var(--ease); }
.article:hover .article__more::before { width: 72px; }

/* ---------- СМИ ---------- */

.media { padding: 120px 0 80px; }
.media__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.video-card { border: 1px solid var(--line); background: var(--white); transition: box-shadow .4s, transform .4s var(--ease); }
.video-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,.08); transform: translateY(-6px); }
.video-card__preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--bg-soft);
}
.video-card__preview::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--img, none) center / cover no-repeat;
  filter: grayscale(1) brightness(.85);
  transition: filter .5s, transform .8s var(--ease);
}
.video-card:hover .video-card__preview::before { filter: grayscale(.2); transform: scale(1.05); }
.video-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.video-card__source { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.video-card__title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; }

/* play-кнопка: красная дуга дорисовывается до круга при наведении */
.play-button {
  position: relative;
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--red);
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.play-button::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  clip-path: circle(45% at 50% 100%);
  transition: clip-path .6s var(--ease);
}
:hover > .play-button::before,
.play-button:hover::before { clip-path: circle(100% at 50% 100%); }
.play-button svg { width: 22px; height: 22px; margin-left: 4px; }
.play-button--big { width: 96px; height: 96px; }
.play-button--big svg { width: 30px; height: 30px; }

/* ---------- Галерея ---------- */

.gallery { padding-top: 40px; }
.gallery__slider { overflow: hidden; }
.gallery__photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--black-2);
}
.gallery__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.gallery__photo > svg {
  position: absolute; left: 50%; top: 50%;
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  padding: 14px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  opacity: 0;
  transform: scale(.4);
  transition: opacity .3s, transform .4s var(--ease);
}
.gallery__photo:hover img { transform: scale(1.08); filter: brightness(.7); }
.gallery__photo:hover > svg,
.gallery__photo:focus-visible > svg { opacity: 1; transform: none; }
.gallery__panel { display: flex; flex-wrap: wrap; }
.gallery__all {
  flex: 1 1 520px;
  min-height: 80px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  border: 0;
  background: var(--red);
  color: var(--white);
  font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .3s;
}
.gallery__all:hover { background: var(--red-dark); }
.gallery__nav {
  flex: 0 1 420px;
  min-height: 80px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 40px;
  background: var(--black);
  color: var(--white);
}
.gallery__arrow {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0;
  background: none;
  color: var(--white);
  transition: color .3s, transform .3s var(--ease);
}
.gallery__arrow svg { width: 16px; height: 16px; }
.gallery__arrow:hover { color: var(--red); }
.gallery__arrow:disabled { opacity: .3; cursor: default; }
.gallery__counter { margin-left: auto; font-family: var(--font-display); font-size: 30px; letter-spacing: .06em; }
.gallery__counter small { font-size: 18px; color: #8a8f99; }

/* ---------- Новости ---------- */

.news { padding: 120px 0; background: var(--bg-soft); overflow: hidden; }
.news__slider { overflow: visible; }
.news-card { height: auto; display: flex; flex-direction: column; background: var(--white); transition: box-shadow .4s; }
.news-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,.08); }
.news-card__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.news-card__img::after {
  content: "";
  position: absolute; left: -1px; bottom: -1px;
  width: 72px; height: 72px;
  background: var(--white);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-card:hover .news-card__img img { transform: scale(1.06); }
.news-card__body { flex: 1; padding: 20px 28px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.news-card__date { font-size: 13px; color: var(--muted-2); }
.news-card__title { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; }
.news-card__text { flex: 1; margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.news__footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; }
.plus-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.plus-link .gallery__plus { color: var(--red); }
.news__arrows { display: flex; gap: 10px; }
.round-arrow {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #d5d9de;
  border-radius: 50%;
  background: var(--white);
  color: var(--text);
  transition: background-color .3s, color .3s, border-color .3s;
}
.round-arrow svg { width: 14px; height: 14px; }
.round-arrow:hover:not(:disabled) { background: var(--red); border-color: var(--red); color: var(--white); }
.round-arrow:disabled { opacity: .4; cursor: default; }

/* ---------- Партнёры ---------- */

.partners { padding: 120px 0; overflow: hidden; }
.partners__slider { overflow: visible; }
.partners__slider .swiper-wrapper { margin: 0; padding: 0; list-style: none; }
.partner { width: 220px; height: 220px; display: flex; align-items: center; justify-content: center; position: relative; }
.partner::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 150px; height: 150px;
  background: var(--white);
  border: 1px solid var(--line);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform .6s var(--ease), box-shadow .6s;
}
.partner:hover::before { transform: translate(-50%, -50%) rotate(0deg) scale(1.15); box-shadow: 0 0 30px rgba(0,0,0,.1); }
.partner__logo { position: relative; text-align: center; line-height: 1.05; color: #9aa1ab; filter: grayscale(1); transition: color .4s, filter .4s, transform .6s var(--ease); }
.partner:hover .partner__logo { filter: none; transform: scale(1.05); }
.partner__logo--1 { font-family: Georgia, serif; font-size: 20px; font-style: italic; }
.partner:hover .partner__logo--1 { color: #a35b1b; }
.partner__logo--2 { font-family: var(--font-display); font-size: 26px; letter-spacing: .2em; }
.partner:hover .partner__logo--2 { color: var(--blue); }
.partner__logo--3 { font-family: var(--font-body); font-size: 30px; font-weight: 300; letter-spacing: -.02em; }
.partner__logo--3 b { font-weight: 700; }
.partner:hover .partner__logo--3 { color: #1aa3b8; }
.partner__logo--4 { font-family: Georgia, serif; font-size: 21px; font-weight: 700; }
.partner:hover .partner__logo--4 { color: #2e7d32; }
.partner__logo--5 { font-family: var(--font-body); font-size: 16px; font-weight: 700; letter-spacing: .14em; }
.partner:hover .partner__logo--5 { color: #e0a800; }
.partner__logo--6 { font-family: var(--font-display); font-size: 22px; }
.partner:hover .partner__logo--6 { color: #c2185b; }

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

.footer { border-top: 1px solid var(--line); }
.footer__inner { padding-top: 64px; padding-bottom: 64px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.footer__about { display: flex; flex-direction: column; gap: 22px; }
.footer__desc { margin: 0; max-width: 320px; font-size: 13px; line-height: 1.5; color: var(--muted-2); }
.footer__contacts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer__contacts li { display: flex; align-items: flex-start; gap: 12px; }
.footer__contacts svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--red); }
.footer__contacts a { font-weight: 500; }
.footer__contacts address { font-style: normal; color: var(--muted); }
.footer__nav ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.footer__nav a { position: relative; }
.footer__bottom { background: var(--red); color: var(--white); }
.footer__bottom-inner {
  padding-top: 22px; padding-bottom: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px;
  font-size: 13px;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__bottom a:hover { color: var(--white); text-decoration: underline; }
.footer__social { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer__social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  transition: background-color .3s, color .3s, border-color .3s;
}
.footer__social a:hover { background: var(--white); color: var(--red); border-color: var(--white); text-decoration: none; }
.footer__social svg { width: 18px; height: 18px; }

/* ---------- Наверх ---------- */

.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 90;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border: 0;
  background: var(--red);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity .3s, visibility .3s, transform .4s var(--ease), background-color .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--black); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Модалки ---------- */

.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(10,10,10,.7); backdrop-filter: blur(4px); animation: fade .3s; }
.modal__window {
  position: relative;
  width: 100%; max-width: 760px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 56px;
  background: var(--white);
  animation: modalIn .5s var(--ease);
}
.modal__window--video { max-width: 1000px; padding: 0; background: var(--black); }
@keyframes fade { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(40px) scale(.97); } }
.modal__close {
  position: absolute; top: 12px; right: 12px;
  z-index: 2;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 0;
  background: none;
  color: var(--text);
  transition: transform .4s var(--ease), color .3s;
}
.modal__close:hover { color: var(--red); transform: rotate(90deg); }
.modal__close svg { width: 22px; height: 22px; }
.modal--dark .modal__close { color: var(--white); }
.modal__title { margin: 0 0 10px; font-family: var(--font-display); font-weight: 400; font-size: 30px; letter-spacing: .04em; text-transform: uppercase; }
.modal__subtitle { margin: 0 0 32px; font-size: 15px; line-height: 1.5; color: var(--muted); }

.form { display: flex; flex-direction: column; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { position: relative; }
.field__input {
  width: 100%;
  height: 56px;
  padding: 22px 46px 8px 16px;
  border: 1px solid #cfd4da;
  border-radius: 4px;
  background: var(--white);
  font: inherit;
  font-size: 16px;
  transition: border-color .3s, box-shadow .3s;
  resize: vertical;
}
.field--area .field__input { height: auto; min-height: 110px; padding-top: 28px; padding-right: 16px; }
.field__input:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,32,38,.12); }
.field__label {
  position: absolute; left: 17px; top: 18px;
  font-size: 16px;
  color: var(--muted-2);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .25s var(--ease), color .25s;
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label { transform: translateY(-10px) scale(.75); color: var(--red); }
.field__icon { position: absolute; right: 16px; top: 18px; width: 20px; height: 20px; color: #a3a9b2; }
.field.is-invalid .field__input { border-color: var(--red); }

.file { position: relative; display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font-size: 15px; cursor: pointer; }
.file__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file svg { width: 20px; height: 20px; color: var(--red); }
.file__label { border-bottom: 1px dashed currentColor; transition: color .3s; }
.file:hover .file__label { color: var(--red); }
.file:focus-within { outline: 2px solid var(--red); outline-offset: 4px; }

.check { position: relative; display: flex; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.check__input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.check__mark {
  flex: none;
  position: relative;
  width: 22px; height: 22px;
  border: 1px solid #cfd4da;
  border-radius: 4px;
  transition: background-color .25s, border-color .25s;
}
.check__mark::after {
  content: "";
  position: absolute; left: 7px; top: 3px;
  width: 6px; height: 11px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .3s var(--ease);
}
.check__input:checked + .check__mark { background: var(--red); border-color: var(--red); }
.check__input:checked + .check__mark::after { transform: rotate(45deg) scale(1); }
.check__input:focus-visible + .check__mark { outline: 2px solid var(--red); outline-offset: 2px; }
.form__error { margin: 0; font-size: 14px; color: var(--red); }
.form__submit { align-self: flex-start; }
.form-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.form-success:not([hidden]) { animation: fadeUp .5s var(--ease); }
.form-success > svg { width: 64px; height: 64px; margin-bottom: 12px; color: var(--red); }

.video-stub {
  aspect-ratio: 16 / 9;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  padding: 32px;
  background:
    radial-gradient(circle at center, rgba(225,32,38,.18), transparent 60%),
    var(--black);
  color: var(--white);
  text-align: center;
}
.video-stub__title { margin: 8px 0 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(18px, 2vw, 26px); letter-spacing: .04em; text-transform: uppercase; }
.video-stub__note { margin: 0; font-size: 14px; color: #8a8f99; }

/* ---------- Лайтбокс ---------- */

.lightbox {
  position: fixed; inset: 0;
  z-index: 210;
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  padding: 60px 20px;
  background: rgba(10,10,10,.94);
  animation: fade .3s;
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: min(1100px, 100%); display: flex; flex-direction: column; gap: 14px; }
.lightbox__img { max-height: calc(100vh - 160px); width: auto; margin: 0 auto; object-fit: contain; }
.lightbox__img.is-changing { animation: fade .4s; }
.lightbox__caption { color: #c9ced8; font-size: 14px; text-align: center; }
.lightbox__arrow,
.lightbox__close {
  flex: none;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: none;
  color: var(--white);
  transition: background-color .3s, border-color .3s;
}
.lightbox__arrow:hover,
.lightbox__close:hover { background: var(--red); border-color: var(--red); }
.lightbox__arrow svg { width: 16px; height: 16px; }
.lightbox__close { position: absolute; top: 16px; right: 16px; }
.lightbox__close svg { width: 22px; height: 22px; }

/* ---------- Тост ---------- */

.toast {
  position: fixed; left: 50%; bottom: 24px;
  z-index: 300;
  padding: 14px 22px;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  transform: translateX(-50%);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.toast:not([hidden]) { animation: toastIn .4s var(--ease); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 20px); } }

/* ---------- Фотографии (CC0, Wikimedia Commons / Unsplash — см. assets/img/CREDITS.md) ---------- */

.img-welder   { --img: url("../img/g-welder.jpg"); }
.img-storage  { --img: url("../img/g-storage.jpg"); }
.img-robots   { --img: url("../img/g-robots.jpg"); }
.img-energy   { --img: url("../img/b-energy.jpg"); }
.img-eco      { --img: url("../img/b-eco.jpg"); }
.img-food     { --img: url("../img/b-food.jpg"); }
.img-cool     { --img: url("../img/b-cool.jpg"); }

/* ---------- Появление при скролле (включается из JS) ---------- */

.js-anim [data-reveal] { opacity: 0; transform: translateY(40px); }

/* ---------- Адаптив ---------- */

@media (max-width: 1200px) {
  :root { --gutter: 24px; }
  .header__inner { gap: 24px; }
  .nav__list { gap: 8px 20px; }
  .numbers__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .numbers__item:nth-child(4) { border-left: 0; }
  .articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article { min-height: 480px; }
  .eco { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product { gap: 40px; }
}

@media (max-width: 1024px) {
  .burger { display: inline-block; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(0,0,0,.08);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .5s var(--ease), visibility .5s;
  }
  .nav.is-open { clip-path: inset(0); visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav__list a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .header__actions { margin-left: auto; }
  .product { grid-template-columns: minmax(0, 1fr); }
  .product__visual svg { max-width: 300px; }
  .about__row, .service__inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .service__photo { height: 420px; }
  .media__row { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .icon-btn, .burger { width: 48px; height: 48px; }
  .burger span { left: 14px; }
  .burger span:nth-child(1) { top: 17px; }
  .burger span:nth-child(2) { top: 23px; }
  .burger span:nth-child(3) { top: 29px; }
  .icon-btn--fav { display: none; }
  .section-title { margin-bottom: 40px; }
  .banner__layout { padding-top: 64px; padding-bottom: 110px; gap: 24px; }
  .banner__subtitle { font-size: 16px; }
  .readymade { padding: 72px 0 140px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 0 100%); }
  .tabs { width: 100%; justify-content: space-between; }
  .tabs__btn { padding: 0 14px; font-size: 13px; }
  .tabs__btn[aria-selected="true"] { flex: 1; justify-content: center; }
  .tabs__text { white-space: normal; line-height: 1.15; text-align: left; }
  .tabs__btn[aria-selected="true"] .tabs__text { max-width: 130px; margin-left: 8px; }
  .model { height: 76px; padding: 4px 18px 4px 10px; gap: 12px; font-size: 14px; }
  .model svg { width: 30px; height: 60px; }
  .models { margin-bottom: 32px; }
  .specs table { min-width: 0; font-size: 13px; }
  .specs th, .specs td { padding: 10px 12px; vertical-align: top; }
  .specs th { width: 55%; }
  .numbers { padding-bottom: 80px; margin-top: 0; }
  .numbers__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers__item { border-left: 0; padding: 0 8px; }
  .numbers__item:last-child { grid-column: 1 / -1; }
  .about { padding: 64px 0 48px; }
  .about__inner { gap: 48px; }
  .eco { grid-template-columns: 1fr; gap: 20px; }
  .service { padding: 140px 0 72px; }
  .service__photo { height: 300px; }
  .service__gear { width: 180px; height: 180px; left: auto; right: -60px; top: 0; }
  .articles { grid-template-columns: 1fr; }
  .article { min-height: 360px; }
  .article__body { grid-template-rows: 1fr; }
  .article__body p { opacity: 1; transform: none; }
  .article__more { display: none; }
  .media { padding: 72px 0 40px; }
  .media__row { grid-template-columns: 1fr; }
  .gallery__nav { flex-basis: 100%; padding: 0 16px; }
  .news, .partners { padding: 72px 0; }
  .partner { width: 170px; height: 170px; }
  .partner::before { width: 116px; height: 116px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .modal__window { padding: 48px 20px 28px; }
  .form__row { grid-template-columns: 1fr; }
  .lightbox { padding: 70px 8px; gap: 6px; }
  .lightbox__arrow { position: absolute; bottom: 16px; }
  .lightbox__arrow--prev { left: calc(50% - 60px); }
  .lightbox__arrow--next { right: calc(50% - 60px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js-anim [data-reveal] { opacity: 1; transform: none; }
}
