/* ===== EXCL Academy — Main Styles ===== */
:root {
    --red:    #e8192c;
    --black:  #0a0a0a;
    --white:  #ffffff;
    --gray:   #111111;
    --gray2:  #1a1a1a;
    --gray3:  #2a2a2a;
    --text:   #cccccc;
    --muted:  #666666;
    --radius: 10px;
    --font:   'Inter', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.8rem;
}

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }

/* ===== NAV ===== */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray3);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    gap: 1.5rem;
}

.nav-logo {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}
.nav-logo span { color: var(--red); }

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex: 1;
}
.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.nav-active { color: var(--white); }

/* NAV AUTH */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
.btn-nav {
    padding: 0.45rem 1rem !important;
    font-size: 0.82rem !important;
}

/* User dropdown */
.nav-user-menu { position: relative; }
.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gray2);
    border: 1px solid var(--gray3);
    border-radius: 50px;
    padding: 0.35rem 0.9rem 0.35rem 0.4rem;
    color: var(--white);
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: border-color 0.2s;
}
.nav-user-btn:hover { border-color: var(--red); }
.nav-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--red);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 900;
    color: var(--white);
}
.nav-caret { font-size: 0.65rem; color: var(--muted); }

.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--gray);
    border: 1px solid var(--gray3);
    border-radius: var(--radius);
    min-width: 180px;
    padding: 0.4rem 0;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    display: none;
}
.nav-user-menu.open .nav-dropdown { display: block; }
.nav-dropdown a {
    display: block;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    color: var(--text);
    transition: background 0.15s;
}
.nav-dropdown a:hover { background: var(--gray2); color: var(--white); }
.nav-dropdown-divider { height: 1px; background: var(--gray3); margin: 0.3rem 0; }

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--white);
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    letter-spacing: 0.03em;
}
.btn-red {
    background: var(--red);
    color: var(--white);
}
.btn-red:hover { background: #c8111f; transform: translateY(-1px); }
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gray3);
}
.btn-outline:hover { border-color: var(--white); }

/* ===== HERO ===== */
.hero {
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(232,25,44,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero p {
    font-size: 1.15rem;
    color: var(--text);
    max-width: 580px;
    margin-bottom: 2.5rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== STATS ===== */
.stats {
    display: flex;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--gray3);
    flex-wrap: wrap;
}
.stat-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--red);
}
.stat-label {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.2rem;
}

/* ===== COURSES GRID ===== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.course-card {
    background: var(--gray);
    border: 1px solid var(--gray3);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.course-card:hover {
    border-color: var(--red);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.course-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--gray2);
    position: relative;
}
.course-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.course-card:hover .course-img img { transform: scale(1.04); }

.course-img-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.course-badge {
    position: absolute;
    top: 0.8rem; right: 0.8rem;
    background: var(--red);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.course-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.course-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-size: 0.78rem;
    color: var(--muted);
}
.course-meta span { display: flex; align-items: center; gap: 0.3rem; }
.course-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--white);
}
.course-short {
    font-size: 0.88rem;
    color: var(--text);
    flex: 1;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--gray3);
}
.course-price {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--red);
}
.course-price.free { color: #4ade80; }

/* ===== SINGLE COURSE ===== */
.course-single-hero {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--gray3);
}
.course-single-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3rem;
    align-items: start;
    padding: 4rem 0;
}
.course-sidebar {
    background: var(--gray);
    border: 1px solid var(--gray3);
    border-radius: 14px;
    padding: 2rem;
    position: sticky;
    top: 90px;
}
.course-big-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--red);
    margin-bottom: 1.5rem;
}
.course-info-list { list-style: none; margin-bottom: 1.5rem; }
.course-info-list li {
    display: flex;
    gap: 0.8rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gray3);
    font-size: 0.88rem;
    color: var(--text);
}
.course-info-list li:last-child { border-bottom: none; }
.course-info-list li strong { color: var(--white); margin-left: auto; }
.course-content { max-width: 680px; }
.course-content p, .course-content li { color: var(--text); margin-bottom: 1rem; }
.course-content h2, .course-content h3 { margin: 2rem 0 1rem; }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 5rem 1rem;
    color: var(--muted);
}
.empty-state .icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state h3 { color: var(--white); margin-bottom: 0.5rem; }

/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.filter-btn {
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    border: 1px solid var(--gray3);
    background: transparent;
    color: var(--text);
    font-size: 0.83rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

/* ===== FOOTER ===== */
footer { margin-top: 4rem; }

.footer-top {
    background: #080808;
    border-top: 1px solid var(--gray3);
    padding: 4rem 0 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}
.footer-logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
}
.footer-logo span { color: var(--red); }
.footer-brand p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 280px;
}
.footer-col h4 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
    font-size: 0.85rem;
    color: var(--muted);
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem !important;
    font-size: 0.85rem;
    color: var(--muted);
}
.footer-contact li svg { flex-shrink: 0; stroke: var(--red); }
.footer-contact li a { color: var(--muted); }
.footer-contact li a:hover { color: var(--white); }

.footer-company {
    margin-top: 1rem;
    border-top: 1px solid var(--gray3);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.footer-company-row {
    display: flex;
    gap: 0.8rem;
    font-size: 0.78rem;
    color: var(--muted);
}
.fc-label {
    min-width: 70px;
    color: #444;
    flex-shrink: 0;
}

.footer-bank {
    margin-top: 1rem;
    border-top: 1px solid var(--gray3);
    padding-top: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-socials { display: flex; gap: 0.6rem; }
.social-icon {
    width: 36px; height: 36px;
    border: 1px solid var(--gray3);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
    transition: all 0.2s;
}
.social-icon:hover { border-color: var(--red); color: var(--red); }

.footer-bottom {
    background: #050505;
    border-top: 1px solid #1a1a1a;
    padding: 1.2rem 0;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 0.8rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: var(--muted); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--white); }

/* ===== AUTH FORMS ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--black);
}
.auth-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}
.auth-box {
    width: 100%;
    max-width: 460px;
    background: var(--gray);
    border: 1px solid var(--gray3);
    border-radius: 16px;
    padding: 2.5rem;
}
.auth-box .auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-box .auth-logo a {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}
.auth-box .auth-logo a span { color: var(--red); }
.auth-box .auth-logo p {
    font-size: 0.83rem;
    color: var(--muted);
    margin-top: 0.3rem;
}
.auth-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}
.auth-sub {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 2rem;
}
.auth-form .form-group { margin-bottom: 1rem; }
.auth-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}
.auth-form input {
    width: 100%;
    background: var(--gray2);
    border: 1px solid var(--gray3);
    border-radius: var(--radius);
    color: var(--white);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-family: var(--font);
    transition: border-color 0.2s;
}
.auth-form input:focus { outline: none; border-color: var(--red); }
.auth-form .btn { width: 100%; justify-content: center; padding: 0.85rem; font-size: 0.95rem; margin-top: 0.5rem; }
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--muted);
    font-size: 0.78rem;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray3);
}
.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--muted);
}
.auth-switch a { color: var(--red); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }
.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    border: 1px solid;
}
.alert-error   { background: rgba(232,25,44,0.08); border-color: rgba(232,25,44,0.25); color: #ff6b78; }
.alert-success { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.25); color: #4ade80; }
.pass-strength {
    height: 3px;
    border-radius: 2px;
    margin-top: 0.4rem;
    background: var(--gray3);
    overflow: hidden;
}
.pass-strength-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
    width: 0%;
}

/* ===== KONTAKT ===== */
.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

.kontakt-form-wrap {
    background: var(--gray);
    border: 1px solid var(--gray3);
    border-radius: 16px;
    padding: 2.5rem;
}

.kontakt-form-wrap h2 {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.kontakt-form-wrap .sub {
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 2rem;
}

.kontakt-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.kontakt-form .row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.kontakt-form .fg {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.kontakt-form label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
}

.kontakt-form input,
.kontakt-form textarea {
    background: var(--gray2);
    border: 1px solid var(--gray3);
    border-radius: var(--radius);
    color: var(--white);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-family: var(--font);
    width: 100%;
    transition: border-color 0.2s;
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
    outline: none;
    border-color: var(--red);
    background: #1e1e1e;
}

.kontakt-form textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.kontakt-form input::placeholder,
.kontakt-form textarea::placeholder {
    color: #3a3a3a;
}

.kontakt-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 90px;
}

.kontakt-card {
    background: var(--gray);
    border: 1px solid var(--gray3);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    transition: border-color 0.2s;
}

.kontakt-card:hover {
    border-color: var(--red);
}

.kontakt-card-icon {
    width: 40px;
    height: 40px;
    background: rgba(232,25,44,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--red);
}

.kontakt-card-body h4 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.kontakt-card-body a,
.kontakt-card-body p {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
    line-height: 1.6;
}

.kontakt-card-body a:hover { color: var(--red); }

.faktura-table {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.2rem;
}

.faktura-row {
    display: flex;
    gap: 0.8rem;
    font-size: 0.8rem;
}

.faktura-key {
    color: var(--muted);
    min-width: 68px;
    flex-shrink: 0;
    font-weight: 500;
}

.faktura-val {
    color: var(--text);
}

.kontakt-success {
    text-align: center;
    padding: 3rem 2rem;
}

.kontakt-success .success-icon {
    width: 64px;
    height: 64px;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.8rem;
}

.kontakt-success h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.kontakt-success p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 860px) {
    .kontakt-grid { grid-template-columns: 1fr; }
    .kontakt-info { position: static; }
}

@media (max-width: 520px) {
    .kontakt-form .row-2 { grid-template-columns: 1fr; }
    .kontakt-form-wrap { padding: 1.5rem; }
}

/* ===== PROFIL ===== */
.profil-hero {
    padding: 3rem 0;
    border-bottom: 1px solid var(--gray3);
    margin-bottom: 3rem;
}
.profil-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--red);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1rem;
}
.profil-meta { color: var(--muted); font-size: 0.85rem; margin-top: 0.3rem; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 900px) {
    .course-single-grid { grid-template-columns: 1fr; }
    .course-sidebar { position: static; }
    /* Oblasti štúdia → 2 stĺpce */
    .oblasti-grid { grid-template-columns: 1fr 1fr !important; }
    /* O nás → 1 stĺpec */
    .onas-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
    /* Formy → 1 stĺpec */
    .formy-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 700px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .oblasti-grid { grid-template-columns: 1fr !important; }
    .cta-box { padding: 2.5rem 1.5rem !important; }
}
@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 68px; left: 0; right: 0;
        background: var(--black);
        border-bottom: 1px solid var(--gray3);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0.5rem;
        z-index: 99;
    }
    .nav-links.open { display: flex; }
    .nav-hamburger { display: flex; }
    .courses-grid { grid-template-columns: 1fr; }
    .stats { gap: 1.5rem; }
    .auth-box { padding: 2rem 1.5rem; }
}

/* ── BRAND NAME ── */
.brand-x { color: #ee202a !important; font-weight: 900; font-style: italic; font-size: 1.15em; }
.brand-academy { text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
