/* ==========================================================================
   site/styles.css — ЛЮКСОВЫЙ СТЕКЛЯННЫЙ ДИЗАЙН 2026 (ПОЛНАЯ ВЕРСИЯ)
   ========================================================================== */

/* ==========================================================================
   1. ПЕРЕМЕННЫЕ И ШРИФТЫ
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;800;900&display=swap');

:root {
    --bg-deep: #040408;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --text-main: #ffffff;
    --text-muted: #8892b0;
}

/* ==========================================================================
   2. ОСНОВНЫЕ СТИЛИ (RESET & BODY)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Убираем стандартную синюю подсветку при тапе на мобилках */
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    padding: 40px 20px;
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    z-index: 0;
}

/* Фоновое свечение (сферы) */
.bg-glow::before,
.bg-glow::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.55;
    pointer-events: none;
}

.bg-glow::before {
    width: 50vw;
    height: 50vw;
    background: rgba(139, 92, 246, 0.35);
    top: -10%;
    left: -10%;
}

.bg-glow::after {
    width: 45vw;
    height: 45vw;
    background: rgba(59, 130, 246, 0.35);
    bottom: -10%;
    right: -10%;
}

/* ==========================================================================
   3. СЕТКА BENTO И СТРУКТУРА
   ========================================================================== */
.container {
    max-width: 1180px; /* Расширено для люксового дизайна */
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: auto; /* Позволяет строкам подстраиваться под контент, убирая дыры */
    gap: 24px; /* Увеличенный отступ из второго варианта */
}

.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; } /* Добавили для текста */
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; } /* Добавили для видео */
.span-4 { grid-column: span 4; }
.row-span-2 { grid-row: span 2; }

/* ==========================================================================
   4. БАЗОВАЯ КАРТОЧКА BENTO (ТЯЖЕЛОЕ СТЕКЛО + МЯГКАЯ МОЛНИЯ)
   ========================================================================== */
.bento-card {
    min-height: 160px; /* Карточки держат высоту сами, а не через сетку */
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.085) 0%, rgba(139, 92, 246, 0.025) 100%);
    backdrop-filter: blur(48px) saturate(180%);
    -webkit-backdrop-filter: blur(48px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    padding: 36px; /* Уменьшено с 48px, чтобы текст "дышал" в ширину */
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6),
                inset 0 2px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

/* Мягкая пролетающая молния */
.bento-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.04), transparent);
    transform: skewX(-20deg);
    transition: 0.7s ease;
    pointer-events: none;
    z-index: 1;
}

.bento-card:hover::before { left: 150%; }

/* Эффекты при наведении и нажатии (мощный неон из второго варианта) */
.bento-card:hover, .bento-card:active {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 35px 70px -10px rgba(139, 92, 246, 0.4),
                inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.glow-blue:hover, .glow-blue:active {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 35px 70px -10px rgba(59, 130, 246, 0.4),
                inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.glow-green:hover, .glow-green:active {
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 35px 70px -10px rgba(34, 197, 94, 0.4),
                inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.hero-card { justify-content: center; }
.contact-card { align-items: center; justify-content: center; text-align: center; }
.icon-card { justify-content: flex-start; }

/* Специфичный класс для уменьшения отступов внутри конкретных карточек (Контакты/Офис) */
.tight-card { padding: 28px !important; }

/* ==========================================================================
   5. ТИПОГРАФИКА
   ========================================================================== */
h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
    position: relative; z-index: 2;
}

h2 {
    font-size: 1.55rem; /* Увеличено для лучшей читаемости */
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
    position: relative; z-index: 2;
}

p {
    color: rgba(255,255,255,0.75);
    font-weight: 500; /* Сделал чуть тоньше, чтобы текст не казался жирным пятном */
    font-size: 1.05rem; /* Увеличено, чтобы текст был крупнее */
    position: relative; z-index: 2;
    line-height: 1.6;
}

.pre-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 5px;
    position: relative; z-index: 2;
}

/* ==========================================================================
   6. КНОПКИ ГЛАВНОГО ЭКРАНА (HERO TAGS)
   ========================================================================== */
.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
    position: relative; z-index: 2;
}

.hero-tag {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(139, 92, 246, 0.05);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-tag:hover, .hero-tag:active {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.5), 0 5px 15px rgba(0, 0, 0, 0.4);
}

.hero-tag:active {
    transform: translateY(-1px) scale(0.98);
}

.hero-tag:first-child { animation: pulse-border 3s infinite; }

@keyframes pulse-border {
    0% { border-color: rgba(139, 92, 246, 0.3); }
    50% { border-color: rgba(139, 92, 246, 0.8); box-shadow: 0 0 10px rgba(139, 92, 246, 0.2); }
    100% { border-color: rgba(139, 92, 246, 0.3); }
}

/* ==========================================================================
   7. КОМПОНЕНТЫ: АВАТАР И СВЯЗЬ
   ========================================================================== */
.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.4s ease;
    z-index: 2;
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.01);
    font-size: 5.2rem;
    transform: translateY(-5px) scale(1.0);
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.6));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-card:hover .avatar-placeholder, .contact-card:active .avatar-placeholder {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.contact-card:hover .avatar-inner, .contact-card:active .avatar-inner {
    transform: translateY(-20px) scale(1.25);
    filter: drop-shadow(0 15px 20px rgba(0,0,0,0.8));
}

/* Умный Ховер для надписи "Контакты" */
.contact-title-highlight {
    transition: all 0.3s ease;
}

.contact-card:hover:not(:has(.action-btn:hover)):not(:has(.phone-link:hover)) .contact-title-highlight {
    color: var(--accent-blue) !important;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    transform: translateX(4px);
}

/* Кнопки связи */
.action-btn {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; width: 100%; padding: 15px; margin-top: 10px;
    border-radius: 15px; text-decoration: none; font-weight: 800;
    font-size: 0.95rem; transition: all 0.3s; backdrop-filter: blur(16px);
    position: relative; z-index: 2;
}

.btn-tg { background: rgba(42, 171, 238, 0.1); color: #2AABEE; border: 1px solid rgba(42, 171, 238, 0.2); }
.btn-tg:hover, .btn-tg:active { background: #2AABEE; color: #fff; box-shadow: 0 5px 20px rgba(42, 171, 238, 0.4); border-color: #2AABEE; }

.btn-wa { background: rgba(37, 211, 102, 0.1); color: #25D366; border: 1px solid rgba(37, 211, 102, 0.2); }
.btn-wa:hover, .btn-wa:active { background: #25D366; color: #fff; box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4); border-color: #25D366;}

.phone-link {
    color: #fff; text-decoration: none; font-weight: 800; font-size: 1.3rem;
    transition: color 0.3s; text-shadow: 0 2px 10px rgba(255,255,255,0.2);
    position: relative; z-index: 2; display: inline-block;
}
.phone-link:hover { color: var(--accent-blue); }

/* ==========================================================================
   8. ИНЖЕНЕРНЫЕ ИКОНКИ (Квадратные)
   ========================================================================== */
.card-icon {
    font-size: 1.6rem;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.03);
    width: 56px; /* Чуть увеличили, чтобы гармонировало с текстом */
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.05);
    position: relative; z-index: 2;
}

.blue-icon { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.3); color: var(--accent-blue); }
.neutral-icon { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.15); }

.card-header-inline {
    display: flex; align-items: center; gap: 15px; margin-bottom: 25px;
    position: relative; z-index: 2;
}
.card-header-inline h2 { margin: 0; font-size: 1.4rem; font-weight: 800; }

/* ==========================================================================
   9. РЕКВИЗИТЫ ОРГАНИЗАЦИИ
   ========================================================================== */
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; position: relative; z-index: 2;}
.details-group h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent-blue); margin-bottom: 15px; opacity: 0.8; font-weight: 800;}
.detail-item { margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 8px; }
.detail-label { font-size: 0.75rem; color: var(--text-muted); display: block; margin-bottom: 4px; font-weight: 600;}
.detail-value { font-family: 'Montserrat', sans-serif; font-size: 1.1rem; color: #fff; font-weight: 700; letter-spacing: 0.3px;}

.map-link-wrapper { text-decoration: none; color: inherit; display: block; position: relative; z-index: 2;}
.btn-map {
    display: inline-block; margin-top: 15px; padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px; color: var(--accent-blue); font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; transition: 0.3s;
}
.bento-card:hover .btn-map { background: var(--accent-blue); color: #fff; }

/* ==========================================================================
   10. КНОПКИ СОЦСЕТЕЙ
   ========================================================================== */
.social-link-styled {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative; z-index: 2;
}

.social-link-styled:hover, .social-link-styled:active { transform: scale(1.02); }

.yt-link { color: #ff3333; }
.yt-link:hover, .yt-link:active { background: #ff3333 !important; color: #fff !important; border-color: #ff3333 !important; box-shadow: 0 0 20px rgba(255, 51, 51, 0.4); }

.vk-link { color: #0077FF; }
.vk-link:hover, .vk-link:active { background: #0077FF !important; color: #fff !important; border-color: #0077FF !important; box-shadow: 0 0 20px rgba(0, 119, 255, 0.4); }

.inst-link { color: #E1306C; }
.inst-link:hover, .inst-link:active { background: #E1306C !important; color: #fff !important; border-color: #E1306C !important; box-shadow: 0 0 20px rgba(225, 48, 108, 0.4); }

/* ==========================================================================
   11. ПОДВАЛ (FAT FOOTER)
   ========================================================================== */
.footer-card {
    display: flex;
    flex-direction: column; /* Теперь это колонка */
    padding: 40px 40px 30px !important; /* Вернули нормальные отступы для большого блока */
    border-radius: 32px;
    position: relative;
    z-index: 2;
    min-height: auto !important;
    height: fit-content;
    align-self: start !important;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    width: 100%;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
    margin: 35px 0 25px 0; /* Отступы сверху и снизу от линии */
}

.footer-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.footer-copyright {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-domain {
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.footer-legal {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: monospace;
}

/* Настройки твоей подписи */
.designer-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    opacity: 0.75;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.designer-link:hover,
.designer-link:active {
    opacity: 1;
    transform: translateY(-2px);
}

.designer-text {
    font-size: 0.75rem;
    color: #a3a3a3;
    font-weight: 700;
    letter-spacing: 1px;
}

.designer-link:hover .designer-text,
.designer-link:active .designer-text {
    color: #fff;
}

.red-word {
    color: var(--accent-red);
    font-weight: 900;
    transition: all 0.3s ease;
}

.designer-link:hover .red-word,
.designer-link:active .red-word {
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
}

.designer-city {
    font-size: 0.6rem;
    color: #777;
    transition: color 0.3s ease;
}

.designer-link:hover .designer-city,
.designer-link:active .designer-city {
    color: #999;
}

/* ==========================================================================
   12. СТИЛИ ДЛЯ СПИСКОВ В НИЖНЕМ БЛОКЕ (ССЫЛКИ)
   ========================================================================== */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.4;
}

/* Базовые настройки маркера-точки */
.service-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
    top: 0px;
}

/* МАГИЯ ЦВЕТА: Умные точки, подстраивающиеся под колонку */
.footer-top > div:nth-child(1) .service-list li::before { color: var(--accent-purple); }
.footer-top > div:nth-child(2) .service-list li::before { color: var(--accent-blue); }
.footer-top > div:nth-child(3) .service-list li::before { color: var(--accent-green); }

/* Стили для ссылок внутри списков */
.service-list a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Ховер-эффект: текст белеет и чуть сдвигается вправо */
.service-list a:hover {
    color: #fff;
    transform: translateX(5px);
}

/* ==========================================================================
   13. АДАПТИВНОСТЬ
   ========================================================================== */
@media (max-width: 920px) {
    .span-8, .span-7, .span-6, .span-5, .span-4 { grid-column: span 12; }
    .row-span-2 { grid-row: span 1; }

    h1 { font-size: 2.5rem; }
    .tags-row { gap: 8px; }
    .hero-tag { font-size: 0.7rem; padding: 6px 12px; }

    .bento-card { padding: 28px 24px !important; }

    .details-grid { grid-template-columns: 1fr; gap: 15px; }
    .detail-value { font-size: 1rem; }

    /* Адаптивность для нового подвала */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .footer-left, .footer-right { align-items: center; }
    .footer-copyright { justify-content: center; text-align: center; }
    .designer-link { align-items: center; }
}