:root {
    --bg: #f5f7fb;
    --text: #122033;
    --muted: #5d6b82;
    --primary: #1f66d1;
    --primary-dark: #12489a;
    --card: #ffffff;
    --line: #dbe3f0;
    --success: #dff5e6;
    --error: #fde7e7;
    --shadow: 0 18px 45px rgba(16, 36, 70, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: #fff;
}
a { color: var(--primary); text-decoration: none; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(219,227,240,.7);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 46px; height: 46px; border-radius: 14px;
    background: linear-gradient(135deg, #1f66d1, #53b4ff);
    color: white; display: grid; place-items: center; font-weight: 800; font-size: 24px;
}
.brand strong, .brand span { display: block; }
.brand span { color: var(--muted); font-size: 13px; }
.nav nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-wrap {
    position: relative !important;
    overflow: hidden !important;

    background-image:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.96) 0%,
            rgba(255, 255, 255, 0.90) 42%,
            rgba(255, 255, 255, 0.45) 72%,
            rgba(255, 255, 255, 0.18) 100%
        ),
        url("/static/images/hero-bg.png") !important;

    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center right !important;
}

.hero {
    position: relative;
    overflow: visible;
    padding: 90px 0 30px !important;
    background: transparent !important;
}

.hero-stats {
    position: relative;
    z-index: 2;
    padding: 0 0 60px;
}

.hero .container,
.hero-stats .container {
    position: relative;
    z-index: 2;
}
.hero .container {
    position: relative;
    z-index: 2;
}
.hero-grid, .lead-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
.eyebrow {
    display: inline-block; padding: 8px 14px; border-radius: 999px; background: #e9f2ff; color: var(--primary-dark);
    font-size: 13px; font-weight: 700; margin-bottom: 18px;
}
h1, h2, h3 { margin: 0 0 14px; }
h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: 24px; }
.lead, .section-heading p, .timeline-card p, .case-card p, .form-note, .footer p, .hero-card li, .info-card li, .app-item {
    color: var(--muted); line-height: 1.7;
}
.footer-policy-link {
    display: inline-block;
    margin-top: 10px;
    color: #333333;
    text-decoration: none;
    transition: 0.3s;
}

.footer-policy-link:hover {
    color: #f97316;
}
.hero-points { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 0; }
.hero-points span {
    padding: 16px 24px; border: 1px solid var(--line); border-radius: 999px; background: white; box-shadow: var(--shadow); font-weight: 600;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 20px; border-radius: 14px; background: var(--primary); color: #fff; font-weight: 700; border: none; cursor: pointer;
    box-shadow: 0 12px 30px rgba(31, 102, 209, 0.24);
}
.btn:hover { background: var(--primary-dark); }
.btn-secondary { background: #fff; color: var(--primary-dark); border: 1px solid var(--line); box-shadow: none; }
.btn-sm { padding: 11px 16px; border-radius: 12px; }
.btn-full { width: 100%; }
.hero-card, .info-card, .stat-card, .timeline-card, .case-card, .form-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
}
.hero-card { padding: 28px; }
.hero-card ul, .info-card ul { padding-left: 18px; margin: 0; display: grid; gap: 10px; }
.stats-section { padding: 10px 0 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card { padding: 28px; }
.stat-value { font-size: 34px; font-weight: 800; margin-bottom: 8px; color: var(--primary-dark); }
.section { padding: 80px 0; }
.section-alt { background: var(--bg); }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.cards-grid { display: grid; gap: 22px; }
.cards-grid.three { grid-template-columns: repeat(3, 1fr); }
.cards-grid.two { grid-template-columns: repeat(2, 1fr); }
.info-card, .case-card, .timeline-card, .form-card { padding: 28px; }
.app-strip { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: start; }
.app-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.app-item { padding: 18px 20px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.timeline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.timeline-step { font-size: 13px; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.timeline-time { font-weight: 700; margin-bottom: 8px; }
.lead-section { background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%); }
.contact-list { display: grid; gap: 12px; margin-top: 22px; }
.lead-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
label { display: grid; gap: 8px; font-weight: 600; }
input, textarea {
    width: 100%; padding: 14px 15px; border-radius: 14px; border: 1px solid var(--line); font: inherit;
}
input:focus, textarea:focus { outline: 2px solid rgba(31,102,209,.18); border-color: var(--primary); }
.flash { padding: 14px 16px; border-radius: 14px; margin-bottom: 16px; font-weight: 600; }
.flash.success { background: var(--success); }
.flash.error { background: var(--error); }
.footer { padding: 28px 0 42px; border-top: 1px solid var(--line); }
.footer-row { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.footer-row > div:last-child { display: flex; gap: 14px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.leads-table { width: 100%; border-collapse: collapse; min-width: 980px; }
.leads-table th, .leads-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.leads-table th { background: var(--bg); }
@media (max-width: 960px) {
    .hero-grid, .lead-grid, .app-strip, .timeline-grid, .stats-grid, .cards-grid.three, .cards-grid.two { grid-template-columns: 1fr; }
    .app-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .nav { flex-direction: column; padding: 14px 0; }
    .form-row { grid-template-columns: 1fr; }
    .hero { padding-top: 42px; }
    .section { padding: 56px 0; }
    .footer-row { flex-direction: column; }
}
.module-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}.module-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.module-icon {
    width: 40px;
    height: 40px;
}.app-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.app-icon {
    width: 55px;
    height: 55px;
    padding: 10px;
    background: #f1f5f9;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05)
}
.app-item:hover .app-icon {
    border: 1px solid #f97316;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.app-item h3 {
    margin: 0;
    font-size: 20px;
}

.app-item p {
    margin: 0;
    line-height: 1.5;
}
.highlight {
    color: #f97316;
    font-weight: inherit;
    font-size: inherit;
}
.benefit-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.timeline-step {
    color: #f97316;
    font-weight: 700;
    font-size: 17px;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    background: #f97316;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(249, 115, 22, 0.3);
}
.case-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.case-card:hover {
    border-color: #f97316;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.2);
}
.section-heading h2 {
    white-space: normal;
}
.app-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.app-item {
    width: auto;
}

.app-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.app-text {
    flex: 1;
}

.app-image {
    flex-shrink: 0;
}

.app-image {
    width: 150px;
	margin-top: -60px;
}

.app-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.timeline-card {
    min-height: 190px;
    padding: 28px 34px;
    border-radius: 22px;
    border: none;
    box-shadow: 0 14px 30px rgba(16, 36, 70, 0.12);
    color: white;
    position: relative;
}

.timeline-blue {
    background: #0757b8;
}

.timeline-cyan {
    background: #18aee2;
}

.timeline-green {
    background: #1fc11b;
}

.timeline-orange {
    background: #ff9500;
}

.timeline-top {
    display: grid;
    grid-template-columns: 70px 1fr 52px;
    gap: 22px;
    align-items: center;
}

.timeline-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.timeline-card h3 {
    color: white;
    font-size: 30px;
    margin: 0;
    font-weight: 500;
}

.timeline-step {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: white;
    color: #f97316;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 500;
    margin: 0;
}

.timeline-bottom {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 45px;
    padding-left: 90px;
}

.timeline-clock {
    font-size: 28px;
    color: white;
}

.timeline-time {
    color: white;
    font-size: 24px;
    font-weight: 400;
    margin: 0;
}
.module-preview {
    width: 100%;
    max-width: 350px;
    margin: 18px auto 0;
    border-radius: 14px;
    display: block;
}
.module-image {
    height: 140px; /* фиксируем высоту блока */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

.module-preview {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.info-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.about-section {
    background: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: stretch;
}

.about-card,
.about-video {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 28px;
}

.about-item {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    color: var(--muted);
    line-height: 1.6;
}

.about-item strong {
    color: var(--text);
}

.about-video iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border-radius: 18px;
}
.about-qr {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.qr-item {
    text-align: center;
}

.qr-item img {
    width: 120px;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    padding: 8px;
    background: #fff;
}

.qr-item span {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #334155;
}
.qr-item img {
    transition: transform 0.3s;
}

.qr-item:hover img {
    transform: scale(1.05);
}
.about-qr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.qr-item {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 16px;
    border-radius: 18px;
    transition: all 0.3s ease;
}

.qr-item img {
    width: 150px;
    border-radius: 18px;
    border: 2px solid #e5e7eb;
    padding: 10px;
    background: #fff;
    transition: all 0.3s ease;
}

.qr-label {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 15px;
    color: #1e293b;
}

.qr-icon {
    color: #f97316;
}

/* 🔥 Hover эффект */
.qr-item:hover {
    background: rgba(249, 115, 22, 0.08);
}

.qr-item:hover img {
    border-color: #f97316;
    transform: scale(1.05);
}
.qr-item:hover .qr-label {
    color: #f97316;
}
.qr-item:hover span {
    color: #f97316;
}
@media (max-width: 900px) {
    .about-qr {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .about-qr {
        grid-template-columns: 1fr;
    }
}
/* =========================
   📱 МОБИЛЬНАЯ ВЕРСИЯ
========================= */

@media (max-width: 768px) {

    /* 🔹 Заголовки */
    h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    h2 {
        font-size: 24px;
        white-space: normal; /* убираем nowrap */
    }

    h3 {
        font-size: 18px;
    }

    /* 🔹 Навигация */
    .nav nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* 🔹 Hero */
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    /* 🔹 Статистика */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 🔹 Карточки */
    .cards-grid.three,
    .cards-grid.two {
        grid-template-columns: 1fr;
    }

    /* 🔹 Экосистема */
    .app-list {
        grid-template-columns: 1fr;
    }

    .app-content {
        flex-direction: column;
    }

    .app-image {
        width: 100%;
        margin-top: 10px;
    }

    .app-image img {
        max-width: 220px;
        margin: 0 auto;
    }

    /* 🔹 Timeline (этапы) */
    .timeline-grid {
        grid-template-columns: 1fr;
    }

    .timeline-top {
        grid-template-columns: 50px 1fr 40px;
        gap: 10px;
    }

    .timeline-icon {
        width: 40px;
        height: 40px;
    }

    .timeline-step {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .timeline-bottom {
        padding-left: 0;
        margin-top: 20px;
    }

    .timeline-time {
        font-size: 16px;
    }

    /* 🔹 Модули (картинки) */
    .module-preview {
        max-width: 100%;
    }

    /* 🔹 QR блок */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-qr {
        grid-template-columns: repeat(2, 1fr);
    }

    .qr-item img {
        width: 90px;
    }

    /* 🔹 Форма */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* 🔹 Footer */
    .footer-row {
        flex-direction: column;
        text-align: center;
    }
}


/* 📱 Очень маленькие экраны */
@media (max-width: 480px) {

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

    .about-qr {
        grid-template-columns: 1fr;
    }

    .qr-item img {
        width: 80px;
    }

    .btn {
        width: 100%;
    }

}
/* ===== ФИНАЛЬНАЯ МОБИЛЬНАЯ АДАПТАЦИЯ ===== */

@media (max-width: 768px) {
    .container {
        width: calc(100% - 24px);
    }

    h1 {
        font-size: 30px;
        line-height: 1.15;
    }

    h2 {
        font-size: 26px;
        line-height: 1.15;
        white-space: normal !important;
    }

    h3 {
        font-size: 20px;
    }

    .section {
        padding: 48px 0;
    }

    .nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav nav {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .nav nav a {
        text-align: center;
        font-size: 14px;
    }

    .hero-grid,
    .lead-grid,
    .stats-grid,
    .cards-grid.three,
    .cards-grid.two,
    .timeline-grid,
    .about-grid,
    .app-list {
        grid-template-columns: 1fr !important;
    }

    .app-content {
        flex-direction: column !important;
    }

    .app-image {
        width: 180px !important;
        margin: 16px auto 0 !important;
    }

    .module-image {
        height: auto !important;
        margin-top: 18px !important;
    }

    .module-preview {
        max-width: 100% !important;
    }

    .timeline-card {
        padding: 22px;
        min-height: auto;
    }

    .timeline-top {
        grid-template-columns: 44px 1fr 38px !important;
        gap: 12px;
    }

    .timeline-icon {
        width: 40px;
        height: 40px;
    }

    .timeline-card h3 {
        font-size: 20px;
    }

    .timeline-step {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .timeline-bottom {
        padding-left: 0 !important;
        margin-top: 22px;
    }

    .timeline-time {
        font-size: 16px;
    }

    .about-qr {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }

    .qr-item img {
        width: 90px;
    }

    .form-row {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .about-qr {
        grid-template-columns: 1fr !important;
    }

    .btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }
}
/* ===== Стоимость продукта ===== */

#pricing .price-list {
    display: grid;
    gap: 18px;
    margin-top: 32px;
}

#pricing .price-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 28px;
}

#pricing .price-number {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(249, 115, 22, 0.12);
    color: #f97316;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#pricing .price-info h3 {
    margin: 0 0 6px;
    font-size: 24px;
    color: var(--text);
}

#pricing .price-info p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

#pricing .price-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

#pricing .price-item:hover {
    border-color: #f97316;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.15);
}

#pricing .price-item h4 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--text);
}

#pricing .price-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

#pricing .price-item strong {
    font-size: 22px;
    color: #f97316;
    white-space: nowrap;
}

#pricing .price-free {
    color: #25a45a !important;
}

@media (max-width: 768px) {
    #pricing .price-item {
        grid-template-columns: 1fr;
    }

    #pricing .price-item strong {
        font-size: 24px;
    }
}
/* ==================================================
   ФИНАЛЬНАЯ МОБИЛЬНАЯ АДАПТАЦИЯ
   Вставить в самый конец style.css
================================================== */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* Планшеты */
@media (max-width: 960px) {
    .container {
        width: calc(100% - 32px);
    }

    .hero-grid,
    .lead-grid,
    .stats-grid,
    .cards-grid.three,
    .cards-grid.two,
    .timeline-grid,
    .about-grid,
    .app-list {
        grid-template-columns: 1fr !important;
    }

    .section-heading {
        max-width: 100%;
    }

    .app-content {
        flex-direction: column !important;
    }

    .app-image {
        width: 220px !important;
        margin: 18px auto 0 !important;
    }

    .about-qr {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Телефоны */
@media (max-width: 768px) {
    .container {
        width: calc(100% - 24px);
    }

    .header {
        position: relative;
    }

    .nav {
        min-height: auto;
        padding: 14px 0;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .brand {
        align-items: center;
    }

    .brand img {
        height: 34px !important;
        flex-shrink: 0;
    }

    .brand strong {
        font-size: 15px;
        line-height: 1.2;
    }

    .brand span {
        font-size: 12px;
    }

    .nav nav {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .nav nav a {
        width: 100%;
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 10px 8px;
        border-radius: 12px;
        background: #f5f7fb;
        font-size: 14px;
        font-weight: 600;
    }

    .nav nav a.btn {
        background: #1f66d1;
        color: #ffffff;
        box-shadow: none;
    }

    .hero {
        padding: 42px 0 32px;
    }

    .hero-grid {
        text-align: left;
        gap: 24px;
    }

    h1 {
        font-size: 31px;
        line-height: 1.12;
        letter-spacing: -0.02em;
    }

    h2 {
        font-size: 27px;
        line-height: 1.18;
        letter-spacing: -0.02em;
        white-space: normal !important;
    }

    h3 {
        font-size: 20px;
        line-height: 1.25;
    }

    .lead {
        font-size: 16px;
        line-height: 1.55;
    }

    .hero-points {
        justify-content: center;
        gap: 8px;
        margin: 20px 0 24px;
    }

    .hero-points span {
        padding: 9px 12px;
        font-size: 14px;
        box-shadow: none;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        min-height: 48px;
        padding: 13px 16px;
    }

    .hero-card,
    .info-card,
    .stat-card,
    .timeline-card,
    .case-card,
    .form-card,
    .about-card {
        padding: 22px;
        border-radius: 20px;
    }

    .section {
        padding: 52px 0;
    }

    .section-heading {
        margin-bottom: 24px;
    }

    .section-heading p {
        font-size: 16px;
        line-height: 1.55;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .stat-card {
        text-align: center;
        padding: 20px 14px;
    }

    .stat-value {
        font-size: 28px;
    }

    .module-header,
    .app-item-header {
        align-items: flex-start;
    }

    .module-icon {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    .app-icon {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    .module-image {
        height: auto !important;
        margin-top: 18px !important;
    }

    .module-preview {
        max-width: 100% !important;
        max-height: none !important;
    }

    .app-item {
        padding: 18px;
        border-radius: 18px;
    }

    .app-image {
        width: 190px !important;
        margin: 16px auto 0 !important;
    }

    .timeline-card {
        min-height: auto;
    }

    .timeline-top {
        grid-template-columns: 42px 1fr 36px !important;
        gap: 12px;
    }

    .timeline-icon {
        width: 40px;
        height: 40px;
    }

    .timeline-card h3 {
        font-size: 20px;
        line-height: 1.2;
    }

    .timeline-step {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .timeline-bottom {
        padding-left: 0 !important;
        margin-top: 22px;
        gap: 10px;
    }

    .timeline-clock {
        font-size: 22px;
    }

    .timeline-time {
        font-size: 16px;
        line-height: 1.35;
    }

    #pricing .price-list {
        gap: 14px;
    }

    #pricing .price-row {
        gap: 12px;
        margin-top: 24px;
    }

    #pricing .price-number {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 14px;
    }

    #pricing .price-info h3 {
        font-size: 21px;
    }

    #pricing .price-item {
        grid-template-columns: 1fr !important;
        gap: 12px;
        padding: 18px;
        border-radius: 18px;
    }

    #pricing .price-item h4 {
        font-size: 17px;
        line-height: 1.25;
    }

    #pricing .price-item strong {
        font-size: 23px;
        text-align: left;
    }

    .about-grid {
        gap: 22px;
    }

    .about-qr {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px;
    }

    .qr-item {
        padding: 12px;
        border: 1px solid #e5e7eb;
        background: #ffffff;
    }

    .qr-item img {
        width: 92px;
        padding: 7px;
    }

    .qr-item span {
        font-size: 13px;
        word-break: break-word;
    }

    .lead-grid {
        gap: 24px;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    input,
    textarea {
        font-size: 16px;
        padding: 14px;
    }

    .footer {
        padding: 26px 0 34px;
    }

    .footer-row {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-row > div:last-child {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }
}

/* Очень маленькие телефоны */
@media (max-width: 420px) {
    .container {
        width: calc(100% - 20px);
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

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

    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .about-qr {
        grid-template-columns: 1fr !important;
    }

    .qr-item img {
        width: 86px;
    }

    .timeline-top {
        grid-template-columns: 38px 1fr !important;
    }

    .timeline-step {
        grid-column: 1 / -1;
        margin-top: 6px;
    }

    .kint-cookie-popup {
        width: calc(100% - 20px) !important;
        bottom: 10px !important;
    }
}
/* Чтобы якорные ссылки не прятали заголовки под шапкой */
section {
    scroll-margin-top: 110px;
}
/* ===== Форма заявки: имя + телефон в одну строку, комментарий ниже ===== */

.form-card {
    width: 100%;
}

.lead-form {
    display: grid;
    gap: 16px;
}

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

.lead-form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.form-field-full {
    width: 100%;
}

.lead-form input,
.lead-form textarea {
    width: 100%;
    padding: 14px 15px;
    border-radius: 14px;
    border: 1px solid var(--line);
    font: inherit;
}

.lead-form textarea {
    min-height: 120px;
    resize: vertical;
}

.lead-form .btn-full {
    width: 100%;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .lead-form .form-row {
        grid-template-columns: 1fr;
    }
}
/* ===== Согласие на обработку персональных данных в форме ===== */

.privacy-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
}

.privacy-consent input {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #f97316;
}

.privacy-consent span {
    display: inline;
}

.privacy-consent a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.privacy-consent a:hover {
    color: #f97316;
}
/* ===== Кликабельная почта + кнопка копирования ===== */
/* ===== Email с подсказкой "Скопировать" ===== */

.email-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.copy-email-link {
    position: relative;
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.copy-email-link::after {
    content: "Скопировать";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);

    padding: 6px 10px;
    border-radius: 8px;
    background: #152033;
    color: #ffffff;

    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: 0.2s ease;
}

.copy-email-link::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 3px);
    transform: translateX(-50%) translateY(4px);

    border: 5px solid transparent;
    border-top-color: #152033;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: 0.2s ease;
}

.copy-email-link:hover::after,
.copy-email-link:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.copy-email-link.is-copied::after {
    content: "Скопировано";
    background: #25a45a;
}

.copy-email-link.is-copied::before {
    border-top-color: #25a45a;
}
/* ===== Согласие в одну строку ===== */

.lead-form .privacy-consent {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 10px !important;

    font-size: 13px;
    line-height: 1.45;
    font-weight: 400;
    color: var(--muted);
}

.lead-form .privacy-consent input {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    cursor: pointer;
    accent-color: #f97316;
}

.lead-form .privacy-consent span {
    display: inline !important;
}

.lead-form .privacy-consent a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.hero-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
}
@media (max-width: 768px) {
    .hero {
        padding: 56px 0 48px;

        background-image:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.96) 0%,
                rgba(255, 255, 255, 0.92) 48%,
                rgba(255, 255, 255, 0.82) 100%
            ),
            url("images/hero-bg.png");

        background-position: center bottom;
        background-size: cover;
    }

    .hero-grid {
        text-align: left;
    }

    .hero-card {
        background: rgba(255, 255, 255, 0.9);
    }
}
/* ===== Фон первого экрана ===== */

.hero {
    position: relative !important;
    overflow: hidden !important;
    padding: 90px 0 70px !important;

    background-image:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.96) 0%,
            rgba(255, 255, 255, 0.90) 42%,
            rgba(255, 255, 255, 0.45) 72%,
            rgba(255, 255, 255, 0.18) 100%
        ),
        url("/static/images/hero-bg.png") !important;

    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center right !important;
}

.hero .container {
    position: relative !important;
    z-index: 2 !important;
}

.hero-card {
    background: rgba(255, 255, 255, 0.84) !important;
    backdrop-filter: blur(10px) !important;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .hero {
        padding: 56px 0 48px !important;

        background-image:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.97) 0%,
                rgba(255, 255, 255, 0.93) 50%,
                rgba(255, 255, 255, 0.84) 100%
            ),
            url("/static/images/hero-bg.png") !important;

        background-position: center bottom !important;
        background-size: cover !important;
    }

    .hero-grid {
        text-align: left !important;
    }

    .hero-card {
        background: rgba(255, 255, 255, 0.92) !important;
    }
}
.stats-grid .stat-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
}
@media (max-width: 768px) {
    .hero-wrap {
        background-image:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.97) 0%,
                rgba(255, 255, 255, 0.93) 50%,
                rgba(255, 255, 255, 0.84) 100%
            ),
            url("/static/images/hero-bg.png") !important;

        background-position: center bottom !important;
        background-size: cover !important;
    }

    .hero {
        padding: 56px 0 24px !important;
    }

    .hero-stats {
        padding: 0 0 40px;
    }
}
/* ===== Общий фон первого экрана + статистики ===== */

.hero-wrap {
    width: min(1160px, calc(100% - 32px));
    margin: 24px auto 0;

    border: 1px solid var(--line);
    border-radius: 32px;
    overflow: hidden;

    background-image:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.97) 0%,
            rgba(255, 255, 255, 0.90) 38%,
            rgba(255, 255, 255, 0.55) 68%,
            rgba(255, 255, 255, 0.20) 100%
        ),
        url("/static/images/hero-bg.png");

    background-repeat: no-repeat;
    background-size: cover;
    background-position: center right;

    box-shadow: 0 22px 60px rgba(16, 36, 70, 0.08);
}

/* Убираем отдельный фон у hero, чтобы картинка не повторялась */
.hero {
    background: transparent !important;
    padding: 80px 0 36px !important;
}

/* Убираем фон у статистики */
.stats-section,
.hero-stats {
    background: transparent !important;
    padding: 0 0 60px !important;
}

/* Чтобы внутренние container не вылезали за красивую рамку */
.hero-wrap .container {
    width: min(100% - 64px, 1080px);
}

/* Карточки поверх картинки */
.hero-card,
.stat-card {
    background: rgba(255, 255, 255, 0.86) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(219, 227, 240, 0.9);
}

/* Чуть мягче статистика внутри фонового блока */
.stats-grid {
    position: relative;
    z-index: 2;
}

/* Отступ до следующего блока */
.hero-wrap + .section {
    margin-top: 48px;
}
@media (max-width: 768px) {
    .hero-wrap {
        width: calc(100% - 20px);
        margin-top: 12px;
        border-radius: 24px;

        background-image:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.98) 0%,
                rgba(255, 255, 255, 0.94) 50%,
                rgba(255, 255, 255, 0.86) 100%
            ),
            url("/static/images/hero-bg.png");

        background-position: center bottom;
        background-size: cover;
    }

    .hero {
        padding: 52px 0 28px !important;
    }

    .stats-section,
    .hero-stats {
        padding: 0 0 36px !important;
    }

    .hero-wrap .container {
        width: calc(100% - 24px);
    }
}
/* ===== Первый экран: фон ограничен по ширине сайта ===== */

.hero-wrap {
    width: min(1280px, calc(100% - 40px)) !important;
    margin: 0 auto !important;

    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;

    background-image:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.97) 0%,
            rgba(255, 255, 255, 0.90) 38%,
            rgba(255, 255, 255, 0.58) 68%,
            rgba(255, 255, 255, 0.25) 100%
        ),
        url("/static/images/hero-bg.png") !important;

    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center right !important;
}

.hero-wrap .container {
    width: min(1160px, calc(100% - 32px)) !important;
    margin: 0 auto !important;
}

.hero {
    background: transparent !important;
    padding: 80px 0 36px !important;
}

.stats-section,
.hero-stats {
    background: transparent !important;
    padding: 0 0 64px !important;
}
/* ===== Первый экран: изображение как отдельная иллюстрация ===== */

.hero-wrap {
    width: 100% !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.hero {
    background:
        radial-gradient(circle at top right, rgba(31, 102, 209, 0.10), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%) !important;
    padding: 86px 0 64px !important;
}

.hero-grid {
    grid-template-columns: 0.95fr 1.05fr !important;
    gap: 44px !important;
    align-items: center !important;
}

.hero-visual {
    position: relative;
    border-radius: 32px;
    overflow: hidden;

    background: #ffffff;

    border: 1px solid rgba(210, 220, 235, 0.95);
    box-shadow:
        0 14px 40px rgba(15, 35, 70, 0.08),
        0 2px 10px rgba(15, 35, 70, 0.04);
}
.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 32px;
    pointer-events: none;

    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}
.hero-visual img {
    width: 100%;
    height: 440px;
    display: block;
    object-fit: cover;
    object-position: center;

    filter: saturate(0.98) contrast(1.01);
}
.hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.18) 0%,
            rgba(255, 255, 255, 0.02) 45%,
            rgba(255, 255, 255, 0.08) 100%
        );
    pointer-events: none;
    z-index: 1;
}

.hero-visual img {
    width: 100%;
    height: 440px;
    display: block;
    object-fit: cover;
    object-position: center right;
}

/* Карточки статистики можно оставить ниже обычным блоком */
.stats-section {
    background: #f5f7fb !important;
    padding: 18px 0 64px !important;
}

.stat-card {
    background: #ffffff !important;
}
@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-visual {
        max-width: 720px;
        margin: 0 auto;
    }

    .hero-visual img {
        height: 360px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 52px 0 42px !important;
    }

    .hero-grid {
        text-align: left !important;
        gap: 28px !important;
    }

    .hero-visual {
        border-radius: 24px;
    }

    .hero-visual img {
        height: 280px;
        object-position: center right;
    }
}

@media (max-width: 480px) {
    .hero-visual img {
        height: 220px;
    }
}
/* ===== Мягкая обводка изображения на первом экране ===== */

.hero-visual {
    position: relative !important;
    overflow: hidden !important;

    border-radius: 32px !important;
    background: #ffffff !important;

    border: 1px solid rgba(205, 216, 232, 0.85) !important;

    box-shadow:
        0 18px 45px rgba(16, 36, 70, 0.10),
        0 4px 14px rgba(16, 36, 70, 0.05) !important;
}

.hero-visual::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    pointer-events: none !important;

    border-radius: inherit !important;

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.75),
        inset 0 0 40px rgba(255, 255, 255, 0.35) !important;
}

.hero-visual img {
    width: 100% !important;
    height: 440px !important;
    display: block !important;

    object-fit: cover !important;
    object-position: center !important;

    border-radius: inherit !important;
}
/* ===== Мягкий переход между первым экраном и блоком модулей ===== */

/* Убираем лишний белый разрыв между hero и следующей секцией */
.hero-wrap + .section,
.hero-wrap + .section-alt,
.stats-section + .section,
.stats-section + .section-alt {
    margin-top: 0 !important;
}

/* Делаем нижнюю часть первого экрана плавнее */
.hero-wrap {
    position: relative !important;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f4f8ff 58%,
            #f5f7fb 100%
        ) !important;
}

/* Плавная подложка под статистикой */
.stats-section {
    background:
        linear-gradient(
            180deg,
            rgba(245, 247, 251, 0) 0%,
            #f5f7fb 100%
        ) !important;
    padding-bottom: 72px !important;
}

/* Верх следующего блока тоже делаем плавным */
#modules.section-alt {
    background:
        linear-gradient(
            180deg,
            #f5f7fb 0%,
            #f5f7fb 35%,
            #ffffff 100%
        ) !important;
    padding-top: 72px !important;
}
.hero h1 {
    font-size: clamp(34px, 4vw, 54px) !important;
    line-height: 1.08 !important;
}