/* === VARIABLES === */
:root {
    --blue: #1565c0;
    --blue-light: #1976d2;
    --blue-dark: #0d47a1;
    --orange: #f97316;
    --orange-dark: #ea6c0a;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
    --radius: 12px;
    --radius-sm: 8px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--gray-700); background: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
input, select, button, textarea { font-family: inherit; }

/* === CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === HEADER === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.site-header .container {
    display: flex;
    align-items: center;
    height: 70px;
    gap: 24px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.logo-main {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-500);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.logo-sub {
    font-size: 18px;
    font-weight: 800;
    color: var(--blue-dark);
    letter-spacing: -0.5px;
}
.logo-plus { color: var(--orange); }

/* Nav */
.main-nav { flex: 1; }
.main-nav ul {
    display: flex;
    gap: 4px;
    justify-content: center;
}
.main-nav ul li a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    transition: all .2s;
}
.main-nav ul li a:hover {
    background: var(--gray-100);
    color: var(--blue);
}

/* Header Actions */
.header-actions { display: flex; gap: 14px; align-items: center; flex-shrink: 0; }
.header-login-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    transition: color .2s;
}
.header-login-link:hover { color: var(--blue); }
.btn-register {
    padding: 8px 18px;
    background: var(--orange);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: white;
    transition: all .2s;
}
.btn-register:hover { background: var(--orange-dark); }

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
}

/* === HERO === */
.hero {
    background: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 60px 0 70px;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero-content h1 {
    font-size: 2.9rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--gray-900);
    margin-bottom: 16px;
}
.text-orange { color: var(--orange); }
.hero-content p {
    font-size: 1.05rem;
    color: var(--gray-500);
    margin-bottom: 32px;
    max-width: 420px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-image {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.hero-img-wrap {
    width: 100%;
    max-width: 480px;
}
.hero-svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 60px rgba(21,101,192,0.25));
    border-radius: 16px;
    overflow: hidden;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
}
.hero-wave svg { width: 100%; height: 100%; }

/* === BUTTONS === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: var(--orange);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all .2s;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border: 2px solid var(--blue);
    color: var(--blue);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    transition: all .2s;
}
.btn-outline:hover { background: var(--blue); color: white; }

.btn-link {
    color: var(--blue);
    font-weight: 600;
    font-size: 15px;
    border-bottom: 2px solid transparent;
    transition: border-color .2s;
}
.btn-link:hover { border-color: var(--blue); }

.btn-sm-primary {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: var(--blue);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: all .2s;
    margin-top: 8px;
}
.btn-sm-primary:hover { background: var(--blue-dark); }

/* === SECTION TITLES === */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 40px;
}

/* === HOW IT WORKS === */
.how-it-works { padding: 80px 0; background: white; }
.steps {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    margin-bottom: 32px;
}
.step {
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    flex: 1;
    max-width: 280px;
}
.step-num {
    width: 40px;
    height: 40px;
    background: var(--blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin: 0 auto 14px;
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--gray-900); }
.step p { font-size: .9rem; color: var(--gray-500); }
.step-arrow { font-size: 1.5rem; color: var(--gray-300); font-weight: 300; }
.steps-cta { text-align: center; }

/* === INSTRUCTOR PICKER === */
.instructor-picker { padding: 80px 0; background: var(--gray-50); }
.picker-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.filter-select {
    padding: 10px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: white;
    font-size: 14px;
    color: var(--gray-700);
    cursor: pointer;
    min-width: 130px;
}
.filter-select:focus { outline: none; border-color: var(--blue); }

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
.instructor-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}
.instructor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.inst-avatar { width: 80px; height: 80px; margin: 0 auto 14px; }
.inst-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--gray-900); }
.inst-meta { display: flex; justify-content: center; gap: 12px; font-size: 13px; color: var(--gray-500); margin-bottom: 10px; }
.inst-tags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.tag {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: var(--gray-100);
    color: var(--gray-700);
}
.tag-orange { background: #fff7ed; color: var(--orange); }
.inst-price { font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: 4px; }

/* === FEATURES === */
.features { padding: 80px 0; background: white; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1.5px solid var(--gray-200);
    transition: box-shadow .2s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); }
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-icon.blue { background: #e8f0fe; color: var(--blue); }
.feature-icon.orange { background: #fff7ed; color: var(--orange); }
.feature-icon.green { background: #e8f5e9; color: #2e7d32; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: .9rem; color: var(--gray-500); }

/* === STATS === */
.stats-section { padding: 60px 0; background: var(--blue); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-size: 2.5rem; font-weight: 800; color: white; }
.stat-label { font-size: .9rem; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* === REVIEWS === */
.reviews { padding: 80px 0; background: var(--gray-50); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 16px;
}
.review-avatar { width: 48px; height: 48px; flex-shrink: 0; }
.review-content p { font-size: .9rem; color: var(--gray-700); margin-bottom: 10px; font-style: italic; }
.review-author { font-weight: 600; font-size: .9rem; }
.review-stars { font-size: .8rem; margin-top: 4px; }

/* === CTA SECTION === */
.cta-section { padding: 80px 0; background: white; }
.cta-card {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
    border-radius: 20px;
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
}
.cta-car-img { display: flex; justify-content: center; }
.cta-car-img svg { width: 220px; }
.cta-right h2 { font-size: 1.8rem; font-weight: 800; color: white; margin-bottom: 12px; }
.cta-right p { color: rgba(255,255,255,0.8); margin-bottom: 24px; }
.cta-form { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cta-form input {
    flex: 1;
    min-width: 180px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 14px;
    background: rgba(255,255,255,0.15);
    color: white;
    backdrop-filter: blur(4px);
}
.cta-form input::placeholder { color: rgba(255,255,255,0.6); }
.cta-form input:focus { outline: none; background: rgba(255,255,255,0.25); }
.cta-note { font-size: 12px; color: rgba(255,255,255,0.5); }

/* === FOOTER === */
.site-footer { background: var(--gray-900); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-footer .logo-main { color: rgba(255,255,255,0.5); }
.footer-brand .logo-footer .logo-sub { color: white; }
.footer-brand p { color: var(--gray-400); font-size: .9rem; margin-top: 12px; max-width: 240px; }
.social-links { display: flex; gap: 8px; margin-top: 16px; }
.social-link {
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 13px;
    font-weight: 600;
    transition: background .2s;
}
.social-link:hover { background: rgba(255,255,255,0.2); }
.footer-col h4 { color: white; font-size: .95rem; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li, .footer-col ul li a { color: var(--gray-400); font-size: .9rem; }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    color: var(--gray-400);
    font-size: .85rem;
}
.footer-bottom a { color: var(--gray-400); }
.footer-bottom a:hover { color: white; }

/* === FLASH MESSAGES === */
.flash-messages { position: fixed; top: 80px; right: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; }
.flash {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    max-width: 340px;
    box-shadow: var(--shadow-lg);
    animation: slideIn .3s ease;
}
.flash.success { background: #dcfce7; color: #16a34a; border-left: 4px solid #16a34a; }
.flash.error { background: #fee2e2; color: #dc2626; border-left: 4px solid #dc2626; }
.flash.info { background: #dbeafe; color: #2563eb; border-left: 4px solid #2563eb; }

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

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .main-nav ul { gap: 0; }
    .main-nav ul li a { padding: 8px 10px; font-size: 13px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .main-nav.open {
        display: block;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow-lg);
        padding: 16px;
        z-index: 200;
    }
    .main-nav.open ul { flex-direction: column; }
    .burger { display: flex; }
    .header-actions .btn-enter { display: none; }

    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin: 0 auto 32px; }
    .hero-btns { justify-content: center; }
    .hero-image { display: none; }
    .hero-content h1 { font-size: 2.2rem; }

    .steps { flex-direction: column; align-items: stretch; }
    .step-arrow { transform: rotate(90deg); text-align: center; }
    .step { max-width: 100%; }

    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: 1fr; }
    .cta-card { grid-template-columns: 1fr; }
    .cta-left { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .instructors-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section-title { font-size: 1.6rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-form { flex-direction: column; }
    .btn-primary, .btn-outline { width: 100%; justify-content: center; }
}

/* === ICON UTILITIES === */
.icon-star { width: 13px; height: 13px; vertical-align: -1px; flex-shrink: 0; }
.inst-rating { display: inline-flex; align-items: center; gap: 4px; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Quick links with icons */
.quick-link {
    display: flex !important;
    align-items: center;
    gap: 8px;
}
