/* ===== Reset & Base ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  /* snap перенесён в #stm-snap-viewport (см. stm-cleaning.php + stm-snap.js) */
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: #0b1f3a;
  background: #ffffff;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* picture — семантика; в раскладке не участвует, стили остаются на img */
picture {
  display: contents;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Container ===== */

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== HERO ===== */

#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background-color: #ffffff;
  background-image: url("../images/hero/hero-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 55% center;
}

.hero__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 48%) minmax(0, 52%);
  align-items: center;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding-top: clamp(20px, 3vh, 40px);
  padding-bottom: clamp(20px, 3vh, 40px);
  padding-left: clamp(32px, 4.5vw, 72px);
  padding-right: clamp(24px, 3vw, 48px);
}

/* --- Background visual (full-section) --- */

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__visual-figure {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.hero__visual-image {
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: 55% center;
}

/* заголовок на фото — только мобилка / планшет */
.hero__visual-title {
  display: none;
}

/* --- Content --- */

.hero__content {
  position: relative;
  z-index: 1;
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8vh, 20px);
  width: 100%;
  max-width: none;
  padding-right: clamp(12px, 2vw, 32px);
  overflow: visible;
}

.hero__label {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 18px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a6fd4;
  border: 1.5px solid rgba(26, 111, 212, 0.35);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.65);
}

.hero__title {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: clamp(1.875rem, 1.2rem + 1.8vw, 2.625rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0b1f3a;
  letter-spacing: -0.02em;
}

.hero__title-accent {
  display: block;
  margin-top: 4px;
  font-family: inherit;
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  color: #1a7cff;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.hero__subtitle {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
  font-weight: 600;
  color: #0b1f3a;
  line-height: 1.45;
}

.hero__description {
  font-size: clamp(0.9rem, 0.82rem + 0.25vw, 1rem);
  font-weight: 400;
  color: #2a4060;
  line-height: 1.6;
  max-width: 56ch;
}

/* --- Advantages --- */

.hero__advantages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style: none;
  margin-top: 2px;
  overflow: visible;
}

.hero__advantage {
  position: relative;
  cursor: default;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 4px 16px rgba(26, 111, 212, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.hero__advantage:hover {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(26, 124, 255, 0.35);
  box-shadow:
    0 4px 16px rgba(26, 111, 212, 0.12),
    0 0 0 1px rgba(26, 124, 255, 0.08);
}

.hero__advantage-popup {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  right: auto;
  z-index: 50;
  width: 256px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero__advantage:hover .hero__advantage-popup {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hero__advantage-popup-text {
  position: relative;
  padding: 12px 16px;
  font-size: 0.75rem;
  line-height: 1.55;
  color: #4b5563;
  background: #ffffff;
  border: 1px solid rgba(26, 124, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.hero__advantage-popup-text::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  right: auto;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-right: 1px solid rgba(26, 124, 255, 0.12);
  border-bottom: 1px solid rgba(26, 124, 255, 0.12);
  transform: translateX(-50%) rotate(45deg);
}

.hero__advantage-popup--map {
  width: min(570px, calc(100vw - 80px));
}

.hero__advantage-map {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(26, 124, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.hero__advantage-map::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  right: auto;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-right: 1px solid rgba(26, 124, 255, 0.12);
  border-bottom: 1px solid rgba(26, 124, 255, 0.12);
  transform: translateX(-50%) rotate(45deg);
}

.hero__advantage-map-image {
  display: block;
  width: 100%;
  height: auto;
}

.hero__advantage--wide {
  grid-column: 1 / -1;
}

.hero__advantage-figure {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  min-height: 68px;
}

.hero__advantage-figure--center {
  justify-content: center;
}

.hero__advantage-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.hero__advantage-text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0b1f3a;
  line-height: 1.3;
}

/* --- Actions --- */

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.hero__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.hero__button:hover {
  transform: translateY(-1px);
}

.hero__button--primary {
  color: #ffffff;
  background: linear-gradient(135deg, #1a8cff 0%, #0066e6 100%);
  box-shadow: 0 4px 16px rgba(26, 124, 255, 0.35);
}

.hero__button--primary:hover {
  box-shadow: 0 6px 24px rgba(26, 124, 255, 0.45);
}

.hero__button--secondary {
  color: #1a7cff;
  background: #ffffff;
  border: 1.5px solid rgba(26, 124, 255, 0.4);
  box-shadow: 0 2px 8px rgba(26, 111, 212, 0.08);
}

.hero__button--secondary:hover {
  background: rgba(26, 124, 255, 0.04);
  box-shadow: 0 4px 16px rgba(26, 111, 212, 0.12);
}

.hero__button-icon {
  flex-shrink: 0;
}

/* Мобильный якорь CTA — скрыт на desktop */
.stm-mobile-cta {
  display: none;
}

/* ===== Responsive: HERO ===== */

@media (max-width: 1024px) {
  html {
    scroll-snap-type: none;
  }

  main > section {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  /*
   * Планшет / мобилка: фото сверху (под шапкой), текст на белом снизу.
   * Убираем дубль background-image, иначе контент «плавает» поверх цеха.
   */
  #hero {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
    background-image: none;
    background-color: #ffffff;
  }

  .hero__visual {
    position: relative;
    order: 1;
    inset: auto;
    z-index: 0;
    width: 100%;
    /* +30% к прежней высоте */
    height: clamp(312px, 54.6vw, 494px);
    margin: 0;
    pointer-events: none;
    background: #0b1f3a;
    overflow: hidden;
  }

  .hero__visual-figure {
    height: 100%;
  }

  .hero__visual-image {
    object-fit: cover;
    object-position: center 40%;
  }

  .hero__visual-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.12em;
    position: absolute;
    left: 18px;
    right: auto;
    /* центр по вертикали в видимой зоне под фиксированной шапкой */
    top: 72px;
    bottom: 0;
    z-index: 1;
    max-width: min(70%, 360px);
    height: fit-content;
    margin: auto 0;
    padding: 0;
    transform: none;
    text-align: left;
    pointer-events: none;
  }

  .hero__visual-title-line {
    display: block;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    font-size: clamp(0.89rem, 2.38vw, 1.32rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #0b1f3a;
  }

  .hero__visual-title-line--accent {
    font-size: clamp(0.98rem, 2.64vw, 1.57rem);
    color: #1a7cff;
    text-transform: uppercase;
    letter-spacing: -0.01em;
  }

  /* заголовок перенесён на фото — ниже не дублируем */
  .hero__title {
    display: none;
  }

  .hero__container {
    order: 2;
    grid-template-columns: 1fr;
    gap: 0;
    height: auto;
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 36px;
    padding-left: 28px;
    padding-right: 28px;
    background: #ffffff;
  }

  .hero__content {
    grid-column: auto;
    max-width: none;
    padding-right: 0;
    gap: 14px;
  }

  .hero__title {
    font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.125rem);
  }

  .hero__title-accent {
    font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  }

  .hero__description {
    max-width: none;
  }

  .hero__advantages {
    gap: 8px;
  }

  .hero__advantage-figure {
    min-height: 60px;
    padding: 10px 14px;
  }

  .hero__advantage-icon {
    width: 40px;
    height: 40px;
  }

  .hero__advantage-popup {
    display: none;
  }

  .hero__advantage:hover {
    transform: none;
  }

  .hero__actions {
    display: none; /* кнопки уходят в нижний якорь */
  }

  /* фиксированная полоса CTA снизу */
  .stm-mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4500;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid rgba(26, 124, 255, 0.14);
    box-shadow: 0 -8px 28px rgba(11, 31, 58, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .stm-mobile-cta__btn {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 48px;
    padding: 10px 8px;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    white-space: normal;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .stm-mobile-cta__btn:active {
    transform: scale(0.98);
  }

  .stm-mobile-cta__btn--primary {
    color: #ffffff;
    background: linear-gradient(135deg, #1a8cff 0%, #0066e6 100%);
    box-shadow: 0 4px 14px rgba(26, 124, 255, 0.35);
  }

  .stm-mobile-cta__btn--secondary {
    color: #1a7cff;
    background: #ffffff;
    border: 1.5px solid rgba(26, 124, 255, 0.4);
    box-shadow: 0 2px 8px rgba(26, 111, 212, 0.08);
  }

  .stm-mobile-cta__icon {
    flex-shrink: 0;
  }

  .stm-mobile-cta__btn span {
    min-width: 0;
  }

  /* место под якорь, чтобы контент не прятался */
  .stm-snap-viewport,
  body.page-template-stm-cleaning .stm-snap-viewport {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .hero__visual {
    height: 286px;
  }

  .hero__visual-title {
    left: 14px;
    top: 64px;
    max-width: min(78%, 280px);
  }

  .hero__visual-title-line {
    font-size: clamp(0.81rem, 3.57vw, 1.02rem);
  }

  .hero__visual-title-line--accent {
    font-size: clamp(0.89rem, 3.91vw, 1.15rem);
  }

  .hero__container {
    padding-top: 22px;
    padding-bottom: 28px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero__content {
    gap: 12px;
  }

  .hero__label {
    padding: 5px 14px;
    font-size: 0.6875rem;
  }

  .hero__title {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .hero__title-accent {
    margin-top: 2px;
    font-size: 1.625rem;
  }

  .hero__subtitle {
    font-size: 0.9375rem;
  }

  .hero__description {
    font-size: 0.875rem;
    line-height: 1.55;
  }

  .hero__advantages {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero__advantage--wide {
    grid-column: auto;
  }

  .hero__advantage-figure {
    min-height: 56px;
    padding: 10px 12px;
    gap: 10px;
  }

  .hero__advantage-icon {
    width: 36px;
    height: 36px;
  }

  .hero__advantage-text {
    font-size: 0.875rem;
  }

  .stm-mobile-cta {
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .stm-mobile-cta__btn {
    gap: 5px;
    min-height: 46px;
    padding: 8px 6px;
    font-size: 0.75rem;
  }

  .stm-mobile-cta__icon {
    width: 16px;
    height: 16px;
  }
}

/* ===== Modal ===== */

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: none;
  background: transparent;
}

.modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal__card {
  position: relative;
  width: 100%;
  max-width: 448px;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25);
  animation: modal-in 0.22s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.modal__accent {
  height: 6px;
  background: linear-gradient(90deg, #0066e6 0%, #1a8cff 50%, #7dd3fc 100%);
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #9ca3af;
  transition: color 0.2s, background 0.2s;
}

.modal__close:hover {
  color: #4b5563;
  background: #f3f4f6;
}

.modal__header {
  padding: 28px 32px 0;
}

.modal__title {
  padding-right: 32px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0b1f3a;
}

.modal__description {
  margin-top: 4px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #6b7280;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 32px 32px;
}

.modal__form[hidden],
.modal__success[hidden],
.modal__header[hidden] {
  display: none;
}

.modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a7cff;
}

.modal__input,
.modal__textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.875rem;
  color: #0b1f3a;
  background: rgba(249, 250, 251, 0.8);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.modal__input::placeholder,
.modal__textarea::placeholder {
  color: #9ca3af;
}

.modal__input:focus,
.modal__textarea:focus {
  background: #ffffff;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(26, 124, 255, 0.12);
}

.modal__textarea {
  resize: none;
}

.modal__error {
  margin-top: -4px;
  font-size: 0.875rem;
  color: #ef4444;
}

.modal__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  padding: 14px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #1a8cff 0%, #0066e6 100%);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(26, 124, 255, 0.25);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.modal__submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 124, 255, 0.35);
}

.modal__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.modal__submit--close {
  width: auto;
  min-width: 140px;
}

.modal__spinner {
  animation: modal-spin 0.8s linear infinite;
}

.modal__success:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 8px 32px 32px;
  text-align: center;
}

.modal__success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0;
  border-radius: 50%;
  color: #1a7cff;
  background: rgba(26, 124, 255, 0.08);
}

.modal__success-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0b1f3a;
}

.modal__success-text {
  max-width: 280px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #6b7280;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes modal-spin {
  to {
    transform: rotate(360deg);
  }
}

.modal__card--article {
  max-width: 520px;
  max-height: min(88vh, 720px);
  overflow: hidden;
}

.modal__article {
  padding-bottom: 32px;
}

.modal__article-body {
  padding: 16px 32px 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #2a4060;
}

.modal__article-body p + p {
  margin-top: 12px;
}

.modal__article-section + .modal__article-section {
  margin-top: 16px;
}

.modal__article-subtitle {
  margin-bottom: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1a7cff;
}

.modal__article-list {
  padding-left: 18px;
  list-style: disc;
}

.modal__article-list li + li {
  margin-top: 4px;
}

.modal__article-list li::marker {
  color: #1a7cff;
}

.modal__article-lead {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-left: 3px solid #1a7cff;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, rgba(26, 124, 255, 0.08), rgba(247, 251, 255, 0.4));
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  color: #0b1f3a;
}

.modal__article-section {
  padding: 12px 14px;
  border: 1px solid rgba(26, 124, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.modal__article-result {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(26, 124, 255, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(26, 124, 255, 0.1) 0%, rgba(255, 255, 255, 0.9) 55%);
}

.modal__article-result-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a7cff;
}

.modal__article-result p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #0b1f3a;
}

.modal__card--article .modal__article {
  max-height: min(88vh, 720px);
  overflow-y: auto;
}

/* ===== Section Header (shared) ===== */

.section-header {
  max-width: 640px;
  margin-bottom: clamp(12px, 2vh, 20px);
  flex-shrink: 0;
}

.section-header__label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 14px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a6fd4;
  border: 1.5px solid rgba(26, 111, 212, 0.35);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.6);
}

.section-header__title {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 800;
  line-height: 1.12;
  color: #0b1f3a;
  letter-spacing: -0.02em;
}

.section-header__title-accent {
  color: #1a7cff;
}

.section-header__description {
  margin-top: 10px;
  font-size: clamp(0.75rem, 1.1vw, 0.85rem);
  line-height: 1.45;
  color: #2a4060;
}

.section-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(12px, 2vh, 20px);
  flex-shrink: 0;
}

/* ===== ABOUT COMPANY ===== */

#about {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  max-height: 100vh;
  padding: 8px 0;
  overflow: hidden;
  background: #ffffff;
}

.about-company__stage {
  position: relative;
  width: min(100%, calc((100vh - 16px) * 1024 / 682));
  aspect-ratio: 1024 / 682;
  max-height: calc(100vh - 16px);
  margin: 0 auto;
  padding: 0;
}

.about-company__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  pointer-events: none;
}

.about-company__overlay {
  --about-panels-top: calc(69% + 10px);
  --about-panels-bottom: 1.2%;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.about-company__header {
  position: absolute;
  top: 1%;
  left: 2.6%;
  width: 47.1%;
  margin: 0;
  background: #ffffff;
  padding: 0 0 6px;
}

#about .section-header__title {
  font-size: clamp(1.15rem, 1.7vw, 1.64rem);
  line-height: 0.66;
}

#about .section-header__title-accent {
  display: block;
  font-size: 2em;
  line-height: 0.63;
  margin-top: 0;
}

#about .section-header__description {
  margin-top: 6px;
  font-size: clamp(0.62rem, 0.84vw, 0.74rem);
  line-height: 1.4;
}

.about-company__stats {
  list-style: none;
}

.about-company__stat {
  position: absolute;
  z-index: 2;
  border-radius: 12px;
  background: #ffffff;
}

.about-company__stat--experience { top: 29%; left: 0%; width: 23.8%; height: 12%; }
.about-company__stat--area { top: 42%; left: 0%; width: 23.8%; height: 12%; }
.about-company__stat--team { top: 54.9%; left: 0%; width: 23.8%; height: 12%; }
.about-company__stat--capacity { top: 29%; right: 0%; left: auto; width: 23.8%; height: 12%; }
.about-company__stat--lines { top: 42%; right: 0%; left: auto; width: 23.8%; height: 12%; }
.about-company__stat--projects { top: 54.9%; right: 0%; left: auto; width: 23.8%; height: 12%; }
.about-company__stat--sku { top: 57.8%; left: 30.1%; width: 18.4%; height: 9.4%; }
.about-company__stat--formulas { top: 57.8%; left: 50%; width: 18.4%; height: 9.4%; }

.about-company__stat--capacity .about-company__stat-value {
  font-size: clamp(1.32rem, 1.84vw, 1.6rem);
  font-weight: 700;
  white-space: nowrap;
}

.about-company__stat-figure {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  padding: 0 9px;
  margin: 0;
}

.about-company__stat-icon {
  flex-shrink: 0;
  width: clamp(48px, 6.8vw, 68px);
  height: clamp(48px, 6.8vw, 68px);
  object-fit: contain;
}

.about-company__stat-caption {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.about-company__stat-value {
  font-size: clamp(1.32rem, 1.84vw, 1.6rem);
  font-weight: 700;
  line-height: 1.1;
  color: #1a7cff;
}

.about-company__stat-label {
  font-size: clamp(1.08rem, 1.48vw, 1.28rem);
  font-weight: 500;
  line-height: 1.15;
  color: #4b5563;
}

.about-company__panels {
  list-style: none;
}

.about-company__panels-item {
  position: absolute;
  top: var(--about-panels-top);
  height: calc(100% - var(--about-panels-top) - var(--about-panels-bottom));
}

.about-company__panels-item--cert { left: 1.3%; width: 31.1%; }
.about-company__panels-item--geo { left: 33.8%; width: 31.1%; }
.about-company__panels-item--clients { left: 66.2%; width: 31.1%; }

.about-company__panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 8px 10px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

.about-company__panel-header {
  margin: 0 0 6px;
  padding: 0;
  background: transparent;
  display: block;
  flex-shrink: 0;
}

.about-company__panel-title {
  font-size: clamp(0.82rem, 1.11vw, 0.94rem);
  font-weight: 700;
  color: #0b1f3a;
}

.about-company__panel-content {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 0;
}

.about-company__panel-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 56%;
  margin: 0;
  padding: 0;
  list-style: none;
  background: transparent;
  flex-shrink: 0;
  align-self: center;
}

.about-company__panels-item--cert .about-company__panel-list,
.about-company__panels-item--geo .about-company__panel-list {
  justify-content: center;
  gap: clamp(6px, 0.8vh, 10px);
  width: 52%;
}

.about-company__panels-item--cert .about-company__panel-list-icon,
.about-company__panels-item--geo .about-company__panel-list-icon {
  width: clamp(26px, 3.4vw, 32px);
  height: clamp(26px, 3.4vw, 32px);
}

.about-company__panels-item--cert .about-company__panel-list-text,
.about-company__panels-item--geo .about-company__panel-list-text {
  font-size: clamp(1.04rem, 1.4vw, 1.24rem);
}

.about-company__panels-item--cert .about-company__panel-list-figure,
.about-company__panels-item--geo .about-company__panel-list-figure {
  gap: clamp(8px, 1vw, 12px);
}

.about-company__panel-list--clients {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(2px, 0.35vh, 4px);
  width: 52%;
  max-width: 52%;
  flex: 0 1 auto;
  min-width: 0;
  align-self: center;
}

.about-company__panel-visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
  margin: 0;
  pointer-events: none;
}

.about-company__panels-item--cert .about-company__panel-visual,
.about-company__panels-item--geo .about-company__panel-visual {
  justify-content: flex-start;
  align-items: center;
  margin-left: clamp(-14px, -1.2vw, -6px);
}

.about-company__panel-visual-image {
  width: auto;
  max-width: 100%;
  max-height: clamp(108px, 16.5vh, 165px);
  object-fit: contain;
  object-position: center;
}

.about-company__panels-item--cert .about-company__panel-visual-image,
.about-company__panels-item--geo .about-company__panel-visual-image {
  object-position: center left;
}

.about-company__panels-item--cert .about-company__panel-visual-image {
  max-height: clamp(117px, 18vh, 177px);
}

.about-company__panels-item--geo .about-company__panel-visual-image {
  max-height: clamp(105px, 15.75vh, 156px);
}

.about-company__panels-item--clients .about-company__panel-content {
  gap: 4px;
}

.about-company__panels-item--clients .about-company__panel-list--clients .about-company__panel-list-item--wide {
  flex-shrink: 0;
}

.about-company__panels-item--clients .about-company__panel-list-text {
  font-size: clamp(0.48rem, 0.62vw, 0.58rem);
  white-space: nowrap;
}

.about-company__panels-item--clients .about-company__panel-list-icon {
  width: clamp(12px, 1.5vw, 15px);
  height: clamp(12px, 1.5vw, 15px);
  flex-shrink: 0;
}

.about-company__panels-item--clients .about-company__panel-list-figure {
  gap: clamp(4px, 0.5vw, 6px);
}

.about-company__panels-item--clients .about-company__panel-visual {
  justify-content: center;
  align-items: center;
  flex: 1.15;
  margin-left: clamp(-12px, -1vw, -4px);
}

.about-company__panels-item--clients .about-company__panel-visual-image {
  max-height: 100%;
  height: clamp(120px, 18vh, 190px);
  max-width: none;
  width: auto;
  object-position: center;
}

.about-company__panel-list--clients .about-company__panel-list-item--wide {
  grid-column: auto;
}

.about-company__panel-list-figure {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}

.about-company__panel-list-icon {
  width: clamp(13px, 1.7vw, 16px);
  height: clamp(13px, 1.7vw, 16px);
  object-fit: contain;
}

.about-company__panel-list-text {
  font-size: clamp(0.52rem, 0.7vw, 0.62rem);
  font-weight: 500;
  line-height: 1.2;
  color: #2a4060;
}

@media (max-height: 860px) {
  .hero__content { gap: 10px; }
  .hero__advantage-figure { min-height: 60px; padding: 10px 14px; }
  .hero__advantage-icon { width: 44px; height: 44px; }
  .hero__button { padding: 12px 22px; }
  .about-company__stat-figure { gap: 6px; padding: 0 8px; }
  .about-company__stat-icon { width: 52px; height: 52px; }
}

@media (max-width: 1024px) {
  #about {
    height: auto;
    max-height: none;
    display: block;
    padding: 56px 0 64px;
    overflow: visible;
    background: #f7faff;
  }

  .about-company__stage {
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    max-height: none;
    padding: 0 28px;
  }

  .about-company__bg {
    display: none;
  }

  .about-company__overlay {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .about-company__header {
    position: static;
    width: auto;
    max-width: 720px;
    margin: 0;
    padding: 0;
    background: transparent;
  }

  /* сброс «сплющенной» десктоп-типографики оверлея */
  #about .section-header__title {
    font-size: clamp(1.45rem, 3.5vw, 1.85rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
  }

  #about .section-header__title-accent {
    display: inline;
    font-size: 1em;
    line-height: inherit;
    margin-top: 0;
  }

  #about .section-header__description {
    margin-top: 12px;
    font-size: 0.9375rem;
    line-height: 1.55;
    max-width: 52ch;
  }

  .about-company__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* 6 карточек в 2 столбика (3 ровных ряда) */
  .about-company__stat--sku,
  .about-company__stat--formulas {
    display: none;
  }

  .about-company__stat {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    width: auto;
    height: auto;
    border: 1px solid rgba(26, 124, 255, 0.12);
    box-shadow: 0 4px 16px rgba(26, 111, 212, 0.07);
    background: #ffffff;
  }

  .about-company__stat--capacity .about-company__stat-value {
    font-size: 0.95rem;
    white-space: normal;
  }

  .about-company__stat-value {
    font-size: 1.125rem;
  }

  .about-company__stat-label {
    font-size: 0.8125rem;
  }

  .about-company__stat-icon {
    width: 40px;
    height: 40px;
  }

  .about-company__stat-figure {
    gap: 10px;
    padding: 12px 14px;
    min-height: 64px;
    height: auto;
  }

  .about-company__panels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .about-company__panels-item {
    position: static;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
  }

  .about-company__panel {
    height: auto;
    padding: 14px 14px 12px;
    background: #ffffff;
    border: 1px solid rgba(26, 124, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(26, 111, 212, 0.07);
    overflow: visible;
  }

  /* верх: узкий сектор под заголовок в 1 строку */
  .about-company__panel-header {
    background: transparent;
    padding: 0;
    margin: 0 0 8px;
    flex-shrink: 0;
  }

  .about-company__panel-title {
    font-size: 1.40625rem; /* 1.125 × 1.25 */
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* низ: список уже, картинка шире — оптимум под мобилку */
  .about-company__panel-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 156px;
  }

  .about-company__panel-list,
  .about-company__panels-item--cert .about-company__panel-list,
  .about-company__panels-item--geo .about-company__panel-list,
  .about-company__panel-list--clients {
    flex: 0 0 38%;
    width: 38%;
    max-width: 38%;
    background: transparent;
    padding: 0;
    gap: 7px;
    align-self: center;
  }

  .about-company__panels-item--cert .about-company__panel-list-text,
  .about-company__panels-item--geo .about-company__panel-list-text,
  .about-company__panel-list-text,
  .about-company__panels-item--clients .about-company__panel-list-text {
    font-size: 0.8125rem;
    white-space: normal;
    line-height: 1.25;
  }

  .about-company__panels-item--cert .about-company__panel-list-icon,
  .about-company__panels-item--geo .about-company__panel-list-icon,
  .about-company__panel-list-icon {
    width: 18px;
    height: 18px;
  }

  .about-company__panels-item--clients .about-company__panel-list-icon {
    width: 16px;
    height: 16px;
  }

  .about-company__panels-item--cert .about-company__panel-list-figure,
  .about-company__panels-item--geo .about-company__panel-list-figure,
  .about-company__panel-list-figure {
    gap: 6px;
  }

  .about-company__panel-list--clients {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    grid-template-columns: none;
    gap: 5px;
  }

  .about-company__panel-list--clients .about-company__panel-list-item--wide {
    grid-column: auto;
  }

  .about-company__panel-visual,
  .about-company__panels-item--cert .about-company__panel-visual,
  .about-company__panels-item--geo .about-company__panel-visual,
  .about-company__panels-item--clients .about-company__panel-visual {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    justify-content: center;
    align-items: center;
    margin-left: 0;
    min-width: 0;
  }

  .about-company__panel-visual-image,
  .about-company__panels-item--cert .about-company__panel-visual-image,
  .about-company__panels-item--geo .about-company__panel-visual-image,
  .about-company__panels-item--clients .about-company__panel-visual-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 210px;
    object-fit: contain;
    object-position: center;
  }

  /* сертификация узкая — можно выше, чтобы заполнить колонку */
  .about-company__panels-item--cert .about-company__panel-visual-image {
    max-height: 230px;
  }
}

@media (max-width: 640px) {
  #about {
    padding: 44px 0 52px;
  }

  .about-company__stage {
    padding: 0 18px;
  }

  .about-company__overlay {
    gap: 22px;
  }

  #about .section-header__title {
    font-size: 1.375rem;
  }

  #about .section-header__description {
    font-size: 0.875rem;
  }

  .about-company__stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .about-company__stat-figure {
    padding: 10px 12px;
    min-height: 58px;
    gap: 8px;
  }

  .about-company__stat-icon {
    width: 34px;
    height: 34px;
  }

  .about-company__stat-value {
    font-size: 1rem;
  }

  .about-company__stat--capacity .about-company__stat-value {
    font-size: 0.9375rem;
  }

  .about-company__stat-label {
    font-size: 0.75rem;
  }

  .about-company__panel {
    padding: 12px 12px 10px;
    border-radius: 14px;
  }

  .about-company__panel-header {
    margin: 0 0 6px;
  }

  .about-company__panel-title {
    font-size: 1.328125rem; /* 1.0625 × 1.25 */
  }

  .about-company__panel-content {
    gap: 6px;
    min-height: 140px;
  }

  .about-company__panel-list,
  .about-company__panels-item--cert .about-company__panel-list,
  .about-company__panels-item--geo .about-company__panel-list,
  .about-company__panel-list--clients {
    flex-basis: 36%;
    width: 36%;
    max-width: 36%;
    gap: 5px;
  }

  .about-company__panels-item--cert .about-company__panel-list-text,
  .about-company__panels-item--geo .about-company__panel-list-text,
  .about-company__panel-list-text,
  .about-company__panels-item--clients .about-company__panel-list-text {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .about-company__panel-list--clients {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .about-company__panel-visual-image,
  .about-company__panels-item--cert .about-company__panel-visual-image,
  .about-company__panels-item--geo .about-company__panel-visual-image,
  .about-company__panels-item--clients .about-company__panel-visual-image {
    max-height: 188px;
  }

  .about-company__panels-item--cert .about-company__panel-visual-image {
    max-height: 210px;
  }
}

/* ===== HOW WE WORK ===== */

#oem-odm {
  height: 100vh;
  max-height: 100vh;
  padding: clamp(8px, 1.2vh, 14px) 0;
  overflow: hidden;
  background: #ffffff;
}

#oem-odm > .container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

#oem-odm .section-header {
  margin-bottom: clamp(6px, 1vh, 12px);
  flex-shrink: 0;
}

#oem-odm .section-header__title {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

#oem-odm .section-header__description {
  max-width: 52ch;
  font-size: clamp(0.72rem, 1vw, 0.84rem);
  line-height: 1.42;
}

.how-we-work__models {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
  margin-bottom: clamp(10px, 1.4vh, 16px);
  list-style: none;
  flex: 0 0 auto;
}

.how-we-work__model {
  position: relative;
  display: flex;
  flex-direction: column;
  height: clamp(152px, 24vh, 208px);
  border: 1px solid rgba(26, 124, 255, 0.14);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(26, 111, 212, 0.07);
  overflow: hidden;
}

.how-we-work__model-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-top: 3px solid #1a7cff;
  border-left: 3px solid #1a7cff;
  border-radius: 12px 0 0 0;
  z-index: 2;
  pointer-events: none;
}

.how-we-work__model-header {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin: 0;
  padding: clamp(12px, 1.5vh, 16px) clamp(12px, 1.4vw, 16px) 0;
}

.how-we-work__model-title {
  margin: 0;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  font-weight: 700;
  color: #1a7cff;
  line-height: 1.2;
}

.how-we-work__model-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 0;
  flex: 1;
  min-height: 0;
  padding: clamp(8px, 1vh, 12px) clamp(12px, 1.4vw, 16px) clamp(12px, 1.5vh, 16px);
  overflow: hidden;
}

.how-we-work__model-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  height: 100%;
  padding-right: clamp(4px, 0.6vw, 8px);
}

.how-we-work__model-text {
  max-width: 100%;
  margin: 0;
  font-size: clamp(0.66rem, 0.88vw, 0.76rem);
  font-weight: 700;
  line-height: 1.35;
  color: #2a4060;
}

.how-we-work__models-item:nth-child(3) .how-we-work__model-text {
  max-width: 100%;
}

.how-we-work__model-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: clamp(8px, 1vh, 12px);
  margin-left: 0;
  color: #1a7cff;
  border: 1.5px solid rgba(26, 124, 255, 0.35);
  border-radius: 9px;
  background: #ffffff;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.how-we-work__model-link:hover {
  color: #ffffff;
  background: #1a7cff;
  border-color: #1a7cff;
  box-shadow: 0 4px 14px rgba(26, 124, 255, 0.35);
  transform: translateY(-1px);
}

.how-we-work__model-link:focus-visible {
  outline: 2px solid #1a7cff;
  outline-offset: 2px;
}

.how-we-work__model-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  min-width: 0;
  margin: 0;
  pointer-events: none;
}

.how-we-work__model-visual-image {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.how-we-work__models-item:nth-child(1) .how-we-work__model-visual-image {
  height: clamp(110px, 15vh, 160px);
}

.how-we-work__models-item:nth-child(2) .how-we-work__model-visual-image {
  height: clamp(120px, 16vh, 170px);
}

.how-we-work__models-item:nth-child(3) .how-we-work__model-visual-image {
  height: clamp(120px, 16vh, 170px);
}

.how-we-work__comparison {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.how-we-work__comparison-title {
  margin-bottom: clamp(6px, 0.8vh, 10px);
  font-size: clamp(0.82rem, 1.05vw, 0.92rem);
  font-weight: 700;
  color: #1a7cff;
  flex-shrink: 0;
}

.how-we-work__table-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(26, 124, 255, 0.14);
  border-radius: 16px;
  background: #ffffff;
}

.how-we-work__table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.how-we-work__table thead {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.how-we-work__table tbody {
  display: block;
  height: calc((100% - clamp(26px, 3.4vh, 31px)) * 0.85);
  overflow: hidden;
}

.how-we-work__table tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
  height: calc(100% / 9);
  cursor: default;
}

.how-we-work__table-feature,
.how-we-work__table-cell {
  transition: background-color 0.15s ease;
}

.how-we-work__table tbody tr:hover .how-we-work__table-feature,
.how-we-work__table tbody tr:hover .how-we-work__table-cell {
  background: #eef5ff;
}

.how-we-work__table-th {
  padding: clamp(7px, 0.94vh, 9px) clamp(10px, 1.2vw, 14px);
  font-size: clamp(0.68rem, 0.9vw, 0.78rem);
  font-weight: 700;
  text-align: left;
  color: #0b1f3a;
  background: #f3f7fc;
  border-bottom: 1px solid rgba(26, 124, 255, 0.1);
}

.how-we-work__table-th--feature {
  width: 26%;
}

.how-we-work__table-th:not(.how-we-work__table-th--feature) {
  width: calc(74% / 3);
}

.how-we-work__table-feature {
  width: 26%;
  padding: clamp(5px, 0.81vh, 9px) clamp(10px, 1.2vw, 14px);
  font-size: clamp(0.64rem, 0.86vw, 0.74rem);
  font-weight: 600;
  text-align: left;
  vertical-align: middle;
  color: #0b1f3a;
  background: #fafcff;
  border-bottom: 1px solid rgba(26, 124, 255, 0.08);
}

.how-we-work__table-feature-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(6px, 0.7vw, 8px);
  width: 100%;
  min-width: 0;
}

.how-we-work__table-feature-row > picture {
  display: block;
  flex: 0 0 auto;
  width: clamp(15px, 1.7vw, 19px);
  height: clamp(15px, 1.7vw, 19px);
  line-height: 0;
}

.how-we-work__table-feature-text {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.25;
  /* перенос только справа от иконки, не под ней */
  overflow-wrap: anywhere;
  word-break: normal;
}

.how-we-work__table-icon {
  display: block;
  flex: 0 0 auto;
  width: clamp(15px, 1.7vw, 19px);
  height: clamp(15px, 1.7vw, 19px);
  margin: 0;
  object-fit: contain;
}

.how-we-work__table-cell {
  width: calc(74% / 3);
  padding: clamp(5px, 0.81vh, 9px) clamp(10px, 1.2vw, 14px);
  font-size: clamp(0.62rem, 0.84vw, 0.72rem);
  line-height: 1.15;
  vertical-align: middle;
  color: #2a4060;
  border-bottom: 1px solid rgba(26, 124, 255, 0.08);
}

.how-we-work__table tbody tr:last-child .how-we-work__table-feature,
.how-we-work__table tbody tr:last-child .how-we-work__table-cell {
  border-bottom: none;
}

@media (max-width: 1024px) {
  #oem-odm {
    height: auto;
    max-height: none;
    padding: 56px 0 64px;
    overflow: visible;
    background: #ffffff;
  }

  #oem-odm > .container {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-left: 28px;
    padding-right: 28px;
    gap: 0;
  }

  #oem-odm .section-header {
    margin-bottom: 22px;
  }

  #oem-odm .section-header__title {
    font-size: clamp(1.45rem, 3.5vw, 1.85rem);
    line-height: 1.25;
  }

  #oem-odm .section-header__description {
    max-width: none;
    margin-top: 10px;
    font-size: 0.9375rem;
    line-height: 1.55;
  }

  .how-we-work__models {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 28px;
  }

  .how-we-work__model {
    height: auto;
    min-height: 0;
    padding: 0;
  }

  /* как у баннеров «О компании»: заголовок сверху, снизу текст | картинка */
  .how-we-work__model-header {
    margin: 0;
    padding: 14px 14px 6px;
  }

  .how-we-work__model-title {
    font-size: 1.40625rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .how-we-work__model-content {
    grid-template-columns: 38% 1fr;
    align-items: center;
    gap: 8px;
    height: auto;
    min-height: 148px;
    padding: 4px 12px 12px;
    overflow: visible;
  }

  /* ODM / Private Label — больше ширины под картинку */
  .how-we-work__models-item:nth-child(2) .how-we-work__model-content,
  .how-we-work__models-item:nth-child(3) .how-we-work__model-content {
    grid-template-columns: 30% 1fr;
  }

  .how-we-work__model-copy {
    flex: none;
    width: 100%;
    height: auto;
    padding-right: 0;
    justify-content: flex-start;
  }

  .how-we-work__model-text {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
  }

  .how-we-work__model-link {
    width: 40px;
    height: 40px;
    margin-top: 10px;
  }

  .how-we-work__model-visual {
    height: auto;
    align-self: center;
  }

  .how-we-work__models-item:nth-child(1) .how-we-work__model-visual-image {
    height: auto;
    width: 100%;
    max-width: 100%;
    max-height: 188px;
    object-fit: contain;
  }

  .how-we-work__models-item:nth-child(2) .how-we-work__model-visual-image,
  .how-we-work__models-item:nth-child(3) .how-we-work__model-visual-image {
    height: auto;
    width: 100%;
    max-width: 100%;
    max-height: 230px;
    object-fit: contain;
  }

  .how-we-work__comparison {
    flex: none;
    min-height: 0;
  }

  .how-we-work__comparison-title {
    margin-bottom: 12px;
    font-size: 1.0625rem;
  }

  .how-we-work__table-wrap {
    flex: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .how-we-work__table thead,
  .how-we-work__table tbody {
    display: table-header-group;
  }

  .how-we-work__table tbody {
    display: table-row-group;
    height: auto;
    overflow: visible;
  }

  .how-we-work__table tbody tr {
    display: table-row;
    height: auto;
  }

  .how-we-work__table {
    min-width: 680px;
    height: auto;
  }

  .how-we-work__table-th,
  .how-we-work__table-feature,
  .how-we-work__table-cell {
    font-size: 0.8125rem;
    line-height: 1.35;
    padding: 12px 12px;
  }

  .how-we-work__table tbody tr {
    display: table-row;
    height: auto;
  }

  .how-we-work__table-feature {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fafcff;
    box-shadow: 4px 0 10px rgba(15, 23, 42, 0.06);
    vertical-align: middle;
    /* одинаковый вертикальный ритм строк */
    min-height: 48px;
    box-sizing: border-box;
  }

  .how-we-work__table-feature-row {
    gap: 8px;
  }

  .how-we-work__table-feature-text {
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .how-we-work__table-th--feature {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #f3f7fc;
    box-shadow: 4px 0 10px rgba(15, 23, 42, 0.06);
  }

  .how-we-work__table-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
  }

  .how-we-work__table-cell {
    vertical-align: middle;
  }
}

@media (max-width: 640px) {
  #oem-odm {
    padding: 44px 0 52px;
  }

  #oem-odm > .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  #oem-odm .section-header__title {
    font-size: 1.375rem;
  }

  #oem-odm .section-header__description {
    font-size: 0.875rem;
  }

  .how-we-work__models {
    gap: 10px;
    margin-bottom: 22px;
  }

  .how-we-work__model-header {
    padding: 12px 12px 4px;
  }

  .how-we-work__model-title {
    font-size: 1.328125rem;
  }

  .how-we-work__model-content {
    grid-template-columns: 36% 1fr;
    gap: 6px;
    min-height: 140px;
    padding: 2px 10px 10px;
  }

  .how-we-work__models-item:nth-child(2) .how-we-work__model-content,
  .how-we-work__models-item:nth-child(3) .how-we-work__model-content {
    grid-template-columns: 28% 1fr;
  }

  .how-we-work__model-text {
    font-size: 0.875rem;
    line-height: 1.3;
  }

  .how-we-work__model-link {
    width: 36px;
    height: 36px;
    margin-top: 8px;
  }

  .how-we-work__models-item:nth-child(1) .how-we-work__model-visual-image {
    max-height: 168px;
  }

  .how-we-work__models-item:nth-child(2) .how-we-work__model-visual-image,
  .how-we-work__models-item:nth-child(3) .how-we-work__model-visual-image {
    max-height: 210px;
  }

  .how-we-work__comparison-title {
    font-size: 1rem;
  }

  .how-we-work__table {
    min-width: 620px;
  }

  .how-we-work__table-th,
  .how-we-work__table-feature,
  .how-we-work__table-cell {
    font-size: 0.75rem;
    padding: 9px 10px;
  }
}

/* ===== PRODUCT CATEGORIES ===== */

#products {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  padding: 30px 0 clamp(8px, 1.2vh, 14px);
  overflow: hidden;
  --product-categories-hero-height: min(30vh, calc(min(42vw, 580px) * 426 / 1006));
  background:
    radial-gradient(ellipse 70% 45% at 82% 4%, rgba(26, 124, 255, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 12% 88%, rgba(26, 124, 255, 0.05) 0%, transparent 60%),
    #ffffff;
}

.product-categories__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpath d='M30 2l26 15v30L30 62 4 47V17z' fill='none' stroke='%231a7cff' stroke-opacity='0.12' stroke-width='1'/%3E%3Cpath d='M90 28l26 15v30L90 88 64 73V43z' fill='none' stroke='%231a7cff' stroke-opacity='0.1' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 120px 104px;
  background-position: center;
  opacity: 1;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.95) 50%, rgba(0, 0, 0, 0.7) 100%);
}

#products > .container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.product-categories__hero-decor {
  position: absolute;
  top: 30px;
  right: max(40px, calc((100% - 1320px) / 2 + 40px));
  z-index: 0;
  display: block;
  width: min(42vw, 580px);
  height: auto;
  max-height: var(--product-categories-hero-height);
  object-fit: contain;
  object-position: top right;
  pointer-events: none;
}

.product-categories__head {
  display: flex;
  flex-shrink: 0;
  align-items: flex-start;
  min-height: var(--product-categories-hero-height);
}

.product-categories__intro {
  position: relative;
  flex-shrink: 0;
  width: min(46%, 520px);
  margin: 0;
  padding: 0;
  background: transparent;
}

.product-categories__intro-text {
  min-width: 0;
}

.product-categories__title {
  font-size: clamp(1.92rem, 3.075vw, 2.73rem);
  font-weight: 800;
  line-height: 1.06;
  color: #1a7cff;
  letter-spacing: -0.02em;
}

.product-categories__title-accent {
  color: #1a7cff;
}

#products .section-header__description {
  max-width: 42ch;
  margin-top: 6px;
  font-size: clamp(0.81rem, 1.09vw, 0.96rem);
  line-height: 1.4;
}

.product-categories__grid {
  position: relative;
  flex: 1 1 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 14px);
  min-height: 0;
  margin: 20px 0 0;
  list-style: none;
}

.product-categories__card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: clamp(9px, 1.15vh, 12px) clamp(9px, 1vw, 12px) 0;
  overflow: hidden;
  border: 1px solid rgba(26, 124, 255, 0.14);
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(26, 111, 212, 0.07);
}

.product-categories__card-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: clamp(6px, 0.8vw, 8px);
  row-gap: clamp(12px, 1.65vh, 18px);
  align-items: center;
  margin-bottom: clamp(39px, 5.85vh, 65px);
}

.product-categories__card-line {
  grid-column: 1;
  grid-row: 2;
  width: 80%;
  height: 2px;
  border-radius: 1px;
  background: #1a7cff;
}

.product-categories__card-icon {
  grid-column: 1;
  grid-row: 1;
  flex-shrink: 0;
  width: clamp(51px, 4.73vw, 68px);
  height: clamp(51px, 4.73vw, 68px);
  object-fit: contain;
}

.product-categories__card-title {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-size: clamp(0.94rem, 1.2vw, 1.12rem);
  font-weight: 700;
  line-height: 1.15;
  color: #0b1f3a;
}

.product-categories__card-list {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2px, 0.32vh, 3px);
  max-width: 58%;
  padding-left: 0;
  list-style: none;
}

.product-categories__card-list li {
  position: relative;
  padding-left: 12px;
  font-size: clamp(0.58rem, 0.76vw, 0.68rem);
  font-weight: 500;
  line-height: 1.28;
  color: #1a7cff;
}

.product-categories__card-list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: #1a7cff;
  transform: translateY(-50%);
}

.product-categories__card-visual {
  position: absolute;
  right: calc(-1 * clamp(9px, 1vw, 12px));
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: 58%;
  margin: 0;
  pointer-events: none;
}

.product-categories__card-visual-image {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom right;
  transform: scale(1.18);
  transform-origin: bottom right;
}

.product-categories__card-visual--eco {
  right: 0;
  left: 0;
  justify-content: center;
}

.product-categories__card-visual-image--eco {
  object-position: bottom center;
  transform: scale(1.08);
  transform-origin: bottom center;
}

.product-categories__card--eco .product-categories__card-list {
  max-width: 62%;
}

.product-categories__card-link {
  position: absolute;
  bottom: 7.5%;
  left: clamp(9px, 1vw, 12px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  font-family: inherit;
  font-size: clamp(0.75rem, 0.96vw, 0.88rem);
  font-weight: 600;
  color: #1a7cff;
  text-decoration: none;
  border: 1.5px solid rgba(26, 124, 255, 0.35);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-categories__card-link:hover {
  color: #ffffff;
  background: #1a7cff;
  border-color: #1a7cff;
  box-shadow: 0 4px 14px rgba(26, 124, 255, 0.3);
}

.product-categories__features {
  position: relative;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 12px);
  margin: 25px 0 0;
  padding: clamp(8px, 1.1vh, 12px) clamp(12px, 1.4vw, 18px);
  list-style: none;
  border: 1px solid rgba(26, 124, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(238, 245, 255, 0.96) 0%, rgba(232, 242, 255, 0.98) 100%);
  box-shadow: 0 4px 16px rgba(26, 111, 212, 0.06);
}

.product-categories__features-item {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.8vw, 8px);
  min-width: 0;
}

.product-categories__features-icon {
  flex-shrink: 0;
  width: clamp(32px, 2.9vw, 42px);
  height: clamp(32px, 2.9vw, 42px);
  object-fit: contain;
}

.product-categories__features-text {
  font-size: clamp(0.54rem, 0.7vw, 0.64rem);
  font-weight: 600;
  line-height: 1.22;
  color: #0b1f3a;
}

/* ===== Responsive: fluid desktop ===== */

@media (max-width: 1280px) {
  .product-categories__hero-decor {
    right: 40px;
    width: min(40vw, 500px);
    max-height: 28vh;
  }

  .product-categories__card-head {
    row-gap: clamp(12px, 1.65vh, 18px);
    margin-bottom: clamp(39px, 5.85vh, 65px);
  }

  .product-categories__card-icon {
    width: clamp(42px, 3.8vw, 56px);
    height: clamp(42px, 3.8vw, 56px);
  }

  .product-categories__card-visual-image {
    transform: scale(1.1);
  }

  .product-categories__card-visual-image--eco {
    transform: scale(1.02);
  }

  #oem-odm .section-header__title {
    font-size: clamp(1.22rem, 1.9vw, 1.65rem);
  }

  .how-we-work__model {
    height: clamp(136px, 21vh, 184px);
  }

  .about-company__stat-value {
    font-size: clamp(0.82rem, 1vw, 0.95rem);
  }
}

@media (max-width: 1024px) {
  /* после правила ≤1280 — на мобилке карточки по контенту */
  .how-we-work__model {
    height: auto;
  }

  #oem-odm .section-header__title {
    font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  }

  .about-company__stat-value {
    font-size: 1.125rem;
  }

  .about-company__stat--capacity .about-company__stat-value {
    font-size: 0.95rem;
  }
}

@media (max-width: 640px) {
  #oem-odm .section-header__title {
    font-size: 1.375rem;
  }

  .about-company__stat-value {
    font-size: 1rem;
  }

  .about-company__stat--capacity .about-company__stat-value {
    font-size: 0.875rem;
  }
}

@media (max-width: 1024px) {
  #products {
    height: auto;
    max-height: none;
    min-height: 0;
    padding: 56px 0 64px;
    overflow: visible;
  }

  #products > .container {
    height: auto;
    overflow: visible;
    gap: 22px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .product-categories__head {
    min-height: 0;
    align-items: flex-start;
  }

  .product-categories__hero-decor {
    display: none;
  }

  .product-categories__intro {
    width: 100%;
    max-width: 720px;
  }

  .product-categories__title {
    font-size: clamp(1.55rem, 4vw, 2rem);
    line-height: 1.15;
  }

  #products .section-header__description {
    max-width: none;
    margin-top: 10px;
    font-size: 0.9375rem;
    line-height: 1.55;
  }

  .product-categories__grid {
    margin: 0;
    flex: none;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* карточка: шапка → список|картинка → кнопка */
  .product-categories__card {
    display: grid;
    grid-template-columns: 32% 1fr;
    grid-template-areas:
      "head head"
      "list visual"
      "link link";
    align-items: start;
    column-gap: 6px;
    row-gap: 10px;
    height: auto;
    min-height: 0;
    padding: 14px 14px 12px;
    overflow: hidden;
  }

  .product-categories__card-head {
    grid-area: head;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 6px;
    margin-bottom: 0;
    padding-right: 0;
  }

  .product-categories__card-icon {
    width: 44px;
    height: 44px;
  }

  .product-categories__card-title {
    font-size: 1.125rem;
    line-height: 1.2;
  }

  .product-categories__card-line {
    width: 36px;
  }

  .product-categories__card-list {
    grid-area: list;
    position: relative;
    z-index: 1;
    flex: none;
    max-width: none;
    width: 100%;
    gap: 6px;
    align-self: center;
  }

  .product-categories__card-list li {
    font-size: 0.875rem;
    line-height: 1.3;
    padding-left: 12px;
  }

  .product-categories__card--eco .product-categories__card-list {
    max-width: none;
  }

  .product-categories__card-visual,
  .product-categories__card-visual--eco {
    grid-area: visual;
    position: relative;
    inset: auto;
    right: auto;
    left: auto;
    bottom: auto;
    height: auto;
    min-height: 180px;
    width: calc(100% + 14px);
    margin-right: -14px;
    justify-content: flex-end;
    align-items: center;
    align-self: center;
    padding: 0;
  }

  .product-categories__card-visual-image,
  .product-categories__card-visual-image--eco {
    width: auto;
    max-width: none;
    max-height: 240px;
    height: 240px;
    object-fit: contain;
    object-position: right center;
    transform: scale(1.12);
    transform-origin: right center;
  }

  .product-categories__card-link {
    grid-area: link;
    position: relative;
    bottom: auto;
    left: auto;
    justify-self: stretch;
    width: 100%;
    box-sizing: border-box;
    margin: 2px 0 0;
    padding: 10px 18px;
    font-size: 0.9375rem;
    min-height: 44px;
    justify-content: center;
  }

  .product-categories__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    margin-top: 4px;
    padding: 14px 16px;
  }

  .product-categories__features-text {
    font-size: 0.8125rem;
    line-height: 1.3;
  }

  .product-categories__features-icon {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 640px) {
  #products {
    padding: 44px 0 52px;
  }

  #products > .container {
    gap: 18px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .product-categories__title {
    font-size: 1.45rem;
  }

  #products .section-header__description {
    font-size: 0.875rem;
  }

  .product-categories__grid {
    gap: 12px;
  }

  .product-categories__card {
    grid-template-columns: 32% 1fr;
    column-gap: 4px;
    row-gap: 8px;
    padding: 12px 12px 10px;
    overflow: hidden;
  }

  .product-categories__card-icon {
    width: 40px;
    height: 40px;
  }

  .product-categories__card-title {
    font-size: 1.05rem;
  }

  .product-categories__card-list li {
    font-size: 0.8125rem;
  }

  .product-categories__card-visual,
  .product-categories__card-visual--eco {
    min-height: 170px;
    width: calc(100% + 12px);
    margin-right: -12px;
    justify-content: flex-end;
  }

  .product-categories__card-visual-image,
  .product-categories__card-visual-image--eco {
    max-height: 220px;
    height: 220px;
    max-width: none;
    width: auto;
    object-position: right center;
    transform: scale(1.15);
    transform-origin: right center;
  }

  .product-categories__card-link {
    margin: 2px 0 0;
    padding: 9px 16px;
    font-size: 0.875rem;
    width: 100%;
    justify-self: stretch;
    justify-content: center;
  }

  .product-categories__features {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 14px;
  }

  .product-categories__features-item {
    gap: 10px;
  }

  .product-categories__features-text {
    font-size: 0.875rem;
  }

  .product-categories__features-text br {
    display: none;
  }
}

/* ===== PRODUCTION ===== */

#production {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  padding: 30px 0 clamp(8px, 1.2vh, 14px);
  overflow: visible;
  background-color: #ffffff;
}

.production__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpath d='M30 2l26 15v30L30 62 4 47V17z' fill='none' stroke='%231a7cff' stroke-opacity='0.08' stroke-width='1'/%3E%3Cpath d='M90 28l26 15v30L90 88 64 73V43z' fill='none' stroke='%231a7cff' stroke-opacity='0.06' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 120px 104px;
  opacity: 0.85;
}

.production__hero-decor {
  position: absolute;
  top: -30px;
  left: 40px;
  z-index: 0;
  display: block;
  width: 100%;
  max-width: min(42vw, 560px);
  height: auto;
  max-height: min(34vh, 280px);
  margin: 0;
  object-fit: contain;
  object-position: top center;
  pointer-events: none;
  transform: scale(1.44);
  transform-origin: top center;
}

.production__hero-spacer {
  position: relative;
  min-width: 0;
  min-height: min(34vh, 280px);
  pointer-events: none;
}

#production > .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: visible;
}

.production__head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.95fr) auto;
  gap: clamp(12px, 1.6vw, 24px);
  align-items: start;
  flex-shrink: 0;
  min-height: 0;
}

.production__intro {
  position: relative;
  z-index: 6;
  max-width: 480px;
  padding-top: 0;
}

#production .section-header__label {
  margin-bottom: 12px;
  padding: 6px 16px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #1a7cff;
  border: 1.5px solid rgba(26, 124, 255, 0.45);
  border-radius: 8px;
  background: #ffffff;
}

.production__title {
  font-size: clamp(1.92rem, 3.075vw, 2.73rem);
  font-weight: 800;
  line-height: 1.06;
  color: #0b1f3a;
  letter-spacing: -0.02em;
}

.production__title-accent {
  display: block;
  color: #1a7cff;
  font-size: 1.06em;
}

.production__description {
  max-width: 42ch;
  margin-top: 10px;
  font-size: clamp(0.81rem, 1.09vw, 0.96rem);
  font-weight: 500;
  line-height: 1.4;
  color: #0b1f3a;
}

.production__badges {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: clamp(8px, 1.1vh, 12px);
  margin: calc(clamp(12px, 2vh, 28px) - 52px) 0 0;
  width: max-content;
  max-width: 100%;
  padding: 0;
  list-style: none;
  justify-self: end;
  transform: scale(0.92) translateX(-12%);
  transform-origin: bottom right;
}

.production__badge {
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  padding: 11px 14px 11px 9px;
  border: 1px solid rgba(26, 124, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 18px rgba(26, 111, 212, 0.08);
  backdrop-filter: blur(6px);
}

.production__badge-icon {
  flex-shrink: 0;
  width: clamp(41px, 3.7vw, 53px);
  height: clamp(41px, 3.7vw, 53px);
  object-fit: contain;
}

.production__badge-text {
  flex: 0 0 auto;
  font-size: clamp(0.83rem, 1.06vw, 0.97rem);
  font-weight: 600;
  line-height: 1.25;
  color: #0b1f3a;
  white-space: nowrap;
}

.production__grid {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 1fr;
  gap: clamp(12px, 1.4vw, 18px);
  flex: 1 1 0;
  min-height: 0;
  margin: 20px 0 0;
  list-style: none;
  align-items: stretch;
  overflow: visible;
}

.production__grid-item {
  position: relative;
  min-height: 0;
  height: 100%;
}

.production__card {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  height: 114%;
  min-height: 0;
  padding: clamp(12px, 1.4vh, 16px) clamp(12px, 1.2vw, 16px) 0;
  overflow: hidden;
  border: 1px solid rgba(26, 124, 255, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 90% 70% at 78% 88%, rgba(26, 124, 255, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 18% 12%, rgba(180, 220, 255, 0.55) 0%, transparent 60%),
    linear-gradient(165deg, #f4f9ff 0%, #eef5ff 42%, #f8fbff 100%);
  box-shadow:
    0 8px 24px rgba(26, 111, 212, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.production__card-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: clamp(6px, 0.8vw, 8px);
  row-gap: clamp(12px, 1.65vh, 18px);
  align-items: center;
  margin-bottom: clamp(39px, 5.85vh, 65px);
}

.production__card-line {
  grid-column: 1;
  grid-row: 2;
  width: 80%;
  height: 2px;
  border-radius: 1px;
  background: #1a7cff;
}

.production__card-icon {
  grid-column: 1;
  grid-row: 1;
  flex-shrink: 0;
  width: clamp(42px, 3.8vw, 56px);
  height: clamp(42px, 3.8vw, 56px);
  object-fit: contain;
}

.production__card-title {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-size: clamp(1.3rem, 1.755vw, 1.56rem);
  font-weight: 700;
  line-height: 1.15;
  color: #0b1f3a;
}

.production__card-list {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  align-items: flex-start;
  gap: clamp(2px, 0.4vh, 4px);
  width: auto;
  max-width: none;
  margin: 0;
  margin-right: auto;
  padding: 0;
  list-style: none;
  text-align: left;
}

.production__card-list--volumes {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  gap: clamp(2px, 0.4vh, 4px);
  max-width: none;
  justify-items: start;
}

.production__card-list li {
  position: relative;
  width: auto;
  padding-left: 12px;
  font-size: clamp(0.68rem, 0.88vw, 0.8rem);
  font-weight: 500;
  line-height: 1.3;
  color: #000000;
  text-align: left;
}

.production__card-list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #1a7cff;
  transform: translateY(-50%);
}

.production__card-visual {
  position: absolute;
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 72%;
  height: 58%;
  margin: 0;
  pointer-events: none;
}

.production__card-visual-image {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom right;
  transform: scale(1.22);
  transform-origin: bottom right;
}

.production__features {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 12px);
  flex-shrink: 0;
  margin: 25px 0 0;
  padding: clamp(8px, 1.1vh, 12px) clamp(12px, 1.4vw, 18px);
  list-style: none;
  border: 1px solid rgba(26, 124, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(238, 245, 255, 0.96) 0%, rgba(232, 242, 255, 0.98) 100%);
  box-shadow: 0 4px 16px rgba(26, 111, 212, 0.06);
}

.production__features-item {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.8vw, 8px);
  min-width: 0;
}

.production__features-icon {
  flex-shrink: 0;
  width: clamp(32px, 2.9vw, 42px);
  height: clamp(32px, 2.9vw, 42px);
  object-fit: contain;
}

.production__features-text {
  font-size: clamp(0.54rem, 0.7vw, 0.64rem);
  font-weight: 600;
  line-height: 1.22;
  color: #0b1f3a;
}

@media (max-width: 1280px) {
  .production__hero-decor {
    width: min(38vw, 420px);
    max-height: min(30vh, 240px);
  }

  .production__head {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 0.85fr) auto;
  }
}

@media (max-width: 1024px) {
  #production {
    height: auto;
    max-height: none;
    padding: 56px 0 64px;
    overflow: visible;
  }

  #production > .container {
    height: auto;
    overflow: visible;
    gap: 16px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .production__hero-decor,
  .production__hero-spacer {
    display: none;
  }

  .production__head {
    grid-template-columns: 1fr;
    gap: 16px; /* = gap контейнера до карточек ниже */
  }

  .production__intro {
    max-width: none;
  }

  .production__title {
    font-size: clamp(1.55rem, 4vw, 2rem);
    line-height: 1.15;
  }

  .production__title-accent {
    display: inline;
  }

  .production__description {
    max-width: none;
    margin-top: 10px;
    font-size: 0.9375rem;
    line-height: 1.55;
  }

  /* бейджи: три равных квадрата, контент по центру */
  .production__badges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-self: stretch;
    transform: none;
    align-items: stretch;
  }

  .production__badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    height: auto;
    margin: 0;
    padding: 8px 5px;
    text-align: center;
    border: 1px solid rgba(26, 124, 255, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(26, 111, 212, 0.08);
    overflow: hidden;
  }

  .production__badge > picture {
    display: block;
    flex-shrink: 0;
    line-height: 0;
  }

  .production__badge-icon {
    display: block;
    width: 62px;
    height: 62px;
    object-fit: contain;
  }

  .production__badge-text {
    display: block;
    flex: 0 1 auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    white-space: normal;
    font-size: 0.84375rem;
    font-weight: 600;
    line-height: 1.15;
    color: #0b1f3a;
    text-align: center;
  }

  .production__grid {
    margin: 0;
    flex: none;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 14px;
  }

  .production__grid-item {
    height: auto;
  }

  /* карточка: шапка → список|картинка (как у категорий) */
  .production__card {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: 38% 1fr;
    grid-template-areas:
      "head head"
      "list visual";
    align-items: center;
    column-gap: 8px;
    row-gap: 10px;
    height: auto;
    min-height: 0;
    padding: 14px 0 12px 14px;
    overflow: hidden;
  }

  .production__card-head {
    grid-area: head;
    margin-bottom: 0;
    padding-right: 14px;
    column-gap: 10px;
    row-gap: 6px;
  }

  .production__card-icon {
    width: 44px;
    height: 44px;
  }

  .production__card-title {
    font-size: 1.125rem;
    line-height: 1.2;
  }

  .production__card-line {
    width: 36px;
  }

  .production__card-list,
  .production__card-list--volumes {
    grid-area: list;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    gap: 6px;
    align-self: center;
    margin: 0;
  }

  .production__card-list li {
    font-size: 0.875rem;
    line-height: 1.3;
  }

  /* объёмы фасовки — плотная сетка, меньше скролла */
  .production__card-list--volumes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 6px;
  }

  .production__card-list--volumes li {
    font-size: 0.8125rem;
  }

  .production__card-visual {
    grid-area: visual;
    position: relative;
    inset: auto;
    right: auto;
    left: auto;
    bottom: auto;
    width: calc(100% + 14px);
    height: auto;
    min-height: 160px;
    margin: 0 -14px 0 0;
    justify-content: flex-end;
    align-items: center;
    align-self: center;
  }

  .production__card-visual-image {
    width: auto;
    max-width: none;
    max-height: 220px;
    height: 220px;
    object-fit: contain;
    object-position: right center;
    transform: scale(1.1);
    transform-origin: right center;
  }

  .production__features {
    margin-top: 0;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 16px;
  }

  .production__features-item {
    gap: 10px;
  }

  .production__features-icon {
    width: 36px;
    height: 36px;
  }

  .production__features-text {
    font-size: 0.875rem;
    line-height: 1.3;
  }
}

@media (max-width: 640px) {
  #production {
    padding: 44px 0 52px;
  }

  #production > .container {
    gap: 14px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .production__title {
    font-size: 1.45rem;
  }

  .production__description {
    font-size: 0.875rem;
  }

  .production__head {
    gap: 14px; /* = gap контейнера до карточек ниже */
  }

  .production__badges {
    gap: 8px;
  }

  .production__badge {
    padding: 6px 4px;
    gap: 4px;
    border-radius: 12px;
  }

  .production__badge-icon {
    width: 55px;
    height: 55px;
  }

  .production__badge-text {
    font-size: 0.75rem;
    line-height: 1.12;
    white-space: normal;
  }

  .production__grid {
    gap: 12px;
  }

  .production__card {
    grid-template-columns: 34% 1fr;
    column-gap: 4px;
    row-gap: 8px;
    padding: 12px 0 10px 12px;
  }

  .production__card-head {
    padding-right: 12px;
  }

  .production__card-icon {
    width: 40px;
    height: 40px;
  }

  .production__card-title {
    font-size: 1.05rem;
  }

  .production__card-list li {
    font-size: 0.8125rem;
  }

  .production__card-list--volumes li {
    font-size: 0.75rem;
  }

  .production__card-visual {
    min-height: 150px;
    width: calc(100% + 12px);
    margin-right: -12px;
  }

  .production__card-visual-image {
    max-height: 200px;
    height: 200px;
    transform: scale(1.12);
  }

  .production__features {
    padding: 12px 14px;
  }
}

/* ===== PROJECT CYCLE ===== */

#workflow {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  padding: 28px 0 clamp(8px, 1.2vh, 14px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 40% at 88% 8%, rgba(26, 124, 255, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 35% at 10% 90%, rgba(26, 124, 255, 0.05) 0%, transparent 60%),
    #ffffff;
}

.project-cycle__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpath d='M30 2l26 15v30L30 62 4 47V17z' fill='none' stroke='%231a7cff' stroke-opacity='0.08' stroke-width='1'/%3E%3Cpath d='M90 28l26 15v30L90 88 64 73V43z' fill='none' stroke='%231a7cff' stroke-opacity='0.06' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 120px 104px;
  opacity: 0.9;
}

#workflow > .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.project-cycle__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(16px, 2.5vw, 32px);
  flex-shrink: 0;
}

.project-cycle__intro {
  max-width: 560px;
}

#workflow .section-header__label {
  margin-bottom: 12px;
  padding: 6px 16px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #1a7cff;
  border: 1.5px solid rgba(26, 124, 255, 0.45);
  border-radius: 8px;
  background: #ffffff;
}

.project-cycle__title {
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 800;
  line-height: 1.08;
  color: #0b1f3a;
  letter-spacing: -0.02em;
}

.project-cycle__title-accent {
  color: #1a7cff;
}

.project-cycle__description {
  max-width: 46ch;
  margin-top: 10px;
  font-size: clamp(0.8rem, 1.05vw, 0.95rem);
  font-weight: 500;
  line-height: 1.4;
  color: #0b1f3a;
}

.project-cycle__info {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 380px;
  padding: 14px 18px 14px 14px;
  border: 1px solid rgba(26, 124, 255, 0.14);
  border-radius: 16px;
  background: linear-gradient(165deg, #f7faff 0%, #eef5ff 100%);
  box-shadow: 0 6px 18px rgba(26, 111, 212, 0.07);
}

.project-cycle__info-icon {
  flex-shrink: 0;
  width: clamp(44px, 4vw, 56px);
  height: clamp(44px, 4vw, 56px);
  object-fit: contain;
}

.project-cycle__info-title {
  display: block;
  font-size: clamp(0.78rem, 0.95vw, 0.9rem);
  font-weight: 700;
  line-height: 1.25;
  color: #0b1f3a;
}

.project-cycle__info-desc {
  margin-top: 4px;
  font-size: clamp(0.65rem, 0.8vw, 0.75rem);
  line-height: 1.35;
  color: #2a4060;
}

.project-cycle__flow {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  margin-top: clamp(12px, 1.8vh, 20px);
  gap: var(--pc-flow-gap);
  overflow: visible;
  --pc-bubble: clamp(151px, 18.46vh, 229px);
  --pc-gap: clamp(8px, 1.2vw, 16px);
  --pc-flow-gap: clamp(6px, 1vh, 12px);
  --pc-hook-h: clamp(100px, 16vh, 168px);
  --pc-hook-base: calc(50% + var(--pc-bubble) * 0.55 - 55px);
  --pc-turn-h: clamp(24px, 3vh, 40px);
}

.project-cycle__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--pc-gap);
  flex: 1 1 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: visible;
  position: relative;
}

.project-cycle__step-wrap {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  z-index: 1;
}

.project-cycle__step-wrap:nth-child(1) { grid-column: 1; grid-row: 1; }
.project-cycle__step-wrap:nth-child(3) { grid-column: 2; grid-row: 1; }
.project-cycle__step-wrap:nth-child(5) { grid-column: 3; grid-row: 1; }
.project-cycle__step-wrap:nth-child(7) { grid-column: 4; grid-row: 1; }

.project-cycle__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 50%;
  min-height: 0;
  padding: clamp(8px, 1vh, 12px) clamp(8px, 0.9vw, 12px) clamp(8px, 1vh, 12px);
  overflow: visible;
  text-align: center;
  border: 1px solid rgba(26, 124, 255, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 80% 55% at 50% 28%, rgba(26, 124, 255, 0.1) 0%, transparent 60%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 55%, #f4f8ff 100%);
  box-shadow:
    0 8px 22px rgba(26, 111, 212, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.project-cycle__step-visual {
  position: relative;
  z-index: 1;
  width: var(--pc-bubble);
  height: var(--pc-bubble);
  margin: calc(-0.42 * var(--pc-bubble) - 60px) 0 clamp(4px, 0.5vh, 8px);
  flex-shrink: 0;
}

.project-cycle__step-num {
  position: absolute;
  top: 6%;
  left: 4%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(22px, 2vw, 28px);
  height: clamp(22px, 2vw, 28px);
  font-size: clamp(0.7rem, 0.85vw, 0.85rem);
  font-weight: 700;
  color: #ffffff;
  border-radius: 50%;
  background: #1a7cff;
  box-shadow: 0 4px 10px rgba(26, 124, 255, 0.35);
}

.project-cycle__step-icon {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}

.project-cycle__step-title {
  margin: 0;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 700;
  line-height: 1.2;
  color: #0b1f3a;
}

.project-cycle__step-text {
  margin: 6px 0 0;
  font-size: clamp(0.58rem, 0.72vw, 0.7rem);
  font-weight: 500;
  line-height: 1.3;
  color: #2a4060;
}

/* Connectors sit at bubble level; end orbs touch bubble edges */
.project-cycle__arrow {
  position: absolute;
  top: auto;
  bottom: calc(50% + var(--pc-bubble) * 0.55 - 55px);
  z-index: 6;
  display: block;
  width: calc((100% + var(--pc-gap)) / 4 - var(--pc-bubble));
  min-width: 48px;
  height: auto;
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Grid-gap-aware centers between the 4 columns */
.project-cycle__arrow:nth-child(2) { left: calc(25% - var(--pc-gap) / 4); }
.project-cycle__arrow:nth-child(4) { left: 50%; }
.project-cycle__arrow:nth-child(6) { left: calc(75% + var(--pc-gap) / 4); }

.project-cycle__arrow img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
}

.project-cycle__turn {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: var(--pc-turn-h);
  margin: 0;
  padding: 0;
  pointer-events: none;
  overflow: visible;
}

/* Top / bottom row wrappers */
.project-cycle__top,
.project-cycle__bottom {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.project-cycle__top .project-cycle__row,
.project-cycle__bottom .project-cycle__row {
  flex: 1 1 0;
  height: 100%;
}

/* Mid strip — img needs explicit width (left+right alone keeps intrinsic ~227px) */
.project-cycle__turn-mid {
  position: absolute;
  left: calc(12% - 3px);
  /* end near right hook inner side; nudge length via this inset */
  --pc-mid-right: calc((100% - 3 * var(--pc-gap)) / 8 - var(--pc-bubble) * 0.18 - 155px + 48px);
  right: auto;
  bottom: calc(var(--pc-hook-base) + var(--pc-hook-h) - 16.1px);
  z-index: 2;
  width: calc(100% - (12% - 3px) - var(--pc-mid-right));
  max-width: none;
  height: 12px;
  margin: 0;
  padding: 0;
  object-fit: fill;
  object-position: center;
  pointer-events: none;
}

.project-cycle__turn-hook {
  position: absolute;
  z-index: 4;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  object-fit: contain;
  pointer-events: none;
}

/* Left: tip at bottom-row dividers */
.project-cycle__turn-hook--left {
  left: 1.5%;
  bottom: var(--pc-hook-base);
  height: var(--pc-hook-h);
  object-position: left bottom;
}

/* Right: top end into step-4 bubble, right side, vertical middle */
.project-cycle__turn-hook--right {
  /* tip into right half of column-4 bubble */
  right: calc((100% - 3 * var(--pc-gap)) / 8 - var(--pc-bubble) * 0.18 - 155px);
  left: auto;
  /* vertical middle of top-row bubbles */
  top: calc(50% - 0.55 * var(--pc-bubble) + 55px - 25px);
  /* stretch down to mid-line level */
  height: calc(
    100% + var(--pc-turn-h) + var(--pc-flow-gap)
    - var(--pc-hook-h) + 16.1px + 25px
  );
  object-position: right top;
  transform: scale(1.1);
  transform-origin: right top;
}

.project-cycle__features {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 12px);
  flex-shrink: 0;
  margin: clamp(10px, 1.5vh, 18px) 0 0;
  padding: clamp(8px, 1.1vh, 12px) clamp(12px, 1.4vw, 18px);
  list-style: none;
  border: 1px solid rgba(26, 124, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(238, 245, 255, 0.96) 0%, rgba(232, 242, 255, 0.98) 100%);
  box-shadow: 0 4px 16px rgba(26, 111, 212, 0.06);
}

.project-cycle__features-item {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.8vw, 10px);
  min-width: 0;
}

.project-cycle__features-icon {
  flex-shrink: 0;
  width: clamp(32px, 2.9vw, 42px);
  height: clamp(32px, 2.9vw, 42px);
  padding: 4px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(26, 124, 255, 0.1);
}

.project-cycle__features-text {
  font-size: clamp(0.54rem, 0.7vw, 0.64rem);
  font-weight: 600;
  line-height: 1.22;
  color: #0b1f3a;
}

@media (max-width: 1024px) {
  #workflow {
    height: auto;
    max-height: none;
    padding: 56px 0 64px;
    overflow: visible;
  }

  #workflow > .container {
    height: auto;
    gap: 20px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .project-cycle__head {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .project-cycle__intro {
    max-width: none;
  }

  .project-cycle__title {
    font-size: clamp(1.55rem, 4vw, 2rem);
    line-height: 1.15;
  }

  .project-cycle__description {
    max-width: none;
    margin-top: 10px;
    font-size: 0.9375rem;
    line-height: 1.55;
  }

  .project-cycle__info {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    gap: 12px;
  }

  .project-cycle__info-icon {
    width: 44px;
    height: 44px;
  }

  .project-cycle__info-title {
    font-size: 0.9375rem;
  }

  .project-cycle__info-desc {
    font-size: 0.8125rem;
  }

  /* зигзаг: пузырь ↔ плашка, экономия места */
  .project-cycle__flow {
    display: flex;
    flex-direction: column;
    flex: none;
    gap: 0;
    margin-top: 4px;
    --pc-bubble: 108px;
    --pc-gap: 0;
    --pc-flow-gap: 0;
    --pc-hook-h: 0;
    --pc-turn-h: 0;
  }

  .project-cycle__top,
  .project-cycle__bottom {
    flex: none;
    display: contents;
  }

  .project-cycle__top .project-cycle__row,
  .project-cycle__bottom .project-cycle__row {
    display: flex;
    flex-direction: column;
    flex: none;
    height: auto;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .project-cycle__row {
    grid-template-columns: none;
  }

  .project-cycle__step-wrap:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .project-cycle__step-wrap {
    display: block;
    height: auto;
    min-height: 0;
    align-items: stretch;
  }

  .project-cycle__arrow,
  .project-cycle__turn,
  .project-cycle__turn-hook,
  .project-cycle__turn-mid,
  .project-cycle__turn-hook--right,
  .project-cycle__turn-hook--left {
    display: none !important;
  }

  /* базовая карточка-шаг: пузырь + текст внутри квадрата-плашки */
  .project-cycle__step {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    text-align: left;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  /* квадрат ЗА текстом — текст внутри плашки */
  .project-cycle__step-copy {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(26, 124, 255, 0.22);
    background:
      linear-gradient(145deg, #ffffff 0%, #eef5ff 55%, #e6f0ff 100%);
    box-shadow:
      0 10px 26px rgba(26, 111, 212, 0.12),
      0 2px 6px rgba(26, 111, 212, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }

  /* нечётные 1,3,5,7: пузырь слева */
  .project-cycle__step-wrap:nth-child(1) .project-cycle__step,
  .project-cycle__step-wrap:nth-child(5) .project-cycle__step {
    flex-direction: row;
  }

  .project-cycle__step-wrap:nth-child(1) .project-cycle__step-copy,
  .project-cycle__step-wrap:nth-child(5) .project-cycle__step-copy {
    border-left: 3px solid #1a7cff;
  }

  /* чётные 2,4,6,8: пузырь справа */
  .project-cycle__step-wrap:nth-child(3) .project-cycle__step,
  .project-cycle__step-wrap:nth-child(7) .project-cycle__step {
    flex-direction: row-reverse;
    text-align: right;
  }

  .project-cycle__step-wrap:nth-child(3) .project-cycle__step-copy,
  .project-cycle__step-wrap:nth-child(7) .project-cycle__step-copy {
    border-right: 3px solid #1a7cff;
  }

  .project-cycle__step-wrap:nth-child(3) .project-cycle__step-num,
  .project-cycle__step-wrap:nth-child(7) .project-cycle__step-num {
    left: auto;
    right: -4px;
  }

  .project-cycle__step-visual {
    position: relative;
    width: var(--pc-bubble);
    height: var(--pc-bubble);
    margin: 0;
    flex-shrink: 0;
    filter: drop-shadow(0 8px 16px rgba(26, 111, 212, 0.18));
  }

  .project-cycle__step-num {
    top: -2px;
    left: -2px;
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }

  .project-cycle__step-icon {
    width: 100%;
    height: 100%;
  }

  .project-cycle__step-title {
    margin: 0;
    padding: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0b1f3a;
  }

  .project-cycle__step-text {
    margin: 6px 0 0;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    color: #2a4060;
  }

  /* стильные S-соединители между шагами */
  .project-cycle__step-wrap:not(:last-child)::after {
    content: "";
    display: block;
    height: 28px;
    margin: 2px 0 8px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 56% 100%;
  }

  /* после пузыря слева → дуга вправо */
  .project-cycle__step-wrap:nth-child(1):not(:last-child)::after,
  .project-cycle__step-wrap:nth-child(5):not(:last-child)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 28' fill='none'%3E%3Cpath d='M36 2C36 2 36 14 80 14C124 14 124 26 124 26' stroke='%231a7cff' stroke-width='2' stroke-linecap='round' stroke-opacity='0.45'/%3E%3Ccircle cx='124' cy='26' r='3.5' fill='%231a7cff' fill-opacity='0.55'/%3E%3C/svg%3E");
    background-position: left 18% center;
  }

  /* после пузыря справа → дуга влево */
  .project-cycle__step-wrap:nth-child(3):not(:last-child)::after,
  .project-cycle__step-wrap:nth-child(7):not(:last-child)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 28' fill='none'%3E%3Cpath d='M124 2C124 2 124 14 80 14C36 14 36 26 36 26' stroke='%231a7cff' stroke-width='2' stroke-linecap='round' stroke-opacity='0.45'/%3E%3Ccircle cx='36' cy='26' r='3.5' fill='%231a7cff' fill-opacity='0.55'/%3E%3C/svg%3E");
    background-position: right 18% center;
  }

  .project-cycle__features {
    margin-top: 10px;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 16px;
  }

  .project-cycle__features-item {
    gap: 12px;
  }

  .project-cycle__features-icon {
    width: 40px;
    height: 40px;
  }

  .project-cycle__features-text {
    font-size: 0.875rem;
    line-height: 1.3;
  }
}

@media (max-width: 640px) {
  #workflow {
    padding: 44px 0 52px;
  }

  #workflow > .container {
    gap: 16px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .project-cycle__title {
    font-size: 1.45rem;
  }

  .project-cycle__description {
    font-size: 0.875rem;
  }

  .project-cycle__info {
    padding: 12px;
  }

  .project-cycle__info-title {
    font-size: 0.875rem;
  }

  .project-cycle__info-desc {
    font-size: 0.75rem;
  }

  .project-cycle__flow {
    --pc-bubble: 96px;
  }

  .project-cycle__step {
    gap: 10px;
  }

  .project-cycle__step-copy {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .project-cycle__step-num {
    width: 22px;
    height: 22px;
    font-size: 0.6875rem;
  }

  .project-cycle__step-title {
    font-size: 0.9375rem;
  }

  .project-cycle__step-text {
    font-size: 0.75rem;
  }

  .project-cycle__step-wrap:not(:last-child)::after {
    height: 24px;
    margin-bottom: 6px;
    background-size: 62% 100%;
  }

  .project-cycle__features {
    padding: 12px 14px;
  }
}

/* ===== RECIPE DEVELOPMENT (блок 7) ===== */

#recipe {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  /* без вертикального padding — иначе белые полосы; отступы у контента ниже */
  padding: 0;
  overflow: visible;
  background-color: #f4f9ff;
  background-image:
    radial-gradient(ellipse 75% 95% at 88% 42%, rgba(80, 170, 255, 0.18) 0%, transparent 58%),
    radial-gradient(ellipse 55% 70% at 70% 70%, rgba(26, 124, 255, 0.1) 0%, transparent 62%),
    radial-gradient(ellipse 40% 55% at 92% 18%, rgba(160, 215, 255, 0.14) 0%, transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpath d='M30 2l26 15v30L30 62 4 47V17z' fill='none' stroke='%231a7cff' stroke-opacity='0.06' stroke-width='1'/%3E%3Cpath d='M90 28l26 15v30L90 88 64 73V43z' fill='none' stroke='%231a7cff' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E"),
    url("../images/recipe-development/visual.png?v=6");
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, no-repeat;
  background-position: 88% 42%, 70% 70%, 92% 18%, 0 0, center center;
  /* cover = без пробелов сверху/снизу на всю секцию 100vh */
  background-size: 90% 110%, 70% 90%, 50% 70%, 120px 104px, cover;
}

#recipe > .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 1.8vh, 20px);
  height: 100%;
  min-height: 0;
  overflow: visible;
  padding-top: clamp(28px, 3.2vh, 40px);
  padding-bottom: clamp(28px, 3.2vh, 40px);
  background: transparent;
}

/* Decorative lab layer — unused */
.recipe-development__visual {
  display: none;
}

.recipe-development__main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(10px, 1.4vh, 16px);
  width: min(100%, 540px);
  max-width: 48%;
  min-width: 280px;
  min-height: 0;
  max-height: 100%;
}

.recipe-development__header {
  max-width: none;
  margin-bottom: 0;
  flex-shrink: 0;
}

#recipe .section-header__label {
  margin-bottom: 10px;
  padding: 6px 16px;
  font-size: 0.72rem;
}

.recipe-development__title {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  line-height: 1.08;
}

#recipe .section-header__description {
  margin-top: 10px;
  max-width: 34em;
  font-size: clamp(0.85rem, 1.1vw, 0.98rem);
  line-height: 1.45;
}

.recipe-development__steps {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  gap: clamp(8px, 1.1vh, 12px);
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 0;
}

.recipe-development__step {
  margin: 0;
  padding: 0;
  flex-shrink: 1;
  list-style: none;
}

.recipe-development__step-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: clamp(48px, 6.2vh, 64px);
  margin: 0;
  padding: 8px 18px 8px 10px;
  border: 1px solid rgba(26, 124, 255, 0.12);
  border-radius: 16px 0 16px 16px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow:
    0 6px 18px rgba(26, 111, 212, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  clip-path: polygon(
    0 0,
    calc(100% - 22px) 0,
    100% 22px,
    100% 100%,
    0 100%
  );
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.recipe-development__step-btn:hover,
.recipe-development__step-btn:focus-visible {
  border-color: rgba(26, 124, 255, 0.28);
  box-shadow:
    0 8px 22px rgba(26, 111, 212, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateX(3px);
  outline: none;
}

.recipe-development__step-icon {
  flex-shrink: 0;
  width: clamp(42px, 5vh, 52px);
  height: clamp(42px, 5vh, 52px);
  object-fit: contain;
}

.recipe-development__step-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(0.95rem, 1.25vw, 1.12rem);
  font-weight: 600;
  line-height: 1.25;
  color: #0b1f3a;
}

.recipe-development__step-teaser {
  display: none;
}

.recipe-development__step-arrow {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 2.5px solid #1a7cff;
  border-bottom: 2.5px solid #1a7cff;
  transform: rotate(-45deg);
  opacity: 0.85;
}

/* Result wrap — icon outside clip-path so it can overflow the bar */
.recipe-development__result-wrap {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  width: min(calc(100% - 150px), 980px);
  max-width: 100%;
  margin: 40px 0 32px;
  transform: translateY(40px);
  overflow: visible;
}

.recipe-development__result {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  height: clamp(72px, 8.5vh, 86px);
  min-height: clamp(72px, 8.5vh, 86px);
  padding: 0 32px 0 137px;
  overflow: visible;
  border: 1.5px solid rgba(170, 205, 255, 0.7);
  border-radius: 18px 0 18px 18px;
  background: rgba(236, 245, 255, 0.92);
  box-shadow:
    0 12px 30px rgba(26, 111, 212, 0.14),
    0 0 24px rgba(100, 180, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  clip-path: polygon(
    0 0,
    calc(100% - 22px) 0,
    100% 22px,
    100% 100%,
    0 100%
  );
}

.recipe-development__result-icon {
  position: absolute;
  left: 6px;
  top: 50%;
  z-index: 8;
  display: block;
  width: clamp(112px, 13vh, 130px);
  height: clamp(112px, 13vh, 130px);
  margin: 0;
  object-fit: contain;
  transform: translateY(-50%);
  filter: drop-shadow(0 10px 22px rgba(26, 124, 255, 0.45));
  pointer-events: none;
}

.recipe-development__result-label {
  display: block;
  flex-shrink: 0;
  font-size: clamp(1.12rem, 1.4vw, 1.28rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #1a7cff;
}

.recipe-development__result-divider {
  display: block;
  flex-shrink: 0;
  width: 1px;
  height: 40px;
  background: rgba(26, 124, 255, 0.28);
}

.recipe-development__result-text {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 12px;
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  font-weight: 500;
  line-height: 1.35;
  color: #0b1f3a;
}

.recipe-development__result-next {
  display: none;
}

@media (max-width: 1024px) {
  /*
   * Этап 7 — «Карусель проб»
   * Крупные карточки-образцы, горизонтальный snap-свайп
   */
  #recipe {
    height: auto;
    max-height: none;
    padding: 0 0 88px;
    overflow: visible;
    background-color: #eef5ff;
    background-image:
      linear-gradient(180deg, rgba(11, 31, 58, 0.22) 0%, rgba(11, 31, 58, 0.58) 34%, #eef5ff 52%),
      url("../images/recipe-development/visual.png?v=6"),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpath d='M30 2l26 15v30L30 62 4 47V17z' fill='none' stroke='%231a7cff' stroke-opacity='0.08' stroke-width='1'/%3E%3Cpath d='M90 28l26 15v30L90 88 64 73V43z' fill='none' stroke='%231a7cff' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat, repeat;
    background-position: center top, center 6%, 0 0;
    background-size: 100% 320px, 145% auto, 120px 104px;
  }

  #recipe > .container {
    height: auto;
    min-height: 0;
    justify-content: flex-start;
    gap: 0;
    padding: 32px 0 0;
    background: transparent;
  }

  .recipe-development__main {
    width: 100%;
    max-width: none;
    min-width: 0;
    max-height: none;
    gap: 0;
    padding: 0 28px;
  }

  .recipe-development__header {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 210px;
    margin: 0 0 18px;
    padding: 16px 4px 0;
  }

  #recipe .section-header__label {
    align-self: flex-start;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 18px rgba(11, 31, 58, 0.22);
  }

  .recipe-development__title {
    font-size: clamp(1.65rem, 5.2vw, 2.2rem);
    line-height: 1.08;
    color: #ffffff;
    text-shadow: 0 3px 18px rgba(11, 31, 58, 0.45);
  }

  #recipe .section-header__description {
    max-width: none;
    margin: 16px 0 0;
    padding: 14px 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #0b1f3a;
    border-radius: 16px;
    border: 1px solid rgba(26, 124, 255, 0.14);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 26px rgba(26, 111, 212, 0.1);
  }

  .recipe-development__steps {
    position: relative;
    counter-reset: recipe-sample;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 14px;
    margin: 8px 0 0;
    padding: 8px 28px 18px;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 28px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .recipe-development__steps::-webkit-scrollbar {
    display: none;
  }

  .recipe-development__steps::before {
    content: "Листайте пробы →";
    position: absolute;
    top: -2px;
    right: 28px;
    z-index: 2;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #1a7cff;
    opacity: 0.75;
  }

  .recipe-development__step {
    position: relative;
    counter-increment: recipe-sample;
    flex: 0 0 min(78vw, 300px);
    scroll-snap-align: center;
    z-index: 1;
  }

  .recipe-development__step:not(:last-child)::after {
    display: none;
  }

  .recipe-development__step-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 340px;
    margin: 0;
    padding: 18px 18px 20px;
    overflow: hidden;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 22px 0 22px 22px;
    background: #0b1f3a;
    box-shadow: 0 18px 40px rgba(11, 31, 58, 0.28);
    clip-path: polygon(
      0 0,
      calc(100% - 26px) 0,
      100% 26px,
      100% 100%,
      0 100%
    );
    transform: none;
    color: #ffffff;
    isolation: isolate;
  }

  .recipe-development__step-btn > picture {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    aspect-ratio: auto;
    overflow: hidden;
    border: none;
    border-radius: 0;
    background: #0b1f3a;
    box-shadow: none;
    line-height: 0;
    pointer-events: none;
  }

  .recipe-development__step-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: none;
    transform: scale(1.02);
  }

  .recipe-development__step-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(
        180deg,
        rgba(8, 24, 48, 0.45) 0%,
        rgba(8, 24, 48, 0.12) 28%,
        rgba(8, 24, 48, 0.2) 52%,
        rgba(8, 24, 48, 0.72) 78%,
        rgba(8, 24, 48, 0.88) 100%
      ),
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 40%
      );
  }

  .recipe-development__step-btn:hover,
  .recipe-development__step-btn:focus-visible {
    transform: none;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 46px rgba(11, 31, 58, 0.34);
  }

  .recipe-development__step-btn:hover::after,
  .recipe-development__step-btn:focus-visible::after {
    background:
      linear-gradient(
        180deg,
        rgba(8, 24, 48, 0.5) 0%,
        rgba(8, 24, 48, 0.16) 28%,
        rgba(8, 24, 48, 0.28) 52%,
        rgba(8, 24, 48, 0.78) 78%,
        rgba(8, 24, 48, 0.92) 100%
      ),
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 42%
      );
  }

  .recipe-development__step-btn::before {
    content: "ПРОБА " counter(recipe-sample, decimal-leading-zero);
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin: 0;
    padding: 7px 12px;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #0b1f3a;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 6px 16px rgba(8, 24, 48, 0.22);
  }

  .recipe-development__step-title {
    position: relative;
    z-index: 2;
    margin-top: 28px;
    max-width: 92%;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 14px rgba(8, 24, 48, 0.55);
  }

  .recipe-development__step-teaser {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: auto;
    padding-right: 28px;
    max-width: 95%;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.01em;
    text-shadow: 0 1px 10px rgba(8, 24, 48, 0.55);
  }

  .recipe-development__step-arrow {
    position: absolute;
    right: 18px;
    bottom: 22px;
    z-index: 2;
    width: 10px;
    height: 10px;
    margin: 0;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
    opacity: 0.95;
    filter: drop-shadow(0 2px 6px rgba(8, 24, 48, 0.45));
    transform: rotate(-45deg);
  }

  .recipe-development__result-wrap {
    width: calc(100% - 56px);
    max-width: none;
    margin: 18px auto 0;
    padding-top: 0;
    transform: none;
    overflow: visible;
  }

  .recipe-development__result-icon {
    display: none;
  }

  .recipe-development__result {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    height: auto;
    min-height: 0;
    padding: 18px 18px 16px;
    text-align: left;
    border-radius: 18px;
    border: 1px solid rgba(26, 124, 255, 0.16);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(26, 111, 212, 0.1);
    clip-path: none;
    backdrop-filter: none;
  }

  .recipe-development__result-label {
    margin: 0;
    padding: 5px 10px;
    font-size: 0;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0b1f3a;
    border-radius: 999px;
    background: rgba(26, 124, 255, 0.12);
  }

  .recipe-development__result-label::before {
    content: "Дальше";
    font-size: 0.6875rem;
  }

  .recipe-development__result-divider {
    display: none;
  }

  .recipe-development__result-text {
    padding: 0;
    max-width: none;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0b1f3a;
  }

  .recipe-development__result-next {
    display: inline-flex;
    align-items: center;
    margin-top: 2px;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a7cff;
    text-decoration: none;
  }

  .recipe-development__result-next:hover,
  .recipe-development__result-next:focus-visible {
    color: #0b5ed7;
    text-decoration: underline;
  }
}

@media (max-width: 640px) {
  #recipe {
    padding: 0 0 80px;
    background-size: 100% 280px, 155% auto, 120px 104px;
  }

  #recipe > .container {
    padding: 28px 0 0;
  }

  .recipe-development__main {
    padding: 0 18px;
  }

  .recipe-development__header {
    min-height: 180px;
  }

  .recipe-development__title {
    font-size: 1.5rem;
  }

  #recipe .section-header__description {
    font-size: 0.85rem;
    padding: 12px 14px;
  }

  .recipe-development__steps {
    gap: 12px;
    padding: 10px 18px 16px;
    scroll-padding-inline: 18px;
  }

  .recipe-development__steps::before {
    right: 18px;
    font-size: 0.625rem;
  }

  .recipe-development__step {
    flex-basis: min(82vw, 280px);
  }

  .recipe-development__step-btn {
    min-height: 300px;
    padding: 16px 14px 16px;
    gap: 10px;
  }

  .recipe-development__step-title {
    margin-top: 22px;
    font-size: 1.08rem;
  }

  .recipe-development__step-teaser {
    font-size: 0.72rem;
    padding-right: 24px;
  }

  .recipe-development__step-arrow {
    right: 14px;
    bottom: 18px;
  }

  .recipe-development__result-wrap {
    width: calc(100% - 36px);
    margin-top: 14px;
  }

  .recipe-development__result {
    padding: 16px 16px 14px;
  }

  .recipe-development__result-text {
    font-size: 0.92rem;
  }

  .recipe-development__result-next {
    font-size: 0.8125rem;
  }
}

/* ===== LAB TESTING (блок 8) ===== */

#laboratory {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  padding: 0;
  overflow: visible;
  background-color: #f4f9ff;
  background-image:
    radial-gradient(ellipse 75% 95% at 12% 42%, rgba(80, 170, 255, 0.18) 0%, transparent 58%),
    radial-gradient(ellipse 55% 70% at 30% 70%, rgba(26, 124, 255, 0.1) 0%, transparent 62%),
    radial-gradient(ellipse 40% 55% at 8% 18%, rgba(160, 215, 255, 0.14) 0%, transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpath d='M30 2l26 15v30L30 62 4 47V17z' fill='none' stroke='%231a7cff' stroke-opacity='0.06' stroke-width='1'/%3E%3Cpath d='M90 28l26 15v30L90 88 64 73V43z' fill='none' stroke='%231a7cff' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-position: 12% 42%, 30% 70%, 8% 18%, 0 0;
  background-size: 90% 110%, 70% 90%, 50% 70%, 120px 104px;
}

#laboratory > .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(14px, 1.8vh, 20px);
  height: 100%;
  min-height: 0;
  overflow: visible;
  padding-top: clamp(28px, 3.2vh, 40px);
  padding-bottom: clamp(28px, 3.2vh, 40px);
  background: transparent;
}

.lab-testing__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: cover;
  object-position: left center;
  pointer-events: none;
  user-select: none;
}

.lab-testing__main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(10px, 1.4vh, 16px);
  width: min(100%, 486px);
  max-width: 43.2%;
  min-width: 280px;
  min-height: 0;
  max-height: 100%;
  text-align: right;
}

.lab-testing__header {
  max-width: none;
  margin-bottom: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

#laboratory .section-header__label {
  margin-bottom: 10px;
  margin-left: auto;
  padding: 6px 16px;
  font-size: 0.72rem;
}

.lab-testing__title {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  line-height: 1.08;
  text-align: right;
}

#laboratory .section-header__description {
  margin-top: 10px;
  margin-left: auto;
  max-width: 34em;
  font-size: clamp(0.85rem, 1.1vw, 0.98rem);
  line-height: 1.45;
  text-align: right;
}

.lab-testing__steps {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  gap: clamp(8px, 1.1vh, 12px);
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 0;
  width: 100%;
}

.lab-testing__step {
  margin: 0;
  padding: 0;
  flex-shrink: 1;
  list-style: none;
}

.lab-testing__step-btn {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: clamp(48px, 6.2vh, 64px);
  margin: 0;
  padding: 8px 10px 8px 18px;
  border: 1px solid rgba(26, 124, 255, 0.12);
  border-radius: 0 16px 16px 16px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow:
    0 6px 18px rgba(26, 111, 212, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  clip-path: polygon(
    22px 0,
    100% 0,
    100% 100%,
    0 100%,
    0 22px
  );
  font: inherit;
  text-align: right;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lab-testing__step-btn:hover,
.lab-testing__step-btn:focus-visible {
  border-color: rgba(26, 124, 255, 0.28);
  box-shadow:
    0 8px 22px rgba(26, 111, 212, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateX(-3px);
  outline: none;
}

.lab-testing__step-icon {
  flex-shrink: 0;
  width: clamp(42px, 5vh, 52px);
  height: clamp(42px, 5vh, 52px);
  object-fit: contain;
}

.lab-testing__step-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(0.95rem, 1.25vw, 1.12rem);
  font-weight: 600;
  line-height: 1.25;
  color: #0b1f3a;
  text-align: right;
}

.lab-testing__step-teaser {
  display: none;
}

.lab-testing__step-arrow {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  margin-left: 0;
  border-right: 2.5px solid #1a7cff;
  border-bottom: 2.5px solid #1a7cff;
  transform: rotate(135deg);
  opacity: 0.85;
}

.lab-testing__result-wrap {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  width: min(calc(100% - 150px), 980px);
  max-width: 100%;
  margin: 40px 0 32px;
  transform: translateY(40px);
  overflow: visible;
}

.lab-testing__result {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  height: clamp(72px, 8.5vh, 86px);
  min-height: clamp(72px, 8.5vh, 86px);
  padding: 0 137px 0 32px;
  overflow: visible;
  border: 1.5px solid rgba(170, 205, 255, 0.7);
  border-radius: 0 18px 18px 18px;
  background: rgba(236, 245, 255, 0.92);
  box-shadow:
    0 12px 30px rgba(26, 111, 212, 0.14),
    0 0 24px rgba(100, 180, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  clip-path: polygon(
    22px 0,
    100% 0,
    100% 100%,
    0 100%,
    0 22px
  );
}

.lab-testing__result-icon {
  position: absolute;
  right: 6px;
  left: auto;
  top: 50%;
  z-index: 8;
  display: block;
  width: clamp(112px, 13vh, 130px);
  height: clamp(112px, 13vh, 130px);
  margin: 0;
  object-fit: contain;
  transform: translateY(-50%);
  filter: drop-shadow(0 10px 22px rgba(26, 124, 255, 0.45));
  pointer-events: none;
}

.lab-testing__result-label {
  display: block;
  flex-shrink: 0;
  font-size: clamp(1.12rem, 1.4vw, 1.28rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #1a7cff;
  text-align: right;
}

.lab-testing__result-divider {
  display: block;
  flex-shrink: 0;
  width: 1px;
  height: 40px;
  background: rgba(26, 124, 255, 0.28);
}

.lab-testing__result-text {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 0;
  padding-right: 12px;
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  font-weight: 500;
  line-height: 1.35;
  color: #0b1f3a;
  text-align: right;
}

.lab-testing__result-next {
  display: none;
}

@media (max-width: 1024px) {
  /*
   * Этап 8 — «Карусель тестов»
   * Крупные фото-карточки испытаний, горизонтальный snap-свайп
   */
  #laboratory {
    height: auto;
    max-height: none;
    padding: 0 0 88px;
    overflow: visible;
    background-color: #eef5ff;
    background-image:
      linear-gradient(180deg, rgba(11, 31, 58, 0.22) 0%, rgba(11, 31, 58, 0.58) 34%, #eef5ff 52%),
      url("../images/lab-testing/visual.png?v=5"),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpath d='M30 2l26 15v30L30 62 4 47V17z' fill='none' stroke='%231a7cff' stroke-opacity='0.08' stroke-width='1'/%3E%3Cpath d='M90 28l26 15v30L90 88 64 73V43z' fill='none' stroke='%231a7cff' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat, repeat;
    background-position: center top, left 6%, 0 0;
    background-size: 100% 320px, 145% auto, 120px 104px;
  }

  #laboratory > .container {
    height: auto;
    min-height: 0;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 32px 0 0;
    background: transparent;
  }

  .lab-testing__visual {
    display: none;
  }

  .lab-testing__main {
    width: 100%;
    max-width: none;
    min-width: 0;
    max-height: none;
    align-items: stretch;
    gap: 0;
    padding: 0 28px;
    text-align: left;
  }

  .lab-testing__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 210px;
    margin: 0 0 18px;
    padding: 16px 4px 0;
    text-align: left;
  }

  #laboratory .section-header__label {
    align-self: flex-start;
    margin: 0 0 12px;
    margin-left: 0;
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 18px rgba(11, 31, 58, 0.22);
  }

  .lab-testing__title {
    font-size: clamp(1.65rem, 5.2vw, 2.2rem);
    line-height: 1.08;
    color: #ffffff;
    text-align: left;
    text-shadow: 0 3px 18px rgba(11, 31, 58, 0.45);
  }

  #laboratory .section-header__description {
    max-width: none;
    margin: 16px 0 0;
    margin-left: 0;
    padding: 14px 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #0b1f3a;
    text-align: left;
    border-radius: 16px;
    border: 1px solid rgba(26, 124, 255, 0.14);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 26px rgba(26, 111, 212, 0.1);
  }

  .lab-testing__steps {
    position: relative;
    counter-reset: lab-test;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 14px;
    margin: 8px 0 0;
    padding: 8px 28px 18px;
    width: auto;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 28px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border: none;
    background: transparent;
    box-shadow: none;
    /* как на десктопе блок справа — карусель стартует справа, свайп вправо */
    direction: rtl;
  }

  .lab-testing__steps::-webkit-scrollbar {
    display: none;
  }

  .lab-testing__steps::before {
    content: "← Листайте тесты";
    position: absolute;
    top: -2px;
    left: 28px;
    right: auto;
    z-index: 2;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #1a7cff;
    opacity: 0.75;
    direction: ltr;
  }

  .lab-testing__step {
    position: relative;
    counter-increment: lab-test;
    flex: 0 0 min(78vw, 300px);
    scroll-snap-align: center;
    z-index: 1;
    direction: ltr;
  }

  .lab-testing__step:not(:last-child)::after {
    display: none;
  }

  .lab-testing__step-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 340px;
    margin: 0;
    padding: 18px 18px 20px;
    overflow: hidden;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0 22px 22px 22px;
    background: #0b1f3a;
    box-shadow: 0 18px 40px rgba(11, 31, 58, 0.28);
    clip-path: polygon(
      26px 0,
      100% 0,
      100% 100%,
      0 100%,
      0 26px
    );
    transform: none;
    color: #ffffff;
    isolation: isolate;
  }

  .lab-testing__step-btn > picture {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    aspect-ratio: auto;
    overflow: hidden;
    border: none;
    border-radius: 0;
    background: #0b1f3a;
    box-shadow: none;
    line-height: 0;
    pointer-events: none;
  }

  .lab-testing__step-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: none;
    transform: scale(1.02);
  }

  .lab-testing__step-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(
        180deg,
        rgba(8, 24, 48, 0.45) 0%,
        rgba(8, 24, 48, 0.12) 28%,
        rgba(8, 24, 48, 0.2) 52%,
        rgba(8, 24, 48, 0.72) 78%,
        rgba(8, 24, 48, 0.88) 100%
      ),
      linear-gradient(
        270deg,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 40%
      );
  }

  .lab-testing__step-btn:hover,
  .lab-testing__step-btn:focus-visible {
    transform: none;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 46px rgba(11, 31, 58, 0.34);
  }

  .lab-testing__step-btn:hover::after,
  .lab-testing__step-btn:focus-visible::after {
    background:
      linear-gradient(
        180deg,
        rgba(8, 24, 48, 0.5) 0%,
        rgba(8, 24, 48, 0.16) 28%,
        rgba(8, 24, 48, 0.28) 52%,
        rgba(8, 24, 48, 0.78) 78%,
        rgba(8, 24, 48, 0.92) 100%
      ),
      linear-gradient(
        270deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 42%
      );
  }

  .lab-testing__step-btn::before {
    content: "ТЕСТ " counter(lab-test, decimal-leading-zero);
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin: 0;
    padding: 7px 12px;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #0b1f3a;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 6px 16px rgba(8, 24, 48, 0.22);
  }

  .lab-testing__step-title {
    position: relative;
    z-index: 2;
    margin-top: 28px;
    max-width: 92%;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: -0.01em;
    text-align: left;
    text-shadow: 0 2px 14px rgba(8, 24, 48, 0.55);
  }

  .lab-testing__step-teaser {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: auto;
    padding-right: 28px;
    max-width: 95%;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.01em;
    text-align: left;
    text-shadow: 0 1px 10px rgba(8, 24, 48, 0.55);
  }

  .lab-testing__step-arrow {
    position: absolute;
    right: 18px;
    bottom: 22px;
    z-index: 2;
    width: 10px;
    height: 10px;
    margin: 0;
    border-right: 2.5px solid #ffffff;
    border-bottom: 2.5px solid #ffffff;
    opacity: 0.95;
    filter: drop-shadow(0 2px 6px rgba(8, 24, 48, 0.45));
    transform: rotate(-45deg);
  }

  .lab-testing__result-wrap {
    width: calc(100% - 56px);
    max-width: none;
    margin: 18px auto 0;
    padding-top: 0;
    transform: none;
    overflow: visible;
  }

  .lab-testing__result-icon {
    display: none;
  }

  .lab-testing__result {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    height: auto;
    min-height: 0;
    padding: 18px 18px 16px;
    text-align: left;
    border-radius: 18px;
    border: 1px solid rgba(26, 124, 255, 0.16);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(26, 111, 212, 0.1);
    clip-path: none;
    backdrop-filter: none;
  }

  .lab-testing__result-label {
    margin: 0;
    padding: 5px 10px;
    font-size: 0;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0b1f3a;
    text-align: left;
    border-radius: 999px;
    background: rgba(26, 124, 255, 0.12);
  }

  .lab-testing__result-label::before {
    content: "Дальше";
    font-size: 0.6875rem;
  }

  .lab-testing__result-divider {
    display: none;
  }

  .lab-testing__result-text {
    padding: 0;
    max-width: none;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0b1f3a;
    text-align: left;
  }

  .lab-testing__result-next {
    display: inline-flex;
    align-items: center;
    margin-top: 2px;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a7cff;
    text-decoration: none;
  }

  .lab-testing__result-next:hover,
  .lab-testing__result-next:focus-visible {
    color: #0b5ed7;
    text-decoration: underline;
  }
}

@media (max-width: 640px) {
  #laboratory {
    padding: 0 0 80px;
    background-size: 100% 280px, 155% auto, 120px 104px;
  }

  #laboratory > .container {
    padding: 28px 0 0;
  }

  .lab-testing__main {
    padding: 0 18px;
  }

  .lab-testing__header {
    min-height: 180px;
  }

  .lab-testing__title {
    font-size: 1.5rem;
  }

  #laboratory .section-header__description {
    font-size: 0.85rem;
    padding: 12px 14px;
  }

  .lab-testing__steps {
    gap: 12px;
    padding: 10px 18px 16px;
    scroll-padding-inline: 18px;
  }

  .lab-testing__steps::before {
    left: 18px;
    right: auto;
    font-size: 0.625rem;
  }

  .lab-testing__step {
    flex-basis: min(82vw, 280px);
  }

  .lab-testing__step-btn {
    min-height: 300px;
    padding: 16px 14px 16px;
    gap: 10px;
  }

  .lab-testing__step-title {
    margin-top: 22px;
    font-size: 1.08rem;
  }

  .lab-testing__step-teaser {
    font-size: 0.72rem;
    padding-right: 24px;
  }

  .lab-testing__step-arrow {
    right: 14px;
    bottom: 18px;
  }

  .lab-testing__result-wrap {
    width: calc(100% - 36px);
    margin-top: 14px;
  }

  .lab-testing__result {
    padding: 16px 16px 14px;
  }

  .lab-testing__result-text {
    font-size: 0.92rem;
  }

  .lab-testing__result-next {
    font-size: 0.8125rem;
  }
}

/* ===== CERTIFICATION (блок 9) ===== */

#certification {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  padding: 0;
  overflow: visible;
  background-color: #f4f9ff;
  background-image:
    radial-gradient(ellipse 75% 95% at 88% 42%, rgba(80, 170, 255, 0.18) 0%, transparent 58%),
    radial-gradient(ellipse 55% 70% at 70% 70%, rgba(26, 124, 255, 0.1) 0%, transparent 62%),
    radial-gradient(ellipse 40% 55% at 92% 18%, rgba(160, 215, 255, 0.14) 0%, transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpath d='M30 2l26 15v30L30 62 4 47V17z' fill='none' stroke='%231a7cff' stroke-opacity='0.06' stroke-width='1'/%3E%3Cpath d='M90 28l26 15v30L90 88 64 73V43z' fill='none' stroke='%231a7cff' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-position: 88% 42%, 70% 70%, 92% 18%, 0 0;
  background-size: 90% 110%, 70% 90%, 50% 70%, 120px 104px;
}

#certification > .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 1.8vh, 20px);
  height: 100%;
  min-height: 0;
  overflow: visible;
  padding-top: clamp(28px, 3.2vh, 40px);
  padding-bottom: clamp(28px, 3.2vh, 40px);
  background: transparent;
}

.certification__visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 0;
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: contain;
  object-position: right center;
  pointer-events: none;
  user-select: none;
}

.certification__main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 1.6vh, 18px);
  width: min(100%, 497px);
  max-width: 44.16%;
  min-width: 276px;
  min-height: 0;
  max-height: 100%;
}

.certification__header {
  max-width: none;
  margin-bottom: 0;
  flex-shrink: 0;
}

#certification .section-header__label {
  margin-bottom: 10px;
  padding: 6px 16px;
  font-size: 0.83rem;
}

.certification__title {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.55rem, 2.76vw, 2.24rem);
  line-height: 1.08;
}

#certification .section-header__description {
  margin-top: 10px;
  max-width: 34em;
  font-size: clamp(0.9rem, 1.15vw, 1.04rem);
  line-height: 1.45;
}

.certification__steps {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  gap: clamp(9px, 1.3vh, 14px);
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 0;
}

.certification__step {
  margin: 0;
  padding: 0;
  flex-shrink: 1;
  list-style: none;
}

.certification__step-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: clamp(55px, 7.1vh, 74px);
  margin: 0;
  padding: 8px 16px 8px 10px;
  border: 1px solid rgba(26, 124, 255, 0.12);
  border-radius: 16px 0 16px 16px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow:
    0 6px 18px rgba(26, 111, 212, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  clip-path: polygon(
    0 0,
    calc(100% - 22px) 0,
    100% 22px,
    100% 100%,
    0 100%
  );
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.certification__step-btn:hover,
.certification__step-btn:focus-visible {
  border-color: rgba(26, 124, 255, 0.28);
  box-shadow:
    0 8px 22px rgba(26, 111, 212, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateX(3px);
  outline: none;
}

.certification__step-btn.is-done {
  border-color: rgba(26, 124, 255, 0.32);
  background:
    linear-gradient(180deg, #f3f9ff 0%, #eaf4ff 100%);
}

.certification__step-icon {
  flex-shrink: 0;
  width: clamp(44px, 5.3vh, 53px);
  height: clamp(44px, 5.3vh, 53px);
  object-fit: contain;
}

.certification__step-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(0.94rem, 1.21vw, 1.13rem);
  font-weight: 600;
  line-height: 1.25;
  color: #0b1f3a;
}

.certification__step-teaser {
  display: none;
}

.certification__step-arrow {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 2.5px solid #1a7cff;
  border-bottom: 2.5px solid #1a7cff;
  transform: rotate(-45deg);
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.certification__step-btn.is-done .certification__step-arrow {
  opacity: 0;
  visibility: hidden;
  width: 0;
  height: 0;
  margin: 0;
  border: 0;
}

.certification__step-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  max-width: 0;
  margin-left: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  font-size: clamp(0.72rem, 0.9vw, 0.82rem);
  font-weight: 600;
  line-height: 1.2;
  color: #1a7cff;
  white-space: nowrap;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    max-width 0.35s ease,
    margin 0.35s ease,
    visibility 0.35s ease;
}

.certification__step-btn.is-done .certification__step-status {
  max-width: 160px;
  margin-left: 4px;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.certification__step-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1a7cff;
  box-shadow: 0 2px 8px rgba(26, 124, 255, 0.35);
}

.certification__step-check::after {
  content: "";
  width: 5px;
  height: 9px;
  margin-top: -1px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.certification__result-wrap {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  width: min(calc(100% - 150px), 980px);
  max-width: 100%;
  margin: 40px 0 32px;
  transform: translateY(40px);
  overflow: visible;
}

.certification__result {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  height: clamp(72px, 8.5vh, 86px);
  min-height: clamp(72px, 8.5vh, 86px);
  padding: 0 32px 0 137px;
  overflow: visible;
  border: 1.5px solid rgba(170, 205, 255, 0.7);
  border-radius: 18px 0 18px 18px;
  background: rgba(236, 245, 255, 0.92);
  box-shadow:
    0 12px 30px rgba(26, 111, 212, 0.14),
    0 0 24px rgba(100, 180, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  clip-path: polygon(
    0 0,
    calc(100% - 22px) 0,
    100% 22px,
    100% 100%,
    0 100%
  );
}

.certification__result-icon {
  position: absolute;
  left: 6px;
  top: 50%;
  z-index: 8;
  display: block;
  width: clamp(112px, 13vh, 130px);
  height: clamp(112px, 13vh, 130px);
  margin: 0;
  object-fit: contain;
  transform: translateY(-50%);
  filter: drop-shadow(0 10px 22px rgba(26, 124, 255, 0.45));
  pointer-events: none;
}

.certification__result-label {
  display: block;
  flex-shrink: 0;
  font-size: clamp(1.12rem, 1.4vw, 1.28rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #1a7cff;
}

.certification__result-divider {
  display: block;
  flex-shrink: 0;
  width: 1px;
  height: 40px;
  background: rgba(26, 124, 255, 0.28);
}

.certification__result-text {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 12px;
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  font-weight: 500;
  line-height: 1.35;
  color: #0b1f3a;
}

.certification__result-next {
  display: none;
}

@media (max-width: 1024px) {
  /*
   * Этап 9 — «Карусель документов»
   * Крупные фото-карточки пакета документации, горизонтальный snap-свайп
   */
  #certification {
    height: auto;
    max-height: none;
    padding: 0 0 110px;
    overflow: visible;
    background-color: #eef5ff;
    background-image:
      linear-gradient(180deg, rgba(11, 31, 58, 0.22) 0%, rgba(11, 31, 58, 0.58) 34%, #eef5ff 52%),
      url("../images/certification/visual.png?v=2"),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpath d='M30 2l26 15v30L30 62 4 47V17z' fill='none' stroke='%231a7cff' stroke-opacity='0.08' stroke-width='1'/%3E%3Cpath d='M90 28l26 15v30L90 88 64 73V43z' fill='none' stroke='%231a7cff' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat, repeat;
    background-position: center top, right 8%, 0 0;
    background-size: 100% 320px, 130% auto, 120px 104px;
  }

  #certification > .container {
    height: auto;
    min-height: 0;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 32px 0 0;
    background: transparent;
  }

  .certification__visual {
    display: none;
  }

  .certification__main {
    width: 100%;
    max-width: none;
    min-width: 0;
    max-height: none;
    gap: 0;
    padding: 0 28px;
  }

  .certification__header {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 210px;
    margin: 0 0 18px;
    padding: 16px 4px 0;
  }

  #certification .section-header__label {
    align-self: flex-start;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 18px rgba(11, 31, 58, 0.22);
  }

  .certification__title {
    font-size: clamp(1.55rem, 5vw, 2.1rem);
    line-height: 1.08;
    color: #ffffff;
    text-shadow: 0 3px 18px rgba(11, 31, 58, 0.45);
  }

  #certification .section-header__description {
    max-width: none;
    margin: 16px 0 0;
    padding: 14px 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #0b1f3a;
    border-radius: 16px;
    border: 1px solid rgba(26, 124, 255, 0.14);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 26px rgba(26, 111, 212, 0.1);
  }

  .certification__steps {
    position: relative;
    counter-reset: cert-doc;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 14px;
    margin: 8px 0 0;
    padding: 8px 28px 18px;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 28px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  .certification__steps::-webkit-scrollbar {
    display: none;
  }

  .certification__steps::before {
    content: "Листайте документы →";
    position: absolute;
    top: -2px;
    right: 28px;
    z-index: 2;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #1a7cff;
    opacity: 0.75;
  }

  .certification__step {
    position: relative;
    counter-increment: cert-doc;
    flex: 0 0 min(78vw, 300px);
    scroll-snap-align: center;
    z-index: 1;
  }

  .certification__step-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 340px;
    margin: 0;
    padding: 18px 18px 20px;
    overflow: hidden;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 22px 0 22px 22px;
    background: #0b1f3a;
    box-shadow: 0 18px 40px rgba(11, 31, 58, 0.28);
    clip-path: polygon(
      0 0,
      calc(100% - 26px) 0,
      100% 26px,
      100% 100%,
      0 100%
    );
    transform: none;
    color: #ffffff;
    isolation: isolate;
  }

  .certification__step-btn > picture {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    overflow: hidden;
    border: none;
    border-radius: 0;
    background: #0b1f3a;
    line-height: 0;
    pointer-events: none;
  }

  .certification__step-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: none;
    transform: scale(1.02);
  }

  .certification__step-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(
        180deg,
        rgba(8, 24, 48, 0.45) 0%,
        rgba(8, 24, 48, 0.12) 28%,
        rgba(8, 24, 48, 0.2) 52%,
        rgba(8, 24, 48, 0.72) 78%,
        rgba(8, 24, 48, 0.88) 100%
      ),
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 40%
      );
  }

  .certification__step-btn:hover,
  .certification__step-btn:focus-visible {
    transform: none;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 46px rgba(11, 31, 58, 0.34);
  }

  .certification__step-btn::before {
    content: "ДОК " counter(cert-doc, decimal-leading-zero);
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin: 0;
    padding: 7px 12px;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #0b1f3a;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 6px 16px rgba(8, 24, 48, 0.22);
  }

  .certification__step-title {
    position: relative;
    z-index: 2;
    margin-top: 28px;
    max-width: 92%;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 14px rgba(8, 24, 48, 0.55);
  }

  .certification__step-teaser {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: auto;
    padding-right: 28px;
    max-width: 95%;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 10px rgba(8, 24, 48, 0.55);
  }

  .certification__step-status {
    display: none;
  }

  .certification__step-arrow {
    position: absolute;
    right: 18px;
    bottom: 22px;
    z-index: 2;
    width: 10px;
    height: 10px;
    margin: 0;
    border-right: 2.5px solid #ffffff;
    border-bottom: 2.5px solid #ffffff;
    opacity: 0.95;
    filter: drop-shadow(0 2px 6px rgba(8, 24, 48, 0.45));
    transform: rotate(-45deg);
  }

  .certification__result-wrap {
    width: calc(100% - 56px);
    max-width: none;
    margin: 18px auto 0;
    padding-top: 0;
    transform: none;
    overflow: visible;
  }

  .certification__result-icon {
    display: none;
  }

  .certification__result {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    height: auto;
    min-height: 0;
    padding: 18px 18px 16px;
    text-align: left;
    border-radius: 18px;
    border: 1px solid rgba(26, 124, 255, 0.16);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(26, 111, 212, 0.1);
    clip-path: none;
    backdrop-filter: none;
  }

  .certification__result-label {
    margin: 0;
    padding: 5px 10px;
    font-size: 0;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0b1f3a;
    border-radius: 999px;
    background: rgba(26, 124, 255, 0.12);
  }

  .certification__result-label::before {
    content: "Финиш";
    font-size: 0.6875rem;
  }

  .certification__result-divider {
    display: none;
  }

  .certification__result-text {
    padding: 0;
    max-width: none;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0b1f3a;
  }

  .certification__result-next {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    padding: 12px 18px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b9bff 0%, #1a7cff 100%);
    box-shadow: 0 10px 22px rgba(26, 124, 255, 0.35);
    cursor: pointer;
  }

  .certification__result-next:hover,
  .certification__result-next:focus-visible {
    filter: brightness(1.05);
    outline: none;
  }
}

@media (max-width: 640px) {
  #certification {
    padding: 0 0 100px;
    background-size: 100% 280px, 145% auto, 120px 104px;
  }

  #certification > .container {
    padding: 28px 0 0;
  }

  .certification__main {
    padding: 0 18px;
  }

  .certification__header {
    min-height: 180px;
  }

  .certification__title {
    font-size: 1.45rem;
  }

  #certification .section-header__description {
    font-size: 0.85rem;
    padding: 12px 14px;
  }

  .certification__steps {
    gap: 12px;
    padding: 10px 18px 16px;
    scroll-padding-inline: 18px;
  }

  .certification__steps::before {
    right: 18px;
    font-size: 0.625rem;
  }

  .certification__step {
    flex-basis: min(82vw, 280px);
  }

  .certification__step-btn {
    min-height: 300px;
    padding: 16px 14px 16px;
    gap: 10px;
  }

  .certification__step-title {
    margin-top: 22px;
    font-size: 1.05rem;
  }

  .certification__step-teaser {
    font-size: 0.72rem;
    padding-right: 24px;
  }

  .certification__step-arrow {
    right: 14px;
    bottom: 18px;
  }

  .certification__result-wrap {
    width: calc(100% - 36px);
    margin-top: 14px;
  }

  .certification__result {
    padding: 16px 16px 14px;
  }

  .certification__result-text {
    font-size: 0.92rem;
  }

  .certification__result-next {
    font-size: 0.85rem;
    padding: 11px 16px;
  }
}

