/* ============================================================================
   ПП Технологии — основной CSS
   Палитра: slate + indigo, с акцентами cyan. Тон — лаконичный B2B/B2G.
   ============================================================================ */

:root {
    /* Цвета */
    --c-bg:          #f8fafc;  /* slate-50 */
    --c-bg-alt:      #f1f5f9;  /* slate-100 */
    --c-surface:     #ffffff;
    --c-border:      #e2e8f0;  /* slate-200 */
    --c-border-dark: #cbd5e1;  /* slate-300 */
    --c-text:        #0f172a;  /* slate-900 */
    --c-text-muted:  #475569;  /* slate-600 */
    --c-text-soft:   #64748b;  /* slate-500 */

    --c-primary:        #4338ca;   /* indigo-700 */
    --c-primary-dark:   #312e81;   /* indigo-900 */
    --c-primary-light:  #6366f1;   /* indigo-500 */
    --c-accent:         #06b6d4;   /* cyan-500 */
    --c-accent-soft:    #cffafe;   /* cyan-100 */

    --c-success: #059669;
    --c-error:   #dc2626;

    /* Радиусы и тени */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 24px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);

    /* Типографика */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

    /* Сетка */
    --container: 1200px;
    --gutter: 24px;
}

/* ─── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-primary-dark); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; line-height: 1.2; color: var(--c-text); }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.015em; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }

/* ─── Контейнер ──────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ─── Кнопки ─────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: 1px solid transparent;
    border-radius: var(--r-md);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--c-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-outline {
    background: transparent;
    color: var(--c-text);
    border-color: var(--c-border-dark);
}
.btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; border-radius: var(--r-lg); }
.btn-block { width: 100%; }

/* ─── Header (шапка) ─────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--c-border);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--c-text);
    font-size: 1.05rem;
}
.brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}
.brand__name { line-height: 1.1; }
.brand__name small { display: block; font-size: 0.72rem; font-weight: 500; color: var(--c-text-soft); margin-top: 2px; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--c-text-muted); font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--c-primary); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-cta__phone { color: var(--c-text); font-weight: 600; white-space: nowrap; }
.burger { display: none; background: none; border: none; padding: 6px; }
.burger svg { width: 28px; height: 28px; color: var(--c-text); }

@media (max-width: 960px) {
    .nav { display: none; }
    .header-cta__phone { display: none; }
}
@media (max-width: 640px) {
    .header-cta .btn { display: none; }
    .burger { display: inline-flex; }
}

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: clamp(60px, 8vw, 120px) 0 clamp(50px, 6vw, 90px);
    overflow: hidden;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(99, 102, 241, 0.12), transparent 60%),
        radial-gradient(900px 500px at -10% 30%, rgba(6, 182, 212, 0.10), transparent 60%);
}
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--c-accent-soft);
    color: #0e7490;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero__badge::before {
    content: '';
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--c-accent);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.25);
}
.hero h1 { max-width: 900px; }
.hero__lead {
    max-width: 760px;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    color: var(--c-text-muted);
    margin-top: 8px;
}
.hero__cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.stat {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.stat__num {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--c-primary);
    line-height: 1;
    letter-spacing: -.02em;
}
.stat__label {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--c-text-muted);
}

/* ─── Универсальные секции ───────────────────────────────────────────── */
.section { padding: clamp(50px, 6vw, 90px) 0; }
.section--alt { background: var(--c-bg-alt); }
.section__head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section__head--left { margin-left: 0; text-align: left; }
.section__kicker {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-primary);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 12px;
}
.section__lead { font-size: 1.1rem; color: var(--c-text-muted); }

/* ─── Сетки карточек ─────────────────────────────────────────────────── */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-border-dark); }
.card__icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
    display: grid; place-items: center;
    color: #fff;
    margin-bottom: 16px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--c-text-muted); margin: 0; }

/* ─── Inside block (что внутри комплекта) ────────────────────────────── */
.inside-list { display: grid; gap: 16px; max-width: 860px; margin: 0 auto; }
.inside-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 20px;
    padding: 24px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
}
.inside-item__num {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--c-primary);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 800;
    font-size: 1.1rem;
}
.inside-item h3 { margin-bottom: 4px; }
.inside-item p { margin: 0; color: var(--c-text-muted); }

/* ─── Trigger / Pain block ───────────────────────────────────────────── */
.trigger {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: #e2e8f0;
    border-radius: var(--r-xl);
    padding: clamp(36px, 5vw, 64px);
    text-align: center;
}
.trigger h2 { color: #fff; }
.trigger p { color: #cbd5e1; max-width: 720px; margin-left: auto; margin-right: auto; font-size: 1.1rem; }

/* ─── Big CTA ────────────────────────────────────────────────────────── */
.cta-block {
    text-align: center;
    padding: clamp(40px, 5vw, 70px) clamp(20px, 4vw, 60px);
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
    color: #fff;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
}
.cta-block h2 { color: #fff; }
.cta-block p { color: rgba(255,255,255,0.85); max-width: 640px; margin: 0 auto 28px; font-size: 1.05rem; }
.cta-block .btn-primary {
    background: #fff;
    color: var(--c-primary-dark);
}
.cta-block .btn-primary:hover { background: var(--c-bg-alt); color: var(--c-primary-dark); }

/* ─── Форма захвата ──────────────────────────────────────────────────── */
.form-wrap {
    max-width: 620px;
    margin: 0 auto;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: clamp(28px, 4vw, 48px);
    box-shadow: var(--shadow-md);
}
.form-field { margin-bottom: 18px; }
.form-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--c-text);
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--c-border-dark);
    border-radius: var(--r-md);
    font-size: 1rem;
    font-family: inherit;
    color: var(--c-text);
    background: var(--c-surface);
    transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.15);
}
.form-field textarea { min-height: 100px; resize: vertical; }
.form-field--check { display: flex; gap: 10px; align-items: flex-start; }
.form-field--check input { margin-top: 4px; }
.form-field--check label { font-size: 0.85rem; color: var(--c-text-muted); font-weight: 400; }
.form-error {
    color: var(--c-error);
    font-size: 0.85rem;
    margin-top: 4px;
}
.form-success, .form-error-box {
    padding: 16px 20px;
    border-radius: var(--r-md);
    margin-bottom: 20px;
    display: none;
}
.form-success { background: #ecfdf5; color: var(--c-success); border: 1px solid #a7f3d0; }
.form-error-box { background: #fef2f2; color: var(--c-error); border: 1px solid #fecaca; }
.form-success.is-visible, .form-error-box.is-visible { display: block; }

/* ─── P.S. блок ──────────────────────────────────────────────────────── */
.ps-block {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px;
    background: var(--c-surface);
    border-left: 4px solid var(--c-accent);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
}
.ps-block strong { color: var(--c-primary); }

/* ─── Контакты ───────────────────────────────────────────────────────── */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.contact-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: 28px;
}
.contact-card__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-text-soft);
    margin-bottom: 8px;
}
.contact-card__value { font-size: 1.15rem; font-weight: 600; }
.contact-card__value a { color: var(--c-text); }
.contact-card__value a:hover { color: var(--c-primary); }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0 30px;
    margin-top: 80px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px;
    margin-bottom: 40px;
}
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom {
    padding-top: 24px;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
}

/* ─── Sticky contact widget ──────────────────────────────────────────── */
.contact-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.contact-widget__btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
    transition: transform .2s, background .2s;
}
.contact-widget__btn:hover { background: var(--c-primary-dark); transform: scale(1.05); }
.contact-widget__btn svg { width: 24px; height: 24px; }

@media (max-width: 640px) {
    .contact-widget { right: 16px; bottom: 16px; }
    .contact-widget__btn { width: 50px; height: 50px; }
}

/* ─── Mobile menu ────────────────────────────────────────────────────── */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.96);
    z-index: 100;
    padding: 80px 24px;
    flex-direction: column;
    gap: 20px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid #1e293b;
}
.mobile-menu__close {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    color: #fff;
    padding: 8px;
}
.mobile-menu__close svg { width: 28px; height: 28px; }

/* ─── Утилиты ────────────────────────────────────────────────────────── */
.muted { color: var(--c-text-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }

/* ─── Простые текстовые страницы (policy, offer) ─────────────────────── */
.doc {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: clamp(28px, 4vw, 56px);
    max-width: 900px;
    margin: 0 auto;
}
.doc h1 { margin-bottom: 24px; }
.doc h2 { margin-top: 32px; font-size: 1.4rem; }
.doc p, .doc li { color: var(--c-text-muted); }

/* ─── Админка (упрощённые стили) ─────────────────────────────────────── */
.admin-page { background: var(--c-bg-alt); min-height: 100vh; padding: 40px 0; }
.admin-page .container { max-width: 1100px; }
.admin-login-card {
    max-width: 380px;
    margin: 80px auto;
    background: #fff;
    padding: 36px;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--c-border);
}
.admin-table {
    width: 100%;
    background: #fff;
    border-radius: var(--r-lg);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    font-size: 0.92rem;
}
.admin-table th, .admin-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
}
.admin-table th {
    background: var(--c-bg-alt);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f8fafc; }
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.status-new        { background: #dbeafe; color: #1e40af; }
.status-in_progress{ background: #fef3c7; color: #92400e; }
.status-done       { background: #d1fae5; color: #065f46; }
.status-spam       { background: #fee2e2; color: #991b1b; }

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.admin-stat {
    background: #fff;
    padding: 20px;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
}
.admin-stat__label { color: var(--c-text-soft); font-size: 0.8rem; text-transform: uppercase; }
.admin-stat__value { font-size: 1.8rem; font-weight: 800; color: var(--c-primary); margin-top: 6px; }
