/* ═══════════════════════════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════════════════════════ */

.site-main {
  flex: 1 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 32px var(--site-h-padding) 32px;
}

/* About page: stretch tech-specs to fill remaining space */
body.page-about .site-main {
  padding-bottom: 0;
}

body.page-about .tech-specs {
  flex: 1 1 auto;
  min-height: 400px;
  margin-bottom: 0;
}

/* ── Hero banner ──────────────────────────────────────── */
.hero-banner {
  width: 100%;
  overflow: visible;
  position: relative;
  flex-shrink: 0;
  margin-bottom: 1px;
}

.hero-banner__img {
  width: 100%;
  height: 310px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  position: relative;
}

.hero-banner__image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: auto;
}

.hero-banner__image-wrapper > img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── Hero labels ──────────────────────────────────────── */
.hero-label {
  display: none;
  position: absolute;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  z-index: 2;
}

.hero-label img {
  width: auto;
  max-width: none;
}

.hero-label__arrow {
  display: block;
  flex-shrink: 0;
  height: auto;
}

.hero-label__text {
  display: block;
  width: 89px;
  max-width: none;
}

.hero-label--44     .hero-label__arrow { width: 8px;  height: 39px;  }
.hero-label--24     .hero-label__arrow { width: 10px;  height: 92px;  }
.hero-label--24c    .hero-label__arrow { width: 20px;  height: 49px; }
.hero-label--24c-01 .hero-label__arrow { width: 13px;  height: 95px; }

@media (min-width: 1024px) {
  .hero-banner__img {
    position: relative;
  }

  .hero-banner__image-wrapper {
    position: relative;
    width: 1024px;
    flex-shrink: 0;
    transform: scale(1.2);
    transform-origin: top center;
    margin-top: -100px;
  }

  .hero-label {
    display: flex;
  }

  .hero-label--44 {
    left: 128.5px;
    bottom: 4.87px;
    width: 89px;
  }

  .hero-label--24 {
    left: 289px;
    bottom: 5px;
    width: 89px;
  }

  .hero-label--24c {
    left: 806.5px;
    bottom: 4px;
    width: 89px;
  }

  .hero-label--24c-01 {
    left: 645.5px;
    bottom: 4px;
    width: 89px;
  }
}

/* ── CTA row ──────────────────────────────────────────── */
.cta-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px var(--section-padding);
  background-color: var(--color-white);
}

.cta-catalog-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

@media (min-width: 1024px) {
  .cta-catalog-links {
    display: none;
  }
}

@media (max-width: 1024px) {
  .cta-row {
    padding-top: 0;
  }
}

.btn--dark:hover {
  color: var(--color-white);
  opacity: 0.9;
}

/* ── Features section ─────────────────────────────────── */
.features-section {
  width: 100%;
  padding: var(--section-padding) var(--site-h-padding);
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: var(--color-light-gray);
}

.features-section .section-title {
  color: var(--color-mid-gray);
}

/* Carousel wrapper */
.features-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  position: relative;
}

/* Arrows */
.features-arrow {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  background: none;
  border: none;
  padding: 0;
  transition: opacity 0.2s;
}

.features-arrow:hover {
  opacity: 0.7;
}

.features-arrow img {
  height: 19px;
  width: auto;
}

/* Carousel viewport — clips overflowing items */
.features-viewport {
  flex: 1 1 0;
  overflow: hidden;
  position: relative;
  min-width: 0;
  height: 169px;
  max-width: 100%;
}

/* Track — holds all items in a row, shifts via transform */
.features-track {
  display: flex;
  flex-direction: row;
  gap: 8px;
  will-change: transform;
  transition: none;
}

/* Feature items */
.feature-item {
  width: 232px;
  min-height: 134.4px;
  height: auto;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  box-sizing: border-box;
}

.feature-item__icon {
  width: 67px;
  height: 67px;
  flex-shrink: 0;
  position: relative;
}

.feature-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.flag-badge {
  position: absolute;
  width: 44px;
  left: 50%;
  top: 16%;
  bottom: 17%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  outline: 2px solid #c45a00;
  outline-offset: 0px;
}

.flag-stripe {
  width: 44px;
  flex: 1 1 0;
}

.flag-stripe--white { background-color: var(--color-white); }
.flag-stripe--blue  { background-color: var(--color-blue); }
.flag-stripe--red   { background-color: #c0392b; }

.feature-item__label {
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  color: #000;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Product description section ──────────────────────── */
.product-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px var(--section-padding);
  background-color: var(--color-white);
  margin-bottom: 1px;
}

.product-section .section-title {
  color: var(--color-mid-gray);
}

.product-layout {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}

.product-text-col {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.product-body-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 17px;
  color: #000;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.product-image-col {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: visible;
}

.rec-strip {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-radius: 4px;
  overflow: hidden;
  min-height: 104px;
}

.rec-strip__logo {
  width: 191px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 8px 8px 16px;
  background-color: var(--color-light-gray);
}

.rec-strip__logo img {
  max-width: 145px;
  height: auto;
}

.rec-strip__divider {
  width: 18px;
  flex-shrink: 0;
}

.rec-strip__divider img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.rec-strip__text {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  padding: 8px 8px 8px 16px;
  background-color: var(--color-orange);
  font-size: 12px;
  color: #000;
}

/* Product photo */
.product-photo {
  width: 100%;
  margin-top: 16px;
  height: 351px;
  overflow: visible;
  max-width: 650px;
  max-height: 452px;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  max-width: 650px;
  max-height: 452px;
}

/* ── Technical specifications ─────────────────────────── */
.tech-specs {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px var(--section-padding);
  background-color: var(--color-red);
  margin-bottom: 1px;
}

.tech-specs .section-title {
  color: var(--color-white);
}

.tech-specs > video-player {
    display: block;
    margin-inline: auto;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.spec-item {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: flex-start;
}

.spec-item__number {
  font-weight: 700;
  font-size: 36px;
  text-align: center;
  width: 40px;
  flex-shrink: 0;
  color: var(--color-white);
  line-height: 1;
}

.spec-item__text {
  font-weight: 700;
  font-size: 14px;
  color: #000;
  flex: 1 1 0;
  line-height: 1.21;
}

.hero-banner,
.cta-row,
.features-section,
.product-section,
.tech-specs {
  padding: var(--section-padding) var(--site-h-padding);
  margin-left:  calc(-1 * var(--site-h-padding));
  margin-right: calc(-1 * var(--site-h-padding));
  width: calc(100% + 2 * var(--site-h-padding));
  margin-bottom: 0;
}

/* ── Callback modal ───────────────────────────────────── */
.callback-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.callback-modal.is-open {
  display: flex;
}

.callback-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.callback-modal__window {
  position: relative;
  z-index: 1;
  background: rgba(43, 43, 43, 1);
  border-radius: 8px;
  padding: 16px;
  width: 317px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.callback-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.callback-modal__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 8px;
}

.callback-modal__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.callback-modal__form input,
.callback-modal__form select,
.callback-modal__form textarea {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 4px;
  background-color: var(--color-mid-gray);
  color: var(--color-white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.callback-modal__form input::placeholder,
.callback-modal__form textarea::placeholder {
  color: var(--color-white);
  opacity: 0.8;
}

.callback-modal__form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.callback-modal__form textarea {
  min-height: 140px;
  resize: vertical;
}

/* ── Training video ──────────────────────────────────── */
.training-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 36px;
  align-items: stretch;
}

.training-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.training-panel .section-title {
  flex: none;
}

.training-panel--video video-player {
  width: 100%;
}

.training-highlights {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(0, 1fr));
  grid-auto-flow: column;
  gap: 8px;
}

.training-highlight {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 6px 0;
  text-align: left;
}

.training-highlight__time {
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-white);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.21;
  cursor: pointer;
}

.training-highlight__time:hover {
  opacity: 0.75;
}

.training-highlight__time:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
}

.training-highlight__separator {
  flex: none;
  color: #000;
  font-weight: 700;
}

.training-highlight__title {
  color: #000;
  flex: 1 1 0;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.21;
}

@media (max-width: 980px) {
  .training-layout {
    grid-template-columns: 1fr;
  }

  .training-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(54px, auto));
  }
}

@media (max-width: 680px) {
  .training-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(54px, auto));
  }
}

@media (max-width: 430px) {
  .training-highlights {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
    grid-auto-rows: minmax(54px, auto);
  }
}
