/* Anke LLC (ankelabs.com) — корпоративный сайт.
   Оформление снято с ankevp.net: та же палитра, та же шкала (базовые 15px,
   всё в rem), те же радиусы, отступы и размеры заголовков. Отличается только
   содержимое страниц. */

@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-v20-cyrillic_latin-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-v20-cyrillic_latin-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-v20-cyrillic_latin-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-v20-cyrillic_latin-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
    --bg-color: #1B1C21;
    --card-bg: #232429;
    --border-color: #2A2B32;
    --accent: #FAED5D;
    --text-main: #B9C2CB;
    --text-muted: #A6ACB3;
    --text-black: #000000;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; min-width: 0; }
html { font-size: 15px; height: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; overflow-wrap: break-word; }
main { flex: 1; }
.text-yellow { color: var(--accent); }

/* ── Значки: маска по цвету, как на основном сайте ───────────────────── */

.svg-icon {
    flex-shrink: 0;
    background-repeat: no-repeat; background-position: center; background-size: contain;
    mask-repeat: no-repeat; mask-position: center; mask-size: contain;
    -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain;
}
.icon-text   { background-color: var(--text-main); }
.icon-yellow { background-color: var(--accent); }
.icon-check   { width: 22px; height: 22px; mask-image: url('/assets/icons/Check-mark.svg'); -webkit-mask-image: url('/assets/icons/Check-mark.svg'); }
.icon-globe   { width: 28px; height: 28px; mask-image: url('/assets/icons/Globe.svg'); -webkit-mask-image: url('/assets/icons/Globe.svg'); }
.icon-lock    { width: 35px; height: 28px; mask-image: url('/assets/icons/Lock.svg'); -webkit-mask-image: url('/assets/icons/Lock.svg'); }
.icon-bolt    { width: 56px; height: 50px; mask-image: url('/assets/icons/lightning.svg'); -webkit-mask-image: url('/assets/icons/lightning.svg'); }
.icon-arrow   { width: 12px; height: 12px; mask-image: url('/assets/icons/arrow-right-up.svg'); -webkit-mask-image: url('/assets/icons/arrow-right-up.svg'); }
.icon-doc     { width: 24px; height: 24px; mask-image: url('/assets/icons/Vector.svg'); -webkit-mask-image: url('/assets/icons/Vector.svg'); }
.icon-pointer { width: 7px; height: 13px; mask-image: url('/assets/icons/pointer-right.svg'); -webkit-mask-image: url('/assets/icons/pointer-right.svg'); }
.icon-globe-lang { width: 24px; height: 24px; display: block; mask-image: url('/assets/icons/globe-lang.svg'); -webkit-mask-image: url('/assets/icons/globe-lang.svg'); }

/* ── Кнопки ──────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; border-radius: 8px; cursor: pointer; border: none;
    font-size: 0.9rem; text-align: center; font-family: inherit;
}
.btn:hover { opacity: 0.85; }
.btn-primary { background-color: var(--accent); color: var(--text-black); padding: 10px 24px; }
.btn-ghost   { border: 1px solid var(--border-color); color: var(--text-main); padding: 9px 23px; }
.btn-ghost:hover { border-color: #444; opacity: 1; }
.btn-large { padding: 14px 28px; font-size: 1rem; border-radius: 10px; }

/* ── Шапка ───────────────────────────────────────────────────────────── */

/* Ни меню языка, ни бургер не трогают JavaScript: в заголовках стоит
   `script-src 'none'`, и любой onclick браузер выбрасывает. Открывает их
   скрытый флажок, по которому щёлкает метка. */
.toggle-cb { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }

.header { padding: 30px 0; }
.header-inner { display: flex; justify-content: center; align-items: center; position: relative; min-height: 30px; }

.lang-wrapper { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); z-index: 20; }
.lang-btn { display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.lang-btn:hover { opacity: 0.7; }
.toggle-cb:focus-visible + .lang-btn { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.lang-menu {
    position: absolute; top: 100%; left: 0; margin-top: 5px;
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 8px; overflow: hidden; display: none; min-width: 120px;
}
#lang-toggle:checked ~ .lang-menu { display: block; }
.lang-option { padding: 10px 16px; font-size: 0.85rem; color: var(--text-muted); text-align: left; }
.lang-option.is-current { color: var(--text-main); }

.nav-links { display: flex; gap: 8px; color: var(--text-muted); font-size: 1.1rem; font-weight: 500; }
.nav-links a { padding: 10px 16px; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover { color: var(--accent); }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-contact { display: none; }

.header-actions { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 16px; }
.btn-login { padding: 13px 26px; font-size: 0.9rem; border-radius: 10px; }

.burger-btn { display: none; }

@media (max-width: 880px) {
    .header { padding: 20px 0; }
    .header-inner { min-height: 40px; }

    /* Бургер стоит слева от «Contact», как «Войти» и бургер на ankevp.net:
       кнопка у самого края, бургер рядом. */
    .burger-btn {
        display: flex; flex-direction: column; justify-content: space-between;
        width: 24px; height: 16px; position: absolute; right: 128px;
        top: 50%; transform: translateY(-50%); z-index: 30; cursor: pointer;
    }
    .burger-btn span { display: block; width: 100%; height: 2px; background-color: var(--text-main); border-radius: 2px; }
    .toggle-cb:focus-visible + .burger-btn { outline: 2px solid var(--accent); outline-offset: 6px; }
    #nav-toggle:checked ~ .burger-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    #nav-toggle:checked ~ .burger-btn span:nth-child(2) { opacity: 0; }
    #nav-toggle:checked ~ .burger-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .btn-login { padding: 9px 20px; font-size: 0.85rem; }
    /* Раскрытое меню занимает экран целиком, и кнопка под ним не нужна. */
    #nav-toggle:checked ~ .header-actions { display: none; }

    .nav-links {
        position: fixed; inset: 0; z-index: 25;
        flex-direction: column; justify-content: center; align-items: center; gap: 0;
        background-color: var(--bg-color); font-size: 1rem;
        opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease;
    }
    #nav-toggle:checked ~ .nav-links { opacity: 1; visibility: visible; }
    .nav-links a {
        display: block; width: 80%; max-width: 320px; text-align: center;
        padding: 18px 0; border-bottom: 1px solid var(--border-color); white-space: normal;
    }
    .nav-links a:last-child { border-bottom: none; }
    .nav-contact { display: block; }
}

/* ── Первый экран ────────────────────────────────────────────────────── */

.hero { padding: 40px 0 60px; }
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-content { max-width: 50%; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin-bottom: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); word-break: break-word; }
.hero p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 32px; font-weight: 400; max-width: 430px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions-404 { margin-top: 26px; }
.hero-image { flex: 1; display: flex; justify-content: center; align-items: center; }
.logo-img { width: 140px; max-width: 100%; height: auto; display: block; }

/* Внутренние страницы: тот же первый экран, но без картинки и покомпактнее. */
.hero.hero-inner { padding: 20px 0 34px; display: block; }
.hero.hero-inner .hero-content { max-width: 760px; }
.hero.hero-inner h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.hero.hero-inner p { margin-bottom: 0; max-width: 760px; }

@media (max-width: 880px) {
    .hero { padding: 20px 0 40px; }
    .hero-row { flex-direction: column-reverse; align-items: flex-start; gap: 26px; }
    .hero-content { max-width: 100%; }
    .hero-image { align-self: center; }
    .logo-img { width: 96px; }
}

/* ── Секции ──────────────────────────────────────────────────────────── */

.section { margin-top: 56px; width: 100%; }
.section.first { margin-top: 0; }
.section h2 { margin-bottom: 12px; font-size: 1.2rem; font-weight: 600; color: var(--text-main); }
.section-subtitle { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; max-width: 760px; }
.section-text p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 14px; max-width: 760px; }
.section-text p:last-child { margin-bottom: 0; }
.section-text strong { color: var(--text-main); font-weight: 600; }

/* ── Карточки-плитки ─────────────────────────────────────────────────── */

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .tiles, .tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tiles, .tiles-2, .tiles-4 { grid-template-columns: 1fr; gap: 16px; } }

.tile {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 22px;
    transition: border-color 0.2s;
}
.tile:hover { border-color: #444; }
.tile h3 { font-size: 0.95rem; font-weight: 600; color: var(--text-main); margin-bottom: 8px; }
.tile p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; overflow-wrap: anywhere; }
.tile .num { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; color: var(--text-muted); opacity: 0.7; margin-bottom: 10px; }

/* Числа: та же плитка, но с крупным акцентом. */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .value { font-size: 2.1rem; font-weight: 700; color: var(--accent); line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat .label { color: var(--text-muted); font-size: 0.86rem; line-height: 1.5; }

/* ── Крупная карточка, как у тарифов ─────────────────────────────────── */

.panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 880px) { .panel-grid { grid-template-columns: 1fr; } }
.panel {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
}
.panel h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-main); margin-bottom: 6px; }
.panel .panel-hint { color: var(--text-muted); font-size: 0.86rem; margin-bottom: 20px; }
.panel p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; margin-bottom: 14px; }
.panel p:last-child { margin-bottom: 0; }
.panel strong { color: var(--text-main); font-weight: 600; }
.panel-narrow { max-width: 760px; }
@media (max-width: 620px) { .panel { padding: 22px; } }

.features-list { list-style: none; }
.features-list li { margin-bottom: 16px; display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: var(--text-main); }
.features-list li:last-child { margin-bottom: 0; }
.features-list li .check-badge {
    width: 18px; height: 18px; flex-shrink: 0; align-self: center;
    display: inline-flex; align-items: center; justify-content: center;
}
.features-list li .check-badge svg { display: block; }
.features-list li span { display: block; line-height: 1.45; word-break: break-word; color: var(--text-muted); }
.features-list li span b { color: var(--text-main); font-weight: 600; }

/* ── Полоса-баннер ───────────────────────────────────────────────────── */

.banner {
    display: flex; align-items: center; gap: 16px;
    background-color: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 14px; padding: 20px 22px; transition: border-color 0.2s;
}
.banner:hover { border-color: rgba(250, 237, 93, 0.5); }
.banner-icon {
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    background: rgba(250, 237, 93, 0.12);
    display: flex; align-items: center; justify-content: center;
}
.banner-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.banner-text strong { color: var(--text-main); font-size: 1rem; font-weight: 600; }
.banner-text span { color: var(--text-muted); font-size: 0.86rem; line-height: 1.45; }
.banner-arrow { margin-left: auto; color: var(--accent); font-size: 1.2rem; flex-shrink: 0; }
@media (max-width: 620px) { .banner { padding: 16px; gap: 12px; } .banner-arrow { display: none; } }

/* ── Три пункта в строку, как внизу главной ──────────────────────────── */

.features-grid {
    display: flex; justify-content: space-between; flex-wrap: nowrap;
    gap: 24px; width: 100%; padding-bottom: 50px; padding-right: 15px;
    border-bottom: 1px solid var(--border-color); box-sizing: border-box;
}
.feature-item { display: grid; grid-template-columns: 50px 1fr; gap: 16px; align-items: center; flex: 0 1 auto; }
.feature-item .svg-icon { justify-self: center; }
.feature-text h4 { font-size: 1rem; margin-bottom: 8px; font-weight: 600; color: var(--text-main); }
.feature-text p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
@media (max-width: 880px) {
    .features-grid { flex-direction: column; gap: 30px; padding-right: 0; padding-bottom: 34px;
                     width: fit-content; margin: 0 auto; }
    .feature-item { grid-template-columns: 44px 1fr; width: 100%; }
}

/* ── Таблица реквизитов ──────────────────────────────────────────────── */

.facts { border-top: 1px solid var(--border-color); }
.facts-narrow { max-width: 760px; }
.facts div { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--border-color); }
.facts dt { color: var(--text-muted); font-size: 0.9rem; }
.facts dd { color: var(--text-main); font-size: 0.95rem; }
.facts dd a:hover { color: var(--accent); }
@media (max-width: 620px) { .facts div { grid-template-columns: 1fr; gap: 3px; } }

/* ── Юридические документы ───────────────────────────────────────────── */

.doc { max-width: 760px; }
.doc h2 { margin-top: 36px; margin-bottom: 10px; font-size: 1.05rem; font-weight: 600; color: var(--text-main); }
.doc h3 { margin-top: 22px; margin-bottom: 8px; font-size: 0.98rem; font-weight: 600; color: var(--text-main); }
.doc p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 14px; }
.doc p:last-child { margin-bottom: 0; }
.doc strong { color: var(--text-main); font-weight: 600; }
.doc a { color: var(--accent); }
.doc a:hover { opacity: 0.8; }
.doc ul, .doc ol { padding-left: 20px; margin: 0 0 14px; }
.doc li { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 6px; }
.doc .updated { color: var(--text-muted); font-size: 0.85rem; opacity: 0.8; margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.9rem; }
.doc th, .doc td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border-color); vertical-align: top; color: var(--text-muted); }
.doc th { color: var(--text-main); font-weight: 600; background: var(--card-bg); }
.table-wrap { overflow-x: auto; }

.toc { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 14px; padding: 18px 22px; margin-top: 22px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 30px; }
.toc li { margin-bottom: 4px; font-size: 0.9rem; color: var(--text-muted); }
.toc a:hover { color: var(--accent); }
@media (max-width: 620px) { .toc ol { columns: 1; } }

/* ── Контакты ────────────────────────────────────────────────────────── */

.contact-card {
    background-color: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 14px; padding: 22px; transition: border-color 0.2s;
}
.contact-card:hover { border-color: #444; }
.contact-card .k { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); opacity: 0.8; }
.contact-card .v { display: block; margin-top: 8px; font-size: 1.05rem; font-weight: 600; color: var(--text-main); overflow-wrap: anywhere; line-height: 1.4; }
.contact-card .v a:hover { color: var(--accent); }
.contact-card .note { display: block; margin-top: 7px; font-size: 0.85rem; color: var(--text-muted); }
.contact-card .v.v-address { font-size: 0.95rem; font-weight: 500; }

/* ── Подвал ──────────────────────────────────────────────────────────── */

.footer {
    display: flex; flex-direction: column; align-items: center;
    padding: 40px 0 22px; color: var(--text-muted); font-size: 0.85rem;
    margin-top: 64px; text-align: center; border-top: 1px solid var(--border-color);
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin-bottom: 14px; }
.footer-links a:hover { color: var(--text-main); }
.footer-contact { margin-bottom: 10px; line-height: 1.7; }
.footer-contact a:hover { color: var(--text-main); }
.footer-legal { opacity: 0.75; line-height: 1.6; }
address { font-style: normal; }
