:root {
    --bg: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --accent: #2563eb;
    --accent-soft: #e0e7ff;
    --border: #e5e7eb;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    padding: 0 24px;
    margin: 0 auto;
}

/* ===== HEADER ===== */
header {
    position: relative;
    padding: 80px 0 110px;
    background:
            radial-gradient(1200px 500px at 15% -10%, rgba(37, 99, 235, 0.28), transparent 60%),
            radial-gradient(900px 400px at 85% 0%, rgba(99, 102, 241, 0.22), transparent 55%),
            linear-gradient(180deg, #f8faff 0%, #ffffff 70%);
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.45), transparent);
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.6), transparent 70%);
}

header .container {
    position: relative;
    z-index: 1;
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 20px;
}

h2 {
    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 36px;
}

/* ===== COMPONENTS ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    transition: all .2s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, .25);
}

.btn-secondary {
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 56px;
}

/* ===== LAYOUT ===== */
section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.section-soft {
    background:
            radial-gradient(800px 300px at 90% 20%, rgba(37, 99, 235, 0.08), transparent 60%),
            linear-gradient(180deg, #f8faff 0%, #ffffff 70%);
}

/* ===== GRID & CARDS ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.08);
    border-color: rgba(37, 99, 235, 0.25);
}

.card i {
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 14px;
    transition: transform .25s ease;
}

.card:hover i {
    transform: translateY(-2px);
}

.card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.card p {
    color: var(--muted);
    font-size: 15px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.step {
    padding-left: 16px;
    border-left: 3px solid var(--accent);
}

.step span {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
}

/* ===== SCREENSHOT SECTIONS ===== */
.screenshot-section {
    display: grid;
    grid-template-columns: 1fr 420px;
    align-items: center;
    gap: 64px;
}

.screenshot-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.screenshot-reverse {
    grid-template-columns: 420px 1fr;
}

/* ===== SLIDERS ===== */
.slider {
    position: relative;
    width: 380px;
}

.slider::before {
    content: '';
    display: block;
    padding-top: 160%;
}

.slider .screenshot {
    position: absolute;
    inset: 0;
    margin: auto;
    border-radius: 24px;
    transition: opacity .8s ease;
    height: 100%;
    width: auto;
    object-fit: cover;
}

.slider .screenshot-active {
    opacity: 1;
    z-index: 2;
}

.slider .screenshot-hidden {
    opacity: 0;
    z-index: 1;
}

/* ===== APP STEPS (общие для клиентского и POS) ===== */
.app-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 32px 0;
}

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

.app-step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.app-step-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.app-step-content p {
    font-size: 15px;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

/* ===== APP BENEFITS (общие) ===== */
.app-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.app-benefit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
}

.app-benefit i {
    font-size: 14px;
}

/* ===== SCREENSHOT LABEL ===== */
.screenshot-label {
    position: absolute;
    z-index: 2;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    white-space: nowrap;
}

.screenshot-label i {
    color: var(--accent);
    font-size: 16px;
}

/* ===== ADMIN PANEL ===== */
.admin-section-centered {
    padding: 0 24px;
}

.admin-screenshot-centered-wrapper {
    margin: 40px 0 60px;
    text-align: center;
}

.admin-screenshot-centered {
    width: 100%;
    max-width: 900px;
}

.admin-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.admin-feature-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.admin-feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.15);
}

.admin-feature-card-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-soft);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.admin-feature-card-icon i {
    font-size: 28px;
    color: var(--accent);
}

.admin-feature-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.admin-feature-card p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

/* ===== PRICING SLIDER ===== */
.pricing-slider {
    margin: 0 -16px;
}

.pricing-slide {
    padding: 16px;
}

.pricing-featured {
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(37, 99, 235, .18);
}

.pricing-slide .card {
    height: 100%;
}

.slick-dots li button:before {
    color: var(--accent);
}

.slick-prev:before,
.slick-next:before {
    color: var(--accent);
}

/* ===== HEADER COMPONENTS ===== */
.topbar {
    display: flex;
    align-items: center;
}

.logo {
    height: 32px;
    width: auto;
}

.lang-switcher {
    margin-left: auto;
}

.lang-btn {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    transition: all .2s ease;
}

.lang-btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
}

.sticky-header.visible {
    transform: translateY(0);
    opacity: 1;
}

.sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.sticky-logo {
    height: 28px;
    width: auto;
}

.sticky-cta {
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all .2s ease;
}

.sticky-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, .3);
}

/* ===== FOOTER ===== */
footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 1100px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .screenshot-section,
    .screenshot-reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .slider {
        margin: 0 auto;
        width: 300px;
    }

    .screenshot-text {
        align-items: center;
    }

    .app-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .app-benefits {
        justify-content: center;
    }

    .screenshot-label {
        width: 100%;
        font-size: 13px;
        padding: 8px 16px;
        white-space: normal;
        text-align: center;
        max-width: 90%;
    }

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

@media (max-width: 768px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 32px;
    }

    .subtitle {
        font-size: 16px;
    }

    .admin-header h2 {
        font-size: 28px;
    }

    .admin-features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .admin-screenshot-centered {
        border-radius: 16px;
    }

    .app-benefit {
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .slider {
        width: 280px;
    }
}
