@font-face {
  font-family: "Museo Sans Cyrl";
  src: url("../fonts/MuseoSansCyrl-100.woff") format("woff");
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: "Museo Sans Cyrl";
  src: url("../fonts/MuseoSansCyrl-300.woff") format("woff");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Museo Sans Cyrl";
  src: url("../fonts/MuseoSansCyrl-500.woff") format("woff");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Museo Sans Cyrl";
  src: url("../fonts/MuseoSansCyrl-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Museo Sans Cyrl";
  src: url("../fonts/MuseoSansCyrl-900.woff") format("woff");
  font-weight: 900;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Museo Sans Cyrl", Arial, sans-serif;
  background: #efefef;
  color: #1f1f1f;
  line-height: 1.4;
  overflow-x: hidden;
}

img {
  width: 100%;
  display: block;
  object-fit: cover;
}

a {
  text-decoration: underline;
  color: inherit;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

section {
  padding: 70px 0;
}

.purple {
  color: rgb(106, 0, 255);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px 20px 40px;
  border-radius: 100px;
  background: linear-gradient(
    0.25turn,
    rgba(106, 0, 255, 1) 0%,
    rgba(157, 0, 255, 1) 100%
  );
  color: #fff;
  font-weight: 700;
  line-height: 1.55;
  border: none;
  cursor: pointer;
  transition: 0.25s;
  width: 350px;
  height: 65px;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.hero {
  padding-top: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: center;
}

.logo {
  width: 240px;
  margin-bottom: 30px;
}

.hero h1 {
  font-size: 38px;
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 22px;
  color: #252525;
  line-height: 48px;
}

.hero p {
  color: #252525;
  font-size: 18px;
  margin-bottom: 35px;
  max-width: 580px;
}

.hero-image {
  border-radius: 35px;
  overflow: hidden;
  height: 540px; /* фиксированная высота */
  width: 540px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  background-image: url(../images/bg.png);
  background-position: 35.385% 0%;
  background-size: 150.252%;
  background-repeat: no-repeat;

  object-fit: cover; /* картинка полностью заполняет контейнер */
  display: block;
}

.stats h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 60px;
  line-height: 1.1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: #fff;
  border-radius: 35px;
  padding: 28px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
  border-left: 4px solid #6a00ff;
}

.stat-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.stat-card span {
  color: #252525;
  font-size: 16px;
  font-weight: 400;
}

/* ===== SLIDER ===== */

.slider-section {
  position: relative;

  width: 100vw;

  left: 50%;
  right: 50%;

  margin-left: -50vw;
  margin-right: -50vw;

  overflow: hidden;

  padding: 40px 0;
}
.mySwiper {
  overflow: visible;
  padding: 0 40px;
}

.swiper-slide {
  width: 504px;
  height: 360px;
  border-radius: 28px;
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.swiper-wrapper {
  align-items: center;
}

/* стрелки */

.swiper-button-prev,
.swiper-button-next {
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #7a1cff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 20px;
  font-weight: 700;
}

.cta-banner {
  margin-top: 35px;
  background: linear-gradient(90deg, #6500ff, #ba00ff);
  border-radius: 30px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
}

.cta-banner h3 {
  font-size: 22px;
  font-weight: 700;
}

.cta-banner .btn {
  background: #fff;
  color: #1f1f1f;
  width: 200px;
}

.advantages h2 {
  font-size: 42px;
  margin-bottom: 50px;
  font-weight: 800;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px 50px;
}

.advantage {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.check {
  width: 40px;
  height: 30px;
  background: url("../images/check.svg") no-repeat center;
  background-size: contain;
  flex-shrink: 0;
}

.advantage h3 {
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.advantage p {
  color: #666;
  font-size: 16px;
}

.form-wrapper {
  background: #fff;
  border-radius: 38px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
}

.form-text h2 {
  font-size: 27px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.form-text p {
  color: #666;
  margin-bottom: 16px;
  max-width: 420px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
input[type="radio"],
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  position: relative;
  cursor: pointer;
  margin-right: 8px;
  display: inline-block;
}

/* RADIO */
input[type="radio"] {
  border-radius: 50%;
}

/* CHECKBOX */
input[type="checkbox"] {
  border-radius: 4px;
}

/* ACTIVE STATE (общее) */
input[type="radio"]:checked,
input[type="checkbox"]:checked {
  background-color: #6a00ff;
  border-color: #6a00ff;
}

/* RADIO — внутренняя точка */
input[type="radio"]:checked::after {
  content: "";
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* CHECKBOX — галочка */
input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* LABEL выравнивание */
.radio,
.checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 8px;
}

.input {
  width: 100%;
  border: none;
  background: #f3f4f8;
  border-radius: 999px;
  padding: 18px 22px;
  font-size: 16px;
  outline: none;
}

.messengers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #555;
  font-size: 15px;
}

.messengers label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.4;
}

.checkbox input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.contact-form .btn {
  width: 100%;
  font-size: 16px;
}

footer {
  padding: 30px 0;
  text-align: center;
  color: #777;
  font-size: 14px;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;              
  overflow-y: auto;           
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
  z-index: 999;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 560px;
  max-width: 100%;
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  position: relative;
  max-height: calc(100vh - 32px); 
  overflow-y: auto;               
  transform: translateY(20px);
  transition: 0.25s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-title {
  font-size: 22px;
  color: #252525;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.modal-subtitle {
  font-size: 16px;
  color: #252525;
  margin-bottom: 25px;
  line-height: 1.4;
}

/* форма внутри модалки */
.modal .contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.policy-text {
  font-size: 16px;
  color: #666;
  line-height: 1.4;
}

.hint-text {
  font-size: 13px;
  color: rgb(106, 0, 255);
  line-height: 1.3;
}

/* чтобы внутри модалки кнопка не растягивалась криво */
.modal .btn {
  width: 100%;
}

/* ===== LAPTOP / SMALL DESKTOP ===== */
@media (max-width: 1200px) {
  .container {
    width: calc(100% - 40px);
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-image {
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .swiper-slide {
    width: 420px;
    height: 300px;
  }
}

/* ===== TABLET ===== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-image {
    margin: 0 auto;
  }

  .form-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 30px;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-banner .btn {
    width: 100%;
  }

  .swiper-slide {
    width: 80%;
    height: 260px;
  }
}

@media (max-width: 768px) {
  .modal {
    padding: 24px 20px;
    border-radius: 20px;
  }
  .modal-overlay {
  align-items: flex-start;
}
  .modal-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }
}
/* ===== PHONE ===== */
@media (max-width: 600px) {
  section {
    padding: 40px 0;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 16px;
  }

  .btn {
    width: 100%;
    height: 56px;
    padding: 16px 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 20px;
  }

  .stats h2,
  .advantages h2,
  .form-text h2 {
    font-size: 26px;
  }

  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }

  .swiper-slide {
    width: 90%;
    height: 220px;
  }

  .form-wrapper {
    padding: 25px 18px;
  }

  .input {
    padding: 14px 18px;
  }
}

/* ===== VERY SMALL PHONES ===== */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 24px;
  }

  .cta-banner h3 {
    font-size: 18px;
  }
}
