/* Лендинг бухгалтерского аутсорсинга — спокойная «редакторская» тема */
/* Новая цветовая гамма на основе логотипа «СмартБаланс» */
:root {
    --bg-page: #f4f7f8;       /* Светло-серый с холодным подтоном */
    --bg-muted: #e9eff1;
    --surface: #ffffff;
    --ink: #102a30;           /* Темно-синий, почти черный (как текст лого) */
    --ink-soft: #3a5055;
    --muted: #70888e;
    --line: #d1dee2;
    --accent: #00a8a8;        /* Яркий бирюзовый из градиента стрелки */
    --accent-hover: #008585;
    --accent-soft: rgba(0, 168, 168, 0.12);
    --forest: #004d4d;        /* Глубокий бирюзовый для акцентов */
    --forest-soft: rgba(0, 77, 77, 0.1);
    
    /* Остальные параметры (шрифты, тени) остаются прежними */
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 18px 40px rgba(16, 42, 48, 0.08);
    --shadow-sm: 0 8px 24px rgba(16, 42, 48, 0.06);
    --font-body: "IBM Plex Sans", system-ui, sans-serif;
    --font-display: "Newsreader", Georgia, serif;
    --max: 1120px;
    --narrow: 720px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink-soft);
    background: var(--bg-page);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--surface);
    color: var(--accent);
    font-weight: 600;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

img {
    max-width: 100%;
    padding-bottom: 6px;
}

.container {
    width: min(100% - 2.5rem, var(--max));
    margin-inline: auto;
}

.container.narrow {
    max-width: var(--narrow);
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 4.5vw, 3.15rem);
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}

h2 {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    margin: 0 0 0.5rem;
}

h3 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

a:hover {
    color: var(--accent-hover);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 243, 237, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--ink);
    text-decoration: none;
}

.logo:hover {
    color: var(--accent);
}

.logo-text {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--ink);
    line-height: 1.1;
    margin: 0;
    padding: 0;
}

.logo-text__accent {
    color: var(--accent);
}

.nav {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--small {
    padding: 0.45rem 0.9rem;
    font-size: 0.875rem;
}

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

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

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

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

.btn--ghost {
    background: transparent;
    color: var(--ink-soft);
    border-color: var(--line);
}

.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--block {
    width: 100%;
    margin-top: auto;
}

.btn--lg {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
}

/* Hero */
.hero {
    position: relative;
    padding: clamp(2.5rem, 6vw, 5rem) 0;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 85% 15%, rgba(140, 74, 61, 0.14), transparent 55%),
        radial-gradient(ellipse 60% 50% at 10% 90%, rgba(44, 74, 62, 0.1), transparent 50%),
        linear-gradient(180deg, var(--bg-page) 0%, #ebe4d9 100%);
    pointer-events: none;
}

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--forest);
    margin: 0 0 0.75rem;
}

.lead {
    font-size: 1.125rem;
    color: var(--ink-soft);
    max-width: 52ch;
}

.hero__offer {
    margin: 1.5rem 0 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.hero__offer strong {
    display: block;
    color: var(--ink);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.hero__offer span {
    font-size: 0.9rem;
    color: var(--muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero__tags li {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    background: var(--forest-soft);
    color: var(--forest);
    border-radius: 999px;
    font-weight: 500;
}

.hero__aside {
    position: sticky;
    top: 5.5rem;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.stat-card__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 0 0 0.35rem;
}

.stat-card__value {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 0.75rem;
}

.stat-card__hint {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

/* Sections */
.section {
    padding: clamp(3rem, 8vw, 5rem) 0;
}

.section--muted {
    background: var(--bg-muted);
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.section-lead {
    margin: 0.75rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

/* Compare */
.compare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.compare-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.compare-card h3 {
    font-size: 1.15rem;
}

.compare-card p {
    margin-bottom: 0.75rem;
    font-size: 0.98rem;
}

.compare-card__note {
    font-size: 0.88rem !important;
    color: var(--muted) !important;
    margin-bottom: 0 !important;
}

.compare-card--accent {
    border-color: var(--forest);
    background: linear-gradient(160deg, #fff 0%, #f0f7f4 100%);
    box-shadow: var(--shadow);
}

.compare-card--accent .compare-card__note {
    color: var(--ink-soft) !important;
}

/* Benefits */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
}

.benefits-list li:last-child {
    border-bottom: 0;
}

.benefits-list__icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

.benefits-list strong {
    display: block;
    color: var(--ink);
    margin-bottom: 0.25rem;
}

.benefits-list span:last-child {
    font-size: 0.95rem;
    color: var(--muted);
}

/* Services */
.services-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.service-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--line);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    border-color: rgba(140, 74, 61, 0.35);
    box-shadow: var(--shadow-sm);
}

.service-card p {
    margin: 0;
    font-size: 0.98rem;
    color: var(--muted);
}

/* Tariffs */
.tariff-grid {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    justify-content: center;
}

.tariff-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 100%;
}

.tariff-card__for {
    color: var(--accent);
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
}

.tariff-card__price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}

.tariff-card ul {
    margin: 0;
    padding-left: 1.2rem;
    flex-grow: 1;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.tariff-card li {
    margin-bottom: 0.4rem;
}

.tariff-card--featured {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    position: relative;
}

.tariff-card__badge {
    position: absolute;
    top: -0.6rem;
    right: 1rem;
    background: var(--forest);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
}

/* Steps */
.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin-inline: auto;
}

.steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: start;
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.steps__num {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.steps h3 {
    margin-bottom: 0.35rem;
}

.steps p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

/* FAQ */
.faq {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq__item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
}

.faq__item summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--ink);
    list-style: none;
    position: relative;
    padding-right: 2.5rem;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: "+";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 400;
}

.faq__item[open] summary::after {
    content: "−";
}

.faq__item p {
    margin: 0;
    padding: 0 1.25rem 1.25rem;
    color: var(--muted);
    font-size: 0.98rem;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--forest) 0%, #1e322b 100%);
    color: #e8ebe9;
}

.cta-section h2 {
    color: #fff;
}

.cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.cta-copy p {
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.85);
    max-width: 42ch;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.cta-section .btn--primary {
    background: #fff;
    color: var(--forest);
    border-color: #fff;
}

.cta-section .btn--primary:hover {
    background: var(--bg-muted);
    border-color: var(--bg-muted);
    color: var(--ink);
}

.cta-section .btn--outline {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.cta-section .btn--outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

.cta-hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0.25rem 0 0;
}

/* Footer */
.site-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--line);
    background: var(--bg-page);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.footer-note {
    font-size: 0.88rem;
    color: var(--muted);
    max-width: 40ch;
    margin: 0.5rem 0 0;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
}

.footer-links a {
    font-weight: 500;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 960px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }

    .hero__aside {
        position: static;
    }

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

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

    .tariff-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-inline: auto;
    }

    .cta-inner {
        grid-template-columns: 1fr;
    }

    .header-inner .nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 1rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }
}

/* Motion: лёгкое появление hero */
@media (prefers-reduced-motion: no-preference) {
    .hero__copy > * {
        animation: rise 0.7s ease backwards;
    }

    .hero__copy > *:nth-child(1) { animation-delay: 0.05s; }
    .hero__copy > *:nth-child(2) { animation-delay: 0.1s; }
    .hero__copy > *:nth-child(3) { animation-delay: 0.15s; }
    .hero__copy > *:nth-child(4) { animation-delay: 0.2s; }
    .hero__copy > *:nth-child(5) { animation-delay: 0.25s; }
    .hero__copy > *:nth-child(6) { animation-delay: 0.3s; }

    @keyframes rise {
        from {
            opacity: 0;
            transform: translateY(12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
