:root {
    --landing-bg: #ffffff;
    --landing-ink: #111827;
    --landing-muted: #6b7280;
    --landing-brand: #1b6ec2;
    --landing-brand-dark: #155a9c;
    --landing-accent: #0ea5e9;
    --landing-line: #e5e7eb;
    --landing-surface: #f9fafb;
    --landing-danger: #dc2626;
    --landing-success: #16a34a;
    --landing-warning: #d97706;
}

/* Базовый сброс для лендинга: без него дефолтный margin у body и padding
   контейнера без border-box дают горизонтальное переполнение и «плывущую» вёрстку. */
html,
body {
    margin: 0;
    padding: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.landing-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.landing-container--narrow {
    max-width: 760px;
}

.landing-header {
    background: #0f172a;
    color: #fff;
}

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

.landing-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.landing-logo__icon {
    width: 28px;
    height: 28px;
}

.landing-main {
    min-height: calc(100vh - 64px - 72px);
    /* Единый фон для всех секций лендинга. */
    background-color: var(--landing-surface);
}

.landing-footer {
    background: #0f172a;
    color: #9ca3af;
    padding: 24px 0;
    font-size: 0.9rem;
}

.landing-footer p {
    margin: 0;
}

.landing-hero {
    background: linear-gradient(135deg, #1b6ec2 0%, #0ea5e9 100%);
    color: #fff;
    padding: 96px 0;
    text-align: center;
}

.landing-hero__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.15;
    margin: 0 0 16px;
    font-weight: 800;
}

.landing-hero__subtitle {
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto 32px;
    color: rgba(255, 255, 255, 0.9);
}

.landing-section {
    padding: 64px 0;
    /* Разделитель между секциями вместо чередования цветов. */
    border-top: 1px solid var(--landing-line);
}

/* Секции больше не чередуют фон — он единый на .landing-main. */
.landing-section--alt {
    background-color: transparent;
}

/* Под hero разделитель не нужен: секция сразу после hero его не рисует. */
.landing-hero + .landing-section {
    border-top: none;
}

.landing-section__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 24px;
}

.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.landing-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.landing-btn--primary:hover:not(:disabled) {
    background: var(--landing-brand-dark);
}

.landing-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.landing-btn--ghost:hover {
    border-color: #fff;
}

.landing-btn--sm {
    padding: 6px 14px;
    font-size: 0.875rem;
}

.landing-btn--outline {
    background: transparent;
    color: var(--landing-brand);
    border-color: var(--landing-brand);
}

.landing-btn--outline:hover:not(:disabled) {
    background: var(--landing-brand);
    color: #fff;
}

.landing-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.landing-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.landing-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.landing-input {
    border: 1px solid var(--landing-line);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.landing-input:focus {
    outline: none;
    border-color: var(--landing-brand);
    box-shadow: 0 0 0 3px rgba(27, 110, 194, 0.2);
}

.landing-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--landing-line);
    border-radius: 8px;
}

.landing-check input {
    margin-top: 3px;
}

.landing-check__body {
    font-size: 0.95rem;
}

.landing-check__hint {
    display: block;
    color: var(--landing-muted);
    font-size: 0.85rem;
}

.landing-field-error {
    color: var(--landing-danger);
    font-size: 0.85rem;
}

.landing-alert {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
}

.landing-alert--danger {
    background: #fef2f2;
    color: var(--landing-danger);
    border: 1px solid #fecaca;
}

.landing-muted {
    color: var(--landing-muted);
}

.landing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.landing-table th,
.landing-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--landing-line);
}

.landing-table th {
    font-weight: 600;
    color: var(--landing-muted);
}

.landing-table tbody tr:hover {
    background: var(--landing-surface);
}

.landing-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.landing-badge--primary { background: var(--landing-brand); }
.landing-badge--success { background: var(--landing-success); }
.landing-badge--warning { background: var(--landing-warning); }
.landing-badge--danger { background: var(--landing-danger); }
.landing-badge--secondary { background: #6b7280; }

.landing-card {
    border: 1px solid var(--landing-line);
    border-radius: 12px;
    background: #fff;
    margin-bottom: 20px;
}

.landing-card__body {
    padding: 20px;
}

.landing-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.landing-dl {
    margin: 0;
    display: grid;
    grid-template-columns: 140px 1fr;
    row-gap: 10px;
}

.landing-dl__term {
    font-weight: 600;
    color: var(--landing-muted);
    margin: 0;
}

.landing-dl__desc {
    margin: 0;
}

.landing-task {
    border: 1px solid var(--landing-line);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.landing-task__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.landing-task__name {
    font-weight: 700;
}

.landing-task__desc {
    color: var(--landing-muted);
    font-size: 0.9rem;
}

.landing-task__cost {
    font-size: 0.9rem;
    margin-top: 4px;
}

.landing-task__results {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--landing-line);
}

.landing-banner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 32px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 0.95rem;
}

.landing-hero__note {
    margin: 20px auto 0;
    max-width: 520px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.landing-btn--lg {
    padding: 16px 32px;
    font-size: 1.075rem;
}

.landing-subtitle {
    margin: -12px 0 24px;
    color: var(--landing-muted);
    font-size: 1rem;
}

.landing-note {
    margin: 0;
    padding: 12px 16px;
    background: var(--landing-surface);
    border-left: 3px solid var(--landing-brand);
    border-radius: 6px;
    color: var(--landing-muted);
    font-size: 0.9rem;
}

.landing-grid {
    display: grid;
    gap: 20px;
}

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

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

.landing-feature {
    background: #fff;
    border: 1px solid var(--landing-line);
    border-radius: 12px;
    padding: 24px;
}

.landing-feature__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.landing-feature__text {
    margin: 0;
    color: var(--landing-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.landing-step {
    background: #fff;
    border: 1px solid var(--landing-line);
    border-radius: 12px;
    padding: 24px;
}

.landing-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--landing-brand);
    color: #fff;
    font-weight: 700;
    margin-bottom: 12px;
}

.landing-step__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.landing-step__text {
    margin: 0;
    color: var(--landing-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.landing-check-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--landing-line);
    border-radius: 12px;
    padding: 20px;
}

.landing-check-card__name {
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0;
}

.landing-check-card__desc {
    margin: 0;
    color: var(--landing-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.landing-check-card__cost {
    margin-top: auto;
    font-weight: 600;
    color: var(--landing-brand);
}

.landing-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.landing-table-wrap .landing-table {
    min-width: 720px;
}

.landing-table td .landing-btn + .landing-btn {
    margin-left: 6px;
}

@media (max-width: 992px) {
    .landing-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-dl {
        grid-template-columns: 120px 1fr;
    }
}

@media (max-width: 768px) {
    .landing-hero {
        padding: 64px 0;
    }

    .landing-hero__title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .landing-hero__subtitle {
        font-size: 1.05rem;
    }

    .landing-section {
        padding: 48px 0;
    }

    .landing-section__title {
        font-size: 1.5rem;
    }

    .landing-grid--2,
    .landing-grid--3 {
        grid-template-columns: 1fr;
    }

    .landing-task__head {
        flex-direction: column;
    }

    .landing-dl {
        grid-template-columns: 1fr;
        row-gap: 4px;
    }

    .landing-dl__term {
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .landing-container {
        padding: 0 16px;
    }

    .landing-header__inner {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 10px 0;
    }

    .landing-header__nav {
        width: 100%;
        justify-content: flex-start;
    }

    .landing-header__nav a {
        font-size: 0.85rem;
    }

    .landing-logo {
        font-size: 1.1rem;
    }

    .landing-hero {
        padding: 40px 0;
    }

    .landing-hero__subtitle {
        font-size: 0.95rem;
    }

    .landing-hero .landing-btn {
        width: 100%;
        max-width: 320px;
    }

    .landing-btn--lg {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .landing-section {
        padding: 40px 0;
    }

    .landing-feature,
    .landing-step,
    .landing-check-card {
        padding: 16px;
    }

    .landing-form .landing-btn {
        width: 100%;
    }

    .landing-form .landing-btn + .landing-btn {
        margin-top: 10px;
    }

    .landing-check {
        padding: 12px;
    }

    .landing-dl {
        grid-template-columns: 1fr;
        row-gap: 4px;
    }
}

/* ---- Якоря и плавная прокрутка ---- */
html {
    scroll-behavior: smooth;
}

section[id],
footer[id] {
    scroll-margin-top: 80px;
}

/* ---- Плавающая навигация слева ---- */
.landing-nav-float {
    position: fixed;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
}

.landing-nav-float__toggle {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    /* Тёмная как шапка, чтобы кнопка не сливалась с фоном. */
    background: #0f172a;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1.25rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
    user-select: none;
}

.landing-nav-float__toggle:hover {
    background: #1e293b;
}

.landing-nav-float__toggle::-webkit-details-marker {
    display: none;
}

.landing-nav-float__menu {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    display: flex;
    flex-direction: column;
    min-width: 200px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--landing-line);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

.landing-nav-float__menu a {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--landing-ink);
    text-decoration: none;
    font-size: 0.95rem;
}

.landing-nav-float__menu a:hover {
    background: var(--landing-surface);
}

.landing-nav-float__menu a.is-active {
    background: var(--landing-brand);
    color: #fff;
}

/* ---- Итоговая стоимость ---- */
.landing-check__total {
    margin: 12px 0 0;
    font-weight: 700;
    color: var(--landing-brand);
}

/* ---- Форма действий по запросам ---- */
.landing-requests-form {
    margin: 0;
}

/* ---- Аккордеон отчётов ---- */
.landing-task__toggle {
    display: inline-block;
    cursor: pointer;
    color: var(--landing-brand);
    border: 1px solid var(--landing-brand);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.875rem;
    font-weight: 600;
    user-select: none;
}

.landing-task__result {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--landing-line);
}

.landing-task__total {
    margin-top: 12px;
    font-weight: 700;
}

/* ---- FAQ ---- */
.landing-faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.landing-faq__item {
    background: #fff;
    border: 1px solid var(--landing-line);
    border-radius: 12px;
    padding: 4px 20px;
}

.landing-faq__q {
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 0;
    list-style: none;
}

.landing-faq__q::-webkit-details-marker {
    display: none;
}

.landing-faq__q::after {
    content: "+";
    float: right;
    color: var(--landing-brand);
    font-weight: 700;
}

.landing-faq__item[open] .landing-faq__q::after {
    content: "–";
}

.landing-faq__a {
    padding: 0 0 16px;
    color: var(--landing-muted);
    line-height: 1.6;
}

/* ---- Футер с контактами ---- */
.landing-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
}

.landing-footer__brand {
    color: #fff;
    font-weight: 700;
    margin-bottom: 6px;
}

.landing-footer__copy {
    margin: 0;
}

.landing-footer__title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 8px;
}

.landing-footer__contacts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.landing-footer__contacts a {
    color: #9ca3af;
    text-decoration: none;
}

.landing-footer__contacts a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ---- Адаптив ---- */
@media (max-width: 768px) {
    .landing-nav-float {
        left: 10px;
        transform: none;
        top: auto;
        bottom: 16px;
    }

    .landing-nav-float__menu {
        top: auto;
        bottom: calc(100% + 8px);
    }

    .landing-footer__inner {
        flex-direction: column;
        gap: 16px;
    }

    /* Чтобы плавающая кнопка не перекрывала контакты в футере. */
    .landing-footer {
        padding-bottom: 72px;
    }

    .landing-header__inner {
        height: auto;
        padding: 12px 0;
        flex-wrap: wrap;
        gap: 8px;
    }

    .landing-header__nav {
        flex-wrap: wrap;
        gap: 12px;
    }

    .landing-header__nav a {
        font-size: 0.85rem;
    }

    .landing-grid {
        gap: 14px;
    }

    .landing-table-wrap .landing-table {
        min-width: 640px;
    }

    .landing-hero__subtitle {
        font-size: 1rem;
    }

    .landing-hero__note {
        font-size: 0.9rem;
    }
}

/* ---- Верхнее меню ---- */
.landing-header__nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.landing-header__nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.landing-header__nav a:hover {
    color: #fff;
}

/* ---- Хлебные крошки ---- */
.landing-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--landing-muted);
}

.landing-breadcrumbs a {
    color: var(--landing-brand);
    text-decoration: none;
}

.landing-breadcrumbs a:hover {
    text-decoration: underline;
}

/* ---- Списки ---- */
.landing-list {
    margin: 0 0 24px;
    padding-left: 20px;
    color: var(--landing-muted);
    line-height: 1.6;
}

.landing-list li {
    margin-bottom: 8px;
}

.landing-list a {
    color: var(--landing-brand);
}

/* ---- Нижнее меню ---- */
.landing-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
}

.landing-footer__nav a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
}

.landing-footer__nav a:hover {
    color: #fff;
    text-decoration: underline;
}
