:root {
    --bg-dark: #0b1019;
    --bg-card: #121a29;
    --bg-card-hover: #1a2438;
    --accent: #FF9800;          /* насыщенный оранжевый */
    --accent-dark: #cc7a00;
    --text-light: #f0f4fa;
    --text-muted: #8c9ab5;
    --border: #1d2b3f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'Inter', sans-serif;
    /* Тёмный фон с едва заметным тёплым отливом вверху */
    background: linear-gradient(180deg, #1c1408 0%, #0b1019 30%);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding {
    padding: 80px 0;
    background: transparent !important;
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.no-js .fade-up {
    opacity: 1;
    transform: none;
}

.btn { display: inline-block; padding: 12px 28px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: 0.3s; border: none; font-family: inherit; }
.btn-primary { background: var(--accent); color: #000; }  /* чёрный текст на оранжевом */
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,152,0,0.3); }
.btn-outline { border: 1px solid var(--text-muted); color: var(--text-light); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================
   ШАПКА — ДЕСКТОПНАЯ ВЕРСИЯ
   ============================================ */
header {
    padding: 20px 0;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 75px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}
.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s;
}
.nav-links a:hover {
    color: var(--accent);
}
.nav-links a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
}

.cta-btn {
    display: inline-block;
    padding: 10px 24px;
}

/* Скрыть мобильные элементы на десктопе */
.burger { display: none; }
.header-cta-mobile { display: none; }
.menu-overlay { display: none; }

/* ============================================
   МОБИЛЬНАЯ ВЕРСИЯ — до 991px
   ============================================ */
@media (max-width: 991px) {
    header {
        padding: 12px 0;
        background: rgba(11, 16, 25, 0.95);
        backdrop-filter: blur(12px);
    }

    .logo img {
        height: 45px;
    }

    .nav-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    /* Кнопка "Связаться" по центру */
    .header-cta-mobile {
        display: block;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    .header-cta-mobile .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* Скрыть десктопную кнопку */
    .cta-btn { display: none; }

    /* Бургер */
    .burger {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 5px;
        z-index: 1002;
    }
    .burger span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text-light);
        transition: 0.3s;
    }
    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Мобильное меню — ВЕРТИКАЛЬНО сверху вниз */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        max-height: 0;
        background: var(--bg-card);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0 20px;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        z-index: 999;
    }
    .nav-links.open {
        max-height: 500px;
        padding: 80px 20px 30px;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    .nav-links a {
        display: block;
        padding: 16px 0;
        font-size: 18px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links a.active {
        border-bottom: 2px solid var(--accent);
    }

    /* Оверлей */
    .menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
        z-index: 998;
    }
    .menu-overlay.visible {
        opacity: 1;
        visibility: visible;
    }
}
/* ГЕРОЙ */
.hero-split { padding: 100px 0 80px; }
.hero-flex { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-left { flex: 1; }
.hero-left h1 { font-size: 44px; font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.hero-left h1 span { color: var(--accent); }
.hero-left p { color: var(--text-muted); font-size: 16px; max-width: 500px; margin-bottom: 30px; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

@media (max-width: 768px) {
    .hero-split { padding: 60px 0; }
    .hero-flex { flex-direction: column; text-align: center; }
    .hero-left h1 { font-size: 32px; }
    .hero-left p { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
}

/* ЗАГОЛОВКИ */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 32px; font-weight: 600; margin-bottom: 15px; }
.section-header p { color: var(--text-muted); max-width: 700px; margin: 0 auto; font-size: 16px; }
.text-center { text-align: center; }

/* КАРТОЧКИ */
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.card {
    background: var(--bg-card); padding: 35px 30px; border-radius: 12px;
    border: 1px solid transparent; transition: 0.3s; text-align: left;
}
.card:hover { border-color: var(--accent); transform: translateY(-5px); background: var(--bg-card-hover); }
.card-icon { font-size: 36px; color: var(--accent); margin-bottom: 25px; }
.card h3 { font-size: 20px; margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 15px; }

@media (max-width: 576px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .card { padding: 20px 15px; }
    .card-icon { font-size: 28px; margin-bottom: 15px; }
    .card h3 { font-size: 16px; margin-bottom: 8px; }
    .card p { font-size: 13px; }
}

/* СТАТИСТИКА */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item .stat-number { font-size: 48px; font-weight: 700; color: var(--accent); display: block; }
.stat-item p { color: var(--text-muted); font-size: 16px; margin-top: 10px; }

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
    .stat-item .stat-number { font-size: 40px; }
}

/* СЛАЙДЕР */
.testimonials-slider { position: relative; max-width: 800px; margin: 0 auto; overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.5s ease; }
.testimonial-card {
    flex: 0 0 100%; padding: 40px 30px; background: var(--bg-card);
    border-radius: 12px; border: 1px solid var(--border); text-align: center;
}
.testimonial-card i { font-size: 32px; color: var(--accent); margin-bottom: 20px; display: block; }
.testimonial-card p { font-size: 16px; color: var(--text-muted); font-style: italic; margin-bottom: 25px; }
.testimonial-card h4 { font-size: 18px; margin-bottom: 5px; }
.testimonial-card span { font-size: 14px; color: var(--text-muted); }

.slider-controls { display: flex; justify-content: center; align-items: center; margin-top: 30px; gap: 20px; }
.slider-controls button {
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text-light);
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer; transition: 0.3s; font-size: 18px;
}
.slider-controls button:hover { border-color: var(--accent); color: var(--accent); }
.slider-dots { display: flex; gap: 10px; }
.slider-dot { width: 12px; height: 12px; background: var(--border); border-radius: 50%; cursor: pointer; border: none; }
.slider-dot.active { background: var(--accent); }

/* CTA */
.cta-section { text-align: center; }
.cta-section h2 { font-size: 36px; margin-bottom: 20px; }
.cta-section p { color: var(--text-muted); font-size: 18px; max-width: 600px; margin: 0 auto 30px; }

/* УСЛУГИ TABS */
.services-tabs { display: grid; grid-template-columns: 300px 1fr; gap: 30px; max-width: 1200px; margin: 0 auto; align-items: start; }
.tabs-nav { background: var(--bg-card); padding: 15px; border-radius: 12px; border: 1px solid var(--border); }
.tab-btn {
    display: flex; align-items: center; gap: 12px; padding: 14px 18px;
    background: transparent; border: 1px solid transparent; color: var(--text-muted);
    font-weight: 500; font-size: 15px; border-radius: 8px; cursor: pointer;
    transition: 0.3s; text-align: left; font-family: inherit; width: 100%;
}
.tab-btn i { width: 22px; font-size: 18px; text-align: center; }
.tab-btn:hover { background: var(--bg-card-hover); color: var(--accent); }
.tab-btn.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }
.tabs-content { background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border); overflow: hidden; min-height: 480px; position: relative; }
.tab-pane { display: none; padding: 40px; animation: fadeIn 0.4s ease; box-sizing: border-box; }
.tab-pane.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.tab-inner { display: flex; gap: 30px; align-items: center; }
.tab-text { flex: 1; }
.tab-text h2 { font-size: 26px; margin-bottom: 12px; }
.tab-text .lead { color: var(--text-muted); font-size: 16px; margin-bottom: 20px; }
.feature-list { list-style: none; margin-bottom: 30px; }
.feature-list li { display: flex; align-items: center; gap: 10px; color: var(--text-muted); margin-bottom: 10px; font-size: 15px; }
.feature-list i { color: var(--accent); font-size: 16px; }
.tab-image { flex: 0 0 180px; text-align: center; }
.tab-image i { font-size: 100px; color: var(--accent); opacity: 0.4; }

@media (max-width: 768px) {
    .services-tabs { grid-template-columns: 1fr; }
    .tabs-nav { display: flex; flex-wrap: wrap; gap: 8px; }
    .tab-btn { flex: 1 1 auto; font-size: 13px; padding: 10px; }
    .tabs-content { min-height: auto; }
    .tab-inner { flex-direction: column; }
}

/* ПРОЦЕСС */
.process-steps { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 25px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-number {
    flex: 0 0 50px; width: 50px; height: 50px; background: var(--accent); color: #000;
    font-size: 22px; font-weight: 700; border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
}
.step-content h3 { font-size: 18px; margin-bottom: 5px; }
.step-content p { color: var(--text-muted); font-size: 15px; }

/* РЕШЕНИЯ */
.solutions-accordion { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.industry-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: 0.3s; }
.industry-card:hover { border-color: var(--accent); }
.accordion-header {
    width: 100%; display: flex; align-items: center; gap: 15px; padding: 20px 25px;
    background: transparent; border: none; color: var(--text-light); font-size: 18px;
    font-weight: 600; cursor: pointer; text-align: left; font-family: inherit;
}
.industry-icon { font-size: 28px; color: var(--accent); width: 40px; text-align: center; }
.industry-title { flex: 1; }
.accordion-arrow { color: var(--text-muted); transition: transform 0.3s; }
.accordion-header[aria-expanded="true"] .accordion-arrow { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.accordion-body.expanded { max-height: 500px; }
.solution-detail { padding: 0 25px 25px; color: var(--text-muted); font-size: 15px; }
.solution-detail .lead { font-size: 16px; margin-bottom: 20px; color: var(--text-light); }
.solution-modules h4 { color: var(--accent); margin-bottom: 10px; }
.solution-modules ul { list-style: none; margin-bottom: 20px; }
.solution-modules li { padding-left: 20px; position: relative; margin-bottom: 8px; }
.solution-modules li::before { content: "▹"; position: absolute; left: 0; color: var(--accent); }

/* ТЕХНОЛОГИИ */
.tech-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.filter-btn {
    padding: 10px 22px; background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-muted); border-radius: 30px; font-weight: 500; cursor: pointer;
    transition: 0.3s; font-size: 14px; font-family: inherit;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #000; border-color: var(--accent); }
.tech-grid-3d { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 25px; perspective: 1000px; }
.tech-flip-card { height: 200px; cursor: pointer; }
.tech-flip-inner { position: relative; width: 100%; height: 100%; transition: transform 0.6s; transform-style: preserve-3d; }
.tech-flip-card:hover .tech-flip-inner { transform: rotateY(180deg); }
.tech-flip-front, .tech-flip-back {
    position: absolute; width: 100%; height: 100%; backface-visibility: hidden;
    border-radius: 12px; display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 20px; background: var(--bg-card);
    border: 1px solid var(--border);
}
.tech-flip-front i { font-size: 45px; color: var(--accent); margin-bottom: 10px; }
.tech-flip-front h3 { font-size: 16px; }
.tech-flip-back { transform: rotateY(180deg); background: var(--bg-card-hover); border-color: var(--accent); }
.tech-flip-back p { font-size: 13px; color: var(--text-muted); text-align: center; margin-bottom: 8px; }
.proficiency { margin-top: 8px; font-size: 12px; color: var(--accent); background: rgba(255,152,0,0.15); padding: 3px 10px; border-radius: 20px; }

/* О КОМПАНИИ */
.about-hero { padding: 100px 0 60px; }
.philosophy-circles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; max-width: 900px; margin: 30px auto 0; }
.phil-circle {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
    padding: 30px 20px; text-align: center; transition: transform 0.3s, border-color 0.3s;
}
.phil-circle:hover { border-color: var(--accent); transform: translateY(-5px); }
.circle-icon { font-size: 34px; color: var(--accent); margin-bottom: 15px; }
.phil-circle h3 { font-size: 18px; margin-bottom: 8px; }
.phil-circle p { color: var(--text-muted); font-size: 14px; }

.timeline { position: relative; max-width: 800px; margin: 0 auto; padding: 20px 0; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--border); transform: translateX(-50%); }
.timeline-progress { position: absolute; left: 50%; top: 0; width: 2px; height: 0; background: var(--accent); transform: translateX(-50%); transition: height 1.8s ease; z-index: 1; }
.timeline-item { position: relative; width: 50%; padding: 20px 40px; }
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }
.timeline-item::after { content: ''; position: absolute; top: 30px; width: 14px; height: 14px; background: var(--accent); border: 3px solid var(--accent); border-radius: 50%; z-index: 2; }
.timeline-item.left::after { right: -10px; }
.timeline-item.right::after { left: -10px; }
.timeline-content { background: var(--bg-card); padding: 20px; border-radius: 8px; border: 1px solid var(--border); }
.timeline-content h3 { font-size: 18px; color: var(--accent); margin-bottom: 5px; }
.timeline-content p { color: var(--text-muted); font-size: 14px; }

@media (max-width: 768px) {
    .timeline::before { left: 20px; }
    .timeline-progress { left: 20px; }
    .timeline-item { width: 100%; left: 0 !important; padding-left: 50px; text-align: left !important; }
    .timeline-item::after { left: 13px !important; }
}

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 25px; margin-top: 30px; }
.value-flip-card { height: 180px; perspective: 600px; }
.value-flip-inner { position: relative; width: 100%; height: 100%; transition: transform 0.6s; transform-style: preserve-3d; }
.value-flip-card:hover .value-flip-inner { transform: rotateY(180deg); }
.value-flip-front, .value-flip-back {
    position: absolute; width: 100%; height: 100%; backface-visibility: hidden;
    border-radius: 12px; display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 20px; background: var(--bg-card);
    border: 1px solid var(--border);
}
.value-flip-front i { font-size: 32px; color: var(--accent); margin-bottom: 10px; }
.value-flip-front h3 { font-size: 18px; }
.value-flip-back { transform: rotateY(180deg); background: var(--bg-card-hover); border-color: var(--accent); }
.value-flip-back p { color: var(--text-muted); font-size: 14px; text-align: center; }

/* КОМАНДА */
.team-grid-premium { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; }
.member-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; transition: transform 0.3s, box-shadow 0.3s;
}
.member-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(255,152,0,0.15); }
.member-photo { height: 250px; background: linear-gradient(135deg, #3d2a00, var(--bg-card)); display: flex; align-items: center; justify-content: center; font-size: 60px; color: var(--accent); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-info { padding: 20px; }
.member-info h3 { font-size: 20px; margin-bottom: 5px; }
.role { display: inline-block; font-size: 13px; color: var(--accent); background: rgba(255,152,0,0.15); padding: 3px 12px; border-radius: 20px; }

/* КОНТАКТЫ */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-map { height: 280px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.contact-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.contact-details { display: flex; flex-direction: column; gap: 15px; }
.detail-item {
    display: flex; gap: 15px; align-items: flex-start; background: var(--bg-card);
    padding: 16px 20px; border-radius: 10px; border: 1px solid var(--border);
    transition: border-color 0.3s;
}
.detail-item:hover { border-color: var(--accent); }
.detail-item i { font-size: 20px; color: var(--accent); margin-top: 2px; }
.detail-item strong { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.detail-item a, .detail-item span { font-size: 15px; color: var(--text-light); }
.form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 35px 30px; }
.form-header h2 { font-size: 24px; margin-bottom: 8px; }
.form-header p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.form-group { margin-bottom: 15px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; background: #1d2b3f; border: 1px solid transparent;
    border-radius: 6px; color: #fff; outline: none; transition: 0.3s;
    font-family: inherit; font-size: 14px;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { height: 100px; resize: vertical; }
.form-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 15px; }
.messenger-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.messenger-btn { padding: 12px 28px; border-radius: 10px; font-weight: 600; color: #fff; transition: 0.3s; }
.messenger-btn.telegram { background: #0088cc; }
.messenger-btn.vk { background: #0077FF; }
.messenger-btn:hover { opacity: 0.9; transform: translateY(-2px); }

/* ФУТЕР */
footer {
    padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center; color: var(--text-muted); font-size: 14px; background: transparent;
}
footer .social-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 15px; }
footer .social-links a { font-size: 20px; color: var(--text-muted); transition: 0.3s; }
footer .social-links a:hover { color: var(--accent); }

/* КНОПКА НАВЕРХ */
#back-to-top {
    position: fixed; bottom: 30px; right: 30px; background: var(--accent); color: #000;
    border: none; border-radius: 50%; width: 50px; height: 50px; font-size: 22px;
    cursor: pointer; opacity: 0; visibility: hidden; transition: 0.3s; z-index: 997;
    box-shadow: 0 4px 15px rgba(255,152,0,0.4);
}
#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover { background: var(--accent-dark); transform: translateY(-3px); }

@media (max-width: 768px) {
    #back-to-top { bottom: 25px; right: 25px; width: 45px; height: 45px; font-size: 20px; }
    .contact-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}