:root {
    --bg: #f3f5f7;
    --bg-soft: #eef1f4;
    --card: #ffffff;
    --card-hover: #fbfcfd;
    --text: #1d2a3a;
    --text-soft: #536274;
    --text-muted: #7c8896;
    --gold: #d79b23;
    --gold-dark: #b77f15;
    --gold-soft: rgba(215, 155, 35, 0.10);
    --border: rgba(25, 40, 58, 0.08);
    --shadow: 0 10px 30px rgba(23, 37, 56, 0.08);
    --radius: 22px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top, rgba(215, 155, 35, 0.05), transparent 20%),
        linear-gradient(180deg, #f7f8fa 0%, #eef2f6 100%);
    min-height: 100vh;
}

a {
    color: inherit;
}

/* HEADER */

.site-header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(20, 30, 40, 0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}

.brand img {
    width: 54px;
    height: auto;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
}

.brand-subtitle {
    font-size: 0.86rem;
    color: var(--text-soft);
}

/* MENU */

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 60px;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 10px;
    background: #edf1f5;
    border: 1px solid rgba(20, 30, 40, 0.04);
    transition: all 0.2s ease;
}

.main-nav a:hover {
    background: #e4eaf0;
    transform: translateY(-1px);
}

.main-nav .nav-login {
    background: rgba(215, 155, 35, 0.12);
    color: var(--gold-dark);
    border-color: rgba(215, 155, 35, 0.18);
}

.main-nav .nav-login:hover {
    background: rgba(215, 155, 35, 0.18);
}

/* DROPDOWN */

.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    cursor: pointer;
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 8px;
    display: none;
    flex-direction: column;
    min-width: 210px;
    z-index: 100;
}

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    background: transparent;
    border: none;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: #eef2f5;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    display: flex;
}

/* PAGE */

.page-home {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 28px 20px 60px;
}

/* HERO */

.hero-dashboard {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 24px;
    align-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 26px;
}

.hero-kicker {
    margin: 0 0 10px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 800;
    color: var(--gold-dark);
}

.hero-dashboard h1 {
    margin: 0 0 14px;
    font-size: clamp(2.2rem, 4vw, 3.3rem);
    line-height: 1.05;
    color: var(--text);
}

.hero-description {
    margin: 0 0 16px;
    color: var(--text-soft);
    line-height: 1.75;
    font-size: 1.02rem;
    max-width: 700px;
}

.hero-note {
    margin: 0 0 22px;
    padding: 15px 16px;
    background: rgba(215, 155, 35, 0.08);
    border: 1px solid rgba(215, 155, 35, 0.16);
    border-radius: 14px;
    color: #705216;
    line-height: 1.65;
    max-width: 760px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-visual {
    text-align: center;
}

.hero-visual img {
    max-width: 250px;
    width: 100%;
    height: auto;
    display: inline-block;
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 800;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: #f6a500;
    color: #ffffff;
}

.btn-primary:hover {
    background: #e49700;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #eef2f5;
    color: var(--text);
    border-color: rgba(20, 30, 40, 0.05);
}

.btn-secondary:hover {
    background: #e4eaf0;
    transform: translateY(-1px);
}

/* STATS */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 24px 18px;
    text-align: center;
}

.stat-label {
    display: block;
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.stat-value {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--text);
}

/* GRID */

.home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.home-card {
    text-decoration: none;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 26px 24px;
    transition: all 0.2s ease;
}

.home-card:hover {
    transform: translateY(-3px);
    background: var(--card-hover);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--gold-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.home-card h2 {
    margin: 0 0 12px;
    font-size: 1.32rem;
    line-height: 1.2;
    color: var(--text);
}

.home-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
    font-size: 0.98rem;
}

.card-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--gold-dark);
    font-weight: 800;
}

/* FOOTER */

.site-footer {
    text-align: center;
    padding: 30px 20px 36px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* SIMPLE PAGES */

.page-simple {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.page-simple h1 {
    margin-top: 0;
    font-size: 2rem;
}

.page-simple p {
    color: var(--text-soft);
    line-height: 1.7;
}

/* MOBILE */

@media (max-width: 980px) {
    .hero-dashboard {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .hero-visual {
        order: -1;
    }

    .hero-visual img {
        max-width: 200px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header-inner {
        gap: 20px;
    }

    .main-nav {
        margin-right: 0;
    }
}

@media (max-width: 760px) {
    .header-inner {
        padding: 14px;
        flex-direction: column;
        align-items: flex-start;
    }

    .brand img {
        width: 46px;
    }

    .brand-title {
        font-size: 1rem;
    }

    .brand-subtitle {
        font-size: 0.82rem;
    }

    .main-nav {
        gap: 8px;
        margin-left: 0;
        margin-right: 0;
    }

    .main-nav a {
        font-size: 0.86rem;
        padding: 9px 12px;
    }

    .page-home {
        padding: 20px 14px 40px;
    }

    .hero-dashboard {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .home-grid {
        grid-template-columns: 1fr;
    }

    .home-card {
        padding: 22px 18px;
    }
}