/* ===== ШРИФТ Inter (самохостинг, font-display: swap — не блокирует отрисовку) ===== */
/* Латиница (латинские буквы) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("fonts/inter-latin.260c81a4759b.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Кириллица (русские буквы) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("fonts/inter-cyrillic.de93fdc85e3d.woff2") format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Цветовая палитра */
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #059669;
    --accent: #f59e0b;

    /* Нейтральные */
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --background: #ffffff;
    --background-alt: #f8fafc;
    --border: #e2e8f0;
    --card-bg: #ffffff;

    /* Эффекты */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Радиусы */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    /* Отступы */
    --section-padding: 80px 0;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Планшеты и мобильные отступы */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

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

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    word-wrap: break-word;
}

.highlight {
    color: var(--primary);
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Мобильные заголовки */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: 48px;
    min-width: 140px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    outline: none;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Мобильные кнопки */
@media (max-width: 768px) {
    .btn-primary {
        padding: 12px 24px;
        font-size: 0.95rem;
        min-height: 44px;
        min-width: 120px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .btn-hero {
        padding: 12px 20px;
        font-size: 0.95rem;
        min-height: 44px;
        max-width: 280px;
    }
    .btn-hero-outline {
        padding: 12px 20px;
        font-size: 0.95rem;
        min-height: 44px;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-btn-text-desktop,
    .hero-btn-text-mobile {
        display: none !important;
    }
    .btn-hero::after {
        content: "Разбор проекта";
        display: inline;
    }
    /* У мобильного hero своя кнопка с текстом в разметке — не дублируем через ::after */
    .btn-hero.btn-hero-mobile::after {
        content: none;
        display: none;
    }
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: 44px;
}

.btn-secondary:hover,
.btn-secondary:focus {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    outline: none;
}

.btn-hero {
    padding: 16px 32px;
    font-size: 1.125rem;
    min-height: 56px;
}

.hero-btn-text-mobile {
    display: none;
}

.hero-btn-text-desktop {
    display: inline;
}

.btn-cta {
    width: 100%;
    padding: 16px;
    font-size: 1.125rem;
    min-height: 56px;
}

.btn-offer {
    background: linear-gradient(135deg, var(--secondary) 0%, #10b981 100%);
}

.btn-offer:hover,
.btn-offer:focus {
    background: linear-gradient(135deg, #10b981 0%, var(--secondary) 100%);
}

/* Кнопки в карточках услуг */
.btn-service {
    width: 100%;
    margin-top: 20px;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    order: 0;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 5px;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text);
}

.logo-sub {
    font-weight: 600;
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* Логотип в шапке меньше на мобильной, всегда слева от заголовка */
@media (max-width: 992px) {
    .header .logo .logo-icon,
    .header-landing .logo .logo-icon {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        min-height: 26px !important;
        padding: 4px !important;
    }
    .header .logo .logo-main,
    .header-landing .logo .logo-main {
        font-size: 0.95rem !important;
    }
    .header .logo .logo-sub,
    .header-landing .logo .logo-sub {
        font-size: 0.6rem !important;
    }
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 16px;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--primary);
    outline: none;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover:after,
.nav-links a:focus:after {
    width: 100%;
}

.nav-links a.nav-cta,
.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-left: 10px;
    border: none;
    white-space: nowrap;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-links a.nav-cta:after,
.nav-cta:after {
    display: none;
}

.nav-links a.nav-cta:hover,
.nav-links a.nav-cta:focus,
.nav-cta:hover,
.nav-cta:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    outline: none;
    background: var(--primary-dark);
}

/* Выпадающее меню «Услуги» */
.nav-dropdown {
    position: relative;
    display: inline-block;
}
.nav-dropdown-trigger {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-dropdown-trigger:hover,
.nav-dropdown:hover .nav-dropdown-trigger {
    color: var(--primary);
}
.nav-dropdown-trigger .fa-chevron-down {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}
.nav-dropdown:hover .nav-dropdown-trigger .fa-chevron-down {
    transform: rotate(180deg);
}
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin: 6px 0 0 0;
    padding: 8px 0;
    list-style: none;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-menu li {
    margin: 0;
}
.nav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
    background: var(--background-alt);
    color: var(--primary);
}
.nav-dropdown-menu a:after {
    display: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-width: 48px;
    min-height: 48px;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.menu-toggle:hover,
.menu-toggle:focus {
    background: var(--background-alt);
    outline: none;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

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

.mobile-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-align: left;
    font-size: 1rem;
    border: none;
    background: none;
    width: 100%;
    display: block;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
    background: var(--background-alt);
    color: var(--primary);
    outline: none;
}

.mobile-menu .nav-cta {
    margin: 8px 0 0 0;
    text-align: center;
}

/* Мобильное подменю «Услуги» */
.mobile-submenu {
    width: 100%;
    border-bottom: 1px solid var(--border);
}
.mobile-submenu-trigger {
    width: 100%;
    padding: 14px 20px;
    text-align: left;
    background: none;
    border: none;
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.15s, color 0.15s;
}
.mobile-submenu-trigger:hover,
.mobile-submenu-trigger:focus {
    background: var(--background-alt);
    color: var(--primary);
    outline: none;
}
.mobile-submenu-trigger .fa-chevron-down {
    transition: transform 0.2s ease;
}
.mobile-submenu.open .mobile-submenu-trigger .fa-chevron-down {
    transform: rotate(180deg);
}
.mobile-submenu-panel {
    display: none;
    padding: 0 0 8px 20px;
    background: var(--background-alt);
}
.mobile-submenu.open .mobile-submenu-panel {
    display: flex;
    flex-direction: column;
}
.mobile-submenu-panel a {
    padding: 10px 0;
    padding-left: 0;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 100px 0 130px;
    position: relative;
    background: var(--background-alt);
    text-align: center;
    margin-top: 72px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* По умолчанию — лёгкий градиент, чтобы не тянуть 1MB+ фон до first paint */
    background-image: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 55%),
                      radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.12), transparent 55%),
                      linear-gradient(180deg, rgba(248, 250, 252, 1), rgba(248, 250, 252, 1));
    opacity: 1;
    filter: none;
}

.hero-bg-image.has-photo {
    opacity: 0.35;
    filter: blur(4px);
}

.hero-bg-image img {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title .title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.hero-title .title-line:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-title .title-line:nth-child(2) {
    animation-delay: 0.3s;
}

.hero-title .title-line:nth-child(3) {
    animation-delay: 0.5s;
}

.hero-title .highlight {
    color: var(--primary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.btn-hero-outline {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    transition: var(--transition);
}

.btn-hero-outline:hover,
.btn-hero-outline:focus {
    border-color: var(--primary);
    color: var(--primary);
    outline: none;
}

.hero-note {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
    margin-top: 0.5rem;
}

/* Мобильный hero (вариант как на макете) — скрыт на десктопе */
.hero-mobile {
    display: none;
}

/* Планшет: hero */
@media (max-width: 1024px) {
    .hero {
        padding: 90px 0 110px;
        margin-top: 68px;
    }
    .hero-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    .hero-subtitle {
        font-size: 1.05rem;
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    min-width: 100px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Мобильный hero */
@media (max-width: 768px) {
    .hero {
        padding: 70px 0 80px;
        margin-top: 64px;
    }

    .hero .container {
        padding-left: 24px;
        padding-right: 24px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-bg-image {
        background-image: none;
        background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 55%),
                    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.12), transparent 55%),
                    var(--background-alt);
        opacity: 1;
        filter: none;
    }

    .hero-content {
        display: none;
    }

    .hero-mobile {
        display: block;
        position: relative;
        z-index: 1;
        padding: 0 8px;
        text-align: center;
        max-width: 100%;
    }

    .hero-mobile-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text);
        margin: 0 0 0.75rem;
        line-height: 1.35;
        text-align: center;
        padding: 0 4px;
    }

    .hero-mobile-sub {
        font-size: 0.9rem;
        color: var(--text-secondary);
        margin: 0 0 0.5rem;
        text-align: center;
    }

    .hero-mobile-benefit {
        font-size: 1rem;
        color: var(--text-secondary);
        margin: 0 0 1.75rem;
        text-align: center;
        padding: 0 4px;
    }

    .hero-mobile-what {
        font-size: 0.9rem;
        color: var(--text-secondary);
        margin: 0 0 14px;
        font-weight: 600;
        text-align: center;
    }

    /* Контейнер для хаотичной раскладки кружков */
    .hero-services-triangle {
        --tri-padding: 10px;
        position: relative;
        width: min(100%, 300px);
        margin: 0 auto 1.75rem;
        padding: var(--tri-padding);
        background: transparent;
        box-sizing: border-box;
    }

    /* Хаотичная живая раскладка кружков */
    .hero-services-triangle .hero-services-circles {
        position: relative;
        margin: 0 auto;
        padding: 0;
        width: 260px;
        height: 200px;
        max-width: 100%;
    }

    .hero-services-triangle .hero-circle {
        position: absolute;
        margin: 0;
    }

    .hero-services-triangle .hero-circle:nth-child(1) {
        left: 0;
        top: 8px;
        transform: rotate(-4deg);
    }

    .hero-services-triangle .hero-circle:nth-child(2) {
        left: 50%;
        top: 0;
        transform: translateX(-50%) rotate(3deg);
    }

    .hero-services-triangle .hero-circle:nth-child(3) {
        right: 0;
        top: 18px;
        transform: rotate(-2deg);
    }

    .hero-services-triangle .hero-circle:nth-child(4) {
        left: 50%;
        bottom: 0;
        transform: translateX(-45%) rotate(5deg);
    }

    .hero-services-circles {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
        margin-bottom: 1.75rem;
        padding: 0 4px;
    }

    .hero-circle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 72px;
        height: 72px;
        border-radius: 50%;
        border: none;
        background: #fff !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
        color: var(--primary);
        font-size: 0.7rem;
        font-weight: 600;
        text-align: center;
        line-height: 1.2;
        padding: 8px 4px;
        box-sizing: border-box;
    }

    .hero-circle i {
        font-size: 1.25rem;
        margin-bottom: 4px;
        display: block;
    }

    .hero-circle span {
        display: block;
    }

    .hero-mobile-desc {
        font-size: 0.9rem;
        color: var(--text-secondary);
        text-align: center;
        margin: 0 0 1.5rem;
        line-height: 1.5;
    }

    .hero-mobile-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        margin-bottom: 1.75rem;
        padding: 0 4px;
    }

    .hero-mobile-actions .btn-hero-mobile,
    .hero-mobile-actions .btn-hero-outline {
        width: 100%;
        max-width: 100%;
        padding-left: 24px;
        padding-right: 24px;
        box-sizing: border-box;
    }

    .hero-social-card {
        background: #f1f5f9;
        border-radius: var(--radius-lg);
        padding: 18px 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 14px;
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .hero-social-line {
        margin: 0;
        font-size: 0.9rem;
        color: var(--text);
        display: flex;
        align-items: center;
        gap: 10px;
        text-align: left;
    }

    .hero-social-line i {
        font-size: 1rem;
        opacity: 0.9;
        color: var(--primary);
        flex-shrink: 0;
        width: 1.25em;
        min-width: 1.25em;
        text-align: center;
    }

    .hero-content {
        padding: 0 16px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 2rem;
    }

    .hero-stats {
        gap: 24px;
        margin-top: 2rem;
    }

    .stat {
        min-width: 80px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0 30px;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat {
        min-width: 70px;
    }

    .stat-number {
        font-size: 1.75rem;
    }
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--section-padding);
    text-align: center;
    position: relative;
}

/* Ускорение отрисовки: секции ниже первого экрана не рендерим сразу */
@supports (content-visibility: auto) {
    .section-services,
    .section-offer,
    .section-cases,
    .section-cta,
    .footer {
        content-visibility: auto;
        contain-intrinsic-size: 1px 900px;
    }
}

/* ===== О НАС ===== */
.section-about {
    background: white;
    text-align: center;
    padding: var(--section-padding);
}

.section-about .container {
    text-align: left;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h2 {
    margin-bottom: 1rem;
    color: var(--text);
}

.about-intro-lead {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.about-intro {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 1.0625rem;
}

.about-intro:last-of-type {
    margin-bottom: 1.5rem;
}

.about-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 1.25rem;
}

.about-tab {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--background-alt);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: var(--transition);
}

.about-tab:hover,
.about-tab:focus {
    border-color: var(--primary);
    color: var(--primary);
    outline: none;
}

.about-tab-active {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
}

.about-tab-active:hover,
.about-tab-active:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white !important;
}

.about-tab-more {
    padding: 10px 14px;
}

.about-metrics {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 5.5rem;
}

.about-metric-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.about-metric-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.about-metric-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.35rem;
}

.about-metric-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 6px;
}

.about-metric-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.about-differ {
    margin-bottom: 3rem;
}

.about-differ-title {
    margin-bottom: 2rem;
    color: var(--text);
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-align: left;
}

.about-differ-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
}

.about-differ-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-right: 48px;
}

.about-differ-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.about-differ-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.about-differ-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
}

.about-differ-card-body {
    flex: 1;
    min-width: 0;
}

.about-differ-card-body h3 {
    margin-bottom: 6px;
    color: var(--text);
    font-size: 1.125rem;
}

.about-differ-card-body p {
    margin-bottom: 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.about-differ-image {
    border-radius: 0;
    overflow: hidden;
    min-height: 280px;
    height: 100%;
}

.about-differ-image img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.about-cta-block {
    background: var(--background-alt);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}

.about-cta-title {
    margin-bottom: 12px;
    color: var(--text);
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.about-cta-text {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.0625rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.about-cta-btn {
    min-width: 260px;
}

@media (max-width: 1024px) {
    .about-metrics {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .about-differ-content {
        padding-right: 0;
    }

    .about-differ-image {
        order: -1;
        max-height: 320px;
    }

    .about-differ-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .section-about {
        padding: 60px 0;
    }

    /* На мобильных убираем блок "О нас" (заголовок/текст/табы/метрики),
       но оставляем блок "Чем мы отличаемся" */
    .about-header,
    .about-metrics {
        display: none !important;
    }

    .about-header {
        margin-bottom: 2rem;
    }

    .about-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .about-tab {
        flex-shrink: 0;
    }

    .about-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-bottom: 3rem;
    }

    .about-metric-card {
        padding: 20px 16px;
    }

    .about-metric-value {
        font-size: 1.5rem;
    }

    .about-differ-title {
        margin-bottom: 1.25rem;
        font-size: 1.375rem;
    }

    .about-differ-grid {
        gap: 32px;
    }

    .about-differ-content {
        gap: 20px;
    }

    /* Минималистичные карточки на мобильных: без тяжёлых границ и теней */
    .about-differ-card {
        padding: 16px 0;
        border: none;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
        box-shadow: none;
        gap: 14px;
    }

    .about-differ-card:last-child {
        border-bottom: none;
    }

    .about-differ-card:hover {
        box-shadow: none;
        border-color: var(--border);
    }

    /* Уменьшенные иконки — больше места для текста */
    .about-differ-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .about-differ-card-body h3 {
        margin-bottom: 4px;
        font-size: 1rem;
    }

    .about-differ-card-body p {
        font-size: 0.875rem;
        line-height: 1.45;
    }

    .about-cta-block {
        padding: 30px 20px;
    }

    .about-cta-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .about-metrics {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 2.5rem;
    }

    .about-metric-card {
        padding: 16px 14px;
    }

    .about-metric-icon {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }

    .about-metric-value {
        font-size: 1.375rem;
    }

    .about-differ-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .about-differ-content {
        gap: 24px;
    }

    .about-differ-card {
        padding: 14px 0;
        gap: 12px;
    }

    .about-differ-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .about-differ-card-body h3 {
        font-size: 0.9375rem;
    }

    .about-differ-card-body p {
        font-size: 0.8125rem;
    }
}

.section-services {
    position: relative;
    background-color: #f0f2f5;
    overflow: hidden;
}
.section-services-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    filter: blur(4px);
}
.section-services .container {
    position: relative;
    z-index: 1;
}

.section-process {
    background: var(--background-alt);
}

.section-team {
    background: white;
}

.section-offer {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #e0f2fe 100%);
}

.section-cases {
    background: var(--background-alt);
}

.section-cta {
    position: relative;
    overflow: hidden;
    background: #2c3e50;
    color: white;
    padding: 40px 0 50px;
}
.section-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    filter: blur(4px);
}
.section-cta .container {
    position: relative;
    z-index: 1;
}

.section-cta .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Мобильные секции */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-cta {
        padding: 28px 0 40px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 40px 0;
    }

    .section-cta {
        padding: 20px 0 32px;
    }
}

/* ===== УСЛУГИ: Почему наши проекты приносят заявки ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 3rem;
    align-items: stretch;
}

.services-footer-text {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    text-align: left;
    display: flex;
    flex-direction: column;
    position: relative;
}

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

.service-card:hover,
.service-card:focus-within {
    outline: none;
}

/* Выделенная карточка «Рост» — градиентная рамка и бейдж */
.service-card-featured {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%) border-box;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.service-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
    white-space: nowrap;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: white;
    font-size: 1.4rem;
}

.service-card h3 {
    margin-bottom: 8px;
    color: var(--text);
    font-size: 1.35rem;
}

.service-description {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.service-sublabel {
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.service-features {
    list-style: none;
    margin-bottom: 16px;
    padding-left: 0;
}

.service-features li {
    padding: 5px 0;
    padding-left: 24px;
    color: var(--text-secondary);
    position: relative;
    font-size: 0.875rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
    font-size: 0.85rem;
}

.service-price {
    margin-top: auto;
    margin-bottom: 18px;
}

.service-price .price-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
}

.btn-service {
    width: 100%;
    padding: 12px 20px;
}

.service-note {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-light);
}

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

@media (max-width: 768px) {
    .services-grid {
        margin-top: 2rem;
        max-width: none;
    }

    .service-card {
        padding: 24px 20px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .service-price .price-value {
        font-size: 1.25rem;
    }
}

/* ===== PROCESS GRID ===== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 3rem;
    text-align: center;
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 2rem;
    }
}

.process-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.process-card:hover,
.process-card:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    outline: none;
}

.process-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.75rem;
}

.process-card h3 {
    margin-bottom: 15px;
    color: var(--text);
}

/* ===== TEAM ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 3rem;
    text-align: center;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 2rem;
    }
}

.team-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.team-card:hover,
.team-card:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    outline: none;
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: var(--shadow);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.team-avatar img {
    display: none;
}

/* Аватары команды: файлов нет в репозитории — нейтральный фон; при добавлении секции «Команда» подставьте свои url() */
.team-card:nth-child(1) .team-avatar,
.team-card:nth-child(2) .team-avatar,
.team-card:nth-child(3) .team-avatar {
    background-image: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.team-card:hover .team-avatar {
    transform: scale(1.05);
}

.team-card h3 {
    margin-bottom: 10px;
    color: var(--text);
}

.team-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-desc {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    min-height: 60px;
}

.team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.team-skills span {
    background: var(--background-alt);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Мобильная команда */
@media (max-width: 768px) {
    .team-card {
        padding: 25px 20px;
    }

    .team-avatar {
        width: 100px;
        height: 100px;
    }

    .team-desc {
        min-height: auto;
        margin-bottom: 15px;
    }
}

/* ===== OFFER ===== */
.offer-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

@media (max-width: 1024px) {
    .offer-card {
        grid-template-columns: 1fr;
        padding: 40px 30px;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .offer-card {
        padding: 28px 20px;
        border-radius: var(--radius-lg);
        gap: 28px;
    }
}

.offer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.offer-header {
    margin-bottom: 24px;
}

.offer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e3a8a;
    border-radius: var(--radius);
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.offer-icon .fa-gift {
    font-size: 1.1rem;
}

.offer-lead {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.offer-card h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.25;
}

.offer-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
}

.offer-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text);
    font-size: 1rem;
}

.offer-benefits li i {
    color: var(--secondary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.offer-pricing {
    margin-bottom: 24px;
}

.offer-price-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.offer-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px 0;
}

.offer-price-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.offer-deadline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.offer-deadline i {
    font-size: 0.85rem;
    opacity: 0.8;
}

.btn-offer {
    display: inline-block;
    margin-bottom: 12px;
}

.offer-disclaimer {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.offer-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.offer-image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    flex: 1;
    min-height: 280px;
}

.offer-image-wrap img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: block;
    object-fit: cover;
}

.offer-testimonials {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 0 0 auto;
}

.offer-testimonials .offer-quote {
    padding: 14px 16px 14px 22px;
}

.offer-testimonials .offer-quote p {
    font-size: 0.9rem;
}

.offer-testimonials .offer-quote cite {
    font-size: 0.8rem;
}

.offer-quote {
    position: relative;
    padding: 20px 20px 20px 28px;
    background: var(--background-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin: 0;
    box-shadow: var(--shadow-sm);
}

.offer-quote .quote-mark {
    position: absolute;
    top: 12px;
    left: 14px;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.35;
    line-height: 1;
    font-family: Georgia, serif;
}

.offer-quote p {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
    margin: 0 0 10px 0;
    padding-left: 16px;
}

.offer-quote cite {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: normal;
    padding-left: 16px;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .offer-content {
        align-items: center;
        text-align: center;
    }
    .offer-header {
        text-align: center;
    }
    .offer-benefits {
        max-width: 360px;
    }
    .offer-benefits li {
        justify-content: flex-start;
    }
    .offer-pricing {
        text-align: center;
    }
}

/* Элемент-круг (используется в других блоках) */
.element-circle {
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--accent);
    margin: 0 auto;
    overflow: hidden;
    padding: 12px;
    box-sizing: border-box;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
}

.element-circle-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .element-circle {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        padding: 10px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    }
}

/* ===== CASES ===== */
.section-cases .section-header {
    text-align: center;
}

/* Табы категорий */
.cases-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.cases-tab {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    background: var(--border);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.cases-tab:hover {
    background: #d1d5db;
}

.cases-tab.active {
    background: var(--primary);
    color: white;
}

/* Карусель кейсов */
.cases-carousel {
    position: relative;
    margin-top: 0;
    padding: 0 48px;
}
.cases-carousel-inner {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 0;
}
.cases-carousel-inner::-webkit-scrollbar {
    display: none;
}
.cases-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.cases-carousel-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.cases-carousel-prev { left: 0; }
.cases-carousel-next { right: 0; }

.cases-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    margin: 0;
    text-align: left;
    padding: 0 4px;
}
.cases-carousel .case-card {
    flex: 0 0 auto;
    width: 340px;
    max-width: 340px;
    min-width: 300px;
    scroll-snap-align: start;
}

@media (max-width: 992px) {
    .cases-carousel { padding: 0 44px; }
    .cases-carousel .case-card {
        width: 300px;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .cases-carousel { padding: 0 40px; }
    .cases-carousel .case-card {
        width: 280px;
        min-width: 260px;
    }
    .cases-carousel-btn { width: 40px; height: 40px; font-size: 0.9rem; }
    .cases-tabs {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

.case-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.case-visual {
    width: 100%;
    min-height: 180px;
    overflow: hidden;
    background: #e5e7eb;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.4s ease;
    border-radius: var(--radius) var(--radius) 0 0;
    cursor: zoom-in;
}

.case-visual img {
    display: block !important;
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    pointer-events: auto;
}

.case-card:hover .case-visual {
    transform: scale(1.03);
}

/* Лайтбокс для фото в кейсах */
.case-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.case-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.case-lightbox.is-open .case-lightbox-img {
    transform: scale(1);
}

.case-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: zoom-out;
}

.case-lightbox-img {
    position: relative;
    z-index: 1;
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.25s ease;
    pointer-events: auto;
    cursor: default;
}

.case-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.case-content h3 {
    color: var(--text);
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.35;
}

.case-kpi {
    margin-bottom: 14px;
}

.kpi-line {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 4px;
}

.kpi-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-right: 4px;
}

.case-description {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.case-description-short {
    overflow: hidden;
    min-height: 3em;
}

.case-view-btn.case-read-more-btn {
    background: none;
    border: none;
    box-shadow: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    text-align: left;
    width: auto;
    min-width: 0;
    color: var(--primary);
    margin-top: auto;
    text-decoration: none;
    outline: none;
}

.case-view-btn.case-read-more-btn:hover,
.case-view-btn.case-read-more-btn:focus {
    color: var(--primary-dark);
    text-decoration: underline;
}

.case-description-modal .modal-content {
    max-width: 560px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.case-description-modal-title {
    margin: 0 0 16px;
    font-size: 1.25rem;
    color: var(--text);
}

.case-description-modal-body {
    overflow-y: auto;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.case-description-modal-body p {
    margin: 0 0 0.75em;
}

.case-description-modal-body p:last-child {
    margin-bottom: 0;
}

.case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.case-meta .fa-circle {
    font-size: 4px;
    vertical-align: middle;
    margin-right: 6px;
}

.case-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-top: auto;
    transition: var(--transition);
}

.case-view-btn:hover {
    color: var(--primary-dark);
}

.case-view-btn .fa-arrow-right {
    font-size: 0.75rem;
}

/* Блок «Хотите также?» */
.cases-want-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 48px;
    padding: 40px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

@media (max-width: 992px) {
    .cases-want-block {
        grid-template-columns: 1fr;
        padding: 30px 24px;
        margin-top: 40px;
    }
}

.want-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.want-title .fa-gift {
    color: var(--primary);
    font-size: 1.25rem;
}

.want-text {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 4px;
}

.want-free {
    color: var(--primary);
    font-weight: 600;
}

.want-note {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.btn-want {
    display: inline-block;
    margin-bottom: 12px;
}

.want-disclaimer {
    font-size: 0.85rem;
    color: var(--text-light);
}

.want-testimonials {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.want-quote {
    position: relative;
    padding: 24px;
    background: var(--background-alt);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin: 0;
    border: 1px solid var(--border);
}

.want-quote .quote-mark {
    position: absolute;
    top: 8px;
    left: 16px;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.4;
    line-height: 1;
    font-family: Georgia, serif;
}

.want-quote p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 12px;
    padding-left: 24px;
}

.want-quote cite {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: normal;
    padding-left: 24px;
}

/* ===== CTA ===== */
.cta-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 28px 36px 32px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    text-align: left;
    max-width: 820px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .cta-card {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
        padding: 24px 24px 28px;
    }
}

@media (max-width: 768px) {
    .cta-card {
        padding: 20px 16px 24px;
        gap: 20px;
        border-radius: var(--radius-lg);
    }
}

.cta-title {
    color: var(--text);
    margin-bottom: 8px;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.cta-text {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.cta-form {
    margin-top: 0;
}

.cta-form .form-row {
    margin-bottom: 12px;
}

.cta-form input,
.cta-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: white;
    color: var(--text);
}

.cta-form input:focus,
.cta-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
    color: var(--text-light);
    opacity: 1;
}

.cta-form input::-webkit-input-placeholder,
.cta-form textarea::-webkit-input-placeholder {
    color: var(--text-light);
}

.cta-form input::-moz-placeholder,
.cta-form textarea::-moz-placeholder {
    color: var(--text-light);
}

.cta-form input:-ms-input-placeholder,
.cta-form textarea:-ms-input-placeholder {
    color: var(--text-light);
}

.cta-form input::-ms-input-placeholder,
.cta-form textarea::-ms-input-placeholder {
    color: var(--text-light);
}

.form-footer {
    margin-top: 16px;
}

.form-note {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 8px;
    line-height: 1.5;
    max-width: 500px;
}

.cta-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .cta-visual {
        order: -1;
    }
}

.visual-quote {
    font-style: italic;
    text-align: center;
    color: var(--text-secondary);
    margin-top: 30px;
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 300px;
}

/* Скрыть цитату в формах внизу страницы только на мобильной */
@media (max-width: 992px) {
    .visual-quote.hide-on-mobile,
    .visual-quote {
        display: none !important;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text);
    color: white;
    padding: 60px 0 30px;
    text-align: left;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .footer-content {
        gap: 30px;
        margin-bottom: 30px;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: flex-start;
}

@media (max-width: 1024px) {
    .footer-logo {
        justify-content: center;
    }
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

@media (max-width: 1024px) {
    .social-links {
        justify-content: center;
    }
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.25rem;
}

.social-links a:hover,
.social-links a:focus {
    background: var(--primary);
    transform: translateY(-3px);
    outline: none;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.link-group h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.125rem;
    font-weight: 600;
}

.link-group a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.link-group a:hover,
.link-group a:focus {
    color: white;
    transform: translateX(5px);
    outline: none;
}

@media (max-width: 1024px) {

    .link-group a:hover,
    .link-group a:focus {
        transform: translateX(0);
    }
}

.schedule-btn {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.schedule-btn:hover,
.schedule-btn:focus {
    background: var(--primary-dark);
    transform: translateY(-2px);
    outline: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding-top: 20px;
    }
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-legal-sep {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    pointer-events: none;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-legal a:hover,
.footer-legal a:focus {
    color: white;
    outline: none;
}

/* ===== AI AGENT ===== */
.ai-agent-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1100;
}

@media (max-width: 768px) {
    .ai-agent-wrapper {
        bottom: 15px;
        right: 15px;
    }
}

.ai-agent-trigger {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.ai-agent-trigger:hover,
.ai-agent-trigger:focus {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(37, 99, 235, 0.4);
    outline: none;
}

@media (max-width: 768px) {
    .ai-agent-trigger {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
}

.pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 2s infinite;
    opacity: 0.5;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    70% {
        transform: scale(1.2);
        opacity: 0;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.ai-agent-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    max-width: calc(100vw - 40px);
    max-height: min(500px, calc(100vh - 100px));
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: translateY(10px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    z-index: 1100;
}

.ai-agent-container.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .ai-agent-container {
        width: calc(100vw - 30px);
        right: 15px;
        bottom: 80px;
        max-height: calc(100vh - 100px);
    }
}

@media (max-width: 480px) {
    .ai-agent-container {
        width: calc(100vw - 24px);
        right: 12px;
        bottom: 70px;
        max-height: calc(100vh - 90px);
        border-radius: var(--radius);
    }
}

.ai-header {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--primary);
    color: white;
    flex-shrink: 0;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.ai-info h4 {
    margin-bottom: 4px;
    font-size: 1rem;
    color: white;
}

.ai-info p {
    margin-bottom: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.ai-close {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    flex-shrink: 0;
}

.ai-close:hover,
.ai-close:focus {
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.ai-chat {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
    max-height: 300px;
    -webkit-overflow-scrolling: touch;
    min-height: 150px;
    scrollbar-width: thin;
    scrollbar-color: var(--text-light) transparent;
}

.ai-chat::-webkit-scrollbar {
    width: 6px;
}

.ai-chat::-webkit-scrollbar-track {
    background: transparent;
}

.ai-chat::-webkit-scrollbar-thumb {
    background-color: var(--text-light);
    border-radius: 3px;
    opacity: 0.5;
}

.message-bubble {
    background: var(--background-alt);
    border-radius: 18px;
    border-top-left-radius: 4px;
    padding: 14px 18px;
    margin-bottom: 12px;
    text-align: left;
    max-width: 85%;
    word-wrap: break-word;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
    line-height: 1.5;
}

.message-bubble p {
    margin-bottom: 8px;
}

.message-bubble p:last-child {
    margin-bottom: 0;
}

.ai-controls {
    padding: 16px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.quick-btn {
    background: var(--background-alt);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    min-width: 100px;
    text-align: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: 40px;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.3;
}

.quick-btn:hover,
.quick-btn:focus {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    outline: none;
}

.options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.options-grid .option-btn {
    background: var(--background-alt);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    min-width: 100px;
    text-align: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: 40px;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.3;
}

.options-grid .option-btn:hover,
.options-grid .option-btn:focus {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    outline: none;
}

@media (max-width: 480px) {
    .quick-btn,
    .options-grid .option-btn {
        min-width: calc(50% - 4px);
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Webkit Scrollbar for Modal Content */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.25);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .modal-content {
        padding: 30px 25px;
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 25px 20px;
        border-radius: var(--radius);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    z-index: 2;
}

.modal-close:hover,
.modal-close:focus {
    background: var(--background-alt);
    color: var(--text);
    outline: none;
}

.modal-content h3 {
    margin-bottom: 15px;
    color: var(--text);
    padding-right: 30px;
}

.modal-content p {
    margin-bottom: 25px;
    color: var(--text-secondary);
}

/* Модалка формы заявки: заголовок, подзаголовок, кнопка и текст под кнопкой по центру */
.modal-content-cta h3 {
    text-align: center;
    padding-right: 30px;
}
.modal-content-cta .modal-cta-subtitle {
    text-align: center;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}
.modal-content-cta .form-footer {
    text-align: center;
}
.modal-content-cta .form-footer .btn-primary {
    display: inline-block;
    margin-bottom: 0.5rem;
}
.modal-content-cta .form-note {
    text-align: center;
    margin-bottom: 0;
}

.modal-form .form-row {
    margin-bottom: 20px;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    color: var(--text);
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal-form textarea {
    min-height: 100px;
    resize: vertical;
}

#modalSubmit {
    width: 100%;
    margin-top: 10px;
}

/* ===== ACCESSIBILITY ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 0 0 var(--radius) 0;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* ===== IMAGE OPTIMIZATION ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 
   Native lazy loading handles fetch, but we don't want to hide them initially with opacity 0
   unless we have a JS script to reveal them (which we removed/don't use for these images).
   So we remove the opacity: 0 rule or comment it out.
*/
/* 
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
} 
*/

/* ===== TOUCH OPTIMIZATION ===== */
@media (hover: none) and (pointer: coarse) {

    .service-card:hover,
    .team-card:hover,
    .process-card:hover,
    .case-card:hover {
        transform: none;
    }

    .nav-links a:hover:after {
        width: 0;
    }

    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }

    /* Увеличиваем hit area для тач-устройств */
    button,
    .btn-primary,
    .btn-secondary,
    .nav-links a,
    .mobile-menu a,
    .quick-btn {
        min-height: 44px;
        min-width: 44px;
    }

    input,
    textarea,
    select {
        font-size: 16px;
        /* Предотвращает зумирование в iOS */
    }
}

/* ===== PRINT STYLES ===== */
@media print {

    .ai-agent-wrapper,
    .menu-toggle,
    .btn-primary,
    .btn-secondary,
    .nav-cta,
    .cta-form,
    .modal,
    .footer {
        display: none !important;
    }

    .section-cta {
        background: white !important;
        color: var(--text) !important;
    }

    a {
        color: var(--text) !important;
        text-decoration: none !important;
    }

    .hero {
        padding: 40px 0 !important;
    }

    .section {
        padding: 30px 0 !important;
        break-inside: avoid;
    }
}

/* ===== TOGGLE SWITCH (MODERNIZED) ===== */
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

input:checked + .slider {
    background-color: var(--secondary);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--secondary);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* ===== RADIO GROUP (SEGMENTED CONTROL STYLE) ===== */
.radio-group {
    display: flex;
    background: var(--background-alt);
    padding: 4px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-top: 10px;
    gap: 0; /* Remove gap for connected buttons */
}

.radio-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

.radio-label input[type="radio"] {
    display: none; /* Hide default radio */
}

/* Style for when input is checked (using :has for modern browsers) */
.radio-label:has(input:checked) {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-weight: 600;
}

/* Fallback for older browsers: Active class (needs JS support if strict compatibility needed, but :has is widely supported now) */
/* Alternatively, simple styling for the checked state without :has is hard without JS or HTML change. 
   Assuming modern browser support based on "2026". */

/* ===== CHAT USER MESSAGE (MODERN) ===== */
.ai-message.user .message-bubble {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    margin-left: auto;
    margin-right: 0;
    border-radius: 18px;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
    border: none;
}

.ai-message.user .message-bubble p {
    color: white;
}

.ai-message.ai .message-bubble {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* ===== ANIMATIONS ===== */
@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.shake-animation {
    animation: shake 0.5s;
    animation-iteration-count: 2;
}

/* ===== NEW FORM STYLES ===== */
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

#servicePriceDisplay {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.design-toggle-row {
    margin-bottom: 20px;
    background: var(--background-alt);
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.toggle-label {
    font-weight: 500;
    color: var(--text);
}

#designPriceNote {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    display: none;
    line-height: 1.4;
}

/* ===== ПОЛИТИКА КОНФИДЕНЦИАЛЬНОСТИ ===== */
.modal-content-privacy {
    max-width: 800px;
    max-height: 90vh;
}

.privacy-content {
    line-height: 1.7;
    color: var(--text);
}

.privacy-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 600;
}

.privacy-content h4:first-of-type {
    margin-top: 0;
}

.privacy-content p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.privacy-content ul {
    margin-bottom: 20px;
    padding-left: 25px;
    color: var(--text-secondary);
}

.privacy-content ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.privacy-content a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.privacy-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.privacy-date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 25px;
    font-style: italic;
}

.privacy-content strong {
    color: var(--text);
    font-weight: 600;
}

@media (max-width: 768px) {
    .modal-content-privacy {
        max-width: 100%;
        padding: 25px 20px;
    }

    .privacy-content h4 {
        font-size: 1.1rem;
        margin-top: 25px;
    }
}

/* ===== ЧЕКБОКС СОГЛАСИЯ НА ОБРАБОТКУ ПД ===== */
.privacy-checkbox-row {
    margin-bottom: 20px;
}

.privacy-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.privacy-checkbox-label input[type="checkbox"] {
    margin-top: 0.15em;
    flex-shrink: 0;
    width: 1em;
    height: 1em;
    min-width: 1em;
    min-height: 1em;
    max-width: 1em;
    max-height: 1em;
    cursor: pointer;
    accent-color: var(--primary);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: white;
    position: relative;
    transition: var(--transition);
    padding: 0;
    box-sizing: border-box;
}

.privacy-checkbox-label input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.privacy-checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0.4em;
    height: 0.4em;
    border-radius: 50%;
    background: white;
}

.privacy-checkbox-label input[type="checkbox"]:hover {
    border-color: var(--primary);
}

.privacy-checkbox-label input[type="checkbox"]:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.privacy-link {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.privacy-link:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

.privacy-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .privacy-checkbox-label {
        font-size: 0.85rem;
    }
}

/* ===== PRODUCT CARDS (main page — links to landings) ===== */
a.product-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
a.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
a.product-card .btn-service {
    pointer-events: none;
}

.product-card .service-description {
    margin-bottom: 0.75rem;
}

.product-card-features {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.product-card-features li {
    padding: 3px 0;
    padding-left: 20px;
}

.product-card-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem !important;
    font-style: italic;
}

/* Цена и кнопка прижаты к низу карточки — кнопки на одном уровне */
.product-card .service-price {
    margin-top: auto;
    padding-top: 1rem;
}

/* Изображение в карточке бота на главной */
.product-card-image {
    width: calc(100% + 48px);
    margin: -28px -24px 1rem -24px;
    height: 140px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    flex-shrink: 0;
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 768px) {
    .product-card-image {
        width: calc(100% + 40px);
        margin: -24px -20px 0.75rem -20px;
        height: 120px;
    }
}

/* ===== LANDING PAGES ===== */
.landing-hero {
    padding: 80px 0 100px;
    text-align: center;
}

/* Герой страницы ботов / сайтов / MiniApps — на весь первый экран, фон, затемнение, текст + форма */
.landing-hero-bots,
.landing-hero-sites,
.landing-hero-miniapps {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Обёртка фона героя: десктопный и мобильный вариант + затемнение */
.landing-hero-bg-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.landing-hero-bg-wrap .landing-hero-bg-picture {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
}
.landing-hero-bg-wrap .landing-hero-bg-picture > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.landing-hero-bg-wrap .landing-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.landing-hero-bg-wrap .landing-hero-bg-mobile {
    display: none;
}
.landing-hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    z-index: 1;
}
@media (max-width: 768px) {
    .landing-hero-bg-wrap .landing-hero-bg-desktop {
        display: none;
    }
    .landing-hero-bg-wrap .landing-hero-bg-mobile {
        display: block;
    }
}
/* Стрелка «пролистать вниз» с анимацией */
.landing-hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    text-decoration: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: color 0.2s, background 0.2s;
    animation: scroll-arrow-bounce 2s ease-in-out infinite;
}
.landing-hero-scroll:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}
@keyframes scroll-arrow-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

.landing-hero-bots .landing-hero-inner,
.landing-hero-sites .landing-hero-inner,
.landing-hero-miniapps .landing-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 24px 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
/* Левая колонка: заголовок → кнопки (только мобильные) → блок в бордере, идут друг за другом; чуть ниже верха формы */
.landing-hero-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
    margin-top: 1.25rem;
}
.landing-hero-bots .landing-hero-text,
.landing-hero-sites .landing-hero-text,
.landing-hero-miniapps .landing-hero-text {
    text-align: left;
    padding-right: 2rem;
}
.landing-hero-stats-wrap {
    margin-top: 0;
    width: fit-content;
    max-width: 100%;
}
.landing-hero-stats-wrap .landing-hero-stats {
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
}
.landing-hero-bots .landing-hero-title,
.landing-hero-bots .landing-hero-subtitle,
.landing-hero-sites .landing-hero-title,
.landing-hero-sites .landing-hero-subtitle,
.landing-hero-miniapps .landing-hero-title,
.landing-hero-miniapps .landing-hero-subtitle {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.landing-hero-bots .landing-hero-subtitle,
.landing-hero-sites .landing-hero-subtitle,
.landing-hero-miniapps .landing-hero-subtitle {
    color: rgba(200, 208, 220, 0.95);
}
.landing-hero-stats {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-top: 2.75rem;
    padding: 1.15rem 3.75rem 1.15rem 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
    box-sizing: border-box;
}
.landing-hero-stats-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
}
.landing-hero-stats-body {
    flex: 1;
    min-width: 0;
    text-align: left;
}
.landing-hero-stats-title {
    margin: 0 0 0.45rem 0;
    color: var(--primary-light);
    font-weight: 700;
    font-size: 0.875rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    text-align: left;
}
.landing-hero-stats-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.landing-hero-stats-list li {
    margin-bottom: 0.3rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.8rem;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.landing-hero-stats-list li:last-child {
    margin-bottom: 0;
}
.landing-hero-stats-dot {
    flex-shrink: 0;
    font-size: 0.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5em;
}
.landing-hero-stats-text {
    margin: 0;
    flex: 1;
    min-width: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.8rem;
    line-height: 1.45;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Кнопки в герое: только на мобильных (на десктопе показывается форма) */
.landing-hero-actions {
    display: none;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-left: auto;
}
.landing-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
    min-height: 48px;
    box-sizing: border-box;
}
.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.btn-hero-outline:hover,
.btn-hero-outline:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
    outline: none;
}

/* Белая полупрозрачная форма в герое (оставлена для возможного использования) */
.landing-hero-form-wrap {
    max-width: 400px;
    margin-left: auto;
    display: flex;
    align-items: center;
}
.landing-hero-form {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.landing-hero-form-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.35rem;
    margin: 0 0 0.25rem 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.landing-hero-form-note {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0 0 1.5rem 0;
}
.landing-hero-form input,
.landing-hero-form textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
}
.landing-hero-form textarea {
    resize: vertical;
    min-height: 90px;
}
.landing-hero-form input::placeholder,
.landing-hero-form textarea::placeholder {
    color: #64748b;
}
.landing-hero-form input:focus,
.landing-hero-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}
.landing-hero-form input:focus::placeholder,
.landing-hero-form textarea:focus::placeholder {
    color: #94a3b8;
}
.landing-hero-form .btn-primary {
    width: 100%;
    margin-top: 0.25rem;
    margin-bottom: 0;
    padding: 14px 20px;
}
.landing-hero-form .btn-block {
    display: block;
}
@media (max-width: 768px) {
    .landing-hero-form .btn-primary {
        width: auto;
        max-width: 220px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}

@media (max-width: 900px) {
    .landing-hero-bots .landing-hero-inner,
    .landing-hero-sites .landing-hero-inner,
    .landing-hero-miniapps .landing-hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding-top: 6rem;
        padding-left: 16px;
        padding-right: 16px;
    }
    .landing-hero-left {
        margin-top: 0;
    }
    .landing-hero-bots .landing-hero-text,
    .landing-hero-sites .landing-hero-text,
    .landing-hero-miniapps .landing-hero-text {
        text-align: center;
        padding-right: 0;
    }
    .landing-hero-form-wrap {
        display: none;
    }
    .landing-hero-actions {
        display: flex;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    .landing-hero-actions .landing-hero-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-height: 42px;
    }
    .landing-hero-actions .btn-primary.landing-hero-btn {
        width: auto;
        max-width: 180px;
    }
    .landing-hero-stats-wrap {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
}
.landing-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.landing-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.landing-hero .btn-hero {
    margin: 0;
}
.landing-section {
    padding: 60px 0;
}
.landing-section .section-header {
    margin-bottom: 3rem;
}
.landing-section.section-services .section-header {
    text-align: center;
}
.landing-section .section-subtitle {
    margin-bottom: 3rem;
}
.landing-cards {
    display: grid;
    gap: 1.5rem;
}
.landing-cards.grid-2 { grid-template-columns: repeat(2, 1fr); }
.landing-cards.grid-3 { grid-template-columns: repeat(3, 1fr); }
.landing-cards.grid-4 { grid-template-columns: repeat(4, 1fr); }
.landing-cards-stack { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }

/* Плавное появление карточек по одной при скролле — только на мобильной (блок «Что умеют наши боты» на странице Ботов) */
@media (max-width: 768px) {
    .landing-cards-reveal-mobile .landing-card {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    }
    .landing-cards-reveal-mobile .landing-card.is-in-view {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Блок «Где уже работает MiniApp» — две колонки: категории слева, цитаты справа */
.miniapp-where-section {
    position: relative;
    overflow: hidden;
}
/* Фон секции MiniApp: десктопный и мобильный вариант + затемнение */
.miniapp-where-bg-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.miniapp-where-bg-wrap .miniapp-where-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.miniapp-where-bg-wrap .miniapp-where-bg-mobile {
    display: none;
}
.miniapp-where-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}
@media (max-width: 768px) {
    .miniapp-where-bg-wrap .miniapp-where-bg-desktop {
        display: none;
    }
    .miniapp-where-bg-wrap .miniapp-where-bg-mobile {
        display: block;
    }
}
.miniapp-where-section .container {
    position: relative;
    z-index: 1;
}
.miniapp-where-section .section-header {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.miniapp-where-grid {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: #fff;
}
.miniapp-where-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 80px;
    border-bottom: 1px solid var(--border);
}
.miniapp-where-row:last-child {
    border-bottom: none;
}
.miniapp-where-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--background-alt);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}
.miniapp-where-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.miniapp-where-quote {
    margin: 0;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text);
    font-style: italic;
    line-height: 1.5;
    border-left: 1px solid var(--border);
    display: flex;
    align-items: center;
    background: #fff;
}
@media (max-width: 700px) {
    .miniapp-where-row {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .miniapp-where-label {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border);
    }
    .miniapp-where-quote {
        border-left: none;
        border-bottom: 1px solid var(--border);
        padding: 0.75rem 1rem;
    }
    .miniapp-where-row:last-child .miniapp-where-quote {
        border-bottom: none;
    }
}
.landing-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.landing-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}
.landing-card h3 {
    margin-bottom: 0.4rem;
}
.landing-card-subtitle {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}
.landing-card p {
    margin: 0;
    font-size: 0.9rem;
}
.landing-card-desc {
    margin-top: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.landing-card-example {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* Блок «Какой сайт принесёт вам клиентов?» — карточки выбора типа сайта */
.site-type-section {
    background: var(--background-alt, #f8fafc);
}
.site-type-title {
    text-align: center;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2.5rem;
    line-height: 1.3;
}
.site-type-title-highlight {
    color: var(--primary);
}
.site-type-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}
.site-type-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}
.site-type-card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.35rem 0.6rem;
    white-space: nowrap;
}
.site-type-card-badge i {
    margin-right: 0.25rem;
    color: #f59e0b;
}
.site-type-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    align-self: center;
}
.site-type-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.35rem 0;
}
.site-type-card-desc {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.2rem 0;
}
.site-type-card-desc-secondary {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}
.site-type-launch {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}
.site-type-launch-num {
    color: var(--primary);
    font-weight: 600;
}
.site-type-btn {
    margin-top: auto;
    width: 100%;
    align-self: stretch;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: opacity 0.2s, transform 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.site-type-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}
.site-type-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.site-type-modal-content {
    max-width: 480px;
}
.site-type-modal-lead {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .site-type-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .site-type-title {
        margin-bottom: 1.75rem;
        font-size: 1.35rem;
    }
    .site-type-cards {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .site-type-card {
        padding: 1.25rem;
    }
    .site-type-card-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }
}

.process-steps {
    list-style: none;
    counter-reset: step;
    max-width: 560px;
    margin: 0 auto;
}
.process-steps li {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 1.5rem;
    counter-increment: step;
}
.process-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Как мы делаем сайты — шаги слева, иконки справа по строкам, по центру */
.how-we-build-section .section-header {
    margin-bottom: 2.5rem;
    text-align: center;
}
.how-we-build-section .container {
    display: block;
    width: 100%;
}
.how-we-build {
    display: grid;
    grid-template-columns: 1fr 100px;
    grid-template-rows: repeat(5, auto);
    gap: 0 2rem;
    align-items: start;
    width: 720px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    transform: translateX(35px);
}
@media (max-width: 900px) {
    .how-we-build {
        transform: none;
    }
}
.how-we-build-step {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    gap: 0 1rem;
    align-items: start;
    padding: 1rem 0 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}
.how-we-build-step:last-child {
    border-bottom: none;
}
.how-we-build-step:last-child .how-we-build-arrow {
    display: none;
}
.how-we-build-step-box {
    grid-row: 1 / 3;
    width: 56px;
    height: 56px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.how-we-build-step-num {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    line-height: 1;
}
.how-we-build-step-body {
    grid-column: 2;
    grid-row: 1 / 3;
}
.how-we-build-step-title {
    font-size: 1.15rem;
    margin: 0 0 0.35rem 0;
    color: var(--text);
}
.how-we-build-step-text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
}
.how-we-build-arrow {
    grid-column: 1;
    grid-row: 3;
    color: var(--primary);
    opacity: 0.6;
    font-size: 1rem;
    margin: 0.25rem 0 0;
    text-align: center;
}
.how-we-build-dot-cell {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.5rem 0 0;
}
.how-we-build-progress-line {
    grid-column: 2;
    grid-row: 1 / 6;
    position: absolute;
    right: 50px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 2px;
    pointer-events: none;
}
.how-we-build-progress-dot {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.15);
}
.how-we-build-after {
    padding: 3.5rem 0 4rem;
    text-align: center;
}
.how-we-build-scroll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    color: var(--primary);
    font-size: 1.5rem;
    text-decoration: none;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--background-alt);
    transition: color 0.2s, background 0.2s, border-color 0.2s;
    animation: how-we-build-arrow-bounce 2s ease-in-out infinite;
}
.how-we-build-scroll:hover {
    color: var(--primary-dark);
    background: #fff;
    border-color: var(--primary);
}
@keyframes how-we-build-arrow-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}
@media (max-width: 900px) {
    .how-we-build {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 0.25rem 0;
    }
    .how-we-build-progress-line {
        display: none;
    }
    .how-we-build-dot-cell {
        padding: 0.25rem 0;
    }
    .how-we-build-step {
        padding: 0.5rem 0 1rem;
    }
    .how-we-build-after {
        padding: 2.5rem 0 3rem;
    }
}
@media (max-width: 600px) {
    .how-we-build-step {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 0.5rem 0;
    }
    .how-we-build-step-box {
        grid-row: auto;
        grid-column: 1;
        margin: 0 auto;
    }
    .how-we-build-step-body {
        grid-column: 1;
        grid-row: auto;
    }
    .how-we-build-arrow {
        grid-column: 1;
        margin: 0.5rem auto 0;
    }
}

/* На мобильной в блоке «Как мы делаем сайты» (страница Сайты) — только цифровые иконки */
@media (max-width: 768px) {
    .how-we-build-section .how-we-build-dot-cell {
        display: none !important;
    }
}

.faq-list { max-width: 640px; margin: 0 auto; }
.faq-item { margin-bottom: 2rem; }
.faq-item h4 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.faq-item p { margin: 0; font-size: 0.95rem; }
.cases-grid-static {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.landing-list {
    list-style: none;
    max-width: 400px;
    margin: 0 auto;
}
.landing-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}
.landing-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}
.case-card-featured { max-width: 720px; margin: 0 auto 2rem; }
.case-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.case-detail-back:hover { color: var(--primary-dark); }
.case-detail-header { margin-bottom: 1.5rem; }
.case-detail-header h1 { margin-bottom: 0.5rem; }
.case-detail-meta { font-size: 0.9rem; color: var(--text-secondary); }
.case-detail-meta span { margin-right: 1rem; }
.case-detail-visual {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.case-detail-visual img { width: 100%; height: auto; display: block; }
.case-detail-kpi { margin-bottom: 1.5rem; }
.case-detail-body { margin-bottom: 2rem; line-height: 1.7; }
.case-detail-cta { text-align: center; padding: 2rem 0; }
.case-detail-cta p { margin-bottom: 1rem; }

/* Пакеты сайтов на лендинге */
.site-packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.site-package-card { min-height: 100%; display: flex; flex-direction: column; }
.site-package-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.site-package-name {
    margin-bottom: 0.35rem;
    text-align: center;
}
.site-package-for {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: center;
}
.site-package-card .service-price { margin-top: auto; padding-top: 1rem; }
.site-package-card .btn-service { margin-top: 0.75rem; }
@media (max-width: 1024px) {
    .site-packages-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .landing-cards.grid-4 { grid-template-columns: repeat(2, 1fr); }
    .landing-cards.grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .landing-hero { padding: 48px 0 64px; }
    .landing-hero-bots,
    .landing-hero-sites,
    .landing-hero-miniapps { padding: 0; min-height: 100vh; }
    .landing-hero-bots .landing-hero-inner,
    .landing-hero-sites .landing-hero-inner,
    .landing-hero-miniapps .landing-hero-inner { padding: 0 16px; }
    .landing-section { padding: 40px 0; }
    .landing-cards.grid-2,
    .landing-cards.grid-4,
    .landing-cards.grid-3 { grid-template-columns: 1fr; }
    .cases-grid-static { grid-template-columns: 1fr; }
}

/* ===== ГЛАВНАЯ: ПРОДУКТ — СИСТЕМА БРОНИРОВАНИЯ (dark, премиум) ===== */
.page-home-product .hero-product {
    margin-top: 72px;
    padding: 80px 0 100px;
    position: relative;
    background: #0f172a;
    color: #f1f5f9;
    min-height: 0;
}
.page-home-product .hero-product-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.page-home-product .hero-product-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.page-home-product .hero-product-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.page-home-product .hero-product-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.85) 50%, rgba(15, 23, 42, 0.9) 100%);
    z-index: 1;
}
.page-home-product .hero-product .container {
    margin-left: 0;
    margin-right: auto;
    padding-left: 1cm;
}
.page-home-product .hero-product-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    text-align: left;
}
.page-home-product .hero-product-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.25;
}
.page-home-product .hero-product-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.page-home-product .hero-product-bullets {
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 0;
}
.page-home-product .hero-product-bullets li {
    margin-bottom: 0.5rem;
    color: #e2e8f0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.page-home-product .hero-product-bullets li i {
    color: #38bdf8;
    flex-shrink: 0;
}
.page-home-product .hero-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.page-home-product .btn-hero-product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    background: var(--primary);
    color: #fff;
    border: none;
    transition: var(--transition);
}
.page-home-product .btn-hero-product:hover {
    background: var(--primary-dark);
    color: #fff;
}
.page-home-product .btn-hero-product-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    background: transparent;
    color: #e2e8f0;
    border: 1px solid #475569;
    transition: var(--transition);
}
.page-home-product .btn-hero-product-outline:hover {
    border-color: #38bdf8;
    color: #38bdf8;
}
.page-home-product .hero-product-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.page-home-product .hero-product-visual-placeholder {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.page-home-product .hero-product-phone,
.page-home-product .hero-product-admin {
    width: 140px;
    height: 220px;
    border-radius: 24px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #94a3b8;
    font-size: 0.8rem;
}
.page-home-product .hero-product-phone i,
.page-home-product .hero-product-admin i {
    font-size: 2rem;
    color: #38bdf8;
}
.page-home-product .hero-product-admin { height: 180px; }

/* Секция «С какими проблемами сталкиваются заведения» — dark grid в стиле референса */
.section-problems-dark {
    padding: 60px 0;
    background: #1a1a1a;
    color: #fff;
}
.section-problems-dark-title {
    text-align: center;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 3rem;
}
.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    overflow: hidden;
    background: #1a1a1a;
}
.problems-grid-cell {
    padding: 2rem 1.5rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}
.problems-grid-cell:nth-child(3n) {
    border-right: none;
}
.problems-grid-cell:nth-child(n + 4) {
    border-bottom: none;
}
.problems-grid-cell:last-child {
    border-right: none;
    border-bottom: none;
}
.problems-cell-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem 0;
}
.problems-cell-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
}
.problems-cell-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
    max-width: 260px;
}
.problems-cta-wrap {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 0;
}
.problems-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.problems-cta-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
@media (max-width: 768px) {
    .section-problems-dark { padding: 40px 0; }
    .section-problems-dark-title { margin-bottom: 2rem; }
    .problems-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .problems-grid-cell {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        min-height: 140px;
    }
    .problems-grid-cell:last-child {
        border-bottom: none;
    }
}

/* Секция «Как система решает эти проблемы» — светлая сетка в том же стиле */
.section-solutions-light {
    padding: 60px 0;
    background: #fff;
    color: var(--text);
}
.section-solutions-light-title {
    text-align: center;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.section-solutions-light-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
    background: #fff;
}
.solutions-grid-cell {
    padding: 2rem 1.5rem;
    text-align: center;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}
.solutions-grid-cell:nth-child(3n) {
    border-right: none;
}
.solutions-grid-cell:nth-child(n + 4) {
    border-bottom: none;
}
.solutions-grid-cell:last-child {
    border-right: none;
    border-bottom: none;
}
.solutions-cell-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.5rem 0;
}
.solutions-cell-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}
.solutions-cell-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text-secondary);
    max-width: 260px;
}
@media (max-width: 768px) {
    .section-solutions-light { padding: 40px 0; }
    .section-solutions-light-subtitle { margin-bottom: 2rem; }
    .solutions-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .solutions-grid-cell {
        border-right: none;
        border-bottom: 1px solid var(--border);
        min-height: 160px;
    }
    .solutions-grid-cell:last-child {
        border-bottom: none;
    }
}

/* Тарифы системы бронирования (главная) — тёмная тема как блок проблем */
.section-tariffs-product {
    padding: 60px 0;
    background: #1a1a1a;
    color: #fff;
}
.section-tariffs-product .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #fff;
}
.tariffs-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}
.tariff-product-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.tariff-product-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.tariff-product-card-featured {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}
.tariff-product-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #38bdf8;
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}
.tariff-product-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem 0;
}
.tariff-product-tagline {
    font-size: 0.95rem;
    color: #38bdf8;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
}
.tariff-product-for {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 1rem 0;
    line-height: 1.45;
}
.tariff-product-what {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.75rem 0;
}
.tariff-product-features {
    flex: 1;
    margin-bottom: 1.25rem;
}
.tariff-product-features h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin: 0.75rem 0 0.25rem 0;
}
.tariff-product-features h4:first-child {
    margin-top: 0;
}
.tariff-product-features p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}
.tariff-product-price {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 1rem;
}
.tariff-product-price-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}
.tariff-product-price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}
.btn-tariff-product {
    display: inline-block;
    text-align: center;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: #fff;
    background: var(--primary);
    transition: var(--transition);
}
.btn-tariff-product:hover {
    background: var(--primary-dark);
    color: #fff;
}
.tariffs-product-footer {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}
.tariffs-product-footer a {
    color: #38bdf8;
    text-decoration: none;
}
.tariffs-product-footer a:hover {
    text-decoration: underline;
}
@media (max-width: 1024px) {
    .tariffs-product-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
}
@media (max-width: 768px) {
    .section-tariffs-product { padding: 40px 0; }
    .tariff-product-card { padding: 1.5rem; }
}

/* Мобильная адаптация hero продукта */
@media (max-width: 1024px) {
    .page-home-product .hero-product-bullets { display: flex; flex-wrap: wrap; }
}
@media (max-width: 768px) {
    .page-home-product .hero-product {
        margin-top: 80px;
        padding: 90px 0 60px;
    }
    .page-home-product .hero-product-inner,
    .page-home-product .hero-product-content {
        text-align: center;
    }
    .page-home-product .hero-product-title { font-size: 1.5rem; }
    .page-home-product .hero-product-subtitle { font-size: 1rem; }
    .page-home-product .hero-product-bullets {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
        text-align: left;
    }
    .page-home-product .hero-product-bullets li i {
        min-width: 1.25rem;
        text-align: center;
    }
    .page-home-product .hero-product-actions {
        justify-content: center;
    }
}

