@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Roboto:wght@500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    margin-left: 20px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.header__nav {
    text-align: center;
    margin-right: 5vw;
}

.nav__list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav__link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav__link:hover {
    color: #AAFF00;
}

.header__btn {
    background-color: #AAFF00;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.header__btn:hover {
    background-color: #88CC00;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    transition: left 0.3s ease;
}

.sidebar-overlay.active {
    left: 0;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1200;
    padding: 20px;
    transition: left 0.3s ease;
}

.sidebar-overlay.active .sidebar {
    left: 0;
}

.sidebar__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

.sidebar__list {
    list-style: none;
    margin-top: 60px;
}

.sidebar__link {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    display: block;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.sidebar__link:hover {
    color: #AAFF00;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header__nav {
        display: none;
    }

    .hamburger {
        display: block;
        margin-left: 10px;
    }

    .header__btn {
        margin-right: 10px;
        padding: 8px 15px;
        font-size: 14px;
    }

    .header__inner {
        flex-wrap: wrap;
    }

    .header__logo {
        margin-left: 10px;
    }

    .logo-img {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .header__btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .sidebar__link {
        font-size: 16px;
    }
}


/*------- БЛОК №1 -------*/
.hero {
    background-color: #000;
    padding: 100px 0; /* Отступ сверху учитывает фиксированный header */
}

.hero__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.hero__text {
    flex: 1;
    
}

.hero__title {
    font-size: 48px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero__title-highlight {
    position: relative;
    display: inline-block;
}

.hero__title-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #AAFF00;
}

.hero__subtitle {
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #fff;
    opacity: 0.8;
    line-height: 1.5;
    max-width: 500px;
}

.hero__image {
    position: relative;
    width: 50%;
    padding-top: 56.25%; /* 720/1280 = 0.5625 или 9/16, для десктопа */
    background-color: #000;
    overflow: hidden;
}

.phone-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Видео отображается полностью без обрезки */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero__inner {
        flex-direction: column;
        text-align: center;
    }

    .hero__text {
        margin-bottom: 30px;
        padding-top: 5vw;
    }

    .hero__title {
        font-size: 36px;
    }

    .hero__subtitle {
        font-size: 14px;
        max-width: 100%;
    }

    .hero {
        padding: 80px 0;
    }

    .hero__image {
        width: 100%;
        padding-top: 177.78%; /* 1280/720 = 1.7778 или 16/9, для вертикального отображения на мобильных */
        min-height: 0; /* Убираем минимальную высоту, чтобы адаптироваться */
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 28px;
    }

    .hero__subtitle {
        font-size: 12px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero__image {
        padding-top: 177.78%; /* Сохраняем вертикальное соотношение */
    }
}







/*------- БЛОК №2 -------*/



.pricing {
    background-color: #000;
    padding: 80px 0;
    text-align: center;
    
}

.pricing__title {
    font-size: 48px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #fff;
    margin-bottom: 50px;
}

.pricing__cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    
}

.pricing__card {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    
}

.pricing__card-dark {
    background-color: #000;
    border: 2px solid #AAFF00;
}

.pricing__card-title {
    font-size: 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}

.pricing__card-dark .pricing__card-title {
    color: #fff;
}

.pricing__card-devices {
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #000;
    margin-bottom: 20px;
}

.pricing__card-dark .pricing__card-devices {
    color: #fff;
}

.pricing__card-price {
    font-size: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
}

.pricing__card-dark .pricing__card-price {
    color: #fff;
}

.pricing__card-price-current {
    font-size: 28px;
    color: #000;
}

.pricing__card-dark .pricing__card-price-current {
    color: #fff;
}

.pricing__card-price-old {
    font-size: 16px;
    color: #666;
    text-decoration: line-through;
    margin-left: 10px;
}

.pricing__card-dark .pricing__card-price-old {
    color: #888;
}

.pricing__card-btn {
    display: inline-block;
    background-color: #AAFF00;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.pricing__card-btn:hover {
    background-color: #88CC00;
}

.pricing__info-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 40px;
    
    border: 90px;
    padding: 4%;
    
}

.pricing__info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 3%;
    width: 48%; /* Чуть меньше 50%, чтобы избежать наложения */
    border: 1px solid #AAFF00;
    border-radius: 20px;
  
    
}

.pricing__info-text {
    flex: 1;
    text-align: left;
}

.pricing__info-title {
    font-size: 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    
}

.pricing__info-description {
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #fff;
    opacity: 0.8;
    line-height: 1.5;
}

.pricing__info-image {
    flex: 1;
    text-align: center;
}

.info-img {
    max-width: 100%;
    height: auto;
    max-height: 150px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing__cards {
        flex-direction: column;
        align-items: center;
    }

    .pricing__card,
    .pricing__card-dark {
        width: 100%;
        max-width: 400px;
    }

    .pricing__info-container {
        flex-direction: column;
        align-items: center;
    }

    .pricing__info-item {
        width: 100%;
        margin-bottom: 40px;
    }

    .pricing__info-image {
        margin-top: 20px;
    }

    .pricing__title {
        font-size: 36px;
    }

    .pricing {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .pricing__title {
        font-size: 28px;
    }

    .pricing__card-title {
        font-size: 20px;
    }

    .pricing__card-devices {
        font-size: 14px;
    }

    .pricing__card-price {
        font-size: 18px;
    }

    .pricing__card-price-current {
        font-size: 24px;
    }

    .pricing__card-price-old {
        font-size: 14px;
    }

    .pricing__card-btn {
        font-size: 14px;
        padding: 8px 16px;
    }

    .pricing__info-title {
        font-size: 20px;
    }

    .pricing__info-description {
        font-size: 14px;
    }

    .info-img {
        max-height: 120px;
    }

    .pricing {
        padding: 40px 0;
    }
}


/*------- БЛОК №3 -------*/

.why-us__title {
    font-size: 48px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #fff;
    margin-bottom: 50px;
    padding: 1%;
}
.why-us {
    background-color: #000;
    padding: 80px 0;
    text-align: center;
}

.grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      max-width: 1200px;
      margin: 0 auto;
    }

    .card {
      background-color: #000000;
      border: 1px solid #575757;
      border-radius: 20px;
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      box-shadow: 0 0 10px rgba(0,0,0,0.2);
      overflow: hidden;
      align-items: flex-start; /* ВЫРАВНИВАНИЕ ПО ЛЕВОМУ КРАЮ */
    }

    .icon {
      font-size: 26px;
      color: #d4ff00;
      text-align: left; /* <-- добавь это */
    }

    .title {
      font-weight: 600;
      font-size: 25px;
      margin-bottom: 8px;
      text-align: left; /* <-- добавь это */
    }

    .text {
      font-size: 19px;
      color: #dcdcdc;
       text-align: left; /* <-- добавь это */
    }

    /* Карточка "Автовыплаты" (высокая) */
    .tall-card {
      grid-row: span 2;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .tall-card img {
      width: 100%;
      height: auto;
      border-radius: 16px;
      margin-top: 12px;
      object-fit: contain;
    }

    /* Карточка "Удобный личный кабинет" (широкая) */
    .wide-card {
      grid-column: span 2;
      display: flex;
      flex-direction: row; /* фото слева, текст справа */
      align-items: center;
      gap: 20px;
    }

    .wide-card .image {
      flex: 1;
      max-width: 100%;
      position: relative;
      margin-bottom: 0;
      margin: -140px; /* эффект выхода за границу сверху и снизу */
    }

    .wide-card .image img {
      width: 100%;
      height: auto;
      border-radius: 16px;
      object-fit: contain;
    }

    .wide-card .content {
      flex: 1;
    }

    /* 📱 Адаптив */
    @media (max-width: 900px) {
      .grid {
        grid-template-columns: 1fr;
      }

      .tall-card {
        grid-row: span 1;
      }

      .wide-card {
        flex-direction: column;
        grid-column: span 1;
        align-items: flex-start;
      }

      .wide-card .image,
      .wide-card .image img,
      .tall-card img {
        display: none;
      }

      .wide-card .content {
        max-width: 100%;
      }
    }



/*------- БЛОК №4 -------*/

.faq {
  background-color: #000;
  padding: 80px 0;
  text-align: center;
}

.faq__title {
  font-size: 48px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #fff;
  margin-bottom: 50px;
  line-height: 1.2;
}

.faq__items {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  background-color: #111;
  border: 1px solid #333;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.05);
  transition: border 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.faq__item[open] {
  border-color: #d4ff00;
  background-color: #1a1a1a;
  box-shadow: 0 0 20px rgba(212, 255, 0, 0.1);
}

.faq__question {
  font-size: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: #fff;
  padding: 20px 20px 20px 60px;
  cursor: pointer;
  position: relative;
  text-align: left;
  transition: background-color 0.3s ease;
}

.faq__question:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

/* Кастомный caret-иконка (стрелка) */
.faq__question::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  border: solid #d4ff00;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 6px;
  transform-origin: center;
  transition: transform 0.3s ease;
  transform: translateY(-50%) rotate(45deg);
}

.faq__item[open] .faq__question::before {
  transform: translateY(-50%) rotate(-135deg);
}

.faq__answer {
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #fff;
    background-color: #000;
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.5s ease, padding 0.3s ease;
}


.faq__item[open] .faq__answer {
  max-height: 300px;
  opacity: 1;
  padding: 20px;
}

.faq__answer p {
    margin: 0;
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
    opacity: 0;
    transform: translateY(-10px);
}

.faq__item[open] .faq__answer p {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .faq__title {
    font-size: 36px;
  }

  .faq__question {
    font-size: 18px;
    padding: 16px 16px 16px 48px;
  }

  .faq__question::before {
    left: 16px;
    padding: 5px;
  }

  .faq__answer {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .faq__title {
    font-size: 28px;
  }

  .faq__question {
    font-size: 16px;
    padding: 12px 12px 12px 40px;
  }

  .faq__question::before {
    left: 12px;
    padding: 4px;
  }

  .faq__answer {
    font-size: 13px;
  }
}

.faq__item summary::-webkit-details-marker,
.faq__item summary::marker {
  display: none;
  content: '';
}

/*------- БЛОК №5 -------*/


.footer {
  background-color: #000;
  color: #fff;
  padding: 40px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.footer__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 200px;
}

.footer__logo {
  width: 150px;
  height: auto;
  margin-bottom: 10px;
}

.footer__copyright {
  line-height: 1.5;
  color: #dcdcdc;
}

.footer__center {
  flex: 2;
  display: flex;
  justify-content: center;
}

.footer__nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.footer__nav li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__nav li a:hover {
  color: #d4ff00;
}

.footer__right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 150px;
}

.footer__telegram {
  display: flex;
  align-items: center;
  color: #d4ff00;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer__telegram:hover {
  opacity: 0.7;
}

.footer__telegram-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}


@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__left,
  .footer__center,
  .footer__right {
    justify-content: center;
    align-items: center;
  }

  .footer__nav {
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
  }

  .footer__telegram {
    margin-top: 20px;
  }
}
