/* static/css/landing_page.css */

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(180deg, var(--light-bg, #F4F5F7) 0%, var(--white-bg, #FFFFFF) 100%);
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.hero-title {
    font-weight: 700;
    color: var(--dark-text, #172B4D);
}
.hero-section .lead {
    color: var(--muted-text, #6B778C);
    font-size: 1.1rem;
}
.hero-image-container {
    position: relative;
    z-index: 1;
}
.hero-image {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: var(--border-radius-xl, 8px);
}
.hero-image:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg, 0 8px 16px -4px rgba(23, 43, 77, 0.2), 0 0 1px rgba(23, 43, 77, 0.1));
}
.hero-section .auth-btn {
    transition: all 0.25s ease-out;
    min-width: 220px; /* Чтобы кнопки были одинаковой ширины */
}
.hero-section .auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md, 0 4px 8px -2px rgba(23, 43, 77, 0.15), 0 0 1px rgba(23, 43, 77, 0.1));
}
.hero-section .badge {
    font-size: 0.9rem;
    padding: 0.4em 0.7em;
}
/* Расположение кнопки Telegram */
.hero-section .telegram-login-button-container {
    display: inline-block; /* Или block, если нужно на всю ширину */
    margin-top: 0.75rem;
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}
.hero-section .telegram-login-button-container:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}


/* --- Features Section --- */
.features-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.section-title {
    position: relative;
    display: inline-block;
    font-weight: 700;
    color: var(--dark-text);
    padding-bottom: 0.75rem;
}
.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}
.feature-card {
    overflow: hidden;
    border: 1px solid var(--border-color, #DFE1E6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: var(--border-radius-lg, 6px);
    background-color: var(--white-bg);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md, 0 4px 8px -2px rgba(23, 43, 77, 0.15), 0 0 1px rgba(23, 43, 77, 0.1));
}
.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-lighter, #DEEBFF);
    border-radius: 50%;
    margin-bottom: 1rem;
}
.feature-icon {
    font-size: 1.7rem;
}
.feature-card .card-title {
    color: var(--dark-text);
    font-weight: 600;
}
.feature-card .card-text {
    color: var(--muted-text);
    font-size: 0.95rem;
}

/* --- FAQ Section --- */
.faq-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.faq-accordion .accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}
.faq-accordion .accordion-item:hover {
    box-shadow: var(--shadow-md);
}
.faq-accordion .accordion-button {
    font-weight: 500; /* Сделаем чуть менее жирным, чем в style.css */
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    color: var(--dark-text);
}
.faq-accordion .accordion-button:not(.collapsed) {
    background-color: var(--primary-lighter);
    color: var(--primary-color);
    box-shadow: inset 0 -1px 0 var(--border-color);
}
.faq-accordion .accordion-button:focus {
    box-shadow: 0 0 0 2px var(--input-focus-shadow) !important; /* !important для переопределения Bootstrap */
    border-color: transparent; /* Убираем рамку при фокусе, если она есть */
    z-index: 3;
}
.faq-accordion .accordion-body {
    font-size: 0.95rem;
    color: var(--muted-text);
    background-color: var(--white-bg); /* Явный фон */
}
.faq-accordion .accordion-button i.bi {
    transition: transform 0.2s ease-in-out;
}
.faq-accordion .accordion-button:not(.collapsed) i.bi {
    transform: rotate(0deg); /* Если иконка должна меняться */
}


/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: var(--white-bg);
    padding: 3.5rem 0;
}
.cta-section h2 {
    font-weight: 700;
}
.cta-section .btn-light {
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    min-width: 220px;
}
.cta-section .btn-light:hover {
    background-color: #f8f9fa; /* Чуть темнее белого */
    color: var(--primary-hover);
    transform: translateY(-2px);
}
.cta-section .telegram-login-button-container {
    margin-top: 1rem;
}

/* --- Responsive adjustments --- */
@media (max-width: 991.98px) { /* Medium devices (tablets, less than 992px) */
    .hero-section {
        text-align: center;
    }
    .hero-section .d-md-flex {
        justify-content: center !important;
    }
    .feature-icon-wrapper {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767.98px) { /* Small devices (landscape phones, less than 768px) */
    .hero-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .hero-title {
        font-size: calc(1.325rem + 0.9vw); /* Bootstrap's h2 size */
    }
    .hero-section .lead {
        font-size: 1rem;
    }
    .section-title {
        font-size: calc(1.275rem + 0.3vw); /* Bootstrap's h3 size */
    }
    .feature-card .card-title {
        font-size: 1.1rem;
    }
     .telegram-login-button-container { /* Для кнопок телеграм на маленьких экранах */
        display: block;
        text-align: center;
        margin-top: 0.75rem;
    }
    .telegram-login-button-container iframe {
        display: inline-block !important; /* Чтобы центрировалась */
    }
    .auth-btn {
        width: 100%; /* Кнопки на всю ширину */
        max-width: 320px; /* Но с ограничением */
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 575.98px) { /* Extra small devices (portrait phones, less than 576px) */
    .hero-title {
        font-size: 1.6rem;
    }
    .hero-section .lead {
        font-size: 0.95rem;
    }
    .section-title {
        font-size: 1.4rem;
    }
     .features-section .col { /* Для карточек фич на мобильных */
        flex: 0 0 90%;
        max-width: 90%;
    }
}
