/*
PALETTE FAMILY: Pearl + Indigo
CTA COLOR FAMILY: Violet
PAGE BALANCE: light-dominant
HERO TEMPERATURE: cool
*/
:root {
    --text-strong: #171a2c;
    --text-muted: #49506b;
    --text-on-dark: #f5f7ff;
    --text-muted-on-dark: #c6cce8;
    --surface-0: #f7f8ff;
    --surface-1: #ffffff;
    --surface-2: #232840;
    --surface-card: #ffffff;
    --border-subtle: #dce0f4;
    --input-bg: #f8f9ff;
    --input-border: #ccd2ee;
    --focus-ring: #b9c2ff;
    --shadow-soft: 0 16px 40px #ced4f280;
    --cta: #5a53d6;
    --cta-hover: #4842b8;
    --hero-glow: #e3e6ff;
    --chart-a: #5a53d6;
    --chart-b: #7b74e8;
    --chart-c: #a29cf6;
    --chart-d: #cdc9ff;
    --btn-height: 48px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--surface-0);
    color: var(--text-strong);
    font-size: 18px;
    line-height: 1.65;
}

p, li, label, small, .faq-answer, footer {
    font-size: 18px;
    line-height: 1.65;
}

a {
    color: #35308f;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding-inline: 24px;
}

.section {
    padding: 80px 0;
    overflow: hidden;
}

.section.light {
    background: var(--surface-1);
    color: var(--text-strong);
}

.section.light p, .section.light li {
    color: var(--text-muted);
}

.section.dark {
    background: var(--surface-2);
    color: var(--text-on-dark);
}

.section.dark p, .section.dark li {
    color: var(--text-muted-on-dark);
}

header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #f7f8ffea;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 78px;
    gap: 20px;
}

.brand {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.nav-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-strong);
}

.right-zone {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn, .lang-trigger {
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 0 18px;
    height: var(--btn-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.btn {
    background: var(--cta);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

.btn:hover {
    background: var(--cta-hover);
    text-decoration: none;
}

.btn:focus-visible, .lang-trigger:focus-visible, .menu-btn:focus-visible, .icon-btn:focus-visible, input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.lang {
    position: relative;
}

.lang-trigger {
    background: var(--surface-1);
    border-color: var(--border-subtle);
    color: var(--text-strong);
    min-width: 126px;
  cursor: pointer;
}

.lang-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 56px;
    width: 240px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    padding: 8px;
}

.lang.open .lang-menu {
    display: block;
}

.lang-menu a {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--text-strong);
    padding: 8px 10px;
    border-radius: 10px;
}

.lang-menu a:hover {
    background: #eef1ff;
    text-decoration: none;
}

.flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    border: 1px solid var(--border-subtle);
}

.hero {
    background: linear-gradient(145deg, #f9faff 0%, #eef1ff 60%, #f7f9ff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: start;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    margin: 0 0 16px;
}

h2 {
    font-size: clamp(1.55rem, 2.5vw, 2.1rem);
    margin: 0 0 10px;
}

.intro {
    max-width: 60ch;
    margin-bottom: 18px;
}

.perf-panel {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow-soft);
    max-width: 620px;
}

.perf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 8px;
}

.metric-box {
    background: linear-gradient(165deg, #f2f4ff, #fff);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 14px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--chart-a);
}

.metric-label {
    color: var(--text-muted);
}

.micro-note {
    color: var(--text-muted);
    font-size: 16px;
}

/* CARD CONTRAST LOCK */
.card {
    background: var(--surface-card);
    color: var(--text-strong);
    border: 1px solid var(--border-subtle);
}

.card p, .card li, .card .muted {
    color: var(--text-muted);
}

.section.dark .card {
    background: var(--surface-card);
    color: var(--text-strong);
}

.section.dark .card p, .section.dark .card li, .section.dark .card .muted {
    color: var(--text-muted);
}

/* Absolute bans */
.card, .card * {
    opacity: 1 !important;
}

.card p, .card li {
    opacity: 1 !important;
}

.card {
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow-soft);
    min-width: 0;
    max-width: 100%;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.step {
    text-align: left;
}

.time {
    font-weight: 700;
    color: var(--chart-a);
}

.bars .bar-row {
    margin-bottom: 10px;
}

.track {
    height: 14px;
    border-radius: 999px;
    background: #ecefff;
    position: relative;
    overflow: hidden;
}

.fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--chart-a), var(--chart-c));
}

.benchmark {
    position: absolute;
    top: -2px;
    bottom: -2px;
    width: 2px;
    background: #1f2338;
    left: 58%;
}

.legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.ring-wrap {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: center;
}

.ring {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(var(--chart-a) 0 64%, #e8ebff 64% 100%);
    display: grid;
    place-items: center;
}

.ring::after {
    content: "64%";
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 700;
}

.matrix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.matrix .cell {
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 12px;
    background: #f8f9ff;
}

.review-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #dfe3ff;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.verified {
    font-size: 14px;
    color: #0f6e3b;
    font-weight: 700;
}

.form-card {
    background: var(--surface-card);
    color: var(--text-strong);
    border: 1px solid var(--border-subtle);
}

.form-card h3, .form-card .form-title {
    color: var(--text-strong);
}

.form-card p, .form-card .form-sub {
    color: var(--text-muted);
}

.form-card label {
    color: var(--text-muted);
}

.form-card input {
    background: var(--input-bg);
    color: var(--text-strong);
    border: 1px solid var(--input-border);
}

.form-card input::placeholder {
    color: var(--text-muted);
}

.form-card input:focus {
    outline: none;
    box-shadow: 0 0 0 4px var(--focus-ring);
    border-color: transparent;
}

.form-card {
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.form-card .field {
    margin-bottom: 12px;
}

.form-card input {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 18px;
}

.form-card .btn {
    width: 100%;
    margin-top: 24px;
}

.faq-item {
    border-bottom: 1px solid var(--border-subtle);
}

.faq-q {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 16px 0;
    font-size: 20px;
    color: inherit;
    cursor: pointer;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.faq-item.open .faq-a {
    max-height: 140px;
}

footer {
    background: #1f2338;
    color: var(--text-on-dark);
    padding: 34px 0;
}

footer p, footer a {
    color: var(--text-muted-on-dark);
}

.menu-btn {
    display: none;
}

.menu-btn {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    width: var(--btn-height);
    height: var(--btn-height);
    border-radius: 12px;
}

.drawer {
    position: fixed;
    inset: 0;
    z-index: 40;
}

.drawer .backdrop {
    position: absolute;
    inset: 0;
    background: #0c0f2280;
}

.drawer .panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(92vw, 380px);
    background: var(--surface-1);
    padding: 18px;
    overflow: auto;
}

.icon-btn {
    border: 1px solid var(--border-subtle);
    background: #fff;
    border-radius: 10px;
    width: 60px;
    height: 40px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
}

.modal.open {
    display: block;
}

.modal .backdrop {
    position: absolute;
    inset: 0;
    background: #15182994;
}

.modal .dialog {
    position: relative;
    margin: 4vh auto;
    background: #fff;
    color: var(--text-strong);
    width: min(900px, 94%);
    max-height: 92vh;
    overflow: auto;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

@media (max-width: 1200px) {
    .nav-links, .right-zone {
        display: none;
    }

    .menu-btn {
        display: inline-grid;
        place-items: center;
    }

    .drawer.show {
        display: block;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ring-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 56px 0;
    }

    .container {
        padding-inline: 18px;
    }

    .grid-4, .grid-3, .grid-2, .matrix, .perf-grid {
        grid-template-columns: 1fr;
    }
}

.drawer {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.drawer.open {
    pointer-events: auto;
}

.backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.4);
    opacity: 0;
    transition: .3s;
}

.drawer.open .backdrop {
    opacity: 1;
}

.panel {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 320px;
    background: white;
    transform: translateX(100%);
    transition: .3s;
}

.drawer.open .panel {
    transform: translateX(0);
}
.lang-menu_mobile{
    display:none;
}

.lang-mobile.open .lang-menu_mobile{
    display:block;
}
.lang-mobile {
    position: relative;
    display: none;
}
.lang-trigger_mobile {
    background: var(--surface-1);
    color: var(--text-strong);
    min-width: 55px;
    cursor: pointer;
    border: 1px solid #dce0f4;
    border-radius: 14px;
    padding: 0 18px;
    height: var(--btn-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.lang-menu_mobile {
    display: none;
    position: absolute;
    right: 0;
    top: 56px;
    width: 140px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    padding: 8px;
}

.lang-mobile.open .lang-menu_mobile {
    display: block;
}

.lang-menu_mobile a {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--text-strong);
    padding: 8px 10px;
    border-radius: 10px;
}

.lang-menu_mobile a:hover {
    background: #eef1ff;
    text-decoration: none;
}

.btn, .lang-trigger {
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 0 18px;
    height: var(--btn-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.btn-mobile {
    display: none;
    background: var(--cta);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 0 18px;
    height: var(--btn-height);
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.btn-mobile:hover {
    background: var(--cta-hover);
    text-decoration: none;
}

.btn-mobile:focus-visible, .lang-trigger:focus-visible, .menu-btn:focus-visible, .icon-btn:focus-visible, input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.right-zone_mobile {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

@media (max-width: 1200px) {
    .lang-mobile {
        display: block;
    }
    .btn-mobile {
        display: inline-flex;
    }
}
.logo {
    max-width: 130px;
}
.logo_f {
    max-width: 130px;
}
@media (max-width: 426px) {
    .logo {
        max-width: 60px;
    }
    .btn-mobile {
        padding: 0 5px;
        font-size: 12px;
        line-height: 1;
        width: 70px;
        height: 40px;
    }
    .lang-trigger_mobile {
        height: 40px;
        font-size: 12px;
        padding: 0;
    }
    .menu-btn {
        height: 40px;
    }
    h1 {
        font-size: 24px;
    }
    p {
        font-size: 16px;
    }
body {
    font-size: 16px;
}
}