/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', system-ui, sans-serif;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes hintFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; pointer-events: none; }
}

body {
  animation: pageFadeIn 0.7s ease both;
}

/* =============================================
   POSTER LAYOUT  (CSS Grid — надёжнее flex для явных высот)
   grid-template-rows: 1fr задаёт main точный размер = 100vh − 20vh,
   а min-height: 0 разрешает дочернему img растянуться до этого размера.
   ============================================= */
.poster {
  position: relative;
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr 15vh;
  /* Сцена на весь плакат: стена сверху → пол снизу */
  background: #ffffff;
}

/* Текстура бетона на полу */
.poster::before {
  display: none;
}

/* --- Main area --- */
.poster__main {
  position: relative;
  min-height: 0;
  overflow: visible;
}


/* Изображение заполняет grid-ячейку, object-fit сжимает его внутри */
.poster__image {
  position: absolute;
  inset: 9% 4.5% -40% 4.5%;  /* top right bottom left */
  width: 91%;
  height: 91%;
  object-fit: contain;
  object-position: center bottom;
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

/* =============================================
   WAVE CANVAS BACKGROUND
   ============================================= */
.wave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
  display: none;
}

/* main прозрачен — сцена на уровне .poster */
.poster__main {
  background: transparent !important;
}

/* Студийная подсветка — пятно света на стене за установкой */
.poster__main::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 55% 45% at 52% 40%,
    rgba(255,255,255,0.55) 0%,
    rgba(255,255,255,0.15) 50%,
    transparent 70%
  );
}

/* Тень под ножками установки */
.poster__main::after {
  display: none;
}

/* =============================================
   HEADER — грид-строка 1 (auto-height)
   ============================================= */
.poster__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(10px, 1.6vh, 20px) clamp(16px, 2.5vw, 40px);
  background: transparent;
  position: relative;
  z-index: 4;
}

.poster__header-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.poster__title {
  font-size: clamp(20px, 3.2vw, 46px);
  font-weight: 300;
  letter-spacing: 0.01em;
  color: #111;
  line-height: 1.1;
  text-transform: uppercase;
}

.poster__title span {
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #1a3a6e;
  transition: color 0.2s ease;
}

.poster__title:hover span {
  color: #00aaff;
}

.poster__subtitle {
  font-size: clamp(8px, 0.78vw, 11px);
  font-weight: 500;
  color: #111;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.3;
}

/* =============================================
   MODE TABS — vertical left panel inside poster__main
   ============================================= */
.mode-tabs {
  position: absolute;
  left: clamp(10px, 1.8vw, 24px);
  top: 30%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0;
  pointer-events: all;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(6px);
  border-left: 2px solid #1a3a6e;
  box-shadow: 0 2px 16px rgba(26,58,110,0.10);
}

.mode-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  width: clamp(72px, 7.2vw, 92px);
  padding: clamp(8px, 1.1vh, 13px) clamp(12px, 1.4vw, 20px);
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(26,58,110,0.08);
  background: transparent;
  color: #999;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.mode-tab:last-child {
  border-bottom: none;
}

.mode-tab::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 0;
  background: #00aaff;
  transition: width 0.18s;
}

.mode-tab:hover:not(.mode-tab--disabled) {
  background: rgba(26,58,110,0.06);
  color: #1a3a6e;
}

.mode-tab.is-active {
  background: rgba(26,58,110,0.06);
  color: #1a3a6e;
}

.mode-tab.is-active::before {
  width: 3px;
}

.mode-tab__num {
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
}

.mode-tab.is-active .mode-tab__num {
  color: #00aaff;
}

.mode-tab__label {
  font-size: clamp(5px, 0.52vw, 7px);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.5;
}

.mode-tab--disabled {
  opacity: 0.28;
  cursor: default;
}

/* =============================================
   MODE PANELS (режимы 2, 3, ...)
   ============================================= */
.poster__mode {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: transparent;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.poster__mode.is-visible {
  opacity: 1;
  pointer-events: all;
}

.poster__mode img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}

/* --- Ask button --- */
.btn-ask {
  flex-shrink: 0;
  align-self: center;
  margin-left: auto;
  margin-right: clamp(8px, 1.5vw, 20px);
  width:  clamp(32px, 3vw, 44px);
  height: clamp(32px, 3vw, 44px);
  border-radius: 50%;
  background: #0068a8;
  color: #fff;
  font-family: inherit;
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 700;
  line-height: 1;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.25s ease;
  z-index: 50;
}

.header__spacer {
  width: clamp(36px, 3.2vw, 48px);
}

.btn-ask:hover {
  background: #0078be;
  transform: scale(1.08);
  box-shadow: 0 0 0 3px rgba(0,120,200,0.22), 0 0 16px rgba(0,120,200,0.40);
}

.btn-ask:active {
  transform: scale(1);
}

/* header__right больше не используется */

/* --- Logo --- */
.poster__logo {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.poster__logo:hover {
  opacity: 0.72;
}

.logo-box {
  width: clamp(26px, 3vw, 40px);
  height: clamp(26px, 3vw, 40px);
  background: #1a3a6e;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-letter {
  color: #fff;
  font-size: clamp(14px, 1.9vw, 26px);
  font-weight: 800;
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-size: clamp(7px, 0.72vw, 10px);
  font-weight: 600;
  color: #666;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.logo-brand {
  font-size: clamp(8px, 0.88vw, 12px);
  font-weight: 700;
  color: #1a3a6e;
}

/* =============================================
   CALLOUTS
   ============================================= */
.callouts {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

/* ── Callout wrapper ──────────────────────────
   Схлопывается в точку (width:0, height:0).
   Всё содержимое позиционируется абсолютно
   относительно этой точки-якоря.
   ─────────────────────────────────────────── */
.callout {
  position: absolute;
  width: 0;
  height: 0;
  top: var(--cy);
  left: var(--cx);
  z-index: 5;
}

.callout:hover {
  z-index: 100;
}

/* ── Dot ─────────────────────────────────────
   Всегда виден. Центрирован на якорной точке.
   ─────────────────────────────────────────── */
.callout__dot {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2d7dd2;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1.5px #2d7dd2, 0 2px 8px rgba(45,125,210,0.45);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.25s ease;
  cursor: pointer;
  pointer-events: all;
  z-index: 2;
}

/* Увеличиваем область клика вокруг точки */
.callout__dot::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
}

.callout:hover .callout__dot {
  transform: translate(-50%, -50%) scale(1.35);
  background: #00aaff;
  border-color: #ffffff;
  box-shadow:
    0 0 0 1.5px #00aaff,
    0 0 12px rgba(0,120,200,0.5),
    0 0 24px rgba(0,120,200,0.2);
}

/* ── Expand wrapper ───────────────────────────
   Содержит линию + карточку.
   Изначально невидим; появляется из точки.
   ─────────────────────────────────────────── */
.callout__expand {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* LEFT: раскрывается влево */
.callout--left .callout__expand {
  right: 6px;
  flex-direction: row-reverse; /* визуально: [карточка][линия] → от точки влево */
  transform: translateY(-50%) translateX(14px);
}

.callout--left:hover .callout__expand {
  opacity: 1;
  pointer-events: all;
  transform: translateY(-50%) translateX(0);
}

/* RIGHT: раскрывается вправо */
.callout--right .callout__expand {
  left: 6px;
  flex-direction: row; /* визуально: [линия][карточка] → от точки вправо */
  transform: translateY(-50%) translateX(-14px);
}

.callout--right:hover .callout__expand {
  opacity: 1;
  pointer-events: all;
  transform: translateY(-50%) translateX(0);
}

/* ── Line ────────────────────────────────────*/
.callout__line {
  flex-shrink: 0;
  width: clamp(24px, 4vw, 56px);
  height: 1px;
  background: #2d7dd2;   /* в тон точкам BMW-style */
  opacity: 0.65;
  transition: background 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.callout:hover .callout__line {
  background: #00aaff;
  opacity: 1;
  filter: drop-shadow(0 0 3px rgba(0,120,200,0.5));
}

/* ── Card ────────────────────────────────────*/
.callout__card {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border: 1.5px solid #1a3a6e;
  border-radius: 0;
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
  max-width: clamp(200px, 22vw, 300px);
  min-width: clamp(160px, 16vw, 220px);
  white-space: normal;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.callout:hover .callout__card {
  border-color: #0068a8;
  box-shadow: 0 4px 16px rgba(0,104,168,0.22);
}

.callout__icon {
  flex-shrink: 0;
  font-size: clamp(13px, 1.2vw, 18px);
  line-height: 1.3;
  margin-top: 1px;
}

.callout__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.callout__title {
  font-size: clamp(8px, 0.85vw, 12px);
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: #1a3a6e;
  white-space: normal;
}

/* Описание — всегда видно внутри раскрытой карточки */
.callout__desc {
  font-size: clamp(7px, 0.72vw, 11px);
  font-weight: 400;
  color: #555;
  line-height: 1.4;
}

/* =============================================
   FOOTER — горизонтальная полоса характеристик
   ============================================= */
.poster__footer {
  background: transparent;
  border-top: none;
  display: flex;
  align-items: stretch;
  padding: 0 clamp(16px, 3vw, 48px);
  overflow: hidden;
}

.footer__spec {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  flex: 1;
  padding: clamp(6px, 1.1vh, 14px) clamp(10px, 1.5vw, 20px);
  border-right: none;
}

.footer__spec:first-child {
  padding-left: 0;
}

.footer__spec:last-child {
  border-right: none;
}

.footer__label {
  font-size: clamp(7px, 0.62vw, 9px);
  font-weight: 500;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.2;
  white-space: nowrap;
}

.footer__value {
  font-size: clamp(11px, 1.1vw, 15px);
  font-weight: 700;
  color: #222;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.footer__value--link {
  color: #1a3a6e;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.footer__value--link:hover {
  color: #00aaff;
}

/* Акцент на цифрах */
.counter {
  color: #222;
  font-size: 1em;
}

/* =============================================
   RESPONSIVE — TABLET (≥768px, ≤1199px)
   ============================================= */
@media (max-width: 1199px) and (min-width: 768px) {
  .callout__card {
    max-width: clamp(100px, 18vw, 180px);
  }
  .callout__line {
    width: clamp(20px, 3.5vw, 50px);
  }
}

/* Touch: expand скрыт по умолчанию — управляется через is-open (JS) */
@media (hover: none) {
  .callout__expand {
    opacity: 0;
    pointer-events: none;
  }
}

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 50, 0.6);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #fff;
  border-radius: 0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  width: min(580px, 100%);
  max-height: 82vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: scale(0.93) translateY(20px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.is-open .modal {
  transform: scale(1) translateY(0);
}

/* Header */
.modal__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.modal__icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.modal__title {
  flex: 1;
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 800;
  color: #1a3a6e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal__close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f2f2f2;
  color: #555;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease;
}

.modal__close:hover {
  background: #00aaff;
  color: #fff;
}

/* Body */
.modal__body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal__image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 0;
  background: #f5f5f5;
}

.modal__desc {
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.65;
  color: #444;
}

/* =============================================
   CONTACT MODAL
   ============================================= */
.contact-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 50, 0.6);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.contact-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.contact-modal {
  background: #fff;
  border-radius: 0;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  width: min(480px, 100%);
  display: flex;
  flex-direction: column;
  transform: scale(0.93) translateY(20px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-overlay.is-open .contact-modal {
  transform: scale(1) translateY(0);
}

.contact-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #eee;
}

.contact-modal__title {
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 800;
  color: #1a3a6e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-modal__close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f2f2f2;
  color: #555;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease;
}

.contact-modal__close:hover {
  background: #00aaff;
  color: #fff;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 20px 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #888;
}

.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: 14px;
  color: #222;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  padding: 9px 12px;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
  resize: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #1a3a6e;
  background: #fff;
}

.form-field textarea {
  min-height: 90px;
}

.contact-form__submit {
  margin-top: 4px;
  padding: 11px 20px;
  background: #00aaff;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s ease;
  align-self: flex-end;
  min-width: 150px;
}

.contact-form__submit:hover {
  background: #0090dd;
}

.contact-form__submit:disabled {
  background: #aaa;
  cursor: default;
}

/* Success state */
.contact-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 20px 36px;
  text-align: center;
}

.contact-success.is-visible {
  display: flex;
}

.contact-success__icon {
  font-size: 40px;
}

.contact-success__text {
  font-size: 15px;
  font-weight: 600;
  color: #1a3a6e;
}

.contact-success__sub {
  font-size: 13px;
  color: #777;
}

/* =============================================
   MODE 1 — ОБЗОР
   ============================================= */
.overview-layout {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
  padding: clamp(12px, 2vh, 28px) clamp(16px, 3vw, 48px) clamp(12px, 2vh, 28px) clamp(100px, 10vw, 130px);
  gap: clamp(12px, 2vw, 32px);
  box-sizing: border-box;
}

.overview-side {
  flex: 0 0 clamp(160px, 18vw, 240px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: clamp(20px, 5vh, 48px);
  gap: 14px;
}

.overview-side--left {
  visibility: hidden;
  pointer-events: none;
}

.overview-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.overview-3d-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

.overview-3d-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: transparent;
  /* Pointer events pass through to iframe naturally */
}

.overview-3d-hint {
  position: absolute;
  bottom: clamp(10px, 1.8vh, 20px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  background: rgba(26,58,110,0.80);
  color: #fff;
  font-size: clamp(9px, 0.7vw, 11px);
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.18);
  pointer-events: none;
  white-space: nowrap;
  animation: hintFadeOut 1s ease 4s forwards;
}

.overview-desc {
  font-size: clamp(9px, 0.78vw, 12px);
  color: #333;
  line-height: 1.6;
  margin: 0;
}

.overview-specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overview-spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(26,58,110,0.12);
}

.overview-spec:last-child {
  border-bottom: none;
}

.overview-spec__label {
  font-size: clamp(7px, 0.62vw, 9px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
}

.overview-spec__val {
  font-size: clamp(10px, 0.9vw, 14px);
  font-weight: 700;
  color: #1a3a6e;
}

/* =============================================
   MODE 2 — УСТРОЙСТВО: X-Ray side panel
   ============================================= */
.xray-panel {
  position: absolute;
  right: clamp(8px, 1.5vw, 20px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 85%;
  overflow-y: auto;
  pointer-events: auto;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(6px);
  border-left: 2px solid #1a3a6e;
  box-shadow: 0 2px 16px rgba(26,58,110,0.10);
}

.xray-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: clamp(8px, 1.1vh, 13px) clamp(12px, 1.4vw, 20px);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(26,58,110,0.08);
  color: #333;
  font-family: inherit;
  font-size: clamp(10px, 0.88vw, 13px);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
  position: relative;
}

.xray-item:last-child {
  border-bottom: none;
}

.xray-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: #0068a8;
  transition: width 0.18s;
}

.xray-item:hover {
  background: rgba(26,58,110,0.06);
  color: #1a3a6e;
}

.xray-item:hover::before {
  width: 3px;
}

.xray-item__icon {
  font-size: clamp(14px, 1.3vw, 19px);
  flex-shrink: 0;
  opacity: 0.75;
}

.xray-item:hover .xray-item__icon {
  opacity: 1;
}

.xray-item__name {
  font-size: inherit;
}

/* Скрыть футер на вкладках 2–5 */
.poster.mode-2-active .poster__footer,
.poster.mode-3-active .poster__footer,
.poster.mode-4-active .poster__footer,
.poster.mode-5-active .poster__footer {
  opacity: 0;
  pointer-events: none;
}

/* Показ выноски программно через класс is-pinned */
.callout--left.is-pinned .callout__expand {
  opacity: 1;
  pointer-events: all;
  transform: translateY(-50%) translateX(0);
}

.callout--right.is-pinned .callout__expand {
  opacity: 1;
  pointer-events: all;
  transform: translateY(-50%) translateX(0);
}

.callout__dot.is-highlighted {
  transform: translate(-50%, -50%) scale(1.4);
  background: #0068a8;
  box-shadow: 0 0 0 3px rgba(0,104,168,0.3), 0 0 14px rgba(0,104,168,0.5);
}

/* =============================================
   MODE 3 — ПРИМЕНЕНИЕ И ОТРАСЛИ
   ============================================= */
.industry-grid {
  display: flex;
  align-items: stretch;
  gap: clamp(8px, 1.2vw, 18px);
  width: 100%;
  height: 100%;
  padding: clamp(12px, 2vh, 28px) clamp(16px, 3vw, 48px) clamp(12px, 2vh, 24px) clamp(100px, 10vw, 130px);
  box-sizing: border-box;
}

.industry-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(26,58,110,0.15);
  overflow: hidden;
  transition: box-shadow 0.22s, border-color 0.22s;
  cursor: default;
}

.industry-card:hover {
  box-shadow: 0 6px 24px rgba(26,58,110,0.13);
  border-color: rgba(26,58,110,0.35);
}

.industry-img {
  width: 100%;
  flex: 0 0 42%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.industry-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}

.industry-card:hover .industry-img img {
  transform: scale(1.04);
}

.industry-img__placeholder {
  font-size: clamp(8px, 0.72vw, 11px);
  font-weight: 500;
  color: #aab;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  user-select: none;
}

.industry-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(10px, 1.2vw, 16px);
  flex: 1;
  border-top: 2px solid #1a3a6e;
}

.industry-name {
  font-size: clamp(9px, 0.82vw, 12px);
  font-weight: 700;
  color: #1a3a6e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.industry-desc {
  font-size: clamp(8px, 0.68vw, 10px);
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* =============================================
   MODE 4 — ГАБАРИТЫ
   ============================================= */
.dims-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 40px);
  width: 100%;
  height: 100%;
  padding: clamp(8px, 1.5vh, 20px) clamp(16px, 3vw, 48px) clamp(8px, 1.5vh, 20px) clamp(100px, 10vw, 130px);
  box-sizing: border-box;
}

.dims-img {
  max-height: 100%;
  max-width: calc(100% - 140px);
  object-fit: contain;
  flex: 1;
}

.dims-qr {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qr-placeholder {
  padding: 6px;
  background: white;
  border: 1.5px solid #1a3a6e;
}

.qr-label {
  font-size: clamp(8px, 0.72vw, 11px);
  font-weight: 600;
  color: #1a3a6e;
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

.qr-note {
  font-size: clamp(7px, 0.6vw, 9px);
  color: #888;
  text-align: center;
}

/* =============================================
   MODE 5 — ДОКУМЕНТЫ
   ============================================= */
.docs-layout {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.5vh, 18px);
  width: 100%;
  height: 100%;
  padding: clamp(14px, 2.5vh, 32px) clamp(16px, 3vw, 48px) clamp(14px, 2.5vh, 32px) clamp(100px, 10vw, 130px);
  box-sizing: border-box;
  overflow-y: auto;
}

.docs-title {
  font-size: clamp(13px, 1.2vw, 18px);
  font-weight: 700;
  color: #1a3a6e;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(9px, 0.78vw, 12px);
}

.docs-table th {
  text-align: left;
  padding: 7px 12px;
  background: #1a3a6e;
  color: #fff;
  font-weight: 600;
  font-size: clamp(7px, 0.65vw, 10px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.docs-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(26,58,110,0.12);
  color: #333;
  vertical-align: middle;
}

.docs-table tr:last-child td {
  border-bottom: none;
}

.docs-table tr:hover td {
  background: rgba(26,58,110,0.04);
}

.doc-icon {
  margin-right: 4px;
}

.doc-link {
  color: #0068a8;
  font-weight: 600;
  text-decoration: none;
  padding: 3px 10px;
  border: 1px solid #0068a8;
  font-size: clamp(8px, 0.68vw, 10px);
  transition: background 0.2s, color 0.2s;
}

.doc-link:hover {
  background: #0068a8;
  color: #fff;
}

.docs-note {
  font-size: clamp(8px, 0.7vw, 11px);
  color: #666;
  line-height: 1.5;
  margin: 0;
  border-left: 3px solid #1a3a6e;
  padding-left: 12px;
}

.docs-cta {
  align-self: flex-start;
  padding: 9px 24px;
  background: #1a3a6e;
  color: #fff;
  font-family: inherit;
  font-size: clamp(9px, 0.82vw, 12px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.docs-cta:hover {
  background: #0068a8;
}
