/* ==========================================
   PRIVOZ — EXPORT
   BLOCK 04: PROCESS
   ========================================== */

.export-page .export-process {
  --process-dark: #244651;
  --process-text: #24444e;
  --process-muted: #5e7780;
  --process-accent: #668b99;
  --process-border: rgba(69, 109, 123, 0.17);
  --process-header-height: 80px;

  position: relative;
  background: #fbfdfd;
  border-top: 1px solid var(--process-border);
  padding: 110px 0 120px;
  box-sizing: border-box;
}

.export-process,
.export-process * {
  box-sizing: border-box;
}

/* Заголовок */

.export-process-head {
  max-width: 900px;
  margin-bottom: 70px;
}

.export-process-head .export-section-label {
  margin-bottom: 22px;
}

.export-process-head .export-section-title {
  margin-top: 20px;
}

/* Горизонтальная область */

.export-process-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.export-process-scroll::-webkit-scrollbar {
  display: none;
}

.export-process-scroll:focus-visible {
  outline: 2px solid var(--process-accent);
  outline-offset: 5px;
}

.export-process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, 280px);
  gap: 25px;
  width: max-content;
  min-width: 100%;
  padding: 35px 0 10px;
}

/* Горизонтальная линия */

.export-process-line {
  position: absolute;
  left: 0;
  top: 43px;
  width: 100%;
  height: 2px;
  background: rgba(102, 139, 153, 0.2);
}

.export-process-line-progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #244651, #668b99);
  transition: width 0.08s linear;
}

.export-process-marker {
  position: absolute;
  left: 0%;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 0 10px rgba(102, 139, 153, 0.95),
    0 0 25px rgba(102, 139, 153, 0.6);
  transform: translate(-50%, -50%);
  transition: left 0.08s linear;
}

/* Этап */

.export-process-step {
  position: relative;
  min-width: 0;
  padding-top: 45px;
}

.export-process-dot {
  position: absolute;
  top: 3px;
  left: 0;
  width: 12px;
  height: 12px;
  z-index: 2;
  border-radius: 50%;
  border: 2px solid rgba(102, 139, 153, 0.4);
  background: #ffffff;
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}

.export-process-step.is-active .export-process-dot {
  background: #456d7b;
  border-color: #456d7b;
}

/* Карточка */

.export-process-card {
  min-height: 285px;
  height: 100%;
  padding: 26px 24px;
  background: #fbfdfd;
  border: 1px solid var(--process-border);

  clip-path: polygon(
    13px 0,
    100% 0,
    100% calc(100% - 13px),
    calc(100% - 13px) 100%,
    0 100%,
    0 13px
  );

  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.export-process-step.is-active .export-process-card {
  background: #edf4f6;
}

.export-process-card > span {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--process-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.export-process-card h3 {
  margin: 0 0 18px;
  color: var(--process-dark);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.export-process-card p {
  margin: 0;
  color: var(--process-muted);
  font-size: 14px;
  line-height: 1.75;
}

/* Подсказка */

.export-process-hint {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 24px 0 0;
  color: var(--process-muted);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.export-process-hint span:last-child {
  font-size: 22px;
  color: var(--process-dark);
}

/* ==========================================
   DESKTOP — PINNED SCROLL
   ========================================== */

@media (min-width: 769px) {
  .export-page .export-process {
    padding: 0;
    overflow: visible;
  }

  .export-process > .export-page-container {
    position: sticky;
    top: var(--process-header-height);
    height: calc(100dvh - var(--process-header-height));
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .export-process-head {
    flex-shrink: 0;
    margin-bottom: 46px;
  }

  .export-process-scroll {
    flex-shrink: 0;
  }

  .export-process-hint {
    flex-shrink: 0;
  }
}

/* ==========================================
   TABLET / MOBILE
   ========================================== */

@media (max-width: 768px) {
  .export-page .export-process {
    height: auto !important;
    padding: 75px 0 85px;
  }

  .export-process > .export-page-container {
    position: static;
    height: auto;
  }

  .export-process-head {
    margin-bottom: 40px;
  }

  .export-process-track {
    grid-template-columns: repeat(8, 245px);
    gap: 16px;
    padding-top: 30px;
  }

  .export-process-line {
    top: 38px;
  }

  .export-process-card {
    min-height: 300px;
    padding: 24px 20px;
  }

  .export-process-card h3 {
    font-size: 21px;
  }

  .export-process-card p {
    font-size: 13px;
  }

  .export-process-hint {
    justify-content: flex-start;
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .export-process-track {
    grid-template-columns: repeat(8, 230px);
  }

  .export-process-head .export-section-title {
    font-size: clamp(30px, 9vw, 44px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .export-process-line-progress,
  .export-process-marker,
  .export-process-card,
  .export-process-dot {
    transition: none;
  }
}


/* ==========================================
   EXPORT PROCESS — SECTION LABEL
   Плашка «КАК ПРОХОДИТ РАБОТА»
   ========================================== */

.export-page .export-process-head .export-section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: fit-content;
  max-width: 100%;

  padding: 11px 19px;
  margin: 0 0 28px;

  background: #e2edf1;
  color: #456d7b;

  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  clip-path: polygon(
    0 0,
    calc(100% - 10px) 0,
    100% 100%,
    10px 100%
  );
}


/* ==========================================
   EXPORT PROCESS — MAIN TITLE
   ========================================== */

.export-page .export-process-head .export-section-title {
  margin: 0;

  color: #24444e;

  font-size: clamp(42px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.export-page .export-process-head .export-section-title span {
  display: block;
  color: #456d7b;
}

@media (max-width: 768px) {
  .export-page .export-process-head .export-section-label {
    padding: 9px 15px;
    margin-bottom: 22px;
    font-size: 10px;
  }

  .export-page .export-process-head .export-section-title {
    font-size: clamp(34px, 8vw, 52px);
  }
}
