/* ========================================
   СБРОС И БАЗОВЫЕ СТИЛИ
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    overflow-x: hidden;
}

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

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   ЦВЕТОВАЯ СИСТЕМА (эталон — шапка)
======================================== */
:root {
    --color-primary-dark: #2c3e50;
    --color-primary: #34495e;
    --color-accent-telegram: #0088cc;
    --color-accent-telegram-hover: #006699;
    --color-accent-dryclean: #e74c3c;
    --color-accent-dryclean-hover: #c0392b;
    --color-success: #2ecc71;
    --color-success-hover: #27ae60;
    --color-text-light: #ffffff;
    --color-text-dark: #333333;
    --color-bg-light: #f8f9fa;
}

/* ========================================
   ОБЩИЕ СТИЛИ
======================================== */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-accent-telegram) 0%, var(--color-accent-telegram-hover) 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
    background: linear-gradient(135deg, var(--color-accent-telegram-hover) 0%, #005580 100%);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ========================================
   КНОПКА "ОТПРАВИТЬ ЗАЯВКУ" (уменьшенная)
======================================== */

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-hover) 100%);
    color: white;
    padding: 8px 20px; /* Уменьшили padding */
    font-size: 0.9rem; /* Уменьшили шрифт */
    font-weight: 600;
    border: none;
    border-radius: 20px; /* Немного меньше радиус */
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(46, 204, 113, 0.3); /* Уменьшили тень */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    min-height: 40px; /* Фиксированная высота */
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--color-success-hover) 0%, #219653 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(46, 204, 113, 0.3);
}

.btn-submit i {
    font-size: 0.9rem;
}

/* Для формы записи на курсе */
.enrollment-form .btn-submit {
    margin-top: 15px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .btn-submit {
        padding: 7px 16px;
        font-size: 0.85rem;
        min-height: 38px;
    }
}

.btn-course {
    width: 100%;
    margin-top: 20px;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-accent-telegram) 100%);
}

.btn-course:hover {
    background: linear-gradient(135deg, var(--color-accent-telegram) 0%, var(--color-primary-dark) 100%);
}

.btn-full-program {
    background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-hover) 100%);
    color: white;
    padding: 12px 25px;
    white-space: nowrap;
}

.btn-full-program:hover {
    background: linear-gradient(135deg, var(--color-success-hover) 0%, #219653 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.btn-preview {
    background: var(--color-accent-telegram);
    color: white;
    padding: 12px 25px;
}

.btn-download-primary {
    background: linear-gradient(135deg, var(--color-accent-dryclean) 0%, var(--color-accent-dryclean-hover) 100%);
    color: white;
    padding: 12px 25px;
}

.btn-preview:hover,
.btn-download-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ========================================
   ШАПКА
======================================== */
header {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--color-text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo svg {
    width: 180px;
    height: auto;
    transition: opacity 0.3s ease;
}

.logo svg:hover {
    opacity: 0.9;
}

.desktop-nav {
    flex: 1;
    text-align: center;
}

.desktop-nav a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
    position: relative;
}

.desktop-nav a:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-accent-telegram);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.desktop-nav a:hover::after {
    width: 80%;
}

.contacts {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.contacts a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    background: var(--color-bg-light);
    color: var(--color-primary-dark);
    transition: all 0.2s ease;
}

.contacts a:hover {
    background: var(--color-primary-dark);
    color: var(--color-text-light);
}

.telegram-btn,
.dryclean-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.telegram-btn {
    background: var(--color-accent-telegram);
    color: white;
}

.telegram-btn:hover {
    background: var(--color-accent-telegram-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,136,204,0.3);
}

.dryclean-btn {
    background: var(--color-accent-dryclean);
    color: white;
}

.dryclean-btn:hover {
    background: var(--color-accent-dryclean-hover);
    transform: translateY(-2px);
}

/* ========================================
   МОБИЛЬНОЕ МЕНЮ
======================================== */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: #333;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--color-primary-dark);
    z-index: 999;
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1.1rem;
}

.mobile-nav a:hover {
    background: rgba(255,255,255,0.1);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

.mobile-overlay.active {
    display: block;
}

/* ========================================
   ОСНОВНОЙ КОНТЕНТ
======================================== */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Герой */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 5rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Курсы */
.courses h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
    position: relative;
}

.courses h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-accent-telegram);
    margin: 10px auto 0;
    border-radius: 2px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Для десктопов: 4 карточки в ряд */
@media (min-width: 1200px) {
    .course-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}



/* Преимущества */
.benefit-icon,
.feature-content i,
.benefit-card .benefit-icon i {
    color: var(--color-accent-telegram);
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, #bd94cd 0%, #9c73ae 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

/* ========================================
   СТРАНИЦА КУРСА
======================================== */
.breadcrumbs {
    background: #f1f2f6;
    padding: 1rem 0;
    font-size: 0.9rem;
}

.course-header {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-accent-telegram) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.meta-item.price {
    background: rgba(46, 204, 113, 0.2);
    color: var(--color-success);
}

.enrollment-form {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-telegram);
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
}

/* Валидация */
.form-group.has-error input,
.form-group.has-error textarea {
    border-color: var(--color-accent-dryclean) !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1) !important;
}

.error-message,
.field-errors .error-text {
    color: var(--color-accent-dryclean);
    font-size: 0.9em;
    display: block;
    margin-top: 5px;
}

/* ========================================
   ПОДВАЛ
======================================== */
footer {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--color-text-light);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent-telegram);
}

.contact-btn {
    background: linear-gradient(135deg, var(--color-accent-telegram) 0%, var(--color-accent-telegram-hover) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    width: 100%;
    justify-content: center;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.footer-section p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
}

.achievements {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.achievement {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.achievement:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.achievement h4 {
    font-size: 1.5rem;
    color: var(--color-accent-telegram);
    margin-bottom: 5px;
    font-weight: 700;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    color: var(--color-accent-telegram);
    transform: translateY(-3px);
}

/* ========================================
   УВЕДОМЛЕНИЯ
======================================== */
#successNotification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--color-success);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: slideIn 0.3s ease;
    display: none;
}

#errorNotification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--color-accent-dryclean);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: slideIn 0.3s ease;
    display: none;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ========================================
   АДАПТИВНОСТЬ
======================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }



    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .desktop-nav,
    .contacts {
        display: none;
    }

    .header-container {
        justify-content: flex-start;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .achievements {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .achievements {
        grid-template-columns: 1fr;
    }
}

/* ============ ВОССТАНОВЛЕНИЕ КАРТОЧНОГО ВИЗУАЛА ============ */

/* Карточки типа "Лабораторное оборудование", "Химия премиум-класса" и т.д. */
.feature-card,
.benefit-card {
    background: white;
    padding: 1.8rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.feature-card:hover,
.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.feature-icon,
.benefit-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #f0f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--color-accent-telegram);
}

.feature-content h4,
.benefit-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    color: var(--color-primary-dark);
    font-weight: 600;
}

.feature-content p,
.benefit-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Для списка "Почему выбирают обучение у нас?" — делаем карточки вместо списка */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.features-grid .feature-card {
    padding: 1.6rem;
}

/* Если используется <ol> с цифрами — переопределяем его как карточки */
.features-section ol,
.features-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-section li {
    margin-bottom: 1.2rem;
    padding: 1.4rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.features-section li:before {
    content: attr(data-number);
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-accent-telegram);
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.features-section li i {
    font-size: 1.4rem;
    color: var(--color-accent-telegram);
    flex-shrink: 0;
    margin-top: 2px;
}

.features-section li .text {
    flex: 1;
}

.features-section li h4 {
    margin: 0 0 0.4rem 0;
    font-size: 1.1rem;
    color: var(--color-primary-dark);
}

.features-section li p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}
/* === КАРТОЧКИ ИНФОРМАЦИИ НА СТРАНИЦЕ КУРСА === */

/* Условия обучения */
.conditions-section h2,
.benefits-section h2,
.instructors-section h2 {
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
}

.conditions-content,
.instructors-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    line-height: 1.7;
    color: #555;
}


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

.benefit-card {
    background: white;
    padding: 1.6rem;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
    font-size: 1.8rem;
    color: var(--color-accent-telegram);
    padding: 10px;
    background: #f0f7ff;
    border-radius: 10px;
    flex-shrink: 0;
}

.benefit-content h4 {
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.benefit-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}
/* === БЛОК "ПОЧЕМУ ВЫБИРАЮТ" НА ГЛАВНОЙ === */
.features-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e3eaf5 100%);
}

.features-section h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    color: var(--color-primary-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent-telegram);
    opacity: 0.3;
}

.feature-content h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--color-primary-dark);
    font-size: 1.2rem;
}

.feature-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}
/* === КАРУСЕЛЬ ПРЕИМУЩЕСТВ — ЦЕНТРИРОВАННАЯ === */
.benefits-slider {
    background: #f8f9fa;
    padding: 3rem 0;
}

.benefits-slider .container {
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.benefits-slider .slider-container {
    display: flex;
    gap: 1.5rem;
    max-width: 1200px; /* чтобы не растягивалось на очень широких экранах */
    justify-content: center;
    flex-wrap: wrap; /* fallback для очень узких экранов */
}

/* На мобильных делаем прокручиваемую карусель */
@media (max-width: 900px) {
    .benefits-slider .slider-container {
        overflow-x: auto;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start; /* важно для скролла */
        flex-wrap: nowrap;
    }

    .benefit-slide {
        scroll-snap-align: start;
    }
}

.benefit-slide {
    flex: 0 0 auto;
    width: 280px;
    background: white;
    border-radius: 12px;
    padding: 1.8rem 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.benefit-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
    font-size: 2.2rem;
    color: var(--color-accent-telegram);
    margin: 0 auto;
}

.benefit-slide h3 {
    margin: 0 0 0.6rem 0;
    font-size: 1.25rem;
    color: var(--color-primary-dark);
    font-weight: 600;
}

.benefit-slide p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Адаптация под маленькие экраны */
@media (max-width: 768px) {
    .benefit-slide {
        width: 240px;
        padding: 1.5rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .benefit-slide {
        width: 220px;
        padding: 1.4rem 1rem;
    }
}
/* === КАРТОЧКИ КУРСОВ — ВОССТАНОВЛЕНИЕ СТИЛЯ === */
.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.35s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Бейдж в углу */
.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    white-space: nowrap;
}

/* Изображение/иконка вверху */
.course-image {
    height: 180px;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-accent-telegram) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    text-align: center;
    padding: 15px;
}

.course-image i {
    font-size: 3.2rem;
    margin-bottom: 10px;
}

.course-image span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Содержимое карточки */
.course-content {
    padding: 1.8rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
    color: var(--color-primary-dark);
    font-weight: 700;
}

.course-duration {
    color: #666;
    margin: 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.course-features {
    flex-grow: 1;
    margin: 1rem 0;
}

.course-features span {
    display: block;
    padding: 6px 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}

.course-features span i {
    color: var(--color-success);
    margin-right: 8px;
    font-size: 1rem;
}

/* Кнопка внизу */
.course-content .btn {
    margin-top: auto;
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
}

/* Адаптация под мобильные */
@media (max-width: 768px) {
    .course-card {
        border-radius: 12px;
    }

    .course-image {
        height: 160px;
        padding: 10px;
    }

    .course-image i {
        font-size: 2.8rem;
    }

    .course-content {
        padding: 1.5rem 1.2rem;
    }

    .course-badge {
        top: 12px;
        right: 12px;
        padding: 5px 12px;
        font-size: 0.75rem;
    }

}

@media (max-width: 480px) {
    .course-card {
        margin-bottom: 1.5rem;
    }

    .course-badge {
        top: 10px;
        right: 10px;
        padding: 4px 10px;
        font-size: 0.7rem;
    }

    .course-image i {
        font-size: 2.4rem;
    }

    .course-content h3 {
        font-size: 1.25rem;
    }
}

/* ========================================
   СЕКЦИЯ КУРСОВ НА ГЛАВНОЙ - ДОПОЛНИТЕЛЬНЫЕ СТИЛИ
======================================== */

.courses {
    padding: 5rem 0;
    background: white;
}

.courses h2 {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
    position: relative;
}

.courses h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-accent-telegram);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* СЕТКА ДЛЯ 4 КАРТОЧЕК */
/* Для десктопов: 4 карточки в ряд */
@media (min-width: 1200px) {
    .course-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Для планшетов: 2 карточки в ряд */
@media (min-width: 768px) and (max-width: 1199px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Для мобильных: 1 карточка */
@media (max-width: 767px) {
    .course-grid {
        grid-template-columns: 1fr;
    }
}

/* СТИЛИ ДЛЯ КОНКРЕТНЫХ КУРСОВ (иконки) */
.course-image .fa-building {
    color: #3498db !important;
}

.course-image .fa-user-cog {
    color: #e74c3c !important;
}

.course-image .fa-tint {
    color: #2ecc71 !important;
}

.course-image .fa-palette {
    color: #9b59b6 !important;
}

/* ДОПОЛНИТЕЛЬНАЯ АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .courses {
        padding: 3rem 0;
    }

    .section-subtitle {
        padding: 0 15px;
    }
}
/* === СТАТИСТИКА В ПОДВАЛЕ === */
.stats-row {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-accent-telegram);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.3rem;
}

/* === МИНИМАЛИСТИЧНЫЙ ПОДВАЛ === */
footer {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--color-text-light);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Соцсети — горизонтальная линия */
.social-icons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
}

.social-icons a {
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.social-icons a:hover {
    color: var(--color-accent-telegram);
    transform: translateY(-3px);
    opacity: 1;
}

/* Копирайт — по центру, тонкий шрифт */
.copyright {
    text-align: center;
    font-size: 0.9em;
    opacity: 0.85;
    line-height: 1.5;
    margin: 0;
}

.copyright a {
    color: var(--color-accent-telegram);
    text-decoration: none;
    transition: color 0.2s;
}

.copyright a:hover {
    color: white;
    text-decoration: underline;
}

