:root {
    --bg-dark: #0b1019;
    --bg-card: #121a29;
    --bg-card-hover: #1a2438;
    --accent: #00d2d3;
    --accent-dark: #009d9e;
    --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, #0f1f35 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: #111; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.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;
}
.hero-right {
    flex: 0 0 auto;
    text-align: center;
    display: none;
}
.hero-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

@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;
}

/* ============================================
   КАРТОЧКИ — 2 КОЛОНКИ
   ============================================ */
.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;
    transition: 0.3s;
    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;
}

/* ============================================
   СТРАНИЦА УСЛУГ
   ============================================ */
.services-tabs {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.tabs-nav {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: var(--bg-card);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    text-align: left;
    font-family: inherit;
}
.tab-btn i {
    width: 24px;
    font-size: 20px;
    text-align: center;
}
.tab-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-light);
}
.tab-btn.active {
    background: var(--bg-card-hover);
    color: var(--accent);
    border-color: var(--accent);
    font-weight: 600;
}

.tabs-content {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    height: 520px;
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.tab-pane {
    display: none;
    padding: 40px;
    animation: fadeIn 0.4s ease;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    word-break: break-word;
    overflow-wrap: break-word;
    min-height: 380px;
}

.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: 28px;
    margin-bottom: 15px;
}
.tab-text .lead {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 25px;
}

.feature-list {
    list-style: none;
    margin-bottom: 30px;
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 15px;
}
.feature-list i {
    color: var(--accent);
    font-size: 16px;
}

.tab-image {
    flex: 0 0 200px;
    text-align: center;
}
.tab-image i {
    font-size: 120px;
    color: #2a3a5a;
}

@media (max-width: 768px) {
    .services-tabs {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .tabs-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px;
    }
    .tab-btn {
        flex: 1 1 auto;
        font-size: 14px;
        padding: 12px 15px;
    }
    .tabs-content {
        height: auto;
        min-height: 400px;
    }
    .tab-pane {
        padding: 25px;
        min-height: auto;
    }
    .tab-inner {
        flex-direction: column;
    }
    .tab-image {
        flex: none;
    }
    .tab-image i {
        font-size: 80px;
    }
}

/* Процесс работы */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}
.step {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.step-number {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    background: var(--accent);
    color: #111;
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
}
.step-content p {
    color: var(--text-muted);
    font-size: 15px;
}

@media (max-width: 768px) {
    .step {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
    }
    .step-number {
        flex: none;
        width: 52px;
        height: 52px;
        min-width: 52px;
        min-height: 52px;
        font-size: 20px;
    }
}

/* ============================================
   СТРАНИЦА РЕШЕНИЙ
   ============================================ */
.solutions-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.industry-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}
.industry-card:hover {
    border-color: var(--accent);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-family: inherit;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-align: left;
}
.accordion-header:hover {
    background: var(--bg-card-hover);
}
.industry-icon {
    font-size: 32px;
    color: var(--accent);
    width: 50px;
    text-align: center;
}
.industry-title {
    flex: 1;
}
.accordion-arrow {
    font-size: 18px;
    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: 800px;
}

.solution-detail {
    padding: 0 30px 30px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}
.solution-detail .lead {
    font-size: 16px;
    margin-bottom: 25px;
    color: var(--text-light);
}
.solution-modules h4,
.solution-case h4 {
    font-size: 18px;
    color: var(--accent);
    margin-bottom: 15px;
}
.solution-modules ul {
    list-style: none;
    margin-bottom: 25px;
}
.solution-modules li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}
.solution-modules li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 18px;
}
.solution-case p {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .accordion-header {
        font-size: 18px;
        padding: 20px;
        gap: 15px;
    }
    .industry-icon {
        font-size: 26px;
        width: 40px;
    }
    .solution-detail {
        padding: 0 20px 25px;
    }
}

/* Адаптация (steps) */
.adaptation-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.adapt-step {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    transition: 0.3s;
}
.adapt-step:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}
.adapt-step-icon {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 20px;
}
.adapt-step h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.adapt-step p {
    color: var(--text-muted);
    font-size: 15px;
}

@media (max-width: 768px) {
    .adaptation-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .adapt-step {
        padding: 20px 15px;
    }
    .adapt-step:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 320px;
        margin: 0 auto;
    }
}

/* ============================================
   СТРАНИЦА ТЕХНОЛОГИЙ
   ============================================ */
.gradient-text {
    background: linear-gradient(135deg, var(--accent), #5f9ea0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}
.filter-btn {
    padding: 12px 24px;
    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(--text-light);
}
.filter-btn.active {
    background: var(--accent);
    color: #111;
    border-color: var(--accent);
}

/* 3D-сетка технологий */
.tech-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    perspective: 1000px;
}

.tech-flip-card {
    height: 220px;
    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: 50px;
    color: var(--accent);
    margin-bottom: 15px;
}

.tech-flip-front h3 {
    font-size: 18px;
    font-weight: 600;
}

.proficiency {
    margin-top: 10px;
    font-size: 12px;
    color: var(--accent);
    background: rgba(0, 210, 211, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.tech-flip-back {
    transform: rotateY(180deg);
    background: var(--bg-card-hover);
    border-color: var(--accent);
    text-align: center;
}

.tech-flip-back p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
}

.tech-flip-back span {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
}

@media (max-width: 768px) {
    .tech-grid-3d {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .tech-flip-card {
        height: 200px; /* фиксированная высота, можно подобрать под дизайн */
    }
    /* Оставляем 3D-структуру, убираем принудительный сброс */
    .tech-flip-inner {
        /* не трогаем transform и position – они остаются как на десктопе */
    }
    .tech-flip-front i {
        font-size: 32px;
        margin-bottom: 8px;
    }
    .tech-flip-front h3 {
        font-size: 15px;
    }
    .tech-flip-back p {
        font-size: 12px;
        margin-bottom: 6px;
    }
}

/* Полосы экспертизы */
.expertise-bars {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}
.expertise-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.expertise-item span {
    width: 100px;
    font-size: 14px;
    color: var(--text-muted);
}
.bar {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #5f9ea0);
    width: 0;
    transition: width 1.5s ease;
}

/* ============================================
   СТРАНИЦА О КОМПАНИИ
   ============================================ */
.about-hero {
    position: relative;
    padding: 120px 0;
    background: transparent;
    overflow: hidden;
}

.about-hero .container {
    position: relative;
    z-index: 1;
}

.philosophy-circles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.phil-circle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 35px 20px;
    transition: border-color 0.3s, transform 0.3s;
    opacity: 0;
    transform: translateY(15px);
    animation: popIn 0.6s forwards;
}
.phil-circle:nth-child(1) { animation-delay: 0.1s; }
.phil-circle:nth-child(2) { animation-delay: 0.2s; }
.phil-circle:nth-child(3) { animation-delay: 0.3s; }

/* Ховер только там, где есть настоящая мышь — на тачскрине эффект не нужен */
@media (hover: hover) and (pointer: fine) {
    .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: 10px;
}

.phil-circle p {
    color: var(--text-muted);
    font-size: 14px;
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .philosophy-circles {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .phil-circle {
        padding: 25px 15px;
    }
    .phil-circle:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 260px;
        margin: 0 auto;
    }
    .circle-icon {
        font-size: 28px;
        margin-bottom: 10px;
    }
    .phil-circle h3 {
        font-size: 16px;
    }
    .phil-circle p {
        font-size: 13px;
    }
}

/* Таймлайн */
.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);
    transition: border-color 0.3s;
}

.timeline-content:hover {
    border-color: var(--accent);
}

.timeline-content h3 {
    font-size: 18px;
    color: var(--accent);
    margin-bottom: 8px;
}

.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(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.value-flip-card {
    height: 200px;
    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: 36px;
    color: var(--accent);
    margin-bottom: 15px;
}

.value-flip-front h3 {
    font-size: 20px;
}

.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;
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .value-flip-card {
        height: 180px; /* или 200px, по вкусу */
    }
    /* 3D-структура сохраняется, transform не сбрасываем */
    .value-flip-front i {
        font-size: 26px;
        margin-bottom: 8px;
    }
    .value-flip-front h3 {
        font-size: 16px;
    }
    .value-flip-back p {
        font-size: 12px;
    }
}

/* Карта роста */
.growth-map {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 300px;
    margin: 0 auto;
    background: rgba(18,26,41,0.5);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.map-point {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.point-dot {
    display: block;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.point-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
    font-weight: 600;
}

.map-point::after {
    content: attr(data-info);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.map-point:hover::after {
    opacity: 1;
}

/* ============================================
   СТРАНИЦА КОМАНДЫ
   ============================================ */
.team-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.member-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    cursor: default;
}

.member-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 210, 211, 0.1);
}

.member-photo {
    height: 300px;
    background: linear-gradient(135deg, #1a2b46 0%, var(--bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--accent);
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    object-position: center 20%;
}

.member-info {
    padding: 25px 20px 20px;
    position: relative;
}

.member-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.role {
    display: inline-block;
    font-size: 13px;
    color: var(--accent);
    background: rgba(0, 210, 211, 0.1);
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    white-space: nowrap;
}

.bio {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s, max-height 0.4s;
}

.member-card:hover .bio {
    opacity: 1;
    max-height: 100px;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s, transform 0.4s;
}

.member-card:hover .member-skills {
    opacity: 1;
    transform: translateY(0);
}

.member-skills span {
    background: rgba(0, 210, 211, 0.08);
    color: var(--accent);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 4px;
}

.member-social {
    display: flex;
    gap: 15px;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.4s;
}

.member-card:hover .member-social {
    opacity: 1;
}

.member-social a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.member-social a:hover {
    color: var(--accent);
}

@media (max-width: 991px) {
    .team-grid-premium {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .member-photo {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .team-grid-premium {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .member-photo {
        height: 160px;
    }
    .member-info {
        padding: 14px 12px 12px;
    }
    .member-info h3 {
        font-size: 14px;
        margin-bottom: 4px;
    }
    .role {
        font-size: 10px;
        padding: 2px 8px;
        white-space: normal;
    }
}

.team-photo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-photo-frame {
    width: 75%;
    max-width: 1542px;
    border: 2px solid var(--accent);
    border-radius: 8px;
    padding: 8px;
    background: transparent;
}

.team-photo-frame img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* ============================================
   СТРАНИЦА КОНТАКТОВ
   ============================================ */
.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;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.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;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.form-card:hover {
    border-color: var(--accent);
    box-shadow: 0 25px 50px rgba(0, 210, 211, 0.08);
}

.form-header {
    margin-bottom: 25px;
}

.form-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Сетка внутри формы */
.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: 'Inter', sans-serif;
    font-size: 14px;
    margin: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6a7a8e;
    opacity: 1;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

/* Select */
.form-group select {
    width: 100%;
    padding: 12px;
    background: #1d2b3f;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #fff;
    outline: none;
    transition: 0.3s;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%238c9ab5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.form-group select:focus {
    border-color: var(--accent);
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-light);
}

/* Подпись под формой */
.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 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.messenger-btn:hover {
    transform: translateY(-3px);
}

.messenger-btn.telegram {
    background: #0088cc;
    color: #fff;
}

.messenger-btn.vk {
    background: #0077FF;
    color: #fff;
}

.messenger-btn.vk:hover {
    background: #0066dd;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ФУТЕР
   ============================================ */
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: color 0.3s;
}

footer .social-links a:hover {
    color: var(--accent);
}

/* ============================================
   КНОПКА НАВЕРХ
   ============================================ */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: #111;
    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(0, 210, 211, 0.4);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-3px);
    background: var(--accent-dark);
}

@media (max-width: 768px) {
    #back-to-top {
        bottom: 25px;
        right: 25px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}
/* ============================================
   ФИКС ХОВЕР-ЭФФЕКТОВ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
   ============================================ */

/* 
   Отключаем стандартные ховер-эффекты на тач-устройствах
   и добавляем класс для активации по клику
*/
@media (hover: none) and (pointer: coarse) {
    
    /* Отключаем все ховер-трансформации */
    .card:hover {
        transform: none;
        border-color: transparent;
    }
    
    .industry-card:hover {
        border-color: var(--border);
    }
    
    .member-card:hover {
        transform: none;
        border-color: var(--border);
        box-shadow: none;
    }
    
    .detail-item:hover {
        border-color: var(--border);
    }
    
    .form-card:hover {
        border-color: var(--border);
        box-shadow: none;
    }
    
    .timeline-content:hover {
        border-color: var(--border);
    }

    /* Отключаем ховер-перевороты, они будут по клику */
    .value-flip-card:hover .value-flip-inner {
        transform: none;
    }
    
    .tech-flip-card:hover .tech-flip-inner {
        transform: none;
    }

    /* Класс для переворота по клику */
    .value-flip-card.flipped .value-flip-inner,
    .tech-flip-card.flipped .tech-flip-inner {
        transform: rotateY(180deg);
    }

    /* Показываем скрытые элементы в карточках команды по клику */
    .member-card .bio {
        opacity: 0;
        max-height: 0;
    }
    
    .member-card .member-skills {
        opacity: 0;
        transform: translateY(10px);
    }
    
    .member-card .member-social {
        opacity: 0;
    }
    
    /* Класс для показа скрытого контента */
    .member-card.tapped .bio {
        opacity: 1;
        max-height: 200px;
    }
    
    .member-card.tapped .member-skills {
        opacity: 1;
        transform: translateY(0);
    }
    
    .member-card.tapped .member-social {
        opacity: 1;
    }
}