/* ===== Базовые переменные (брендбук) ===== */
:root {
    --navy: #0a192f;
    --navy-700: #0f2b4b;
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --teal-light: #14b8a6;
    --blue: #2563eb;
    --purple: #7c3aed;
    --red: #ef4444;
    --orange: #f59e0b;
    --green: #10b981;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --radius: 20px;
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 48px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, var(--teal), var(--blue));
    --gradient-secondary: linear-gradient(135deg, var(--teal), var(--purple));
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Навигация ===== */
.navbar {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 14px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--navy) !important;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.navbar-brand .logo-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.navbar-brand .logo-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.navbar-brand .logo-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    padding: 8px 18px;
    border-radius: 10px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    background: var(--gray-100);
    color: var(--teal) !important;
}

.navbar .btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 10px 28px;
    font-weight: 600;
    border-radius: 50px;
    color: #fff;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}

.navbar .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(13, 148, 136, 0.4);
}

/* ===== Общие стили ===== */
.page-section {
    display: block;
}

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

.section-badge {
    display: inline-block;
    padding: 4px 18px;
    background: rgba(13, 148, 136, 0.08);
    color: var(--teal);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-weight: 800;
    font-size: 2.8rem;
    letter-spacing: -0.03em;
    color: var(--navy);
    line-height: 1.15;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--gray-600);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

.btn-outline-primary {
    border-color: var(--teal);
    color: var(--teal);
    border-width: 2px;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 50px;
    transition: var(--transition);
}

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

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 36px;
    font-weight: 600;
    border-radius: 50px;
    color: #fff;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(13, 148, 136, 0.4);
}

/* ===== Hero ===== */
.hero-section {
    padding: 100px 0 80px;
    background: linear-gradient(160deg, #ffffff 0%, var(--gray-50) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section .hero-title {
    font-weight: 900;
    font-size: 3.6rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--navy);
}

.hero-section .hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .hero-desc {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 500px;
    line-height: 1.7;
}

.hero-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 14px 20px;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    font-weight: 500;
    color: var(--gray-800);
}

.hero-feature-item i {
    font-size: 1.3rem;
    color: var(--teal);
}

.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.hero-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.hero-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.hero-card .card-icon.teal {
    background: rgba(13, 148, 136, 0.08);
    color: var(--teal);
}
.hero-card .card-icon.blue {
    background: rgba(37, 99, 235, 0.08);
    color: var(--blue);
}
.hero-card .card-icon.purple {
    background: rgba(124, 58, 237, 0.08);
    color: var(--purple);
}

.hero-card h5 {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--navy);
}

.hero-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* ===== Секции общие ===== */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background: var(--gray-50);
}

/* ===== Карточки преимуществ ===== */
.benefit-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal);
}

.benefit-card .icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.benefit-card .icon-wrap.teal {
    background: rgba(13, 148, 136, 0.08);
    color: var(--teal);
}
.benefit-card .icon-wrap.blue {
    background: rgba(37, 99, 235, 0.08);
    color: var(--blue);
}
.benefit-card .icon-wrap.purple {
    background: rgba(124, 58, 237, 0.08);
    color: var(--purple);
}
.benefit-card .icon-wrap.orange {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
}

.benefit-card h4 {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 6px;
}

.benefit-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ===== Карточки "НЕ делаем" ===== */
.not-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    height: 100%;
}

.not-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.not-card .icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 14px;
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

.not-card h4 {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--navy);
}

.not-card p {
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

/* ===== Шаги ===== */
.step-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    height: 100%;
    text-align: center;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    margin: 0 auto 14px;
}

.step-card h4 {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--navy);
}

.step-card p {
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

/* ===== Статистика ===== */
.stat-number {
    font-weight: 900;
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.95rem;
}

/* ===== CTA ===== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--navy) 0%, #0f2b4b 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(13, 148, 136, 0.12);
    border-radius: 50%;
    filter: blur(80px);
}

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

.cta-section .btn-light {
    background: #fff;
    color: var(--navy);
    border: none;
    padding: 16px 48px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    font-size: 1.05rem;
}

.cta-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

/* ===== Страница "Возможности" ===== */
/* Заголовок смысловой группы фич */
.feature-group-title {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin: 0 0 24px;
}

.feature-group-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--gray-200), transparent);
}

.feature-group {
    margin-bottom: 56px;
}

.feature-group:last-of-type {
    margin-bottom: 0;
}

/* HERO-фича: широкая карточка с УТП и схемой потока */
.feature-hero {
    background: linear-gradient(135deg, #fff 0%, var(--gray-50) 100%);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 64px;
    position: relative;
    overflow: hidden;
}

.feature-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.feature-hero-content {
    position: relative;
    z-index: 1;
}

.feature-hero .icon-lg {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
}

.feature-hero h2 {
    font-weight: 800;
    font-size: 1.9rem;
    letter-spacing: -0.02em;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 14px;
}

.feature-hero p {
    color: var(--gray-600);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature-hero-metric {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(239, 68, 68, 0.08);
    border-radius: 14px;
}

.feature-hero-metric .metric-value {
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--red);
    line-height: 1;
}

.feature-hero-metric .metric-label {
    font-size: 0.9rem;
    color: var(--gray-700);
    font-weight: 500;
}

/* Схема потока внутри hero-фичи */
.feature-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.feature-flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.feature-flow-step .flow-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: #fff;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--gray-200);
    color: var(--gray-700);
    flex-shrink: 0;
}

.feature-flow-step:last-child .flow-icon {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--green);
    color: var(--green);
}

.feature-flow-step .flow-label {
    font-size: 0.82rem;
    color: var(--gray-700);
    font-weight: 500;
    line-height: 1.3;
}

.feature-flow-arrow {
    display: flex;
    align-items: center;
    color: var(--gray-200);
    font-size: 1.2rem;
    padding-top: 16px; /* выравнивание по центру иконки */
    flex-shrink: 0;
}

/* Компактные карточки фич */
.feature-detail-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-detail-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal);
}

.feature-detail-card .icon-lg {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 18px;
}

.feature-detail-card .icon-lg.teal {
    background: rgba(13, 148, 136, 0.08);
    color: var(--teal);
}
.feature-detail-card .icon-lg.blue {
    background: rgba(37, 99, 235, 0.08);
    color: var(--blue);
}
.feature-detail-card .icon-lg.purple {
    background: rgba(124, 58, 237, 0.08);
    color: var(--purple);
}
.feature-detail-card .icon-lg.orange {
    background: rgba(245, 158, 11, 0.08);
    color: var(--orange);
}
.feature-detail-card .icon-lg.red {
    background: rgba(239, 68, 68, 0.08);
    color: var(--red);
}
.feature-detail-card .icon-lg.green {
    background: rgba(16, 185, 129, 0.08);
    color: var(--green);
}

.feature-detail-card h3 {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    color: var(--navy);
    margin-bottom: 10px;
}

.feature-detail-card p {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
    margin: 0;
}

/* Сигнатурная метрика внутри карточки — опорная точка для сканирования */
.feature-metric {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
}

.feature-metric .metric-value {
    font-weight: 900;
    font-size: 1.6rem;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-metric .metric-label {
    font-size: 0.88rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Адаптив страницы "Возможности" */
@media (max-width: 992px) {
    .feature-hero {
        grid-template-columns: 1fr;
        padding: 32px 28px;
        gap: 32px;
    }
    .feature-hero h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .feature-flow {
        flex-direction: column;
        gap: 4px;
    }
    .feature-flow-step {
        flex-direction: row;
        text-align: left;
        gap: 14px;
        width: 100%;
    }
    .feature-flow-arrow {
        padding: 0 0 0 24px;
        transform: rotate(90deg);
    }
    .feature-group-title {
        font-size: 1.3rem;
    }
}

/* ===== CTA-баннер (общий для features и contacts) ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--navy), var(--navy-700));
    color: #fff;
    border: none;
    padding: 48px 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.cta-banner h3 {
    color: #fff;
    margin-bottom: 8px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    margin: 0;
}

.cta-banner.text-center p {
    max-width: 600px;
    margin: 0 auto 24px;
}

/* ===== Доступность: видимый focus для клавиатурной навигации ===== */
.nav-link:focus-visible,
.btn:focus-visible,
.navbar-brand:focus-visible,
.feature-detail-card:focus-within,
.blog-card:focus-visible,
.post-nav-link:focus-visible,
.social-link:focus-visible {
    outline: 3px solid rgba(13, 148, 136, 0.5);
    outline-offset: 2px;
    border-radius: 8px;
}

/* ===== Страница "Как это работает" ===== */
/* Двухколоночная раскладка: бизнес слева, посетитель справа.
   На <992px колонки стекаются вертикально. */
.perspective-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.perspective {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.perspective:hover {
    box-shadow: var(--shadow-md);
}

/* Заголовок перспективы: иконка + подпись + h2 */
.perspective-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 22px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--gray-200);
}

.perspective-header .icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.perspective-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.perspective-header h2 {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    color: var(--navy);
    margin: 0;
}

/* Модификаторы accent-цвета: бизнес — teal, посетитель — blue.
   Иконка получает цветной фон, лейбл — только цвет текста. */
.perspective--business .perspective-header .icon {
    background: rgba(13, 148, 136, 0.1);
    color: var(--teal);
}

.perspective--business .perspective-label {
    color: var(--teal);
}

.perspective--client .perspective-header .icon {
    background: rgba(37, 99, 235, 0.1);
    color: var(--blue);
}

.perspective--client .perspective-label {
    color: var(--blue);
}

/* Timeline из 4 шагов внутри перспективы */
.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    position: relative;
}

/* Соединительная горизонтальная линия между шагами */
.timeline::before {
    content: '';
    position: absolute;
    top: 20px; /* центр кружка (диаметр 40px / 2) */
    left: 8%;
    right: 8%;
    height: 2px;
    background: var(--gray-200);
    z-index: 0;
}

.timeline-step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 4px;
}

.timeline-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    margin: 0 auto 14px;
    background: #fff;
    border: 2px solid var(--gray-200);
    color: var(--gray-600);
    transition: var(--transition);
}

.perspective--business .timeline-step-number {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

.perspective--client .timeline-step-number {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.timeline-step h3 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 6px;
    line-height: 1.3;
}

.timeline-step p {
    color: var(--gray-600);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}

/* Адаптив страницы "Как это работает" */
@media (max-width: 992px) {
    .perspective-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    /* Timeline перестраивается вертикально: кружки слева, контент справа */
    .timeline {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .timeline::before {
        top: 20px;
        bottom: 20px;
        left: 20px;
        right: auto;
        width: 2px;
        height: auto;
    }
    .timeline-step {
        text-align: left;
        padding-left: 60px;
        position: relative;
    }
    .timeline-step-number {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
    }
}

@media (max-width: 576px) {
    .perspective {
        padding: 28px 22px;
    }
    .perspective-header h2 {
        font-size: 1.15rem;
    }
}

/* ===== Страница "О нас" ===== */
.about-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 40px 36px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.about-card h3 {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 18px;
}

.about-card p {
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.8;
}

.value-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
}

.value-item:last-child {
    border-bottom: none;
}

.value-item .icon-sm {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.value-item .icon-sm.teal {
    background: rgba(13, 148, 136, 0.08);
    color: var(--teal);
}
.value-item .icon-sm.blue {
    background: rgba(37, 99, 235, 0.08);
    color: var(--blue);
}
.value-item .icon-sm.purple {
    background: rgba(124, 58, 237, 0.08);
    color: var(--purple);
}
.value-item .icon-sm.orange {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
}

.value-item h5 {
    font-weight: 600;
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 2px;
}

.value-item p {
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

/* Блок с логотипом (эквалайзер-рейтинг) на странице "О нас" */
.about-logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.about-logo-block svg {
    width: 120px;
    height: 120px;
    margin-bottom: 16px;
}

.about-logo-block h4 {
    font-weight: 700;
    color: var(--navy);
}

.about-logo-block p {
    color: var(--gray-600);
    font-size: 0.95rem;
    max-width: 280px;
    margin: 0 auto;
}

/* ===== Модальное окно ===== */
.modal-content {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
}

.modal-header {
    border-bottom: none;
    padding: 24px 28px 0 28px;
}

.modal-header .btn-close {
    background: var(--gray-100);
    border-radius: 50%;
    opacity: 1;
    padding: 8px;
    transition: var(--transition);
}

.modal-header .btn-close:hover {
    background: var(--gray-200);
}

.modal-body {
    padding: 20px 28px 28px 28px;
}

.modal-body .modal-icon {
    width: 64px;
    height: 64px;
    background: rgba(13, 148, 136, 0.08);
    color: var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 16px;
}

.modal-body h3 {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.modal-body p.sub {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.modal-body .form-control {
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.modal-body .form-control:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.modal-body .btn-primary {
    width: 100%;
    padding: 14px;
    font-weight: 700;
    border-radius: 50px;
    margin-top: 8px;
}

.modal-body .success-icon {
    font-size: 4rem;
    color: var(--teal);
    margin-bottom: 16px;
}

.modal-body .success-title {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--navy);
}

.modal-body .success-text {
    color: var(--gray-600);
    font-size: 1rem;
}

.form-state {
    display: block;
}
.form-state.d-none {
    display: none !important;
}

/* ===== Футер ===== */
footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

footer h3,
footer h5 {
    color: #fff;
}

footer h3 .logo-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

footer a {
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    text-decoration: none;
}

footer a:hover {
    color: #fff;
}

footer .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    font-size: 1.1rem;
}

footer .social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

footer hr {
    border-color: rgba(255, 255, 255, 0.06);
}

/* ===== Блог: список записей ===== */
.blog-page {
    padding: 80px 0;
    background: linear-gradient(160deg, #ffffff 0%, var(--gray-50) 100%);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal);
}

.blog-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--gray-100);
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card-media img {
    transform: scale(1.06);
}

.blog-card-media.fallback {
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-media.fallback i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.85);
}

.blog-card-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 10px;
}

.blog-card-meta .blog-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-category {
    display: inline-block;
    padding: 2px 12px;
    background: rgba(13, 148, 136, 0.08);
    color: var(--teal);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.2px;
}

.blog-card h3 {
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.35;
    color: var(--navy);
    margin-bottom: 8px;
    transition: var(--transition);
}

.blog-card:hover h3 {
    color: var(--teal);
}

.blog-card-excerpt {
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-600);
    background: #fff;
    border-radius: var(--radius);
    border: 1px dashed var(--gray-200);
    grid-column: 1 / -1;
}

.blog-empty i {
    font-size: 2.6rem;
    color: var(--gray-200);
    margin-bottom: 14px;
    display: block;
}

/* ===== Блог: детальный просмотр поста ===== */
.post-hero {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
    padding: 120px 0 56px;
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
}

.post-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(10, 25, 47, 0.55) 0%,
        rgba(10, 25, 47, 0.75) 60%,
        rgba(10, 25, 47, 0.92) 100%);
    pointer-events: none;
}

.post-hero.no-image {
    background-image: linear-gradient(135deg, var(--navy) 0%, #0f2b4b 60%, var(--teal-dark) 100%);
}

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

.post-hero-content {
    max-width: 820px;
}

.post-hero .section-badge {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    margin-bottom: 16px;
}

.post-hero h1 {
    font-weight: 800;
    font-size: 2.7rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 18px;
}

.post-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.82);
}

.post-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-hero-meta i {
    color: var(--teal-light);
}

.post-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    margin: 28px 0 0;
    background: rgba(13, 148, 136, 0.08);
    color: var(--teal);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.post-back:hover {
    background: rgba(13, 148, 136, 0.14);
    transform: translateX(-3px);
}

.post-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 0;
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--gray-700);
}

.post-content > *:first-child {
    margin-top: 0;
}

.post-content h2 {
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--navy);
    margin: 2em 0 0.7em;
    line-height: 1.25;
}

.post-content h3 {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--navy);
    margin: 1.6em 0 0.6em;
    line-height: 1.3;
}

.post-content h4 {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--navy);
    margin: 1.4em 0 0.5em;
}

.post-content p {
    margin: 0 0 1.2em;
}

.post-content a {
    color: var(--teal);
    text-decoration: none;
    border-bottom: 1px solid rgba(13, 148, 136, 0.3);
    transition: var(--transition);
}

.post-content a:hover {
    color: var(--teal-dark);
    border-bottom-color: var(--teal-dark);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 1.8em 0;
    box-shadow: var(--shadow-sm);
}

.post-content blockquote {
    margin: 1.8em 0;
    padding: 8px 0 8px 22px;
    border-left: 3px solid var(--teal);
    color: var(--gray-600);
    font-style: italic;
    font-size: 1.05rem;
}

.post-content blockquote p {
    margin: 0;
}

.post-content ul,
.post-content ol {
    margin: 0 0 1.2em;
    padding-left: 1.5em;
}

.post-content li {
    margin-bottom: 0.5em;
}

.post-content code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9em;
    background: var(--gray-100);
    color: var(--teal-dark);
    padding: 2px 6px;
    border-radius: 6px;
}

.post-content pre {
    background: var(--gray-800);
    color: #f1f5f9;
    padding: 20px 22px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.6em 0;
    font-size: 0.92rem;
    line-height: 1.6;
}

.post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

.post-content hr {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 2.4em 0;
}

/* Навигация между постами */
.post-nav {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 0 80px;
    border-top: 1px solid var(--gray-200);
    padding-top: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.post-nav-link:hover {
    border-color: var(--teal);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.post-nav-link.next {
    text-align: right;
}

.post-nav-link .nav-label {
    font-size: 0.78rem;
    color: var(--gray-600);
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-nav-link .nav-title {
    font-weight: 600;
    color: var(--navy);
    font-size: 1rem;
    line-height: 1.4;
}

.post-nav-link.placeholder {
    visibility: hidden;
}

/* ===== Адаптив ===== */
@media (max-width: 992px) {
    .hero-section .hero-title {
        font-size: 2.8rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .hero-section {
        padding: 70px 0 50px;
    }
    .section-padding {
        padding: 60px 0;
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .post-hero {
        min-height: 380px;
    }
    .post-hero h1 {
        font-size: 2.1rem;
    }
}

@media (max-width: 768px) {
    .hero-section .hero-title {
        font-size: 2.2rem;
    }
    .hero-section .hero-desc {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .stat-number {
        font-size: 2.4rem;
    }
    .navbar .btn-primary {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    .hero-feature-grid {
        grid-template-columns: 1fr 1fr;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-page,
    .post-content {
        padding: 44px 0;
    }
    .post-content {
        font-size: 1.05rem;
    }
    .post-hero {
        min-height: 340px;
        padding: 100px 0 40px;
    }
    .post-hero h1 {
        font-size: 1.8rem;
    }
    .post-nav {
        grid-template-columns: 1fr;
    }
    .post-nav-link.next {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .hero-section .hero-title {
        font-size: 1.8rem;
    }
    .hero-section {
        padding: 50px 0 40px;
    }
    .section-padding {
        padding: 40px 0;
    }
    .hero-feature-grid {
        grid-template-columns: 1fr;
    }
    .cta-section .btn-light {
        padding: 14px 32px;
        font-size: 0.95rem;
    }
    .modal-body {
        padding: 16px;
    }
    .modal-header {
        padding: 16px 16px 0 16px;
    }
    .post-hero-meta {
        gap: 12px;
        font-size: 0.85rem;
    }
    .blog-card-body {
        padding: 18px 18px 22px;
    }
}
/* ===== Юридические страницы (Политика, Условия) ===== */
.legal-content {
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.75;
}
.legal-content h2 {
    color: var(--gray-900);
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.legal-content h2:first-child {
    margin-top: 0;
}
.legal-content p {
    margin-bottom: 1rem;
}
.legal-content ul {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}
.legal-content ul li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}
.legal-content a {
    color: var(--teal);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-content a:hover {
    color: var(--blue);
}
.legal-content strong {
    color: var(--gray-900);
    font-weight: 600;
}

/* Таблицы внутри юридических страниц */
.legal-content .legal-table-wrap {
    overflow-x: auto;
    margin: 1.25rem 0;
    -webkit-overflow-scrolling: touch;
}
.legal-content table.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    line-height: 1.6;
    min-width: 480px;
}
.legal-content table.legal-table th,
.legal-content table.legal-table td {
    border: 1px solid var(--gray-200);
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}
.legal-content table.legal-table thead th {
    background: rgba(13, 148, 136, 0.06);
    color: var(--gray-900);
    font-weight: 600;
}
.legal-content table.legal-table tbody tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.015);
}
.legal-content .lead-note {
    font-size: 1.05rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}
.legal-content .doc-updated {
    border-top: 1px solid var(--gray-200);
    margin-top: 2.5rem;
    padding-top: 1.25rem;
}

/* Блоки внутри юридических страниц: преамбула-оферта, приложение */
.legal-content .legal-preamble {
    background: rgba(13, 148, 136, 0.04);
    border-left: 3px solid var(--teal);
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0 2.5rem;
    color: var(--gray-700);
}
.legal-content .legal-preamble p {
    margin-bottom: 0.5rem;
}
.legal-content .legal-preamble p:last-child {
    margin-bottom: 0;
}
.legal-content .legal-annex {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
}
.legal-content .legal-annex-title {
    color: var(--gray-900);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.legal-content .legal-annex-subtitle {
    color: var(--gray-600);
    font-style: italic;
    margin-bottom: 1.5rem;
}
.legal-content .legal-note {
    background: rgba(37, 99, 235, 0.05);
    border-left: 3px solid var(--blue);
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
    color: var(--gray-700);
}
.legal-content .legal-requisites {
    background: var(--gray-100, #f8f9fa);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    margin-top: 1.5rem;
}
.legal-content .legal-requisites p {
    margin-bottom: 0.4rem;
}
