/* style.css */

/* =========================
   Базовые переменные
   ========================= */
:root {
    --bg: #020617;
    --bg-alt: #050816;
    --card-bg: #020617;
    --accent: #f97316;
    --accent-soft: #fed7aa;
    --accent-deep: #c2410c;
    --text: #f9fafb;
    --text-muted: #9ca3af;
    --border-subtle: rgba(148, 163, 184, 0.18);
    --shadow-soft: 0 22px 45px rgba(15, 23, 42, 0.65);
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 999px;
    --max-width: 1120px;
}

/* =========================
   Сброс и базовая типографика
   ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

/* =========================
   Общий контейнер
   ========================= */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* main */
main {
    padding-bottom: 40px;
}

/* =========================
   HEADER
   ========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.9), transparent);
    border-bottom: 1px solid rgba(51, 65, 85, 0.6);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 10%, #fed7aa, #fb923c 35%, #ea580c 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 17px;
    color: #020617;
    box-shadow: 0 14px 30px rgba(248, 113, 113, 0.45);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 15px;
    font-weight: 600;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

/* Навигация */
.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
}

.nav a {
    color: var(--text-muted);
    padding: 4px 0;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(to right, #fb923c, #f97316);
    transition: width 0.18s ease-out;
}

.nav a:hover {
    color: var(--text);
}

.nav a:hover::after {
    width: 100%;
}

/* Телефон в шапке */
.header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.header-phone span {
    font-size: 11px;
    color: var(--text-muted);
}

.header-phone a {
    font-size: 14px;
    font-weight: 600;
}

/* Бургер */
.burger {
    display: none;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(75, 85, 99, 0.9);
    background: radial-gradient(circle at 30% 0, rgba(248, 250, 252, 0.18), rgba(15, 23, 42, 0.9));
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.burger span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #e5e7eb;
    transition: transform 0.18s ease, opacity 0.18s ease, translate 0.18s ease;
}

.burger-open span:nth-child(1) {
    transform: rotate(45deg);
    translate: 0 4px;
}

.burger-open span:nth-child(2) {
    opacity: 0;
}

.burger-open span:nth-child(3) {
    transform: rotate(-45deg);
    translate: 0 -4px;
}

/* =========================
   КНОПКИ
   ========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
    white-space: nowrap;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(to right, #fb923c, #f97316);
    box-shadow: 0 14px 28px rgba(248, 113, 113, 0.35);
    color: #111827;
}

.btn-primary:hover {
    background: linear-gradient(to right, #fdba74, #fb923c);
    box-shadow: 0 18px 36px rgba(248, 113, 113, 0.45);
    transform: translateY(-1px);
}

.btn-outline {
    border-color: rgba(148, 163, 184, 0.55);
    background: rgba(15, 23, 42, 0.95);
    color: var(--text);
}

.btn-outline:hover {
    border-color: rgba(249, 115, 22, 0.85);
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.8);
    transform: translateY(-1px);
}

/* =========================
   HERO
   ========================= */
.hero {
    padding: 26px 0 32px;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

/* Бейдж */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.96);
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--text-muted);
}

.badge-dot {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 10%, #bbf7d0, #22c55e);
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.8);
}

/* Заголовок hero */
.hero-title {
    font-size: 30px;
    line-height: 1.2;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.hero-title span {
    color: var(--accent-soft);
}

/* Подзаголовок */
.hero-subtitle {
    margin: 0 0 18px;
    font-size: 14px;
    color: var(--text-muted);
    max-width: 520px;
}

/* Действия */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

/* Список преимуществ */
.hero-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Правая карточка */
.hero-right {
    position: relative;
}

.hero-card {
    border-radius: var(--radius-xl);
    padding: 18px 18px 16px;
    background: radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.16), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: var(--shadow-soft);
}

.hero-card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.hero-card-title {
    font-size: 14px;
    font-weight: 600;
}

.hero-card-tag {
    font-size: 12px;
    color: var(--text-muted);
}

/* Метрики */
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.metric {
    padding: 10px;
    border-radius: 14px;
    background: #020617;
    border: 1px solid rgba(75, 85, 99, 0.9);
}

.metric-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.metric-value {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.metric-tag {
    font-size: 11px;
    color: var(--text-muted);
}

/* Примечание */
.hero-note {
    font-size: 12px;
    color: var(--text-muted);
}

/* =========================
   Общие секции
   ========================= */
.section {
    padding: 30px 0;
    background: var(--bg);
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

/* Заголовки секций */
.section-header {
    max-width: 720px;
    margin: 0 auto 22px;
    text-align: center;
}

.section-kicker {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin-bottom: 6px;
}

.section-title {
    font-size: 22px;
    margin: 0 0 6px;
}

.section-subtitle {
    font-size: 13px;
    margin: 0;
    color: var(--text-muted);
}

/* =========================
   Карточки услуг
   ========================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.card {
    padding: 14px 14px 12px;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.8);
}

.card h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.card p {
    font-size: 13px;
    margin: 0 0 8px;
    color: var(--text-muted);
}

.card ul {
    margin: 0 0 8px;
    padding-left: 18px;
    font-size: 12px;
    color: var(--text-muted);
}

.card li + li {
    margin-top: 2px;
}

.card-tagline {
    font-size: 12px;
    color: #e5e7eb;
}

/* Пилюли ключей */
.pill-list {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pill {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    color: var(--text-muted);
    background: #020617;
}

/* =========================
   Ситуации
   ========================= */
.situations-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.situation {
    padding: 12px 12px 10px;
    border-radius: 16px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    background: var(--card-bg);
}

.situation h3 {
    margin: 0 0 6px;
    font-size: 14px;
}

.situation p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* =========================
   Преимущества
   ========================= */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.benefit {
    padding: 12px 12px 10px;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid rgba(55, 65, 81, 0.9);
}

.benefit h3 {
    margin: 0 0 6px;
    font-size: 14px;
}

.benefit p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* =========================
   Этапы работы
   ========================= */
.steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 12px 10px;
    border-radius: 16px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    background: var(--card-bg);
}

.step-number {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 10%, #fed7aa, #fb923c);
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.step-body h3 {
    margin: 0 0 4px;
    font-size: 13px;
}

.step-body p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* =========================
   Цены
   ========================= */
.prices-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.price-card {
    padding: 14px 14px 12px;
    border-radius: 18px;
    background: var(--card-bg);
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.8);
}

.price-badge {
    display: inline-flex;
    padding: 4px 9px;
    font-size: 11px;
    border-radius: 999px;
    background: rgba(251, 146, 60, 0.12);
    color: #fed7aa;
    border: 1px solid rgba(248, 171, 96, 0.7);
    margin-bottom: 6px;
}

.price-card h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.price-value {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.price-note {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 8px;
}

.price-card ul {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    color: var(--text-muted);
}

.price-card li + li {
    margin-top: 2px;
}

.prices-footnote {
    margin-top: 12px;
    font-size: 11px;
    color: var(--text-muted);
}

/* =========================
   SEO-текст
   ========================= */
.seo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.seo-block {
    padding: 12px 12px 10px;
    border-radius: 16px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    background: var(--card-bg);
}

.seo-block h3 {
    margin: 0 0 6px;
    font-size: 14px;
}

.seo-block p {
    margin: 0 0 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.seo-queries {
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

/* =========================
   FAQ
   ========================= */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.faq-item {
    padding: 12px 12px 10px;
    border-radius: 16px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    background: var(--card-bg);
}

.faq-q {
    margin: 0 0 4px;
    font-size: 13px;
}

.faq-a {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* =========================
   Контакты и форма
   ========================= */
.section-contacts {
    padding-bottom: 34px;
}

.contacts-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: flex-start;
}

.contacts-text h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.contacts-text p {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.contacts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.contacts-list li + li {
    margin-top: 4px;
}

/* Форма */
.contact-form {
    padding: 14px 14px 12px;
    border-radius: 18px;
    background: var(--card-bg);
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.8);
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field label {
    font-size: 12px;
    color: var(--text-muted);
}

.field input,
.field textarea {
    border-radius: 10px;
    border: 1px solid rgba(75, 85, 99, 0.9);
    background: rgba(15, 23, 42, 0.85);
    padding: 7px 9px;
    font-size: 13px;
    color: var(--text);
    outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(148, 163, 184, 0.7);
}

.field input:focus,
.field textarea:focus {
    border-color: rgba(248, 171, 96, 0.9);
    box-shadow: 0 0 0 1px rgba(248, 171, 96, 0.35);
}

.field textarea {
    min-height: 80px;
    resize: vertical;
}

.form-footnote {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

/* =========================
   Плавающая кнопка звонка
   ========================= */
.call-floating {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 40;
}

.call-floating-btn {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 0, #fed7aa, #fb923c 45%, #ea580c 90%);
    box-shadow: 0 18px 40px rgba(248, 113, 113, 0.55);
}

.call-floating-btn svg {
    width: 24px;
    height: 24px;
    fill: #111827;
}

/* =========================
   FOOTER
   ========================= */
.site-footer {
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    background: #020617;
    margin-top: auto;
}

.footer-inner {
    padding: 12px 0 14px;
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* =========================
   Фокус
   ========================= */
:where(a, button, input, textarea):focus-visible {
    outline: 2px solid rgba(248, 171, 96, 0.9);
    outline-offset: 2px;
}

/* =========================
   Адаптив
   ========================= */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 20px;
    }

    .cards-grid,
    .benefits-grid,
    .situations-grid,
    .prices-grid,
    .seo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .header-inner {
        gap: 10px;
    }

    .nav {
        position: fixed;
        inset: 56px 0 auto;
        padding: 10px 16px 12px;
        flex-direction: column;
        align-items: flex-start;
        background: #020617;
        border-bottom: 1px solid rgba(31, 41, 55, 0.95);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.16s ease-out, opacity 0.16s ease-out;
    }

    .nav-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .burger {
        display: inline-flex;
    }

    .header-cta {
        display: none;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-right {
        order: -1;
    }

    .hero-card {
        margin-bottom: 8px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .cards-grid,
    .benefits-grid,
    .situations-grid,
    .prices-grid,
    .seo-grid,
    .faq-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .contacts-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .call-floating-btn {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section {
        padding: 26px 0;
    }

    .section-title {
        font-size: 19px;
    }

    .section-subtitle {
        font-size: 12px;
    }

    .card,
    .benefit,
    .situation,
    .price-card,
    .seo-block,
    .faq-item,
    .contact-form {
        padding: 11px 11px 9px;
    }

    .form-row {
        flex-direction: column;
    }

    .site-footer .footer-inner {
        padding-bottom: 16px;
    }
}
