/* ─── FONTS ─── */
@font-face {
    font-family: 'Bahnschrift';
    src: url('fonts/bahnschrift.ttf') format('truetype-variations');
    font-weight: 100;
}

/* ─── TOKENS ─── */
:root {
  --red:    #E41F12;
  --dark-red: #9E0005;
  --yellow: #FAC802;
  --black:  #333333;
  --blue:   #00437A;
  --white:  #ffffff;
  --font:   'Bahnschrift', 'Arial', sans-serif;
  --section-gap: 60px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--black);
  background: #fff;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; }

/* все заголовки — тонкие */
.section-header, .s2-headline, .s2-sub-title, .s4-sub, .s5-rep, .s5-ask, .s5-address-title, .s5-email-title {
  font-weight: 300;
}

/* ══════════════════════════════════════════
   SECTION 1 — HERO / SLIDER
══════════════════════════════════════════ */

.s1-wrap {
  position: relative;
  width: 100%;
  height: 96vh;
  background: #111;
  overflow: visible;
}

.s1-clip {
  position: absolute;
  inset: 0;
  overflow: visible;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
}

.slide-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 2;
  display: block;
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 55px 0;
}

.header__logo img {
  height: 100px;
  width: auto;
}

.header__center {
  text-align: center;
  padding-top: 10px;
  flex: 1;
  margin: 0 20px;
}

.header__center .company-name {
  font-size: 22px;
  color: var(--white);
  line-height: 1.3;
}
.header__center .tagline {
  font-size: 32px;
  color: var(--white);
  margin-top: 0px;
}

.main-nav {
  margin-top: 35px;
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
}
.main-nav a {
  font-size: 22px;
  color: var(--white);
  white-space: nowrap;
  transition: color .2s;
}
.main-nav a:hover { color: var(--red); }

.header__phone {
  padding-top: 10px;
  min-width: 280px;
}

.header__phone > div {
  text-align: right;
}

.header__phone .phone-number {
  font-size: 33px;
  color: var(--white);
  white-space: nowrap;
}

.header__phone .phone-label {
  font-size: 18px;
  color: var(--white);
  margin-top: 4px;
  text-decoration: underline;
  display: block;
}

.slide-text {
  position: absolute;
  left: 180px;
  top: 275px;
  z-index: 5;
}
.slide-text .s1-brand {
  font-size: 80px;
  color: var(--red);
  line-height: 1;
}
.slide-text .s1-sub {
  font-size: 30px;
  color: var(--black);
  margin-top: 38px;
  line-height: 1.4;
  max-width: 780px;
}
.slide-text .s1-cta {
  font-size: 46px;
  color: var(--red);
  margin-top: 60px;
  line-height: 1.2;
  max-width: 900px;
}

.slide-cauldron {
  position: absolute;
  left: calc(1420px - 230px);
  top: 315px;
  width: 459px;
  height: auto;
  z-index: 20;
  pointer-events: none;
}

.s1-gap {
  width: 100%;
  height: 2px;
  background: #fff;
  position: relative;
  z-index: 0;
}
.s1-stripe {
  width: 100%;
  height: 8px;
  background: var(--dark-red);
  position: relative;
  z-index: 0;
}

/* ══════════════════════════════════════════
   SECTION SEPARATOR
══════════════════════════════════════════ */
.section-gap { height: var(--section-gap); }

.section-inner {
  max-width: 1300px;
  margin: 0 auto;
  margin-top: 100px;
  text-align: center;
}

.section-header {
  font-size: 54px;
  color: var(--black);
  font-weight: 300;
}

/* ══════════════════════════════════════════
   SECTION 2 — О КОМПАНИИ
══════════════════════════════════════════ */
#s2 { padding-bottom: var(--section-gap); }

.s2-headline {
  font-size: 40px;
  color: var(--black);
  text-align: center;
  font-weight: 300;
}

.s2-sub-title {
  font-size: 30px;
  color: var(--red);
  text-align: center;
  margin-top: 35px;
  font-weight: 300;
}

.s2-cols-2 {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
}
.s2-col-2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  flex: 1;
  max-width: 580px;
}
.s2-col-2 .thumb {
  width: 360px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s2-col-2 .thumb img { width: 100%; height: 100%; object-fit: cover; }
.s2-col-2 p { font-size: 28px; color: var(--black); text-align: center; }

.s2-cols-3 {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
}
.s2-col-3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.s2-col-3 .thumb {
  width: 200px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s2-col-3 .thumb img { width: 100%; height: 100%; object-fit: cover; }
.s2-stat-big { font-size: 30px; color: var(--black); text-align: center; }
.s2-stat-small { font-size: 20px; color: var(--black); text-align: center; margin-top: -6px; }

.s2-cols-4 {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 60px;
}
.s2-col-4 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 1;
}
.s2-col-4 .thumb {
  width: 180px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s2-col-4 .thumb img { width: 100%; height: 100%; object-fit: cover; }
.s2-col-4 p { font-size: 18px; color: var(--black); text-align: center; line-height: 1.4; }

/* ══════════════════════════════════════════
   SECTION 3 — ПРОДУКЦИЯ (основные стили)
══════════════════════════════════════════ */
#s3 { padding-bottom: var(--section-gap); }

.s3-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 40px;
  border-bottom: none;
}
.s3-tab {
  font-size: 18px;
  color: var(--black);
  padding: 12px 22px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.s3-tab.active { color: var(--red); border-bottom-color: var(--red); }
.s3-tab:hover { color: var(--red); }

.s3-product {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
}
.s3-arrow {
  width: 84px;
  height: 225px;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
#s3-prev { margin-right: 125px; }
#s3-next { margin-left: 125px; }

.s3-img-wrap {
  width: 1200px;
  height: 267px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 14px;
  flex-shrink: 0;
  overflow: hidden;
}
.s3-img-wrap img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.s3-caption {
  margin-top: 20px;
  font-size: 18px;
  color: var(--black);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.s3-caption .more-info {
  color: var(--red);
  cursor: pointer;
  margin-left: 5px;
}

/* Список для мобильных — по умолчанию скрыт */
.s3-products-list {
  display: none;
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.modal.active {
  display: flex;
}
.modal-content {
  background: var(--white);
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  border-radius: 0;
  position: relative;
}
.modal-header {
  font-size: 54px;
  color: var(--black);
  font-weight: 300;
  margin-bottom: 24px;
  padding-right: 40px;
}
.modal-sub {
  font-size: 24px;
  color: var(--black);
  font-weight: 300;
  line-height: 1.4;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  cursor: pointer;
  color: var(--black);
  transition: color .2s;
}
.modal-close:hover {
  color: var(--red);
}
.modal-content::-webkit-scrollbar {
  width: 6px;
}
.modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.modal-content::-webkit-scrollbar-thumb {
  background: var(--dark-red);
}

/* Стили для таблиц в модальном окне */
.product-specs {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 15px;
}

.product-specs th,
.product-specs td {
  border: 1px solid #ddd;
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.product-specs th {
  background: #f5f5f5;
  font-weight: 600;
  color: var(--black);
}

.product-specs tr:nth-child(even) {
  background: #fafafa;
}

.specs-note {
  font-size: 13px;
  color: #666;
  margin-top: 14px;
  font-style: italic;
}

.modal-desc {
  margin-bottom: 18px;
  line-height: 1.5;
  font-size: 16px;
}

/* Адаптив для мобильных (таблицы с горизонтальным скроллом) */
@media (max-width: 639px) {
  .modal-content {
    overflow-x: auto;
  }
  .product-specs {
    font-size: 12px;
    min-width: 500px;
  }
  .product-specs th,
  .product-specs td {
    padding: 6px 8px;
  }
  .modal-desc {
    font-size: 14px;
  }
  .specs-note {
    font-size: 11px;
  }
}

/* ══════════════════════════════════════════
   SECTION 3 — АДАПТИВ
══════════════════════════════════════════ */
@media (min-width: 1201px) and (max-width: 1900px) {
  .s3-products-list { display: none; }
  .s3-img-wrap { width: 800px; height: 178px; }
  .s3-arrow { width: 40px; height: 100px; }
  .s3-arrow img { width: 100%; height: auto; }
  #s3-prev { margin-right: 60px; }
  #s3-next { margin-left: 60px; }
  .s3-caption { font-size: 16px; max-width: 700px; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .s3-products-list { display: none; }
  .s3-img-wrap { width: 550px; height: 122px; }
  .s3-arrow { width: 32px; height: 80px; }
  .s3-arrow img { width: 100%; height: auto; }
  #s3-prev { margin-right: 40px; }
  #s3-next { margin-left: 40px; }
  .s3-caption { font-size: 14px; max-width: 500px; }
  .s3-tab { font-size: 14px; padding: 8px 14px; }
}
@media (min-width: 640px) and (max-width: 900px) {
  .s3-products-list { display: none; }
  .s3-img-wrap { width: 400px; height: 89px; }
  .s3-arrow { width: 28px; height: 70px; }
  .s3-arrow img { width: 100%; height: auto; }
  #s3-prev { margin-right: 20px; }
  #s3-next { margin-left: 20px; }
  .s3-caption { font-size: 13px; max-width: 400px; padding: 0 15px; }
  .s3-tabs { gap: 5px; flex-wrap: wrap; }
  .s3-tab { font-size: 12px; padding: 5px 10px; }
}
@media (min-width: 480px) and (max-width: 639px) {
  .s3-caption { display: none; }
  .s3-product, .s3-arrow, .s3-tabs { display: none; }
  .s3-products-list { display: flex; flex-direction: column; gap: 40px; margin-top: 40px; }
  .s3-product-item { display: flex; flex-direction: column; align-items: center; gap: 15px; padding: 20px; border-bottom: 1px solid #eee; }
  .s3-product-item:last-child { border-bottom: none; }
  .s3-product-item .s3-product-title { font-size: 20px; font-weight: 600; color: var(--black); }
  .s3-product-item img { width: 90%; max-width: 350px; height: auto; }
  .s3-product-item .s3-product-desc { font-size: 14px; text-align: center; line-height: 1.5; padding: 0 15px; }
  .s3-product-item .more-info { color: var(--red); cursor: pointer; font-size: 14px; margin-top: 5px; display: inline-block; }
}
@media (min-width: 320px) and (max-width: 479px) {
  .s3-caption { display: none; }
  .s3-product, .s3-arrow, .s3-tabs { display: none; }
  .s3-products-list { display: flex; flex-direction: column; gap: 30px; margin-top: 30px; }
  .s3-product-item { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 15px; border-bottom: 1px solid #eee; }
  .s3-product-item:last-child { border-bottom: none; }
  .s3-product-item .s3-product-title { font-size: 18px; font-weight: 600; color: var(--black); }
  .s3-product-item img { width: 95%; max-width: 250px; height: auto; }
  .s3-product-item .s3-product-desc { font-size: 13px; text-align: center; line-height: 1.4; padding: 0 10px; }
  .s3-product-item .more-info { color: var(--red); cursor: pointer; font-size: 13px; margin-top: 5px; display: inline-block; }
}

/* ══════════════════════════════════════════
   SECTION 4 — КАРТА И КАРУСЕЛЬ ПАРТНЁРОВ
══════════════════════════════════════════ */
#s4 {
  padding-bottom: var(--section-gap);
}
.s4-sub {
  font-size: 24px;
  color: var(--black);
  margin-top: 12px;
  text-align: center;
  font-weight: 300;
}
.s4-map {
  width: 100%;
  height: 700px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.s4-carousel-wrap {
  width: 100%;
  overflow: hidden;
  margin-top: 40px;
  position: relative;
  cursor: grab;
}
.s4-carousel-wrap.dragging {
  cursor: grabbing;
}
.s4-carousel {
  display: flex;
  gap: 0;
  transition: none;
  will-change: transform;
}
.s4-card {
  min-width: 240px;
  max-width: 300px;
  border: 0px solid #e0e0e0;
  padding: 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.s4-card .logo-placeholder {
  width: 105px;
  height: 105px;
  background: #ececec;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
}
.s4-card .company-name {
  font-size: 24px;
  font-weight: 300;
  text-align: center;
}
.s4-card .city {
  font-size: 20px;
  color: var(--dark-red);
}
.s4-card .description {
  font-size: 18px;
  text-align: center;
  color: var(--black);
  line-height: 1.3;
}
.s4-card .date {
  font-size: 18px;
  color: #aaa;
  margin-top: 4px;
}
.s4-scroll-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 20px auto 0;
  width: 100%;
  max-width: 400px;
}
.s4-scroll-line {
  flex: 1;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}
.s4-scroll-marker {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--dark-red);
  border-radius: 50%;
  cursor: grab;
  left: 0;
}
.s4-scroll-marker:active {
  cursor: grabbing;
}

/* ══════════════════════════════════════════
   SECTION 5 — КОНТАКТЫ
══════════════════════════════════════════ */
#s5 {
  padding-bottom: 130px;
}
.s5-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.s5-rep {
  font-size: 22px;
  color: var(--black);
  margin-top: 30px;
  line-height: 1.5;
  font-weight: 300;
}
.s5-ask {
  font-size: 20px;
  color: var(--black);
  margin-top: 24px;
  font-weight: 300;
}
.s5-phone {
  font-size: 54px;
  color: var(--black);
  margin-top: 12px;
  letter-spacing: 1px;
}
.s5-hours {
  font-size: 20px;
  color: var(--black);
  margin-top: 8px;
}
.s5-divider {
  width: 80%;
  height: 1px;
  background: #e0e0e0;
  margin: 36px auto;
}
.s5-address-title {
  font-size: 32px;
  color: var(--black);
  font-weight: 300;
}
.s5-address {
  font-size: 20px;
  color: var(--black);
  margin-top: 10px;
  line-height: 1.6;
}
.s5-address a {
  color: var(--blue);
  cursor: pointer;
}
.s5-address a:hover { text-decoration: underline; }
.s5-or {
  font-size: 20px;
  color: var(--black);
  margin-top: 12px;
}
.s5-coords {
  font-size: 20px;
  color: var(--blue);
  margin-top: 8px;
  cursor: pointer;
  display: inline-block;
}
.s5-coords:hover { text-decoration: underline; }
.s5-email-title {
  font-size: 32px;
  color: var(--black);
  margin-top: 30px;
  font-weight: 300;
}
.s5-email {
  font-size: 28px;
  color: var(--red);
  margin-top: 8px;
}
.s5-email:hover { text-decoration: underline; }

/* ══════════════════════════════════════════
   SECTION 6 — FOOTER
══════════════════════════════════════════ */
#s6 {
  background: #3a3a3a;
  padding: 0;
  margin: 0;
}
.s1-gap-footer {
  width: 100%;
  height: 2px;
  background: #fff;
  position: relative;
}
.s6-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 70px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0px 20px 60px;
}
.s6-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}
.s6-din-img {
  width: 197px;
  height: 263px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  margin-top: -60px;
  z-index: 10;
}
.s6-logo-img {
  width: 232px;
  height: 141px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}
.s6-up-img {
  width: 194px;
  height: 73px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}
.s6-din-img img,
.s6-logo-img img,
.s6-up-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.s6-item p {
  font-size: 20px;
  color: var(--white);
  line-height: 1.35;
  text-align: center;
  margin-top: 24px;
}
.stripe-dark-red {
  width: 100%;
  height: 8px;
  background: var(--dark-red);
}

/* ══════════════════════════════════════════
   MEDIA QUERIES (общие)
══════════════════════════════════════════ */

/* 1400-1599px */
@media (min-width: 1400px) and (max-width: 1599px) {
  .s1-wrap {
    height: 85vh;
    min-height: 600px;
    max-height: 900px;
  }
  .slide-text {
    left: 100px;
    top: 200px;
  }
  .slide-text .s1-brand { font-size: 90px; }
  .slide-text .s1-sub {
    font-size: 26px;
    margin-top: 25px;
    max-width: 650px;
  }
  .slide-text .s1-cta {
    font-size: 40px;
    margin-top: 40px;
    max-width: 700px;
  }
  .slide-cauldron {
    width: 360px;
    top: 300px;
    right: 40px;
    left: auto;
  }
  .header { padding: 15px 40px 0; }
  .header__logo img { height: 80px; }
  .header__center .company-name { font-size: 22px; }
  .header__center .tagline { font-size: 26px; }
  .main-nav { gap: 30px; margin-top: 25px; }
  .main-nav a { font-size: 20px; }
  .header__phone .phone-number { font-size: 28px; }
  .header__phone .phone-label { font-size: 16px; }
}

/* 1200-1399px */
@media (min-width: 1200px) and (max-width: 1399px) {
  .s1-wrap {
    height: 80vh;
    min-height: 500px;
    max-height: 750px;
  }
  .slide-text {
    left: 100px;
    top: 200px;
  }
  .slide-text .s1-brand { font-size: 70px; }
  .slide-text .s1-sub {
    font-size: 22px;
    margin-top: 25px;
    max-width: 650px;
  }
  .slide-text .s1-cta {
    font-size: 32px;
    margin-top: 40px;
    max-width: 700px;
  }
  .slide-cauldron {
    width: 330px;
    top: 300px;
    right: 10px;
    left: auto;
  }
  .header__logo img { height: 70px; }
  .header__center .company-name { font-size: 20px; }
  .header__center .tagline { font-size: 20px; }
  .main-nav { gap: 26px; margin-top: 25px; }
  .main-nav a { font-size: 16px; }
  .header__phone .phone-number { font-size: 24px; }
  .header__phone .phone-label { font-size: 13px; }
}

/* 900-1199px */
@media (min-width: 900px) and (max-width: 1199px) {
  .s1-wrap {
    height: 80vh;
    min-height: 400px;
    max-height: 500px;
  }
  .slide-text {
    left: 100px;
    top: 160px;
  }
  .slide-text .s1-brand { font-size: 50px; }
  .slide-text .s1-sub {
    font-size: 18px;
    margin-top: 25px;
    max-width: 550px;
  }
  .slide-text .s1-cta {
    font-size: 25px;
    margin-top: 40px;
    max-width: 550px;
  }
  .slide-cauldron {
    width: 220px;
    top: 230px;
    right: 10px;
    left: auto;
  }
  .header { padding: 15px 20px 0; }
  .header__logo img { height: 60px; }
  .header__center { margin: 0; flex: 1; }
  .header__center .company-name { font-size: 14px; display: block; }
  .header__center .tagline { font-size: 18px; display: block; }
  .main-nav { gap: 22px; margin-top: 25px; }
  .main-nav a { font-size: 14px; white-space: nowrap; }
  .header__phone { min-width: auto; padding-top: 10px; flex-shrink: 0; margin-right: 0; }
  .header__phone .phone-number { font-size: 20px; white-space: nowrap; }
  .header__phone .phone-label { font-size: 12px; white-space: nowrap; }
}

/* 640-899px */
@media (min-width: 640px) and (max-width: 899px) {
  .s1-wrap {
    height: 80vh;
    min-height: 400px;
    max-height: 500px;
  }
  .slide-text {
    left: 60px;
    top: 140px;
  }
  .slide-text .s1-brand { font-size: 38px; }
  .slide-text .s1-sub {
    font-size: 20px;
    margin-top: 25px;
    max-width: 380px;
  }
  .slide-text .s1-cta {
    font-size: 22px;
    margin-top: 40px;
    max-width: 380px;
  }
  .slide-cauldron {
    width: 220px;
    top: 230px;
    right: 10px;
    left: auto;
  }
  .header { padding: 15px 20px 0; }
  .header__logo img { height: 60px; }
  .header__center { display: none; }
  .main-nav { display: none; }
  .header__phone {
    min-width: auto;
    padding-top: 10px;
    flex-shrink: 0;
    order: 1;
    margin-right: 45px;
  }
  .header__phone .phone-number { font-size: 22px; white-space: nowrap; }
  .header__phone .phone-label { font-size: 12px; white-space: nowrap; }
}

/* 480-639px */
@media (min-width: 480px) and (max-width: 639px) {
  .s1-wrap {
    height: 80vh;
    min-height: 600px;
    max-height: 800px;
  }
  .slide-text {
    left: 60px;
    top: 140px;
  }
  .slide-text .s1-brand { font-size: 38px; }
  .slide-text .s1-sub {
    font-size: 20px;
    margin-top: 25px;
    max-width: 380px;
  }
  .slide-text .s1-cta {
    font-size: 22px;
    margin-top: 40px;
    max-width: 380px;
  }
  .slide-cauldron {
    width: 220px;
    top: 400px;
    right: 10px;
    left: auto;
  }
  .header { padding: 15px 20px 0; }
  .header__logo img { height: 60px; }
  .header__center { display: none; }
  .main-nav { display: none; }
  .header__phone {
    min-width: auto;
    padding-top: 10px;
    flex-shrink: 0;
    order: 1;
    margin-right: 45px;
  }
  .header__phone .phone-number { font-size: 22px; white-space: nowrap; }
  .header__phone .phone-label { font-size: 12px; white-space: nowrap; }
}

/* 320-479px */
@media (min-width: 320px) and (max-width: 479px) {
  .s1-wrap {
    height: 80vh;
    min-height: 600px;
    max-height: 800px;
  }
  .slide-text {
    left: 60px;
    top: 140px;
  }
  .slide-text .s1-brand { font-size: 38px; }
  .slide-text .s1-sub {
    font-size: 20px;
    margin-top: 25px;
    max-width: 380px;
  }
  .slide-text .s1-cta {
    font-size: 22px;
    margin-top: 40px;
    max-width: 380px;
  }
  .slide-cauldron { display: none; }
  .header { padding: 15px 20px 0; }
  .header__logo img { height: 60px; }
  .header__center { display: none; }
  .main-nav { display: none; }
  .header__phone { display: none; }
}



/* ══════════════════════════════════════════
   SECTION 2 — АДАПТИВ
══════════════════════════════════════════ */
@media (min-width: 640px) and (max-width: 899px) {
  .section-inner {
    margin-top: 60px;
    padding: 0 20px;
  }
  .s2-headline { font-size: 28px; }
  .s2-sub-title { font-size: 22px; margin-top: 25px; }
  .s2-cols-2 { gap: 30px; flex-wrap: wrap; }
  .s2-col-2 .thumb { width: 260px; }
  .s2-col-2 p { font-size: 20px; }
  .s2-cols-3 { gap: 25px; flex-wrap: wrap; }
  .s2-col-3 .thumb { width: 140px; }
  .s2-stat-big { font-size: 22px; }
  .s2-stat-small { font-size: 16px; }
  .s2-cols-4 { gap: 20px; flex-wrap: wrap; }
  .s2-col-4 .thumb { width: 120px; }
  .s2-col-4 p { font-size: 14px; }
}
@media (min-width: 480px) and (max-width: 639px) {
  .section-inner {
    margin-top: 50px;
    padding: 0 15px;
  }
  .s2-headline { font-size: 24px; }
  .s2-sub-title { font-size: 20px; margin-top: 20px; }
  .s2-cols-2 { gap: 25px; flex-wrap: wrap; }
  .s2-col-2 .thumb { width: 220px; }
  .s2-col-2 p { font-size: 18px; }
  .s2-cols-3 { gap: 20px; flex-wrap: wrap; }
  .s2-col-3 .thumb { width: 110px; }
  .s2-stat-big { font-size: 20px; }
  .s2-stat-small { font-size: 14px; }
  .s2-cols-4 { gap: 15px; flex-wrap: wrap; }
  .s2-col-4 .thumb { width: 100px; }
  .s2-col-4 p { font-size: 13px; }
}
@media (min-width: 320px) and (max-width: 479px) {
  .section-inner {
    margin-top: 40px;
    padding: 0 15px;
  }
  .s2-headline { font-size: 22px; }
  .s2-sub-title { font-size: 18px; margin-top: 15px; }
  .s2-cols-2 { flex-direction: column; gap: 30px; align-items: center; }
  .s2-col-2 { max-width: 280px; }
  .s2-col-2 .thumb { width: 200px; }
  .s2-col-2 p { font-size: 18px; }
  .s2-cols-3 { flex-direction: column; gap: 30px; align-items: center; }
  .s2-col-3 .thumb { width: 120px; }
  .s2-stat-big { font-size: 22px; }
  .s2-stat-small { font-size: 15px; }
  .s2-cols-4 { flex-direction: column; gap: 25px; align-items: center; }
  .s2-col-4 { max-width: 240px; }
  .s2-col-4 .thumb { width: 100px; }
  .s2-col-4 p { font-size: 14px; }
}

/* ══════════════════════════════════════════
   SECTION 3 — АДАПТИВ
══════════════════════════════════════════ */
@media (min-width: 1201px) and (max-width: 1900px) {
  .s3-products-list { display: none; }
  .s3-img-wrap { width: 800px; height: 178px; }
  .s3-arrow { width: 40px; height: 100px; }
  .s3-arrow img { width: 100%; height: auto; }
  #s3-prev { margin-right: 60px; }
  #s3-next { margin-left: 60px; }
  .s3-caption { font-size: 16px; max-width: 700px; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .s3-products-list { display: none; }
  .s3-img-wrap { width: 550px; height: 122px; }
  .s3-arrow { width: 32px; height: 80px; }
  .s3-arrow img { width: 100%; height: auto; }
  #s3-prev { margin-right: 40px; }
  #s3-next { margin-left: 40px; }
  .s3-caption { font-size: 14px; max-width: 500px; }
  .s3-tab { font-size: 14px; padding: 8px 14px; }
}
@media (min-width: 640px) and (max-width: 900px) {
  .s3-products-list { display: none; }
  .s3-img-wrap { width: 400px; height: 89px; }
  .s3-arrow { width: 28px; height: 70px; }
  .s3-arrow img { width: 100%; height: auto; }
  #s3-prev { margin-right: 20px; }
  #s3-next { margin-left: 20px; }
  .s3-caption { font-size: 13px; max-width: 400px; padding: 0 15px; }
  .s3-tabs { gap: 5px; flex-wrap: wrap; }
  .s3-tab { font-size: 12px; padding: 5px 10px; }
}
@media (min-width: 480px) and (max-width: 639px) {
  .s3-caption { display: none; }
  .s3-product, .s3-arrow, .s3-tabs { display: none; }
  .s3-products-list { display: flex; flex-direction: column; gap: 40px; margin-top: 40px; }
  .s3-product-item { display: flex; flex-direction: column; align-items: center; gap: 15px; padding: 20px; border-bottom: 1px solid #eee; }
  .s3-product-item:last-child { border-bottom: none; }
  .s3-product-item .s3-product-title { font-size: 20px; font-weight: 600; color: var(--black); }
  .s3-product-item img { width: 90%; max-width: 350px; height: auto; }
  .s3-product-item .s3-product-desc { font-size: 14px; text-align: center; line-height: 1.5; padding: 0 15px; }
  .s3-product-item .more-info { color: var(--red); cursor: pointer; font-size: 14px; margin-top: 5px; display: inline-block; }
}
@media (min-width: 320px) and (max-width: 479px) {
  .s3-caption { display: none; }
  .s3-product, .s3-arrow, .s3-tabs { display: none; }
  .s3-products-list { display: flex; flex-direction: column; gap: 30px; margin-top: 30px; }
  .s3-product-item { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 15px; border-bottom: 1px solid #eee; }
  .s3-product-item:last-child { border-bottom: none; }
  .s3-product-item .s3-product-title { font-size: 18px; font-weight: 600; color: var(--black); }
  .s3-product-item img { width: 95%; max-width: 250px; height: auto; }
  .s3-product-item .s3-product-desc { font-size: 13px; text-align: center; line-height: 1.4; padding: 0 10px; }
  .s3-product-item .more-info { color: var(--red); cursor: pointer; font-size: 13px; margin-top: 5px; display: inline-block; }
}


/* ══════════════════════════════════════════
   SECTION 2 — АНИМАЦИЯ ПРИ СКРОЛЛЕ
══════════════════════════════════════════ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px) scale(0.8);
  transition: opacity 1s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Задержки для последовательного появления */
.s2-headline.animate-on-scroll { transition-delay: 0s; }
.s2-sub-title.animate-on-scroll { transition-delay: 0.2s; }
.s2-cols-2.animate-on-scroll { transition-delay: 0.2s; }
.s2-cols-3.animate-on-scroll { transition-delay: 0.2s; }
.s2-cols-4.animate-on-scroll { transition-delay: 0.2s; }

/* На мобильных анимацию можно чуть ускорить */
@media (max-width: 639px) {
  .animate-on-scroll {
    transition-duration: 0.4s;
  }
  .s2-headline.animate-on-scroll { transition-delay: 0s; }
  .s2-sub-title.animate-on-scroll { transition-delay: 0.05s; }
  .s2-cols-2.animate-on-scroll { transition-delay: 0.1s; }
  .s2-cols-3.animate-on-scroll { transition-delay: 0.15s; }
  .s2-cols-4.animate-on-scroll { transition-delay: 0.2s; }
}





/* ══════════════════════════════════════════
   Z-INDEX LAYERS
══════════════════════════════════════════ */

/* Фон слайдера и градиент — самый низ */
.s1-clip {
  z-index: 0;
}

.slide-bg,
.slide-gradient {
  z-index: 0;
}

/* Ткань — слой 1 (уже задано в cloth-banner.js) */

/* Всё остальное — слой 2 */
.header,
.section-gap,
section {
  position: relative;
  z-index: 2;
}

/* Карта и карусель партнёров — тоже слой 2
.s4-map,
.s4-carousel-wrap,
.s4-scroll-control {
  position: relative;
  z-index: 2;
} */

/* Модальное окно — самый верх */
.modal {
  z-index: 1000;
}








/* ══════════════════════════════════════════
   FOOTER — РАЗДЕЛЕНИЕ НА ФОН И КОНТЕНТ
══════════════════════════════════════════ */

/* Линии над футером — выше ткани */
.footer-lines {
  position: relative;
  z-index: 0;
}

/* Футер — не создаёт новый контекст наложения */
#s6 {
  position: relative;
  background: transparent;
  padding: 0;
  margin: 0;
}

/* Фон футера — ниже ткани (z-index: auto = 0) */
.s6-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #3a3a3a;
}

/* Контент футера — выше ткани */
.s6-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 70px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0px 20px 60px;
  z-index: 2;
}



/* ══════════════════════════════════════════
   КНОПКА "НАВЕРХ"
══════════════════════════════════════════ */

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(58, 58, 58, 0.2);  /* серый, как у футера, прозрачность 80% */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s;
  z-index: 1000;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.scroll-to-top:hover {
  background: rgba(58, 58, 58, 0.95);  /* чуть темнее при наведении */
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: rgba(158, 0, 5, 0.9);
  transform: scale(1.05);
}

.scroll-to-top img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1); /* делаем иконку белой */
}

/* Адаптив для мобильных — можно скрыть или уменьшить */
@media (max-width: 768px) {
  .scroll-to-top {
    width: 44px;
    height: 44px;
    bottom: 20px;
    right: 20px;
  }
  .scroll-to-top img {
    width: 24px;
    height: 24px;
  }
}

/* ============================================
   HERO SLIDER — ДОПОЛНИТЕЛЬНЫЕ СТИЛИ
============================================ */

/* Обертка слайдера — сохраняем overflow visible для котла */
.s1-wrap {
  position: relative;
  overflow: visible; /* ← было hidden, меняем на visible */
}

/* Контейнер для слайдов — здесь обрезаем */
.s1-clip {
  position: absolute;
  inset: 0;
  overflow: hidden; /* ← здесь hidden, чтобы слайды не вылезали */
}

/* Каждый слайд */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Фон внутри слайда */
.hero-slide .slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
}

/* Градиент — возвращаем height: auto как было */
.hero-slide .slide-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto; /* ← было 100%, меняем на auto */
  z-index: 3;
  pointer-events: none;
  display: block;
}

/* Текст и котел — наследуют стили от .slide-text, .slide-cauldron */
.hero-slide .slide-text {
  z-index: 5;
}

.hero-slide .slide-cauldron {
  z-index: 20;
  pointer-events: none;
}

/* ============================================
   СТРЕЛКИ
============================================ */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0.25;
  transition: opacity 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
}

.hero-arrow:hover {
  opacity: 0.9;
}

.hero-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-arrow img {
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

/* ============================================
   ТОЧКИ
============================================ */
.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  gap: 14px;
  align-items: center;
}

.hero-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hero-dot.active {
  opacity: 1;
  transform: scale(1.2);
}

.hero-dot:hover {
  opacity: 0.8;
}

/* ============================================
   АДАПТИВ ДЛЯ СТРЕЛОК И ТОЧЕК
============================================ */

/* 1200-1399px */
@media (min-width: 1200px) and (max-width: 1399px) {
  .hero-arrow {
    width: 48px;
    height: 48px;
  }
  .hero-arrow img {
    width: 48px;
    height: 48px;
  }
  .hero-dots {
    bottom: 25px;
    gap: 12px;
  }
  .hero-dot {
    width: 12px;
    height: 12px;
  }
}

/* 900-1199px */
@media (min-width: 900px) and (max-width: 1199px) {
  .hero-arrow {
    width: 40px;
    height: 40px;
  }
  .hero-arrow img {
    width: 40px;
    height: 40px;
  }
  .hero-dots {
    bottom: 20px;
    gap: 10px;
  }
  .hero-dot {
    width: 10px;
    height: 10px;
  }
}

/* 640-899px */
@media (min-width: 640px) and (max-width: 899px) {
  .hero-arrow {
    width: 36px;
    height: 36px;
  }
  .hero-arrow img {
    width: 36px;
    height: 36px;
  }
  .hero-prev {
    left: 12px;
  }
  .hero-next {
    right: 12px;
  }
  .hero-dots {
    bottom: 18px;
    gap: 10px;
  }
  .hero-dot {
    width: 10px;
    height: 10px;
  }
}

/* 480-639px */
@media (min-width: 480px) and (max-width: 639px) {
  .hero-arrow {
    width: 32px;
    height: 32px;
  }
  .hero-arrow img {
    width: 32px;
    height: 32px;
  }
  .hero-prev {
    left: 10px;
  }
  .hero-next {
    right: 10px;
  }
  .hero-dots {
    bottom: 15px;
    gap: 10px;
  }
  .hero-dot {
    width: 10px;
    height: 10px;
  }
}

/* 320-479px */
@media (min-width: 320px) and (max-width: 479px) {
  .hero-arrow {
    width: 28px;
    height: 28px;
  }
  .hero-arrow img {
    width: 28px;
    height: 28px;
  }
  .hero-prev {
    left: 8px;
  }
  .hero-next {
    right: 8px;
  }
  .hero-dots {
    bottom: 12px;
    gap: 8px;
  }
  .hero-dot {
    width: 8px;
    height: 8px;
  }
}


/* ============================================
   ТРЕТИЙ СЛАЙД — БЕЛЫЙ ТЕКСТ (КРОМЕ ЗАГОЛОВКА)
============================================ */
.slide-third .slide-text {
  color: #ffffff !important;
}

.slide-third .slide-text * {
  color: #ffffff !important;
}

.slide-third .slide-text .s1-brand {
  color: #E41F12 !important; /* красный для заголовка */
}