/* ============================================
   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;
}

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);
    border-top: 1px solid var(--gray-200);
}

/* Дополнительные стили для таблицы сервисов */
.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(5, 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;
}

.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;
}

/* 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);
}

/* Reviews Section */
.reviews {
    padding: 80px 0;
}

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

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

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    background: var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.875rem;
}

.review-author {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark);
}

.review-rating {
    display: flex;
    gap: 1px;
    color: var(--yellow);
    font-size: 0.75rem;
}

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

/* 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: 1px solid var(--gray-200);
}

.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;
}

.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 p {
    color: var(--gray-500);
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    text-align: 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: 24px;
}

/* Footer */
footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 64px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    color: white;
}

.footer-brand p {
    margin-top: 12px;
    font-size: 0.8125rem;
    color: var(--gray-400);
    line-height: 1.7;
}

.footer-column h4 {
    color: white;
    font-weight: 600;
    font-size: 0.8125rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    font-size: 0.8125rem;
}

.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);
    }

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

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

@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,
    .reviews-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .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;
}

/* Hero секция на сервисных страницах — тёмный фон */
.service-page .hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #111827 100%);
    padding: 100px 0 60px;
}

.service-page .hero-content {
    color: white;
}

.service-page .hero h1 {
    color: white;
}

.service-page .hero p {
    color: rgba(255, 255, 255, 0.85);
}

.service-page .hero-badge {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.service-page .hero-buttons .btn-primary {
    background: white;
    color: #1e3a5f;
}

.service-page .hero-buttons .btn-primary:hover {
    background: #f0f4f8;
}

.service-page .hero-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.service-page .hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Hero-stats на тёмном фоне сервисной страницы — белый текст */
.service-page .hero .stat-value {
    color: white;
}

.service-page .hero .stat-label {
    color: rgba(255, 255, 255, 0.7);
}

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

/* Сброс базовых стилей article.css на .simple-page-content в сервисных страницах */
.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 3rem;
    padding: 64px 48px;
}

.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;
}

/* Хлебные крошки */
.breadcrumbs {
    padding: 1rem 0;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.breadcrumbs ol li::after {
    content: "›";
    margin-left: 0.5rem;
    color: var(--gray-300);
}

.breadcrumbs ol li:last-child::after {
    content: none;
}

.breadcrumbs a {
    color: var(--gray-500);
    text-decoration: none;
}

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

/* Таблица цен (из 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;
    }
}
