/* ============================================
   FiveBBC Main Stylesheet
   Мигрирован с fivebbc.com (PHP/Twig)
   Включает: Variables, Reset, Header, Mobile Menu,
   Hero, Services Table, How It Works, Why Us,
   Reviews, FAQ, Blog, CTA, Footer, Responsive,
   EEAT blocks, Tools/Programmatic base styles
   ============================================ */

:root {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #eff6ff;
    --dark: #111827;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --green: #10b981;
    --yellow: #fbbf24;
    --red: #ef4444;

    /* Dashboard variables */
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e6eaf2;
    --blue: #1463ff;
    --blue-700: #0f4fe0;
    --shadow: 0 14px 30px rgba(15, 23, 42, .08);
    --radius: 0.5rem;
    --radius-sm: 0.5rem;
    --focus: 0 0 0 3px rgba(20, 99, 255, .18);

    /* Fluid Typography Scale */
    --fs-xs: clamp(0.6875rem, 0.625rem + 0.25vw, 0.75rem);
    --fs-sm: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
    --fs-base: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
    --fs-md: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
    --fs-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
    --fs-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
    --fs-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
    --fs-3xl: clamp(1.875rem, 1.4rem + 1.8vw, 2.5rem);
    --fs-4xl: clamp(2.25rem, 1.6rem + 2.5vw, 3.5rem);

    /* Fluid Spacing */
    --space-xs: clamp(0.25rem, 0.2rem + 0.2vw, 0.5rem);
    --space-sm: clamp(0.5rem, 0.4rem + 0.4vw, 0.75rem);
    --space-md: clamp(1rem, 0.8rem + 0.8vw, 1.5rem);
    --space-lg: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    --space-xl: clamp(2rem, 1.5rem + 2vw, 3rem);
    --space-2xl: clamp(3rem, 2rem + 4vw, 5rem);
}

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

/* Глобальный сброс: убираем underline у всех ссылок,
   стили для конкретных контекстов задаются отдельно */
a {
    text-decoration: none;
    color: inherit;
}

html {
    scroll-behavior: smooth;
    font-size: 100%; /* 16px base */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    font-size: var(--fs-base);
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 clamp(12px, 3vw, 24px);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark);
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.15s;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 5px;
    z-index: 1002;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    /* Prevent invisible overlay from blocking clicks when menu is closed */
    pointer-events: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    /* Re-enable click handling when menu overlay is visible */
    pointer-events: auto;
}

/* Mobile Menu Panel */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100%;
    height: 100dvh;
    background: var(--white);
    z-index: 1001;
    padding: 80px 24px 24px;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu nav a {
    padding: 16px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    transition: color 0.2s, padding-left 0.2s;
}

.mobile-menu nav a:hover,
.mobile-menu nav a:active {
    color: var(--primary);
    padding-left: 8px;
}

.mobile-menu .header-actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.mobile-menu .header-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
}

/* Show mobile menu button on small screens */
@media (max-width: 768px) {
    .site-header nav {
        display: none;
    }

    .site-header .header-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-overlay,
    .mobile-menu {
        display: block;
    }
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
}

.btn-ghost:hover {
    color: var(--dark);
    background: var(--gray-50);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: var(--white);
}

.hero-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.125rem;
    color: var(--gray-500);
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin: 56px 0 32px;
    padding: 40px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* Compact stats inside promo-card (authorized view) */
.services-page .promo-content .hero-stats {
    margin: 28px 0 20px;
    padding: 24px 0;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 2px;
}

/* Services Table Section */
.services-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--gray-500);
    font-size: 1rem;
}

.services-table-wrapper {
    background: var(--white);
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.services-table {
    width: 100%;
    border-collapse: collapse;
}

.services-table thead {
    background: var(--gray-50);
}

.services-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--gray-200);
}

.services-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 32px;
    transition: color 0.2s, background 0.2s;
}

.services-table th.sortable:hover {
    color: var(--gray-700);
    background: var(--gray-50);
}

.services-table th.sortable .sort-icon {
    width: 14px;
    height: 14px;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
    transition: opacity 0.2s, transform 0.2s;
}

.services-table th.sortable:hover .sort-icon {
    opacity: 0.6;
}

.services-table th.sortable.sorted-asc .sort-icon {
    opacity: 1;
    transform: translateY(-50%) rotate(180deg);
    stroke: var(--primary);
}

.services-table th.sortable.sorted-desc .sort-icon {
    opacity: 1;
    transform: translateY(-50%) rotate(0deg);
    stroke: var(--primary);
}

.services-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.875rem;
}

.services-table tbody tr:hover {
    background: var(--gray-50);
}

/* Clickable service rows - cursor pointer only on data rows, not headers */
.services-table tbody tr.service-row {
    cursor: pointer;
    transition: background 0.15s ease;
}

.services-table tbody tr:last-child td {
    border-bottom: none;
}

.service-platform {
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-icon svg {
    width: 24px;
    height: 24px;
}

.service-name {
    font-weight: 500;
    color: var(--dark);
}

.service-price {
    font-weight: 600;
    color: var(--dark);
}

.service-speed {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #ecfdf5;
    color: #059669;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.service-quality {
    display: flex;
    gap: 1px;
}

.quality-star {
    color: var(--yellow);
    font-size: 0.75rem;
}

.btn-order {
    padding: 6px 14px;
    font-size: 0.8125rem;
}

.table-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: var(--gray-50);
}

/* Дополнительные стили для таблицы сервисов */
.service-meta {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.quality-stars {
    display: flex;
    gap: 1px;
}

.quality-stars svg {
    width: 14px;
    height: 14px;
    fill: #f59e0b;
}

.price-cell {
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
}

.btn-show {
    padding: 6px 16px;
    font-size: 0.8125rem;
    background: var(--gray-100);
    color: var(--dark);
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-show:hover {
    background: var(--gray-200);
}

.btn-check {
    padding: 6px 16px;
    font-size: 0.8125rem;
    white-space: nowrap;
}

/* Platform icon colors */
.platform-icon.instagram svg {
    fill: #E4405F;
}

.platform-icon.youtube svg {
    fill: #FF0000;
}

.platform-icon.tiktok svg {
    fill: #000000;
}

.platform-icon.spotify svg {
    fill: #1DB954;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.step-card {
    text-align: center;
    padding: 28px 20px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    position: relative;
}

.step-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
}

.step-icon {
    width: 48px;
    height: 48px;
    margin: 8px auto 16px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.step-icon svg {
    width: 24px;
    height: 24px;
}

.step-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* Why Choose Us Section */
.why-us {
    padding: 80px 0;
    background: var(--gray-900);
    color: white;
}

.why-us .section-header h2 {
    color: white;
}

.why-us .section-header p {
    color: var(--gray-400);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.feature-card {
    padding: 24px;
    background: var(--gray-800);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    /* currentColor наследуется от .feature-icon { color: var(--primary) } */
    color: inherit;
    display: block;
}

.feature-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--gray-400);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.feature-card .btn {
    display: block;
    width: fit-content;
    margin: 16px auto 0;
}

/* Support Banner */
.support-banner {
    padding: 60px 0;
    background: var(--primary);
}

.support-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border-radius: 12px;
    padding: 32px 40px;
}

.support-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.support-text p {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

.support-features {
    display: flex;
    gap: 24px;
}

.support-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.support-feature-icon svg {
    width: 20px;
    height: 20px;
}

.support-feature span {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--dark);
}

/* Trust Signals Section */
.trust-signals {
    padding: 80px 0;
    background: var(--gray-50);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.trust-card {
    text-align: center;
    padding: 32px 16px;
    background: var(--white);
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.trust-card:hover {
    transform: translateY(-4px);
}

.trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    margin-bottom: 16px;
}

.trust-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.trust-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Business Section */
.business-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.business-card {
    text-align: center;
    padding: 36px 28px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.business-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.business-icon svg {
    width: 28px;
    height: 28px;
}

.business-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.business-card p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}

.faq-container {
    max-width: 720px;
    margin: 40px auto 0;
    background: var(--white);
    border-radius: 16px;
    padding: 8px 32px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-item:first-child {
    border-top: none;
}

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

.faq-question {
    width: 100%;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--dark);
    text-align: left;
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--gray-400);
    transition: transform 0.2s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding-bottom: 18px;
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background: var(--gray-50);
}

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

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.blog-image {
    height: 200px;
    overflow: hidden;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    /* Скрываем alt-текст сломанных картинок — фон .blog-image покажет placeholder */
    color: transparent;
    font-size: 0;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-image svg {
    width: 48px;
    height: 48px;
}

.blog-content {
    padding: 20px;
}

.blog-category {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.blog-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
    line-height: 1.4;
}

.blog-card h3 a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.15s;
}

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

.blog-card p {
    color: var(--gray-500);
    font-size: 0.8125rem;
    line-height: 1.5;
    /* Показываем 3-4 строки текста */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: var(--gray-50);
}

/* Pre-footer CTA — прозрачный, сливается с фоном страницы */
.pre-footer .cta-section {
    background: transparent;
    padding: 64px 0;
}

/* Service page mid-page CTA — тёмный блок (после How It Works) */
.service-page .how-it-works + .cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}

.service-page .how-it-works + .cta-section h2 {
    color: white;
}

.service-page .how-it-works + .cta-section p {
    color: rgba(255, 255, 255, 0.75);
}

.cta-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.cta-section p {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 28px;
    max-width: 480px;
}

.cta-section .btn {
    /* Явное позиционирование кнопки — не зависит от text-align */
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
}

/* Восстановление цвета текста кнопки — .cta-section .btn перекрывает .btn-primary по специфичности */
.cta-section .btn-primary {
    color: white;
}

/* Footer (BEM) */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 3rem 0 1.5rem;
}

/* Платформы: flex-ряд на десктопе */
.footer__platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Широкая колонка (Instagram — 2 внутренних столбца) */
.footer__column--wide {
    flex: 2.5 1 0%;
}

.footer__column--wide .footer__links {
    display: grid;
    grid-template-rows: repeat(7, auto);
    grid-auto-flow: column;
    column-gap: 2rem;
    row-gap: 0.5rem;
}

/* Анкоры в широкой колонке — без переноса, как и все остальные */

/* Обычные колонки платформ */
.footer__platforms .footer__column:not(.footer__column--wide) {
    flex: 1 1 0%;
}

/* Utility-ряд: Support + Legal */
.footer__utility {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-800);
}

/* Одна колонка */
.footer__column {
    min-width: 0; /* Предотвращает переполнение в grid */
}

/* Заголовок колонки */
.footer__heading {
    color: var(--white);
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

/* Список ссылок */
.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Ссылка */
.footer__link {
    color: #a0a0b0;
    text-decoration: none;
    font-size: var(--fs-sm, 0.875rem);
    transition: color 0.15s ease;
    display: inline-block;
    white-space: nowrap;
}

.footer__link:hover {
    color: var(--white);
}

/* Нижняя полоса */
.footer__bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Лого */
.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--white);
    flex-shrink: 0;
}

/* Иконка (цифра 5) */
.footer__logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary, #3b82f6);
    color: var(--white);
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Текст лого */
.footer__logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
}

/* Copyright */
.footer__copyright {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin: 0;
    text-align: center;
}

/* Блок соцсетей */
.footer__social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Соцссылка */
.footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--gray-800);
    color: var(--gray-400);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.footer__social-link:hover {
    background: var(--gray-700);
    color: var(--white);
}

/* Иконка соцсети */
.footer__social-icon {
    width: 16px;
    height: 16px;
    display: block;
}

/* Обратная совместимость: старые классы без BEM */
.social-links {
    display: flex;
    gap: 8px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: var(--gray-800);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    text-decoration: none;
    transition: all 0.15s;
}

.social-link:hover {
    background: var(--gray-700);
    color: white;
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Responsive */
@media (max-width: 1100px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .steps-grid,
    .features-grid,
    .business-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    /* Footer: tablet — 2 колонки через flex-wrap */
    .footer__platforms {
        flex-wrap: wrap;
    }
    .footer__platforms .footer__column {
        flex: 0 0 calc(50% - 1rem);
    }
    .footer__column--wide .footer__links {
        grid-template-rows: none;
        grid-auto-flow: row;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }

    .hero h1 {
        font-size: 1.875rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .stat {
        flex: 0 0 calc(50% - 12px);
    }

    .steps-grid,
    .features-grid,
    .business-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

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

    .trust-card:last-child {
        grid-column: span 2;
    }

    .support-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .support-features {
        flex-direction: column;
        gap: 12px;
    }

    /* Footer: mobile — одна колонка */
    .footer__platforms {
        flex-direction: column;
    }
    .footer__platforms .footer__column {
        flex: 0 0 100%;
    }
    .footer__utility {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Footer bottom: вертикально на мобиле */
    .footer__bottom {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }

    .footer__copyright {
        order: 2;
    }

    .footer__social {
        order: 3;
    }

    .services-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .services-table {
        min-width: 800px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* FAQ и контент-карточки: меньше паддинг на мобильных */
    .faq-container {
        padding: 4px 16px;
        border-radius: 12px;
    }

    .service-page .simple-page-content > .container {
        padding: 28px 20px;
        border-radius: 12px;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    /* Тёмный CTA — мобильная адаптация */
    .service-page .faq-section + .cta-section {
        padding: 48px 24px;
        border-radius: 12px;
        margin: 0 1rem 2rem;
    }
}

/* --- EEAT / SEO Content Blocks (Landing) --- */
.eeat-block { margin-top: 28px; }
.eeat-lead { max-width: 920px; margin: 14px auto 0; text-align: center; color: var(--gray-600); line-height: 1.75; }

.eeat-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 26px;
}
.eeat-mini {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}
.eeat-mini h3 {
    color: var(--dark);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}
.eeat-mini p {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 10px;
}
.eeat-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.eeat-bullets li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.65;
}
.eeat-bullets li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--primary);
    margin-top: 8px;
    flex: 0 0 8px;
}

.eeat-compare {
    margin-top: 22px;
    background: var(--primary-light);
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 12px;
    padding: 18px 20px;
    color: var(--gray-700);
}
.eeat-compare strong { color: var(--dark); }

.eeat-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
    margin-top: 22px;
    align-items: start;
}
.eeat-panel {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 22px;
    margin-top: 30px;
}
.eeat-panel h3 {
    color: var(--dark);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.eeat-panel p { color: var(--gray-600); font-size: 0.875rem; line-height: 1.75; }

.eeat-callout {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 22px;
    margin-top: 30px;
}
.eeat-callout .tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.eeat-callout h3 { color: var(--dark); font-size: 1rem; font-weight: 800; margin-bottom: 10px; }
.eeat-callout p { color: var(--gray-600); font-size: 0.875rem; line-height: 1.75; margin-bottom: 10px; }

.eeat-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.eeat-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.eeat-links a:hover { border-color: rgba(59, 130, 246, 0.35); background: var(--primary-light); color: var(--dark); }

/* Dark-section variants (reused inside .why-us if needed) */
.why-us .eeat-panel,
.why-us .eeat-callout {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);
}

/* SEO Anchor block */
.seo-anchor {
    padding: 72px 0;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
}
.seo-anchor .section-header { margin-bottom: 26px; }
.seo-anchor-text {
    max-width: 920px;
    margin: 0 auto;
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.85;
    text-align: center;
}

@media (max-width: 1024px) {
    .eeat-mini-grid { grid-template-columns: repeat(2, 1fr); }
    .eeat-split { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .eeat-mini-grid { grid-template-columns: 1fr; }
    .eeat-links { justify-content: center; }
}

/* SEO anchor + quick answers */
.seo-anchor{background:var(--gray-50);padding:80px 0;}
.seo-anchor .section-header{margin-bottom:28px;}
.authority-line{margin-top:14px;color:var(--text);font-weight:600;text-align: center;}
.quick-faq{margin-top:28px;display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
.quick-faq .qcard{background:var(--white);border:1px solid var(--border);border-radius:14px;padding:18px;}
.quick-faq .qcard h3{font-size:16px;margin:0 0 8px;}
.quick-faq .qcard p{margin:0;color:var(--text-light);font-size:14px;line-height:1.55;}
@media (max-width: 900px){.quick-faq{grid-template-columns:1fr;}}

/* Trust section layout fix */
.business-grid + .eeat-block{margin-top:28px;}



/* Micro-FAQ (near footer) */
.authority-line{
    margin-top:18px;
    padding:14px 16px;
    border:1px solid var(--gray-200);
    border-radius:14px;
    background:#fff;
    font-weight:600;
    color:var(--text-dark);
}
.micro-faq{margin-top:20px;}
.micro-faq h3{font-size:18px;margin:0 0 12px;color:var(--text-dark);}
.micro-faq-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;}
.micro-faq-item{
    background:#fff;
    border:1px solid var(--gray-200);
    border-radius:16px;
    padding:16px 16px 14px;
}
.micro-faq-item h4{margin:0 0 8px;font-size:15px;color:var(--text-dark);}
.micro-faq-item p{margin:0;color:var(--text-muted);font-size:13px;line-height:1.55;}
@media (max-width: 980px){
    .micro-faq-grid{grid-template-columns:1fr;}
}

/* Ensure alternation: SEO anchor on muted background */
section.seo-anchor{background:var(--gray-50);}

/* ============================================
   Fixed Bottom Buttons — Right Column Stack
   Order (bottom→top): Tidio Chat → Scroll Top → Beamer
   Tidio ~52px from bottom (uncontrolled, shadow DOM)
   Each button gets 20px gap from the one below
   ============================================ */

/* Scroll to top — above Tidio (Tidio top edge ~110px from bottom + 20px gap) */
.scroll-to-top {
  position: fixed;
  bottom: 130px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--primary, #3b82f6);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999999998;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--primary-dark, #2563eb);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
  transform: translateY(-2px);
}

.scroll-to-top:active {
  transform: translateY(0);
}

/* Beamer — above Scroll to top (130 + 44 + 20 gap = 194) */
#beamerSelector.beamer_beamerSelector {
  bottom: 194px !important;
  right: 24px !important;
}

/* Telegram — left side, vertically centered to Tidio */
.integration-fixed.integration-fixed__bottom-left {
  bottom: 0;
  left: 0;
  padding: 20px;
}

/* Telegram — right side, raised above Tidio chat widget */
.integration-fixed.integration-fixed__bottom-right {
  bottom: 90px !important;
  right: 10px !important;
}

/* --- Tablet: moderate adjustments --- */
@media (max-width: 1024px) {
  .scroll-to-top {
    bottom: 120px;
    right: 20px;
  }

  #beamerSelector.beamer_beamerSelector {
    bottom: 180px !important;
    right: 16px !important;
  }
}

/* --- Mobile: compact stack with smaller buttons --- */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 110px;
    right: 14px;
    width: 38px;
    height: 38px;
  }

  #beamerSelector.beamer_beamerSelector {
    bottom: 165px !important;
    right: 10px !important;
    transform: scale(0.85);
    transform-origin: bottom right;
  }

  .integration-fixed.integration-fixed__bottom-left {
    padding: 10px;
  }

  /* Shrink Tidio button on mobile for less clutter */
  #tidio-chat {
    transform: scale(0.85);
    transform-origin: bottom right;
  }
}

/* --- Small mobile: even more compact --- */
@media (max-width: 480px) {

  .scroll-to-top {
    bottom: 95px;
    right: 10px;
    width: 34px;
    height: 34px;
  }

  #beamerSelector.beamer_beamerSelector {
    bottom: 145px !important;
    right: 8px !important;
    transform: scale(0.75);
    transform-origin: bottom right;
  }

  .integration-fixed.integration-fixed__bottom-left {
    padding: 8px;
  }

  #tidio-chat {
    transform: scale(0.8);
    transform-origin: bottom right;
  }
}

/* ============================================
   Tools & Programmatic Pages
   ============================================ */

/* Общие стили для tool/programmatic списков */
.page-header {
    padding: var(--space-2xl) 0 var(--space-xl);
    text-align: center;
}

.page-header h1 {
    font-size: var(--fs-3xl);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: var(--fs-md);
    color: var(--gray-500);
    max-width: 640px;
    margin: 0 auto;
}

/* Сетка карточек */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: var(--space-xl);
}

.card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    padding: 24px;
    transition: all 0.2s;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.card-title {
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-title a:hover {
    color: var(--primary);
}

.card-description {
    font-size: var(--fs-sm);
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--fs-xs);
    color: var(--gray-400);
}

/* Категория badge */
.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
}

.category-badge:hover {
    background: var(--primary);
    color: white;
}

/* Tag badge */
.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
}

.tag-badge:hover {
    background: var(--gray-200);
    color: var(--dark);
}

/* Пагинация общая */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: var(--space-xl) 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: var(--fs-sm);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
}

.pagination a {
    color: var(--gray-600);
    background: var(--white);
    border: 1px solid var(--gray-200);
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .current {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.pagination .disabled {
    color: var(--gray-300);
    cursor: not-allowed;
}

/* Responsive для cards grid */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}


/* ══════════════════════════════════════════════════════════════════════
   SERVICE PAGE — стили для коммерческих сервисных страниц
   Добавлено для миграции контента fivebbc.com
   ══════════════════════════════════════════════════════════════════════ */

/* Обёртка сервисной страницы */
.service-page {
    width: 100%;
}

/* Hero-stats на сервисных страницах — без бордеров (на главной они остаются) */
.service-page .hero-stats {
    border-top: none;
    border-bottom: none;
}


/* Отступ контентной карточки после блока Why Choose */
.service-page .why-us + .simple-page-content {
    margin-top: 4rem;
}

/* Сброс базовых стилей article.css на .simple-page-content в сервисных страницах.
   article.service-page повышает специфичность (0,2,1) чтобы побить
   :is(.blog-post-page .post-body, .simple-page-content) из blog.css (0,2,0),
   который загружается позже через extra_css */
article.service-page .simple-page-content {
    max-width: none;
    margin: 2.5rem 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* Карточка контента — стиль на .container (как на оригинале fivebbc.com) */
.service-page .simple-page-content > .container {
    max-width: 1140px;
    margin: 0 auto;
    background: #fff;
    border: none;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

/* Синяя акцентная полоска над h2 */
.service-page .simple-page-content > .container > h2::before {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #0ea5e9);
    border-radius: 2px;
    margin-bottom: 16px;
}

/* Первый абзац после h2 — чуть крупнее */
.service-page .simple-page-content > .container > h2 + p {
    font-size: 1.125rem;
    color: #1e293b;
    line-height: 1.8;
}

/* FAQ секция: прозрачный фон, каждый элемент — отдельная карточка */
.service-page .faq-section {
    padding: 80px 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    margin: 0;
}

.service-page .faq-section .faq-container {
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

/* Каждый FAQ-элемент — отдельная белая карточка на сером фоне */
.service-page .faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 0 24px;
}

.service-page .faq-item:first-child {
    border-top: 1px solid var(--gray-200);
}

/* Финальный CTA — тёмная карточка с gradient (после FAQ, как на оригинале fivebbc.com) */
.service-page .faq-section + .cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 16px;
    max-width: 1140px;
    margin: 0 auto 60px;
    padding: 48px 48px 25px;
}

.service-page .faq-section + .cta-section h2 {
    color: #fff;
}

.service-page .faq-section + .cta-section p {
    color: rgba(255, 255, 255, 0.7);
}

.service-page .faq-section + .cta-section .btn-primary {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    margin-top: 8px;
}

.service-page .faq-section + .cta-section .btn-primary:hover {
    background: #2563eb;
}

/* Хлебные крошки (legacy-класс + BEM) */

/* nav-обёртка: .breadcrumbs и .breadcrumb (service_detail) */
.breadcrumbs,
.breadcrumb {
    padding: 1rem 0;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Список: ol (legacy), .breadcrumbs__list (core/includes), .breadcrumb__list (service_detail) */
.breadcrumbs ol,
.breadcrumbs__list,
.breadcrumb__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Элемент списка */
.breadcrumbs ol li,
.breadcrumbs__item,
.breadcrumb__item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Разделитель › после каждого элемента кроме последнего */
.breadcrumbs ol li::after,
.breadcrumbs__item:not(.breadcrumbs__item--current)::after,
.breadcrumb__item:not(.breadcrumb__item--active)::after {
    content: "›";
    margin-left: 0.25rem;
    color: var(--gray-300);
}

/* Последний элемент без разделителя (legacy ol) */
.breadcrumbs ol li:last-child::after {
    content: none;
}

/* Ссылки */
.breadcrumbs a,
.breadcrumbs__link,
.breadcrumb__link {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumbs a:hover,
.breadcrumbs__link:hover,
.breadcrumb__link:hover {
    color: var(--primary);
}

/* Текущий (последний) элемент: .breadcrumbs__text (core/includes), aria-current */
.breadcrumbs__text,
.breadcrumb__item--active > span,
.breadcrumbs__item--current > span,
[aria-current="page"] {
    color: var(--gray-700);
    font-weight: 500;
}

/* Вариант на тёмном фоне (blog tag/category) */
.breadcrumbs--light .breadcrumbs__link,
.breadcrumbs--light a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs--light .breadcrumbs__link:hover,
.breadcrumbs--light a:hover {
    color: var(--white);
}

.breadcrumbs--light .breadcrumbs__text,
.breadcrumbs--light [aria-current="page"] {
    color: var(--white);
}

.breadcrumbs--light .breadcrumbs__item::after,
.breadcrumbs--light ol li::after {
    color: rgba(255, 255, 255, 0.4);
}

/* Таблица цен (из Redis) */
.price-section {
    padding: 3rem 0;
    background: var(--gray-50, #f8fafc);
}

.price-section .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.price-table-tier {
    margin-bottom: 2rem;
}

.price-table-tier .tier-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--primary);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.price-table thead {
    background: var(--gray-100, #f1f5f9);
}

.price-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 2px solid var(--gray-200, #e2e8f0);
}

.price-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-100, #f1f5f9);
    vertical-align: middle;
}

.price-table tbody tr:hover {
    background: var(--gray-50, #f8fafc);
}

.price-table .service-name {
    font-weight: 500;
    max-width: 300px;
}

.price-table .min-price {
    font-weight: 600;
    color: var(--primary);
}

/* Бейджи качества */
.quality-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.quality-economy {
    background: #e0f2fe;
    color: #0369a1;
}

.quality-standard {
    background: #dcfce7;
    color: #15803d;
}

.quality-premium {
    background: #fef3c7;
    color: #b45309;
}

/* Refill бейджи */
.refill-yes {
    color: #15803d;
    font-weight: 500;
}

.refill-no {
    color: var(--gray-400);
}

/* Кнопка покупки */
.btn-buy {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--primary);
    color: white !important;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-buy:hover {
    background: var(--primary-dark, #1d4ed8);
}

/* Дочерние страницы */
.child-pages {
    padding: 3rem 0;
}

.child-pages-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.child-pages-list li {
    padding: 1rem;
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 8px;
    transition: box-shadow 0.2s;
}

.child-pages-list li:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.child-pages-list a {
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.child-pages-list p {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Responsive для price table */
@media (max-width: 768px) {
    .price-table {
        font-size: 0.8rem;
    }

    .price-table th,
    .price-table td {
        padding: 0.5rem;
    }

    .price-table .service-name {
        max-width: 200px;
    }
}

/* === Service Cards (Money Pages) === */
.service-geo-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.service-geo-nav__label {
  font-size: 0.85rem;
  color: #6b7280;
  margin-right: 0.25rem;
}
.service-geo-nav__btn {
  padding: 0.25rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  font-size: 0.85rem;
  color: #374151;
  text-decoration: none;
  transition: background 0.15s;
}
.service-geo-nav__btn:hover { background: #f3f4f6; }
.service-geo-nav__btn--active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.service-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.15s;
}
.service-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.service-card--budget     { border-top: 3px solid #10b981; }
.service-card--popular    { border-top: 3px solid #3b82f6; }
.service-card--recommended { border-top: 3px solid #8b5cf6; }
.service-card--premium    { border-top: 3px solid #f59e0b; }

/* Цветной badge-пилл в шапке карточки */
.service-card__label {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  margin-bottom: 0.25rem;
}
.service-card--budget     .service-card__label { background: #d1fae5; color: #065f46; }
.service-card--popular    .service-card__label { background: #dbeafe; color: #1d4ed8; }
.service-card--recommended .service-card__label { background: #ede9fe; color: #5b21b6; }
.service-card--premium    .service-card__label { background: #fef3c7; color: #92400e; }

.service-card__quality {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
  font-weight: 500;
}
.quality-economy  { background: #f0fdf4; color: #16a34a; }
.quality-standard { background: #eff6ff; color: #2563eb; }
.quality-premium  { background: #faf5ff; color: #7c3aed; }

.service-card__price {
  font-size: 1.75rem;
  font-weight: 800;
  color: #111827;
  padding: 0.25rem 0;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 0.25rem;
}
.service-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.82rem;
  color: #4b5563;
  flex-grow: 1;
}
.service-card__features li {
  padding: 0.2rem 0;
  border-bottom: 1px solid #f9fafb;
}
.service-card__features li:last-child {
  border-bottom: none;
}
.service-card__features li::before {
  content: "✓ ";
  color: #10b981;
  font-weight: 700;
}

/* Кнопка Order Now — на всю ширину карточки */
.service-card .btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 0.75rem;
  padding: 0.6rem 1rem;
}

.service-no-data {
  color: #6b7280;
  font-style: italic;
  padding: 1rem 0;
}

/* ============================================
   PRICING WIDGET — Интерактивный виджет цен
   service-pricing.js добавляет:
   .js-enhanced, .pricing-card--selected
   ============================================ */

/* Обёртка всего виджета */
.pricing-widget {
  padding: 2rem 0;
}

/* ---- Карточки тарифов ---- */

.pricing-cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.pricing-card {
  flex: 1 1 200px;
  max-width: 280px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px 20px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: center;
  position: relative;
  background: #fff;
}

.pricing-card:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* Выбранная карточка */
.pricing-card--selected {
  border-color: #2563eb;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

/* Галочка в углу выбранной карточки */
.pricing-card--selected::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  background: #2563eb;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Badge — цветные label сверху карточки */
.pricing-card__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pricing-card__badge--budget      { background: #dcfce7; color: #166534; }
.pricing-card__badge--popular      { background: #dbeafe; color: #1e40af; }
.pricing-card__badge--recommended  { background: #fef3c7; color: #92400e; }
.pricing-card__badge--premium      { background: #ede9fe; color: #5b21b6; }

/* Цена и rate */
.pricing-card__price {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.pricing-card__rate {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 12px;
}

/* Список характеристик */
.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  font-size: 0.9rem;
  color: #4b5563;
}

.pricing-card__features li {
  padding: 4px 0;
}

/* Fallback-кнопка Order скрывается когда JS активен */
.js-enhanced .pricing-card__order-fallback {
  display: none;
}

/* ---- Слайдер количества ---- */

.pricing-slider {
  max-width: 500px;
  margin: 32px auto;
  padding: 0 16px;
}

.pricing-slider__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.pricing-slider__header label {
  font-weight: 600;
  color: #374151;
}

.pricing-slider__input {
  width: 120px;
  text-align: center;
  padding: 8px 12px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.pricing-slider__input:focus {
  border-color: #2563eb;
  outline: none;
}

/* Кастомный range input */
.pricing-slider__range {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e5e7eb;
  outline: none;
  margin: 16px 0;
}

.pricing-slider__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.pricing-slider__range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  border: none;
}

.pricing-slider__labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ---- Сводка заказа ---- */

.pricing-summary {
  max-width: 500px;
  margin: 32px auto 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.pricing-summary__total {
  margin-bottom: 16px;
}

.pricing-summary__total-label {
  font-size: 0.9rem;
  color: #6b7280;
}

.pricing-summary__total-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a1a1a;
  display: block;
}

.pricing-summary__details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #4b5563;
  text-align: left;
}

.pricing-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pricing-summary__row span:first-child {
  color: #9ca3af;
}

.pricing-summary__order-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}

.pricing-summary__order-btn:hover {
  background: #1d4ed8;
}

/* === Stepper: прогресс-бар === */

.pricing-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.pricing-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.pricing-step--active,
.pricing-step--completed { opacity: 1; }

.pricing-step__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s;
}

.pricing-step--active .pricing-step__num {
  background: #2563eb;
  color: #fff;
}

.pricing-step--completed .pricing-step__num {
  background: #16a34a;
  color: #fff;
}

.pricing-step__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
}

.pricing-step--active .pricing-step__label { color: #1e293b; }

.pricing-step__connector {
  width: 60px;
  height: 2px;
  background: #e2e8f0;
  margin: 0 0.75rem;
  transition: background 0.3s;
}

/* === Stepper: панели === */

.pricing-panels {
  position: relative;
  overflow: hidden;
}

.pricing-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.pricing-panel--active {
  display: block;
}

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

/* === Tier selector (Шаг 1) === */

.tier-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem 0;
}

.tier-option {
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}

.tier-option:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
  transform: translateY(-2px);
}

.tier-option--budget:hover { border-color: #16a34a; box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15); }
.tier-option--premium:hover { border-color: #d97706; box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15); }

.tier-option__icon { font-size: 2rem; margin-bottom: 0.5rem; }
.tier-option__title { font-size: 1.25rem; font-weight: 700; margin: 0.5rem 0; color: #1e293b; }
.tier-option__desc { font-size: 0.875rem; color: #64748b; margin-bottom: 1rem; }
.tier-option__range { font-size: 1.125rem; font-weight: 600; color: #2563eb; }
.tier-option--budget .tier-option__range { color: #16a34a; }
.tier-option--premium .tier-option__range { color: #d97706; }

/* === Stepper: кнопка "назад" === */

.pricing-back {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s;
}

.pricing-back:hover { color: #2563eb; }

/* === Stepper: мини-карточка выбранного сервиса (Шаг 3) === */

.pricing-selected {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  background: #f8fafc;
}

.pricing-selected__badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.pricing-selected__name {
  flex: 1;
  font-weight: 600;
  color: #1e293b;
}

.pricing-selected__rate {
  font-size: 1.125rem;
  font-weight: 700;
  color: #2563eb;
}

/* Название услуги на карточке */
.pricing-card__name {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Описание в таблице all_services */
.svc-desc-toggle {
    margin-top: 4px;
}
.svc-desc-toggle summary {
    font-size: 0.78rem;
    color: #2563eb;
    cursor: pointer;
    display: inline;
}
.svc-desc-toggle summary:hover {
    text-decoration: underline;
}
.svc-desc-content {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
    line-height: 1.4;
}
.svc-desc-content p {
    margin: 2px 0;
}

/* Описание в pricing summary */
.pricing-summary__desc {
    font-size: 0.82rem;
    color: #6b7280;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 6px;
}

/* ── Кнопка "View all services" ── */
.pricing-view-all {
  text-align: center;
  margin: 16px 0 8px;
}
.btn-view-all {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.btn-view-all:hover {
  color: #1d4ed8;
}

/* ── Modal overlay ── */
.svc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.svc-modal-overlay.is-visible {
  opacity: 1;
}

/* ── Modal ── */
.svc-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 920px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}
.svc-modal-overlay.is-visible .svc-modal {
  transform: translateY(0);
}

.svc-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.svc-modal__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
}
.svc-modal__close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #6b7280;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.svc-modal__close:hover {
  background: #f3f4f6;
  color: #111827;
}

.svc-modal__body {
  overflow-y: auto;
  padding: 0;
  flex: 1;
}

/* ── Modal таблица ── */
.svc-modal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.svc-modal__table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}
.svc-modal__table th {
  background: #f8fafc;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}
.svc-modal__table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}
.svc-modal__table tbody tr:hover {
  background: #f8fafc;
}
.svc-modal__table .col-id {
  color: #94a3b8;
  font-size: 0.8rem;
  font-family: monospace;
}
.svc-modal__table .col-price {
  font-weight: 600;
  white-space: nowrap;
}
.svc-modal__table .col-max {
  white-space: nowrap;
}

/* ── Кнопка Select в modal ── */
.btn-modal-select {
  display: inline-block;
  padding: 6px 16px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-modal-select:hover {
  background: #1d4ed8;
}

/* ── Badge parser стили ── */
.svc-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  margin: 0 2px;
  white-space: nowrap;
}
.svc-badge--pink { background: #fce7f3; color: #be185d; }
.svc-badge--indigo { background: #e0e7ff; color: #4338ca; }
.svc-badge--orange { background: #fed7aa; color: #c2410c; }
.svc-badge--purple { background: #e9d5ff; color: #7c3aed; }
.svc-badge--blue { background: #dbeafe; color: #1e40af; }
.svc-badge--green { background: #d1fae5; color: #059669; }
.svc-badge--gold { background: #fef3c7; color: #d97706; }
.svc-badge--cyan { background: #cffafe; color: #0891b2; }
.svc-badge--gray { background: #e5e7eb; color: #4b5563; }

.svc-name-main {
  font-weight: 500;
  color: #0f172a;
  line-height: 1.4;
}
.svc-name-badges {
  margin-top: 3px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

/* ── Индикатор выбранного сервиса (не из карточек) ── */
.pricing-selected-indicator {
  text-align: center;
  padding: 8px 16px;
  margin: 8px 0;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #1e40af;
  display: none;
}
.pricing-selected-indicator.is-active {
  display: block;
}

/* ---- Mobile: stepper (@max 640px) ---- */

@media (max-width: 640px) {
  .tier-selector {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .tier-option {
    padding: 1.5rem 1rem;
  }
  .pricing-step__label {
    display: none; /* Только номера на мобильном */
  }
  .pricing-step__connector {
    width: 40px;
  }
}

/* ---- Mobile: compact pill-кнопки (@max 768px) ---- */

@media (max-width: 768px) {
  .pricing-cards {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .pricing-cards::-webkit-scrollbar {
    display: none;
  }

  .pricing-card {
    flex: 0 0 auto;
    min-width: auto;
    max-width: none;
    padding: 10px 16px;
    border-radius: 20px;
  }

  /* На мобильных скрываем features, rate и название карточки — только badge + цена */
  .pricing-card__features,
  .pricing-card__rate,
  .pricing-card__name {
    display: none;
  }

  .pricing-card__badge {
    margin-bottom: 4px;
    font-size: 0.7rem;
  }

  .pricing-card__price {
    font-size: 1rem;
    margin-bottom: 0;
  }

  .pricing-card--selected::after {
    width: 18px;
    height: 18px;
    font-size: 11px;
    top: 4px;
    right: 4px;
  }

  .pricing-summary {
    margin-top: 20px;
  }

  .pricing-summary__total-value {
    font-size: 2rem;
  }

  .svc-modal-overlay {
    padding: 10px;
  }
  .svc-modal {
    max-height: 90vh;
    border-radius: 8px;
  }
  .svc-modal__header {
    padding: 12px 16px;
  }
  .svc-modal__body {
    overflow-x: auto;
  }
  .svc-modal__table th,
  .svc-modal__table td {
    padding: 8px 8px;
    font-size: 0.8rem;
  }
  .svc-modal__table .col-id {
    display: none;
  }
}

/* ── service-desc-modal: модалка описания сервисов на homepage ── */
.service-desc-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

.service-desc-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.service-desc-modal__content {
  background: #fff;
  max-width: 540px;
  width: 100%;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.service-desc-modal__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.service-desc-modal__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-desc-modal__icon svg {
  width: 32px;
  height: 32px;
}
.service-desc-modal__icon.instagram svg { fill: #E4405F; }
.service-desc-modal__icon.youtube svg { fill: #FF0000; }
.service-desc-modal__icon.tiktok svg { fill: #000000; }
.service-desc-modal__icon.spotify svg { fill: #1DB954; }

.service-desc-modal__header h3 {
  flex: 1;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.service-desc-modal__close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #6b7280;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.service-desc-modal__close:hover {
  background: #f3f4f6;
  color: #111827;
}

.service-desc-modal__body {
  padding: 14px 20px;
  overflow-y: auto;
  flex: 1;
  max-height: 60vh;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.7;
}

.service-desc-modal__body p {
  margin: 0 0 6px;
}

.service-desc-modal__body p:last-child {
  margin-bottom: 0;
}

.service-desc-modal__body ul {
  margin: 4px 0 0 20px;
  padding: 0;
}

.service-desc-modal__body li {
  margin-bottom: 2px;
}

/* Секции модалки с визуальными разделителями */
.modal-section {
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.modal-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.modal-section:first-child {
  padding-top: 0;
}

.modal-section p {
  margin: 0 0 4px;
}

.modal-section ul {
  margin: 4px 0 0 20px;
}

/* Блок Price/Min/Max — компактный */
.modal-section--pricing p {
  margin: 0 0 2px;
}

.service-desc-modal__footer {
  padding: 14px 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.btn-modal-close {
  display: inline-block;
  padding: 8px 20px;
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
}

.btn-modal-close:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

@media (max-width: 640px) {
  .service-desc-modal__content {
    max-width: 95%;
    max-height: 90vh;
    border-radius: 10px;
  }

  .service-desc-modal__header {
    padding: 16px 18px;
  }

  .service-desc-modal__body {
    padding: 16px 18px;
    max-height: 55vh;
  }

  .service-desc-modal__footer {
    padding: 12px 18px;
  }
}
