/* VolÅn CT Landing — design tokens from Figma */
:root {
  --color-bg: #0f0f0f;
  --color-white: #efeeee;
  --color-grey: #878787;
  --color-accent: #2b8b8b;
  --color-accent-dark: #005d62;
  --color-progress-bg: #3a3a3a;
  --font-main: 'Roboto', sans-serif;
  --font-mono: 'Roboto Mono', monospace;
  --container-width: 1200px;
  --side-padding: 120px;
  --header-height: 60px;
  --header-height-compact: 40px;
  --logo-height: 40px;
  --logo-height-compact: 27px;
  --logo-gap: 16px;
  --logo-gap-compact: 11px;
  --case-height: 600px;
  --section-height: 750px;
  --section-header-height: 150px;
  --hover-width: 400px;
  --hover-height: 600px;
  --hover-image-width: 360px;
  --nav-item-gap: 60px;
  --nav-lang-gap: 60px;
}

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

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

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-white);
  line-height: 1.4;
  overflow-x: hidden;
}

body.hero-fullscreen-open {
  overflow: hidden;
  touch-action: none;
}

body.article-pdf-open {
  overflow: hidden;
}

body.mobile-menu-open {
  overflow: hidden;
}

body.mobile-hover-open {
  overflow: hidden;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.accent {
  color: var(--color-accent);
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  height: var(--header-height);
  padding-top: 10px;
  padding-bottom: 10px;
  transition: height 0.25s ease, padding 0.25s ease;
}

.header--compact .header__inner {
  height: var(--header-height-compact);
  padding-top: 0;
  padding-bottom: 0;
}

.logo {
  display: flex;
  align-items: flex-end;
  gap: var(--logo-gap);
  transition: gap 0.25s ease;
}

.header--compact .logo {
  gap: var(--logo-gap-compact);
}

.logo__img {
  height: var(--logo-height);
  width: auto;
  transition: height 0.25s ease;
}

.header--compact .logo__img {
  height: var(--logo-height-compact);
}

.logo__ct {
  font-weight: 300;
  font-size: 24px;
  line-height: 16px;
  color: var(--color-accent-dark);
  padding-bottom: 2px;
  transition: font-size 0.25s ease, padding 0.25s ease;
}

.header--compact .logo__ct {
  font-size: 16px;
  padding-bottom: 1px;
}

.header__menu {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding-top: 16px;
  transition: padding-top 0.25s ease;
}

.header__menu .nav__link + .nav__link,
.header__menu .nav__link + .nav__contacts {
  margin-left: var(--nav-item-gap);
}

.header__menu .nav__contacts + .nav__lang {
  margin-left: var(--nav-lang-gap);
}

.header--compact .header__menu {
  padding-top: 0;
}

.nav__lang {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 16px;
  line-height: 20px;
  user-select: none;
}

.nav__lang-btn {
  padding: 0;
  font-size: 16px;
  line-height: 20px;
  color: var(--color-grey);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s;
}

.nav__lang-btn--active {
  color: var(--color-white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: default;
}

.nav__lang-sep {
  color: var(--color-grey);
  margin: 0 1px;
  pointer-events: none;
}

.nav__link {
  font-size: 16px;
  line-height: 20px;
  color: var(--color-grey);
  transition: color 0.2s;
  flex-shrink: 0;
}

.nav__link:hover {
  color: var(--color-white);
}

.nav__contacts {
  font-size: 16px;
  line-height: 20px;
  color: var(--color-grey);
  flex-shrink: 0;
  transition: color 0.2s;
}

.header--compact .nav__contacts {
  padding-top: 0;
}

.nav__contacts:hover {
  color: var(--color-white);
}

/* Burger (mobile) */
.header__burger {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  position: relative;
  flex-shrink: 0;
  padding: 0;
}

.header__burger-line {
  position: absolute;
  left: 8px;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.25s ease;
}

.header__burger-line:nth-child(1) {
  top: 11px;
}

.header__burger-line:nth-child(2) {
  top: 19px;
}

.header__burger-line:nth-child(3) {
  top: 27px;
}

.header--menu-open .header__burger-line:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.header--menu-open .header__burger-line:nth-child(2) {
  opacity: 0;
}

.header--menu-open .header__burger-line:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(33, 33, 33, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu--open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 80px;
  height: 100%;
  padding: 28px 20px 40px;
}

.mobile-menu__link {
  font-weight: 300;
  font-size: 24px;
  line-height: 32px;
  color: var(--color-grey);
  transition: color 0.2s;
}

.mobile-menu__link:hover {
  color: var(--color-white);
}

.mobile-menu__contacts {
  font-weight: 300;
  font-size: 24px;
  line-height: 32px;
  color: var(--color-grey);
  transition: color 0.2s;
}

.mobile-menu__contacts:hover {
  color: var(--color-white);
}

.mobile-menu__lang {
  font-size: 24px;
  line-height: 32px;
}

.mobile-menu__lang .nav__lang-btn {
  font-size: 24px;
  line-height: 32px;
}

.mobile-menu__lang .nav__lang-btn--active {
  color: var(--color-white);
}

.header--menu-open .mobile-menu {
  top: var(--header-height-menu-open);
}

.header--compact:not(.header--menu-open) .mobile-menu {
  top: var(--header-height-compact);
}

.menu-progress {
  height: 1px;
  background: rgba(135, 135, 135, 0.3);
  position: relative;
}

.menu-progress__fill {
  height: 100%;
  width: 0;
  background: var(--color-accent);
  will-change: width;
}

/* ── Sections ── */
.section {
  padding-bottom: 0;
}

.section--hero,
#sections-root > .section {
  height: var(--section-height);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.section--hero {
  padding-top: 0;
}

#sections-root > .section + .section {
  margin-top: 60px;
}

.section:not(.section--hero) {
  padding-top: 0;
}

/* Hero intro */
.hero-intro {
  height: calc(var(--section-header-height) - 24px);
  flex: 0 0 calc(var(--section-header-height) - 24px);
  padding-top: 24px;
  margin-bottom: 0;
  overflow: hidden;
  box-sizing: border-box;
  opacity: 0;
  animation: heroViewportFadeIn 0.65s ease forwards;
}

.hero-intro__title {
  font-weight: 200;
  font-size: 36px;
  line-height: 46px;
  color: var(--color-accent);
  max-width: 871px;
}

.hero-intro__subtitle {
  font-size: 20px;
  line-height: 30px;
  color: var(--color-grey);
  margin-top: 0;
}

.hero-intro__subtitle .accent {
  font-size: 20px;
}

/* Section header */
.section-header {
  height: var(--section-header-height);
  flex: 0 0 var(--section-header-height);
  padding-top: 36px;
  padding-bottom: 20px;
  overflow: hidden;
  box-sizing: border-box;
}

.section-header__title-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-left: 24px;
  position: relative;
  margin-bottom: 20px;
}

.section-header__line {
  position: absolute;
  left: 0;
  top: 5px;
  width: 3px;
  height: 20px;
  background: var(--color-accent);
}

.section-header__title {
  font-weight: 400;
  font-size: 24px;
  line-height: 30px;
  color: var(--color-white);
  text-transform: uppercase;
}

.section-header__tagline {
  font-weight: 300;
  font-size: 20px;
  line-height: normal;
  color: var(--color-accent-dark);
  padding-top: 6px;
}

.section-header__desc {
  font-size: 18px;
  line-height: 22px;
  color: var(--color-grey);
  max-width: 858px;
}

/* ── Case slider ── */
.case-slider {
  position: relative;
  flex: 0 0 var(--case-height);
  height: var(--case-height);
  min-height: var(--case-height);
}

.case-viewport {
  position: relative;
  height: var(--case-height);
  overflow: hidden;
}

/* Progress bar */
.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  gap: 2px;
  height: 2px;
}

.progress-segment {
  flex: 1;
  height: 100%;
  background: var(--color-progress-bg);
  position: relative;
  overflow: hidden;
}

.progress-segment__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--color-accent);
}

.progress-segment--done .progress-segment__fill {
  width: 100%;
}

/* Slides */
.case-slides {
  position: absolute;
  inset: 0;
}

.case-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.case-slide--active {
  opacity: 1;
  pointer-events: auto;
}

.case-image-wrap {
  position: absolute;
  inset: 0;
}

.case-image-wrap picture {
  display: block;
}

.case-image-wrap img,
.hover-image-wrap img {
  max-width: none;
}

.case-image {
  object-fit: cover;
  pointer-events: none;
}

/* Hero: 800×600 frame, centered */
.case-image-wrap.case-image--centered {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 800px;
  height: 600px;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.case-image-wrap.case-image--centered picture {
  width: 100%;
  height: 100%;
}

.case-image-wrap.case-image--centered .case-image--main {
  position: absolute;
  width: 119.56%;
  height: 89.67%;
  left: -11.65%;
  top: 5.17%;
  max-width: none;
  object-fit: cover;
}

/* Реконструкция: 1200×600 crop frame (Figma) */
.case-image-wrap.case-image--geology {
  inset: 0;
  overflow: hidden;
}

.case-image-wrap.case-image--geology picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.case-image-wrap.case-image--geology picture:first-child {
  z-index: 1;
}

.case-image-wrap.case-image--geology picture:last-child {
  z-index: 2;
}

.case-image-wrap.case-image--geology .case-image--main {
  position: absolute;
  width: 56.58%;
  height: auto;
  left: 42.08%;
  top: -23.43%;
  transform: rotate(71.88deg);
  transform-origin: center center;
}

.case-image-wrap.case-image--geology .case-image--extra {
  position: absolute;
  width: 52%;
  height: auto;
  left: 66.42%;
  top: -21.83%;
  transform: rotate(71.9deg);
  transform-origin: center center;
  opacity: 0.7;
}

/* Объёмный анализ: 599×600 frame */
.case-image-wrap.case-image--lifescience {
  position: absolute;
  left: calc(50% - 48.5px);
  top: 50%;
  width: 599px;
  height: 600px;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.case-image-wrap.case-image--lifescience picture {
  position: absolute;
  inset: 0;
}

.case-image-wrap.case-image--lifescience .case-image--main {
  position: absolute;
  width: 164.15%;
  height: 92.19%;
  left: -32%;
  top: 7.82%;
  max-width: none;
  object-fit: cover;
  object-position: center bottom;
}

/* Автоматизация: 1000×600 frame */
.case-image-wrap.case-image--tech {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1000px;
  height: 600px;
  max-width: 100%;
  transform: translateX(-50%);
  overflow: hidden;
}

.case-image-wrap.case-image--tech picture {
  width: 100%;
  height: 100%;
}

.case-image-wrap.case-image--tech .case-image--main {
  position: absolute;
  width: 100%;
  height: 93.78%;
  top: 6.24%;
  left: 0;
  max-width: none;
  object-fit: cover;
}

/* Полноразмерный кадр 1200×600 */
.case-image-wrap.case-image--frame-full {
  inset: 0;
  overflow: hidden;
}

.case-image-wrap.case-image--frame-full picture {
  width: 100%;
  height: 100%;
}

.case-image-wrap.case-image--frame-full .case-image--main {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Объёмный анализ: поворотный кулак — 600px по высоте, по центру */
.case-image-wrap.case-image--knuckle-frame {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.case-image-wrap.case-image--knuckle-frame picture {
  display: block;
  height: 600px;
  width: auto;
  flex-shrink: 0;
}

.case-image-wrap.case-image--knuckle-frame .case-image--main {
  display: block;
  height: 600px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

/* Hero: теплообменник */
.case-image-wrap.case-image--heat-exchanger {
  position: absolute;
  left: calc(50% - 23.52px);
  top: -8.78px;
  width: 678.96px;
  height: 601.52px;
  transform: translateX(-50%) scale(0.9);
  overflow: hidden;
}

.case-image-wrap.case-image--heat-exchanger picture {
  position: absolute;
  inset: 0;
  transform: rotate(7.67deg);
  transform-origin: center center;
}

.case-image-wrap.case-image--heat-exchanger .case-image--main {
  position: absolute;
  width: 161.09%;
  height: 106.27%;
  left: -24.3%;
  top: -2.36%;
  max-width: none;
  object-fit: cover;
}

/* Реконструкция: корпус ДВС */
.case-image-wrap.case-image--engine {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1067px;
  height: 600px;
  max-width: 100%;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.case-image-wrap.case-image--engine picture {
  width: 100%;
  height: 100%;
}

.case-image-wrap.case-image--engine .case-image--main {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Объёмный анализ: поворотный кулак */
.case-image-wrap.case-image--knuckle {
  position: absolute;
  left: 50%;
  top: calc(50% + 17px);
  width: 592px;
  height: 600px;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.case-image-wrap.case-image--knuckle picture {
  width: 100%;
  height: 100%;
}

.case-image-wrap.case-image--knuckle .case-image--main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
}

/* Автоматизация: хлеб */
.case-image-wrap.case-image--bread {
  position: absolute;
  left: 50%;
  top: calc(50% + 13.5px);
  width: 600px;
  height: 573px;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.case-image-wrap.case-image--bread picture {
  width: 100%;
  height: 100%;
}

.case-image-wrap.case-image--bread .case-image--main {
  position: absolute;
  width: 100%;
  height: 104.71%;
  top: -4.71%;
  left: 0;
  max-width: none;
  object-fit: cover;
}

/* Navigation zones */
.case-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 5;
  cursor: pointer;
}

.case-nav--left {
  left: 0;
}

.case-nav--right {
  right: 0;
}

/* Зоны 1/3 + полноэкранный просмотр */
.case-slider .case-nav--left,
.case-slider .case-nav--right {
  width: 33.333%;
}

.case-slider .case-nav--center {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 33.333%;
  width: 33.333%;
  z-index: 6;
  cursor: zoom-in;
}

.case-slider--hero .case-viewport {
  opacity: 0;
  animation: heroViewportFadeIn 0.75s ease 0.15s forwards;
}

.case-slider--hero .case-slide {
  transition: opacity 0.55s ease;
}

@keyframes heroViewportFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Hero fullscreen modal */
.hero-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.hero-fullscreen--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-fullscreen__inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-fullscreen__viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  touch-action: none;
}

.hero-fullscreen--ctrl .hero-fullscreen__viewport {
  cursor: zoom-in;
}

.hero-fullscreen--zoomed .hero-fullscreen__viewport {
  cursor: grab;
}

.hero-fullscreen--dragging .hero-fullscreen__viewport {
  cursor: grabbing;
}

.hero-fullscreen__stage {
  width: 100%;
  height: 100%;
  transform-origin: center center;
  transition: transform 0.15s ease;
  will-change: transform;
}

.hero-fullscreen--zoomed .hero-fullscreen__stage,
.hero-fullscreen--dragging .hero-fullscreen__stage {
  transition: none;
}

.hero-fullscreen__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transition: opacity 0.5s ease 0.05s;
}

.hero-fullscreen--open .hero-fullscreen__image {
  opacity: 1;
}

.hero-fullscreen__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
}

.hero-fullscreen__close span {
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--color-white);
}

.hero-fullscreen__close span:first-child {
  transform: rotate(45deg);
}

.hero-fullscreen__close span:last-child {
  transform: rotate(-45deg);
}

/* Article PDF fullscreen */
.article-pdf {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.article-pdf--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.article-pdf__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
}

.article-pdf__close span {
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--color-white);
}

.article-pdf__close span:first-child {
  transform: rotate(45deg);
}

.article-pdf__close span:last-child {
  transform: rotate(-45deg);
}

.article-pdf__scroll {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 48px var(--side-padding) 40px;
  box-sizing: border-box;
  cursor: pointer;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

.article-pdf__status {
  max-width: var(--container-width);
  margin: 0 auto 24px;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: normal;
  color: var(--color-grey);
}

.article-pdf__status[hidden] {
  display: none;
}

.article-pdf--loading .article-pdf__footer {
  visibility: hidden;
}

.article-pdf__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  cursor: default;
}

.article-pdf__zoom-shell {
  margin: 0 auto;
}

.article-pdf__pages {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-pdf__page-canvas,
.article-pdf__page-img {
  display: block;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  background: #fff;
}

.article-pdf__footer {
  display: flex;
  justify-content: center;
  padding: 32px 0 16px;
  min-height: 68px;
}

.article-pdf__download {
  color: var(--color-accent);
  text-decoration: none;
}

.article-pdf__download:hover {
  color: var(--color-white);
}

.article-pdf__menu {
  position: fixed;
  z-index: 1200;
  min-width: 220px;
  padding: 8px 0;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(135, 135, 135, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.article-pdf__menu-link {
  display: block;
  padding: 10px 16px;
  font-size: 16px;
  line-height: 20px;
  color: var(--color-white);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.article-pdf__menu-link:hover {
  background: rgba(43, 139, 139, 0.2);
  color: var(--color-accent);
}

/* Case label */
.case-caption {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 8;
  pointer-events: none;
}

.case-label {
  max-width: 280px;
}

.case-label__head {
  display: block;
}

.case-label__info {
  display: none;
}

.case-label__title {
  font-weight: 200;
  font-size: 36px;
  line-height: 46px;
  color: var(--color-accent);
  word-break: break-word;
}

.case-label__row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.case-label__icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.case-label__app,
.case-label__object {
  font-size: 16px;
  line-height: 20px;
  color: var(--color-grey);
}

/* Outline buttons: подробнее, скрыть — уголки как в макете */
.btn-outline {
  position: relative;
  font-weight: 300;
  font-size: 16px;
  line-height: 20px;
  color: var(--color-accent);
  padding: 6px 18px;
  border: none;
  background: transparent;
  transition: color 0.2s;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 10px 1px no-repeat,
    linear-gradient(currentColor, currentColor) 0 0 / 1px 10px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 0 / 10px 1px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 0 / 1px 10px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 10px 1px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 1px 10px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 100% / 10px 1px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 100% / 1px 10px no-repeat;
}

.btn-outline:hover {
  color: var(--color-white);
}

.btn-outline:active {
  color: var(--color-white);
}

.btn-outline:disabled,
.btn-outline:disabled:hover,
.btn-outline:disabled:active {
  color: var(--color-grey);
  opacity: 1;
  cursor: default;
}

.case-action {
  position: absolute;
  right: calc(var(--hover-width) / 2 - 50px);
  bottom: 24px;
  z-index: 12;
}

/* Hover block */
.hover-backdrop {
  position: absolute;
  inset: 0;
  z-index: 14;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.hover-backdrop--visible {
  opacity: 1;
  pointer-events: auto;
}

.hover-block {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--hover-width);
  height: var(--hover-height);
  z-index: 15;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 20px;
  box-sizing: border-box;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hover-block--open {
  transform: translateX(0);
}

.hover-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hover-close span {
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--color-white);
}

.hover-close span:first-child {
  transform: rotate(45deg);
}

.hover-close span:last-child {
  transform: rotate(-45deg);
}

.hover-content {
  width: var(--hover-image-width);
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.hover-hide {
  flex-shrink: 0;
}

.hover-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-shrink: 0;
  align-self: center;
  margin-top: 12px;
}

.hover-images {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: var(--hover-image-width);
}

.hover-image-wrap {
  position: relative;
  width: var(--hover-image-width);
  overflow: hidden;
  flex-shrink: 0;
  line-height: 0;
  font-size: 0;
}

.hover-image-wrap picture {
  display: block;
  width: var(--hover-image-width);
  line-height: 0;
}

.hover-image-wrap img {
  display: block;
  max-width: none;
}

.hover-img--layer {
  width: var(--hover-image-width);
  height: 244px;
}

.hover-img--layer img {
  position: absolute;
  width: 129.63%;
  height: auto;
  left: -8.81%;
  top: -0.43%;
}

.hover-img--section {
  width: var(--hover-image-width);
  height: 180px;
}

.hover-img--section img {
  position: absolute;
  width: 127.85%;
  height: auto;
  left: -15.25%;
  top: -19.8%;
}

.hover-img--hx-top {
  width: var(--hover-image-width);
  height: 285px;
}

.hover-img--hx-top img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
}

.hover-img--hx-bottom {
  width: var(--hover-image-width);
  height: 164px;
}

.hover-img--hx-bottom img {
  position: absolute;
  width: 102.6%;
  height: auto;
  left: -2.6%;
  top: -3.79%;
}

.hover-img--full {
  width: var(--hover-image-width);
  height: 449px;
}

.hover-img--full img {
  position: absolute;
  width: 100.06%;
  height: auto;
  left: -0.03%;
  top: 0;
}

.hover-img--tech {
  height: 460px;
}

.hover-img--tech img {
  width: 100%;
  height: auto;
  left: 0;
  top: -4.79%;
}

/* Объёмный анализ hover: 16:9 исходники в 360×185 и 360×267, без растягивания */
.hover-img--top {
  width: var(--hover-image-width);
  height: 185px;
}

.hover-img--top img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--hover-image-width);
  height: auto;
}

.hover-img--bottom {
  width: var(--hover-image-width);
  height: 267px;
}

.hover-img--bottom img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--hover-image-width);
  height: auto;
}

/* Готовый кадр hover block (одно изображение) */
.hover-img--frame {
  width: var(--hover-image-width);
}

.hover-img--frame img {
  position: relative;
  display: block;
  width: var(--hover-image-width);
  height: auto;
}

/* Hover: корпус ДВС */
.hover-img--engine-top {
  width: var(--hover-image-width);
  height: 240px;
}

.hover-img--engine-top img {
  position: absolute;
  width: 138.88%;
  height: auto;
  left: -20.41%;
  top: -8.02%;
}

.hover-img--engine-bottom {
  width: var(--hover-image-width);
  height: 214px;
}

.hover-img--engine-bottom img {
  position: absolute;
  width: 158.22%;
  height: auto;
  left: -25.18%;
  top: -28.85%;
}

/* Hover: поворотный кулак */
.hover-img--knuckle {
  width: var(--hover-image-width);
  height: 427px;
}

.hover-img--knuckle img {
  position: absolute;
  width: 221.47%;
  height: auto;
  left: -54.59%;
  top: -4.92%;
}

/* Hover: хлеб */
.hover-img--bread-top {
  width: var(--hover-image-width);
  height: 291px;
}

.hover-img--bread-top img {
  position: absolute;
  width: 367.47%;
  height: auto;
  left: -225.01%;
  top: -16.79%;
}

.hover-img--bread-bottom {
  width: var(--hover-image-width);
  height: 127px;
}

.hover-img--bread-bottom img {
  position: absolute;
  width: 109.09%;
  height: auto;
  left: -5.76%;
  top: -15.15%;
}

.hover-text {
  font-size: 16px;
  line-height: 20px;
  color: var(--color-grey);
  margin-top: 12px;
}

/* ── Contacts + Footer ── */
.contacts-footer {
  position: relative;
  min-height: 752px;
  padding-top: 40px;
  margin-top: 60px;
}

.contacts-footer__main {
  position: relative;
  min-height: 592px;
}

.contacts-footer__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.contacts-footer__block + .contacts-footer__block {
  margin-top: 0;
}

.contacts-footer__head {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 36px;
  padding-bottom: 20px;
}

.contacts-footer__accent {
  flex-shrink: 0;
  width: 3px;
  height: 29px;
  background: var(--color-accent);
}

.contacts-footer__headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-weight: 300;
  font-size: 24px;
  line-height: 30px;
}

.contacts-footer__headline-main {
  color: var(--color-white);
}

.contacts-footer__headline-sub {
  color: var(--color-accent);
}

.contacts-footer__prompt {
  padding-top: 36px;
  padding-bottom: 20px;
  padding-left: 24px;
  font-weight: 300;
  font-size: 24px;
  line-height: 30px;
  color: var(--color-accent);
}

.contacts-footer__link {
  display: inline-block;
  padding-left: 24px;
  padding-bottom: 60px;
  font-weight: 200;
  font-size: 40px;
  line-height: 52px;
  color: var(--color-white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: color 0.2s;
}

.contacts-footer__link:hover {
  color: var(--color-accent);
}

.contacts-footer__social {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-left: 24px;
}

.contacts-footer__social-link {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.contacts-footer__social-link:hover {
  opacity: 0.8;
}

.contacts-footer__social-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contacts-footer__shuttlecock {
  position: absolute;
  right: 0;
  top: 152px;
  width: 570px;
  height: 400px;
  object-fit: cover;
  object-position: left bottom;
  pointer-events: none;
}

.contacts-footer__line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(135, 135, 135, 0.4), transparent);
}

.contacts-footer__bar {
  position: relative;
  min-height: 160px;
  padding-bottom: 16px;
}

.contacts-footer__copyright {
  padding: 58px 0 0 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: normal;
  color: var(--color-grey);
}

.contacts-footer__top {
  position: absolute;
  left: 50%;
  bottom: 66px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--color-grey);
  font-family: var(--font-mono);
  font-size: 18px;
  transition: color 0.2s;
}

.contacts-footer__top img {
  display: block;
}

.contacts-footer__top:hover {
  color: var(--color-white);
}

/* ── Responsive ── */
@media (max-width: 1280px) {
  :root {
    --side-padding: 60px;
  }

  .header__menu {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 960px) {
  :root {
    --section-height: auto;
    --section-header-height: auto;
    --case-height: 480px;
    --header-height: 60px;
    --header-height-menu-open: 100px;
    --hover-width: 100%;
    --hover-height: 480px;
    --mobile-case-zoom: 1;
  }

  #sections-root.container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .contacts-footer .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .header__burger {
    display: block;
    margin-left: 0;
  }

  .header > .container.header__inner {
    padding-left: 24px;
    padding-right: 8px;
    justify-content: space-between;
  }

  .header__menu {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .header__inner {
    flex-wrap: nowrap;
    height: var(--header-height);
    gap: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header--menu-open .header__inner {
    height: var(--header-height-menu-open);
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 24px;
    padding-right: 8px;
  }

  .header--menu-open.header--compact .header__inner {
    height: var(--header-height-menu-open);
    padding: 20px;
  }

  .header--menu-open.header--compact .logo__img {
    height: var(--logo-height);
  }

  .header--menu-open.header--compact .logo__ct {
    font-size: 24px;
  }

  .section--hero,
  #sections-root > .section {
    height: auto;
  }

  .hero-intro,
  .section-header {
    height: auto;
    flex: none;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-intro {
    padding-top: 24px;
    padding-bottom: 20px;
  }

  .section-header {
    padding-top: 36px;
    padding-bottom: 20px;
  }

  #sections-root > .section + .section {
    margin-top: 30px;
  }

  .hero-intro__title {
    font-size: 28px;
    line-height: 36px;
  }

  .case-slider {
    display: flex;
    flex-direction: column;
    flex: none;
    height: auto;
    min-height: auto;
  }

  .case-caption {
    position: static;
    pointer-events: auto;
    margin-top: 12px;
    padding: 0;
  }

  .case-label {
    max-width: none;
    background: rgba(33, 33, 33, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px;
  }

  .case-label__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 2px;
  }

  .case-label__info {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 1px solid var(--color-accent);
    border-radius: 12px;
    color: var(--color-accent);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    pointer-events: auto;
    padding: 0;
  }

  .case-label__title {
    font-weight: 300;
    font-size: 24px;
    line-height: 32px;
    flex: 1;
    min-width: 0;
  }

  .case-label__row + .case-label__row {
    margin-top: 4px;
  }

  .case-label__app,
  .case-label__object {
    font-size: 18px;
    line-height: 20px;
  }

  .case-action {
    display: none;
  }

  .case-viewport {
    overflow: hidden;
  }

  .case-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    inset: 0 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    transform: none !important;
    overflow: hidden !important;
  }

  .case-image-wrap picture {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block;
    margin: 0 !important;
  }

  .case-image-wrap .case-image--main,
  .case-image-wrap .case-image--extra {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    left: 0 !important;
    top: 0 !important;
    max-width: none !important;
    max-height: none !important;
    object-position: center center !important;
    transform-origin: center center;
    opacity: 1;
  }

  /* bread & knuckle — без увеличения */
  .case-image-wrap.case-image--bread picture,
  .case-image-wrap.case-image--knuckle-frame picture {
    position: relative !important;
    inset: auto !important;
    width: 90% !important;
    height: 90% !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .case-image-wrap.case-image--bread .case-image--main,
  .case-image-wrap.case-image--knuckle-frame .case-image--main {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transform: none !important;
  }

  /* остальные кейсы — cover + zoom (90% × 1.8 × 1.5 = 2.7) */
  .case-image-wrap:not(.case-image--bread):not(.case-image--knuckle-frame) .case-image--main,
  .case-image-wrap:not(.case-image--bread):not(.case-image--knuckle-frame) .case-image--extra {
    object-fit: cover !important;
    transform: scale(var(--mobile-case-zoom)) !important;
  }

  .case-image-wrap.case-image--heat-exchanger .case-image--main {
    transform: rotate(7.67deg) scale(var(--mobile-case-zoom)) translateX(16px) !important;
  }

  .case-image-wrap.case-image--geology .case-image--main,
  .case-image-wrap.case-image--geology .case-image--extra {
    transform: rotate(71.88deg) scale(var(--mobile-case-zoom)) !important;
  }

  .case-image-wrap.case-image--tech {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
  }

  .case-image-wrap.case-image--tech .case-image--main {
    object-fit: contain !important;
    object-position: calc(50% + 16px) center !important;
    transform: none !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .article-pdf__scroll {
    padding: 56px 8px 24px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-x pan-y;
  }

  .article-pdf__zoom-shell {
    margin: 0 auto;
  }

  .article-pdf__inner {
    max-width: none;
    width: 100%;
    margin: 0;
  }

  .article-pdf__pages {
    gap: 12px;
  }

  .article-pdf__page-canvas,
  .article-pdf__page-img {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
  }

  .article-pdf__scroll--zoomed .article-pdf__page-canvas,
  .article-pdf__scroll--zoomed .article-pdf__page-img {
    max-width: none;
  }

  .article-pdf__status {
    max-width: none;
    padding: 0 8px;
  }

  .article-pdf__footer {
    padding: 20px 8px 12px;
  }

  .hover-backdrop {
    display: none;
  }

  .hover-block {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: calc(var(--header-height) + 12px);
    padding-bottom: 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateY(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
  }

  .hover-block--open {
    transform: translateY(0);
  }

  .hover-close {
    position: fixed;
    top: calc(var(--header-height) + 8px);
    right: 16px;
    z-index: 301;
  }

  .hover-content {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    flex: 0 1 auto;
    max-height: calc(100dvh - var(--header-height) - 140px);
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 0;
  }

  .hover-images {
    width: 100%;
  }

  .hover-image-wrap {
    width: 100%;
  }

  .hover-image-wrap picture {
    width: 100%;
  }

  .hover-text {
    font-size: 16px;
    line-height: 20px;
    margin-top: 12px;
  }

  .hover-actions {
    flex-shrink: 0;
    margin-top: 20px;
    padding-bottom: 0;
    justify-content: center;
  }

  .contacts-footer__link {
    font-size: 28px;
    line-height: 36px;
    padding-bottom: 40px;
  }

  .contacts-footer__social {
    gap: 28px;
    margin-top: -20px;
  }

  .contacts-footer__social-link {
    width: 24px;
    height: 24px;
  }

  .contacts-footer__shuttlecock {
    width: 280px;
    height: auto;
    opacity: 0.6;
  }

  .contacts-footer {
    min-height: auto;
    margin-top: 30px;
    padding-top: 20px;
  }

  .contacts-footer__main {
    min-height: auto;
    padding-bottom: 180px;
  }

  .contacts-footer__block:first-child .contacts-footer__link {
    padding-bottom: 20px;
  }

  .contacts-footer__prompt {
    padding-top: 18px;
    padding-bottom: 10px;
  }

  .contacts-footer__shuttlecock {
    top: auto;
    bottom: 0;
    right: 0;
  }

  .contacts-footer__bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 24px;
    gap: 16px;
  }

  .contacts-footer__copyright {
    order: 2;
    padding: 0;
    text-align: center;
    width: 100%;
  }

  .contacts-footer__top {
    position: static;
    transform: none;
    bottom: auto;
    order: 1;
  }
}

@media (max-width: 600px) {
  :root {
    --case-height: 400px;
  }

  .section-header__title-row {
    flex-direction: column;
    gap: 4px;
  }
}
