/* 1. Переменные и базовые стили */
:root {
  --color-primary: #ba40d2;
  --color-secondary: #ebebeb;
  --color-bg: #462953;
  --color-light: #020132;
  --color-grey: #ffffff;
  --font-base: 'Montserrat', sans-serif;
  --transition: 0.3s ease-in-out;
  --main-color: rgb(117, 17, 148);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
  font-family: var(--font-base);
  background-color: var(--color-bg);
  color: var(--color-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
span {
    color: var(--color-primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}




.header {
  position: sticky;
  top: 0; left: 0; right: 0;
  background: linear-gradient(180deg, #020132, #000);
  z-index: 1000;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  padding: 0 20px;
  transition: height 0.3s ease, padding 0.3s ease;
}

.logo {
  font-size: 28px;
  line-height: 1;
  transition: transform 0.3s ease;
}
.logo h5 {
  font-size: 20px;
  font-weight: 300;
  margin-left: 5px;
  margin-top: 5px;
}

.header__contact1 {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  gap: 20px;
}

.rating, .city {
  margin-left: 20px;
}

/* Сжатая версия */
.header.shrink {
  padding-bottom: 10px;
}

.header.shrink .header__inner {
  height: 30px;
  padding: 0 15px 10px;
}

.header.shrink .logo {
  transform: scale(0.9);
}

.header.shrink .rating,
.header.shrink .city,
.header.shrink .header__contact1 .phone-btn:last-child {
  display: none;
}

/* ===== Адаптив ===== */

/* Планшеты */
@media (max-width: 992px) {
  .header__inner {
    flex-wrap: wrap; /* разрешаем перенос */
    height: auto; /* пусть высота подстраивается */
    padding: 10px 15px;
  }

  .header__inner1 .logo {
    font-size: 20px;
    margin-top: 10px;
  }

  .header__contact1 {
    order: 2; /* меню ниже логотипа */
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
  }

  .rating, .city {
    order: 3;
    width: 100%;
    
  }
}

/* Мобильные */
@media (max-width: 768px) {
  .header__contact1 {
    display: none; /* скрыто по умолчанию */
    flex-direction: column;
    align-items: center;
    background: #020132;
    padding: 15px;
    width: 100%;
  }

  .header__contacts1 .faqArchor {
    display: none;
  }

  .header__contact1.open {
    display: flex; /* показываем при клике на бургер */
  }

  .burger {
    display: block;
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }
}

/* Меню при открытии на мобилке */
.header__contact1.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 60px; /* ниже шапки */
  right: 0;
  background: #020132;
  padding: 20px;
  gap: 10px;
  width: 200px;
}


.header__inner1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo {
  font-size: 35px;
  color: var(--text-color);
  font-weight: 800;
  cursor: pointer;
  transition: .3s ease-in-out;
  height: 60px;
  transition: height 0.3s ease, transform 0.3s ease;
}
.header.shrink .logo {
  height: 40px;
  transform: scale(0.9);
}
.logo:hover {
    transform: scale(1.05);
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 25px;
}
.header__contacts h2 {
  color: green;
  font-size: 20px;
  margin-bottom: 13px;
  text-align: center;
}
.header__contacts1 {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  gap: 45px;
  margin-top: 20px;
  color: var(--color-secondary);
  transition: gap 0.3s ease;
  
}
.header__contacts1 a {
    color: var(--main-color);
    font-size: 20px;
    margin-bottom: 13px;
    text-align: center;
    
}
.header__contacts1 a:hover {
    border-bottom: 1px var(--color-bg) solid;
    transform: scale(1.05);
    transition: .3s ease-in-out;
}

.city-btn,
.phone-btn {
  color: var(--color-secondary);
  border: 2px var(--color-bg) solid;
  padding: 10px 15px;
  border-radius: 16px;
  cursor: pointer;
  transition: background var(--transition);
}

.city-btn:hover,
.phone-btn:hover {
  background: var(--color-bg);
}

/* 3. Hero */
.hero {
  position: relative;
  background: linear-gradient(to bottom, rgba(0, 14, 45, 0.589), rgba(0, 0, 0, 0.583)),
              url('../img/hero1.png') center/cover no-repeat ;
  padding: 12%;
  text-align: center;
  color: var(--color-secondary);
}

.hero__title {
  font-size: 3rem;
  margin-bottom: 15px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.hero__subtitle {
  font-size: 25px;
  margin-bottom: 25px;
  text-align: center;
  margin-right: 25%;
  margin-left: 25%;
}

.socials {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
}
.social-icons {
    display: flex;
    justify-content: center;
}

.social-icons a {
    font-size: 20px;
    border-radius: 10px;
    color: white;
    margin-right: 0.5rem;
    transition: .3s ease-in-out;
    text-decoration: none;
}

.social-icons a:hover {
    color: white;
    transform: scale(1.1) translateY(-5px);
 
}

.communicate-with-us-arrow {
    font-size: 20px;  
}

.communicate-with-us-arrow i{
    font-weight: 500;
    font-size: 16px;
}

/* 4. Услуги */
.services {
  padding: 100px 0;
  background: linear-gradient(to bottom, #555555, #020132);
}

.section-title {
    text-align: center;
    padding-bottom: 20px;
    font-size: 30px;
}


.service-card {
  display: flex;
  align-items: flex-start;
  background: (linear-gradient(to bottom, #020132, #292929));
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.347);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card2 {
  display: flex;
  align-items: flex-start;
  background: (linear-gradient(to bottom, #020132, #292929));
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.347);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card__img {
  flex-shrink: 0;
  width: 50%;
  height: 50%;
  object-fit: cover;
  border-radius: 8px;
  margin-left: 5%;
}
.service-card__img2 {
  flex-shrink: 0;
  width: 50%;
  height: 50%;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 5%;
  margin-left: 5%;
}
.service-card2:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.518);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.518);
}



/* Контент карточки */
.service-card__content {
  display: flex;
  flex-direction: column;
  text-align: end;
  margin-top: 5%;
  margin-left: 15%;
}
.service-card__content2 {
  display: flex;
  flex-direction: column;
  margin-top: 2%;
  margin-right: 15%;
}

.service-card__title {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--color-secondary);
}

.price {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.service-card__content ul {
  list-style-position: inside;
  direction: rtl;
  text-align: right;
}
.service-list li {
  margin-bottom: 6px;
  color: var(--color-grey);
}


.for_defaultVersion_buyBtn__firstCard {
  margin-top: 5px;
  padding: 10px 5px 10px 5px;
  text-align: center;
  font-size: 20px;
  border: 1px var(--color-primary) solid;
  background: #462953;
  border-radius: 10px;
  width: 100%;
  transition: .3s ease-in-out;
}
.for_defaultVersion_buyBtn__firstCard a {
  font-size: 22px;

}
.whatsappBtn_defaultVersion__firstCard {
  color: var(--color-primary);
}
.whatsappBtn_defaultVersion__firstCard i {
  padding-right: 5px;
  color: var(--color-secondary);
  font-size: 20px;
}
.for_defaultVersion_buyBtn__firstCard:hover {
  background-color: var(--color-primary);
  color: var(--color-bg);
}
.for_defaultVersion_buyBtn__firstCard:active {
  box-shadow: 0 0 25px var(--color-primary);
}


.for_defaultVersion_buyBtn__secondCard {
  margin-top: 5px;
  padding: 10px 5px 10px 5px;
  text-align: center;
  font-size: 20px;
  border: 1px var(--color-primary) solid;
  background: #462953;
  border-radius: 10px;
  width: 100%;
  transition: .3s ease-in-out;
}
.for_defaultVersion_buyBtn__secondCard a {
  font-size: 22px;
}
.whatsappBtn_defaultVersion__secondCard {
  color: var(--color-primary);
}
.whatsappBtn_defaultVersion__secondCard i {
  padding-right: 5px;
  color: var(--color-secondary);
  font-size: 20px;
}
.for_defaultVersion_buyBtn__secondCard:hover {
  background-color: var(--color-primary);
  color: var(--color-bg);
}
.for_defaultVersion_buyBtn__secondCard:active {
  box-shadow: 0 0 25px var(--color-primary);
}

.for_phoneVersion_buyBtn__firstCard {
  display: none;
}


/* Адаптив на узких экранах */
@media (max-width: 768px) {
  .header {
    max-height: 120px;
  }

  .logo h5 {
    font-size: 12px;
    margin-left: 0px;
    padding-right: 10px;
  }


  .phone-btn,
  .rating {
    display: none;
  }

  .header a {
    font-size: 18px;
  }

  .header__inner a {
    font-size: 10px;
  }
  .header__contacts1 {
    margin-top: 10px;
    margin-left: 5px;
  }
  .header__contacts1 .phone_number {
    display: none;
  }

  .header__contacts1 {
    gap: 15px;
  }

  .header__contacts1 a {
    font-size: 18px;
    text-decoration: underline;
  }
  .header__contacts h2 {
    font-size: 15px;
    margin-bottom: 8px;
    text-align: center;
  }
  
  .hero {
    padding: 3%;
    background: linear-gradient(to bottom, rgba(0, 14, 45, 0.722), rgba(0, 0, 0, 0.711)),
              url('../img/hero1.png') right/cover no-repeat ;
  }

  .hero__subtitle {
  font-size: 25px;
  margin-bottom: 25px;
  text-align: center;
  margin-right: 15%;
  margin-left: 15%;
  }

  .aboutTitle  {
    min-width: 50%;
  }

  .social-icons a {
    font-size: 25px;
    margin-bottom: 10px;
  }
  .communicate-with-us-arrow {
    display: none;
  }
  .communicate-with-us-arrow i {
    display: none;
  }
  
  .service-card {
    flex-direction: column;
    text-align: center;
  }

  .service-card__img {
    width: 100%;
    height: auto;
    margin: 0 0 15px;
  }

  .service-card2 {
    flex-direction: column;
    text-align: center;
  }

  .service-card__img2 {
    width: 100%;
    height: auto;
    margin: 0 0 15px;
  }

  .service-card__content {
    align-items: center;
    padding-bottom: 5px;
    margin-right: 15%;
  }

  .service-card__content2 {
    align-items: center;
    margin-left: 15%;
  }

  .service-card__content ul {
  list-style-position: inside;
  direction: ltr;
  text-align: left;
  }

  .for_defaultVersion_buyBtn__firstCard {
    display: none;
  }

  .for_phoneVersion_buyBtn__firstCard {
    display: block;
    margin-top: 5px;
    padding: 10px 5px 10px 5px;
    text-align: center;
    justify-content: center;
    font-size: 20px;
    border: 1px var(--color-primary) solid;
    background: #462953;
    border-radius: 10px;
    width: 100%;
    transition: .3s ease-in-out;
  }
  .for_phoneVersion_buyBtn__firstCard a {
  font-size: 22px;
  }
  .whatsappBtn_phoneVersion__firstCard {
    color: var(--color-primary);
    text-align: center;
    justify-content: center;
    margin-left: 25%;
  }
  .whatsappBtn_phoneVersion__firstCard i {
    padding-left: 5px;
    color: var(--color-secondary);
    font-size: 20px;
  }
  .for_phoneVersion_buyBtn__firstCard:hover {
    background-color: var(--color-primary);
    color: var(--color-bg);
  }
  .for_phoneVersion_buyBtn__firstCard:active {
    box-shadow: 0 0 25px var(--color-primary);
  }





  .accordion {
  max-width: 100%;
  }  
}


/* 4,5 ABOUT */

.about {
  padding: 10px 0 30px;
  background: var(--color-light);
  justify-content: center;
  text-align: start;
}


.aboutIn {
    max-width: 100%;
    margin: 30px;
    background-color: var(--color-bg);
    padding: 30px;
    border: 3px var(--color-primary) solid;
    background: linear-gradient(to bottom, #462953 , #ba40d281);
}
.aboutTitle {
    margin-bottom: 15px;
    max-width: 20%;
    border-bottom: 2px var(--color-primary) solid;
    font-size: 30px;
    text-align: start;
}
.about_subtitle__firstPart {
    margin-bottom: 8px;
    padding: 10px;
    font-size: 20px;
    border: 1px var(--color-primary) solid;
    background: linear-gradient(to bottom right, #46295368 , #ba40d234);
}
.about_subtitle__secondPart {
    margin-bottom: 5px;
    padding: 5px;
    font-size: 17px;
    border: 1px var(--color-primary) solid;
    background: linear-gradient(to bottom right, #46295368 , #ba40d234);
}

/* 5. Как мы работаем */
.how {
  padding: 80px 0;
  padding-bottom: 20px;
  background: linear-gradient(to bottom, #020132, #462953);
}
.how .section-title {
    text-align: left;
}

.how__steps {
  padding-top: 30px;
  list-style: none;
  counter-reset: step;
  max-width: 100%;
  text-align: left;
}

.how__steps li {
  counter-increment: step;
  margin-bottom: 30px;
  padding-left: 30px;
  padding-bottom: 8px;
  padding-top: 5px;
  position: relative;
  padding-left: 60px;
  border-top-right-radius: 100px ;
  border-bottom-right-radius: 10px ;
  background: linear-gradient(to right, transparent, #462953);
  font-weight: 500;
}

.how__steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--color-primary);
  color: var(--color-light);
  font-weight: bold;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
}

/* 6. FAQ */
.accordionTitle {
    font-size: 30px;
    margin-bottom: 15px;
}
/* Базовые стили аккордеона */
.accordion {
  max-width: 75%;
  margin: 50px auto;
}

.accordion__item + .accordion__item {
  margin-top: 10px;
}

/* Заголовок блока */
.accordion__header {
  width: 100%;
  text-align: left;
  background: var(--color-light);
  color: #fff;
  padding: 12px 16px;
  border: none;
  border-start-start-radius: 6px;
  font-size: 1.2rem;
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
}

.accordion__header::after {
  content: '+';
  position: absolute;
  right: 16px;
  font-weight: bold;
  transition: transform 0.3s;
}

.accordion__header.active {
  background: var(--color-light);
}

.accordion__header.active::after {
  content: '−';
  transform: rotate(180deg);
}

/* Скрытое содержимое */
.accordion__content {
  max-height: 0;
  overflow: hidden;
  background: #03024a;
  border-radius: 0 0 6px 6px;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

/* При открытии — добавим паддинги и позволим контенту развернуться */
.accordion__content.open {
  padding: 16px;
  max-height: 500px; 
  padding-left: 30px;/* достаточно для текста до ~300–400px */
}


/* 7. Контакты и footer */
.contacts {
  padding: 80px 0;
  background: var(--color-light);
}

.contacts .social-icons  {
    justify-content: center;
    text-align: center;
    margin: 10px;
}
.contacts .social-icons i  {
    text-align: center;
    font-size: 13px;
    margin: 10px;
}
.contacts .social-icons a  {
    font-size: 20px;
    justify-content: center;
    text-align: center;
}

.whatsapp {
    font-size: 15px;
    padding-left: 10px;
    justify-content: center;
    text-align: center;
    background-color: green;
    padding: 5px;
}
.whatsapp a {
    background-color: rgb(0, 245, 16);
    border: rgb(0, 245, 16);
    font-size: 20px;
    margin-left: 10px;
}
.whatsapp i {
    font-size: 12px;
}
.whatsapp:hover {
    background-color: rgb(0, 95, 0);
    box-shadow: 0 0 25px rgb(0, 95, 0);
}

.telegram {
    font-size: 15px;
    padding-left: 0px;
    justify-content: center;
    text-align: center;
    background-color: rgb(0, 157, 255);
    padding: 5px;
}
.telegram a {
    font-size: 20px;
}
.telegram i {
    font-size: 17px;
    padding-right: 3px;
}
.telegram:hover {
    background-color: rgb(0, 129, 173);
    box-shadow: 0 0 25px rgb(0, 129, 173);
}
.number {
    justify-content: center;
    text-align: center;
    background-color: rgb(0, 51, 255);
    padding: 5px;
}
.number i {
    font-size: 10px;
}
.number:hover {
    background-color: rgb(0, 129, 173);
    box-shadow: 0 0 25px rgb(0, 129, 173);
}


.contacts .form input,
.contacts .form button {
  width: 100%;
  max-width: 500px;
  margin: 10px auto;
  display: block;
}

.contacts .container {
  padding: 10px;
}

.footer {
  background: var(--color-light);
  padding: 30px 0;
  text-align: center;
}

.footer__nav a {
  color: var(--color-light);
  margin: 0 10px;
  text-decoration: none;
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: var(--color-primary);
}

/* 8. Адаптив */
@media (max-width: 768px) {
  .hero__title {
    font-size: 2.2rem;
  }

  .services__list {
    gap: 20px;
  }
}
