/* =========================================
   ОСНОВНЫЕ ПЕРЕМЕННЫЕ И СБРОС
========================================= */
:root {
    --bg-main: #0E0E0E;
    --bg-card: #161616;
    --border-color: rgba(255, 255, 255, 0.05);
    --text-main: #FFFFFF;
    --text-muted: #A1A1AA;
    --accent: #A855F7;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-stack);
    -webkit-font-smoothing: antialiased;
    position: relative; /* <-- ДОБАВИТЬ ЭТО, чтобы фон тянулся до самого низа */
}

.container {
    position: relative;
    z-index: 2; /* Поднимаем весь контент сайта НАД фоном */
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 600px;
    margin: -24px auto 40px auto;
    line-height: 1.5;
    padding: 0 16px;
}

/* =========================================
   ИНТРО (HERO)
========================================= */
.hero-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
    margin-top: 40px;
    margin-bottom: 80px;
}

.hero-photo-wrapper {
    flex-shrink: 0;
}

.hero-photo {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 32px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-name {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-tagline {
    font-size: 1.25rem;
    color: #BB86FC;
    font-weight: 600;
}

.hero-bio {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
}

/* =========================================
   БЛОКИ ДОВЕРИЯ
========================================= */
/* Ссылка в магазин внутри блока доверия */
.trust-store-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #BB86FC;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 12px;
    align-self: flex-start; /* Чтобы ссылка не растягивалась на всю ширину */
    transition: opacity 0.2s ease;
}

/* Ссылка на YouTube-канал внутри блока доверия */
.trust-yt-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #FFA1B4; /* <-- ЗАМЕНИЛИ ЦВЕТ ЗДЕСЬ */
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 12px;
    align-self: flex-start;
    transition: opacity 0.2s ease;
}

.trust-yt-link span {
    transition: transform 0.2s ease;
}

.trust-yt-link:hover {
    opacity: 0.8;
}

.trust-yt-link:hover span {
    transform: translateX(4px); /* Анимация стрелочки вправо */
}

.trust-store-link span {
    transition: transform 0.2s ease;
}

.trust-store-link:hover {
    opacity: 0.8;
}

.trust-store-link:hover span {
    transform: translateX(4px); /* Эффектный сдвиг стрелочки вправо при наведении */
}

.trust-blocks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.trust-item {
    display: flex;
    flex-direction: column;
}

.trust-video-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 16px; 
    background-color: #111;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.trust-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trust-item-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trust-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.trust-desc {
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.95rem;
    margin: 0;
}

.software-stack {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.software-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: default;
}

.software-icon:hover {
    opacity: 1; 
    transform: translateY(-3px);
}

/* =========================================
   ПОРТФОЛИО КЕЙСЫ
========================================= */
.portfolio {
    margin-top: 80px;
    margin-bottom: 100px;
}

.project-showcase {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
}

.project-header {
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
}

.yt-banner {
    margin-bottom: 24px;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.yt-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; 
    display: block;
}

.yt-profile {
    display: flex;
    flex-direction: row; 
    align-items: flex-start;
    gap: 16px; 
    margin-bottom: 24px;
}

.yt-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0; 
}

.yt-info {
    display: flex;
    flex-direction: column;
    gap: 4px; 
    margin-top: 4px; 
}

.yt-name {
    font-size: 1.35rem; 
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.yt-verified {
    color: #AAAAAA;
    flex-shrink: 0;
}

.yt-stats {
    color: #AAAAAA;
    font-size: 0.85rem;
    margin: 0;
}

.project-work-description {
    background-color: var(--bg-card);
    padding: 0;
    margin-bottom: 40px;
}

.work-text {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
    margin: 0 0 20px 0;
    max-width: 800px;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.work-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    cursor: default;
}

.work-tag:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* =========================================
   СЕТКИ ВИДЕО
========================================= */
.format-title {
    font-size: 1.25rem;
    color: #FFFFFF;
    margin-bottom: 20px;
    margin-top: 40px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.video-grid {
    display: grid;
    gap: 24px;
}

.long-videos {
    grid-template-columns: 1fr;
}

.shorts-videos {
    grid-template-columns: repeat(2, 1fr); 
    gap: 16px;
}

.video-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background-color: #111;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.aspect-16-9 {
    aspect-ratio: 16 / 9;
}

.aspect-9-16 {
    aspect-ratio: 9 / 16;
}

/* НОВЫЙ КЛАСС: Пропорции специально под плеер ВК */
.aspect-vk-clip {
    aspect-ratio: 325 / 646; 
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-views {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0;
    padding-left: 4px;
}

.video-views svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* =========================================
   АККОРДЕОНЫ (Скрытие видео и кейсов)
========================================= */
.expandable-wrapper {
    display: grid;
    grid-template-rows: 0fr; 
    transition: grid-template-rows 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.expandable-inner {
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hidden-grid-padding {
    padding-top: 24px;
}

.expandable-wrapper.is-expanded {
    grid-template-rows: 1fr; 
}

.expandable-wrapper.is-expanded .expandable-inner {
    opacity: 1; 
}

/* Скрытие целого кейса */
.case-expandable-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.case-expandable-inner {
    overflow: hidden;
}

.collapsible-case.is-case-open .case-expandable-body {
    grid-template-rows: 1fr;
}

.case-trigger-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    margin-bottom: 12px;
    transition: opacity 0.3s ease;
}

/* Кнопки */
.show-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 32px;
    margin-bottom: 24px;
    transition: opacity 0.3s ease;
}

.btn-primary {
    background-color: #FFFFFF;
    color: #000000;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:active {
    transform: scale(0.96);
}

/* =========================================
   КАРУСЕЛЬ: КАК СТРОИТСЯ РАБОТА
========================================= */
.workflow {
    margin-bottom: 100px;
}

.workflow-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 24px;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

.workflow-slider::-webkit-scrollbar {
    display: none;
}

.workflow-step {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 0 0 85%; 
    scroll-snap-align: center;
}

.step-video-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    background-color: #111;
    border-bottom: 1px solid var(--border-color);
}

.step-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.step-number-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.step-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-title::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    flex-shrink: 0;
}

.step-desc {
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.95rem;
    margin: 0;
}

/* =========================================
   КАРУСЕЛЬ: УСЛУГИ И ФОРМАТЫ
========================================= */
.services {
    margin-bottom: 100px;
}

.services-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 32px;
    padding-top: 20px; /* <-- ДОБАВИЛИ ЭТО, чтобы бейдж не обрезался */
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

.services-slider::-webkit-scrollbar {
    display: none;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
    flex: 0 0 85%; 
    scroll-snap-align: center;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-card-featured {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.08);
}

.badge-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 100px;
    white-space: nowrap;
}

/* Стили твоей png галочки */
.verified-badge {
    width: 32px; /* Подбираем размер под высоту шрифта H1 */
    height: 32px;
    object-fit: contain; /* Чтобы картинка идеально вписывалась в квадрат и не искажалась */
    flex-shrink: 0; 
}

.service-header {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.service-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.service-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

.service-features svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}


/* =========================================
   СЕКЦИЯ КОНТАКТОВ И ФОРМЫ
========================================= */
.contact-section {
    margin-top: 40px;
    margin-bottom: 120px;
}

.contact-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.contact-info {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.contact-title {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 12px;
    margin-top: 15px;
    line-height: 1.2;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 32px;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-telegram, .btn-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-telegram {
    background-color: #2AABEE; /* Узнаваемый синий цвет Telegram */
    color: #FFFFFF;
}

.btn-email {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    /* Добавляем плавность для бордера и тени, которые подсветит JS */
    transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease; 
}

.btn-telegram:active, .btn-email:active {
    transform: scale(0.96);
}

/* Красивый разделитель с линиями по бокам */
.form-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.form-divider::before, .form-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.form-divider span {
    padding: 0 16px;
}

/* Стили формы */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    padding-left: 4px;
}

/* Сбрасываем дефолтные стили iOS и делаем красиво */
.input-group input, 
.input-group textarea {
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    padding: 14px 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group textarea {
    resize: vertical; /* Разрешаем растягивать только по высоте */
    min-height: 100px;
}

.input-group input:focus, 
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15); /* Фиолетовое свечение при вводе */
}

.input-group input::placeholder, 
.input-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.btn-submit {
    margin-top: 8px;
    width: 100%; /* Кнопка на всю ширину формы */
}

/* Статус ответа в контактах */
.contact-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px; /* Отступ до кнопок */
    justify-content: center; /* Центрируем на мобильных */
}

.contact-status p {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0;
}

/* Зеленая светящаяся точка активности */
.status-dot {
    width: 8px;
    height: 8px;
    background-color: #22C55E; /* Приятный зеленый цвет */
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6); /* Мягкое неоновое свечение */
    flex-shrink: 0;
}

/* =========================================
   ИНДИКАТОРЫ ЗАГРУЗКИ МЕДИА (СПИННЕРЫ)
========================================= */

/* Добавляем relative оберткам, чтобы спиннеры центрировались ровно внутри них */
.trust-video-wrapper, 
.yt-banner, 
.hero-photo-wrapper {
    position: relative;
}

/* Сам спиннер (крутилка) */
/* Сам спиннер (крутилка) */
.custom-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.05); /* Темный контур самого кольца */
    border-top-color: #444444; /* <-- ЗАМЕНИЛИ ЗДЕСЬ: Теперь бегущая полоска будет темно-серой */
    border-radius: 50%;
    animation: media-spin 1s linear infinite;
    z-index: 1;
    pointer-events: none;
}

/* Класс, который JS вешает на медиа, пока оно грузится */
.media-loading {
    opacity: 0 !important; /* Делаем элемент невидимым, но сохраняем его физические размеры */
}

/* Класс для плавного проявления, когда загрузилось */
.media-loaded {
    animation: fadeInMedia 0.6s ease forwards;
}

/* Анимация вращения спиннера */
@keyframes media-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Анимация плавного появления видео/картинки */
@keyframes fadeInMedia {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =========================================
   ЭФФЕКТ ВЫГЛЯДЫВАЮЩЕГО КОНТЕНТА И ГРАДИЕНТ
========================================= */

/* 1. ФИКС КАТИ: Убираем прозрачность и убиваем старый отступ, который толкал видео вниз */
.expandable-inner {
    opacity: 1 !important;
    padding-top: 16px !important; 
}

/* 2. Настраиваем скрытые блоки: оставляем ровно 100px высоты */
.expandable-wrapper,
.case-expandable-body {
    display: block !important; 
    max-height: 100px; 
    overflow: hidden;
    transition: max-height 0.6s ease;
}

/* Когда скрипт раскрывает кейс - плавно открываем контент */
.expandable-wrapper.is-expanded,
.collapsible-case.is-case-open .case-expandable-body {
    max-height: 3000px; 
}

/* 3. Настраиваем обертки кнопок: ЖЕСТКО сбрасываем все старые баги с отступами */
.show-more-wrapper,
.case-trigger-wrapper {
    position: relative;
    height: 100px;
    margin: 0 !important; /* Убиваем старые внешние отступы */
    margin-top: -100px !important; /* Наезжаем ровно на 100px вверх */
    padding: 0 !important; /* Убиваем огромный старый padding-top */
    padding-bottom: 12px !important; /* Оставляем аккуратное место под кнопкой */
    
    display: flex;
    justify-content: center;
    align-items: flex-end; 
    
    /* 🔥 Идеальный градиент в цвет карточки (#161616 = 22, 22, 22) */
    background: linear-gradient(to bottom, rgba(22, 22, 22, 0.4) 0%, rgba(22, 22, 22, 1) 85%);
    z-index: 10;
    pointer-events: none; 
}

/* 4. Саму кнопку делаем кликабельной */
.show-more-btn,
.case-main-toggle-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 5. Анимация стрелочки */
.btn-arrow {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateY(4px);
}

/* =========================================
   АДАПТАЦИЯ ПОД ПК (МЕДИА-ЗАПРОС)
   Все стили для больших экранов теперь живут здесь!
========================================= */
@media (min-width: 860px) {
    .contact-status {
        justify-content: flex-start; /* На ПК выравниваем по левому краю */
        margin-bottom: 32px; /* Чуть увеличиваем отступ на десктопе */
    }

    .verified-badge {
        width: 50px;
        height: 50px;
    }
    
    /* Интро (Перестраиваем в строку: аватарка слева, текст справа) */
    .hero-intro { 
        flex-direction: row;       /* Выстраиваем элементы в ряд вместо колонки */
        align-items: center;       /* Центрируем аватарку и текст по вертикали относительно друг друга */
        text-align: left;          /* Выравниваем текст по левому краю */
        gap: 56px;                 /* Приятный большой отступ между фото и текстом */
        margin-top: 80px; 
        margin-bottom: 100px; 
    }
    
    /* Выравниваем элементы внутри текстового блока по левому краю */
    .hero-text {
        align-items: flex-start;
    }
    
    .hero-photo { 
        width: 320px; 
        height: 320px; 
        border-radius: 40px; 
    }
    
    .hero-name { 
        font-size: 4.5rem; 
    }
    
    .hero-tagline { 
        font-size: 1.5rem; 
    }
    
    .hero-bio { 
        font-size: 1.25rem; 
        max-width: 760px; 
        margin: 0;                 /* Сбрасываем центрирование margin: 0 auto */
    }
    
    /* Блоки доверия */
    .trust-blocks { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .trust-video-wrapper { margin-bottom: 20px; }
    
    /* Портфолио (Шапка кейса) */
    .yt-banner { margin-bottom: 32px; height: 280px; border-radius: 20px; }
    .yt-profile { gap: 24px; margin-bottom: 32px; }
    .yt-avatar { width: 140px; height: 140px; }
    .yt-info { gap: 8px; margin-top: 12px; }
    .yt-name { font-size: 2rem; }
    .yt-stats { font-size: 1rem; }
    
    .project-work-description { margin-bottom: 48px; }
    .work-text { font-size: 1.05rem; }
    .work-tag { font-size: 0.95rem; padding: 12px 24px; }
    
    /* Сетки видео */
    .long-videos { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .shorts-videos { grid-template-columns: repeat(4, 1fr); gap: 24px; }
    .hidden-grid-padding { padding-top: 32px; }
    
    .section-subtitle { font-size: 1rem; margin-bottom: 48px; }

    

    /* Карусели превращаем обратно в сетки на мониторах */
    .workflow-slider {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        overflow-x: visible;
        padding-bottom: 0;
    }
    .workflow-step { flex: auto; }
    .step-content { padding: 24px; }
    
    .services-slider {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        overflow-x: visible;
        padding-bottom: 0;
    }
    .service-card { flex: auto; padding: 40px 32px; }
    
    .service-card-featured { transform: scale(1.05); }
    .service-card-featured:hover { transform: scale(1.05) translateY(-6px); }

    /* Контакты: разделяем на 2 колонки */
    .contact-container {
        flex-direction: row;
        align-items: center;
        padding: 56px;
        gap: 64px;
    }

    .contact-info {
        flex: 1;
        text-align: left;
    }

    .contact-title {
        font-size: 2.5rem;
    }

    .contact-buttons {
        flex-direction: row;
    }

    .contact-form-wrapper {
        flex: 1;
        width: 100%;
        position: relative;
    }

    /* На ПК разделитель можно сделать вертикальным или убрать, 
       но мы сделаем его стильным текстовым блоком над формой */
    .form-divider {
        margin-bottom: 32px;
    }

    .form-divider::before {
        display: none; /* Убираем левую полоску, чтобы текст был слева */
    }
    
    .form-divider span {
        padding-left: 0;
        font-size: 1rem;
    }
}



/* =========================================
   ФОНОВЫЕ НОДЫ (ГЕНЕРАЦИЯ И ДРЕЙФ)
   ========================================= */
.fusion-rig {
    position: absolute; /* Возвращаем абсолютное позиционирование, чтобы фон скроллился */
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; /* Теперь он растянется на всю высоту скролла страницы */
    pointer-events: none; 
    z-index: 0;          
    overflow: hidden;
}

.floating-node {
    position: absolute;
    will-change: transform;
    backface-visibility: hidden;
    animation: drift-node ease-in-out infinite;
}

/* --- 3 ПЛАНА ГЛУБИНЫ (DoF) - БЛЮР УМЕНЬШЕН --- */

/* Дальний план (самые маленькие и сильно размытые) */
.node--bg {
    width: 60px; /* Было 120px */
    filter: blur(4px) brightness(0.4); /* Вернули больше блюра */
    opacity: 0.2;
}

/* Средний план (Основа) */
.node--mid {
    width: 100px; /* Было 200px */
    filter: blur(2px) brightness(0.5); /* Добавили легкий блюр, чтобы не были слишком резкими */
    opacity: 0.3; /* Чуть-чуть убавили прозрачность */
}

/* Передний план (те, что пролетают близко к камере) */
.node--fg {
    width: 160px; /* Было 320px */
    filter: blur(8px) brightness(0.7); /* Сильно размыли, как объекты вне фокуса камеры */
    opacity: 0.25;
}

/* --- АНИМАЦИЯ ДРЕЙФА --- */
@keyframes drift-node {
    0%, 100% { 
        transform: translate(0px, 0px) rotate(0deg); 
    }
    33% { 
        transform: translate(var(--dx1), var(--dy1)) rotate(var(--rot1)); 
    }
    66% { 
        transform: translate(var(--dx2), var(--dy2)) rotate(var(--rot2)); 
    }
}



/* Внутренняя картинка ноды (для отскока от мыши) */
.node-image {
    width: 100%;
    height: auto;
    display: block;
    will-change: transform;
    transition: transform 3s cubic-bezier(0.2, 0.9, 0.3, 1); 
    outline: 1px solid transparent; 
    transform: translateZ(0); 
    clip-path: inset(2px); 
}

/* --- ПРИПОДНИМАЕМ КОНТЕНТ НАД ФОНОМ --- */
.hero-intro,
.container,
.trust-blocks,
.portfolio,
.workflow,
.services {
    position: relative;
    z-index: 10; /* Ставим контент выше, чем ноды */
}

/* =========================================
   ЭФФЕКТ ЗАТУХАНИЯ И КНОПКИ РАСКРЫТИЯ
========================================= */

/* Обертка наезжает на сетку с видео и создает плавный градиент */
.show-more-wrapper, 
.case-trigger-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    
    /* Наезжаем на видео сверху (отрицательный отступ) */
    margin-top: -40px; 
    
    /* Создаем место для градиента */
    padding-top: 80px; 
    padding-bottom: 20px;
    
    /* Градиент от прозрачного к цвету фона */
    /* ВАЖНО: Замени rgba(18, 18, 18, 1) на цвет фона твоего сайта (например, чисто черный: rgba(0, 0, 0, 1) ) */
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0) 0%, rgba(18, 18, 18, 1) 70%);
    
    z-index: 10;
}

/* Выравниваем текст и стрелку внутри кнопки */
.case-main-toggle-btn,
.show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Настраиваем саму стрелочку */
.btn-arrow {
    transition: transform 0.3s ease;
}

/* При наведении мыши стрелочка мягко прыгает вниз, приглашая кликнуть */
.btn-primary:hover .btn-arrow {
    transform: translateY(4px);
}


@media (max-width: 600px) {

    /* =========================================
       СЛАЙДЕР ДЛЯ БЛОКОВ ДОВЕРИЯ НА МОБИЛКАХ
    ========================================= */
    .trust-blocks {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 24px;
        scrollbar-width: none; 
        -ms-overflow-style: none; 
    }

    .trust-blocks::-webkit-scrollbar {
        display: none;
    }

    .trust-item {
        flex: 0 0 85%; 
        scroll-snap-align: center;
    }
    
    /* 1. УМЕНЬШАЕМ ИМЯ НА ГЛАВНОЙ (Влазит в одну строку) */
    .hero-name {
        font-size: 1.7rem; 
        justify-content: center;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .verified-badge {
        width: 20px;
        height: 20px;
    }

    .section-title {
        font-size: 1.6rem;
        letter-spacing: -0.5px;
        text-align: center;
        margin-bottom: 32px;
    }

    /* 2. ПРАВКА ОБЛОЖЕК: Растягиваем баннер от края до края карточки */
    .project-showcase {
        padding: 16px; 
    }

    .yt-banner {
        height: 110px; 
        margin-left: -16px;        /* Выталкиваем обложку влево на всю ширину padding */
        margin-right: -16px;       /* Выталкиваем обложку вправо */
        width: calc(100% + 32px);  /* Расширяем ровно на 10-12%, компенсируя отступы */
        margin-top: -16px;         /* Прижимаем вплотную к верхнему краю карточки */
        border-radius: 22px 22px 0 0; /* Повторяем верхнее скругление карточки (24px) */
        margin-bottom: 16px;
        overflow: hidden;
    }

    .yt-banner img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }

    .yt-profile {
        margin-top: 12px;
        padding: 0 8px;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 16px;
    }

    .yt-avatar {
        width: 56px;
        height: 56px;
        border-width: 2px;
    }
    
    .yt-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .yt-name {
        font-size: 1.1rem !important;
    }

    /* 3. УМЕНЬШАЕМ ТЕГИ КАНАЛОВ */
    .work-tags {
        gap: 8px;
        margin-top: 16px;
    }

    .work-tag {
        font-size: 0.75rem; 
        padding: 6px 12px;  
    }
}