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

:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #6366f1;
    --primary-rgb: 79, 70, 229;
    --accent: #06b6d4;
    --accent-dark: #0891b2;
    --dark: #0f0f23;
    --dark-800: #1a1a3e;
    --dark-700: #24244a;
    --dark-600: #2d2d5e;
    --gray-500: #8b8ba3;
    --gray-400: #a1a1b5;
    --gray-300: #c4c4d4;
    --gray-200: #e2e2ee;
    --gray-100: #f0f0f7;
    --gray-50: #f8f8fc;
    --white: #ffffff;
    --gradient-main: linear-gradient(135deg, #4f46e5 0%, #06b6d4 50%, #8b5cf6 100%);
    --gradient-card: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(6, 182, 212, 0.08));
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 24px 48px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

/* ===== PRELOADER ===== */
.preloader {
    position: fixed; inset: 0; background: var(--dark); z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-content { text-align: center; }
.preloader-logo {
    font-size: 2rem; font-weight: 900; color: white; margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.preloader-logo span {
    background: var(--gradient-main); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.preloader-bar {
    width: 200px; height: 3px; background: rgba(255,255,255,0.1);
    border-radius: 2px; overflow: hidden; margin: 0 auto;
}
.preloader-bar-fill {
    height: 100%; background: var(--gradient-main); border-radius: 2px;
    animation: preload 1.5s ease-in-out forwards;
}
@keyframes preload { 0% { width: 0; } 100% { width: 100%; } }

/* ===== HEADER ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0; transition: all 0.3s ease;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
}
.header.scrolled {
    background: rgba(15, 15, 35, 0.95); backdrop-filter: blur(20px);
    padding: 12px 0; box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
    width: 44px; height: 44px; border-radius: 12px; background: var(--gradient-main);
    position: relative; display: flex; align-items: center; justify-content: center;
}
.logo-icon::after {
    content: ''; position: absolute; inset: 2px; background: var(--dark); border-radius: 10px;
}
.logo-icon::before {
    content: ''; position: absolute; inset: 8px;
    background-image: url('/assets/templates/sm-service/img/logo.svg');
    background-size: contain; background-position: center; background-repeat: no-repeat;
    z-index: 2;
}
.logo-icon svg, .logo-icon img { display: none; }
.logo-text { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a,
.nav a:visited {
    text-decoration: none; color: var(--gray-300); font-weight: 500; font-size: 0.9rem;
    transition: color 0.2s; position: relative;
}
.nav a:hover { color: var(--white); }
.nav a::after {
    content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px;
    background: var(--gradient-main); border-radius: 1px; transition: width 0.3s ease;
}
.nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone {
    color: var(--white); text-decoration: none; font-weight: 600; font-size: 0.95rem;
    transition: color 0.2s; margin-right: 16px;
}
.header-phone:hover { color: var(--accent); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: 10px; font-weight: 600; font-size: 0.9rem;
    text-decoration: none; border: none; cursor: pointer; transition: all 0.3s ease;
    font-family: inherit; position: relative; overflow: hidden;
}
.btn-primary {
    background: var(--gradient-main); color: white;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.5); }
.btn-outline-white {
    background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
.btn-large { padding: 16px 36px; font-size: 1rem; border-radius: var(--radius); }

.burger {
    display: none; flex-direction: column; gap: 6px; background: none; border: none;
    cursor: pointer; padding: 4px; z-index: 1001;
}
.burger span {
    display: block; width: 26px; height: 2px; background: white;
    border-radius: 1px; transition: all 0.3s ease;
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ===== MOBILE NAV ===== */
.mobile-nav {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--dark); z-index: 999; padding: 100px 32px 40px;
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
    display: block; padding: 18px 0; color: var(--gray-300); text-decoration: none;
    font-size: 1.2rem; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color 0.2s;
}
.mobile-nav a:hover { color: white; }

/* ===== HERO ===== */
.hero {
    min-height: 100vh; background: var(--dark); position: relative;
    display: flex; align-items: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg-gradient {
    position: absolute; width: 800px; height: 800px; border-radius: 50%;
    filter: blur(120px); opacity: 0.3;
}
.hero-bg-gradient:nth-child(1) { background: var(--primary); top: -200px; right: -100px; }
.hero-bg-gradient:nth-child(2) { background: var(--accent); bottom: -300px; left: -200px; }
.hero-bg-gradient:nth-child(3) {
    background: #8b5cf6; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 500px; height: 500px; opacity: 0.15;
}
.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: 60px 60px;
}
.hero-content { position: relative; z-index: 2; padding: 140px 0 80px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px; padding: 8px 20px 8px 10px; margin-bottom: 32px;
    font-size: 0.85rem; font-weight: 500; color: var(--gray-300); backdrop-filter: blur(10px);
}
.hero-badge-dot {
    width: 10px; height: 10px; border-radius: 50%; background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5); animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.08;
    letter-spacing: -0.035em; margin-bottom: 28px; color: white; max-width: 900px;
}
.hero h1 .highlight {
    background: var(--gradient-main); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc {
    font-size: 1.2rem; color: var(--gray-400); margin-bottom: 40px;
    max-width: 580px; line-height: 1.7;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats {
    display: flex; gap: 48px; padding-top: 48px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stat-value { font-size: 2.2rem; font-weight: 800; color: white; margin-bottom: 4px; }
.hero-stat-value .accent { color: var(--accent); }
.hero-stat-label { font-size: 0.85rem; color: var(--gray-500); font-weight: 500; }

/* ===== TICKER ===== */
.ticker-section {
    background: var(--dark-800); padding: 24px 0; overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.ticker-track { display: flex; animation: ticker 30s linear infinite; width: max-content; }
.ticker-item {
    display: flex; align-items: center; gap: 16px; padding: 0 40px;
    white-space: nowrap; color: var(--gray-500); font-weight: 600; font-size: 1rem;
}
.ticker-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary-light); }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== SECTION COMMON ===== */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-tag {
    display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
    color: var(--primary); background: rgba(var(--primary-rgb), 0.1);
    padding: 6px 16px; border-radius: 50px; margin-bottom: 16px; font-weight: 500;
}
.section-tag.light { color: var(--accent); background: rgba(6,182,212,0.1); }
.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em;
    line-height: 1.15; margin-bottom: 16px; color: var(--dark);
}
.section-title.light { color: white; }
.section-desc { font-size: 1.05rem; color: var(--gray-500); line-height: 1.7; }
.section-desc.light { color: var(--gray-400); }

/* ===== SERVICES ===== */
.services { padding: 120px 0; background: var(--gray-50); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    padding: 36px; transition: all 0.4s ease; position: relative; overflow: hidden;
}
.service-card:hover {
    border-color: var(--primary); transform: translateY(-6px); box-shadow: var(--shadow-xl);
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-main); transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-num {
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
    color: var(--gray-400); margin-bottom: 20px;
}
.service-icon {
    width: 60px; height: 60px; border-radius: 16px; display: flex;
    align-items: center; justify-content: center; margin-bottom: 24px; font-size: 1.6rem;
    background: var(--gradient-card); border: 1px solid rgba(var(--primary-rgb), 0.15);
}
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; color: var(--dark); }
.service-card p { color: var(--gray-500); font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; }
.service-link {
    color: var(--primary); text-decoration: none; font-weight: 600; font-size: 0.9rem;
    display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s ease;
}
.service-link:hover { gap: 12px; }

/* ===== ADVANTAGES ===== */
.advantages { padding: 120px 0; background: var(--dark); position: relative; overflow: hidden; }
.advantages::before {
    content: ''; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px;
    background: var(--primary); border-radius: 50%; filter: blur(150px); opacity: 0.12;
}
.advantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.advantage-card {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg); padding: 32px; text-align: center;
    transition: all 0.3s ease; backdrop-filter: blur(10px);
}
.advantage-card:hover {
    background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15);
    transform: translateY(-4px);
}
.advantage-icon {
    width: 64px; height: 64px; border-radius: 16px; background: var(--gradient-main);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 1.6rem;
}
.advantage-card h3 { color: white; font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.advantage-card p { color: var(--gray-400); font-size: 0.9rem; line-height: 1.6; }

/* ===== ABOUT ===== */
.about { padding: 120px 0; background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual { position: relative; }
.about-main-card {
    background: var(--gradient-main); border-radius: var(--radius-xl); padding: 48px;
    position: relative; overflow: hidden; aspect-ratio: 4/3;
    display: flex; align-items: center; justify-content: center;
}
.about-main-card::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 20px 20px;
}
.about-main-text {
    color: white; font-size: 5rem; font-weight: 900; position: relative; z-index: 1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.about-float-card {
    position: absolute; background: var(--white); border-radius: var(--radius);
    padding: 20px 24px; box-shadow: var(--shadow-xl); z-index: 3;
}
.about-float-card.card-1 { top: -20px; right: -20px; animation: float 6s ease-in-out infinite; }
.about-float-card.card-2 { bottom: -20px; left: -20px; animation: float 6s ease-in-out infinite 3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.about-float-value { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.about-float-label { font-size: 0.8rem; color: var(--gray-500); font-weight: 500; }
.about-content .section-tag { margin-bottom: 16px; }
.about-content h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em;
    margin-bottom: 20px; line-height: 1.15;
}
.about-content p { color: var(--gray-500); font-size: 1rem; line-height: 1.8; margin-bottom: 16px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.about-feature {
    display: flex; align-items: center; gap: 12px; padding: 14px 18px;
    background: var(--gray-50); border-radius: var(--radius); border: 1px solid var(--gray-100);
}
.about-feature-check {
    width: 24px; height: 24px; border-radius: 50%; background: #d1fae5;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.about-feature-check svg { width: 14px; height: 14px; stroke: #059669; fill: none; stroke-width: 3; }
.about-feature span { font-weight: 600; font-size: 0.88rem; color: var(--dark); }

/* ===== PORTFOLIO SLIDER ===== */
.portfolio {
    padding: 120px 0; background: var(--gray-50);
    position: relative; overflow: hidden;
}
.portfolio-slider-wrapper { position: relative; overflow: hidden; border-radius: var(--radius-xl); }
.portfolio-slider-track {
    display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-slider-slide { min-width: 100%; padding: 0 12px; }
.portfolio-slider-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.portfolio-project-card {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); transition: all 0.4s ease; border: 1px solid var(--gray-200);
}
.portfolio-project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.portfolio-project-image { width: 100%; aspect-ratio: 1 / 1; position: relative; overflow: hidden; }
.portfolio-project-image-bg { position: absolute; inset: 0; transition: transform 0.5s ease; }
.portfolio-project-card:hover .portfolio-project-image-bg { transform: scale(1.05); }
.portfolio-project-image-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,15,35,0.7) 0%, transparent 50%);
}
.portfolio-project-category {
    position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 50px;
    font-size: 0.72rem; font-weight: 600; background: rgba(255,255,255,0.9); color: var(--dark);
    backdrop-filter: blur(8px);
}
.portfolio-project-year {
    position: absolute; bottom: 12px; right: 12px;
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: rgba(255,255,255,0.8);
}
.portfolio-project-content { padding: 20px; }
.portfolio-project-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.portfolio-project-desc { font-size: 0.85rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 12px; }
.portfolio-project-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.portfolio-project-tag {
    padding: 3px 8px; border-radius: 50px; font-size: 0.68rem; font-weight: 600;
    background: rgba(var(--primary-rgb), 0.08); color: var(--primary);
}
.portfolio-slider-controls {
    display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 40px;
}
.portfolio-slider-btn {
    width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--gray-200);
    background: var(--white); color: var(--dark); cursor: pointer; display: flex;
    align-items: center; justify-content: center; transition: all 0.2s; box-shadow: var(--shadow-sm);
}
.portfolio-slider-btn:hover { background: var(--primary); border-color: var(--primary); color: white; }
.portfolio-slider-btn svg { width: 20px; height: 20px; }
.portfolio-slider-dots { display: flex; gap: 8px; }
.portfolio-slider-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--gray-300);
    cursor: pointer; transition: all 0.3s;
}
.portfolio-slider-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* ===== PROCESS ===== */
.process { padding: 120px 0; background: var(--white); }
.process-timeline {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative;
}
.process-timeline::before {
    content: ''; position: absolute; top: 44px; left: 12.5%; right: 12.5%;
    height: 2px; background: var(--gray-200);
}
.process-step { text-align: center; position: relative; }
.process-step-num {
    width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-main);
    color: white; font-weight: 700; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; position: relative; z-index: 1; font-size: 1.1rem;
}
.process-step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.process-step p { color: var(--gray-500); font-size: 0.88rem; line-height: 1.6; }

/* ===== TECH STACK ===== */
.tech { padding: 100px 0; background: var(--dark); position: relative; }
.tech-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tech-item {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius); padding: 28px 16px; text-align: center;
    transition: all 0.3s ease;
}
.tech-item:hover {
    background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15);
    transform: translateY(-4px);
}
.tech-item-icon { font-size: 2rem; margin-bottom: 12px; }
.tech-item-name { color: var(--gray-300); font-weight: 600; font-size: 0.85rem; }

/* ===== TEAM ===== */
.team { padding: 120px 0; background: var(--gray-50); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--gray-200); transition: all 0.3s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: var(--gray-300); }
.team-avatar {
    width: 100%; aspect-ratio: 1; display: flex; align-items: center;
    justify-content: center; position: relative; overflow: hidden;
}
.team-card:nth-child(1) .team-avatar { background: linear-gradient(135deg, #dbeafe, #93c5fd); }
.team-card:nth-child(2) .team-avatar { background: linear-gradient(135deg, #d1fae5, #6ee7b7); }
.team-card:nth-child(3) .team-avatar { background: linear-gradient(135deg, #ede9fe, #c4b5fd); }
.team-card:nth-child(4) .team-avatar { background: linear-gradient(135deg, #ffedd5, #fdba74); }
.team-avatar-icon {
    width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,0.7);
    display: flex; align-items: center; justify-content: center;
}
.team-avatar-icon svg { width: 40px; height: 40px; fill: var(--gray-500); }
.team-info { padding: 20px; text-align: center; }
.team-info h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.team-info p { color: var(--gray-500); font-size: 0.85rem; }
.team-socials { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.team-social {
    width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--gray-200);
    display: flex; align-items: center; justify-content: center; color: var(--gray-500);
    text-decoration: none; transition: all 0.2s; font-size: 0.7rem; font-weight: 600;
}
.team-social:hover { background: var(--primary); border-color: var(--primary); color: white; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== TESTIMONIALS ===== */
.testimonials { padding: 120px 0; background: var(--white); }
.testimonials-slider { position: relative; overflow: hidden; }
.testimonials-track { display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.testimonial-card { min-width: 100%; padding: 0 12px; }
.testimonial-inner {
    background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-xl);
    padding: 48px; max-width: 900px; margin: 0 auto; position: relative;
}
.testimonial-quote {
    font-size: 3.5rem; background: var(--gradient-main);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; line-height: 1; margin-bottom: 20px;
}
.testimonial-text { font-size: 1.15rem; color: var(--dark-600); line-height: 1.8; margin-bottom: 28px; }
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.testimonial-avatar {
    width: 52px; height: 52px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; color: white;
}
.testimonial-card:nth-child(1) .testimonial-avatar { background: linear-gradient(135deg, #4f46e5, #6366f1); }
.testimonial-card:nth-child(2) .testimonial-avatar { background: linear-gradient(135deg, #06b6d4, #22d3ee); }
.testimonial-card:nth-child(3) .testimonial-avatar { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.testimonial-name { font-weight: 700; font-size: 1rem; }
.testimonial-role { color: var(--gray-500); font-size: 0.85rem; }
.testimonial-stars { display: flex; gap: 4px; margin-left: auto; }
.testimonial-stars svg { width: 18px; height: 18px; fill: #f59e0b; }
.testimonial-controls {
    display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 36px;
}
.testimonial-btn {
    width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--gray-200);
    background: transparent; color: var(--dark); cursor: pointer; display: flex;
    align-items: center; justify-content: center; transition: all 0.2s;
}
.testimonial-btn:hover { background: var(--primary); border-color: var(--primary); color: white; }
.testimonial-dots { display: flex; gap: 8px; }
.testimonial-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--gray-300);
    cursor: pointer; transition: all 0.3s;
}
.testimonial-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* ===== PARTNERS LOGO TICKER ===== */
.partners { padding: 120px 0; background: var(--gray-50); overflow: hidden; }
.partners-section-header { text-align: center; margin-bottom: 48px; }
.partners-logo-track {
    display: flex; animation: partnersScroll 25s linear infinite; width: max-content;
}
.partners-logo-track:hover { animation-play-state: paused; }
.partner-logo-item {
    flex-shrink: 0; width: 200px; height: 80px; margin: 0 24px;
    display: flex; align-items: center; justify-content: center;
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
    padding: 16px 24px; opacity: 0.6; transition: all 0.3s ease; cursor: pointer;
}
.partner-logo-item:hover {
    opacity: 1; border-color: var(--primary);
    box-shadow: var(--shadow); transform: scale(1.05);
}
.partner-logo-placeholder {
    font-weight: 700; font-size: 1rem; color: var(--gray-400);
    letter-spacing: -0.01em; white-space: nowrap; transition: color 0.3s ease;
}
.partner-logo-item:hover .partner-logo-placeholder { color: var(--dark); }
@keyframes partnersScroll {
    0% { transform: translateX(0); } 100% { transform: translateX(-50%); }
}

/* ===== VACANCIES ===== */
.vacancies { margin-bottom: 120px; background: var(--white); }
.vacancies-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.vacancy-card {
    background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    padding: 32px; transition: all 0.3s ease; position: relative; overflow: hidden;
}
.vacancy-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.vacancy-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: var(--gradient-main); opacity: 0; transition: opacity 0.3s ease;
}
.vacancy-card:hover::before { opacity: 1; }
.vacancy-header {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    margin-bottom: 16px;
}
.vacancy-title { font-size: 1.15rem; font-weight: 700; color: var(--dark); }
.vacancy-salary { font-size: 1rem; font-weight: 700; color: var(--primary); white-space: nowrap; }
.vacancy-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.vacancy-tag {
    padding: 4px 12px; border-radius: 50px; font-size: 0.78rem; font-weight: 600;
    background: rgba(var(--primary-rgb), 0.08); color: var(--primary);
}
.vacancy-tag.remote { background: #d1fae5; color: #059669; }
.vacancy-tag.office { background: #dbeafe; color: #2563eb; }
.vacancy-desc { color: var(--gray-500); font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; }
.vacancy-apply {
    display: inline-flex; align-items: center; gap: 6px; color: var(--primary);
    text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: gap 0.2s ease;
}
.vacancy-apply:hover { gap: 10px; }

/* ===== CTA ===== */
.cta { padding: 120px 0; background: var(--dark); position: relative; overflow: hidden; }
.cta::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(var(--primary-rgb), 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}
.cta-content { text-align: center; position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta h2 {
    font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: white;
    letter-spacing: -0.03em; margin-bottom: 16px;
}
.cta p { font-size: 1.15rem; color: var(--gray-400); margin-bottom: 36px; line-height: 1.7; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== CONTACT ===== */
.contact { padding: 120px 0; background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; }
.contact-info h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.contact-info > p { color: var(--gray-500); font-size: 1rem; line-height: 1.7; margin-bottom: 36px; }
.contact-items { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; }
.contact-item-icon {
    width: 52px; height: 52px; border-radius: 14px; background: rgba(var(--primary-rgb), 0.08);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item-icon svg {
    width: 22px; height: 22px; stroke: var(--primary); fill: none; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.contact-item-content h4 { font-weight: 600; margin-bottom: 4px; font-size: 0.95rem; }
.contact-item-content p { color: var(--gray-500); font-size: 0.9rem; }
.contact-form-wrapper {
    background: var(--gray-50); border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl); padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 6px; color: var(--dark-600); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 13px 16px; border: 1.5px solid var(--gray-200);
    border-radius: var(--radius); font-size: 0.95rem; font-family: inherit;
    transition: all 0.2s; background: var(--white); color: var(--dark);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit { width: 100%; }
.form-consent { font-size: 0.8rem; color: var(--gray-500); margin-top: 12px; text-align: center; }
.form-consent a { color: var(--primary); text-decoration: none; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: var(--gray-400); padding: 80px 0 0; }
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
    padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.9rem;
    line-height: 1.7;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-top: 16px; width: 280px; }
.footer-data-contacts { width: 500px; }
.footer-data-links { width: 355px; text-align: right; }
.footer h4 { color: var(--white); font-weight: 600; margin-bottom: 20px; font-size: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--gray-400); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding: 28px 0; font-size: 0.85rem; flex-wrap: wrap; gap: 16px;
}
.footer-socials { display: flex; gap: 12px; }
.footer-social {
    width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center; color: var(--gray-400);
    text-decoration: none; transition: all 0.2s; font-size: 0.8rem; font-weight: 600;
}
.footer-social:hover { background: var(--primary); border-color: var(--primary); color: white; }

/* ===== SCROLL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== MODAL (исправлен скролл при капче) ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}
.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 480px;
    width: 90%;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
    margin: 40px auto;
    flex-shrink: 0;
}
.modal-overlay.open .modal {
    transform: scale(1) translateY(0);
}
.modal-close {
    position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
    border-radius: 50%; border: none; background: var(--gray-100); cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
    color: var(--gray-500); transition: all 0.2s;
}
.modal-close:hover { background: var(--gray-200); color: var(--dark); }
.modal h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.modal > p { color: var(--gray-500); margin-bottom: 24px; font-size: 0.95rem; }
.modal .form-group { margin-bottom: 16px; }

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed; bottom: 28px; right: 28px; width: 50px; height: 50px;
    border-radius: 50%; background: var(--gradient-main); color: white; border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.4); z-index: 100;
    opacity: 0; transform: translateY(20px); transition: all 0.3s ease;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* ===== NOTIFICATION ===== */
.notification {
    position: fixed; top: 100px; right: 24px; background: var(--white);
    border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px 24px;
    box-shadow: var(--shadow-xl); z-index: 1500; display: flex; align-items: center;
    gap: 14px; transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 380px;
}
.notification.show { transform: translateX(0); }
.notification-icon {
    width: 40px; height: 40px; border-radius: 50%; background: #d1fae5;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.notification-icon svg {
    width: 20px; height: 20px; stroke: #059669; fill: none;
    stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.notification-text { font-size: 0.9rem; font-weight: 500; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid, .vacancies-grid { grid-template-columns: repeat(2, 1fr); }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .portfolio-slider-grid { grid-template-columns: repeat(2, 1fr); }
    .process-timeline { grid-template-columns: repeat(2, 1fr); }
    .process-timeline::before { display: none; }
    .tech-grid { grid-template-columns: repeat(3, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav, .header-cta { display: none; }
    .burger { display: flex; }
    .mobile-nav { display: block; }
    .hero h1 { font-size: 2.2rem; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .services-grid, .advantages-grid, .portfolio-slider-grid, .vacancies-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .process-timeline, .team-grid, .footer-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-inner { padding: 32px 24px; }
    .about-features { grid-template-columns: 1fr; }
    .footer-data-contacts,
    .footer-data-links {
        max-width: 100%;
        text-align: left;
    }
    .footer-data-links .footer-social {
        width: 100%;
    }
    .footer-data {
        flex-direction: column;
        gap: 24px;
    }
    .modal {
        margin: 20px auto;
        padding: 28px 20px;
        width: 94%;
    }
}

@media (max-width: 480px) {
    .hero { min-height: auto; padding: 100px 0 60px; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn { width: 100%; }
    .cta-btns { flex-direction: column; align-items: center; }
}

/* ══════════════════════════════════════════════════════════════
   ПАТЧ v1.4 — Недостающие стили
   ══════════════════════════════════════════════════════════════ */

/* ─── Логотип: текст ──────────────────────────────────────── */

.logo-text-prefix {
    color: var(--gray-400);
}

.logo-text-name {
    color: var(--white);
}

/* ─── Footer: ссылки телефон/email ────────────────────────── */

.footer-data-contacts a,
.footer-contacts-list a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-data-contacts a:hover,
.footer-contacts-list a:hover {
    color: var(--accent);
}

/* ─── Footer: ссылки политика/ОПД ─────────────────────────── */

.footer-data-links .footer-social {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 350px;
    margin-bottom: 8px;
}

.footer-data-links .footer-social:hover {
    color: var(--white);
}

/* ─── Mobile nav: footer (телефон + кнопка) ───────────────── */

.mobile-nav-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-phone {
    color: var(--white);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.mobile-nav-phone:hover {
    color: var(--accent);
}

.mobile-nav .btn {
    text-align: center;
    width: 100%;
}

/* ─── Contact: ссылки телефон/email ───────────────────────── */

.contact-item-content a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item-content a:hover {
    color: var(--accent);
}

/* ─── Чекбокс согласия ────────────────────────────────────── */

.form-consent-checkbox {
    margin-bottom: 20px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.consent-label input[type="checkbox"] {
    display: none;
}

.consent-checkmark {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 1px;
    background: var(--white);
}

.consent-checkmark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-top: -2px;
}

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

.consent-label input[type="checkbox"]:checked + .consent-checkmark::after {
    opacity: 1;
}

.consent-label:hover .consent-checkmark {
    border-color: var(--primary-light);
}

.consent-text {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.consent-text a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ─── Кнопка: состояние disabled ──────────────────────────── */

.form-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.form-submit:disabled:hover {
    transform: none;
}

/* ─── Обфускация контактов ────────────────────────────────── */

.obf-link {
    cursor: pointer;
}

.obf-text {
    transition: opacity 0.3s ease;
}

.obf-phone .obf-text {
    letter-spacing: 0.05em;
}

/* ─── Внутренние страницы (контент) ───────────────────────── */

.page-content {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 60vh;
}

.page-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--gray-200);
}

.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--dark);
}

.content-body {
    max-width: 800px;
}

.content-body h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 40px;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.content-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 32px;
    margin-bottom: 12px;
}

.content-body p {
    color: var(--gray-500);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-body ul,
.content-body ol {
    color: var(--gray-500);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
    padding-left: 24px;
}

.content-body li {
    margin-bottom: 8px;
}

.content-body strong {
    color: var(--dark);
    font-weight: 600;
}

.content-body a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.content-body code {
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
}

/* ─── Сообщения формы ─────────────────────────────────────── */

.form-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-message-success {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
}

.form-message-error {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff3b30;
}

/* ─── Ошибки полей ────────────────────────────────────────── */

.form-error {
    display: block;
    color: #ff3b30;
    font-size: 0.8rem;
    margin-top: 4px;
    min-height: 18px;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #ff3b30 !important;
}

/* ─── Кнопка загрузка ─────────────────────────────────────── */

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ─── CAPTCHA ─────────────────────────────────────────────── */

.form-captcha {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(0, 212, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 8px;
}

.form-captcha label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #ccc;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-image-wrapper {
    position: relative;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.captcha-image-wrapper img {
    display: block;
    width: 180px;
    height: 60px;
}

.captcha-refresh {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.captcha-refresh:hover {
    opacity: 1;
}

.captcha-refresh svg {
    width: 14px;
    height: 14px;
}

.form-captcha input[name="captcha"] {
    width: 180px;
    font-size: 1.5rem;
    letter-spacing: 10px;
    text-align: center;
    padding: 10px 16px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.form-captcha.has-error {
    border-color: #ff3b30;
}

.form-captcha .form-error {
    margin-top: 8px;
}

@media (max-width: 480px) {
    .captcha-row {
        flex-direction: column;
        align-items: stretch;
    }
    .form-captcha input[name="captcha"] {
        width: 100%;
    }
}

/* ─── Toast уведомление ───────────────────────────────────── */

.form-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.4s, transform 0.4s;
    pointer-events: none;
    max-width: 90%;
    text-align: center;
}

.form-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.form-toast-success {
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}