/* ════════════════════════════════════════════════════════════
   DOминик-ГРУПП — Основной CSS
   ════════════════════════════════════════════════════════════ */

* {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #ec4899;
}

body {
    overflow-x: hidden;
    background-color: #0f172a;
    color: #ffffff;
}

/* Gradient Backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
}

.gradient-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4c1d95 60%, #831843 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: none;
}

/* Custom Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); }
    50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.6); }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-animation-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

.pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

.rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

/* Navigation */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    transition: width 0.3s ease;
}

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

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Feature Cards */
.feature-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.2);
}

/* Stats Counter */
.stat-number {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image Container */
.image-container {
    overflow: hidden;
    border-radius: 1rem;
}

.image-container img {
    transition: transform 0.6s ease;
}

.image-container:hover img {
    transform: scale(1.1);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
}

.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
}

.mobile-menu__link {
    font-size: 18px !important;
    font-weight: 600;
    color: #ffffff;
    padding: 16px 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: center;
    transition: color 0.3s ease;
}

.mobile-menu__link:hover {
    color: #6366f1;
}

/* Hamburger Button */
.menu-toggle {
    display: none !important;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 10001 !important;
    padding: 0;
    margin-right: 8px;
}

.menu-toggle span {
    display: block !important;
    width: 24px;
    height: 2px;
    background: #ffffff !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: '' !important;
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    background: #ffffff !important;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle span::before {
    top: -8px;
}

.menu-toggle span::after {
    top: 8px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — АДАПТАЦИЯ 2026
   ════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    /* Отключаем тяжёлые анимации на мобильном */
    .float-animation,
    .float-animation-delayed,
    .pulse-glow,
    .rotate-slow {
        animation: none !important;
    }

    .floating-shape {
        display: none !important;
    }

    /* Навигация */
    .nav {
        display: none !important;
    }

    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .btn.hidden.md\:block {
        display: none !important;
    }

    /* На мобильном только логотип без текста */
    .text-2xl.font-bold.gradient-text {
        display: none !important;
    }

    /* HERO СЕКЦИЯ — компактная */
    #home {
        min-height: auto !important;
        padding-top: 80px !important;
        padding-bottom: 40px !important;
    }

    #home h1 {
        font-size: 28px !important;
        line-height: 1.2 !important;
        margin-bottom: 16px !important;
    }

    #home p {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    /* КНОПКИ — 100% ширины, 48px высота */
    #home .btn-primary,
    #home .btn-outline,
    #home button {
        width: 100% !important;
        min-height: 48px !important;
        margin-bottom: 12px !important;
        display: block !important;
    }

    /* Статистика */
    #home .grid-cols-3 {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        margin-top: 24px !important;
    }

    #home .grid-cols-3 .text-3xl {
        font-size: 24px !important;
    }

    /* СЕКЦИИ */
    section {
        padding: 40px 0 !important;
    }

    section h2 {
        font-size: 24px !important;
        text-align: center !important;
        margin-bottom: 16px !important;
    }

    section p {
        font-size: 16px !important;
        text-align: center !important;
    }

    /* GRID — 1 колонка */
    .md\:grid-cols-2,
    .md\:grid-cols-3,
    .md\:grid-cols-4,
    .lg\:grid-cols-2,
    .lg\:grid-cols-3,
    .lg\:grid-cols-4 {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* КАРТОЧКИ УСЛУГ */
    .group.relative {
        display: block !important;
    }

    .group.relative img {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover !important;
    }

    /* ПРЕИМУЩЕСТВА - ПО ЦЕНТРУ */
    .feature-card {
        text-align: center !important;
    }

    .feature-card .w-16.h-16 {
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 24px !important;
    }

    .feature-card h3 {
        text-align: center !important;
    }

    .feature-card p {
        text-align: center !important;
    }

    /* О КОМПАНИИ */
    #about .grid {
        grid-template-columns: 1fr !important;
    }

    #about .image-container {
        margin-bottom: 24px !important;
    }

    #about img {
        width: 100% !important;
        height: auto !important;
    }

    #about .absolute {
        display: none !important;
    }

    /* КОНТАКТЫ */
    #contact .flex.items-center {
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
        gap: 12px !important;
    }

    #contact .w-14.h-14 {
        margin: 0 auto 8px auto !important;
        width: 48px !important;
        height: 48px !important;
    }

    #contact .w-14.h-14 svg {
        width: 24px !important;
        height: 24px !important;
    }

    /* ФОРМА */
    #contact input,
    #contact textarea {
        width: 100% !important;
        min-height: 48px !important;
        font-size: 16px !important;
    }

    #contact button[type="submit"] {
        width: 100% !important;
        min-height: 48px !important;
        font-size: 16px !important;
    }

    /* ФУТЕР */
    footer .md\:grid-cols-4 {
        grid-template-columns: 1fr !important;
        text-align: left !important;
    }

    footer ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .flex.space-x-4 {
        justify-content: flex-start !important;
    }

    /* TAP TARGETS — 48px минимум */
    button, a, .btn {
        min-height: 48px !important;
        min-width: 48px !important;
        padding: 14px 20px !important;
    }
}

/* TABLET — 768px */
@media (max-width: 768px) {
    /* Дополнительные стили для планшетов */
    .max-w-7xl {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Уменьшенные отступы */
    section {
        padding: 32px 0 !important;
    }

    /* Заголовки */
    h1 {
        font-size: 26px !important;
    }

    h2 {
        font-size: 22px !important;
    }
}

/* SMALL MOBILE (≤480px) */
@media (max-width: 480px) {
    #home h1 {
        font-size: 24px !important;
    }

    section h2 {
        font-size: 20px !important;
    }

    section {
        padding: 32px 0 !important;
    }
}

/* Pricing Cards */
.pricing-card {
    transition: all 0.4s ease;
    position: relative;
    margin-top: 20px;
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid #6366f1;
    margin-top: 40px;
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.05);
}
