
* {
  box-sizing: border-box;
}
br{
  display: inline;
}
html{
  scroll-behavior: smooth;
}
img.circul_header{
  height: 170vh;
  right: 0px;
  position: absolute;
  z-index: -100;
}
.background-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: -100;
}

img.form_img{
  height: 100vh;
  max-width: 100%;
  left: 0px;
  position: absolute;
  z-index: -100;
  object-fit: cover;
}
img.foot_img{
  height: 100vh;
  right: 0px;
  position: absolute;
  z-index: -100;
  bottom: 0;
  object-fit: cover;
}
body{
  overflow-x: hidden;
    background: linear-gradient(to right, #e7f5fc, #ffffff);
    font-family: 'Open Sans';
    margin: 0;
}

h2{
  margin: 0;
  padding: auto;
  font-size: 36px;
  color: #2C3E50;
  font-weight:400;
}
h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #2C3E50;
  font-weight: 600;
}

p {
  font-size: 16px;
  color: #444;
  margin: auto;
  padding: 0;
}
a{
  color: #141414;
  text-decoration: none;
}
a:hover{
  text-decoration:underline;
}
small{
  font-size: 10px;
}
main{
    max-width: 1200px;
    align-items: center;
    margin: 0 auto;
}
header{
  padding-top: 30px;
  width: 100%;
    max-width: 1200px;
    align-items: flex-start;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
}
.menu{
  display: flex
  ;
      flex-direction: row;
      flex-wrap: wrap;
      align-content: center;
      justify-content: space-around;
      align-items: center;
      gap:30px;
}


#openModal {
  border: 0;
  padding: 12px 35px;
  font-size: 16px;
  cursor: pointer;
}

/* Модалка */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background-color: #2c3e50;
  background-image: url("../image/Mask_form.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size:cover;
  color: white;
  padding: 40px 20px;
  border-radius: 20px;
  max-width: 700px;
  width: 100%;
  text-align: center;
  position: relative;
}

.modal-content h2 {
  color: white;
  margin-top: 0;
  font-size: 28px;
}

.modal-content p {
  color: white;
  margin-bottom: 30px;
  font-size: 16px;
}

.modal-content .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

.modal-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.modal-form input[type="text"],
.modal-form input[type="tel"] {
  padding: 14px;
  border-radius: 8px;
  border: none;
  width: 300px;
  max-width: 100%;
  font-size: 16px;
}
input:focus::placeholder {
  color: transparent;
}

/* При потере фокуса placeholder возвращается */
input:not(:focus):placeholder-shown::placeholder {
  color: #aaa; /* Цвет placeholder'а */
}
.modal-form .privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  color: #ccc;
  font-size: 13px;
}

.submit-btn {
  background: #00bfff;
  border: none;
  padding: 14px 30px;
  color: white;
  font-size: 16px;
  border-radius: 40px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: #5E7185;
  text-decoration: none;

}

.submit-btn:active{
  background: #2C3E50;
  border: 0.5px solid #00bfff;
  color: #00bfff;
  text-decoration: none;
}

/*страница спасибо*/

.spasibo{
  padding-top: 50px;
  padding-bottom: 100px;
  text-align: center;
  display: flex
;
  gap: 30px;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: center;

}

footer{
  margin: 0;
  margin-top: 30px;
  background-color: #2c3e509d;
  color: #ffffff;
  font-size: 10px !important;
  padding-top: 15px;
  padding-bottom: 15px;
  overflow: hidden;
}
.hidden{
  display: block;
}
.hidden_dis{
  display: none;
}
.bottom_menu{
  margin: auto;
  max-width: 1200px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.right_pol{
  width: 90%;
}
.politic{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: stretch;
}
/*блок квиз фоновое изображение*/
section.qviz, section.advantages_form{
  margin-top: 80px;
}
/**/
.logo > img{
  height: 54px;
  margin: auto;
}
.phone, .email, .adress{
  display: flex;
  gap: 10px;
  font-size: 16px;
}
.info > p{
  font-size: 13px !important;

}
/*блок баннера*/
.brochure-section {
    padding: 60px 20px 0 20px;

    overflow: visible;
  }
  .light{
    font-size: 14px;
    color: #A7B4BF ;
  }
  
  .container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0 auto;
  }
  
  .content {
    flex: 1 1 500px;
    max-width: 600px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s forwards;
    animation-delay: 0.3s;
    position: relative;
    z-index: 100;
  }
  
  .content h1 {
    font-size: 36px;
    color: #2C3E50;
    margin-bottom: 50px;
    font-weight: 600;
  }
  
.highlight {
    color: #00aaff;
    font-weight: 700;
  }
  .qviz_white{
    background-color: #ffffff;
    border-radius: 30px;
    text-align: center;
    padding-top: 35px;
    padding-bottom: 20px;
  }
  .qviz_white >h2{
    font-size: 36px;
    font-weight: 500;
  }
  .qviz_white >p{
    max-width: 523px;
    padding-top: 16px;
  }
  .advantages {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
  }
  
  .advantages li {
    margin-bottom: 30px;
    padding-left: 30px;
    position: relative;
    font-size: 20px;
  }
  
  .advantages li::before {
    content: "✔";
    color: #00aaff;
    position: absolute;
    left: 0;
    top: 0;
  }
  .advantages_form {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 40px 20px;
    gap: 20px;
    font-family: sans-serif;
    border: 0.5px solid #E5EAF1;
    border-radius: 10px;
  }
  
  .advantage-item {
    flex: 1;
    max-width: 295px;
    border-radius: 12px;
    padding: 20px 0px;
    text-align: center;
    display: flex
    ;
        gap: 10px;
        flex-direction: column;
        flex-wrap: wrap;
        align-content: center;
        justify-content: flex-start;
        align-items: stretch;
  }
  .advantage-item > p{
    text-align: left;
    line-height:2;
  }
  
  .icon {
    font-size: 36px;
    background: #e6f7ff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00aaff;
  }
  
  .btn1 {
    display: inline-block;
    background: #2C3E50;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s;
  }

  .btn {
    display: inline-block;
    background: #2C3E50;
    color: #fff;
    padding: 15px 30px;
    margin-top: 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s;
  }
  
  .btn:hover {
    background: #5E7185;
    text-decoration: none;
  }
  
  .btn:active{
    background: #2C3E50;
    border: 0.5px solid #00bfff;
    color: #00bfff;
    text-decoration: none;
  }
  .btn1:hover {
    background: #5E7185;
    text-decoration: none;
  }
  
  .btn1:active{
    background: #2C3E50;
    border: 0.5px solid #00bfff;
    color: #00bfff;
    text-decoration: none;
  }
  /*блок контакты*/
  section.contact{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap:20px;
  }
  .contact_row{
    padding-top: 40px;
    flex:4;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .contact_items{
    display: flex;
    gap:20px;
  }
  .contact_items > img{
    max-width: 46px;
  }
.map {
  flex:8;
  height: 570px;
    border-radius: 30px !important;
    overflow: hidden;
}
/*слайдер баннера*/
  .slider {
    height: 100%;
    flex: 1 1 400px;
    position: relative;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s forwards;
    animation-delay: 0.6s;

  }
  .slides {
    position: relative;
  }
  
  .slides img {
    position: fixed;
    top: -520px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 950px;
    max-height: 950px;
    width: 1000px;
    height: 550px;
    display: none;
    object-fit: contain;
    z-index: -1;
  }
  .slides img.active {
    display: block;
  }
  
  .slider-controls {
    margin-top: 15px;
    display: flex;
  justify-content: flex-end;
  gap: 30px;
  }
  
  .slider-controls button {
    background: #2C3E50;
    color: #fff;
    border: none;
    padding: 10px 10px;
    margin: 0 5px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.3s;
    width: 40px;  /* Установите фиксированную ширину */
    height: 40px;
    display: flex;
    justify-content: center; /* Выравнивание по горизонтали */
    align-items: center;  
  }
  
  .slider-controls button:hover {
    background: #5E7185;
  }
  
  .slider-controls:active{
    color: #00bfff;
  }
  
  /* Анимация появления */
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  

  
  .contact-section {
    background: #2C3E50; /* Тёмный фон блока */
    padding: 0px 0px;
    background-image: url("../image/Mask_form.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size:cover;
    border-radius: 30px;
    margin: 40px 0;
  }
  
  .contact-container {
    display: flex;
        align-items: stretch;
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto;
        flex-wrap: wrap;
        overflow: hidden;
  }
  
  .image-wrapper {
    flex: 5;
    display: flex;
    justify-content: flex-start;
  }
  
  .image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 30px;
    object-fit: cover;
  }
  
  .form-wrapper {
    flex: 7;
    color: #fff;
    padding: 32px 70px 0 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;

  }
  
  .form-wrapper h2 {
    color: #ffffff;
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 400;
    max-width: 440px;
  }
  
  .form-wrapper h2 span {
    font-weight: 600;
    color: #00aaff; /* Цвет выделения */
  }
  
  .form-wrapper p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #ffffff !important;
  }
  
  .form-wrapper form {
    display: flex;
    width: 600px;
    max-width: 100vw;
    flex-direction: column;
    gap: 15px;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 40px;
  }
  
  .form-wrapper input[type="text"],
  .form-wrapper input[type="tel"] {
    padding: 12px 15px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    width: 100%;
  }
  
  .checkbox-wrapper {
    display: flex;
    align-items: center;
    font-size: 12px;
    /*width: 100%;*/
  }
  
  .checkbox-wrapper input {
    margin-right: 8px;
  }
  
  .form-wrapper button {
    padding: 12px 20px;
    background: #00aaff;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .form-wrapper button:hover {
    background: #0088cc;
  }
  
  /* Адаптация */
  @media (max-width: 1024px) {
    .contact-container {
      flex-direction: row;
      gap: 20px;
    }
  
    .form-wrapper {
      padding: 10px;
    }
  }
  
  /* Адаптивность */
  @media (max-width: 768px) {
    .container {
      flex-direction: column;
      /*text-align: center;*/
      align-items: stretch;
    }
  
    .content,
    .slider {
      max-width: 100%;
    }
  
    .slider-controls {
      margin-top: 10px;
    }
    section.contact {
      display: flex
;
      flex-direction: column;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 20px;
  }
  .map {
    flex: 12;
    order: 1;
    height: 300px;
  }
  .contact_row{
    order: 0;
  }

    .contact-container {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .image-wrapper, .form-wrapper {
      width: 85%;
    }
  
    .image-wrapper {
      order: 2;
      margin-top: 0px;
    }
  
    .form-wrapper {
      order: 1;
    }
  }
  
  @media (max-width: 480px) {
    .logo{
      text-align: left;
    }
    h2 {
      font-size: 32px;
    }
  header {
    flex-direction: row;
    align-items: flex-start;
    padding: 20px;
    gap:16px;
  }
  br{
    display: none;
  }
  .btn {
    display: inline-block;
    background: #2C3E50;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 20px;
    transition: background 0.3s;
  }
  .menu{
    display: flex
    ;
      flex-direction: column;
      flex-wrap: wrap;
      align-content: stretch;
      align-items: flex-start;
      gap: 30px;
      justify-content: flex-start;
  }
  .content h1 {
    font-size: 26px;
    font-weight: 700;
    margin-top: 0;
  }
  section.qviz, section.advantages_form {
      margin-top: 0px;
  }
  .advantage-item > p {
    text-align: center;
}
    .qviz_white {
      background-color:#44444400;
      border-radius: 30px;
      text-align: left; 
      padding-top: 35px;
      padding-bottom: 20px;
  }
    .image-wrapper img {
      max-width: 100%;
      height: auto;
      border-radius: 0px; 
      object-fit: cover;
  }
    section{
      padding: 0 15px 0 15px;
    }
    .form-wrapper h2 {
      font-size: 32px;
    }

    .contact-section {
      background: #2C3E50;
      background-image: url(../image/Mask\ group1.png);
      background-repeat: no-repeat;
      background-position: top left;
      padding: 40px 0px 0px;
      margin: 20px 15px;
    }
    
    .form-wrapper {
      flex: 7;
      color: #fff;
      padding: 0px 0px 0 10px;
      text-align: left;
  }
  .form-wrapper form {
    max-width: 80vw;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: flex-start;
    align-items: stretch;
  }
    .form-wrapper p {
      margin-left: 0;
      font-size: 16px;
      font-weight: 300;
      color: #ffffff !important;
    }

    .form-wrapper input[type="text"],
    .form-wrapper input[type="tel"] {
      font-size: 14px;
    }
  
    .form-wrapper button {
      font-size: 14px;
      padding: 18px 20px;
    }
    .hidden{
      display: none;
    }
    .hidden_dis{
      margin-top: 20px;
      display: block;
    }
  .qviz_white >h2 {
    font-size: 32px;
    font-weight: 500;
  }

  h3 {
    font-size: 18px;
  }

  .modal-content {
    padding: 20px 15px;
  }

  .modal-form input[type="text"],
  .modal-form input[type="tel"] {
    width: 100%;
  }

  .zakaz{
    display: none;
  }
  .brochure-section {
    padding: 0 20px 20px 20px;
    overflow:visible;
}

  .spasibo {
    gap: 20px;
    padding-bottom: 50px;
  }

  section.contact {
    flex-direction: column;
  }
  .map{
    max-height: 70vh;
    height: 300px;
  }
  .contact_row, .map {
    flex: 100%;
  }

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

  .advantage-item {
    max-width: 100%;
  }

  .btn {
   /* width: 100%;*/
    text-align: center;
  }

  .bottom_menu {
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 10px;
    text-align: center;
  }
  

  .right_pol {
    width: 100%;
  }

  .logo > img {
    height: 40px;
  }
  .slides {
    position: static !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    overflow: hidden;
  }

  .slides img {
    display: none;
    width: 100%;
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    position: static !important;
    transform: none !important;
  }

  .slides img.active {
    display: block;
  }
  
  .slider-controls {
    margin-top: 0px;
    display: flex;
    justify-content: space-between;
  }
}
  
@media (max-width: 320px) {
  .form-wrapper h2 {
    font-size: 20px;
  }

  .form-wrapper p {
    font-size: 12px;
  }

  .form-wrapper input[type="text"],
  .form-wrapper input[type="tel"] {
    font-size: 12px;
  }

  .form-wrapper button {
    font-size: 12px;
    padding: 10px 15px;
  }
}


/* --- Планшеты 481px - 768px --- */
@media (min-width: 481px) and (max-width: 768px) {
  
  h2 {
    font-size: 28px;
  }

  header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .advantages_form {
    justify-content: center;
  }

  .advantage-item {
    flex: 0 1 45%;
  }

  section.contact {
    flex-direction: column;
  }

  .contact_row, .map {
    flex: 100%;
  }

  footer > div {
    flex-direction: column;
    gap: 15px;
  }

  .right_pol {
    width: 100%;
  }
}

/* --- Небольшие ноутбуки / экраны 769px - 1024px --- */
@media (min-width: 769px) and (max-width: 1024px) {
  header {
    padding: 20px;
  }

  .advantage-item {
    flex: 0 1 30%;
  }

  .modal-form {
    gap: 10px;
  }

  .modal-form input[type="text"],
  .modal-form input[type="tel"] {
    width: 45%;
  }
}

