/* enov-base.css — стилі сторінок документів enovarel.com */

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

:root {
    --en-base: #3730a3;
    --en-deep: #221c6e;
    --en-lime: #84cc16;
    --en-lime-soft: #a3e635;
    --en-bg: #f6f5ff;
    --en-panel: #ffffff;
    --en-ink: #1f1b3d;
    --en-mute: #6b6796;
    --en-line: #e0dcf5;
    --en-ui: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --en-display: "Avenir Next", "Century Gothic", "Segoe UI", system-ui, sans-serif;
    --en-r1: 10px;
    --en-r2: 16px;
    --en-r3: 24px;
    --en-lift1: 0 6px 18px rgba(31, 27, 61, 0.06);
    --en-lift2: 0 14px 36px rgba(31, 27, 61, 0.09);
    --en-lift3: 0 26px 62px rgba(31, 27, 61, 0.14);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--en-ui);
    background: var(--en-bg);
    color: var(--en-ink);
    font-size: 16px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--en-base);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--en-deep);
}

/* ---------- шапка ---------- */

.en-site-head {
    position: relative;
    z-index: 30;
    padding: 18px 20px;
    text-align: center;
    background: rgba(246, 245, 255, 0.92);
    border-bottom: 1px solid var(--en-line);
    backdrop-filter: blur(14px);
}

.en-site-head-inner {
    max-width: 1160px;
    margin: 0 auto;
}

.en-site-head-title {
    display: inline-block;
    font-family: var(--en-display);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--en-base);
}

.en-site-head-title:hover {
    color: var(--en-deep);
}

/* ---------- підвал ---------- */

.en-site-foot {
    margin-top: 56px;
    padding: 26px 20px 22px;
    background: #efedfd;
    border-top: 1px solid var(--en-line);
    text-align: center;
}

.en-site-foot-inner {
    max-width: 900px;
    margin: 0 auto;
}

.en-site-foot-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 20px;
    margin-bottom: 12px;
}

.en-site-foot-nav a {
    font-size: 12px;
    color: var(--en-mute);
    letter-spacing: 0.03em;
}

.en-site-foot-nav a:hover {
    color: var(--en-base);
}

.en-site-foot-copy {
    font-size: 12px;
    color: var(--en-mute);
    margin-bottom: 10px;
}

.en-site-foot-note {
    max-width: 780px;
    margin: 0 auto;
    font-size: 11px;
    line-height: 1.7;
    color: #8a86ad;
}

/* ---------- data-policy.html: hero + сітка акордеон-карток ---------- */

.en-doc-hero {
    padding: 72px 20px 92px;
    text-align: center;
    color: #f4f3ff;
    background:
        radial-gradient(circle at 82% 12%, rgba(132, 204, 22, 0.34), transparent 46%),
        radial-gradient(circle at 12% 92%, rgba(163, 230, 53, 0.18), transparent 44%),
        linear-gradient(135deg, #221c6e 0%, #3730a3 62%, #4b45c4 100%);
}

.en-doc-hero-inner {
    max-width: 860px;
    margin: 0 auto;
}

.en-doc-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 16px;
    margin-bottom: 20px;
    border-radius: 999px;
    border: 1px solid rgba(132, 204, 22, 0.55);
    background: rgba(132, 204, 22, 0.14);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--en-lime-soft);
}

.en-doc-hero-tag::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--en-lime);
}

.en-doc-hero-title {
    font-family: var(--en-display);
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 16px;
}

.en-doc-hero-lead {
    max-width: 640px;
    margin: 0 auto 22px;
    font-size: 17px;
    line-height: 1.75;
    color: rgba(232, 230, 255, 0.86);
}

.en-doc-hero-meta {
    display: inline-block;
    padding: 7px 18px;
    border-radius: var(--en-r1);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 13px;
    color: #dedcfa;
}

.en-fold-hold {
    max-width: 1120px;
    margin: -52px auto 0;
    padding: 0 20px 40px;
}

.en-fold-intro {
    background: var(--en-panel);
    border: 1px solid var(--en-line);
    border-radius: var(--en-r3);
    box-shadow: var(--en-lift2);
    padding: 30px 34px;
    margin-bottom: 24px;
}

.en-fold-intro p {
    color: var(--en-mute);
    margin-bottom: 12px;
}

.en-fold-intro p:last-child {
    margin-bottom: 0;
}

.en-fold-intro strong {
    color: var(--en-ink);
}

.en-fold-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.en-fold-card {
    background: var(--en-panel);
    border: 1px solid var(--en-line);
    border-radius: var(--en-r2);
    box-shadow: var(--en-lift1);
    overflow: hidden;
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.en-fold-card[open] {
    border-color: rgba(132, 204, 22, 0.55);
    box-shadow: var(--en-lift2);
}

.en-fold-card-wide {
    grid-column: 1 / -1;
}

.en-fold-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.en-fold-card-head::-webkit-details-marker {
    display: none;
}

.en-fold-card-num {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: var(--en-r1);
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, var(--en-deep), var(--en-base));
}

.en-fold-card[open] .en-fold-card-num {
    background: var(--en-lime);
    color: var(--en-deep);
}

.en-fold-card-title {
    flex: 1;
    font-family: var(--en-display);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--en-ink);
}

.en-fold-card-sign {
    flex: 0 0 auto;
    position: relative;
    width: 18px;
    height: 18px;
}

.en-fold-card-sign::before,
.en-fold-card-sign::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: var(--en-base);
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.en-fold-card-sign::before {
    width: 14px;
    height: 2px;
}

.en-fold-card-sign::after {
    width: 2px;
    height: 14px;
}

.en-fold-card[open] .en-fold-card-sign::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.en-fold-card-body {
    padding: 0 20px 20px;
    border-top: 1px solid var(--en-line);
    padding-top: 16px;
    margin-top: 2px;
}

.en-fold-card-body p {
    color: var(--en-mute);
    margin-bottom: 12px;
    font-size: 15px;
}

.en-fold-card-body p:last-child {
    margin-bottom: 0;
}

.en-fold-card-body ul,
.en-fold-card-body ol {
    margin: 0 0 12px;
    padding-left: 18px;
    color: var(--en-mute);
    font-size: 15px;
}

.en-fold-card-body li {
    margin-bottom: 6px;
}

.en-fold-card-body strong {
    color: var(--en-ink);
}

.en-fold-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 14px 0 4px;
}

.en-fold-mini-cell {
    padding: 14px 16px;
    border-radius: var(--en-r1);
    background: #f4f3ff;
    border: 1px solid var(--en-line);
}

.en-fold-mini-cell b {
    display: block;
    font-size: 14px;
    color: var(--en-base);
    margin-bottom: 4px;
}

.en-fold-mini-cell span {
    font-size: 13.5px;
    line-height: 1.62;
    color: var(--en-mute);
}

.en-fold-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 4px;
    font-size: 14.5px;
    border-radius: var(--en-r1);
    overflow: hidden;
    border: 1px solid var(--en-line);
}

.en-fold-table th {
    background: linear-gradient(135deg, var(--en-deep), var(--en-base));
    color: #ffffff;
    text-align: left;
    padding: 11px 14px;
    font-size: 13.5px;
    letter-spacing: 0.02em;
}

.en-fold-table td {
    padding: 11px 14px;
    border-top: 1px solid var(--en-line);
    color: var(--en-mute);
}

.en-fold-table tr:nth-child(even) td {
    background: #faf9ff;
}

@media (max-width: 860px) {
    .en-fold-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .en-fold-intro {
        padding: 24px 20px;
    }

    .en-doc-hero {
        padding: 54px 18px 76px;
    }
}

/* ---------- user-terms.html: широка колонка з нумерованими секціями ---------- */

.en-terms-top {
    max-width: 900px;
    margin: 0 auto;
    padding: 66px 24px 34px;
}

.en-terms-top-kicker {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--en-base);
    margin-bottom: 14px;
}

.en-terms-top-title {
    font-family: var(--en-display);
    font-size: clamp(30px, 4.6vw, 50px);
    line-height: 1.1;
    font-weight: 800;
    color: var(--en-deep);
    margin-bottom: 18px;
}

.en-terms-top-lead {
    font-size: 17.5px;
    line-height: 1.75;
    color: var(--en-mute);
    max-width: 720px;
}

.en-terms-top-stamp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 8px 16px 8px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--en-line);
    box-shadow: var(--en-lift1);
    font-size: 13.5px;
    color: var(--en-mute);
}

.en-terms-top-stamp b {
    color: var(--en-ink);
}

.en-terms-top-stamp::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--en-lime);
}

.en-terms-flow {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 24px 30px;
}

.en-terms-part {
    padding: 34px 0 6px;
}

.en-terms-part-rule {
    width: 100%;
    height: 5px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--en-lime) 0%, var(--en-lime-soft) 26%, rgba(132, 204, 22, 0.12) 100%);
    margin-bottom: 20px;
}

.en-terms-part-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 14px;
}

.en-terms-part-num {
    font-family: var(--en-display);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    line-height: 1;
    color: rgba(55, 48, 163, 0.24);
    letter-spacing: -0.02em;
}

.en-terms-part-title {
    font-family: var(--en-display);
    font-size: clamp(21px, 2.6vw, 29px);
    line-height: 1.22;
    font-weight: 700;
    color: var(--en-deep);
}

.en-terms-part-body p {
    color: var(--en-mute);
    margin-bottom: 14px;
    font-size: 16.5px;
}

.en-terms-part-body ul {
    margin: 0 0 16px;
    padding-left: 0;
    list-style: none;
}

.en-terms-part-body ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 9px;
    color: var(--en-mute);
}

.en-terms-part-body ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 12px;
    width: 10px;
    height: 3px;
    border-radius: 2px;
    background: var(--en-lime);
}

.en-terms-part-body strong {
    color: var(--en-ink);
}

.en-terms-note {
    margin: 22px 0 6px;
    padding: 20px 22px 20px 24px;
    border-radius: 0 var(--en-r2) var(--en-r2) 0;
    border-left: 5px solid var(--en-lime);
    background: linear-gradient(90deg, rgba(132, 204, 22, 0.12), rgba(255, 255, 255, 0.9));
    box-shadow: var(--en-lift1);
}

.en-terms-note p {
    margin: 0;
    color: var(--en-ink);
    font-size: 15.5px;
}

.en-step-line {
    margin: 24px 0 8px;
    padding: 26px 26px 12px;
    border-radius: var(--en-r3);
    background: var(--en-panel);
    border: 1px solid var(--en-line);
    box-shadow: var(--en-lift2);
}

.en-step-line-cap {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--en-base);
    margin-bottom: 18px;
}

.en-step-line-item {
    position: relative;
    padding: 0 0 22px 46px;
}

.en-step-line-item::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 26px;
    bottom: 0;
    width: 2px;
    background: var(--en-line);
}

.en-step-line-item:last-child::before {
    display: none;
}

.en-step-line-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--en-deep);
    background: var(--en-lime);
    box-shadow: 0 0 0 5px rgba(132, 204, 22, 0.16);
}

.en-step-line-title {
    font-weight: 800;
    font-size: 15.5px;
    color: var(--en-ink);
    margin-bottom: 3px;
    padding-top: 4px;
}

.en-step-line-text {
    font-size: 15px;
    color: var(--en-mute);
    line-height: 1.68;
}

@media (max-width: 700px) {
    .en-terms-top {
        padding: 48px 18px 24px;
    }

    .en-terms-flow {
        padding: 6px 18px 20px;
    }

    .en-terms-part-head {
        flex-direction: column;
        gap: 4px;
    }

    .en-step-line {
        padding: 20px 18px 6px;
        border-radius: 18px;
    }
}

/* ---------- exchange-rules.html: вертикальний таймлайн ---------- */

.en-swap-top {
    max-width: 1000px;
    margin: 34px auto 0;
    padding: 0 24px;
}

.en-swap-top-plate {
    position: relative;
    overflow: hidden;
    padding: 34px 36px;
    border-radius: var(--en-r3);
    background: linear-gradient(120deg, #221c6e 0%, #3730a3 78%);
    box-shadow: var(--en-lift3);
    color: #f3f2ff;
}

.en-swap-top-plate::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(132, 204, 22, 0.42), transparent 68%);
}

.en-swap-top-tag {
    position: relative;
    display: inline-block;
    padding: 5px 14px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: var(--en-lime);
    color: var(--en-deep);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.en-swap-top-title {
    position: relative;
    font-family: var(--en-display);
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.14;
    font-weight: 800;
    margin-bottom: 14px;
}

.en-swap-top-text {
    position: relative;
    max-width: 660px;
    font-size: 16.5px;
    line-height: 1.74;
    color: rgba(230, 228, 255, 0.9);
}

.en-swap-top-text b {
    color: var(--en-lime-soft);
}

.en-swap-top-stamp {
    position: relative;
    margin-top: 18px;
    font-size: 13px;
    color: rgba(214, 211, 250, 0.78);
}

.en-swap-rail {
    max-width: 1000px;
    margin: 0 auto;
    padding: 44px 24px 20px;
}

.en-swap-node {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0 22px;
    padding-bottom: 30px;
}

.en-swap-node::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 52px;
    bottom: -4px;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--en-line), rgba(224, 220, 245, 0.35));
}

.en-swap-node-last::before {
    display: none;
}

.en-swap-node-mark {
    position: relative;
    z-index: 2;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-family: var(--en-display);
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, var(--en-base), var(--en-deep));
    box-shadow: 0 8px 20px rgba(55, 48, 163, 0.28);
}

.en-swap-node-mark-lime {
    background: linear-gradient(135deg, var(--en-lime), var(--en-lime-soft));
    color: var(--en-deep);
    box-shadow: 0 8px 20px rgba(132, 204, 22, 0.34);
}

.en-swap-node-body {
    background: var(--en-panel);
    border: 1px solid var(--en-line);
    border-radius: var(--en-r2);
    box-shadow: var(--en-lift1);
    padding: 22px 26px;
}

.en-swap-node-title {
    font-family: var(--en-display);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.26;
    color: var(--en-deep);
    margin-bottom: 10px;
}

.en-swap-node-body p {
    color: var(--en-mute);
    margin-bottom: 12px;
    font-size: 15.5px;
}

.en-swap-node-body p:last-child {
    margin-bottom: 0;
}

.en-swap-node-body ul,
.en-swap-node-body ol {
    margin: 0 0 12px;
    padding-left: 20px;
    color: var(--en-mute);
    font-size: 15.5px;
}

.en-swap-node-body li {
    margin-bottom: 7px;
}

.en-swap-node-body strong {
    color: var(--en-ink);
}

.en-swap-flag {
    margin: 14px 0 4px;
    padding: 16px 18px;
    border-radius: var(--en-r1);
    background: #f2fbe4;
    border: 1px dashed rgba(132, 204, 22, 0.7);
}

.en-swap-flag p {
    margin: 0;
    color: var(--en-ink);
    font-size: 15px;
}

.en-swap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin: 14px 0 4px;
}

.en-swap-grid-cell {
    padding: 14px 16px;
    border-radius: var(--en-r1);
    background: #f6f5ff;
    border: 1px solid var(--en-line);
}

.en-swap-grid-cell b {
    display: block;
    font-size: 14px;
    color: var(--en-base);
    margin-bottom: 4px;
}

.en-swap-grid-cell span {
    font-size: 13.5px;
    line-height: 1.62;
    color: var(--en-mute);
}

.en-swap-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 4px;
    font-size: 15px;
    border: 1px solid var(--en-line);
    border-radius: var(--en-r1);
    overflow: hidden;
}

.en-swap-table th {
    background: #eeecfe;
    color: var(--en-deep);
    text-align: left;
    padding: 11px 14px;
    font-size: 14px;
}

.en-swap-table td {
    padding: 11px 14px;
    border-top: 1px solid var(--en-line);
    color: var(--en-mute);
}

.en-swap-table td:last-child {
    font-weight: 700;
    color: var(--en-ink);
}

@media (max-width: 700px) {
    .en-swap-top {
        padding: 0 16px;
    }

    .en-swap-top-plate {
        padding: 26px 20px;
        border-radius: 20px;
    }

    .en-swap-rail {
        padding: 32px 16px 12px;
    }

    .en-swap-node {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 0 14px;
    }

    .en-swap-node::before {
        left: 19px;
        top: 44px;
    }

    .en-swap-node-mark {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 16px;
    }

    .en-swap-node-body {
        padding: 18px 18px;
    }
}
