/* Базовые сбросы и настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto Slab', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75em;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #27ae60;
    margin: 15px auto 30px;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 50px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #27ae60;
    color: white;
}

.btn-primary:hover {
    background-color: #219653;
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(39, 174, 96, 0.2);
}

/* Хедер и навигация */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(44, 62, 80, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.logo span {
    color: #27ae60;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin-left: 30px;
}

.nav-list a {
    color: #ecf0f1;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: #27ae60;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 25px;
    height: 20px;
    justify-content: space-between;
}

.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: 0.3s;
}

/* Герой-секция */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../img/hero.jpg");
    padding-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Секция "О нас" */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 70px;
}

.about-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-icon {
    font-size: 2.5rem;
    color: #27ae60;
    margin-bottom: 20px;
}

.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    color: white;
    padding: 40px 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 10px;
}

.stat-number {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #27ae60;
}

.stat-text {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Секция "Контракт" */
.contract {
    background-color: #f1f8ff;
}

.highlight-box {
    background: linear-gradient(to right, #27ae60, #2ecc71);
    color: white;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    margin: 40px auto 60px;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.3);
}

.highlight-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.highlight-sum {
    font-size: 3.5rem;
    font-weight: 700;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-top: 4px solid #27ae60;
    transition: transform 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2.2rem;
    color: #27ae60;
    margin-bottom: 15px;
}

/* Секция "Обучение" */
.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.training-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.training-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-left-color: #27ae60;
}

.training-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.training-card h4 i {
    margin-right: 10px;
    color: #3498db;
}

.training-card p {
    color: #555;
    font-size: 0.95rem;
}

/* Секция FAQ */
.faq {
    background-color: #f9f9f9;
}

.faq-list {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
    border-left: 4px solid transparent;
    transition: all 0.3s;
}

.faq-question:hover, .faq-item.active .faq-question {
    background-color: #f1f8ff;
    border-left-color: #27ae60;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px 25px;
    max-height: 500px;
}

/* Обновляем FAQ секцию */
.faq-content-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

/* Стили для блока с выплатами в FAQ */
.faq-payments {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin: 15px 0;
    border: 1px solid #e9ecef;
}

.faq-payment-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #27ae60;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-payment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-payment-item:last-child {
    margin-bottom: 0;
}

.faq-payment-item h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.faq-payment-item h4 i {
    color: #27ae60;
    font-size: 1.3rem;
    width: 30px;
    text-align: center;
}

.faq-payment-item p {
    margin: 8px 0;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.faq-payment-item p strong {
    color: #2c3e50;
    min-width: 100px;
    font-weight: 600;
}

.faq-payment-item p:first-of-type {
    font-size: 1.1rem;
    color: #27ae60;
    font-weight: 600;
}

.faq-payment-item p:first-of-type strong {
    color: #219653;
}

/* Стили для содержимого FAQ ответов */
.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px 25px;
    max-height: 1000px; /* Увеличиваем для возможности показать все выплаты */
}

.faq-answer p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Адаптивность для FAQ выплат */
@media (max-width: 768px) {
    .faq-payments {
        padding: 20px 15px;
    }
    
    .faq-payment-item {
        padding: 15px;
    }
    
    .faq-payment-item h4 {
        font-size: 1.1rem;
        gap: 10px;
    }
    
    .faq-payment-item h4 i {
        font-size: 1.1rem;
    }
    
    .faq-payment-item p {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .faq-payment-item p strong {
        min-width: auto;
        margin-right: 5px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 20px 20px;
    }
}

@media (max-width: 576px) {
    .faq-payments {
        padding: 15px 12px;
    }
    
    .faq-payment-item {
        padding: 12px;
    }
    
    .faq-payment-item h4 {
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 15px 20px;
    }
}

/* Секция "Контакты" - ОБНОВЛЕНО */
.contacts-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch; /* Ключевое свойство для одинаковой высоты */
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%; /* Занимает всю высоту ячейки */
}

.contact-detail {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-detail:last-child {
    margin-bottom: 0;
}

.contact-detail i {
    font-size: 1.3rem;
    color: #27ae60;
    margin-right: 15px;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-info h3 {
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

/* Удаляем стили старой формы */
.contact-form {
    display: none;
}

/* Стили для Telegram CTA - ОБНОВЛЕНО */
.telegram-cta {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%; /* Занимает всю высоту ячейки */
    justify-content: center;
    border-top: 4px solid #27ae60;
    position: relative;
}

.telegram-icon {
    font-size: 3.5rem;
    color: #27ae60;
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.telegram-cta h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.telegram-cta p {
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-telegram {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    margin-bottom: 20px;
    width: auto;
    max-width: 100%;
}

.btn-telegram:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(39, 174, 96, 0.4);
    background: linear-gradient(135deg, #219653, #27ae60);
}

.btn-telegram i {
    font-size: 1.3rem;
}

.telegram-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 15px;
    margin-bottom: 0;
}

/* блок документов */
.compact-documents {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    border-left: 4px solid #27ae60;
}

.compact-documents h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.compact-documents h3 i {
    color: #27ae60;
}

.documents-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.documents-checklist li {
    padding: 8px 0;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
}

.documents-checklist li:last-child {
    border-bottom: none;
}

.documents-checklist li i {
    color: #27ae60;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .compact-documents {
        padding: 20px;
    }
    
    .documents-checklist li {
        font-size: 0.9rem;
    }
}

/* Анимация плавающей иконки Telegram */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.telegram-icon i {
    animation: float 3s ease-in-out infinite;
}

.telegram-cta:hover .telegram-icon i {
    animation-duration: 2s;
}

/* Для выравнивания контента в обоих блоках */
.contact-info > *:last-child,
.telegram-cta > *:last-child {
    margin-bottom: 0;
}

/* Подвал */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 50px 0 30px;
    text-align: center;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.footer-logo span {
    color: #27ae60;
}

.footer-tagline {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 25px;
    opacity: 0.9;
}

.footer-copy {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #3c526e;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Адаптивность для одинаковой высоты блоков контактов */
@media (max-width: 768px) {
    .contacts-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info, .telegram-cta {
        min-height: 400px; /* Минимальная высота на мобильных */
    }
    
    .telegram-cta {
        padding: 30px 25px;
        justify-content: space-around;
    }
    
    .telegram-icon {
        font-size: 3rem;
        width: 70px;
        height: 70px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px 20px;
        max-height: 1500px; /* Достаточно для выплат */
    }
}

/* Адаптивность (планшеты и телефоны) */
@media (max-width: 992px) {
    .section-title { font-size: 2.2rem; }
    .hero h1 { font-size: 2.8rem; }
    .highlight-sum { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #2c3e50;
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
    .nav-list.active {
        display: flex;
    }
    .nav-list li {
        margin: 10px 0;
    }
    .burger {
        display: flex;
    }
    .hero h1 { font-size: 2.3rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section { padding: 60px 0; }
    .stats { flex-direction: column; gap: 30px; }
    .stat-number { font-size: 3rem; }
}

@media (max-width: 576px) {
    .container { padding: 0 15px; }
    .section-title { font-size: 1.9rem; }
    .hero h1 { font-size: 2rem; }
    .btn { padding: 12px 25px; }
    .about-grid, .benefits-grid, .training-grid { grid-template-columns: 1fr; }
    .highlight-box { padding: 30px 20px; }
    
    /* Адаптивность для очень маленьких экранов */
    .contact-info, .telegram-cta {
        padding: 25px 20px;
        min-height: 380px;
    }
    
    .btn-telegram {
        padding: 12px 25px;
        font-size: 1rem;
    }
}