* {
    box-sizing: border-box;
}

:root {
    --bg: #f4f7fb;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --white: #ffffff;
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --soft: #eef2ff;
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
    --shadow-md: 0 14px 30px rgba(15, 23, 42, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at top left, #e0e7ff 0%, transparent 26%),
        radial-gradient(circle at bottom right, #dbeafe 0%, transparent 24%),
        var(--bg);
    color: var(--text);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

.page-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.menu-toggle {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 16px 28px rgba(79, 70, 229, 0.28);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(79, 70, 229, 0.34);
}

.menu-toggle span {
    width: 22px;
    height: 2.5px;
    border-radius: 999px;
    background: #ffffff;
    display: block;
}

.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 100px;
}

.hero-content {
    max-width: 720px;
}

.hero-label {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
}

.hero-title {
    margin: 0;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.hero-text {
    max-width: 620px;
    margin: 18px 0 0;
    font-size: 18px;
    line-height: 1.7;
    color: var(--muted);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100%);
    height: 100vh;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-left: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 10;
}

.side-menu.is-open {
    transform: translateX(0);
}

.side-menu__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.side-menu__label {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
}

.side-menu__title {
    margin: 0;
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
}

.menu-close {
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid var(--line);
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.menu-close:hover {
    background: #eef2ff;
    transform: rotate(90deg);
}

.menu-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: #334155;
    border-radius: 999px;
}

.menu-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.menu-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.side-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding: 16px;
    border-radius: 18px;
    color: var(--text);
    background: transparent;
    border: 1px solid transparent;
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        transform 0.18s ease,
        box-shadow 0.22s ease;
}

.menu-link:hover {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: var(--shadow-md);
    transform: translateX(-2px);
}

.menu-link.active {
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    border-color: #c7d2fe;
}

.menu-link__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.menu-link.active .menu-link__icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.24);
}

.menu-link__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-link__title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

.menu-link__text {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.4;
}

.side-menu__footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid var(--line);
}

.profile-card__avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 12px 22px rgba(79, 70, 229, 0.24);
    flex-shrink: 0;
}

.profile-card__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-card__info strong {
    font-size: 15px;
    line-height: 1.2;
}

.profile-card__info span {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.3;
}

.logout-btn {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(220, 38, 38, 0.24);
}

@media (max-width: 640px) {
    .page-header {
        padding: 18px 14px;
    }

    .hero {
        padding: 40px 14px 80px;
    }

    .side-menu {
        width: 100%;
        padding: 18px;
    }

    .menu-link {
        padding: 14px;
        border-radius: 16px;
    }

    .menu-link__icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }
}