/* Общие стили */
body {
    margin: 0;
    padding-top: 80px;
    font-family: 'Nunito', sans-serif;
    color: #000;
    background-color: #ffffff;
    width: 100%;
    
}

/* Фиксированный хедер */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #7C88B6;
    min-width: 1100px;
 /* убираем прозрачность */

    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}
.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 10px;
}
.offcanvas-nav{
    display: none;
}
.header-logo img {
    width: 50px;
}

.header-logo span {
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
}
.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-item a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
    padding-top: 10px; /* делаем запас сверху под стрелку */
}

/* Стрелочка */
.nav-arrow {
    position: absolute;
    top: 0;
    width: 10px;
    height: 10px;
    background: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6"><path d="M0 0l5 6 5-6H0z"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Показываем стрелку только на активном пункте */
.nav-item.active .nav-arrow {
    opacity: 1;
}

.trial-btn {
    padding: 10px 20px;
    background: #fff;
    color: #4e5abc;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s;
}
.trial-btn:hover {
    background: #f0f0f0;
}
.hero-image-slider {
    position: relative;
    width: 300px;   /* Ширина фрейма телефона */
    height: 600px;  /* Высота фрейма телефона */
    margin: 0 auto;
   
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.language-select {
    padding: 6px 10px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    background: transparent;
    color: #ffffff;
    font-family: 'Nunito', sans-serif;
    font-size: 1em;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s;
    
}

.language-select:hover {
    border-color: #ffffff;
}

.language-select option {
    color: #000000; /* Чтобы внутри списка текст был чёрным */
}


.phone-frame {
    width: 100%;
    height: 100%;
    position: relative;
}

.phone-frame img {
    position: absolute;
    top: 6%;       /* Сдвиг внутрь рамки */
    left: 4%;
    width: 92%;    /* Занимает почти всю область экрана */
    height: 88%;
    object-fit: cover;
    border-radius: 16px;
}

.slider-dots {
    position: absolute;
    right: -10px;   /* Точки справа от телефона */
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff88;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dots .dot.active {
    background: #ffffff;
}
/* Секции и волны */
section {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}
.section-title {
    font-size: 2.5em;
    color: #000;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 40px;
}
/* Волны */
.wave {
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
    line-height: 0;
    margin-bottom: -10px;
}
.wave svg {
    display: block;
    width: 100%;
    height: 100%;
}
.wave.top {
    top: 0;
    transform: translateY(-1px) rotate(180deg);
}
.wave.bottom {
    bottom: 0;
    transform: translateY(1px);
}

/* Hero */
#hero {
    background: linear-gradient(135deg, #82A8D7, #8F4E5ABC);
    color: #fff;
    padding-top: 0;
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: center; /* Вместо space-between */
    flex-wrap: wrap;
    padding-top: 40px;
    padding-bottom: 120px;
    gap: 60px; /* Расстояние между текстом и телефоном */
}

.hero-text {
    flex: 0 0 500px; /* Фиксируем ширину текстового блока */
    max-width: 500px;
    text-align: center;
}

.hero-image {
    flex: 0 0 auto;
}

.hero-text h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}
.hero-text p {
    font-size: 1.2em;
    margin-bottom: 30px;
}
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px; /* <--- добавляем расстояние между кнопками */
    align-items: center; /* чтобы были по центру */
}

.hero-buttons a {
    display: inline-block;
    margin-right: 10px;
    padding: 12px 24px;
    background: #fff;
    color: #4e5abc;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}
.hero-buttons a:hover {
    background: #f0f0f0;
    color: #000;
}
.hero-image img {
    width: 280px;
}

/* About */
#about {
    background: #ffffff; /* Цвет фона секции */
    position: relative;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    background: #eef1f8;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Выровнять всё вверх */
    height: 80%; /* Важно: высота карточки фиксируется */
}

.benefit-icon {
    font-size: 3em;
    margin-bottom: 15px;
    color: #4e5abc;
}

.benefit-item h3 {
    font-size: 1.4em;
    color: #4e5abc;
    margin-bottom: 10px;
    min-height: 50px; /* !!! Минимальная высота заголовка */
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-item p {
    font-size: 1em;
    color: #555555;
    min-height: 80px; /* !!! Минимальная высота текста */
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background: #dfe6f6; /* При ховере — более насыщенный светлый голубой */
}




/* Features */
#features{
    background-color: #EEF1F8;
}
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Центровка карточек */
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    flex: 0 1 200px; /* Карточка шириной 250px, но может адаптироваться */
    background: #fff;
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
    font-size: 1.3em;
    color: #4e5abc;
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 1em;
    color: #555;
}

#how{
    background: #ffffff;
}

/* HOW IT WORKS */
.how-section {
    background: #fff;
    font-family: Nunito, sans-serif;
}
.how-section .section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}
.how-section .section-title {
    font-size: 2.4em;
    color: #000;
    margin-bottom: 40px;
}

/* Контейнер роадмапа */
.how-section .roadmap {
    display: flex;
    overflow-y: hidden;
    overflow-x: hidden;
    align-items: center;
    justify-content: center;
   
    padding: 0 10px;
    gap: 0; /* сами сегменты выравнивают отступ */
}

/* Шаг */
.how-section .item {
    flex: 0 0 auto;
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.how-section .item.top {
    margin-bottom: 40px;
}
.how-section .item.bottom {
    margin-top: 40px;
}
.how-section .step-icon {
    font-size: 2.5em;
    color: #4e5abc;
    margin-bottom: 8px;
}
.how-section .item h3 {
    font-size: 1em;
    color: #333;
    margin: 0;
    text-align: center;
    line-height: 1.2;
}

/* Плавные волнистые сегменты */
.how-section .wave-segment {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.how-section .wave-segment svg {
    width: 100%;
    height: 100%;
}
.how-section .wave-segment.down {
    margin: 0 -10px;
}
.how-section .wave-segment.up {
    margin: 0 -10px;
}

/* Мобильная версия */


/* ===== Реферальная секция ===== */
 #referral{
    background: #EEF1F8;
}
.referral-section {
    background: #EEF1F8; /* белый фон */
    font-family: Nunito, sans-serif;
}

.referral-section .section-content {
    max-width: 900px; /* сужаем текст, чтобы не растягивался */
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
    font-family: 'Nunito', sans-serif;
}

.referral-section .section-title {
    font-size: 2.4em;
    color: #000;
    margin-bottom: 30px;
}

.referral-section .section-text {
    font-size: 1.2em;
    color: #444;
    line-height: 1.7;
    margin: 0 auto;
}

.referral-section .referral-note {
    font-size: 0.9em;
    color: #888;
    margin-top: 30px;
    line-height: 1.4;
}

/* Адаптив для мобильных экранов */


/* ===== FAQ СЕКЦИЯ ===== */
#faq{
    background: #ffffff;
}
.faq-section {
    background: #ffffff;
}

.faq-section .section-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
    font-family: 'Nunito', sans-serif;
}

.faq-section .section-title {
    font-size: 2.4em;
    color: #000;
    margin-bottom: 40px;
}

.faq-list {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* FAQ элемент */
.faq-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s;
}

.faq-item.active {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Вопрос */
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 30px;
    font-size: 1.2em;
    color: #4e5abc;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #eef1f8;
}

/* Ответ */
.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    font-size: 1.05em;
    color: #555;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 20px 30px;
    max-height: 500px; /* максимум раскрытия */
}

/* Адаптив */


.contact-section {
    background: #EEF1F8;
}
.contact-section .section-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
    font-family: 'Nunito', sans-serif;
}
.contact-section .section-title {
    font-size: 2.4em;
    color: #000;
    margin-bottom: 20px;
}
.contact-section .section-text {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 40px;
}
.contact-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #4e5abc;
    font-weight: bold;
    transition: color 0.3s;
}
.contact-item:hover {
    color: #333;
}
.contact-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

/* ===== FOOTER ===== */
/* ===== FOOTER ===== */
.site-footer {
    background: #7C88B6;
    color: #fff;
    font-family: 'Nunito', sans-serif;
    padding: 50px 20px 30px;
    text-align: center;
}


.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-logo span {
    font-size: 1.8em;
    font-weight: bold;
    letter-spacing: 1px;
}

.footer-bottom {
    border-top: 1px solid #ffffff44;
    padding-top: 15px;
    font-size: 0.9em;
    color: #eeeeee;
}

.hamburger {
    display: none;
}
  @media (max-width: 1100px) {
    /* --- Общие исправления --- */
    body {
        margin: 0;
        padding: 0; /* убираем padding-top вообще */
        font-family: 'Nunito', sans-serif;
        background: #ffffff;
        color: #000000;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
    html{
        height: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
    }
    
    /* Хедер всегда сверху без белой полосы */
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: #7C88B6;
        z-index: 1000;
        min-width: 0px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        height: 64px; /* фиксированная высота */
    }
    
    /* Контейнер внутри хедера */
    .header-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    
    /* Лого */
    .header-logo {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .header-logo img {
        width: 36px;
        height: 36px;
    }
    .header-logo span {
        font-size: 1.3em;
        font-weight: bold;
        color: #fff;
    }
    
    /* Гамбургер */
    .hamburger {
        position: absolute; /* Обязательно для закрепления */
        left: 20px; /* Прижимаем к левому краю */
        top: 50%; /* Выравниваем по вертикали */
        transform: translateY(-50%); /* Центруем по оси Y */
        
        background: none;
        border: none;
        padding: 0;
        margin: 0;
        cursor: pointer;
        width: 30px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1002;
    }
      
      .hamburger svg {
        width: 100%;
        height: 100%;
      }
      
      .hamburger rect {
        transition: all 0.3s ease;
      }
    /* --- Скрываем стандартные элементы навигации --- */
    nav, .header-actions {
      display: none;
    }
  
    /* --- Offcanvas меню --- */
    .offcanvas-nav {
      position: fixed;
      top: 0;
      left: 0;
      width: 80%;
      max-width: 300px;
      height: 100vh;
      padding-top: 80px;
      background: linear-gradient(135deg, #82A8D7, #8F4E5ABC);
      transform: translateX(-100%);
      transition: transform 0.3s ease;
      z-index: 1001;
      display: flex;
      flex-direction: column;
    }
    .custom-select-wrapper {
        position: relative;
        width: 140px; /* Можно менять ширину */
    }
    
    .custom-select-trigger {
        background: #ffffff;
        border: 1px solid #cccccc;
        border-radius: 6px;
        padding: 8px 12px;
        font-size: 14px;
        color: #333333;
        cursor: pointer;
        user-select: none;
        text-align: left;
    }
    
    .custom-options {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        border: 1px solid #cccccc;
        border-radius: 6px;
        margin-top: 5px;
        display: none;
        flex-direction: column;
        overflow-y: auto; /* ДОБАВЛЕНО: скролл при переполнении */
        max-height: 200px; /* ДОБАВЛЕНО: ограничение по высоте */
        z-index: 111111;
    }
    
    
    .custom-options.open {
        display: flex;
    }
    
    .custom-option {
        padding: 8px 12px;
        font-size: 14px;
        color: #333333;
        cursor: pointer;
        white-space: nowrap; /* чтобы не переносился текст */
    }
    
    .custom-option:hover,
    .custom-option.active {
        background: #f5f5f5;
    }
    .offcanvas-nav.open {
      transform: translateX(0);
    }
    .offcanvas-nav .nav-menu {
      flex-direction: column;
      gap: 0;
    }
    .offcanvas-nav .nav-menu li {
      margin: 0;
      border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    .offcanvas-nav .nav-menu a {
      display: block;
      padding: 16px 24px;
      color: #fff;
      font-size: 1.1em;
    }
    .offcanvas-nav .header-actions {
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 16px 24px;
    }
    .offcanvas-nav .trial-btn {
      display: block;
      text-align: center;
    }
    .offcanvas-nav .language-select {
      width: 100%;
      background: #fff;
      color: #000;
      border: none;
      border-radius: 4px;
      padding: 8px;
      font-size: 1em;
      cursor: pointer;
    }
  
    /* --- Hero блок --- */
    .hero-content {
      display: flex;
      flex-direction: column-reverse;
      align-items: center;
      text-align: center;
      gap: 20px;
      padding-top: 20px;
      padding-bottom: 40px;
    }
    .hero-text {
      order: 1;
      margin-bottom: -20px;
      max-width: 90%;
    }
    .hero-buttons {
      
      display: flex;
      flex-direction: column;
      gap: 8px;
      width: 100%;
      align-items: center;
    }
    .hero-buttons a {
      width: 100%;
      text-align: center;
      max-width: 250px;
      padding: 12px 0;
    }
    .hero-image {
      order: 3;
      margin-top: 10px;
    }
    .hero-image img {
      width: 220px;
      max-width: 90%;
    }
    .hero-image-slider {
       
        margin-top: -100px;
    }
    /* --- How It Works --- */
    .how-section .roadmap {
      flex-direction: column;
      gap: 20px;
      
      overflow: hidden;
    }
    .how-section .item.top,
    .how-section .item.bottom {
      margin: 0 !important;
    }
    .how-section .wave-segment {
      display: none;
    }
  
    /* --- Referral Section --- */
    .referral-section .section-content {
      padding: 60px 20px;
    }
    .referral-section .section-title {
      font-size: 2em;
    }
    .referral-section .section-text {
      font-size: 1.05em;
      line-height: 1.6;
    }
    .referral-section .referral-note {
      font-size: 0.85em;
    }
  
    /* --- FAQ Section --- */
    .faq-section .section-content {
      padding: 60px 20px;
    }
    .faq-question {
      font-size: 1.1em;
    }
    .faq-answer {
      font-size: 1em;
    }
  
    /* --- Contact Section --- */
    .contact-list {
      gap: 30px;
    }
  
    /* --- Общая адаптивность для секций --- */
    .section-content {
      padding: 60px 20px;
      min-height: max-content;
    }
    .benefits, .features, .steps, .plans, .faqs {
      justify-content: center;
    }
    
  }
  