/* Адаптивні стилі для контенту сайту */

@media (max-width: 768px) {
    /* Героїчна секція */
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        order: -1;
        margin-top: 65px;
        margin-bottom: 20px;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text {
        width: 100%;
    }

    .hero-text h1 {
        font-size: 36px;
        width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .btn-primary, 
    .btn-secondary {
        width: auto;
        padding: 0 20px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-features {
        justify-content: center;
    }

    /* Секція з функціями */
    .features-content {
        flex-direction: column;
    }

    .features-text,
    .features-cards {
        width: 100%;
        flex: none;
    }

    .features-image {
        width: 100%;
        margin-left: 0;
        margin-bottom: 30px;
    }

    .features-cards {
        grid-template-columns: 1fr;
    }

    .feature-card {
        height: auto;
        min-height: 200px;
    }

    /* FAQ секція */
    .faq-items {
        padding: 0 10px;
    }

    .faq-question h3 {
        font-size: 16px;
        padding-right: 40px;
    }

    /* Футер */
    .footer-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .footer-nav ul {
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Адаптивні відступи для головної сторінки */
    .hero-section {
        padding: 125px 0 60px 0; /* Трохи менший відступ для планшетів */
    }
    
    .page-title-section {
        padding: 125px 0 40px 0;
    }
    
    .partners-title {
        padding-top: 50px;
    }
}

@media (max-width: 576px) {
    .hero-section,
    .features-section,
    .faq-section,
    .cta-section,
    .contact-section {
        padding: 40px 0;
    }

    .container {
        padding: 0 15px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .features-text h2 {
        font-size: 24px;
    }

    .feature-card h3 {
        font-size: 20px;
    }

    .faq-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .btn-primary, 
    .btn-secondary {
        font-size: 16px;
        height: 46px;
    }

    .footer-copyright {
        font-size: 12px;
        line-height: 1.4;
    }

    .hero-section {
        padding: 55px 0 40px 0; /* Ще менший відступ для мобільних */
    }
    
    .page-title-section {
        padding: 125px 0 30px 0;
    }
    
    .partners-title {
        padding-top: 40px;
        font-size: 36px;
    }
}

/* Стилі для адаптивного контенту */

/* Загальні адаптивні правила */
@media screen and (max-width: 768px) {
    /* Загальні стилі та типографіка */
    .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }

    h1 {
        font-size: 30px;
        line-height: 1.3;
    }

    h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    h3 {
        font-size: 20px;
    }

    p {
        font-size: 16px;
    }

    /* Таблиці на мобільних */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Зображення на мобільних */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Адаптивні відступи */
    .section {
        padding: 50px 0;
    }

    .section-title {
        margin-bottom: 30px;
    }

    /* Адаптивна кнопка прокрутки нагору */
    .scroll-to-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
    }

    /* Головний блок */
    .hero-section {
        padding: 80px 0 50px;
        text-align: center;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
    }

    .hero-text {
        width: 100%;
        text-align: center;
    }

    .hero-image {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* Секція особливостей */
    .features-section {
        padding: 50px 0;
    }

    .features-title {
        margin-bottom: 30px;
    }

    .features-cards {
        flex-direction: column;
        gap: 20px;
    }

    .feature-card {
        width: 100%;
        padding: 20px;
    }

    /* Секція CTA */
    .cta-section {
        padding: 50px 0;
    }

    .cta-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .cta-text {
        font-size: 16px;
        margin-bottom: 25px;
        max-width: 100%;
    }

    /* Секція FAQ */
    .faq-section {
        padding: 50px 0;
    }

    .faq-title {
        margin-bottom: 30px;
    }

    /* Покращуємо відображення FAQ на мобільних */
    .faq-item {
        margin-bottom: 8px;
        border-radius: 8px;
        overflow: hidden;
        transition: all 0.3s ease;
        border: 1px solid rgba(0,0,0,0.1);
    }
    
    .faq-question {
        padding: 12px 40px 12px 15px;
        position: relative;
        cursor: pointer;
        background-color: #f8f8f8;
    }
    
    .faq-answer {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0 15px;
        background-color: #fff;
    }
    
    .faq-item.active .faq-answer {
        max-height: 500px;
        padding: 15px;
    }
    
    .faq-toggle {
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 5;
    }
    
    .faq-toggle svg {
        width: 100%;
        height: 100%;
        transition: transform 0.3s ease;
    }
    
    .faq-item.active .faq-toggle svg {
        transform: rotate(180deg);
    }
    
    /* Збільшуємо область взаємодії для кращого UX на мобільних */
    .faq-question::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
    }
    
    .faq-item.active .faq-question {
        background-color: #f0f0f0;
    }

    /* Переконуємось, що посилання в кнопках працюють правильно */
    .hero-buttons .btn,
    .cta-button {
        width: 100%;
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }
    
    /* Контактна форма */
    .contact-section {
        padding: 50px 0;
    }

    .contact-title {
        margin-bottom: 30px;
    }

    .contact-form {
        padding: 20px;
        width: 100%;
        max-width: 100%;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-submit {
        padding: 12px 20px;
    }

    /* Футер */
    .footer {
        padding: 40px 0 20px;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-column {
        width: 100%;
        text-align: center;
    }

    .footer-bottom {
        margin-top: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Додаткові стилі для дуже маленьких екранів */
@media screen and (max-width: 576px) {
    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 22px;
    }

    .hero-section {
        padding: 60px 0 40px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        margin: 5px 0;
        padding: 12px 15px;
        font-size: 16px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        margin-bottom: 10px;
    }

    .features-card-icon {
        width: 50px;
        height: 50px;
    }

    .features-card-title {
        font-size: 18px;
    }

    .faq-question {
        font-size: 16px;
        padding-right: 30px;
    }

    .faq-toggle::before, 
    .faq-toggle::after {
        right: 10px;
    }

    /* Стилі для сторінки партнерів */
    .partner-logo {
        width: 100%;
    }

    /* Стилі для сторінок умов та політики */
    .terms-content,
    .privacy-content {
        padding: 30px 15px;
    }
    
    /* Покращення для зовнішнього вигляду на мобільних */
    input, select, textarea {
        font-size: 16px !important; /* Запобігає авто-зуму на iOS */
    }
    
    /* Покращення для мобільних сповіщень */
    .alert {
        padding: 10px;
        font-size: 14px;
    }
}

/* Адаптивні анімації (вимкнені для пристроїв з налаштуваннями зменшення руху) */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
} 