html,
body {
  overflow-x: hidden;
  width: 100%;
}


/* ========================================
   2. ТИПОГРАФИКА
======================================== */
h2 {
  font: normal var(--fw-medium) clamp(3rem, 5vw, 6rem) / 1.1 var(--_font-accent);
  letter-spacing: -0.06rem;
  color: var(--t-bright);
}

p.t-bright {
  color: var(--t-bright);
}

p.t-140 {
  line-height: 1.4;
  font-size: 2rem;
}

.pw-text-style-overline {
  font: 200 clamp(12px, 1.5vw, 16px) / 1.5 var(--_font-accent);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 12px;
}

.pw-text-style-hl--xl {
  font: 200 clamp(2.5rem, 8vw, 7rem) / 0.9 var(--_font-accent);
  color: #fff;
  margin: 0 0 clamp(10px, 2vw, 20px);
  letter-spacing: -2px;
  text-transform: uppercase;
}

.pw-text-style-hl--xl strong {
  font-weight: 700;
}

.pw-text-style-intro,
.inner-headline__text {
  font: 300 clamp(1.2rem, 2vw, 2.1rem) / 1.6 var(--_font-accent);
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 clamp(15px, 3vw, 30px);
  max-width: 600px;
  text-indent: 0 !important;
}

/* ========================================
   3. КОНТЕЙНЕРЫ
======================================== */
.mxd-container {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 6rem;
}

.mxd-container.grid-container {
  padding: 0 clamp(2rem, 3vw, 4.5rem);
}

.mxd-container.no-padding-container {
  padding: 0;
  overflow: hidden;
}

/* ========================================
   4. СЕКЦИИ
======================================== */
.mxd-section {
  position: relative;
  width: 100%;
  min-width: 360px;
}

.mxd-section.padding-default {
  padding-bottom: 5rem;
}

.mxd-section.padding-pre-title {
  padding-bottom: 0rem;
}

.mxd-section.padding-grid-pre-pinned {
  padding-bottom: 0rem;
}

.mxd-section.text {
  font: 300 20px/1.4 var(--_font-accent);
}

/* ========================================
   5. DIVIDER & VIDEO BANNER
======================================== */
.mxd-divider {
  height: 760px;
  margin-top: 10px;
}

.mxd-divider__video {
  position: relative;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.mxd-divider__video .parallax-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mxd-divider__video .text-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(20px, 5vw, 80px);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.8) 30%, transparent 100%);
  z-index: 10;
}

.hero-00-manifest {
  display: flex;
  text-align: justify;
}

.hero-00-manifest .mxd-manifest {
  font-size: 3rem;
  max-width: 100%;
  margin: 0rem 6rem 0rem 10rem;
}

/* ========================================
   6. СТАТИСТИКА
======================================== */
.stats-bar {
  display: flex;
  gap: clamp(15px, 4vw, 50px);
  margin-top: clamp(10px, 2vw, 20px);
  padding-top: clamp(10px, 2vw, 20px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font: 300 clamp(1.8rem, 4vw, 3.5rem) / 1 var(--_font-accent);
  color: #fff;
  margin-bottom: 5px;
}

.stat-label {
  font: 400 clamp(0.7rem, 1.2vw, 14px) / 1.2 var(--_font-accent);
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================================
   7. СЧЕТЧИКИ
======================================== */
.mxd-stats-simple {
  position: relative;
}

.mxd-stats-simple__image {
  height: 10.4rem;
  width: auto;
  object-fit: contain;
  margin-bottom: 2rem;
}

.mxd-stats-number {
  font: normal var(--fw-medium) clamp(4rem, 7vw, 9rem) / 0.8 var(--_font-accent);
  color: var(--t-bright);
  letter-spacing: -0.1rem;
}

/* ========================================
   8. ЗАГОЛОВКИ СЕКЦИЙ
======================================== */
.faw-history-title,
.faw-quantity-title,
.faw-safe-title,
.faw-commet-title {
  text-align: center;
  position: relative;
  z-index: 2;
  margin: clamp(1rem, 5vw, 14rem) 0 clamp(1rem, 3vw, 5rem);
}

.faw-history-title h2 {
  font: 700 clamp(3rem, 7vw, 6rem) / 1.1 var(--_font-accent);
  color: #000;
  letter-spacing: clamp(1px, 0.3vw, 4px);
}

/* ========================================
   9. MARQUEE (ЛЕНТА ИСТОРИИ)
======================================== */
.marquee {
  max-width: 100%;
  overflow: hidden;
  margin-top: clamp(0rem, 8vw, 14rem);
}

.marquee__item {
  position: relative;
  width: 430px;
  height: 320px;
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 20px;
}

.marquee__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.7));
  opacity: 0.8;
  transition: opacity 0.3s;
  z-index: 2;
}

.marquee__text {
  position: absolute;
  inset: auto 0 0;
  padding: 0rem 2rem 1rem 2rem;
  color: var(--t-opp-bright);
  font-size: clamp(1.2rem, 2.5vw, 3rem);
  z-index: 3;
}

.marquee__text span {
  display: block;
  font: 200 clamp(12px, 2vw, 19px) / 1.4 var(--_font-accent);
  letter-spacing: 0.3px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
}

/* ========================================
   10. МОДАЛЬНЫЕ ОКНА
======================================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  background: #000;
  width: min(900px, 90%);
  max-height: 90vh;
  padding: 0;
  border-radius: 25px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 60px rgba(0, 0, 0, 0.5);
}

.modal-content img {
  width: 100%;
  height: clamp(300px, 60vh, 580px);
  object-fit: cover;
  /* border-radius: 25px 25px 0 0; */
}

.modal-text {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 20px clamp(20px, 5vw, 40px);
  font-family: var(--_font-accent);
}

.history-section-elemet_title {
  font: 700 clamp(1.5rem, 2.5vw, 2rem) / 1.2 var(--_font-accent);
  margin-bottom: 5px;
}

.close {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 35px;
  color: #ffffff;
  cursor: pointer;
  line-height: 40px;
  width: 40px;
  text-align: center;
  background: #00000085;
  border-radius: 50%;
  transition: color 0.3s;
  z-index: 100;
}

.close:hover {
  color: #ff4444;
}

/* ========================================
   11. ПАРТНЕРЫ
======================================== */
.mxd-partners-cards {
  position: relative;
}

.mxd-partners-cards__item {
  position: relative;
  height: 250px;
}

.mxd-partners-cards__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.mxd-partners-cards__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--base-tint);
  border-radius: var(--radius-m);
  z-index: -1;
  transform: scale(1);
  transition: transform var(--_animspeed-slow) var(--_animbezier);
}

.no-touch .mxd-partners-cards__inner:hover::before {
  transform: scale(1.04);
}

.no-touch .mxd-partners-cards__inner:hover .mxd-partners-cards__logo img {
  transform: scale(1.4);
}

.mxd-partners-cards__logo {
  width: 170px;
  height: auto;
}

.mxd-partners-cards__logo img {
  transition: transform 200ms;
}

.mxd-section.padding-grid-pre-mtext {
  padding-bottom: 0rem;
}

/* ========================================
   12. SWIPER TESTIMONIALS (ОТЗЫВЫ)
======================================== */

/* Основной контейнер */
.testimonials-slider {
  position: relative;
  overflow: visible;
  width: 100%;
  max-width: 100%;
}

.swiper-testimonials {
  position: relative;
  height: 100%;
  padding-bottom: 7rem;
  overflow: visible !important;
  width: 100%;
}

.swiper-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  transition-property: transform;
  box-sizing: border-box;
}

/* Слайды с эффектами */
.swiper-slide {
  width: 100%;
  max-width: 800px;
  height: auto;
  box-sizing: border-box;
  position: relative;
  flex-shrink: 0;
  opacity: 0.5;
  transform: scale(0.92);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.swiper-slide.swiper-slide-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.swiper-slide.swiper-slide-next {
  opacity: 0.6;
  transform: scale(0.95);
  z-index: 1;
}

.swiper-slide.swiper-slide-prev {
  opacity: 0.4;
  transform: scale(0.92);
}

/* Карточка отзыва */
.mxd-testimonials-card {
  background: #ffffff;
  border-radius: 24px;
  padding: clamp(2rem, 4vw, 3.5rem);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.swiper-slide-active .mxd-testimonials-card {
  border-color: transparent;
}

.mxd-testimonials-card__content {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
  height: 100%;
}

/* Медиа блок (фото + имя) */
.mxd-testimonials-card__media {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.mxd-testimonials-card__photo {
  width: 8rem;
  height: 8rem;
  overflow: hidden;
  flex-shrink: 0;
}

.mxd-testimonials-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mxd-testimonials-card__author {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mxd-testimonials-card__name {
  font: 600 clamp(1.6rem, 2vw, 2rem) / 1.2 var(--_font-accent);
  color: var(--t-bright);
  margin: 0;
}

.mxd-testimonials-card__position {
  font: 400 clamp(1.2rem, 1.5vw, 1.4rem) / 1.3 var(--_font-accent);
  color: var(--t-muted);
  margin: 0;
}

/* Текст отзыва */
.mxd-testimonials-card__text {
  flex: 1;
  min-height: 80px;
}

.mxd-testimonials-card__text p {
  font: 400 clamp(1.4rem, 1.8vw, 1.6rem) / 1.6 var(--_font-accent);
  color: var(--t-bright);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Видео */
.mxd-testimonials-card__video {
  margin-top: clamp(0.5rem, 1.5vw, 1.2rem);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.video-container {
  position: relative;
  padding-bottom: clamp(60%, 65vw, 56.25%);
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-m);
  transition: transform 0.3s ease;
}

.video-container:hover iframe {
  transform: scale(1.02);
}

/* ========================================
   13. АНИМАЦИИ
======================================== */
.loading__item {
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   14. УТИЛИТЫ
======================================== */
.px-0 {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.g-0 {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

/* ========================================
   15. МЕДИАЗАПРОСЫ
======================================== */

/* МОБИЛЬНЫЕ (до 767px) */
@media (max-width: 767px) {
  .mxd-divider {
    border-radius: 0;
    height: 401px;
  }

  .mxd-container {
    padding: 0rem;
    box-sizing: border-box;
  }

  .mxd-divider__video .text-overlay {
    padding: 0rem 0rem 2rem 1rem;


  }

  .pw-text-style-overline {
    font: 200 clamp(10px, 1.5vw, 16px) / 1.5 var(--_font-accent);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0px;
  }

  .pw-text-style-hl--xl {
    font: 200 clamp(2.5rem, 6vw, 7rem) / 0.9 var(--_font-accent);
    margin: 0 0 clamp(0px, 0vw, 16px);
    letter-spacing: 0px;
  }

  .px-0 {
    margin-top: -0rem;
  }

  .hero-00-manifest .mxd-manifest {
    font-size: 2rem;
    margin: 0 20px 20px;
    max-width: 90%;
  }

  .marquee {
    margin-top: 0;
  }

  .modal-content {
    border-radius: 20px;
    height: 80vh;
    max-height: 600px;
  }

  .modal-content img {
    height: 60vh;
    max-height: 400px;
  }

  .section-filter {
    justify-content: flex-start;
    margin-left: 0;
  }

  /* Swiper на мобильных */
  .swiper-slide {
    max-width: 90vw;
  }

  .mxd-testimonials-card__text p {
    -webkit-line-clamp: 3;
  }

  .mxd-testimonials-card__content {
    gap: 2rem;
  }

  .video-container {
    padding-bottom: 75%;
  }

  .swiper-testimonials {
    padding-bottom: 8rem;
  }
}

/* ПЛАНШЕТЫ (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
  .mxd-container {
    padding: 0 0rem;
  }

  .mxd-divider {
    border-radius: 0;
    height: 550px;
  }

  .pw-text-style-hl--xl {
    font: 200 clamp(2.5rem, 6vw, 7rem) / 0.9 var(--_font-accent);
    letter-spacing: 2px;
  }

  .mxd-divider__video .text-overlay {
    padding: clamp(20px, 0vw, 80px);
  }

  .hero-00-manifest .mxd-manifest {
    font-size: 2rem;
    margin: 0px 16px 15px;
  }

  .px-0 {
    margin-top: 0rem;
  }

  .marquee {
    margin-top: 0;
  }

  /* Swiper на планшетах */
  .swiper-slide {
    max-width: 700px;
  }

  .testimonials-slider__shadow {
    width: 80px;
  }
}

/* ДЕСКТОП (1200px+) */
@media (min-width: 1200px) {
  .mxd-stats-simple__image {
    opacity: 0;
    transform: scale(0);
    transition: all var(--_animspeed-medium) var(--_animbezier);
  }

  .no-touch .mxd-stats-simple__item .mxd-stats-simple__image {
    opacity: 1;
    transform: scale(1);
  }

  /* Тень справа для Swiper */
  .testimonials-slider__shadow {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    z-index: 3;
    pointer-events: none;
  }

  .video-container {
    padding-bottom: 50%;
  }
}

/* БОЛЬШИЕ ЭКРАНЫ (1600px+) */
@media (min-width: 1600px) {
  .mxd-container.grid-container {
    padding: 0 7.5rem;
  }

  .mxd-divider {
    height: 930px;
  }

  .mxd-stats-number {
    font-size: 9rem;
  }
}

/* ========================================
   ТЕМНАЯ ТЕМА (ЧЕРНО-БЕЛАЯ)
======================================== */
body[data-theme="dark"] {
  --t-bright: #ffffff;
  --t-opp-bright: #000000;
  --t-muted: #a3a3a3;
  --base-tint: #1a1a1a;
  --bg-card: #262626;
  --bg-card-hover: #333333;
  --radius-m: 12px;
}

/* Типографика */
body[data-theme="dark"] h2 {
  color: #ffffff;
}

body[data-theme="dark"] .faw-history-title h2 {
  color: #ffffff;
}

body[data-theme="dark"] p.t-bright {
  color: #ffffff;
}

body[data-theme="dark"] .pw-text-style-overline,
body[data-theme="dark"] .pw-text-style-hl--xl,
body[data-theme="dark"] .pw-text-style-intro,
body[data-theme="dark"] .inner-headline__text {
  color: #ffffff;
}

/* Секции */
body[data-theme="dark"] .mxd-section.text {
  color: #e5e5e5;
}

/* Видео баннер */
body[data-theme="dark"] .mxd-divider__video .text-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.85) 30%, transparent 100%);
}

/* Статистика */
body[data-theme="dark"] .stats-bar {
  border-top-color: rgba(255, 255, 255, 0.15);
}

body[data-theme="dark"] .stat-value {
  color: #ffffff;
}

body[data-theme="dark"] .stat-label {
  color: #a3a3a3;
}

/* Счетчики */
body[data-theme="dark"] .mxd-stats-number {
  color: #ffffff;
}

/* Marquee (лента истории) */
body[data-theme="dark"] .marquee__item {
  background: #1a1a1a;
}

body[data-theme="dark"] .marquee__overlay {
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.9));
}

body[data-theme="dark"] .marquee__text {
  color: #ffffff;
}

body[data-theme="dark"] .marquee__text span {
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.95);
}

/* Модальные окна */
body[data-theme="dark"] .modal {
  background: rgba(0, 0, 0, 0.85);
}

body[data-theme="dark"] .modal-content {
  background: #1a1a1a;
  box-shadow: 0 40px 60px rgba(0, 0, 0, 0.8);
}

body[data-theme="dark"] .modal-text {
  color: #ffffff;
}

body[data-theme="dark"] .history-section-elemet_title {
  color: #ffffff;
}

body[data-theme="dark"] .close {
  color: #ffffff;
}

body[data-theme="dark"] .close:hover {
  color: #999999;
}

/* Партнеры */
body[data-theme="dark"] .mxd-partners-cards__inner::before {
  background: #1a1a1a;
  border: 1px solid #333333;
}

body[data-theme="dark"] .no-touch .mxd-partners-cards__inner:hover::before {
  background: #262626;
}

body[data-theme="dark"] .mxd-partners-cards__logo img {
  filter: brightness(0) invert(1);
}

/* Отзывы (Testimonials) */
body[data-theme="dark"] .mxd-testimonials-card {
  background: #1a1a1a;
  border-color: #333333;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

body[data-theme="dark"] .swiper-slide-active .mxd-testimonials-card {
  border-color: #404040;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

body[data-theme="dark"] .mxd-testimonials-card__name {
  color: #ffffff;
}

body[data-theme="dark"] .mxd-testimonials-card__position {
  color: #a3a3a3;
}

body[data-theme="dark"] .mxd-testimonials-card__text p {
  color: #e5e5e5;
}

body[data-theme="dark"] .mxd-testimonials-card__video {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

/* Swiper пагинация и навигация */
body[data-theme="dark"] .swiper-pagination-bullet {
  background: #666666;
  opacity: 0.5;
}

body[data-theme="dark"] .swiper-pagination-bullet-active {
  background: #ffffff;
  opacity: 1;
}

body[data-theme="dark"] .swiper-button-next,
body[data-theme="dark"] .swiper-button-prev {
  color: #ffffff;
}

/* Тени для Swiper */
body[data-theme="dark"] .testimonials-slider__shadow {
  background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
}

/* Дополнительные элементы */
body[data-theme="dark"] .hero-00-manifest .mxd-manifest {
  color: #ffffff;
}

/* Модальное окно - улучшенные стили */
body[data-theme="dark"] .modal {
  background: rgba(0, 0, 0, 0.90);
  backdrop-filter: blur(8px);
}

body[data-theme="dark"] .modal-content {
  background: #1a1a1a;
  box-shadow: 0 40px 60px rgba(0, 0, 0, 0.9);
  border: 1px solid #333333;
}

body[data-theme="dark"] .modal-text {
  color: #ffffff;
  background: #1a1a1a;
}

body[data-theme="dark"] .history-section-elemet_title {
  color: #ffffff;
}

body[data-theme="dark"] .close {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

body[data-theme="dark"] .close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}