:root {
    --bg: #fafbfc;
    --bg-alt: #f0f4f8;
    --surface: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --accent: #2563eb;
    --accent-2: #7c3aed;
    --accent-glow: rgba(37, 99, 235, 0.15);
    --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
    --border: rgba(15, 23, 42, 0.08);
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --hero-bg: #0a0a0f;
    --hero-text: #f1f5f9;
    --hero-muted: #94a3b8;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, sans-serif;
    background: #fff;
    color: #111827;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== ШАПКА ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.header--hero.header--hero-top:not(.scrolled) {
    background: transparent;
}

.header--hero.header--hero-top:not(.scrolled) .logo {
    color: #fff;
}

.header--hero.header--hero-top:not(.scrolled) .nav a {
    color: var(--hero-muted);
}

.header--hero.header--hero-top:not(.scrolled) .nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.header--hero.header--hero-top:not(.scrolled) .menu-toggle span {
    background: #fff;
}

.header--hero.header--hero-top:not(.scrolled) .menu-toggle {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition);
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 8px;
    font-weight: 500;
    font-size: 15px;
}

.nav a {
    text-decoration: none;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 10px;
    transition: var(--transition);
}

.nav a:hover,
.nav a.active {
    color: var(--accent);
    background: var(--accent-glow);
}

.menu-toggle {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    margin: 4px 0;
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gradient);
    color: #fff;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: var(--surface);
    color: var(--text);
    border: 1.5px solid var(--border);
    box-shadow: none;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow);
}

.btn-outline--dark {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

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

.btn-telegram {
    background: #229ed9;
    box-shadow: 0 4px 16px rgba(34, 158, 217, 0.3);
}

.btn-telegram:hover {
    box-shadow: 0 8px 24px rgba(34, 158, 217, 0.4);
}

.link-arrow {
    color: #111;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.link-arrow:hover {
    gap: 10px;
}

/* ===== ТЁМНЫЙ ГЕРОЙ ===== */
.hero--dark {
    padding: 140px 0 80px;
    background: var(--hero-bg);
    color: var(--hero-text);
    position: relative;
    overflow: hidden;
}

.hero-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(37, 99, 235, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(124, 58, 237, 0.2) 0%, transparent 55%);
    pointer-events: none;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    min-width: 0;
    animation: fadeUp 0.8s ease-out;
}

.hero-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hero-muted);
}

.hero-tag--glow {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.4);
    color: #93c5fd;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.hero--dark h1 {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero-words {
    display: inline-block;
    height: 1.1em;
    overflow: hidden;
    vertical-align: bottom;
    position: relative;
}

.hero-words-track {
    display: flex;
    flex-direction: column;
    animation: heroWordSlide 12s infinite;
}

.hero-word {
    display: block;
    height: 1.1em;
    line-height: 1.1;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

@keyframes heroWordSlide {
    0%, 18% { transform: translateY(0); }
    20%, 38% { transform: translateY(-1.1em); }
    40%, 58% { transform: translateY(-2.2em); }
    60%, 78% { transform: translateY(-3.3em); }
    80%, 98% { transform: translateY(-4.4em); }
    100% { transform: translateY(0); }
}

.hero-services-slider {
    overflow: hidden;
    margin-bottom: 28px;
    max-width: 100%;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.hero-services-track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: heroServicesScroll 28s linear infinite;
}

.hero-services-slider:hover .hero-services-track {
    animation-play-state: paused;
}

.hero-service-chip {
    flex-shrink: 0;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hero-muted);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.hero-service-chip:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.4);
    color: #93c5fd;
}

@keyframes heroServicesScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero--dark h1 span.hero-accent {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero--dark p {
    font-size: 18px;
    color: var(--hero-muted);
    max-width: 500px;
    margin-bottom: 20px;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--hero-muted);
    opacity: 0.85;
}

.hero-visual {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 420px;
    animation: fadeUp 0.8s ease-out 0.2s both;
}

.hero-mockup {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(37, 99, 235, 0.15);
}

.mockup-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-bar > span:not(.mockup-url) {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.mockup-bar > span:not(.mockup-url):nth-child(1) { background: #ef4444; opacity: 0.8; }
.mockup-bar > span:not(.mockup-url):nth-child(2) { background: #eab308; opacity: 0.8; }
.mockup-bar > span:not(.mockup-url):nth-child(3) { background: #22c55e; opacity: 0.8; }

.mockup-url {
    flex: 1;
    margin-left: 8px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    font-size: 11px;
    color: var(--hero-muted);
    font-family: ui-monospace, monospace;
}

.mockup-screen {
    min-height: 380px;
    overflow: hidden;
    background: #0f172a;
}

.mockup-screen .site-mock--hero {
    min-height: 380px;
}

.site-mock--hero .sm-hero--modern {
    flex: 1;
    padding: 24px 20px;
}

.site-mock--hero .sm-hero--modern h2 {
    font-size: 24px;
}

.site-mock--hero .sm-stats strong {
    font-size: 16px;
}

.hero-float {
    position: absolute;
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px 20px;
    animation: float 4s ease-in-out infinite;
}

.hero-float--glow {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(37, 99, 235, 0.15);
}

.hero-float--1 {
    bottom: -16px;
    left: -24px;
}

.hero-float--2 {
    top: 16px;
    right: -24px;
    animation-delay: 1s;
}

.hero-float--metrics {
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    min-width: 200px;
}

.hero-float--metrics .hero-metric strong {
    font-size: 18px;
}

.hero-float--metrics .hero-metric span {
    font-size: 11px;
}

.hero-metric strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #4ade80;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
    line-height: 1.2;
}

.hero-metric span {
    font-size: 13px;
    color: var(--hero-muted);
}

.hero-float strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #4ade80;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
}

.hero-float span {
    font-size: 13px;
    color: var(--hero-muted);
}

/* ===== TRUST ===== */
.trust {
    padding: 64px 0;
    background: #fff;
    border-top: 1px solid #e2e5e9;
    border-bottom: 1px solid #e2e5e9;
}

.trust-label {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
    margin-bottom: 10px;
}

.trust-lead {
    text-align: center;
    font-size: 17px;
    color: #374151;
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.65;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid #e2e5e9;
}

.trust-logo {
    font-size: 15px;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: -0.2px;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-stat {
    text-align: left;
    padding: 0 24px;
    border-left: 1px solid #e2e5e9;
}

.trust-stat:first-child {
    padding-left: 0;
    border-left: none;
}

.trust-stat strong {
    display: block;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1e3a5f;
}

.trust-stat span {
    font-size: 14px;
    color: #6b7280;
    margin-top: 6px;
    display: block;
    line-height: 1.45;
}

/* ===== КОМАНДА ===== */
.team-carousel {
    position: relative;
    min-width: 0;
    padding: 0 52px;
}

.team-slider {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    min-width: 0;
    width: 100%;
    padding: 4px 0 16px;
    scrollbar-width: none;
}

.team-slider::-webkit-scrollbar {
    display: none;
}

.team-slider.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.team-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 20px;
    width: max-content;
}

.team-card {
    flex: 0 0 auto;
    width: clamp(300px, 40vw, 380px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e2e5e9;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.team-card:hover {
    border-color: #1e3a5f;
}

.team-photo {
    flex: 0 0 120px;
    width: 120px;
    min-height: 120px;
    overflow: hidden;
    background: #f5f6f8;
    position: relative;
}

.team-photo::after {
    display: none;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    pointer-events: none;
}

.team-info {
    flex: 1;
    min-width: 0;
    padding: 18px 18px 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
    letter-spacing: -0.3px;
}

.team-role {
    font-size: 12px;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 8px;
}

.team-bio {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.team-badge {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 600;
    color: #1e3a5f;
    background: #f5f6f8;
    border: 1px solid #e2e5e9;
    padding: 4px 10px;
    border-radius: 4px;
}

.team-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #e2e5e9;
    background: #fff;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.team-nav svg {
    width: 20px;
    height: 20px;
}

.team-nav:hover {
    border-color: #1e3a5f;
    color: #1e3a5f;
}

.team-nav--prev { left: 0; }
.team-nav--next { right: 0; }

.team-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.team-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.2);
    transition: var(--transition);
}

.team-dot.is-active {
    width: 24px;
    border-radius: 4px;
    background: #1e3a5f;
}

.form-manager {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding: 14px 16px;
    background: #f5f6f8;
    border: 1px solid #e2e5e9;
    border-radius: 8px;
}

.form-manager img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--surface);
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.form-manager strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.form-manager span {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== ГЕРОЙ СТРАНИЦЫ ===== */
.page-hero {
    padding: 140px 0 64px;
    position: relative;
    overflow: hidden;
    background: var(--hero-bg);
    color: var(--hero-text);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 60% 30%, rgba(37, 99, 235, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

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

.page-hero .section-label {
    color: #93c5fd;
}

.page-hero h1 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}

.page-hero h1 span {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    font-size: 18px;
    color: var(--hero-muted);
    max-width: 640px;
    line-height: 1.75;
}

.page-hero-anchors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.page-hero-anchors span {
    font-size: 13px;
    font-weight: 600;
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.25);
    padding: 6px 14px;
    border-radius: 100px;
}

/* ===== СЕКЦИИ (строгий B2B) ===== */
.section {
    padding: 112px 0;
    position: relative;
}

.section .container,
.trust .container,
.form-section .container {
    position: relative;
}

.section--alt,
.section--team,
.section--guarantees,
.section--faq,
.section--package,
.section--steps {
    background: #f5f6f8;
}

.section--services,
.section--audience,
.section--advantages,
.section--cases,
.section--services-page {
    background: #fff;
}

.section-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
    margin-bottom: 12px;
}

.section-label::before {
    display: none;
}

.section-title {
    font-size: clamp(28px, 3.2vw, 36px);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    color: #111827;
}

.section-desc {
    font-size: 17px;
    color: #6b7280;
    max-width: 560px;
    line-height: 1.7;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 24px;
}

/* ===== BENTO GRID ===== */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "design layout"
        "seo    content";
    gap: 20px;
    align-items: stretch;
}

.bento-item {
    background: #fff;
    border: 1px solid #e2e5e9;
    border-radius: 8px;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bento-item:nth-child(1) { grid-area: design; }
.bento-item:nth-child(2) { grid-area: layout; }
.bento-item:nth-child(3) { grid-area: seo; }
.bento-item:nth-child(4) { grid-area: content; }

.bento-item::before {
    display: none;
}

.bento-item:hover {
    border-color: #1e3a5f;
}

.bento-item--wide {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

.bento-item .icon {
    width: 44px;
    height: 44px;
    background: #f5f6f8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #1e3a5f;
}

.bento-item--wide .icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.bento-item .icon svg {
    width: 22px;
    height: 22px;
}

.bento-item h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.bento-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ===== ДЕТАЛЬНАЯ УСЛУГА ===== */
.service-detail {
    display: grid;
    grid-template-columns: 72px 1fr 240px;
    gap: 32px;
    align-items: start;
    padding: 32px;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #e2e5e9;
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.service-detail:hover {
    border-color: #1e3a5f;
}

.service-detail .icon {
    width: 52px;
    height: 52px;
    background: #f5f6f8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3a5f;
}

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

.service-detail .content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-detail .content p {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 560px;
    line-height: 1.75;
}

.service-detail .content .features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.service-detail .content .features span {
    font-size: 13px;
    font-weight: 500;
    background: #f5f6f8;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #e2e5e9;
}

.service-detail .price {
    text-align: right;
    font-weight: 800;
    font-size: 22px;
}

.service-detail .price small {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.btn-small {
    display: inline-flex;
    margin-top: 16px;
    background: #1e3a5f;
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-small:hover {
    background: #152a47;
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.adv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.adv-item {
    padding: 32px 28px;
    background: #fff;
    border: 1px solid #e2e5e9;
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.adv-item::before {
    display: none;
}

.adv-item:hover {
    border-color: #1e3a5f;
}

.adv-item .adv-num {
    font-size: 13px;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 12px;
    opacity: 1;
    background: none;
    -webkit-text-fill-color: unset;
}

.adv-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.adv-item p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
}

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

/* ===== ДЛЯ КОГО ===== */
.audience-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 48px 64px;
    align-items: start;
}

.audience-intro {
    margin-bottom: 0;
    position: sticky;
    top: 120px;
}

.audience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.audience-item:nth-child(2) {
    margin-left: 48px;
    max-width: calc(100% - 48px);
}

.audience-item:nth-child(3) {
    margin-left: 96px;
    max-width: calc(100% - 96px);
}

.audience-item {
    padding: 32px 28px;
    background: #fff;
    border: 1px solid #e2e5e9;
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.audience-item:hover {
    border-color: #1e3a5f;
}

.audience-icon {
    font-size: 28px;
    margin-bottom: 16px;
}

.audience-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.audience-pain {
    font-size: 14px;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.06);
    border-left: 3px solid #dc2626;
    padding: 10px 12px;
    margin-bottom: 12px;
    line-height: 1.55;
    border-radius: 0 8px 8px 0;
}

.audience-solution {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ===== ГАРАНТИИ ===== */
.guarantee-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.guarantee-item {
    padding: 28px 24px;
    background: #fff;
    border: 1px solid #e2e5e9;
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.guarantee-item:hover {
    border-color: #1e3a5f;
}

.guarantee-item strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.guarantee-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
}

.faq-item {
    background: #fff;
    border: 1px solid #e2e5e9;
    border-radius: 8px;
    overflow: hidden;
}

.faq-item[open] {
    border-color: #1e3a5f;
}

.faq-item summary {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

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

.faq-item summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 400;
    color: #1e3a5f;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== ПАКЕТ ===== */
.package-card {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    padding: 36px;
    background: #fff;
    border: 2px solid #1e3a5f;
    border-radius: 8px;
}

.package-main h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.package-main > p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 20px;
}

.package-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.package-list li {
    font-size: 14px;
    color: var(--text);
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.package-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.package-price {
    text-align: center;
    padding: 28px 24px;
    background: #f5f6f8;
    border: 1px solid #e2e5e9;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.package-price strong {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.package-price small {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 6px;
}

.package-price .btn-small {
    margin-top: 20px;
}

/* ===== КЕЙСЫ + ДО/ПОСЛЕ ===== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
    align-items: stretch;
}

.case-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e5e9;
    border-radius: 8px;
    overflow: hidden;
}

.case-card:hover {
    border-color: #1e3a5f;
}

.compare {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 280px;
    overflow: hidden;
    user-select: none;
    touch-action: none;
    cursor: ew-resize;
    background: #0f172a;
}

.compare-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.compare-layer .site-mock {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.compare-before {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.compare-after {
    z-index: 1;
}

/* ===== SITE MOCKUPS (до/после) ===== */
.site-mock {
    width: 100%;
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
}

/* --- Старый сайт: общие --- */
.site-mock--before {
    font-size: 11px;
    line-height: 1.4;
}

/* Завод — до */
.site-mock--before.site-mock--factory {
    background: #d4d0c8;
}

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

.sm-old-header {
    background: linear-gradient(180deg, #003399, #001a66);
    color: #ffcc00;
    text-align: center;
    padding: 8px;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 1px 1px #000;
}

.sm-old-sidebar {
    width: 130px;
    background: #ece9d8;
    border-right: 2px inset #fff;
    padding: 10px 8px;
    vertical-align: top;
}

.sm-old-sidebar a {
    display: block;
    color: #0000ee;
    text-decoration: underline;
    margin-bottom: 4px;
    font-size: 11px;
}

.sm-old-sidebar small {
    color: #666;
    font-size: 9px;
}

.sm-old-content {
    background: #fff;
    padding: 8px 12px;
    vertical-align: top;
}

.sm-marquee {
    background: #ffff00;
    color: #cc0000;
    font-weight: bold;
    font-size: 10px;
    padding: 3px;
    margin-bottom: 8px;
    overflow: hidden;
    white-space: nowrap;
}

.sm-marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: smMarquee 10s linear infinite;
}

@keyframes smMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.sm-old-content p {
    font-size: 11px;
    color: #333;
    margin-bottom: 6px;
}

.sm-old-img {
    width: 120px;
    height: 80px;
    border: 1px solid #999;
    margin-top: 4px;
    background: linear-gradient(135deg, #bbb 0%, #999 100%);
    position: relative;
}

.sm-old-img::after {
    content: 'photo.jpg';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #666;
}

/* Стройка — до */
.site-mock--before.site-mock--build {
    background: #ffffcc;
}

.sm-old-banner {
    background: #cc0000;
    color: #ffff00;
    text-align: center;
    padding: 6px;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
}

.sm-old-body {
    padding: 10px 14px;
}

.sm-old-body h1 {
    color: #cc0000;
    font-size: 14px;
    text-align: center;
    margin-bottom: 6px;
}

.sm-old-body hr {
    border: 1px solid #999;
    margin: 6px 0;
}

.sm-old-body p {
    font-size: 11px;
    color: #333;
    text-align: center;
}

.sm-old-boxes {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 10px 0;
}

.sm-old-box {
    width: 100px;
    height: 70px;
    border: 2px dashed #999;
    background: #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #666;
    text-align: center;
}

.sm-old-footer-text {
    font-size: 9px !important;
    color: #999 !important;
    margin-top: 8px;
}

/* --- Новый сайт: общие --- */
.site-mock--after {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* Завод — после */
.site-mock--after.site-mock--factory {
    background: #0f172a;
    display: flex;
    flex-direction: column;
}

.sm-header--modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sm-logo {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
}

.sm-logo--dark {
    color: #0f172a;
}

.sm-nav {
    display: flex;
    gap: 12px;
}

.sm-nav span {
    font-size: 9px;
    color: #94a3b8;
    font-weight: 500;
}

.sm-nav--dark span {
    color: #64748b;
}

.sm-hero--modern {
    flex: 1;
    padding: 20px 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sm-hero--modern h2 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.sm-cta {
    align-self: flex-start;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
    font-family: inherit;
}

.sm-stats {
    display: flex;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sm-stats div {
    flex: 1;
    padding: 10px 8px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sm-stats div:last-child {
    border-right: none;
}

.sm-stats strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #60a5fa;
}

.sm-stats span {
    font-size: 8px;
    color: #64748b;
}

/* Стройка — после */
.site-mock--after.site-mock--build {
    background: #fff;
    display: flex;
    flex-direction: column;
}

.sm-header--light {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.sm-hero--build {
    flex: 1;
    min-height: 120px;
    background:
        linear-gradient(to bottom, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.75)),
        linear-gradient(160deg, #94a3b8 0%, #64748b 35%, #475569 65%, #334155 100%);
    display: flex;
    align-items: flex-end;
    padding: 12px 16px;
    position: relative;
}

.sm-hero--build::before {
    content: '';
    position: absolute;
    bottom: 28%;
    right: 12%;
    width: 72px;
    height: 52px;
    background: rgba(255, 255, 255, 0.18);
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
    opacity: 0.7;
}

.sm-hero--build::after {
    content: '';
    position: absolute;
    bottom: 28%;
    right: 22%;
    width: 36px;
    height: 28px;
    background: rgba(255, 255, 255, 0.12);
}

.sm-hero--build h2 {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.sm-hero--build p {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
    position: relative;
    z-index: 1;
}

.sm-hero-text {
    position: relative;
    z-index: 1;
}

.sm-projects {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    flex: 1;
}

.sm-project {
    flex: 1;
    height: 72px;
    border-radius: 8px;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.sm-project::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 55%;
    background: rgba(255, 255, 255, 0.35);
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.sm-project:nth-child(1) {
    background: linear-gradient(145deg, #cbd5e1, #94a3b8);
}

.sm-project:nth-child(2) {
    background: linear-gradient(145deg, #d6d3d1, #a8a29e);
}

.sm-project:nth-child(3) {
    background: linear-gradient(145deg, #bae6fd, #7dd3fc);
}

.compare-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #fff;
    z-index: 3;
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.compare-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M8 5l-5 7 5 7M16 5l5 7-5 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.compare-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 4;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

.compare-label {
    position: absolute;
    top: 12px;
    z-index: 5;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.compare-label--before { left: 12px; }
.compare-label--after { right: 12px; }

.compare-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.55);
    padding: 5px 14px;
    border-radius: 100px;
    pointer-events: none;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.compare:active .compare-hint,
.compare:focus-within .compare-hint {
    opacity: 0;
}

.case-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 28px;
}

.case-body .tag {
    display: inline-block;
    background: var(--gradient-soft);
    color: var(--accent);
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.case-body h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
}

.case-body p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
}

.case-body .result {
    margin-top: 16px;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    padding: 8px 16px;
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
    border-radius: 100px;
}

/* ===== ШАГИ ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-item {
    background: #fff;
    border: 1px solid #e2e5e9;
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
}

.step-item .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1e3a5f;
    color: #fff;
    font-weight: 700;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 18px;
}

.step-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== ФОРМА ===== */
.form-section {
    padding: 112px 0;
    background: #f5f6f8;
    border-top: 1px solid #e2e5e9;
}

.form-section-bg {
    display: none;
}

.form-panel {
    background: #fff;
    border: 1px solid #e2e5e9;
    border-radius: 8px;
}

.form-panel-inner {
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.form-panel-text h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    color: #111827;
}

.form-panel-text p {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.7;
}

.form-glass-inner,
.form-glass-text h2,
.form-glass-text p {
    /* legacy class aliases — use form-panel-* */
}

.form-section .btn {
    background: #1e3a5f;
    box-shadow: none;
}

.form-section .btn:hover {
    background: #152a47;
    box-shadow: none;
}

.form-benefits {
    list-style: none;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-benefits li {
    font-size: 14px;
    color: var(--text);
    padding-left: 22px;
    position: relative;
    line-height: 1.5;
}

.form-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1e3a5f;
    font-weight: 700;
}

.form-note {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.8;
    line-height: 1.5;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form-group input {
    flex: 1;
    min-width: 140px;
    padding: 14px 16px;
    border-radius: 6px;
    border: 1px solid #e2e5e9;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #1e3a5f;
    box-shadow: none;
}

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form-actions .btn {
    flex: 1;
    min-width: 160px;
}

.form-success {
    color: #16a34a;
    font-size: 14px;
    display: none;
}

/* Legacy dark form (services page fallback) */
.form-block {
    background: var(--text);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.form-block h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.form-block p {
    opacity: 0.7;
    font-size: 16px;
}

.form-block .form-group input {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.form-block .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* ===== ПОДВАЛ ===== */
.footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

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

/* ===== АНИМАЦИИ ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* transform на карусели ломает горизонтальный scroll в Safari/Chrome */
.team-carousel.reveal,
.team-carousel.reveal.visible {
    transform: none;
}

.reveal.stagger-1.visible { transition-delay: 0.05s; }
.reveal.stagger-2.visible { transition-delay: 0.12s; }
.reveal.stagger-3.visible { transition-delay: 0.19s; }
.reveal.stagger-4.visible { transition-delay: 0.26s; }

/* ===== АДАПТИВ ===== */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "design  layout"
            "seo     content";
    }

    .adv-grid,
    .adv-grid--6,
    .guarantee-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }

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

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

    .team-carousel {
        padding: 0 44px;
    }

    .team-card {
        width: clamp(280px, 70vw, 380px);
    }

    .package-card {
        grid-template-columns: 1fr;
    }

    .package-price {
        padding: 24px;
    }

    .service-detail {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 28px;
    }

    .service-detail .price {
        text-align: left;
        display: flex;
        gap: 20px;
        align-items: center;
        flex-wrap: wrap;
    }

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

    .form-panel-inner,
    .form-block {
        grid-template-columns: 1fr;
        padding: 36px 28px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        order: -1;
    }

    .hero-mockup {
        min-height: 280px;
    }

    .mockup-screen,
    .mockup-screen .site-mock--hero {
        min-height: 260px;
    }

    .hero-float {
        display: none;
    }

    .trust-stats {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .hero--dark {
        padding: 120px 0 64px;
        text-align: center;
    }

    .hero--dark p {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-note {
        text-align: center;
    }

    .trust-logos {
        gap: 24px;
    }

    .trust-stats {
        gap: 24px;
    }

    .adv-grid--6,
    .guarantee-grid {
        grid-template-columns: 1fr;
    }

    .team-carousel {
        padding: 0 40px;
    }

    .team-nav {
        width: 36px;
        height: 36px;
    }

    .team-card {
        width: min(320px, calc(100vw - 120px));
    }

    .team-photo {
        flex-basis: 112px;
        width: 112px;
        min-height: 112px;
    }

    .compare {
        min-height: 240px;
        max-height: none;
    }

    .compare-handle::before {
        width: 36px;
        height: 36px;
    }

    .nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 24px;
        right: 24px;
        background: var(--surface);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
    }

    .nav.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .header-inner {
        position: relative;
    }

    .header .btn {
        display: none;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "design"
            "layout"
            "seo"
            "content";
    }

    .bento-item--wide {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .form-actions {
        flex-direction: column;
    }

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

    .trust-stat {
        padding: 16px 0;
        border-left: none;
        border-top: 1px solid #e2e5e9;
    }

    .trust-stat:nth-child(odd) {
        padding-right: 16px;
    }

    .form-actions .btn {
        width: 100%;
    }

}
/* ===== IT-AGENCY EDITORIAL THEME ===== */

.header--light {
    background: transparent;
}

.header--light.scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid #e8eaed;
    box-shadow: none;
}

.header--light .logo,
.header--light .nav a {
    color: #111;
}

.header--light .nav a:hover {
    color: #111;
    background: #f3f4f6;
}

.btn-ia {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: none;
}

.btn-ia:hover {
    background: #333;
    transform: none;
    color: #fff;
}

.hero-editorial {
    padding: 140px 0 72px;
    background: #fff;
}

.hero-editorial-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px 72px;
    align-items: end;
}

.hero-editorial-main {
    padding-bottom: 8px;
}

.hero-editorial-eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 24px;
}

.hero-editorial-title {
    font-size: clamp(40px, 6.5vw, 72px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #111;
    margin-bottom: 28px;
    max-width: none;
}

.hero-editorial-lead {
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.65;
    color: #4b5563;
    max-width: 520px;
    margin-bottom: 36px;
}

.hero-editorial-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 36px;
    padding: 36px 0 0 40px;
    border-top: none;
    border-bottom: none;
    border-left: 1px solid #e8eaed;
    margin-bottom: 0;
    align-self: stretch;
    align-content: center;
}

.hero-stat strong {
    display: block;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111;
    line-height: 1.1;
    margin-bottom: 8px;
}

.hero-stat span {
    font-size: 14px;
    line-height: 1.45;
    color: #6b7280;
}

.hero-editorial-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.cases-strip-section {
    padding: 64px 0 80px;
    background: #fff;
    overflow: hidden;
}

.cases-strip-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 32px;
    gap: 24px;
}

.cases-strip-title {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111;
}

.cases-strip {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: minmax(200px, auto) minmax(160px, auto);
    gap: 16px;
}

.case-teaser:first-child {
    grid-row: 1 / 3;
    min-height: 100%;
}

.case-teaser:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.case-teaser:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    min-height: 0;
}

.case-teaser {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    padding: 28px;
    background: #f7f8f9;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
    scroll-snap-align: start;
}

.case-teaser:hover {
    background: #eef0f2;
}

.case-teaser-top {
    margin-bottom: auto;
}

.case-teaser-metric {
    display: block;
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111;
    line-height: 1;
}

.case-teaser-metric-label {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

.case-teaser-name {
    font-size: 20px;
    font-weight: 600;
    color: #111;
    margin: 20px 0 8px;
}

.case-teaser-desc {
    font-size: 15px;
    line-height: 1.55;
    color: #4b5563;
    margin-bottom: 16px;
}

.case-teaser-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.case-teaser-tags span {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    background: #fff;
    padding: 4px 10px;
    border-radius: 999px;
}

.case-teaser--cta {
    justify-content: space-between;
    background: #111;
    color: #fff;
}

.case-teaser--cta:hover {
    background: #222;
}

.case-teaser-cta-label {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 600;
    line-height: 1.35;
    max-width: 280px;
}

.case-teaser--cta .link-arrow {
    color: #fff;
}

.about-band {
    padding: 48px 0;
    background: #f7f8f9;
    border-top: 1px solid #e8eaed;
    border-bottom: 1px solid #e8eaed;
}

/* ===== ЦВЕТНЫЕ ПЛИТКИ С HOVER ===== */
.tile-section {
    padding: 80px 0 96px;
    background: #fff;
}

.tile-section-lead {
    margin-bottom: 40px;
    max-width: 520px;
}

.tile-section .section-title--large {
    margin-bottom: 12px;
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(190px, auto);
    gap: 14px;
    align-items: stretch;
}

.info-tile {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    outline: none;
    min-height: 180px;
    height: 100%;
    display: flex;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

.info-tile:focus-visible {
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px #111;
}

.info-tile-inner {
    position: relative;
    flex: 1;
    width: 100%;
    min-height: 180px;
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}

.info-tile-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.75;
    margin-bottom: 8px;
    transition: opacity 0.3s ease;
}

.info-tile-title {
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-tile-detail {
    position: absolute;
    inset: 0;
    padding: 24px 26px;
    display: flex;
    align-items: flex-end;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.info-tile-detail p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

@media (hover: hover) {
    .info-tile:hover,
    .info-tile:focus-within {
        transform: translateY(-4px);
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    }

    .info-tile:hover .info-tile-label,
    .info-tile:focus-within .info-tile-label,
    .info-tile:hover .info-tile-title,
    .info-tile:focus-within .info-tile-title {
        opacity: 0;
    }

    .info-tile:hover .info-tile-title,
    .info-tile:focus-within .info-tile-title {
        transform: translateY(-8px);
    }

    .info-tile:hover .info-tile-detail,
    .info-tile:focus-within .info-tile-detail {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (hover: none) {
    .info-tile-detail {
        position: static;
        inset: auto;
        background: none;
        backdrop-filter: none;
        opacity: 1;
        transform: none;
        padding: 12px 0 0;
        align-items: flex-start;
    }

    .info-tile-detail p {
        font-size: 13px;
        opacity: 0.9;
    }
}

.info-tile--blue { background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 100%); }
.info-tile--teal { background: linear-gradient(145deg, #0d9488 0%, #0f766e 100%); }
.info-tile--orange { background: linear-gradient(145deg, #ea580c 0%, #c2410c 100%); }
.info-tile--purple { background: linear-gradient(145deg, #7c3aed 0%, #6d28d9 100%); }
.info-tile--rose { background: linear-gradient(145deg, #e11d48 0%, #be123c 100%); }
.info-tile--indigo { background: linear-gradient(145deg, #4f46e5 0%, #4338ca 100%); }

.about-band-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 80px;
    max-width: 880px;
    margin-left: auto;
}

.about-band-item:nth-child(even) {
    margin-top: 36px;
    padding-left: 24px;
    border-left: 1px solid #d1d5db;
}

.about-band-item:nth-child(odd) {
    padding-right: 24px;
}

.about-band-item strong {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: #111;
    margin-bottom: 4px;
}

.about-band-item span {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.45;
}

.section-title--large {
    font-size: clamp(28px, 3.8vw, 44px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 48px;
    max-width: 720px;
}

.ia-services-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 48px 80px;
    align-items: start;
}

.ia-services-intro {
    position: sticky;
    top: 120px;
}

.ia-services-intro .section-title--large {
    margin-bottom: 28px;
}

.ia-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 0;
}

.ia-services-col h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 20px;
}

.ia-services-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ia-services-list a {
    display: block;
    padding: 10px 0;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 500;
    color: #111;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.ia-services-list a:hover {
    color: #4b5563;
    border-bottom-color: #e8eaed;
}

.ia-services-list--plain li {
    padding: 10px 0;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 500;
    color: #111;
}

.ia-services-link {
    font-size: 15px;
}

.section--principles {
    background: #f7f8f9;
    padding: 112px 0;
}

.principles-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 48px 80px;
    align-items: start;
}

.principles-layout > .section-title--large {
    margin-bottom: 0;
    position: sticky;
    top: 120px;
}

.principles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

.principle-item:nth-child(even) {
    margin-left: 56px;
    max-width: calc(100% - 56px);
}

.principle-item:nth-child(3) {
    margin-left: 28px;
    max-width: calc(100% - 28px);
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 48px 72px;
    align-items: start;
}

.faq-intro {
    margin-bottom: 0;
    position: sticky;
    top: 120px;
}

.form-ia {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: start;
}

.form-group--ia {
    margin-top: 56px;
}

.principle-item h4 {
    font-size: 20px;
    font-weight: 600;
    color: #111;
    margin-bottom: 10px;
}

.principle-item p {
    font-size: 16px;
    line-height: 1.65;
    color: #4b5563;
}

.form-section--ia {
    padding: 112px 0;
    background: #fff;
}

.form-ia-text h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: #111;
    margin-bottom: 16px;
}

.form-ia-text > p {
    font-size: 17px;
    line-height: 1.65;
    color: #4b5563;
    margin-bottom: 32px;
    max-width: 440px;
}

.form-manager--ia {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 0;
    background: none;
    border: none;
}

.form-manager--ia img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.form-manager--ia strong {
    display: block;
    font-size: 16px;
    color: #111;
    margin-bottom: 2px;
}

.form-manager--ia span {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.form-group--ia {
    background: #f7f8f9;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #e8eaed;
}

.form-group--ia input {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 8px;
}

.page-hero {
    padding: 140px 0 64px;
    background: #fff;
    color: #111;
}

.page-hero::before {
    display: none;
}

.page-hero .section-label {
    color: #6b7280;
}

.page-hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111;
}

.page-hero h1 span {
    background: none;
    -webkit-text-fill-color: #111;
    color: #111;
}

.page-hero p {
    color: #4b5563;
}

.page-hero-anchors span {
    color: #4b5563;
    background: #f7f8f9;
    border: 1px solid #e8eaed;
    border-radius: 999px;
}

.section--cases {
    background: #fff;
}

.section--services {
    background: #f7f8f9;
    padding: 112px 0;
}

.section--team {
    background: #fff;
}

.section--audience {
    background: #f7f8f9;
}

@media (max-width: 1024px) {
    .hero-editorial-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-editorial-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 32px 0 0;
        border-left: none;
        border-top: 1px solid #e8eaed;
    }

    .cases-strip {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .case-teaser:first-child,
    .case-teaser:nth-child(2),
    .case-teaser:nth-child(3) {
        grid-column: auto;
        grid-row: auto;
        min-height: 240px;
    }

    .about-band-grid {
        grid-template-columns: 1fr;
        max-width: none;
        margin-left: 0;
    }

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

    .about-band-item:nth-child(even) {
        margin-top: 0;
        padding-left: 0;
        border-left: none;
    }

    .about-band-item:nth-child(odd) {
        padding-right: 0;
    }

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

    .ia-services-layout,
    .audience-layout,
    .principles-layout,
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ia-services-intro,
    .audience-intro,
    .principles-layout > .section-title--large,
    .faq-intro {
        position: static;
    }

    .audience-item:nth-child(2),
    .audience-item:nth-child(3),
    .principle-item:nth-child(even),
    .principle-item:nth-child(3) {
        margin-left: 0;
        max-width: none;
    }

    .form-ia {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-group--ia {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .hero-editorial {
        padding: 120px 0 56px;
    }

    .hero-editorial-stats {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .ia-services {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .principles-grid {
        gap: 32px;
    }

    .section {
        padding: 80px 0;
    }

    .section-title--large {
        margin-bottom: 32px;
    }

    .principles-layout > .section-title--large {
        margin-bottom: 32px;
    }

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

