/* === СБРОС И ОБЩИЕ НАСТРОЙКИ === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Цвета */
  --vsh-cyan: #00D4A1;
  --vsh-deepblue: #0338E0;
  --vsh-dark: #241F21;
  --vsh-light: #D9D9D9;
  --white: #FFF;

  /* Отступы */
  --page-padding-x: 40px;

  /* Типографика — desktop */
  --font_h1: clamp(40px, 6vw,100px);
  --font_h2: clamp(30px, 5.4vw, 70px);
  --font_h3: clamp(20px, 2.3vw, 50px);
  --font_h4: clamp(20px, 1.8vw, 50px);
  --font_txt_L: clamp(14px, 1.6vw, 30px);
  --font_txt_M: clamp(12px, 1.4vw, 24px);
  --font_txt_S: 12px;
}

/* === ШРИФТЫ === */
@font-face {
  font-family: 'Stapel-Bold';
  src: url('fonts/Stapel-Bold.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
  overflow-anchor: none;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--white);
  background-color: var(--white);
  overflow-x: hidden;
}

/* === ТИПОГРАФИКА === */
h1, h2, h3, h4 {
  font-family: 'Stapel-Bold', sans-serif;
  font-weight: 400;
  font-style: normal;
  margin: 0;
}

h1 {
  font-size: var(--font_h1);
  line-height: 100%;
  text-transform: uppercase;
}

h2 {
  font-size: var(--font_h2);
  line-height: 100%;
  text-transform: uppercase;
}

h3 {
  font-size: var(--font_h3);
  line-height: 90%;
}

h4 {
  font-size: var(--font_h4);
  line-height: 90%;
}

.txt_L {
  font-family: 'Montserrat', sans-serif;
  font-size: var(--font_txt_L);
  font-weight: 300;
  line-height: 100%;

}

.txt_M {
  font-size: var(--font_txt_M);
  line-height: 110%;
  font-weight: 300;
}

.txt_S {
  font-size: var(--font_txt_S);
  line-height: 100%;
  font-weight: 300;
}

/* === WEBGL CANVAS === */
#webgl-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

#webgl-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* === HERO БЛОК === */
.hero {
  height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 40px var(--page-padding-x);
  position: relative;
  z-index: 2;
}

.hero__content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20vh 0 0 0;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero .txt_L {
  color: var(--white);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 16px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--font_txt_S);
  font-weight: 300;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  width: fit-content;
}

.hero__btn:hover {
  background: var(--white);
  color: var(--vsh-dark);
}

.hero__arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* === ПРЕЛОАДЕР === */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #FFFFFF;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader__logo {
  max-width: 80vw;
  max-height: 30vh;
  margin-bottom: 40px;
}

.preloader__progress {
  width: 300px;
  height: 4px;
  background: #E0E0E0;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 20px;
}

.preloader__progress-fill {
  height: 100%;
  width: 0%;
  background: var(--vsh-cyan); /* #00D4A1 */
  transition: width 0.3s ease;
}

.preloader__percent {
  margin-top: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--font_txt_S);
  color: var(--vsh-dark);
}

/* === Lazy media с эффектом появления === */
.lazy-media {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.6s ease, transform 1.6s ease;
  will-change: opacity, transform;
}

.lazy-media.lazy-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === SERVICES БЛОК === */
.services {
  height: 100vh;
  display: flex;
  justify-content: center;
  position: relative;
  padding: 100px var(--page-padding-x);
}

.services__content {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 30px;
}

.services h2 {
  color: var(--white);
  margin-bottom: 48px;
  text-align: left;
}

.services__list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 70%;
}

.service-item h3 {
  color: var(--white);
  margin-bottom: 8px;
}

.service-item .txt_M {
  color: var(--vsh-light);
}

/* === STATS БЛОК === */
.stats {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 var(--page-padding-x);
}

.stats__content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 40px;
  width: 100%;
}

.stat-item {
  opacity: 0;
  transform: translateY(20px);
  animation: statSlideIn 1.8s forwards;
  animation-delay: var(--delay, 0s);
}

.stats__content .stat-item:nth-child(2) { width: 23%; }
.stats__content .stat-item:nth-child(3) { width: 35%; }
.stats__content .stat-item:nth-child(4) { width: 44%; }

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

.stats h2,
.stats h4 {
  color: var(--white);
  margin: 0;
}

.stats h2 {
  margin-bottom: 8px;
}

.stats h4 {
  color: var(--vsh-light);
}

/* === RELIABILITY БЛОК === */
.reliability {
  display: flex;
  align-items: center;
  padding: 0 0 0 var(--page-padding-x);
  position: relative;
  background-color: var(--white);
}

.reliability__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 0;
}

.reliability__text {
  flex: 1;
}

.reliability__title {
  color: var(--vsh-cyan);
  margin-bottom: 16px;
}

.reliability__subtitle {
  color: var(--vsh-dark);
}

.reliability__subtitle .highlight {
  color: var(--vsh-cyan);
}

.features {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.feature-title {
  color: var(--vsh-cyan);
  margin-bottom: 8px;
}

.feature-desc {
  color: var(--vsh-dark);
}

.reliability__image-container {
  flex: 1;
  width: 40%;
  display: flex;
  justify-content: flex-end;
}

.reliability__image-mask {
  width: 100%;
  height: 600px;
  position: relative;
  overflow: hidden;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

.reliability__image {
  height: 130%;
  top: -120px;
  object-fit: cover;
  display: block;
  position: relative;
  transform: translateY(40px);
  transition: transform 0.7s ease, opacity 0.7s ease;
  will-change: transform, opacity;
}

.reliability__image.lazy-visible {
  transform: translateY(0);
  opacity: 1;
}

/* === PROCESS БЛОК === */
.process {
  background: var(--white);
  color: var(--vsh-dark);
  display: flex;
  align-items: center;
  padding: 15vh var(--page-padding-x);
}

.process__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 60px;
}

.process__steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
  flex: 1;
  width: 50%;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-title {
  color: var(--vsh-cyan);
}

.step-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: var(--font_txt_M);
  font-weight: 500;
  line-height: 110%;
  color: var(--vsh-dark);
  margin: 0;
}

.process__header {
  flex: 1;
}

.process-title-1,
.process-title-2 {
  font-size: var(--font_h1);
  line-height: 100%;
  text-transform: uppercase;
  margin: 0;
}

.process-title-1 {
  color: var(--vsh-dark);
  margin-bottom: 16px;
}

.process-title-2 {
  color: var(--vsh-cyan);
}

/* === COVERAGE БЛОК === */
.coverage {
  background: var(--white);
  color: var(--vsh-dark);
  position: relative;
  padding: 5vh var(--page-padding-x);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.coverage__map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  will-change: transform;
  transition: transform 1s;
}

.coverage__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.coverage__left h2 {
  font-size: var(--font_h2);
  line-height: 1.2;
  margin: 0;
}

.coverage__left .cyan,
.coverage__cities .cyan {
  color: var(--vsh-cyan);
}

.coverage__right {
  flex: 1;
}

.coverage__right h3 {
  font-size: var(--font_h3);
  line-height: 1.3;
  margin: 0 0 24px 0;
}

.coverage__right .txt_M {
  color: var(--vsh-dark);
  margin-bottom: 0;
}

.coverage__cities h2 {
  margin: 0 0 8px 0;
  font-size: var(--font_h2);
}

.coverage__cities h4 {
  margin: 0;
  color: var(--vsh-dark);
  font-size: var(--font_h4);
}

/* === REASONS БЛОК === */
.reasons {
  background: var(--white);
  color: var(--white);
  padding: 5vh var(--page-padding-x);
  position: relative;
}

.reasons__title {
  color: var(--vsh-dark);
  text-align: center;
  margin-bottom: 60px;
  font-size: var(--font_h3);
}

.reasons__title .cyan {
  color: var(--vsh-cyan);
}

.reasons__cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.card {
  display: grid;
  grid-template-columns: 60% 1fr; /* изображение + контент */
  gap: 0;
  background: var(--vsh-deepblue);
  border-radius: 20px;
  box-shadow: 0 4px 150px 0 rgba(0, 0, 0, 0.4);
  overflow: hidden;
  height: auto; /* ← теперь работает! */
  min-height: 300px; /* ← обязательно, чтобы была базовая высота */
  transition: all 0.1s;


}

.card--2 {
  grid-template-columns: 1fr 60%; /* контент слева, изображение справа */
}

.card__image {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

.card--2 .card__image {
  clip-path: polygon(0% 0, 100% 0%, 85% 100%, 0% 100%);
}

.card__content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card--2 .card__image {
  clip-path: polygon(0% 0, 100% 0%, 85% 100%, 0% 100%);
}

.card__content h2 {
  color: var(--white);
  margin-bottom: 24px;
  font-size: var(--font_h2);
}

.card__content .txt_M {
  color: var(--white);
}

.card--1 {
  z-index: 1;
  position: sticky;
  top: 5vh;
}
.card--1 .card__image { background-image: url(media/vsh3d.jpg); }

.card--2 {
  z-index: 2;
  background: #0069D9;
  position: sticky;
  top: 10vh;
}
.card--2 .card__image { background-image: url(media/card2.jpg); }

.card--3 {
  z-index: 3;
  background: #0396E0;
  position: sticky;
  top: 15vh;
}
.card--3 .card__image { background-image: url(media/card3.jpg); }

/* === FOOTER === */
.footer {
  position: relative;
  padding: 80px var(--page-padding-x) 60px;
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: url(media/footerbg3.jpg) center / cover no-repeat;
  z-index: 10;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  width: 100%;
  min-height: 50vh;
}

.footer__left h2 {
  font-size: var(--font_h2);
  margin-bottom: 16px;
  max-width: 600px;
}

.footer__left .txt_M {
  color: var(--white);
  opacity: 0.9;
}

.footer__form-wrapper {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.footer .txt_L, a{
  font-size: clamp(14px, 2.75dvw, 40px);
  font-weight: 400;
  text-decoration: none;
  color: var(--white);
}

.footer__form,
.form-thanks {
  width: 100%;
  text-align: center;
}

.form-field {
  position: relative;
  margin-bottom: 24px;
}

.form-field label {
  position: absolute;
  left: 30px;
  bottom: 15px;
  font-family: Montserrat, sans-serif;
  font-size: var(--font_txt_S);
  font-weight: 500;
  color: var(--white);
  opacity: 0.8;
  pointer-events: none;
}

.form-field input {
  width: 100%;
  padding: 25px 30px 30px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(17.5px);
  border: none;
  border-radius: 20px;
  color: var(--white);
  font-family: Montserrat, sans-serif;
  font-size: var(--font_txt_M);
  outline: none;
  height: 90px;
}

.form-field input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.form-row .form-field {
  flex: 1;
  margin-bottom: 0;
}

.form-submit {
  width: 80px;
  height: 90px;
  border-radius: 20px;
  background: var(--vsh-cyan);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.3s;
}

.form-submit:hover {
  opacity: 0.9;
}

.form-thanks h2 {
  margin-bottom: 16px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__bottom .txt_S {
  color: var(--white);
  opacity: 0.8;
}

.footer__bottom a.txt_S {
  text-decoration: none;
  color: var(--white);
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer__bottom a.txt_S:hover {
  opacity: 1;
}

/* === ШАПКА === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px var(--page-padding-x);
  display: flex;
  align-items: center;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header__logo img {
  height: 40px;
}

.header__burger {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--white);
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  margin: 0;
  z-index: 1001; /* выше header (1000) */
  transition: all 0.25s;
}
.header__burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--vsh-dark);
  transition: opacity 0.2s, transform 0.2s;
}
.header__burger:hover{
  background: var(--vsh-light);

}

.header__menu {
  position: fixed;
  top: 51px;
  width: 30%;
  height: auto;
  background: var(--white);
  padding: 40px;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  z-index: 999;
  margin: 0 33%;
  justify-items: center;
  visibility: hidden;
  pointer-events: none;
}

.header__menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu__nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 60px;
  justify-self: center;
}

.menu__nav a {
  font-family: 'Stapel-Bold', sans-serif;
  font-size: var(--font_txt_M);
  text-transform: uppercase;
  color: var(--vsh-dark);
  text-decoration: none;
  transition: color 0.2s;
  text-align: center;
}

.menu__nav a:hover {
  color: var(--vsh-cyan);
}

.menu__socials {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.menu__socials img {
  width: 20px;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 1024px) {
  :root {
    }
  .hero { padding: 30px var(--page-padding-x); }
  .hero__content { margin-top: 80px; }
  .reliability__image-mask { height: 500px; }
}

@media (max-width: 900px) {
  .reliability__content,
  .process__content,
  .coverage__content,
  .footer__content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .reliability__text,
  .reliability__image-container,
  .process__steps,
  .process__header,
  .coverage__left,
  .coverage__right,
  .footer__left {
    max-width: 100%;
    width: 100%;
  }
  .reliability {
        padding: 50px 20px;
  }
  .reliability__image-container,
  .coverage__left {
    justify-content: center;
  }

  .reliability__image-mask {
    width: 90%;
    height: 400px;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
  }

  .feature-item {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  :root {

  }

  .hero { padding: 24px var(--page-padding-x); }
  .hero__content { margin-top: 60px; }
  .hero h1 { margin-bottom: 16px; }
  .hero .txt_L { margin-bottom: 32px; }
  .hero__btn { font-size: var(--font_txt_M); padding: 10px 20px; }
  .services { padding: 0 24px; }
  .services h2 { margin-bottom: 32px; font-size: var(--font_h2); }
  .service-item h3 { font-size: var(--font_h3); }
  .service-item .txt_M { font-size: var(--font_txt_M); }
  .stats { padding: 0 24px; }
  .stats h2 { font-size: var(--font_h2); }
  .stats h4 { font-size: var(--font_txt_M); }
  .card {
    display: grid;
    grid-template-rows: auto 1fr; /* сначала контент, потом изображение (или наоборот) */
    grid-template-columns: 1fr;   /* один столбец */
    gap: 0;
    overflow: hidden;
    height: auto;
    min-height: 300px;
    transition: all 0.55s;
  }
  .card__image {
    width: 100%;
    max-width: unset;
    height: 200px;
  }
}

@media (max-width: 576px) {
  :root {
    --page-padding-x: 15px;
  }

  .header__menu{
    width: 80%;
    top: unset;
    bottom: 51px;
    left: 50%;
    transform: translate(-50%, 0%);
    margin: unset;
  }
  .menu__nav{
    gap: 20px;
  }
  .menu__nav a{
    font-size: var(--font_h4);
  }
  .header__burger{
    bottom: 0;
    top: unset;
  }
  .header__inner{
    justify-content: center;
  }
  .header__logo img {
    height: 28px;
  }
  .hero { padding: 20px var(--page-padding-x); }
  .hero__content {
    margin-top: 0px;
    padding: 16vh 0px 16vh 0px;
  }
  .hero__btn { font-size: var(--font_txt_S); padding: 8px 16px; }
  .hero__arrow { width: 14px; height: 14px; }
  .process {
    padding: 0 20px;
  }
  .process-title-1,
  .process-title-2 {
    /*font-size: 60px;*/
  }
  .coverage {
    padding: 0 20px;
  }
  .footer {
    padding: 16vh 20px 70px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .reliability {
    padding: 50px 20px;
  }
  .reliability__image-mask {
    height: 300px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  .services h2 { font-size: 40px; }
  .service-item h3 { font-size: 30px; }
  .service-item .txt_M { font-size: var(--font_txt_S); }

  .services{
    height: auto;
  }
  .services__content{
    flex-direction: column;
  }
}

/* Полностью убираем системный курсор на десктопе */
@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after {
    cursor: none !important;
  }
}

.custom-cursor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 2px solid var(--vsh-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%) scale(1);
  transition: 
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.25s ease;
}

.custom-cursor__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--vsh-light);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.custom-cursor.is-hover {
  border-color: var(--vsh-cyan);
  transform: translate(-50%, -50%) scale(1.4);
}

.custom-cursor.is-hover .custom-cursor__dot {
  background: var(--vsh-cyan);
}

/* Показываем ТОЛЬКО на десктопах с мышью */
@media (hover: hover) and (pointer: fine) {
  .custom-cursor {
    display: block;
  }
}