/* ==========================================================================
   ИНМАРСИНГ — B2B UX IMPROVEMENTS / V2
   Original design system preserved. New sections adapt to existing tokens.
   ========================================================================== */
.brand__name {
  font-size: clamp(0.75rem, 1.05vw, 0.91rem);
  letter-spacing: 0.04em;
}
.proof {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(20, 13, 54, 0.42),
    rgba(4, 7, 27, 0.96)
  );
}
.proof__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(26px, 5vw, 90px);
  align-items: center;
}
.proof__media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg, 18px);
  background: #101023;
}
.proof__media::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(0deg, rgba(2, 3, 15, 0.86), transparent);
  pointer-events: none;
}
.proof__media img {
  display: block;
  width: 100%;
  height: clamp(360px, 43vw, 560px);
  object-fit: cover;
}
.proof__photo-note {
  position: absolute;
  z-index: 1;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.proof__content {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.proof__content .lead {
  margin: 0;
}
.proof__body {
  color: var(--ink-3);
  line-height: 1.8;
  max-width: 48ch;
}
.proof__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.proof__tags span {
  display: inline-block;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 9px 13px;
  color: var(--ink-2);
  font-size: 0.75rem;
}
.proof__content .btn {
  margin-top: 8px;
}
.blueprint {
  margin-top: clamp(50px, 7vw, 100px);
  padding: clamp(20px, 3.3vw, 46px);
  background: linear-gradient(
    120deg,
    rgba(15, 19, 57, 0.68),
    rgba(10, 9, 31, 0.92)
  );
  border: 1px solid var(--line-2);
  border-radius: 18px;
}
.blueprint__head {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  align-items: end;
  margin-bottom: 26px;
}
.blueprint__head > p {
  max-width: 38ch;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink-3);
}
.blueprint__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.25vw, 2rem);
  line-height: 1.25;
  max-width: 24ch;
  margin-top: 8px;
}
.blueprint__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 16px;
}
.blueprint__picture {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #080b16;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.blueprint__picture img {
  width: 100%;
  height: 100%;
  min-height: 370px;
  object-fit: cover;
  display: block;
}
.blueprint__hotspot {
  position: absolute;
  left: var(--hx);
  top: var(--hy);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #eeeaff;
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 7, 34, 0.82);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 0 0 6px rgba(138, 88, 255, 0.14);
  cursor: pointer;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
  z-index: 1;
}
.blueprint__hotspot:hover,
.blueprint__hotspot.is-active {
  background: var(--brand-violet);
  box-shadow:
    0 0 0 7px rgba(139, 89, 255, 0.24),
    0 0 30px rgba(216, 100, 255, 0.5);
}
.blueprint__hotspot:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 6px;
}
.blueprint__info {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(18px, 2.3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  background: rgba(2, 4, 21, 0.74);
}
.blueprint__label {
  color: var(--brand-cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.blueprint__info h4 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  line-height: 1.35;
}
.blueprint__info p {
  font-size: 0.9rem;
  color: var(--ink-3);
  line-height: 1.75;
  min-height: 6em;
}
.blueprint__list {
  display: grid;
  gap: 8px;
  padding-block: 15px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}
.blueprint__info .btn {
  align-self: flex-start;
  white-space: normal;
  text-align: center;
}
.economics {
  position: relative;
  background: linear-gradient(
    175deg,
    rgba(19, 8, 55, 0.5),
    rgba(5, 6, 23, 0.97)
  );
}
.economics__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(26px, 6vw, 100px);
  align-items: center;
}
.economics__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.economics__intro .lead {
  margin: 0;
}
.economics__trust {
  border-left: 2px solid var(--brand-cyan);
  display: flex;
  gap: 18px;
  padding: 14px 0 14px 20px;
  color: var(--ink-3);
  line-height: 1.7;
  font-size: 0.875rem;
}
.economics__trust-icon {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--brand-cyan);
}
.economics__panel {
  background: linear-gradient(
    140deg,
    rgba(29, 21, 66, 0.84),
    rgba(6, 11, 32, 0.95)
  );
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: clamp(20px, 3vw, 36px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.22);
}
.economics__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  font-family: var(--font-mono);
  letter-spacing: 0.07em;
  font-size: 0.7rem;
  color: var(--ink-3);
}
.economics__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  padding-block: 26px;
}
.economics__field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.economics__field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: rgba(5, 6, 24, 0.75);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0 14px;
}
.economics__field input::placeholder {
  color: var(--ink-4);
}
.economics__field input:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}
.economics__results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.economics__results > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: #0b0b26;
  padding: 20px;
  min-width: 0;
}
.economics__results span {
  font-size: 0.72rem;
  color: var(--ink-3);
  line-height: 1.55;
}
.economics__results strong {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.36rem);
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.economics__results .economics__result-accent strong {
  color: #84e6ff;
}
.economics__hint {
  margin-top: 18px;
  font-size: 0.79rem;
  color: var(--brand-cyan);
  line-height: 1.6;
}
.economics__disclaimer {
  margin-top: 10px;
  font-size: 0.74rem;
  color: var(--ink-4);
  line-height: 1.7;
}
.journey__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
}
.journey__step {
  position: relative;
  min-height: 245px;
  padding: 28px 23px;
  background: linear-gradient(
    165deg,
    rgba(25, 26, 66, 0.76),
    rgba(8, 9, 26, 0.84)
  );
  border: 1px solid var(--line-2);
  border-radius: 14px;
}
.journey__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(-1 * (var(--journey-gap, 64px) / 2 + 25px));
  z-index: 2;
  width: 50px;
  height: 28px;
  transform: translateY(-50%);
  background: linear-gradient(
    100deg,
    var(--brand-cyan) 0%,
    var(--brand-violet) 38%,
    var(--brand-magenta) 72%,
    var(--brand-cyan) 100%
  );
  background-size: 280% 100%;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 26'><path d='M2 13h33M28 5l8 8-8 8' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/></svg>")
    center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 26'><path d='M2 13h33M28 5l8 8-8 8' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/></svg>")
    center/contain no-repeat;
  animation: journeyArrowShimmer 3.6s linear infinite;
  filter: drop-shadow(0 0 12px rgba(255, 43, 225, 0.45));
}
.journey__step > span {
  display: block;
  color: var(--brand-cyan);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  margin-bottom: 36px;
}
.journey__step h3 {
  font-family: var(--font-display);
  font-size: clamp(0.94rem, 1.35vw, 1.15rem);
  line-height: 1.5;
  margin-bottom: 13px;
}
.journey__step p {
  color: var(--ink-3);
  font-size: 0.875rem;
  line-height: 1.7;
}
.journey__cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.journey__cta p {
  color: var(--ink-2);
}
.faq {
  background: linear-gradient(0deg, rgba(17, 9, 42, 0.45), transparent);
}
.faq__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 100px);
  align-items: start;
}
.faq__heading {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 22px;
}
.faq__heading .lead {
  margin: 0;
}
.faq__item {
  border-bottom: 1px solid var(--line-2);
}
.faq__item:first-child {
  border-top: 1px solid var(--line-2);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 12px 23px 0;
  cursor: pointer;
  color: var(--ink);
  font-size: clamp(0.9rem, 1.22vw, 1.03rem);
  font-weight: 600;
  line-height: 1.55;
  list-style: none;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--brand-cyan);
  font-weight: 400;
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
  border-color: var(--brand-violet);
}
.faq__item summary:hover {
  color: var(--brand-cyan);
}
.faq__item summary:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 3px;
}
.faq__item p {
  color: var(--ink-3);
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 65ch;
  padding: 0 48px 23px 0;
}
@media (max-width: 1100px) {
  .proof__grid,
  .economics__layout,
  .faq__layout {
    gap: 30px;
  }
  .journey__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .journey__step:not(:last-child)::after {
    display: none;
  }
  .blueprint__layout {
    grid-template-columns: 1fr 280px;
  }
}
@media (max-width: 760px) {
  .proof__grid,
  .economics__layout,
  .faq__layout,
  .blueprint__layout {
    grid-template-columns: 1fr;
  }
  .proof__media img {
    height: 320px;
  }
  .proof__content {
    gap: 17px;
  }
  .proof__media {
    order: 2;
  }
  .blueprint__head {
    align-items: start;
    flex-direction: column;
  }
  .blueprint__picture img {
    min-height: 0;
    aspect-ratio: 4/3;
    object-fit: cover;
  }
  .blueprint__info p {
    min-height: 0;
  }
  .blueprint__info .btn {
    width: 100%;
  }
  .journey__grid {
    grid-template-columns: 1fr 1fr;
  }
  .journey__step {
    min-height: 0;
  }
  .economics__panel {
    padding: 19px;
  }
  .faq__heading {
    gap: 15px;
  }
}
@media (max-width: 520px) {
  .proof__media img {
    height: 290px;
  }
  .proof__photo-note {
    left: 15px;
    bottom: 15px;
    font-size: 0.65rem;
  }
  .journey__grid {
    grid-template-columns: 1fr;
  }
  .journey__step {
    padding: 24px;
    min-height: 0;
  }
  .journey__step > span {
    margin-bottom: 22px;
  }
  .economics__fields,
  .economics__results {
    grid-template-columns: 1fr;
  }
  .economics__bar {
    font-size: 0.63rem;
  }
  .blueprint {
    padding: 16px;
  }
  .blueprint__picture img {
    aspect-ratio: 4/3;
  }
  .blueprint__hotspot {
    width: 33px;
    height: 33px;
  }
  .blueprint__info {
    padding: 18px;
  }
  .faq__item summary {
    padding-block: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .blueprint__hotspot,
  .faq__item summary::after {
    transition: none;
  }
}

/* V4: Preserve the full 4:3 uploaded image and align clickable engineering points. */
.blueprint__layout {
  align-items: start;
}
.blueprint__picture {
  aspect-ratio: 4/3;
}
.blueprint__picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

/* Подсказка калькулятора: нейтральная до ввода, пример по кнопке */
.economics__hint-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin-top: 18px;
}
.economics__hint-row .economics__hint {
  margin-top: 0;
  flex: 1 1 240px;
  color: var(--ink-3);
  transition: color 0.2s ease;
}
.economics__hint-row .economics__hint.is-info {
  color: var(--ink-2);
}
.economics__example {
  flex: none;
  border: 0;
  background: none;
  padding: 0;
  color: var(--brand-cyan);
  font: inherit;
  font-size: 0.79rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.economics__example:hover {
  color: var(--ink);
}

/* Шесть узлов в «Деталях»: список-переключатель со статусами */
.blueprint__list {
  display: grid;
  gap: 1px;
  padding-block: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}
.blueprint__node {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  width: 100%;
  padding: 7px 0;
  border: 0;
  background: none;
  color: var(--ink-3);
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}
.blueprint__node span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--ink-4);
  transition: color 0.2s ease;
}
.blueprint__node em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.575rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blueprint__node em::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(158, 170, 255, 0.32);
  flex: none;
}
.blueprint__node[data-point] em::before {
  background: var(--brand-cyan);
  box-shadow: 0 0 8px rgba(34, 225, 255, 0.8);
}
.blueprint__node:hover,
.blueprint__node.is-active {
  color: var(--ink);
}
.blueprint__node.is-active span {
  color: var(--brand-cyan);
}
@media (max-width: 760px) {
  .blueprint__node {
    font-size: 0.82rem;
    padding: 9px 0;
  }
  .blueprint__node em {
    font-size: 0.6rem;
  }
}

/* Почему ИНМАРСИНГ — четыре карточки */
.why {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(11, 12, 38, 0.55),
    rgba(5, 6, 23, 0.95)
  );
}
.why-grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.why-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    165deg,
    rgba(24, 22, 62, 0.6),
    rgba(8, 9, 26, 0.82)
  );
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}
.why-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-neon);
  -webkit-mask:
    linear-gradient(#000, #000) content-box,
    linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000, #000) content-box,
    linear-gradient(#000, #000);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.why-card:hover {
  border-color: transparent;
  transform: translateY(-2px);
}
.why-card:hover::before {
  opacity: 0.6;
}
.why-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 2px;
}
.why-card__num {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--brand-cyan);
}
.why-card__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-3), transparent);
}
.why-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.why-card__text {
  color: var(--ink-3);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 46ch;
}
@media (max-width: 760px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* Числовые поля без спиннеров */
.economics__field input[type="number"]::-webkit-outer-spin-button,
.economics__field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.economics__field input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Пятая карточка «Почему ИНМАРСИНГ» — широкая, с метрикой */
.why-card--wide {
  grid-column: 1/-1;
}
.why-card__wide {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 60px);
}
.why-card__wide > div {
  max-width: 52ch;
}
.why-card__metric {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
  flex: none;
}
.why-card__metric strong {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  background: var(--grad-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.why-card__metric span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  line-height: 1.5;
}
@media (max-width: 700px) {
  .why-card__wide {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* Четыре сценария: 2 колонки на планшете, 3 на десктопе, четвёртый — широкой полосой */
@media (min-width: 700px) {
  .scenarios {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .scenarios {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.scenario--wide {
  grid-column: 1/-1;
  flex-direction: row;
}
.scenario--wide .scenario__media {
  flex: 0 0 36%;
  aspect-ratio: auto;
  min-height: 210px;
}
.scenario--wide .scenario__body {
  flex: 1;
  border-top: 0;
  border-left: 1px solid var(--line);
  padding: clamp(20px, 2.4vw, 32px);
  align-content: center;
}
@media (max-width: 760px) {
  .scenario--wide {
    flex-direction: column;
  }
  .scenario--wide .scenario__media {
    flex: auto;
    aspect-ratio: 16/9;
    min-height: 0;
  }
  .scenario--wide .scenario__body {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* Карточка «Улица и парки» — без подмены фото: фирменная плашка */
.scenario__media--note {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background:
    radial-gradient(
      120% 100% at 50% 0%,
      rgba(123, 43, 255, 0.34),
      transparent 62%
    ),
    linear-gradient(160deg, #0d0b2a, #06071a);
}
.scenario__media--note::after {
  background: none;
}
.scenario__media--note img {
  width: clamp(72px, 8vw, 100px);
  height: auto;
  filter: drop-shadow(0 0 26px rgba(123, 43, 255, 0.6));
}
.scenario__note {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Колонка не должна растягиваться длинным словом */
.scenario__body {
  grid-template-columns: minmax(0, 1fr);
}

/* Конструкция: две фотографии с перелистыванием */
.product__carousel {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.product__track {
  position: absolute;
  inset: 0;
}
.product__frame {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.45s ease,
    visibility 0s linear 0.45s;
}
.product__frame.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.product__slide .product__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.product__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(22, 22, 46, 0.72);
  color: #fff;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.product__nav:hover {
  background: rgba(22, 22, 46, 0.92);
  border-color: rgba(34, 225, 255, 0.6);
}
.product__nav svg {
  width: 16px;
  height: 16px;
}
.product__nav--prev {
  left: 12px;
  transform: translateY(-50%) scaleX(-1);
}
.product__nav--next {
  right: 12px;
}
.product__dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 8px;
}
.product__dots button {
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 20, 45, 0.22);
  cursor: pointer;
  transition:
    background 0.2s ease,
    width 0.2s ease;
}
.product__dots button[aria-pressed="true"] {
  background: #16162e;
  width: 36px;
}
@media (max-width: 640px) {
  .product__nav {
    width: 46px;
    height: 46px;
  }
  .product__nav--prev {
    left: 8px;
  }
  .product__nav--next {
    right: 8px;
  }
}

/* Подпись и управление каруселью должны быть выше затемнения слайда */
.product__slide::after {
  z-index: 2;
}
.product__slide .product__caption {
  z-index: 3;
}

/* Точки карусели — светлые, они лежат на затемнении */
.product__dots button {
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.product__dots button[aria-pressed="true"] {
  background: #fff;
}

/* Индикатор карусели — вверху, чтобы не спорить с подписью */
.product__dots {
  top: 14px;
  bottom: auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 20, 45, 0.12);
  box-shadow: 0 8px 22px rgba(10, 10, 30, 0.18);
  backdrop-filter: blur(8px);
}
.product__dots button {
  width: 22px;
  height: 4px;
  background: rgba(20, 20, 45, 0.24);
  box-shadow: none;
}
.product__dots button[aria-pressed="true"] {
  background: #16162e;
  width: 30px;
}

/* Логотип — переход на главную: заметная реакция на наведение и фокус */
.brand__mark {
  transition: filter 0.25s ease;
}
.brand:hover .brand__mark {
  filter: drop-shadow(0 0 16px rgba(255, 43, 225, 0.5))
    drop-shadow(0 0 28px rgba(34, 225, 255, 0.28));
}
.brand:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 6px;
  border-radius: 10px;
}

/* Меню: «Для бизнеса» с выпадающим подменю */
.main-nav__sub {
  position: relative;
}
.main-nav__link--toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.main-nav__chevron {
  width: 12px;
  height: 12px;
  flex: none;
  transform: rotate(90deg);
  opacity: 0.55;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}
.main-nav__sub:hover .main-nav__chevron,
.main-nav__sub:focus-within .main-nav__chevron {
  opacity: 1;
  transform: rotate(90deg) translateX(2px);
}
.main-nav__sub::after {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  top: 100%;
  height: 16px;
}
.main-nav__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 60;
  min-width: 252px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: rgba(8, 9, 28, 0.97);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0s linear 0.22s;
}
.main-nav__sub:hover .main-nav__dropdown,
.main-nav__sub:focus-within .main-nav__dropdown,
.main-nav__sub.is-open .main-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}
.main-nav__dropdown li + li {
  margin-top: 2px;
}
.main-nav__sublink {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}
.main-nav__sublink span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--ink-4);
  transition: color 0.18s ease;
}
.main-nav__sublink:hover,
.main-nav__sublink[aria-current="true"] {
  background: rgba(123, 43, 255, 0.18);
  color: var(--ink);
}
.main-nav__sublink:hover span,
.main-nav__sublink[aria-current="true"] span {
  color: var(--brand-cyan);
}
@media (prefers-reduced-motion: reduce) {
  .main-nav__dropdown {
    transition: none;
  }
}

/* Активный раздел внутри подменю подсвечивает и сам пункт «Для бизнеса» */
.main-nav__sub:has(.main-nav__sublink[aria-current="true"])
  .main-nav__link--toggle {
  color: var(--ink);
}
.main-nav__sub:has(.main-nav__sublink[aria-current="true"])
  .main-nav__link--toggle::after {
  transform: scaleX(1);
}

/* ============================================================
   Полноэкранные блоки: каждая секция занимает экран целиком
   ============================================================ */
@media (min-width: 1024px) and (min-height: 620px) {
  .hero,
  .section,
  .cta-final {
    min-height: 100svh;
  }

  .section,
  .cta-final {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(24px, 4.2vh, 60px);
  }

  .section > .container,
  .cta-final > .container {
    width: 100%;
  }

  .section__head {
    margin-bottom: clamp(18px, 3vh, 40px);
  }

  .section__title {
    font-size: clamp(1.9rem, 3.9vw, 3.1rem);
    line-height: 1.04;
  }
}

/* На невысоких ноутбуках дополнительно ужимаем вертикальные отступы */
@media (min-width: 1024px) and (max-height: 820px) {
  .section,
  .cta-final {
    padding-block: clamp(18px, 3.2vh, 44px);
  }
  .proof,
  .why,
  .economics,
  .telemetry,
  .journey {
    padding-block: clamp(18px, 3.2vh, 44px);
  }
}

/* Подгонка внутренних блоков под высоту экрана */
@media (min-width: 1024px) and (min-height: 620px) {
  /* Продукт: сцена фиксируется по высоте, вкладки получают больше места */
  .product__layout {
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(20px, 2.4vw, 36px);
    align-items: center;
  }
  .product__stage {
    height: min(60svh, 560px);
    width: auto;
    aspect-ratio: 4 / 5;
    max-width: 100%;
  }

  /* Детали */
  .blueprint__layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(18px, 2vw, 28px);
    align-items: center;
  }
  .blueprint__picture {
    height: min(52svh, 470px);
  }
  .blueprint__picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .blueprint__info {
    gap: 10px;
    padding: clamp(16px, 2.2vh, 26px);
  }
  .blueprint__node {
    padding-block: 7px;
  }
  .blueprint__node em {
    font-size: 0.56rem;
  }

  /* Почему */
  .why-grid {
    gap: clamp(12px, 1.4vw, 18px);
  }
  .why-card {
    gap: 8px;
    padding: clamp(16px, 2.2vh, 26px);
  }
  .why-card__text {
    font-size: 0.9rem;
    line-height: 1.55;
  }
  .why-card__wide {
    gap: 20px;
  }

  /* Бизнес */
  .scenario__media {
    aspect-ratio: 16 / 9;
  }
  .scenario__body {
    gap: 6px;
    padding: clamp(14px, 1.8vh, 22px);
  }
  .scenario__text {
    font-size: 0.82rem;
    line-height: 1.55;
  }
  .scenario--wide .scenario__media {
    min-height: 150px;
  }
  .scenario--wide {
    min-height: 150px;
  }
  .business__cta {
    padding-top: clamp(10px, 1.4vh, 18px);
  }
}

/* Второй проход подгонки: заголовки и карточки компактнее */
@media (min-width: 1024px) and (min-height: 620px) {
  .section__title {
    font-size: clamp(1.7rem, 3.3vw, 2.6rem);
  }

  .product__stage {
    height: min(57svh, 535px);
  }

  .blueprint__picture {
    height: min(46svh, 420px);
  }
  .blueprint__node {
    padding-block: 5px;
  }
  .blueprint__info h4 {
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  }
  .blueprint__info p {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .scenario__media {
    aspect-ratio: 2 / 1;
  }
  .scenario__title {
    font-size: 0.98rem;
  }
  .scenario__text {
    font-size: 0.78rem;
    line-height: 1.5;
  }
  .scenario__num {
    font-size: 0.56rem;
  }
  .scenario--wide .scenario__media {
    min-height: 140px;
  }
  .scenario--wide {
    min-height: 140px;
  }
  .business__cta {
    padding-top: 6px;
  }

  .why-card__title {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
  }
  .why-card__metric strong {
    font-size: clamp(2rem, 4vw, 3rem);
  }
}

/* Короткие экраны (ноутбуки 1366×768 и ниже) — сжимаем ещё сильнее */
@media (min-width: 1024px) and (min-height: 620px) and (max-height: 860px) {
  .section__title {
    font-size: clamp(1.45rem, 2.7vw, 2rem);
  }
  .section__head-text .lead {
    font-size: 0.88rem;
    line-height: 1.5;
  }
  .section__head {
    margin-bottom: clamp(12px, 2vh, 22px);
  }

  /* продукт */
  .product__stage {
    height: min(52svh, 470px);
  }
  .product__tab {
    padding-block: 9px;
  }
  .product__tab-text {
    font-size: 0.72rem;
    line-height: 1.35;
  }
  .product__aside {
    padding-block: 10px;
  }
  .product__note {
    font-size: 0.72rem;
  }

  /* детали */
  .blueprint__picture {
    height: min(42svh, 360px);
  }
  .blueprint__info h4 {
    font-size: 1rem;
  }
  .blueprint__info p {
    font-size: 0.82rem;
    line-height: 1.45;
  }
  .blueprint__node {
    padding-block: 4px;
    font-size: 0.76rem;
  }

  /* почему */
  .why-card {
    padding: 14px;
    gap: 6px;
  }
  .why-card__text {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  /* бизнес */
  .scenario__media {
    aspect-ratio: 2.4 / 1;
  }
  .scenario__body {
    padding: 12px;
  }
  .scenario__title {
    font-size: 0.9rem;
  }
  .scenario__text {
    font-size: 0.74rem;
    line-height: 1.45;
  }
  .scenario--wide .scenario__media,
  .scenario--wide {
    min-height: 120px;
  }

  /* экономика */
  .economics__panel {
    padding: clamp(14px, 1.8vh, 22px);
    gap: 12px;
  }
  .economics__fields {
    gap: 10px;
  }
  .economics__field {
    gap: 4px;
  }
  .economics__results {
    gap: 8px;
  }
  .economics__disclaimer {
    font-size: 0.72rem;
    line-height: 1.45;
  }
}

/* После разделения секций старые внешние отступы внутри «Дрифт-карта» не нужны */
.section--gallery .gallery {
  margin-top: 0;
}
.section--details .blueprint {
  margin-top: 0;
}

/* Узкие и низкие экраны: последняя ступень подгонки */
@media (min-width: 1024px) and (max-height: 780px) {
  .section__title {
    font-size: clamp(1.3rem, 2.3vw, 1.75rem);
  }
  .scenario__media {
    aspect-ratio: 2.6 / 1;
  }
  .scenario__title {
    font-size: 0.86rem;
  }
  .scenario__text {
    font-size: 0.7rem;
    line-height: 1.4;
  }
  .business__cta {
    padding-top: 4px;
  }
  .economics__panel {
    padding: 12px;
    gap: 10px;
  }
  .economics__field {
    gap: 3px;
  }
  .economics__results {
    gap: 6px;
  }
  .why-card {
    padding: 12px;
  }
  .why-card__text {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

@media (min-width: 1024px) and (max-width: 1120px) {
  .scenario__text {
    font-size: 0.71rem;
    line-height: 1.4;
  }
  .scenario__title {
    font-size: 0.86rem;
  }
  .scenario__media {
    aspect-ratio: 2.4 / 1;
  }
  .product__tab-text {
    font-size: 0.7rem;
  }
}

@media (min-width: 1024px) and (max-height: 780px) {
  .economics__panel {
    padding: 10px;
    gap: 6px;
  }
  .economics__field {
    gap: 2px;
  }
  .economics__hint-row {
    margin-block: 4px 12px;
  }
}

/* Шапка всегда видна при прокрутке */

/* Полноэкранные блоки: отступ под фиксированную шапку не нужен */
@media (min-width: 1024px) and (min-height: 620px) {
  .section,
  .cta-final {
    scroll-margin-top: 0;
  }
}

/* Подсказка калькулятора: аккуратный отступ до блока результатов */
.economics__hint-row {
  margin-block: 10px 12px;
}
@media (max-width: 1023px) {
  .economics__hint-row {
    margin-block: 14px 4px;
  }
}

/* Телеметрия: живое кольцо заряда и рентабельность */
.dash__ring svg {
  overflow: visible;
}
.dash__scale {
  stroke: url(#ringGrad);
  opacity: 0.55;
}
.dash__arc {
  filter: drop-shadow(0 0 6px rgba(123, 43, 255, 0.45));
}
.dash__row b.dash__row-accent {
  color: var(--brand-cyan);
}
.dash__bars--profit {
  height: 54px;
  gap: 7px;
}
.dash__bars--profit span {
  border-radius: 3px;
}
.dash__bars--profit span.is-accent {
  background: linear-gradient(
    180deg,
    var(--brand-magenta),
    var(--brand-violet)
  );
  box-shadow: 0 0 14px rgba(255, 43, 225, 0.35);
}

@media (min-width: 1024px) and (min-height: 620px) {
  .dash__row {
    padding-block: 6px;
  }
  .dash__chart {
    padding-top: 10px;
  }
  .dash__chart-head {
    margin-bottom: 8px;
  }
  .dash__bars--profit {
    height: 44px;
  }
}

/* ============================================================
   Наполнение соразмерно блоку: типографика и медиа заданы в vh,
   поэтому контент растёт вместе с блоком, но без пустот внутри
   ============================================================ */
@media (min-width: 1024px) and (min-height: 620px) {
  .section__title {
    font-size: clamp(1.8rem, 2.2vh + 1.5vw, 3.8rem);
  }
  .section__head-text .lead {
    font-size: clamp(0.92rem, 0.9vh + 0.5vw, 1.16rem);
    line-height: 1.6;
  }

  /* Технологии: крупнее типографика, карточки по контенту */
  .advantages__grid {
    gap: 2.2vh;
  }
  .advantage {
    gap: 2.2vh;
    padding: 3.2vh 1.5vw;
    min-height: clamp(210px, 28vh, 310px);
    justify-content: center;
  }
  .advantage .card__icon {
    width: 3.2vh;
    height: 3.2vh;
  }
  .card__title {
    font-size: clamp(1rem, 0.9vh + 0.5vw, 1.5rem);
    line-height: 1.3;
  }
  .card__text {
    font-size: clamp(0.9rem, 0.85vh + 0.45vw, 1.12rem);
    line-height: 1.7;
  }

  /* Галерея: кадры выше */
  .section--gallery .gallery {
    gap: clamp(20px, 1.8vw, 34px);
  }
  .section--gallery .gallery__item {
    aspect-ratio: 4 / 5;
  }

  /* Живой центр */
  .proof__media img {
    height: clamp(260px, 66vh, 800px);
  }
  .proof__content {
    gap: 2.6vh;
  }

  /* Тест-драйв */
  .video-frame {
    aspect-ratio: auto;
    height: clamp(240px, 64vh, 780px);
  }

  /* Телеметрия: панель крупнее за счёт внутренних размеров */
  .dash__ring {
    width: clamp(96px, 13vh, 152px);
    height: clamp(96px, 13vh, 152px);
  }
  .dash__ring-value b {
    font-size: clamp(1.25rem, 2.6vh, 1.8rem);
  }
  .dash__body {
    padding: 3.2vh 2vw;
    gap: 2.4vh;
  }
  .dash__row {
    padding-block: 1.5vh;
    font-size: clamp(0.85rem, 1.6vh, 1rem);
  }
  .dash__bars {
    height: clamp(40px, 7vh, 82px);
  }
  .telemetry__item {
    padding-block: 1.6vh;
  }

  /* Сотрудничество: крупнее текст, без растяжки карточек */
  .journey__step {
    padding: 3vh 1.6vw;
    min-height: clamp(190px, 25vh, 290px);
  }
  .journey__step > span {
    margin-bottom: 3.2vh;
  }
  .journey__step h3 {
    font-size: clamp(0.94rem, 0.9vh + 0.45vw, 1.4rem);
  }
  .journey__step p {
    font-size: clamp(0.875rem, 0.8vh + 0.4vw, 1.06rem);
    line-height: 1.7;
  }

  /* Гарантия и FAQ: строки воздушнее */
  .warranty__item {
    padding-block: clamp(14px, 3vh, 38px);
  }
  .faq__item summary {
    padding-block: clamp(14px, 3.2vh, 40px);
  }
}

/* Телеметрия: статусы «нет сигнала» и «ошибка» подсвечиваются красным */
.dash__row b.is-alert {
  color: #ff4d6d;
}
.dash__row b.is-blinking {
  animation: dashBlink 1.1s steps(2, start) infinite;
}
@keyframes dashBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dash__row b.is-blinking {
    animation: none;
  }
}

/* Блок «Как купить»: чуть крупнее карточки и переливающиеся стрелки */
@keyframes journeyArrowShimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 280% 50%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .journey__step:not(:last-child)::after {
    animation: none;
    background-position: 30% 50%;
  }
}
@media (min-width: 1101px) {
  .journey__step {
    padding: 3.6vh 1.8vw;
    min-height: clamp(230px, 34vh, 380px);
  }
  .journey__step h3 {
    font-size: clamp(1rem, 1vh + 0.5vw, 1.5rem);
  }
  .journey__step p {
    font-size: clamp(0.9rem, 0.85vh + 0.42vw, 1.1rem);
  }
  .journey__step > span {
    margin-bottom: 3.6vh;
  }
  .journey__grid {
    --journey-gap: clamp(60px, 4vw, 78px);
    gap: var(--journey-gap);
  }
}

/* FAQ: заголовок не должен наезжать на список вопросов */
.faq__heading {
  min-width: 0;
}
.faq__heading .section__title {
  max-width: 100%;
}

@media (min-width: 1101px) {
  .faq__layout {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
    gap: clamp(48px, 5vw, 110px);
  }
  .faq__heading .section__title {
    font-size: clamp(1.8rem, 1.3vh + 1.85vw, 3.2rem);
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .faq__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
  }
  .faq__heading .section__title {
    font-size: clamp(1.6rem, 2.9vw, 2.4rem);
  }
}

/* Просмотр фото крупным планом */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.lightbox[open] {
  display: grid;
  place-items: center;
}
.lightbox::backdrop {
  background: rgba(3, 4, 16, 0.9);
  backdrop-filter: blur(6px);
}
.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 92vw;
}
.lightbox__figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: #05060f;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox__figure figcaption {
  max-width: 70ch;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-3);
  text-align: center;
}
.lightbox__close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(10, 11, 32, 0.8);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.lightbox__close:hover {
  background: rgba(30, 20, 70, 0.9);
  border-color: var(--brand-cyan);
}
.lightbox__nav {
  position: fixed;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(10, 11, 32, 0.8);
  color: var(--ink);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.lightbox__nav:hover {
  background: rgba(30, 20, 70, 0.9);
  border-color: var(--brand-cyan);
}
.lightbox__nav svg {
  width: 18px;
  height: 18px;
}
.lightbox__nav--prev {
  left: 20px;
  transform: translateY(-50%) scaleX(-1);
}
.lightbox__nav--next {
  right: 20px;
  transform: translateY(-50%);
}
@media (max-width: 640px) {
  .lightbox__figure img {
    max-width: 94vw;
    max-height: 74vh;
  }
  .lightbox__nav {
    width: 42px;
    height: 42px;
  }
}

/* Шапка всегда видна: при прокрутке становится компактнее */
.site-header__inner {
  transition: height 0.25s ease;
}
.site-header.is-stuck .site-header__inner {
  height: 66px;
}

/* Шесть вкладок обзора должны укладываться в экран */
@media (min-width: 1024px) and (min-height: 620px) {
  .product__tab {
    padding-block: clamp(7px, 1.15vh, 12px);
  }
  .product__tab-title {
    font-size: clamp(1rem, 1.55vh, 1.28rem);
  }
  .product__tab-text {
    font-size: clamp(0.68rem, 1.05vh, 0.79rem);
    line-height: 1.35;
  }
  .product__aside {
    padding-block: 8px;
  }
}

/* Очень низкие экраны: убираем лишние 10 px у широкой карточки сценариев */
@media (min-width: 1024px) and (max-height: 780px) {
  .scenario--wide,
  .scenario--wide .scenario__media {
    min-height: 108px;
  }
  .business__cta {
    padding-top: 2px;
  }
}

@media (min-width: 1024px) and (max-height: 780px) {
}

/* ============================================================
   Промоблок «В 5 лет — уже за рулём»
   ============================================================ */
.kids {
  background: linear-gradient(
    180deg,
    rgba(28, 10, 56, 0.55),
    rgba(5, 6, 26, 0.92)
  );
}
.kids__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas: "copy media";
  gap: clamp(18px, 2.4vh, 30px) clamp(24px, 4vw, 64px);
  align-items: center;
}
.kids__copy {
  grid-area: copy;
}
.kids__media {
  grid-area: media;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: #080a1c;
}
.kids__media img {
  display: block;
  width: 100%;
  height: clamp(240px, 42vh, 480px);
  object-fit: cover;
}
.kids__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(56px, 7.6vh, 84px);
  height: clamp(56px, 7.6vh, 84px);
  border-radius: 50%;
  background: var(--grad-neon);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.3vh, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 12px 34px rgba(255, 43, 225, 0.35);
}
.kids__title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vh + 1.7vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.kids__sub {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.5vh, 1.15rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--brand-cyan);
}
.kids__text {
  margin: 14px 0 0;
  max-width: 58ch;
  color: var(--ink-3);
  font-size: clamp(0.88rem, 1.45vh, 1rem);
  line-height: 1.68;
}
.kids__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.kids__chips li {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 6px 13px;
  color: var(--ink-2);
  font-size: 0.78rem;
}
.kids__note {
  margin: clamp(14px, 2.2vh, 26px) 0 0;
  max-width: 92ch;
  color: var(--ink-4);
  font-size: 0.78rem;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .kids__layout {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "media";
  }
  .kids__media img {
    height: clamp(200px, 34vh, 360px);
  }
  .kids__title {
    /* длинное слово «ВОДИТЕЛЬСКИЙ» должно помещаться в 320–390 px */
    font-size: clamp(1.45rem, 6.1vw, 2.6rem);
  }
}

/* Ноутбуки с реальной высотой окна ~660–700 px: поджимаем бизнес и экономику */
@media (min-width: 1024px) and (max-height: 700px) {
  .section__title {
    font-size: clamp(1.25rem, 2.2vw, 1.72rem);
  }
  .section__head {
    margin-bottom: 10px;
  }

  .scenario__media {
    aspect-ratio: 3 / 1;
  }
  .scenario__title {
    font-size: 0.84rem;
  }
  .scenario__text {
    font-size: 0.68rem;
    line-height: 1.38;
  }
  .scenario--wide,
  .scenario--wide .scenario__media {
    min-height: 96px;
  }
  .business__cta {
    padding-top: 0;
  }

  .economics__panel {
    padding: 9px;
    gap: 5px;
  }
  .economics__results {
    gap: 4px;
  }
  .economics__disclaimer {
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .product__stage {
    height: min(49svh, 430px);
  }
}

@media (min-width: 1024px) and (max-height: 700px) {
  .economics__bar {
    padding-block: 8px;
  }
  .economics__field {
    gap: 3px;
  }
  .economics__field input {
    height: 42px;
  }
  .economics__results > div {
    padding-block: 10px;
  }
  .economics__panel {
    padding: 8px;
    gap: 4px;
  }
  .economics__trust {
    padding-block: 10px;
  }
}

@media (min-width: 1024px) and (max-height: 700px) {
  .economics__field input {
    height: 38px;
    font-size: 0.85rem;
  }
  .economics__field label {
    font-size: 0.72rem;
  }
  .economics__results > div {
    padding-block: 8px;
  }
  .economics__results strong {
    font-size: 1.15rem;
  }
  .economics__disclaimer {
    font-size: 0.64rem;
  }
  .economics__intro .section__title {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
  }
  .economics__trust {
    font-size: 0.78rem;
  }
}

/* Контент блоков не должен уезжать под закреплённую шапку */
@media (min-width: 1024px) and (min-height: 620px) {
  .section,
  .cta-final {
    padding-top: 66px;
    padding-bottom: 0;
  }
}

@media (min-width: 1024px) and (max-height: 700px) {
  .product__stage {
    height: min(45svh, 400px);
  }
}

@media (min-width: 1024px) and (max-height: 700px) {
  .scenario__media {
    aspect-ratio: 3.2 / 1;
  }
  .scenario__text {
    font-size: 0.66rem;
  }
  #business .section__head {
    margin-bottom: 6px;
  }
  .product__stage {
    height: min(43svh, 390px);
  }
  .faq__item summary {
    padding-block: clamp(10px, 1.9vh, 16px);
  }
}

@media (min-width: 1024px) and (max-height: 700px) {
  .scenario--wide,
  .scenario--wide .scenario__media {
    min-height: 88px;
  }
  .product__stage {
    height: min(41svh, 370px);
  }
}

@media (min-width: 1024px) and (max-height: 700px) {
  .product__tab {
    padding-block: 5px;
  }
  .product__tab-title {
    font-size: 0.96rem;
  }
  .product__tab-text {
    font-size: 0.66rem;
    line-height: 1.3;
  }
  .product__aside {
    padding-block: 6px;
  }
  .product__note {
    font-size: 0.68rem;
  }
  .scenario__text {
    font-size: 0.64rem;
    line-height: 1.36;
  }
}

@media (min-width: 1024px) and (max-height: 700px) {
  #business .section__head {
    margin-bottom: 3px;
  }
  .scenario__title {
    font-size: 0.82rem;
  }
}

/* Средние ноутбуки (701–790 px): компенсируем отступ под шапку */
@media (min-width: 1024px) and (min-height: 701px) and (max-height: 790px) {
  .scenario__media {
    aspect-ratio: 2.8 / 1;
  }
  .scenario__text {
    font-size: 0.7rem;
    line-height: 1.4;
  }
  .scenario--wide,
  .scenario--wide .scenario__media {
    min-height: 100px;
  }
  .economics__panel {
    padding: 11px;
    gap: 8px;
  }
  .economics__field input {
    height: 44px;
  }
  .economics__results > div {
    padding-block: 11px;
  }
  .economics__disclaimer {
    font-size: 0.7rem;
    line-height: 1.4;
  }
}

@media (min-width: 1024px) and (min-height: 701px) and (max-height: 790px) {
  .scenario__media {
    aspect-ratio: 3.2 / 1;
  }
  .scenario__text {
    font-size: 0.67rem;
  }
  #business .section__head {
    margin-bottom: 4px;
  }
  .product__tab {
    padding-block: 6px;
  }
}

/* Телеметрия: отодвигаем панель от текста */
@media (min-width: 1024px) and (min-height: 620px) {
  .telemetry__layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(56px, 7vw, 150px);
  }
}

/* Телеметрия: заголовок не должен заезжать под панель на широких экранах */
@media (min-width: 1024px) and (min-height: 620px) {
  .telemetry__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
  .telemetry .section__title {
    font-size: clamp(1.8rem, 2.2vh + 1.5vw, 2.8rem);
  }
}

/* --- 3D-модель карта (блок 03) ------------------------------------------ */
.kart3d {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(60% 52% at 50% 80%, rgba(121, 86, 237, 0.2), transparent 72%),
    linear-gradient(180deg, #0b0d20, #070919);
  aspect-ratio: 16 / 9;
  min-height: 320px;
}
@media (max-width: 760px) {
  .kart3d {
    aspect-ratio: 4 / 3;
    min-height: 300px;
  }
}
.kart3d__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}
.kart3d__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: grab;
}
.kart3d__canvas:active {
  cursor: grabbing;
}
.kart3d--ready .kart3d__canvas {
  opacity: 1;
}
.kart3d--ready .kart3d__fallback {
  opacity: 0;
}
.kart3d__loader {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 9, 25, 0.72);
  color: var(--ink-2);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  display: none;
}
.kart3d--loading .kart3d__loader {
  display: block;
}
.kart3d--ready .kart3d__loader,
.kart3d--fallback .kart3d__loader {
  display: none;
}
.kart3d--fallback .kart3d__canvas,
.kart3d--fallback .kart3d__hint {
  display: none;
}
.kart3d__hint {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 9, 25, 0.72);
  backdrop-filter: blur(6px);
  color: var(--ink-2);
  font-size: 0.8125rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.kart3d--ready .kart3d__hint {
  opacity: 1;
}
.kart3d--interacted .kart3d__hint {
  opacity: 0;
}


/* --- Новости (наполняются из админки через data/news.json) ------------- */
.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.news-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, #0b0d20, #070919);
  display: flex;
  flex-direction: column;
}
.news-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #070919;
}
.news-card__media img,
.news-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.news-card__date {
  color: var(--cyan);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.news-card__title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.3;
}
.news-card__text {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.55;
  white-space: pre-line;
}
@media (max-width: 980px) {
  .news__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .news__grid {
    grid-template-columns: 1fr;
  }
}

/* Блок 03: фото карта без фона (вместо 3D) */
.kart-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0 24px;
}

.kart-photo__img {
  display: block;
  width: min(100%, 980px);
  height: auto;
  filter: drop-shadow(0 34px 44px rgba(10, 8, 24, 0.45));
}
