:root {
    --black: #020202;
    --black-2: #101010;
    --white: #f4f4f4;
    --gray: #b3b3b3;
    --gold: #d4af37;
    --gold-soft: rgba(212, 175, 55, 0.12);
    --border: rgba(212, 175, 55, 0.18);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.12), transparent 25%),
                radial-gradient(circle at bottom right, rgba(212, 175, 55, 0.08), transparent 20%),
                linear-gradient(180deg, var(--black) 0%, #070707 100%);
    color: var(--white);
    min-height: 100vh;
}

a {
    color: var(--white);
    text-decoration: none;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    background: rgba(5, 5, 5, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.14);
    display: flex;
    align-items: center;
    min-height: 88px;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    display: block;
    height: 44px;
    max-width: 240px;
    object-fit: contain;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    color: var(--white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.page-wrapper {
    padding-top: 88px;
}

.page-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 28px 40px;
    min-height: calc(100vh - 128px);
}

.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}

.sidebar h2 {
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 18px;
}

.nav-group {
    margin-bottom: 24px;
}

.nav-group button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: none;
    background: transparent;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 0;
    cursor: pointer;
}

.nav-group button:hover {
    color: var(--gold);
}

.nav-group button::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease, color 0.25s ease;
}

.nav-group button[data-open="true"]::after {
    transform: rotate(-135deg);
}

.nav-items {
    list-style: none;
    padding-left: 0;
    margin-top: 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
}

.nav-items.open {
    max-height: 480px;
}

.nav-items li {
    margin-bottom: 10px;
}

.nav-items li a {
    display: block;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    color: var(--gray);
    font-size: 0.95rem;
}

.nav-items li a:hover,
.nav-items li a.active {
    color: var(--white);
    background: rgba(212, 175, 55, 0.12);
}

.telegram-menu-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
    padding: 18px 14px;
    border: 1px solid rgba(34, 158, 217, 0.28);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(34, 158, 217, 0.16), rgba(34, 158, 217, 0.05));
    color: #fff;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.telegram-menu-link:hover {
    background: linear-gradient(145deg, rgba(34, 158, 217, 0.25), rgba(34, 158, 217, 0.1));
    border-color: rgba(34, 158, 217, 0.55);
    transform: translateY(-2px);
}

.telegram-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #229ed9;
    box-shadow: 0 6px 18px rgba(34, 158, 217, 0.25);
}

.telegram-menu-icon svg {
    display: block;
    width: 23px;
    height: 23px;
    fill: #fff;
}

.telegram-menu-title {
    font-size: 0.92rem;
    font-weight: 700;
}

.telegram-menu-caption {
    color: var(--gray);
    font-size: 0.78rem;
    line-height: 1.4;
}

.content {
    min-width: 0;
}

.content-header,
.hero {
    margin: 0 0 32px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255,255,255,0.06);
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--gray);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--white);
}

.breadcrumb span {
    opacity: 0.65;
}

.content .eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.content h1,
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 4vw, 3.8rem);
    line-height: 1.02;
    margin-bottom: 18px;
}

.content p.lead,
.hero p,
.card p,
.card ol {
    color: var(--gray);
    line-height: 1.85;
    margin-bottom: 20px;
}

.content p.lead {
    max-width: 720px;
    font-size: 1.05rem;
}

.card {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 14px 48px rgba(0, 0, 0, 0.16);
    scroll-margin-top: 120px;
}

.card h2 {
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.card ul,
.card ol {
    padding: 0;
    margin: 0;
}

.card li {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--white);
}

.card li span {
    color: var(--gold);
    font-size: 0.9rem;
    line-height: 1.6;
}

.card li p {
    margin: 0;
    color: var(--gray);
    font-size: 0.96rem;
    line-height: 1.75;
}

.guide-steps-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.guide-steps-heading p {
    margin: 0;
}

.guide-steps-toggle {
    padding: 10px 16px;
    border: 1px solid var(--gold);
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
}

.guide-steps-toggle:hover {
    background: rgba(212, 175, 55, 0.2);
}

.guide-steps {
    display: grid;
    gap: 28px;
}

.guide-steps[hidden] {
    display: none;
}

.guide-step h3 {
    margin-bottom: 14px;
    color: var(--white);
    font-size: 1.05rem;
    line-height: 1.6;
}

.guide-step-image {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.35);
    cursor: zoom-in;
}

.guide-step-image img {
    display: block;
    width: 100%;
    height: min(460px, 55vh);
    object-fit: contain;
    transition: height 0.25s ease;
}

.guide-step-image.is-expanded {
    cursor: zoom-out;
}

.guide-step-image.is-expanded img {
    height: 85vh;
}

.tips {
    display: grid;
    gap: 16px;
    margin-top: 8px;
}

.tip {
    border-radius: 18px;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.16);
    padding: 18px;
}

.tip strong {
    display: block;
    margin-bottom: 10px;
    color: var(--white);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
}

    background: rgba(255,255,255,0.08);
    color: var(--white);
}

.note {
    margin-top: 24px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.16);
    color: var(--white);
}

.mobile-nav {
    display: none;
    position: fixed;
    inset: 72px 20px auto auto;
    z-index: 1200;
    width: calc(100% - 40px);
    max-width: 360px;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.mobile-nav.open {
    display: block;
}

.mobile-nav .nav-group {
    margin-bottom: 18px;
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1100;
}

.overlay.open {
    display: block;
}

@media (max-width: 980px) {
    .page-shell {
        grid-template-columns: 1fr;
        padding: 120px 20px 30px;
    }

    .sidebar {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex;
    }
}

@media (max-width: 700px) {
    .page-shell {
        padding-top: 100px;
    }

    .content h1,
    .hero h1 {
        font-size: 2.5rem;
    }

    .card {
        padding: 22px;
    }
}
