/*  PayHome — сайтът на марката (payhome.bg)
 *
 *  Визуалният език е наследен от obrazcov.bg (измерен на живо 19.08.2026), за да личи
 *  връзката между двете компании: коралът #ea4e60, хапчените бутони (radius 50px),
 *  Commissioner за тялото и Raleway (light) за секционните заглавия.
 *  Върху него стои кораловата палитра на продукта (виж docs/brand/payhome-brand.json).
 *
 *  🔴 Един файл за всички страници. Смяна на палитра = промяна САМО в :root.
 */

/* ─────────────────────────── Токени ─────────────────────────── */
:root {
    /* Марката */
    --coral: #ea4e60;
    --coral-600: #d93b52;
    --coral-700: #c73143;
    --peach: #f4a259;
    --sand: #fbc47a;
    --grad: linear-gradient(135deg, #ea4e60 0%, #e8536a 30%, #f0855c 60%, #f4a259 85%, #fbc47a 100%);
    --grad-btn: linear-gradient(90deg, #ea4e60 0%, #f0855c 100%);

    /* Мастило и повърхности */
    --ink: #161616;
    --ink-2: #3d4658;
    --muted: #6a7688;
    --bg: #ffffff;
    --bg-soft: #fbf7f6;
    --surface: #ffffff;
    --line: #ebe6e4;
    --tint: #fdeff0;
    --tint-line: #f8d3d8;

    /* Семантика (само за пари/състояние — както в приложението) */
    --ok: #43a878;
    --warn: #f4a259;
    --danger: #e5484d;

    /* Ритъм */
    --radius: 18px;
    --radius-lg: 26px;
    --pill: 50px;
    --shadow: 0 4px 18px rgba(23, 32, 51, .06);
    --shadow-lg: 0 18px 50px rgba(200, 60, 75, .16);
    --wrap: 1180px;
}

/* ─────────────────────────── Основи ─────────────────────────── */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Commissioner, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16.5px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* height:auto е задължителен: снимките носят width/height атрибути (против
   layout shift), а без auto телефонните екрани се разпъват на пълния си ръст. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 22px; }

/* Секционните заглавия са Raleway light — характерният подпис на obrazcov.bg */
h1, h2, h3 { letter-spacing: -.02em; margin: 0; }

h1 {
    font-family: Commissioner, sans-serif;
    font-size: clamp(34px, 5.4vw, 56px);
    font-weight: 800;
    line-height: 1.1;
}

h2 {
    font-family: Raleway, Commissioner, sans-serif;
    font-size: clamp(28px, 4.4vw, 43px);
    font-weight: 400;
    line-height: 1.18;
    margin-bottom: 14px;
}

h2 b, h1 b { font-weight: 700; color: var(--coral); }

h3 { font-size: 19px; font-weight: 700; margin-bottom: 7px; }

p { margin: 0 0 14px; }

.lead {
    font-size: clamp(16.5px, 2.2vw, 19px);
    color: var(--ink-2);
    max-width: 62ch;
    line-height: 1.7;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 14px;
}

.eyebrow::before {
    content: '';
    width: 26px;
    height: 2px;
    background: var(--grad-btn);
    border-radius: 2px;
}

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.center .eyebrow::before { display: none; }

section { padding: clamp(56px, 8vw, 104px) 0; }
section.soft { background: var(--bg-soft); }
section.tight { padding-top: clamp(30px, 4vw, 52px); }

/* ─────────────────────────── Бутони ─────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 15px 32px;
    border: 0;
    border-radius: var(--pill);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease, color .14s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--coral);
    color: #fff;
    box-shadow: 0 10px 26px rgba(234, 78, 96, .32);
}
.btn-primary:hover { background: var(--coral-600); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(234, 78, 96, .40); }

.btn-grad { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 26px rgba(234, 78, 96, .32); }
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(234, 78, 96, .42); }

.btn-ghost {
    background: transparent;
    color: var(--coral);
    box-shadow: inset 0 0 0 2px currentColor;
}
.btn-ghost:hover { background: var(--coral); color: #fff; box-shadow: 0 10px 26px rgba(234, 78, 96, .3); transform: translateY(-2px); }

.btn-white { background: #fff; color: var(--coral-700); box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(0, 0, 0, .24); }

.btn-outline-white { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.btn-outline-white:hover { background: rgba(255, 255, 255, .14); }

.btn-sm { padding: 11px 22px; font-size: 14.5px; }
.btn-lg { padding: 18px 40px; font-size: 17.5px; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    text-decoration: none;
    color: var(--coral);
    font-size: 15.5px;
}
.link-arrow::after { content: '→'; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ─────────────────────────── Навигация ─────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav-in {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 22px;
    height: 76px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 42px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.nav-links > .nav-item { position: relative; }

.nav-links a.nav-link,
.nav-links button.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 13px;
    border: 0;
    background: transparent;
    border-radius: 10px;
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color .14s, background .14s;
}
.nav-links a.nav-link:hover,
.nav-links button.nav-link:hover,
.nav-item:hover > .nav-link { color: var(--coral); background: var(--tint); }
.nav-link.is-active { color: var(--coral); }

.nav-link .caret { font-size: 10px; opacity: .55; transition: transform .15s; }
.nav-item:hover .caret { transform: rotate(180deg); }

/* Падащото меню */
.nav-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 274px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 22px 50px rgba(23, 32, 51, .14);
    padding: 9px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-item:hover .nav-menu,
.nav-item:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.nav-menu a {
    display: block;
    padding: 10px 13px;
    border-radius: 11px;
    color: var(--ink);
    text-decoration: none;
    font-size: 14.8px;
    font-weight: 600;
    line-height: 1.3;
}
.nav-menu a span { display: block; font-size: 12.8px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.nav-menu a:hover { background: var(--tint); color: var(--coral); }
.nav-menu a:hover span { color: var(--coral-700); }

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-cta .login { font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 9px 6px; }
.nav-cta .login:hover { color: var(--coral); }

.nav-burger {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-size: 19px;
    color: var(--ink);
    align-items: center;
    justify-content: center;
}

@media (max-width: 1040px) {
    .nav-links, .nav-cta { display: none; }
    .nav-burger { display: flex; }
    .nav.is-open .nav-links {
        display: flex;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 12px 18px 18px;
        box-shadow: 0 20px 40px rgba(23, 32, 51, .12);
        max-height: calc(100vh - 76px);
        overflow-y: auto;
    }
    .nav.is-open .nav-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: 0;
        border-left: 2px solid var(--tint-line);
        border-radius: 0;
        margin: 0 0 6px 14px;
        min-width: 0;
        padding: 0 0 0 8px;
    }
    .nav.is-open .nav-cta {
        display: flex;
        position: absolute;
        top: calc(100% - 1px);
        left: 0;
        right: 0;
        background: #fff;
        padding: 0 18px 20px;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 20px 40px rgba(23, 32, 51, .12);
    }
    .nav.is-open .nav-cta .btn { flex: 1; }
}

/* ─────────────────────────── Hero ─────────────────────────── */
.hero {
    position: relative;
    background: #f7eeec;
    overflow: hidden;
}

.hero-in {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: clamp(52px, 7vw, 92px) 22px clamp(56px, 8vw, 100px);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

@media (max-width: 940px) {
    .hero-in { grid-template-columns: 1fr; }
    .hero-art { order: -1; }
}

.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { color: var(--coral); }
.hero .lead { font-size: clamp(17px, 2.3vw, 20px); margin-bottom: 26px; }

.hero-slogan {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink-2);
}
.hero-slogan b { color: var(--coral); }

/* Меките петна във фона — същият похват като логин страницата */
.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.hero::before {
    width: 520px; height: 520px;
    top: -240px; left: -180px;
    background: radial-gradient(circle, rgba(244, 162, 89, .30), transparent 66%);
}
.hero::after {
    width: 620px; height: 620px;
    bottom: -330px; right: -200px;
    background: radial-gradient(circle, rgba(234, 78, 96, .22), transparent 68%);
}
.hero-in { position: relative; z-index: 1; }

.hero-art { position: relative; }
.hero-art img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 70px rgba(160, 50, 60, .26);
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
}

/* Плаващата картичка върху снимката */
.hero-badge {
    position: absolute;
    left: -18px;
    bottom: 30px;
    background: #fff;
    border-radius: 18px;
    padding: 14px 18px;
    box-shadow: 0 20px 44px rgba(23, 32, 51, .18);
    display: flex;
    align-items: center;
    gap: 13px;
    max-width: 260px;
}
.hero-badge .em { font-size: 26px; line-height: 1; }
.hero-badge b { display: block; font-size: 15px; }
.hero-badge span { font-size: 12.8px; color: var(--muted); line-height: 1.4; }

@media (max-width: 560px) { .hero-badge { left: 8px; bottom: 12px; padding: 11px 14px; } }

/* Доверителната лента под hero */
.trust {
    background: #eef0f3;
    border-top: 1px solid #e2e5ea;
    border-bottom: 1px solid #e2e5ea;
    padding: clamp(40px, 6vw, 64px) 0;
}
.trust h2 { font-size: clamp(23px, 3.2vw, 32px); }
.trust p { color: var(--ink-2); max-width: 64ch; margin: 0 0 12px; }
.trust b { color: var(--coral); font-weight: 700; }
.trust-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr; text-align: center; } }
.trust-brand {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    text-align: center;
    box-shadow: var(--shadow);
    display: block;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease;
}
.trust-brand:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(23, 32, 51, .13); }
.trust-brand img { height: 88px; width: auto; margin: 0 auto 12px; }
.trust-brand span { display: block; font-size: 13px; color: var(--muted); }
.trust-brand b { display: block; font-size: 14.5px; color: var(--coral); margin-top: 8px; }
.trust-facts { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 860px) { .trust-facts { justify-content: center; } }
.trust-facts div { font-size: 13.8px; color: var(--muted); }
.trust-facts b { display: block; font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: -.4px; }

/* ─────────────────────────── Мрежи и карти ─────────────────────────── */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: var(--shadow);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(23, 32, 51, .10); border-color: var(--tint-line); }
.card p { color: var(--ink-2); font-size: 15px; margin: 0; }
.card p + p { margin-top: 9px; }

/* Иконките: емоджи в тонирана плочка — както в мобилното приложение */
.ic {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-size: 24px;
    line-height: 1;
    margin-bottom: 15px;
    background: color-mix(in srgb, var(--c, var(--coral)) 13%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--coral)) 22%, transparent);
}

.card.accent { border-left: 3px solid var(--c, var(--coral)); }

/* Списък с отметки */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li {
    position: relative;
    padding: 0 0 11px 30px;
    font-size: 15.2px;
    color: var(--ink-2);
}
.checks li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: var(--tint);
    color: var(--coral);
    font-size: 12px;
    font-weight: 800;
    display: grid;
    place-items: center;
}
.checks b { color: var(--ink); }

/* Плитък списък с думи (функционалностите) */
.taglist { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.taglist span {
    font-size: 13.2px;
    padding: 5px 12px;
    border-radius: var(--pill);
    background: var(--bg-soft);
    border: 1px solid var(--line);
    color: var(--ink-2);
}

/* Веригата на процеса (know-how) */
.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.flow span {
    font-size: 13.4px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: var(--pill);
    background: #fff;
    border: 1px solid var(--tint-line);
    color: var(--coral-700);
}
.flow i { color: var(--peach); font-style: normal; font-weight: 800; }

/* Стъпки с номера */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li {
    counter-increment: s;
    position: relative;
    padding: 0 0 22px 58px;
    color: var(--ink-2);
    font-size: 15.4px;
}
.steps li::before {
    content: counter(s);
    position: absolute;
    left: 0;
    top: -2px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--grad-btn);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 18px rgba(234, 78, 96, .26);
}
.steps li b { display: block; color: var(--ink); font-size: 16.5px; margin-bottom: 3px; }

/* Числата */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 22px 12px; }
.stat b {
    display: block;
    font-size: clamp(32px, 4.6vw, 46px);
    font-weight: 800;
    letter-spacing: -.03em;
    background: var(--grad-btn);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}
.stat span { font-size: 14.2px; color: var(--muted); }

/* Сравнителната таблица */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15.3px; }
.compare th, .compare td { padding: 15px 18px; text-align: left; }
.compare thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.compare thead th:last-child { color: var(--coral); }
.compare tbody tr { background: #fff; }
.compare tbody tr:nth-child(even) { background: var(--bg-soft); }
.compare tbody td:first-child { color: var(--muted); border-radius: 12px 0 0 12px; }
.compare tbody td:last-child { font-weight: 650; color: var(--ink); border-radius: 0 12px 12px 0; }
.compare tbody td:last-child::before { content: '✓ '; color: var(--coral); font-weight: 800; }
.table-scroll { overflow-x: auto; }

/* ─────────────────────────── Мокъпи на реалните екрани ─────────────────────────── */
/* Показваме продукта, не рисунка на продукт: това са същите изгледи, които
   служителят и живущият виждат — сглобени с CSS, за да са резки на всеки екран. */

.shot {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(23, 32, 51, .14);
    overflow: hidden;
}
.shot-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 15px;
    background: #f4f5f7;
    border-bottom: 1px solid var(--line);
}
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9dee5; }
.shot-bar i:first-child { background: #ff5f57; }
.shot-bar i:nth-child(2) { background: #febc2e; }
.shot-bar i:nth-child(3) { background: #28c840; }
.shot-bar span {
    margin-left: 10px;
    font-size: 11.5px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    padding: 3px 12px;
}
.shot-body { padding: 18px 20px 22px; }

.shot h4 { margin: 0 0 3px; font-size: 16px; font-weight: 800; }
.shot .sub { font-size: 12.4px; color: var(--muted); margin-bottom: 14px; }

/* Присъдата на финансовия анализ */
.verdict {
    border-radius: 14px;
    padding: 15px 17px;
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 13px;
}
.verdict.warn { background: #fffbeb; border: 1px solid #f6d488; color: #92400e; }
.verdict.ok { background: #eefaf3; border: 1px solid #b4e4cb; color: #22664a; }
.verdict .vt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; opacity: .85; }
.verdict .vh { font-size: 16px; font-weight: 800; margin-top: 2px; }
.verdict .vnum { margin-left: auto; text-align: right; }
.verdict .vnum b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.4px; }
.verdict .vnum span { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
@media (max-width: 600px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; background: #fcfcfd; }
.tile span { display: block; font-size: 9.8px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.tile b { font-size: 17px; font-weight: 800; letter-spacing: -.4px; }
.tile.pos b { color: var(--ok); }
.tile.neg b { color: var(--danger); }

/* Редове (оферти, събрания, комуникация) */
.rows { margin-top: 13px; }
.row-i {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 8px;
    background: #fff;
    font-size: 13.4px;
}
.row-i .em { font-size: 19px; line-height: 1; }
.row-i b { font-weight: 700; }
.row-i .meta { color: var(--muted); font-size: 12.2px; }
.row-i .pill {
    margin-left: auto;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: var(--pill);
    white-space: nowrap;
}
.pill-ok { background: #eefaf3; color: #22664a; }
.pill-warn { background: #fff7e8; color: #97600f; }
.pill-info { background: var(--tint); color: var(--coral-700); }
.pill-mute { background: #f2f3f5; color: var(--muted); }

.bar { height: 7px; border-radius: 4px; background: #eef0f3; overflow: hidden; margin-top: 7px; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--grad-btn); }

/* Телефон с ИСТИНСКА снимка от приложението (19.08: реалните екрани
   замениха CSS мокъпите — собственикът: „има какво да покажем"). */
.phone-shot {
    width: 272px;
    border-radius: 38px;
    background: #172033;
    padding: 10px;
    box-shadow: 0 30px 66px rgba(23, 32, 51, .30);
    margin: 0 auto;
}
.phone-shot img { width: 100%; border-radius: 29px; display: block; }

/* Галерията с екраните */
.app-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; align-items: start; }
@media (max-width: 980px) { .app-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .app-gallery { grid-template-columns: 1fr; } }
.app-item { text-align: center; }
.app-item .phone-shot { width: 100%; max-width: 250px; border-radius: 30px; padding: 8px; }
.app-item .phone-shot img { border-radius: 23px; }
.app-item b { display: block; margin-top: 14px; font-size: 15.5px; }
.app-item span { font-size: 13.2px; color: var(--muted); }

/* Телефонът */
.phone {
    width: 268px;
    border-radius: 34px;
    background: #172033;
    padding: 9px;
    box-shadow: 0 30px 66px rgba(23, 32, 51, .30);
    margin: 0 auto;
}
.phone-in { background: #fff; border-radius: 27px; overflow: hidden; }
.phone-hd {
    background: var(--grad);
    color: #fff;
    padding: 20px 17px 22px;
}
.phone-hd .t { font-size: 11.5px; opacity: .9; }
.phone-hd .n { font-size: 21px; font-weight: 800; letter-spacing: -.4px; margin-top: 2px; }
.phone-bd { padding: 13px 13px 18px; }
.phone-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone-tile {
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 11px 10px;
    text-align: center;
    font-size: 11.4px;
    font-weight: 700;
    color: var(--ink-2);
}
.phone-tile .em { display: block; font-size: 21px; margin-bottom: 4px; }
.phone-due {
    border-radius: 13px;
    padding: 12px 13px;
    color: #fff;
    background: linear-gradient(135deg, #6fca9a, #43a173);
    margin-bottom: 10px;
}
.phone-due span { font-size: 10.5px; opacity: .9; text-transform: uppercase; letter-spacing: .05em; }
.phone-due b { display: block; font-size: 19px; font-weight: 800; }

/* Двуколонният блок „текст + образ“ */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(26px, 4vw, 58px);
    align-items: center;
}
@media (max-width: 940px) { .split { grid-template-columns: 1fr; } .split.flip .split-media { order: -1; } }
.split-media img { border-radius: var(--radius-lg); box-shadow: 0 24px 56px rgba(23, 32, 51, .18); }

/* ─────────────────────────── AI блок ─────────────────────────── */
.chat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.bubble {
    max-width: 88%;
    padding: 11px 15px;
    border-radius: 16px;
    font-size: 14.6px;
    margin-bottom: 10px;
    line-height: 1.55;
}
.bubble.me { background: var(--grad-btn); color: #fff; margin-left: auto; border-bottom-right-radius: 5px; }
.bubble.ai { background: var(--bg-soft); border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--ink-2); }
.bubble.ai b { color: var(--ink); }

.asks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.asks span {
    font-size: 13.4px;
    padding: 8px 15px;
    border-radius: var(--pill);
    background: #fff;
    border: 1px solid var(--tint-line);
    color: var(--coral-700);
    font-weight: 600;
}

/* Тъмна секция */
/* Бледо сивата секция (19.08: беше тъмносиня — белите надписи се губеха). */
.dark {
    background: linear-gradient(160deg, #eef0f3 0%, #f5f0ee 100%);
    border-top: 1px solid #e2e5ea;
    border-bottom: 1px solid #e2e5ea;
    position: relative;
    overflow: hidden;
}
.dark::after {
    content: '';
    position: absolute;
    width: 620px; height: 620px;
    right: -240px; top: -260px;
    background: radial-gradient(circle, rgba(234, 78, 96, .10), transparent 66%);
    border-radius: 50%;
    pointer-events: none;
}
.dark .wrap, .dark .wrap-narrow { position: relative; z-index: 1; }
.dark .lead, .dark p { color: var(--ink-2); }
.dark .card { background: #fff; }
.dark h2 b { color: var(--coral) !important; }
.dark .link-arrow { color: var(--coral) !important; }

/* Кораловата лента за призив */
.cta-band {
    background: var(--grad);
    color: #fff;
    text-align: center;
    padding: clamp(50px, 7vw, 84px) 0;
}
.cta-band h2 { color: #fff; font-weight: 700; }
.cta-band p { color: rgba(255, 255, 255, .92); font-size: 17.5px; max-width: 56ch; margin: 0 auto 26px; }

/* ─────────────────────────── Цени ─────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1040px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px 28px;
    box-shadow: var(--shadow);
    position: relative;
}
.plan.featured { border: 2px solid var(--coral); box-shadow: var(--shadow-lg); }
.plan .tag {
    position: absolute;
    top: -12px;
    left: 24px;
    background: var(--coral);
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: var(--pill);
    letter-spacing: .03em;
}
.plan h3 { font-size: 20px; }
.plan .who { font-size: 13.6px; color: var(--muted); margin-bottom: 16px; }
.plan .price { font-size: 15px; font-weight: 700; color: var(--coral); margin-bottom: 16px; }
.plan .btn { width: 100%; margin-top: 18px; }

/* ─────────────────────────── Подложка ─────────────────────────── */
.foot {
    background: #eef0f3;
    border-top: 1px solid #e2e5ea;
    color: var(--ink-2);
    padding: clamp(44px, 6vw, 66px) 0 30px;
    font-size: 14.4px;
}
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot h4 { color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .09em; margin: 0 0 14px; }
.foot a { color: var(--ink-2); text-decoration: none; display: block; padding: 4px 0; }
.foot a:hover { color: var(--coral); }
.foot-brand img { height: 40px; margin-bottom: 14px; }
.foot-brand p { max-width: 34ch; font-size: 14px; line-height: 1.6; }
.foot-slogan { color: var(--coral); font-weight: 700; }
.foot-btm {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid #dde0e6;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 13.2px;
    color: var(--muted);
}
.foot-btm a { display: inline; color: var(--muted); }

/* Дискретна бележка (стоковите снимки, бъдещи функции) */
.tiny { font-size: 12.6px; color: var(--muted); }

/* Плавно появяване при скрол */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .rise { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ─────────────────────────── Модал „Заяви демо" ─────────────────────────── */
dialog.demo-modal {
    border: 0;
    border-radius: var(--radius-lg);
    padding: 0;
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    box-shadow: 0 40px 100px rgba(23, 32, 51, .35);
}
dialog.demo-modal::backdrop { background: rgba(23, 32, 51, .55); backdrop-filter: blur(3px); }
.dm-head {
    background: var(--grad);
    color: #fff;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.dm-head b { font-size: 19px; }
.dm-head span { display: block; font-size: 13px; opacity: .9; font-weight: 400; }
.dm-close {
    border: 0; background: rgba(255, 255, 255, .2); color: #fff;
    width: 34px; height: 34px; border-radius: 50%; font-size: 17px; cursor: pointer; flex-shrink: 0;
}
.dm-body { padding: 22px 26px 26px; overflow-y: auto; }
.dm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
@media (max-width: 520px) { .dm-grid { grid-template-columns: 1fr; } }
.dm-field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 5px; }
.dm-field input, .dm-field select, .dm-field textarea {
    width: 100%;
    padding: 11px 13px;
    font: inherit;
    font-size: 14.5px;
    color: var(--ink);
    background: #f9fafb;
    border: 1.5px solid var(--line);
    border-radius: 11px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.dm-field input:focus, .dm-field select:focus, .dm-field textarea:focus {
    background: #fff; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(234, 78, 96, .13);
}
.dm-field.full { grid-column: 1 / -1; }
.dm-error { display: none; grid-column: 1 / -1; background: #fff1f2; border: 1px solid #fecdd3;
    color: #be123c; font-size: 13.4px; border-radius: 10px; padding: 10px 13px; }
.dm-error.show { display: block; }
.dm-send { grid-column: 1 / -1; margin-top: 4px; }
.dm-ok { display: none; text-align: center; padding: 34px 10px 24px; }
.dm-ok .big { font-size: 44px; margin-bottom: 10px; }
.dm-ok h3 { font-size: 20px; }
.dm-ok p { color: var(--ink-2); font-size: 14.5px; max-width: 38ch; margin: 6px auto 0; }
.demo-modal.sent form { display: none; }
.demo-modal.sent .dm-ok { display: block; }
/* honeypot: извън екрана, не display:none (някои ботове го уважават) */
.dm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── Бутоните на магазините (страницата на приложението, app.html) ── */
.stores { display: flex; gap: 13px; flex-wrap: wrap; align-items: stretch; margin-top: 26px; }
.store {
    display: flex; align-items: center; gap: 12px; text-decoration: none;
    background: #172033; color: #fff; border-radius: 15px; padding: 12px 22px 12px 18px;
    min-width: 212px; transition: transform .15s ease, box-shadow .15s ease;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(23, 32, 51, .28); }
.store.is-mine { box-shadow: 0 0 0 3px rgba(234, 78, 96, .35), 0 12px 28px rgba(234, 78, 96, .22); }
.store-t { line-height: 1.25; }
.store-t small { display: block; font-size: 11px; opacity: .72; font-weight: 500; letter-spacing: .02em; }
.store-t b { display: block; font-size: 18px; font-weight: 700; }
.hero-phone { display: flex; justify-content: center; }
.hero-phone .phone-shot { width: 262px; }
/* На телефон: първо текстът и бутоните за магазините (кампаниите водят дотук), телефонът — под тях. */
@media (max-width: 940px) { .hero-phone { order: 2; margin-top: 30px; } .hero-phone .phone-shot { width: 214px; } }

/* ── Видеото в героя на „За нас" ── */
.hero-video { position: relative; }
.hero-video .ov-video {
    width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #172033;
    border-radius: var(--radius-lg); box-shadow: 0 30px 70px rgba(160, 50, 60, .26);
}
.ov-play {
    position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 12px; border: 0; cursor: pointer;
    background: rgba(23, 32, 51, .78); color: #fff; padding: 10px 18px 10px 12px; border-radius: var(--pill);
    font: 600 15px/1.2 'Commissioner', system-ui, sans-serif; backdrop-filter: blur(6px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .28); white-space: nowrap;
}
.ov-play small { display: block; font-weight: 500; font-size: 11.5px; opacity: .8; }
.ov-play-ic {
    width: 34px; height: 34px; border-radius: 50%; background: var(--coral); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 13px; padding-left: 3px;
}
.ov-play:hover { background: rgba(23, 32, 51, .92); }

/* ── Герой с видео („За нас"): текстът центриран отгоре, видеото широко отдолу.
   Двуколонният герой оставяше 16:9 видео дребно до висока колона текст. ── */
.hero--stack .hero-in { grid-template-columns: 1fr; gap: 38px; text-align: center; }
.hero--stack .hero-copy { max-width: 820px; margin: 0 auto; }
.hero--stack .hero-copy img { margin-left: auto; margin-right: auto; }
.hero--stack .hero-copy .lead { margin-left: auto; margin-right: auto; }
.hero--stack .btn-row { justify-content: center; }
.hero--stack .hero-video { width: 100%; max-width: 980px; margin: 0 auto; order: 2; }
@media (max-width: 940px) { .hero--stack .hero-art { order: 2; } }
