:root {
    --violet: #5A63C4;
    --violet-2: #6B74D0;
    --violet-dark: #4B54AA;
    --violet-deep: #353C80;
    --violet-soft: #EDEFFA;
    --violet-glow: rgba(90, 99, 196, 0.14);
    --accent-light: #B8BEE5;

    --grad: linear-gradient(135deg, #4B54AA, #5A63C4);
    --grad-hover: linear-gradient(135deg, #3F4799, #4E57B5);

    --bg: #FFFFFF;
    --bg-tint: #F5F6FC;
    --bg-grad: linear-gradient(180deg, #EEF0FA 0%, #FFFFFF 50%, #F5F6FC 100%);

    --ink: #1C2144;
    --ink-2: #2E3461;
    --ink-soft: #6A6F8F;
    --line: rgba(75, 84, 170, 0.15);

    --shadow-soft: 0 10px 30px -12px rgba(75, 84, 170, 0.22);
    --shadow-hover: 0 22px 50px -16px rgba(75, 84, 170, 0.38);
    --shadow-card: 0 4px 20px -8px rgba(75, 84, 170, 0.15);
    --radius: 18px;
    --radius-lg: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
}

.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background: var(--bg-grad);
}

.ambient::before,
.ambient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.28;
}

.ambient::before {
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, var(--violet), transparent 70%);
    top: -150px;
    right: -120px;
    animation: floatA 20s ease-in-out infinite;
}

.ambient::after {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-light), transparent 70%);
    bottom: -250px;
    left: -150px;
    animation: floatB 24s ease-in-out infinite;
}

@keyframes floatA {
    50% {
        transform: translate(-30px, 40px) scale(1.1);
    }
}

@keyframes floatB {
    50% {
        transform: translate(40px, -30px) scale(1.05);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main,
header,
footer {
    position: relative;
    z-index: 2;
}

.top-wrap {
    padding: 20px 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1500px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    z-index: 101;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text .brand {
    font-weight: 700;
    font-size: 20px;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.logo-text .tag {
    font-size: 12px;
    color: var(--ink-soft);
    letter-spacing: 0.03em;
    font-weight: 500;
}

.nav-pill {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-pill nav {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 7px 12px;
}

.nav-pill a {
    font-size: 14px;
    color: var(--ink-soft);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-pill a:hover {
    color: var(--violet);
    background: var(--violet-soft);
}

.cta-btn {
    background: var(--grad);
    color: #fff;
    border: none;
    padding: 12px 26px;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s, filter 0.3s;
    box-shadow: 0 8px 22px -8px rgba(75, 84, 170, 0.55);
    flex-shrink: 0;
}

.cta-btn:hover {
    background: var(--grad-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -10px rgba(75, 84, 170, 0.7);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px;
    flex-shrink: 0;
}

.lang-switch button {
    background: transparent;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.2s;
}

.lang-switch button:hover {
    color: var(--violet);
    background: var(--violet-soft);
}

.lang-switch button.active {
    background: var(--grad);
    color: white;
    box-shadow: 0 4px 10px -3px rgba(75, 84, 170, 0.4);
}

.lang-switch button[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.25);
    box-shadow: none;
    transform: none;
}

.lang-switch button[disabled]:hover,
.lang-switch button[disabled]:active {
    background: inherit;
    color: inherit;
    transform: none;
    box-shadow: none;
}

.lang-switch button[disabled]::after,
.lang-switch button[disabled]::before {
    display: none;
}

.burger {
    display: none;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 101;
    flex-shrink: 0;
}

.burger:hover {
    background: var(--violet-soft);
    border-color: var(--violet);
}

.burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--violet);
    margin: 4px 0;
    border-radius: 2px;
}

.page {
    max-width: 1300px;
    margin: 20px auto 80px;
    padding: 40px 40px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 20px;
    font-weight: 500;
}

.breadcrumb a {
    color: var(--ink-soft);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--violet);
}

.breadcrumb svg {
    width: 12px;
    height: 12px;
    opacity: 0.5;
}

.breadcrumb .current {
    color: var(--ink);
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 50px;
    animation: fadeUp 0.5s ease 0.3s backwards;
}

.page-header h1 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
}

.page-header h1 .accent {
    color: var(--violet);
}

.page-header p {
    font-size: 17px;
    color: var(--ink-soft);
    max-width: 560px;
    line-height: 1.6;
}

.priv-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid var(--line);
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 13px;
    color: var(--ink-2);
    font-weight: 600;
    box-shadow: var(--shadow-card);
    flex-shrink: 0;
}

.priv-badge svg {
    width: 18px;
    height: 18px;
    stroke: var(--violet);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: flex-start;
    animation: fadeUp 0.7s ease 0.5s backwards;
}

.content-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-soft);
}

.policy-section {
    border-bottom: 1px solid var(--line);
    padding-bottom: 0;
}

.policy-section:last-child {
    border-bottom: none;
}

.section-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.section-toggle:hover .section-title {
    color: var(--violet);
}

.section-num {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--violet-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--violet-dark);
    flex-shrink: 0;
    transition: background 0.25s;
}

.policy-section.open .section-num {
    background: var(--grad);
    color: white;
}

.section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    flex: 1;
    letter-spacing: -0.02em;
    transition: color 0.2s;
}

.section-arrow {
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.section-arrow svg {
    width: 14px;
    height: 14px;
    stroke: var(--ink-soft);
    fill: none;
    stroke-width: 2;
    transition: transform 0.3s;
}

.policy-section.open .section-arrow {
    background: var(--violet-soft);
    border-color: var(--violet);
}

.policy-section.open .section-arrow svg {
    transform: rotate(180deg);
    stroke: var(--violet);
}

.section-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(.4, 0, .2, 1);
}

.policy-section.open .section-body {
    max-height: 2000px;
}

.section-inner {
    padding-bottom: 28px;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--ink-soft);
}

.section-inner p {
    margin-bottom: 14px;
}

.section-inner p:last-child {
    margin-bottom: 0;
}

.section-inner strong {
    color: var(--ink-2);
    font-weight: 700;
}

.section-inner a {
    color: var(--violet);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.section-inner a:hover {
    color: var(--violet-dark);
}

.section-inner ul {
    list-style: none;
    display: grid;
    gap: 10px;
    margin: 14px 0;
}

.section-inner ul li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.section-inner ul li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    margin-top: 9px;
    border-radius: 50%;
    background: var(--violet);
}

.info-box {
    background: var(--violet-soft);
    border: 1px solid rgba(90, 99, 196, 0.2);
    border-radius: 14px;
    padding: 16px 20px;
    margin: 16px 0;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 13.5px;
    color: var(--ink-2);
    line-height: 1.6;
}

.info-box svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    stroke: var(--violet);
    fill: none;
    stroke-width: 2;
    margin-top: 1px;
}

.warn-box {
    background: #FFF8EF;
    border: 1px solid rgba(251, 146, 60, 0.3);
    border-radius: 14px;
    padding: 16px 20px;
    margin: 16px 0;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 13.5px;
    color: #7C4E1A;
    line-height: 1.6;
}

.warn-box svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    stroke: #F97316;
    fill: none;
    stroke-width: 2;
    margin-top: 1px;
}

.sidebar {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.side-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.side-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.side-card h4 svg {
    width: 18px;
    height: 18px;
    stroke: var(--violet);
    fill: none;
    stroke-width: 2;
}

.side-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.side-list li {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.55;
    display: flex;
    gap: 10px;
}

.side-list li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--violet);
}

.side-card.grad {
    background: var(--grad);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.side-card.grad::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 70%);
    border-radius: 50%;
}

.side-card.grad>* {
    position: relative;
    z-index: 2;
}

.side-card.grad h4 {
    color: white;
}

.side-card.grad h4 svg {
    stroke: white;
}

.side-card.grad p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.toc-list {
    list-style: none;
    display: grid;
    gap: 4px;
}

.toc-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    padding: 9px 12px;
    border-radius: 10px;
    transition: all 0.2s;
}

.toc-list a:hover {
    color: var(--violet);
    background: var(--violet-soft);
}

.toc-list a.active {
    color: var(--violet);
    background: var(--violet-soft);
}

.toc-num {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--bg-tint);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-soft);
    flex-shrink: 0;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--bg-tint);
    border: 1px solid var(--line);
    border-radius: 14px;
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 600;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
}

.meta-chip svg {
    width: 13px;
    height: 13px;
    stroke: var(--violet);
    fill: none;
    stroke-width: 2;
}

footer {
    border-top: 1px solid var(--line);
    padding: 32px 40px;
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

footer p {
    font-size: 13px;
    color: var(--ink-soft);
}

footer a {
    color: var(--violet);
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 340px;
    height: 100vh;
    background: white;
    padding: 80px 32px 40px;
    z-index: 100;
    transition: right 0.4s cubic-bezier(.2, .9, .3, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav a {
    font-size: 17px;
    color: var(--ink);
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 500;
    transition: color 0.2s;
}

.mobile-nav a:hover {
    color: var(--violet);
}

.mobile-nav .cta-btn {
    margin-top: 28px;
    width: 100%;
    justify-content: center;
    padding: 14px;
}

.mobile-nav .lang-switch {
    margin-top: 20px;
    width: 100%;
    justify-content: space-between;
    padding: 6px;
}

.mobile-nav .lang-switch button {
    flex: 1;
    padding: 10px;
    font-size: 13px;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--violet-soft);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    color: var(--violet);
    font-weight: 300;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 21, 48, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 99;
    backdrop-filter: blur(4px);
}

.mobile-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 1315px) {
    #startSvg {
        width: 17px;
        height: 17px;
    }

    #startMark {
        display: none;
    }
}

@media (max-width: 1225px) {
    .top-wrap {
        padding: 14px 18px;
        gap: 12px;
        justify-content: space-between;
    }

    .nav-pill {
        display: none;
    }

    .cta-btn.header-cta {
        display: none;
    }

    .lang-switch.header-lang {
        display: none;
    }

    .burger {
        display: block;
    }
}

@media (max-width: 1024px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        order: -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .page {
        padding: 20px 18px 0;
        margin-bottom: 50px;
    }

    .content-card {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .page-header {
        margin-bottom: 32px;
        gap: 16px;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    footer {
        padding: 24px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.scroll-top-btn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 16px;
    background: var(--grad);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 130;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(0.92);
    box-shadow: 0 14px 34px -12px rgba(75, 84, 170, 0.55);
    transition:
        opacity .28s ease,
        transform .28s ease,
        visibility .28s ease,
        box-shadow .28s ease,
        filter .28s ease;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
    background: var(--grad-hover);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 20px 42px -14px rgba(75, 84, 170, 0.68);
}

.scroll-top-btn:active {
    transform: translateY(0) scale(0.97);
}

.scroll-top-btn svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .scroll-top-btn {
        right: 12px;
        bottom: 12px;
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }
}

::selection {
    color: white;
    background: rgb(62, 64, 149);
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: rgb(57, 65, 136, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgb(57, 65, 136, 0.7);
}