* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    line-height: 1.5;
}

:root {
    --primary: #0f3b5f;
    --primary-dark: #082b44;
    --primary-light: #2c628c;
    --accent: #2c7a6e;
    --accent-light: #4c9c8f;
    --title-color: #663a5b;
    --button-bg: #663a5b;
    --button-hover: #fbbc34;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --shadow-sm: 0 8px 20px rgba(0,0,0,0.03), 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 12px 28px rgba(0,0,0,0.05);
    --radius-card: 1.25rem;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--title-color);
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.navbar {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(0px);
    border-bottom: 1px solid var(--gray-200);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-height: 52px;
}

.brand-logo {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}

.brand-title {
    font-size: 1.45rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--title-color);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero {
    background: linear-gradient(105deg, #f0f9ff 0%, #eef5f2 100%);
    padding: 3.5rem 0 4rem;
    border-bottom: 1px solid var(--gray-200);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--title-color);
    max-width: 800px;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 650px;
    margin-bottom: 2rem;
}

.btn-primary {
    background: var(--button-bg);
    color: #fff;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 3rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--button-bg);
    color: var(--button-bg);
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--button-hover);
    border-color: var(--button-hover);
    color: #fff;
}

.filters-bar {
    background: white;
    border-radius: 3rem;
    padding: 0.75rem 1rem;
    margin: 2rem 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1.3rem;
    border-radius: 2rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-btn.active {
    background: var(--button-bg);
    color: #fff;
}

.filter-btn:hover {
    background: var(--button-hover);
    color: #fff;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 2rem;
    margin: 2rem 0 4rem;
}

.course-card {
    background: white;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
    transition: all 0.25s ease;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.12);
    border-color: var(--accent-light);
}

.card-content {
    padding: 1.5rem;
    flex: 1;
}

.course-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--title-color);
    line-height: 1.3;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--gray-600);
    border-bottom: 1px dashed var(--gray-200);
    padding-bottom: 0.8rem;
    margin-bottom: 0.8rem;
}

.course-meta i {
    width: 1.2rem;
    color: var(--accent);
}

.course-audience {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin: 0.8rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-info {
    font-weight: 700;
    background: var(--gray-100);
    padding: 0.5rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    margin: 0.8rem 0;
    display: inline-block;
}

.btn-details {
    background: var(--button-bg);
    border: 1px solid var(--button-bg);
    color: #fff;
    border-radius: 2rem;
    padding: 0.6rem 0;
    font-weight: 600;
    width: 100%;
    margin-top: 0.8rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-details:hover {
    background: var(--button-hover);
    border-color: var(--button-hover);
    color: #fff;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    max-width: 850px;
    width: 90%;
    max-height: 85vh;
    border-radius: 2rem;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.2rem;
    font-size: 1.8rem;
    cursor: pointer;
    background: var(--gray-100);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding-right: 2rem;
}

.detail-block {
    margin: 1.2rem 0;
}

.detail-block strong {
    color: var(--title-color);
}

.interest-btn {
    background: var(--button-bg);
    color: #fff;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 3rem;
    font-weight: 700;
    margin-top: 1rem;
    cursor: pointer;
    transition: 0.2s;
}

.interest-btn:hover {
    background: var(--button-hover);
}

footer {
    background: #22161f;
    color: #cbd5e1;
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-block {
    min-width: 240px;
    max-width: 420px;
}

.footer-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.footer-text {
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-copy {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #2c4c6e;
}

@media (max-width: 700px) {
    .hero h1 { font-size: 2.2rem; }
    .container { padding: 0 20px; }
    .filters-bar { justify-content: center; }
    .brand-title { font-size: 1.2rem; }
}
