/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #fff;
    background-color: #0a0a0a;
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 18px;
    position: relative;
}

/* Декоративные элементы по краям */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 150px;
    height: 100vh;
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.1) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 150px;
    height: 100vh;
    background: linear-gradient(-90deg, rgba(138, 43, 226, 0.1) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

/* Декоративные элементы в секциях */
.section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.section:nth-child(odd)::before {
    top: -100px;
    left: -150px;
}

.section:nth-child(even)::before {
    bottom: -100px;
    right: -150px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #8a2be2, #4b0082);
    border-radius: 2px;
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

.logo span {
    color: #8a2be2;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    margin-left: 40px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #8a2be2;
    transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #8a2be2;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Главный экран */
.first-screen {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.first-screen .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-title span {
    color: #8a2be2;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 35px;
    color: #aaa;
}

.hero-text {
    font-size: 1.35rem;
    margin-bottom: 45px;
    color: #ccc;
    max-width: 650px;
    line-height: 1.8;
}

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

.btn {
    display: inline-block;
    padding: 18px 42px;
    border-radius: 35px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, #8a2be2, #4b0082);
    color: white;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #8a2be2;
    border: 2px solid #8a2be2;
}

.btn-secondary:hover {
    background: rgba(138, 43, 226, 0.1);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    min-width: 300px;
}

.code-animation {
    background: rgba(20, 20, 30, 0.8);
    border-radius: 10px;
    padding: 30px;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    line-height: 1.8;
    border-left: 4px solid #8a2be2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.code-line {
    margin-bottom: 10px;
}

.code-indent {
    padding-left: 20px;
}

.code-purple {
    color: #8a2be2;
}

.code-blue {
    color: #4dabf7;
}

.code-yellow {
    color: #ffd43b;
}

.code-green {
    color: #69db7c;
}

.code-orange {
    color: #ff922b;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #8a2be2;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* О группе */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 25px;
    font-size: 1.25rem;
    line-height: 1.8;
}

.about-text strong {
    color: #8a2be2;
    font-size: 1.3rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.stat-item {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #8a2be2;
    margin-bottom: 10px;
}

.stat-text {
    color: #aaa;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
}

.image_placeholder {
    background: linear-gradient(135deg, #8a2be2, #4b0082);
    border-radius: 20px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.2);
}

/* Наши компании */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.company-card {
    background: rgba(30, 30, 40, 0.8);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.company-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(138, 43, 226, 0.2);
}

.company-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8a2be2, #4b0082);
    overflow: hidden;
}

.company-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-info {
    padding: 25px;
}

.company-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #8a2be2;
}

.company-info p {
    color: #bbb;
    margin-bottom: 22px;
    line-height: 1.8;
    font-size: 1.15rem;
}

.company-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(90deg, #8a2be2, #4b0082);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
}

.company-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(138, 43, 226, 0.4);
}

.company-link.disabled {
    background: linear-gradient(90deg, #666, #444);
    cursor: not-allowed;
    pointer-events: none;
}

/* Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    counter-reset: service-counter;
}

.service-card {
    counter-increment: service-counter;
    background: rgba(20, 20, 35, 0.7);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.35s ease;
    border: 1px solid rgba(138, 43, 226, 0.15);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "0" counter(service-counter);
    position: absolute;
    top: 15px;
    right: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(138, 43, 226, 0.1);
    line-height: 1;
    pointer-events: none;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.05), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::after {
    left: 100%;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #8a2be2;
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.3);
}

.service-icon {
    font-size: 4.5rem;
    color: #8a2be2;
    margin-bottom: 25px;
}

.service-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.service-text {
    color: #bbb;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Контакты */
.contact-content {
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    background: linear-gradient(135deg, #8a2be2, #4b0082);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-details h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.contact-details p {
    color: #bbb;
    font-size: 1.15rem;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(30, 30, 40, 0.8);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 10px;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8a2be2;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #777;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
    min-width: 18px;
    height: 18px;
}

.checkbox-group label {
    color: #aaa;
    font-size: 0.9rem;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-group label a {
    color: #8a2be2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.checkbox-group label a:hover {
    color: #9d4edd;
    text-decoration: underline;
}

/* Футер */
.footer {
    background: #0a0a0a;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 30px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo p {
    margin-top: 10px;
    color: #aaa;
    max-width: 300px;
}

.footer-links,
.footer-companies {
    flex: 1;
    min-width: 150px;
}

.footer-links h3,
.footer-companies h3,
.footer-social h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-links ul,
.footer-companies ul {
    list-style: none;
}

.footer-links li,
.footer-companies li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-companies a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-companies a:hover {
    color: #8a2be2;
}

.footer-social {
    flex: 1;
    min-width: 150px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(138, 43, 226, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a2be2;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #8a2be2;
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #777;
}

/* ============================================================
   АДАПТИВНОСТЬ — ПЛАНШЕТ (≤ 992px)
   ============================================================ */
@media (max-width: 992px) {
    .hero-title    { font-size: 3.5rem; }
    .hero-subtitle { font-size: 1.8rem; }
    .section-title { font-size: 2.6rem; }

    .about-content,
    .contact-content {
        flex-direction: column;
        gap: 40px;
    }

    .about-image { margin-top: 0; }

    .stats { gap: 20px; }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
}

/* ============================================================
   АДАПТИВНОСТЬ — МОБИЛЬНЫЕ (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    /* Убираем декоративные боковые полосы */
    body::before,
    body::after { display: none; }

    /* ── Навигация ─────────────────────────────────────────── */
    .navbar { padding: 14px 0; }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 10px;
        background: rgba(138, 43, 226, 0.1);
        border: 1px solid rgba(138, 43, 226, 0.25);
        position: relative;
        z-index: 1001;
        transition: background 0.3s ease;
    }

    .menu-toggle:hover {
        background: rgba(138, 43, 226, 0.22);
    }

    /* Полноэкранное мобильное меню */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(5, 5, 12, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 20px;
        opacity: 0;
        visibility: hidden;
        transform: scale(0.96) translateY(-8px);
        transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
        z-index: 999;
        box-shadow: none;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: scale(1) translateY(0);
    }

    /* Анимация пунктов меню по очереди */
    .nav-menu li {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        width: 100%;
        text-align: center;
    }

    .nav-menu.active li:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.06s; }
    .nav-menu.active li:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.12s; }
    .nav-menu.active li:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.18s; }
    .nav-menu.active li:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.24s; }
    .nav-menu.active li:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.30s; }

    .nav-link {
        margin: 0;
        font-size: 1.5rem;
        padding: 14px 28px;
        display: block;
        border-radius: 14px;
        transition: background 0.25s ease, color 0.25s ease;
        width: 100%;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(138, 43, 226, 0.12);
    }

    .nav-link::after { display: none; }

    /* ── Hero ──────────────────────────────────────────────── */
    .first-screen {
        padding-top: 88px;
        padding-bottom: 32px;
        min-height: unset;
        align-items: flex-start;
    }

    .first-screen .container {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 20px;
        padding-top: 16px;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 0;
        min-width: 0;
        width: 100%;
    }

    .hero-title    { font-size: 2.9rem; line-height: 1.15; }
    .hero-subtitle { font-size: 1.35rem; margin-bottom: 18px; }
    .hero-text     { font-size: 1rem; max-width: 100%; margin-bottom: 26px; line-height: 1.7; }

    .hero-buttons { justify-content: center; gap: 12px; flex-wrap: wrap; }
    .hero-buttons .btn {
        flex: 1;
        min-width: 140px;
        max-width: 210px;
        padding: 13px 18px;
        font-size: 0.95rem;
    }

    .hero-image { min-width: unset; width: 100%; }

    .code-animation {
        font-size: 0.85rem;
        padding: 18px 20px;
        line-height: 1.65;
    }

    /* Орбы — уменьшить, чтобы не вызывать горизонтальный скролл */
    .orb-1 { width: 280px; height: 280px; right: -70px; top: -80px; }
    .orb-2 { width: 200px; height: 200px; left: -70px; }
    .orb-3 { display: none; }

    /* ── Секции ────────────────────────────────────────────── */
    .section { padding: 50px 0; }
    .section-title { font-size: 2rem; margin-bottom: 36px; }

    /* ── О группе ──────────────────────────────────────────── */
    .about-content { flex-direction: column; gap: 32px; }
    .about-text p  { font-size: 1rem; line-height: 1.75; }
    .about-text strong { font-size: 1.1rem; }

    .stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-top: 24px;
    }
    .stat-item  { flex: unset; min-width: 0; }
    .stat-number { font-size: 2.6rem; }
    .stat-text  { font-size: 0.9rem; }

    /* ── Компании ──────────────────────────────────────────── */
    .companies-grid { grid-template-columns: 1fr; gap: 18px; }
    .company-image  { height: 185px; }
    .company-info   { padding: 20px; }
    .company-info h3 { font-size: 1.5rem; margin-bottom: 12px; }
    .company-info p  { font-size: 0.97rem; margin-bottom: 16px; }

    /* ── Услуги ────────────────────────────────────────────── */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: 14px;
    }
    .service-card   { padding: 26px 18px; }
    .service-icon   { font-size: 2.8rem; margin-bottom: 14px; }
    .service-title  { font-size: 1.15rem; margin-bottom: 10px; }
    .service-text   { font-size: 0.92rem; line-height: 1.6; }
    .service-card::before { font-size: 2.2rem; top: 10px; right: 12px; }

    /* ── Контакты ──────────────────────────────────────────── */
    .contact-content { flex-direction: column; gap: 32px; }
    .contact-item    { margin-bottom: 18px; }
    .contact-icon    { width: 44px; height: 44px; font-size: 1rem; margin-right: 14px; flex-shrink: 0; }
    .contact-details h3 { font-size: 1.2rem; }
    .contact-details p  { font-size: 0.95rem; }

    .form-group input,
    .form-group textarea { padding: 13px 14px; font-size: 0.95rem; }

    /* ── Футер ─────────────────────────────────────────────── */
    .footer { padding: 48px 0 20px; }
    .footer-content { flex-direction: column; gap: 28px; }
    .footer-logo, .footer-links,
    .footer-companies, .footer-social { min-width: unset; }
    .footer-links h3,
    .footer-companies h3,
    .footer-social h3 { font-size: 1.1rem; margin-bottom: 14px; }
    .footer-links a,
    .footer-companies a { font-size: 0.95rem; }
    .footer-bottom { font-size: 0.85rem; }
}

/* ============================================================
   АДАПТИВНОСТЬ — МАЛЕНЬКИЕ СМАРТФОНЫ (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .section   { padding: 50px 0; }
    .section-title { font-size: 1.75rem; margin-bottom: 34px; }

    /* Hero */
    .hero-title    { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1.15rem; }
    .hero-text     { font-size: 0.92rem; }

    /* Кнопки — в столбик, полная ширина */
    .hero-buttons  { flex-direction: column; align-items: center; gap: 11px; }
    .hero-buttons .btn {
        width: 100%;
        max-width: 290px;
        text-align: center;
    }

    /* Code block — компактный на маленьких экранах */
    .hero-image {
        display: block;
        width: 100%;
    }

    .code-animation {
        font-size: 0.78rem;
        padding: 14px 16px;
        line-height: 1.6;
    }

    /* Статистика — 2 колонки */
    .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-item   { flex: unset; }
    .stat-number { font-size: 2.2rem; }

    /* Услуги — 1 колонка */
    .services-grid { grid-template-columns: 1fr; gap: 14px; }
    .service-card  { padding: 24px 20px; }
    .service-icon  { font-size: 2.6rem; }
    .service-title { font-size: 1.2rem; }

    /* Форма — кнопка полная ширина */
    #contactForm .btn-primary {
        width: 100%;
        text-align: center;
        padding: 15px;
    }

    /* Стрелка вниз */
    .scroll-down { bottom: 18px; font-size: 1.2rem; }

    /* Лого в меню */
    .logo { font-size: 1.7rem; }
    .nav-link { font-size: 1.35rem; padding: 12px 24px; }

    /* Карточки компаний */
    .company-image { height: 160px; }
    .company-link  { padding: 10px 22px; font-size: 0.9rem; }
}

/* ============================================================
   АДАПТИВНОСТЬ — САМЫЕ МАЛЕНЬКИЕ (≤ 360px)
   ============================================================ */
@media (max-width: 360px) {
    .container   { padding: 0 12px; }
    .hero-title  { font-size: 2rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .section-title { font-size: 1.55rem; }

    .stats { grid-template-columns: 1fr; gap: 10px; }
    .stat-item   { flex: unset; }
    .stat-number { font-size: 2rem; }

    .logo  { font-size: 1.5rem; }
    .btn   { padding: 12px 18px; font-size: 0.88rem; }

    .service-icon  { font-size: 2.2rem; }
    .service-title { font-size: 1.1rem; }
}

/* ============================================================
   iOS SAFE AREA (вырез, домашняя панель)
   ============================================================ */
@supports (padding: env(safe-area-inset-bottom)) {
    .footer-bottom {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
    .nav-menu {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ============================================
   MODERN DESIGN UPGRADES
   ============================================ */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8a2be2, #4b0082);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9d40f5, #6b1fb2);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #8a2be2, #c77dff, #4b0082);
    z-index: 9999;
    width: 0%;
    box-shadow: 0 0 12px rgba(138, 43, 226, 0.9), 0 0 4px rgba(199, 125, 255, 0.6);
    transition: width 0.08s linear;
}

/* Hero Background Orbs */
.hero-bg-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.18;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #8a2be2, #4b0082);
    top: -150px;
    right: 5%;
    animation: floatOrb 14s ease-in-out infinite;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #4b0082, #1a0040);
    bottom: 0;
    left: -50px;
    animation: floatOrb 10s ease-in-out infinite reverse;
    animation-delay: -3s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #c77dff, #8a2be2);
    top: 40%;
    left: 38%;
    animation: floatOrb 8s ease-in-out infinite;
    animation-delay: -5s;
    opacity: 0.1;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(40px, -40px) scale(1.08); }
    66%       { transform: translate(-25px, 25px) scale(0.95); }
}

/* Ensure hero content is above orbs */
.first-screen .container,
.scroll-down {
    position: relative;
    z-index: 1;
}

/* Floating animation for code block */
.hero-image {
    animation: floatCode 7s ease-in-out infinite;
}

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

/* Navbar glassmorphism */
.navbar {
    border-bottom: 1px solid rgba(138, 43, 226, 0.12);
}

/* Logo glow on hover */
.logo span {
    transition: text-shadow 0.3s ease;
}
.logo:hover span {
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.9);
}

/* Gradient section titles */
.section-title {
    background: linear-gradient(135deg, #ffffff 40%, #c77dff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stat numbers glow */
.stat-number {
    text-shadow: 0 0 25px rgba(138, 43, 226, 0.6);
}

/* Enhanced company cards */
.company-card {
    backdrop-filter: blur(12px);
    position: relative;
}

.company-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 15px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.5), transparent 50%, rgba(138, 43, 226, 0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.company-card:hover::before {
    opacity: 1;
}

.company-card:hover {
    box-shadow: 0 20px 50px rgba(138, 43, 226, 0.3), 0 0 0 1px rgba(138, 43, 226, 0.25) !important;
}

/* Company link shimmer */
.company-link {
    position: relative;
    overflow: hidden;
}

.company-link::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.18);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
}

.company-link:hover::before {
    left: 130%;
}

/* Primary button shimmer */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.15);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
    z-index: 1;
}

.btn-primary:hover::before {
    left: 130%;
}

.btn-primary span,
.btn-primary i {
    position: relative;
    z-index: 2;
}

/* Service icon pulse on hover */
.service-icon {
    transition: transform 0.3s ease, text-shadow 0.3s ease;
    display: inline-block;
}

.service-card:hover .service-icon {
    transform: scale(1.15);
    text-shadow: 0 0 25px rgba(138, 43, 226, 0.9);
}

/* Service card hover glow */
.service-card:hover {
    border-color: rgba(138, 43, 226, 0.5) !important;
    box-shadow: 0 15px 45px rgba(138, 43, 226, 0.25), inset 0 1px 0 rgba(199, 125, 255, 0.1) !important;
    transform: translateY(-8px);
}

/* Contact form glassmorphism */
.form-group input,
.form-group textarea {
    backdrop-filter: blur(8px);
    background: rgba(12, 12, 22, 0.85) !important;
}

/* About image modern frame */
.image_placeholder-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.image_placeholder-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 1px solid rgba(138, 43, 226, 0.3);
    pointer-events: none;
}

.image_placeholder {
    border-radius: 20px;
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover .image_placeholder {
    transform: scale(1.02);
}

/* Footer hover links glow */
.footer-links a:hover,
.footer-companies a:hover {
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

/* ============================================================
   МОДАЛЬНЫЕ ОКНА (оферта / политика)
   ============================================================ */

/* Оверлей */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 4, 12, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Карточка */
.modal-card {
    background: rgba(14, 14, 26, 0.97);
    border: 1px solid rgba(138, 43, 226, 0.25);
    border-radius: 20px;
    width: 100%;
    max-width: 680px;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(138, 43, 226, 0.1) inset;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

/* Полоска сверху */
.modal-card::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #4b0082, #8a2be2, #c77dff);
    flex-shrink: 0;
}

/* Шапка */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px 18px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(138, 43, 226, 0.12);
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    background: linear-gradient(135deg, #fff 40%, #c77dff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.2);
    color: #aaa;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(138, 43, 226, 0.22);
    color: #fff;
    border-color: rgba(138, 43, 226, 0.5);
}

/* Тело — скроллится */
.modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(138, 43, 226, 0.4) transparent;
    line-height: 1.75;
    color: #ccc;
    font-size: 0.97rem;
}

.modal-body::-webkit-scrollbar       { width: 5px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb {
    background: rgba(138, 43, 226, 0.4);
    border-radius: 3px;
}

.modal-date {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.modal-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 22px 0 8px;
}

.modal-body h3:first-of-type { margin-top: 0; }

.modal-body p  { margin-bottom: 10px; }

.modal-body ul {
    margin: 6px 0 12px 18px;
    padding: 0;
}

.modal-body ul li {
    margin-bottom: 5px;
    color: #bbb;
}

.modal-body strong { color: #ddd; }

.modal-contacts {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(138, 43, 226, 0.12);
    font-size: 0.9rem;
    color: #999;
}

.modal-contacts a {
    color: #8a2be2;
    text-decoration: none;
    transition: color 0.25s;
}

.modal-contacts a:hover { color: #c77dff; }

/* Подвал */
.modal-footer {
    padding: 16px 28px 22px;
    border-top: 1px solid rgba(138, 43, 226, 0.1);
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.modal-close-btn {
    padding: 12px 32px;
    font-size: 0.95rem;
}

/* Ссылки в форме */
.modal-link {
    color: #8a2be2;
    text-decoration: none;
    border-bottom: 1px solid rgba(138, 43, 226, 0.35);
    transition: color 0.25s, border-color 0.25s;
}

.modal-link:hover {
    color: #c77dff;
    border-color: rgba(199, 125, 255, 0.6);
}

/* Мобильная адаптация модалок */
@media (max-width: 600px) {
    .modal-overlay { padding: 12px; align-items: flex-end; }
    .modal-card {
        max-height: 88vh;
        border-radius: 20px 20px 12px 12px;
    }
    .modal-header { padding: 18px 18px 14px; }
    .modal-title  { font-size: 1.1rem; }
    .modal-body   { padding: 18px; font-size: 0.93rem; }
    .modal-footer { padding: 14px 18px 18px; }
    .modal-close-btn { width: 100%; text-align: center; }
}

/* ============================================================
   ЭКРАН ЗАГРУЗКИ
   ============================================================ */
.page-loader {
    position: fixed;
    inset: 0;
    background: #06060e;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.75s;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Фоновый пульсирующий орб */
.loader-bg-orb {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.14) 0%, transparent 70%);
    animation: loaderOrbPulse 2.2s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes loaderOrbPulse {
    from { transform: scale(0.75); opacity: 0.5; }
    to   { transform: scale(1.2);  opacity: 1;   }
}

/* Контент лоадера */
.loader-content {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: loaderContentIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes loaderContentIn {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* Логотип */
.loader-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -2px;
    line-height: 1;
    text-shadow: 0 0 50px rgba(138, 43, 226, 0.25);
}

.loader-logo span {
    color: #8a2be2;
    text-shadow: 0 0 40px rgba(138, 43, 226, 0.8),
                 0 0 80px rgba(138, 43, 226, 0.3);
}

/* Подпись */
.loader-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
    margin-top: 8px;
    margin-bottom: 0;
}

/* Полоска прогресса */
.loader-bar-wrap {
    width: 130px;
    height: 2px;
    background: rgba(138, 43, 226, 0.15);
    border-radius: 2px;
    margin: 28px auto 0;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4b0082, #8a2be2, #c77dff);
    border-radius: 2px;
    animation: loaderBarFill 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    box-shadow: 0 0 12px rgba(138, 43, 226, 1);
}

@keyframes loaderBarFill {
    0%   { width: 0%;   }
    55%  { width: 70%;  }
    85%  { width: 88%;  }
    100% { width: 100%; }
}

/* ============================================================
   PREMIUM VISUAL UPGRADE
   ============================================================ */

/* ── Hero – richer deep background with mesh ──────────────── */
.first-screen {
    background:
        radial-gradient(ellipse 90% 60% at 60% -10%, rgba(138,43,226,0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 5% 80%, rgba(75,0,130,0.12) 0%, transparent 50%),
        linear-gradient(170deg, #05050f 0%, #090916 55%, #06060d 100%);
}

.first-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(138,43,226,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(138,43,226,0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    z-index: 0;
}

/* ── Hero badge ───────────────────────────────────────────── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(138,43,226,0.1);
    border: 1px solid rgba(138,43,226,0.3);
    border-radius: 20px;
    padding: 6px 16px 6px 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #c77dff;
    margin-bottom: 22px;
}

.hero-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9d4edd;
    box-shadow: 0 0 10px rgba(157,78,221,0.9);
    animation: badgePulse 2.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 10px rgba(157,78,221,0.9); }
    50%       { box-shadow: 0 0 4px  rgba(157,78,221,0.3); }
}

/* ── Hero title – bigger, stronger ───────────────────────── */
.hero-title {
    font-size: 6.5rem;
    letter-spacing: -4px;
    margin-bottom: 18px;
}

.hero-title span {
    text-shadow: 0 0 50px rgba(138,43,226,0.7), 0 0 100px rgba(138,43,226,0.2);
}

/* ── Hero subtitle ────────────────────────────────────────── */
.hero-subtitle {
    font-size: 1.6rem;
    color: rgba(200,200,220,0.7);
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 28px;
}

/* ── Section separator lines ──────────────────────────────── */
.about,
.companies,
.services,
.contact {
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent 0%, rgba(138,43,226,0.22) 35%, rgba(199,125,255,0.28) 50%, rgba(138,43,226,0.22) 65%, transparent 100%) 1;
}

/* ── Section title – wider glow underline ─────────────────── */
.section-title::after {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8a2be2, #c77dff, #8a2be2, transparent);
    box-shadow: 0 0 14px rgba(138,43,226,0.6);
    bottom: -16px;
}

/* ── Buttons – more depth ─────────────────────────────────── */
.btn-primary {
    background: linear-gradient(135deg, #7b2fd4 0%, #5c12a8 100%);
    box-shadow: 0 4px 20px rgba(138,43,226,0.45), 0 1px 0 rgba(255,255,255,0.12) inset;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8d3de8 0%, #6a1abb 100%);
    box-shadow: 0 8px 32px rgba(138,43,226,0.55), 0 1px 0 rgba(255,255,255,0.15) inset;
    transform: translateY(-3px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(138,43,226,0.3);
}

.btn-secondary {
    border: 1.5px solid rgba(138,43,226,0.55);
    box-shadow: 0 0 20px rgba(138,43,226,0.07), inset 0 1px 0 rgba(138,43,226,0.08);
}

.btn-secondary:hover {
    background: rgba(138,43,226,0.1);
    border-color: rgba(138,43,226,0.85);
    box-shadow: 0 0 28px rgba(138,43,226,0.18);
    transform: translateY(-3px);
}

/* ── Code animation – IDE look ───────────────────────────── */
.code-animation {
    background: rgba(6, 6, 16, 0.92);
    border-left: 3px solid #8a2be2;
    border-radius: 14px;
    box-shadow:
        0 24px 64px rgba(0,0,0,0.7),
        0 0 0 1px rgba(138,43,226,0.18),
        inset 0 1px 0 rgba(255,255,255,0.04);
    padding: 36px 28px 28px;
    position: relative;
}

.code-animation::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    box-shadow: 14px 0 0 rgba(255,255,255,0.12), 28px 0 0 rgba(255,255,255,0.12);
    pointer-events: none;
}

/* ── Stats – subtle glass cards ──────────────────────────── */
.stat-item {
    padding: 24px 20px;
    background: rgba(14, 14, 26, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(138,43,226,0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(138,43,226,0.3);
    box-shadow: 0 12px 32px rgba(138,43,226,0.15);
}

/* ── Service cards – deeper bg ────────────────────────────── */
.service-card {
    background: rgba(9, 9, 20, 0.82) !important;
    border-color: rgba(138,43,226,0.1) !important;
    box-shadow: 0 4px 28px rgba(0,0,0,0.35);
}

/* ── Company cards – deeper bg ────────────────────────────── */
.company-card {
    background: rgba(9, 9, 20, 0.88) !important;
    box-shadow: 0 8px 40px rgba(0,0,0,0.45);
}

/* ── Contact form – glass wrap ───────────────────────────── */
.contact-form {
    background: rgba(10, 10, 22, 0.65);
    border: 1px solid rgba(138,43,226,0.13);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 48px rgba(0,0,0,0.35);
}

/* ── Sections – subtle alternate tints ───────────────────── */
.about   { background: radial-gradient(ellipse 80% 60% at 80% 50%, rgba(138,43,226,0.04) 0%, transparent 60%), #0a0a0a; }
.services { background: radial-gradient(ellipse 80% 60% at 20% 50%, rgba(138,43,226,0.04) 0%, transparent 60%), #0a0a0a; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
    background: linear-gradient(180deg, #06060f 0%, #0a0a0a 100%);
}

/* ── data-reveal scroll animation system ─────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity  0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.17s; }
[data-reveal][data-delay="3"] { transition-delay: 0.26s; }
[data-reveal][data-delay="4"] { transition-delay: 0.35s; }
[data-reveal][data-delay="5"] { transition-delay: 0.44s; }
[data-reveal][data-delay="6"] { transition-delay: 0.53s; }

/* ── Hero entrance sequence ──────────────────────────────── */
.hero-content .hero-badge,
.hero-content .hero-title,
.hero-content .hero-subtitle,
.hero-content .hero-text,
.hero-content .hero-buttons {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity  0.95s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content.hero-animate .hero-badge    { opacity:1; transform:none; transition-delay:0s;    }
.hero-content.hero-animate .hero-title    { opacity:1; transform:none; transition-delay:0.12s; }
.hero-content.hero-animate .hero-subtitle { opacity:1; transform:none; transition-delay:0.24s; }
.hero-content.hero-animate .hero-text     { opacity:1; transform:none; transition-delay:0.36s; }
.hero-content.hero-animate .hero-buttons  { opacity:1; transform:none; transition-delay:0.48s; }

.hero-image {
    opacity: 0;
    transform: translateX(24px) translateY(0px);
    transition:
        opacity  1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s,
        transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}

.hero-image.hero-animate {
    opacity: 1;
    transform: translateX(0) translateY(0px);
    animation: floatCode 7s ease-in-out infinite 1.35s;
}

/* ── Mobile overrides for new elements ───────────────────── */
@media (max-width: 768px) {
    .hero-title   { font-size: 2.9rem; letter-spacing: -2px; }
    .hero-subtitle { font-size: 1.2rem; }
    .contact-form  { padding: 20px; }
    .stat-item     { padding: 16px 14px; }
}

@media (max-width: 480px) {
    .hero-title  { font-size: 2.4rem; letter-spacing: -1.5px; }
    .hero-badge  { font-size: 0.62rem; padding: 5px 12px 5px 10px; }
    .contact-form { padding: 16px; border-radius: 14px; }
}

