/* ===================================== */
/* Smart Solutions — Premium Light Theme */
/* Современный и стильный дизайн         */
/* ===================================== */

:root {
    /* Фоны */
    --color-bg-primary: #faf9f7;
    --color-bg-secondary: #f5f3f0;
    --color-bg-card: #ffffff;
    --color-bg-elevated: rgba(255, 255, 255, 0.85);

    /* Текст */
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #5c5c5c;
    --color-text-muted: #8a8a8a;

    /* Акценты — насыщенный терракот + sage */
    --color-accent: #b5704d;
    --color-accent-hover: #9c5f40;
    --color-accent-light: rgba(181, 112, 77, 0.12);
    --color-accent-glow: rgba(181, 112, 77, 0.25);

    --color-sage: #5a7a5a;
    --color-sage-light: rgba(90, 122, 90, 0.12);

    /* Градиенты */
    --gradient-accent: linear-gradient(135deg, #b5704d 0%, #d4a574 50%, #5a7a5a 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(181, 112, 77, 0.18) 0%, rgba(90, 122, 90, 0.12) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);

    /* Границы */
    --color-border: rgba(0, 0, 0, 0.06);
    --color-border-hover: rgba(181, 112, 77, 0.3);

    /* Тени — многослойные и мягкие */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(181, 112, 77, 0.15);

    /* Размытие */
    --blur-sm: 8px;
    --blur-md: 16px;
    --blur-lg: 24px;

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

    /* Переходы */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Резервируем место под скроллбар чтобы контент не сдвигался */
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section[id] {
    scroll-margin-top: 88px;
}

/* Декоративные блобы — анимированные */
body::before {
    content: '';
    position: fixed;
    top: -15%;
    right: -8%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(181, 112, 77, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    animation: blob-morph 25s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    left: -12%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(90, 122, 90, 0.12) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    animation: blob-morph 30s ease-in-out infinite reverse;
}

@keyframes blob-morph {

    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 50%;
    }

    25% {
        transform: translate(40px, -30px) scale(1.08) rotate(5deg);
        border-radius: 45% 55% 60% 40%;
    }

    50% {
        transform: translate(-20px, 40px) scale(0.95) rotate(-3deg);
        border-radius: 55% 45% 40% 60%;
    }

    75% {
        transform: translate(30px, 20px) scale(1.03) rotate(2deg);
        border-radius: 48% 52% 55% 45%;
    }
}

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

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* Градиентный текст - улучшенный */
.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradient-shift 8s ease-in-out infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ===================================== */
/* НАВИГАЦИЯ — Glassmorphism             */
/* ===================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 64px;
    min-height: 64px;
    max-height: 64px;
    background: rgba(250, 249, 247, 0.85);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md));
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition), background var(--transition);
}

/* Специальный контейнер для навбара — изолированный от остальных */
.navbar-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(250, 249, 247, 0.95);
}

/* Logo in navbar */
.navbar a img {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    font-size: 16.5px;
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast), background var(--transition-fast);
    border-radius: var(--radius-sm);
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
    transition: transform var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-text-primary);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
    color: var(--color-accent);
    background: var(--color-accent-light);
}

.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Мобильное меню */
.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: var(--color-accent-light);
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 249, 247, 0.98);
    backdrop-filter: blur(var(--blur-lg));
    -webkit-backdrop-filter: blur(var(--blur-lg));
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
}

.mobile-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

/* ===================================== */
/* КНОПКИ — Современные с эффектами      */
/* ===================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--color-accent);
    color: white;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-primary:hover::before {
    opacity: 1;
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: transparent;
    color: var(--color-text-primary);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===================================== */
/* HERO СЕКЦИЯ — Улучшенная              */
/* ===================================== */
.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

/* Декоративные элементы Hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 60% at 0% 20%, rgba(181, 112, 77, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 100% 80%, rgba(90, 122, 90, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(212, 165, 116, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

/* Декоративные кольца */
.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -150px;
    width: 450px;
    height: 450px;
    border: 1px solid rgba(181, 112, 77, 0.12);
    border-radius: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    animation: ring-pulse 10s ease-in-out infinite;
}

@keyframes ring-pulse {

    0%,
    100% {
        transform: translateY(-50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-50%) scale(1.15);
        opacity: 0.8;
    }
}

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

/* Бейдж — улучшенный */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--color-bg-elevated);
    backdrop-filter: blur(var(--blur-sm));
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    box-shadow: var(--shadow-sm);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 var(--color-accent-glow);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 8px transparent;
        transform: scale(1.1);
    }
}

/* Hero Logo Container */
.hero-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: float-gentle 8s ease-in-out infinite;
}

.hero-logo-container img {
    filter: drop-shadow(0 25px 40px rgba(181, 112, 77, 0.2));
    max-width: 100%;
    height: auto;
}

@keyframes float-gentle {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-15px) rotate(1deg);
    }

    75% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

/* ===================================== */
/* СЕКЦИИ                                */
/* ===================================== */
.section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 800px 800px;
}

/* Градиентный фон для секций */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(181, 112, 77, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(90, 122, 90, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

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

/* Альтернативная секция */
.section-alt {
    background: linear-gradient(180deg,
            rgba(250, 249, 247, 1) 0%,
            rgba(245, 240, 235, 0.5) 50%,
            rgba(250, 249, 247, 1) 100%);
}

/* Subtle grid pattern */
.section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
}

/* Section Titles */
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
    margin: 20px auto 0;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
}

/* ===================================== */
/* MAIN DIRECTIONS - Larger Cards        */
/* ===================================== */
.section-directions .section-title {
    font-size: clamp(2.25rem, 4.5vw, 3rem);
    margin-bottom: 28px;
}

.section-directions .grid {
    gap: 36px;
}

.section-directions .card {
    padding: 44px 42px;
}

.section-directions .card .h-48 {
    height: 300px;
}

.section-directions .card .text-xl {
    font-size: 1.5rem;
}

.section-directions .card .text-sm {
    font-size: 1.08rem;
    line-height: 1.55;
}

.section-directions .icon-image {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.section-directions .card>div.h-48 {
    border-radius: 24px;
    background: linear-gradient(145deg, #f7f3ef 0%, #ede7e1 100%);
    border: 1px solid #e2d9d1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 10px 24px rgba(0, 0, 0, 0.06);
}

.section-directions .dir-icon-wrap {
    width: 190px;
    height: 190px;
    border-radius: 999px;
    background: rgba(181, 112, 77, 0.12);
    box-shadow: inset 0 0 0 1px rgba(181, 112, 77, 0.15);
}

/* ===================================== */
/* Optimization Tiles - Larger            */
/* ===================================== */
.opt-tiles .section-title {
    font-size: clamp(2.4rem, 4.8vw, 3.2rem);
    margin-bottom: 18px;
}

.opt-tiles .section-subtitle {
    font-size: 1.2rem;
}

.opt-tiles .grid {
    gap: 28px;
}

.opt-tiles .nav-card {
    padding: 28px;
}

.opt-tiles .nav-card-icon {
    width: 120px;
    height: 120px;
}

.opt-tiles .nav-card-icon img {
    width: 80px;
    height: 80px;
}

.opt-tiles .nav-card-title {
    font-size: 1.2rem;
}

/* Optimization images: hover to level */
.opt-image-card.is-clickable {
    transition: transform 0.5s ease;
}

.opt-image-card.is-clickable:hover {
    transform: rotate(0deg);
}

/* Optimization quality list alignment */

/* ===================================== */
/* BENTO GRID — Современная сетка        */
/* ===================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 20px;
}

/* Различные размеры карточек */
.bento-card {
    background: var(--gradient-card);
    backdrop-filter: blur(var(--blur-sm));
    -webkit-backdrop-filter: blur(var(--blur-sm));
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Внутреннее свечение при hover */
.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 0%, var(--color-accent-light) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.bento-card.is-clickable:hover,
a.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border-hover);
}

.bento-card.is-clickable:hover::before,
a.bento-card:hover::before {
    opacity: 1;
}

/* Размеры Bento карточек */
.bento-card.large {
    grid-column: span 2;
    grid-row: span 2;
    padding: 40px;
}

.bento-card.wide {
    grid-column: span 2;
}

.bento-card.tall {
    grid-row: span 2;
}

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

    .bento-card.large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

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

    .bento-card.large,
    .bento-card.wide {
        grid-column: span 1;
    }
}

/* ===================================== */
/* КАРТОЧКИ — Обычные (для услуг превью) */
/* ===================================== */
.card {
    background: var(--gradient-card);
    backdrop-filter: blur(var(--blur-sm));
    -webkit-backdrop-filter: blur(var(--blur-sm));
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 0%, var(--color-accent-light) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.card.is-clickable:hover,
a.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border-hover);
}

.card.is-clickable:hover::before,
a.card:hover::before {
    opacity: 1;
}

/* ===================================== */
/* ИКОНКИ — SVG стиль                    */
/* ===================================== */
.service-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all var(--transition);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-accent);
    stroke-width: 1.5;
    fill: none;
}

.card.is-clickable:hover .service-icon,
a.card:hover .service-icon,
.bento-card.is-clickable:hover .service-icon,
a.bento-card:hover .service-icon {
    background: var(--color-accent-light);
    border-color: var(--color-border-hover);
    transform: scale(1.05);
}

/* Large icon for bento */
.bento-card.large .service-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
}

.bento-card.large .service-icon svg {
    width: 36px;
    height: 36px;
}

/* ===================================== */
/* FEATURE CARDS — Преимущества          */
/* ===================================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

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

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

.feature-card {
    background: var(--gradient-card);
    backdrop-filter: blur(var(--blur-sm));
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 0%, var(--color-accent-light) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.feature-card.is-clickable:hover,
a.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-border-hover);
}

.feature-card.is-clickable:hover::before,
a.feature-card:hover::before {
    opacity: 1;
}

.feature-card .service-icon {
    margin: 0 auto 16px;
}

/* ===================================== */
/* SOFTWARE WINDOW MOCKUP                */
/* ===================================== */
.software-window {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    position: relative;
    transition: all var(--transition);
}

.software-window.is-clickable:hover,
a.software-window:hover {
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-4px);
}

.window-header {
    background: linear-gradient(180deg, #f8f7f6 0%, #f0efed 100%);
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    gap: 8px;
}

.window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    transition: all var(--transition-fast);
}

.window-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    transition: all var(--transition-fast);
    display: inline-block;
}

.window-dot:nth-child(1) {
    background: #ff5f56;
}

.window-dot:nth-child(2) {
    background: #ffbd2e;
}

.window-dot:nth-child(3) {
    background: #27c93f;
}

.window-header .dot:nth-child(1) {
    background: #ff5f56;
}

.window-header .dot:nth-child(2) {
    background: #ffbd2e;
}

.window-header .dot:nth-child(3) {
    background: #27c93f;
}

.software-window.is-clickable:hover .window-dot:nth-child(1),
a.software-window:hover .window-dot:nth-child(1) {
    box-shadow: 0 0 8px #ff5f56;
}

.software-window.is-clickable:hover .window-dot:nth-child(2),
a.software-window:hover .window-dot:nth-child(2) {
    box-shadow: 0 0 8px #ffbd2e;
}

.software-window.is-clickable:hover .window-dot:nth-child(3),
a.software-window:hover .window-dot:nth-child(3) {
    box-shadow: 0 0 8px #27c93f;
}

.software-window.is-clickable:hover .window-header .dot:nth-child(1),
a.software-window:hover .window-header .dot:nth-child(1) {
    box-shadow: 0 0 8px #ff5f56;
}

.software-window.is-clickable:hover .window-header .dot:nth-child(2),
a.software-window:hover .window-header .dot:nth-child(2) {
    box-shadow: 0 0 8px #ffbd2e;
}

.software-window.is-clickable:hover .window-header .dot:nth-child(3),
a.software-window:hover .window-header .dot:nth-child(3) {
    box-shadow: 0 0 8px #27c93f;
}

/* ===================================== */
/* CTA SECTION                           */
/* ===================================== */
.cta-section {
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, var(--color-accent-light) 0%, transparent 70%);
    pointer-events: none;
}

/* ===================================== */
/* FOOTER                                */
/* ===================================== */
.footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    color: #a0a0a0;
    padding: 80px 0 40px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.footer a {
    color: #a0a0a0;
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: white;
}

.footer h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ===================================== */
/* АНИМАЦИИ                              */
/* ===================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.fade-in-late {
    transform: translateY(45px);
    transition: opacity 1.5s ease, transform 1.5s ease;
    transition-delay: 0s;
    will-change: opacity, transform;
}

.fade-in.fade-in-late.visible {
    opacity: 1;
    transform: translateY(0);
}

.team-member.fade-in-late:nth-child(1) {
    transition-delay: 0.06s;
}

.team-member.fade-in-late:nth-child(2) {
    transition-delay: 0.12s;
}

.team-member.fade-in-late:nth-child(3) {
    transition-delay: 0.18s;
}

.team-member.fade-in-late:nth-child(4) {
    transition-delay: 0.24s;
}

.team-member.fade-in-late:nth-child(5) {
    transition-delay: 0.30s;
}

.team-member.fade-in-late:nth-child(6) {
    transition-delay: 0.36s;
}

/* ===================================== */
/* ФОРМЫ                                 */
/* ===================================== */
input,
textarea {
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 0 4px var(--color-accent-light);
}

/* ===================================== */
/* УТИЛИТЫ                               */
/* ===================================== */
.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-border {
    position: relative;
}

.glow-border::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: var(--gradient-accent);
    z-index: -1;
    opacity: 0;
    filter: blur(8px);
    transition: opacity var(--transition);
}

.glow-border:hover::after {
    opacity: 0.5;
}

/* ===================================== */
/* RESPONSIVE                            */
/* ===================================== */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    h1 {
        font-size: 2.25rem !important;
    }

    .bento-card,
    .card {
        padding: 24px;
    }
}

@media (max-width: 1024px) {
    .hero-logo-container {
        margin-top: 48px;
        order: -1;
    }
}

/* ===================================== */
/* LINK ARROWS                           */
/* ===================================== */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    transition: all var(--transition-fast);
}

.link-arrow svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.link-arrow:hover {
    color: var(--color-accent-hover);
}

.link-arrow:hover svg {
    transform: translateX(4px);
}

/* ===================================== */
/* CHECK LIST                            */
/* ===================================== */
.check-list {
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--color-text-secondary);
}

.check-list li span {
    font-size: 1.2rem;
    line-height: 1.6;
}

.check-list .check-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: var(--color-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.check-list .check-icon svg {
    width: 12px;
    height: 12px;
    stroke: var(--color-accent);
    stroke-width: 2.5;
}

/* ===================================== */
/* IMAGE FRAMES                          */
/* ===================================== */
.image-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 8px solid white;
    transition: all var(--transition);
}

.image-frame.is-clickable:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
}

/* Placeholder for sections without images */
.icon-placeholder {
    background: var(--gradient-subtle);
    border-radius: var(--radius-lg);
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
}

.icon-placeholder svg {
    width: 80px;
    height: 80px;
    stroke: var(--color-accent);
    stroke-width: 1;
    opacity: 0.8;
}

/* --- Tailwind-like Utilities --- */
.h-10 {
    height: 40px;
}

.h-16 {
    height: 64px;
}

.h-24 {
    height: 96px;
}

.w-10 {
    width: 40px;
}

.w-16 {
    width: 64px;
}

.w-24 {
    width: 96px;
}

.w-full {
    width: 100%;
}

.w-auto {
    width: auto;
}

.max-w-full {
    max-width: 100%;
}

.object-contain {
    object-fit: contain;
}

.rotate-90 {
    transform: rotate(90deg);
}

.ring-2 {
    box-shadow: 0 0 0 2px var(--color-accent-light);
}

.ring-4 {
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.3);
}

/* ===================================== */
/* PREMIUM ENHANCEMENTS                  */
/* ===================================== */

/* --- Scroll Progress Indicator --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-accent);
    z-index: 1100;
    transition: width 0.1s linear;
}

/* --- Button Shine Effect --- */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: skewX(-25deg);
    transition: none;
}

.btn-primary:hover::after {
    animation: btn-shine 0.6s ease-out;
}

@keyframes btn-shine {
    0% {
        left: -100%;
    }

    100% {
        left: 150%;
    }
}

/* --- Enhanced Team Member Cards --- */
.team-member {
    padding: 20px;
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    max-width: 100%;
    overflow: hidden;
}

.team-member:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border-hover);
}

.team-avatar {
    width: 165px;
    height: 165px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.team-avatar::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-accent);
    border-radius: 50%;
    z-index: -1;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid white;
    border-radius: 50%;
}

/* --- Section Numbers --- */
.section-number {
    position: absolute;
    top: -20px;
    left: 24px;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px var(--color-border);
    opacity: 0.4;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

/* --- Animated Counter --- */
.stat-counter {
    display: inline-block;
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

/* --- Enhanced Card Hover with Tilt --- */
.card-tilt {
    transition: transform var(--transition), box-shadow var(--transition);
}

.card-tilt:hover {
    transform: translateY(-8px) rotateX(2deg);
}

/* --- Improved Check List Animation --- */
.check-list li {
    opacity: 1;
    transform: none;
}

.fade-in .check-list li {
    opacity: 0;
    transform: translateX(-20px);
}

.fade-in.visible .check-list li {
    animation: slideInCheck 0.5s ease forwards;
}

.fade-in.visible .check-list li:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-in.visible .check-list li:nth-child(2) {
    animation-delay: 0.2s;
}

.fade-in.visible .check-list li:nth-child(3) {
    animation-delay: 0.3s;
}

.fade-in.visible .check-list li:nth-child(4) {
    animation-delay: 0.4s;
}

.fade-in.visible .check-list li:nth-child(5) {
    animation-delay: 0.5s;
}

.fade-in.visible .check-list li:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes slideInCheck {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Animated Check Icon --- */
.check-list .check-icon svg {
    transform: scale(1);
    animation: none;
}

.fade-in.visible .check-list .check-icon svg {
    transform: scale(0);
    animation: popIn 0.3s ease forwards;
    animation-delay: inherit;
}

@keyframes popIn {
    0% {
        transform: scale(0) rotate(-45deg);
    }

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

    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* --- Footer Link Underline Effect --- */
.footer a {
    position: relative;
}

.footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width var(--transition-fast);
}

.footer a:hover::after {
    width: 100%;
}

/* --- Animated Gradient Line (Footer Top) --- */
.footer::before {
    background: linear-gradient(90deg,
            transparent,
            var(--color-accent),
            var(--color-sage),
            var(--color-accent),
            transparent);
    background-size: 200% 100%;
    animation: gradientMove 4s linear infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* --- Hero Facts Cards Enhancement --- */
.hero-fact-card {
    position: relative;
    overflow: hidden;
}

.hero-fact-card .text-sm {
    font-size: 1.15rem;
    line-height: 1.45;
}

.hero-fact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
}

/* --- Service Card Icon Pulse --- */
.card.is-clickable:hover .service-icon-wrapper svg,
a.card:hover .service-icon-wrapper svg,
.card.is-clickable:hover .service-icon svg,
a.card:hover .service-icon svg {
    animation: iconPulse 0.5s ease;
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1.1);
    }
}

/* --- Image Hover Zoom --- */
.image-frame img {
    transition: transform var(--transition);
}

.image-frame.is-clickable:hover img {
    transform: scale(1.03);
}

/* --- Software Window Subtle Animation --- */
.software-window.is-clickable:hover .window-dot,
a.software-window:hover .window-dot {
    animation: dotBounce 0.4s ease;
}

@keyframes dotBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.software-window.is-clickable:hover .window-dot:nth-child(1),
a.software-window:hover .window-dot:nth-child(1) {
    animation-delay: 0s;
}

.software-window.is-clickable:hover .window-dot:nth-child(2),
a.software-window:hover .window-dot:nth-child(2) {
    animation-delay: 0.1s;
}

.software-window.is-clickable:hover .window-dot:nth-child(3),
a.software-window:hover .window-dot:nth-child(3) {
    animation-delay: 0.2s;
}

/* --- Navigation Card Enhancement (Marketing Page) --- */
.nav-card-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent-light) 0%, rgba(181, 112, 77, 0.2) 100%);
    border: 1px solid rgba(181, 112, 77, 0.2);
    transition: all var(--transition);
}

.card.is-clickable:hover .nav-card-icon,
a.card:hover .nav-card-icon {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(181, 112, 77, 0.2);
}

.nav-card-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.card.is-clickable:hover .nav-card-icon img,
a.card:hover .nav-card-icon img {
    opacity: 1;
}

/* --- CTA Section Enhancement --- */
.cta-section {
    position: relative;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-accent-light) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

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

/* --- Before/After Product Cards Hover --- */
.bg-white.rounded-2xl.shadow-lg {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bg-white.rounded-2xl.shadow-lg.is-clickable:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.bg-white.rounded-2xl.shadow-lg.is-clickable img {
    transition: transform 0.2s ease;
}

.bg-white.rounded-2xl.shadow-lg.is-clickable:hover img {
    transform: scale(1.05);
}

/* Адаптивное масштабирование для IT отчета (только десктоп) */
@media (min-width: 1024px) {
    .lg-scale-123 {
        transform: scale(1.23);
        transform-origin: top right;
    }
}

/* ===================================== */
/* INTERACTIVE ENHANCEMENTS              */
/* ===================================== */

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.nav-link:focus-visible,
.nav-card:focus-visible,
.mobile-menu-btn:focus-visible,
.card:focus-visible,
a:focus-visible {
    box-shadow: 0 0 0 4px var(--color-accent-light);
}



/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    z-index: 2000;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background: white;
}

.lightbox-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

body.lightbox-open {
    overflow: hidden;
}

img[data-lightbox] {
    cursor: zoom-in;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .logo-track {
        animation: none !important;
    }
}

/* --- Стили для Swiper Slider --- */
.custom-swiper {
    width: 100%;
    max-width: 100%;
    /* Не даём расти больше родителя */
    min-width: 0;
    /* Критично для Grid/Flexbox! */
    overflow: hidden;
    /* Предотвращаем "взрыв" ширины */
    height: 500px;
    /* Фиксированная высота = стабильные стрелки */
    border-radius: 16px;
    padding-bottom: 40px;
    /* Больше места для точек */
}

/* На мобильных задаём фиксированную высоту (Swiper требует явную высоту!) */
@media (max-width: 768px) {
    .custom-swiper {
        height: 300px !important;
        padding-bottom: 50px;
    }

    .swiper-slide img {
        max-height: 280px;
        width: auto;
    }
}

.swiper-slide {
    display: flex;
    align-items: center;
    /* Центрируем по вертикали */
    justify-content: center;
    /* Центрируем по горизонтали */
    height: 100%;
}

.swiper-slide img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    /* Разрешаем клик для зума (lightbox) */
    cursor: zoom-in;
}

/* Красивые стрелки (показываем только при наведении) */
.swiper-button-next,
.swiper-button-prev {
    color: #b5704d !important;
    background: rgba(255, 255, 255, 0.85);
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;

    /* Скрываем по умолчанию */
    opacity: 0;
    visibility: hidden;
}

/* Показываем при наведении на сам слайдер */
/* Показываем при наведении на сам слайдер */
.custom-swiper:hover .swiper-button-next,
.custom-swiper:hover .swiper-button-prev {
    opacity: 1;
    visibility: visible;
}

/* На тач-устройствах показываем стрелки всегда */
@media (max-width: 1024px) {

    .swiper-button-next,
    .swiper-button-prev {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #fff;
    transform: scale(1.1);
    /* Чуть больше увеличение при наведении на саму кнопку */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px !important;
    font-weight: 800;
}

/* Точки */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 0.5;
    transition: all 0.3s;
    margin: 0 6px !important;
}

.swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 5px;
    background: #b5704d !important;
    opacity: 1;
}

/* --- Подсветка статистики внутри текста --- */
.stat-highlight {
    font-size: 1.25em;
    font-weight: 800;
    color: var(--color-accent);
    white-space: nowrap;
    background: linear-gradient(135deg, var(--color-accent) 0%, #d4a574 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}