/* style.css - Основные стили сайта Альфа ПРОФ */
/* Цветовая схема: основной #A23545, акцент #EFC880 */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif;
    background-color: #fbf9f8;
    color: #1b1c1c;
    line-height: 1.5;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---------- КНОПКИ ---------- */
.btn-primary {
    background: linear-gradient(135deg, #821d2f 0%, #a23545 100%);
    color: #ffffff;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(130, 29, 47, 0.25);
}

.btn-primary.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    color: #ffffff;
}

.btn-primary.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    width: 100%;
    justify-content: center;
    color: #ffffff;
}

.btn-secondary {
    background: #eae8e7;
    color: #1b1c1c;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #dcd9d9;
}

.btn-block {
    display: block;
    text-align: center;
    width: 100%;
}

/* ---------- ШАПКА (fixed) ---------- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(251, 249, 248, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 1rem 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ---------- ЛОГОТИП ---------- */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: left center;
}

@media (min-width: 1024px) {
    .logo-img {
        max-height: 60px;
    }
}

@media (max-width: 1024px) {
    .logo-img {
        max-width: 250px;
        max-height: 55px;
    }
}

@media (max-width: 768px) {
    .logo-img {
        max-width: 200px;
        max-height: 45px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        max-width: 160px;
        max-height: 40px;
    }
}

/* Десктопная навигация */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: #1b1c1c;
    opacity: 0.8;
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #821d2f;
    opacity: 1;
}

/* Мобильное меню (скрыто на десктопе) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #821d2f;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fbf9f8;
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-top: 1px solid #e4e2e1;
}

/* Обычные ссылки в мобильном меню — чёрные */
.mobile-menu a {
    padding: 0.75rem;
    border-bottom: 1px solid #e4e2e1;
    color: #1b1c1c;
    font-weight: 500;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* Кнопка в мобильном меню — белый текст на бордовом (переопределяем) */
.mobile-menu a.btn-primary,
.mobile-menu .btn-primary {
    color: #ffffff !important;
    background: linear-gradient(135deg, #821d2f 0%, #a23545 100%);
    text-align: center;
    justify-content: center;
    border-bottom: none;
    margin-top: 0.5rem;
}

/* ---------- ГЕРОЙ (первый экран) ---------- */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #fbf9f8 0%, #f0eded 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 1rem 0 1.25rem;
    color: #1b1c1c;
}

.hero-content .accent-text {
    color: #a23545;
    position: relative;
    display: inline-block;
}

.hero-content p {
    font-size: 1.125rem;
    color: #564143;
    margin-bottom: 2rem;
    max-width: 90%;
}

.license-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffdea5;
    color: #5c4205;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    background: linear-gradient(145deg, #e4e2e1, #f6f3f2);
    border-radius: 2rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect width="400" height="300" fill="%23a2354510"/><text x="50%25" y="50%25" text-anchor="middle" dy=".3em" fill="%23a23545" font-size="16" font-family="Inter">Альфа ПРОФ</text></svg>') center/cover no-repeat;
    background-size: contain;
}

/* ---------- ПОПУЛЯРНЫЕ ПРОГРАММЫ ---------- */
.popular-programs {
    padding: 5rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #821d2f;
    letter-spacing: -0.01em;
}

.section-header p {
    color: #564143;
    margin-top: 0.5rem;
}

.link-arrow {
    color: #821d2f;
    font-weight: 600;
    transition: opacity 0.2s;
}

.link-arrow:hover {
    opacity: 0.7;
}

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

.course-card {
    background: white;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(130, 29, 47, 0.15);
}

.course-card.featured {
    border: 2px solid #EFC880;
    background: linear-gradient(135deg, #fff, #fff9f0);
}

.card-icon {
    background: #ffdea5;
    width: 48px;
    height: 48px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-icon .material-symbols-outlined {
    font-size: 28px;
    color: #a23545;
}

.card-badge {
    display: inline-block;
    background: #eae8e7;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.badge-hot {
    background: #EFC880;
    color: #261900;
}

.course-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1b1c1c;
}

.card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: #564143;
    font-size: 0.85rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.meta-item .material-symbols-outlined {
    font-size: 1rem;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #821d2f;
    margin-bottom: 1rem;
}

.card-link {
    color: #821d2f;
    font-weight: 600;
    transition: opacity 0.2s;
}

.card-link:hover {
    opacity: 0.7;
}

/* ---------- ПРЕИМУЩЕСТВА ---------- */
.advantages {
    background: #f6f3f2;
    padding: 5rem 0;
}

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

.advantages h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #821d2f;
    margin-bottom: 3rem;
}

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

.advantage-item {
    text-align: center;
    padding: 1.5rem;
}

.advantage-icon {
    background: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.advantage-icon .material-symbols-outlined {
    font-size: 40px;
    color: #a23545;
}

.advantage-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.advantage-item p {
    color: #564143;
}

/* ---------- ПРАВОВОЕ ПРЕДУПРЕЖДЕНИЕ ---------- */
.legal-notice {
    padding: 3rem 0;
    background: #fbf9f8;
}

.notice-card {
    background: #fff5e6;
    border-left: 6px solid #EFC880;
    padding: 1.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #5c4205;
}

.notice-card .material-symbols-outlined {
    font-size: 28px;
    color: #EFC880;
}

/* ---------- ОТЗЫВЫ ---------- */
.reviews {
    padding: 4rem 0;
}

.reviews h2 {
    margin-bottom: 3rem;
}

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

.review-card {
    background: white;
    padding: 1.75rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid #e4e2e1;
}

.review-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: #1b1c1c;
}

.review-author {
    color: #821d2f;
    font-weight: 600;
}

/* ---------- ФОРМА ЗАПИСИ ---------- */
.enroll-section {
    padding: 4rem 0 5rem;
    background: linear-gradient(135deg, #f0eded, #fbf9f8);
}

.enroll-card {
    background: white;
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.enroll-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #821d2f;
    margin-bottom: 0.5rem;
}

.enroll-content p {
    color: #564143;
    margin-bottom: 2rem;
}

.enroll-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #e4e2e1;
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
    background: #fbf9f8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a23545;
    background: white;
}

.checkbox-group {
    margin: 0.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-label a {
    color: #821d2f;
    text-decoration: underline;
}

.form-note {
    font-size: 0.7rem;
    color: #8a7172;
    text-align: center;
    margin-top: 0.5rem;
}

/* ---------- ФУТЕР ---------- */
.site-footer {
    background: #1b1c1c;
    color: #e4e2e1;
    padding: 3rem 2rem 2rem;
    margin-top: 2rem;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    color: #EFC880;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.footer-col p,
.footer-col a {
    color: #dcd9d9;
    font-size: 0.875rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-col .material-symbols-outlined {
    font-size: 1rem;
    color: #EFC880;
}

.footer-col a:hover {
    color: #EFC880;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #333;
    font-size: 0.7rem;
    color: #8a7172;
}

/* ---------- АДАПТИВ ---------- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content p {
        max-width: 100%;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image {
        min-height: 250px;
        order: -1;
    }
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .site-header {
        padding: 0.75rem 1rem;
    }
    .hero {
        padding-top: 6rem;
    }
    .hero-content h1 {
        font-size: 2.25rem;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .enroll-card {
        padding: 1.5rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        gap: 1.5rem;
    }
}

.hero-image {
    background: url('../img/hero.jpg') center/cover no-repeat;
    /* или через img тег в HTML */
}