/* ============================================
   PROXY GROUP Design System v2
   Corporate Graphite Theme (Reference: DGP)
   ============================================ */

/* --- Global Variables --- */
:root {
    /* Primary Colors */
    --accent: #A31621;
    --accent-dark: #8B121B;
    --accent-light: #C41E2A;
    
    /* Backgrounds - Deep Dark Palette (DGP Reference) */
    --bg-dark: #0D0D0F;
    --bg-dark-alt: #141416;
    --bg-surface: #1A1A1D;
    --bg-card: #1F1F23;
    
    /* Light Cards on Dark Background */
    --card-bg: #FFFFFF;
    --card-border: #E8E8E8;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    
    /* Text */
    --text-white: #FFFFFF;
    --text-light: #F0F0F0;
    --text-muted: #8A8A8A;
    --text-dark: #111111;
    --text-dark-secondary: #555555;
    
    /* Layout - Harmonious rounded corners */
    --radius: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --container-max: 1280px;
    --header-height: 80px;
    
    /* Transitions */
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Fonts */
    --font-main: 'ComonsPro', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #000000;
    color: var(--text-light);
    font-family: 'ComonsPro', sans-serif;
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: var(--transition);
}

ul, ol { 
    list-style: none; 
}

img { 
    max-width: 100%; 
    display: block; 
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    border-bottom: none;
}

section:last-of-type {
    border-bottom: none;
}

/* Закругленные углы сверху для секций от "Кто мы" до "Кейсы" - эффект наложения карточек */
/* Первая секция "Кто мы" - вторая секция после hero */
body > section:not(.section-hero):nth-child(2),
/* Что мы делаем */
section#what-we-do,
/* Когда к нам обращаются - выбираем все секции с этим id, кроме первой */
section#when-contact:not(:first-of-type),
/* Альтернативный селектор для "Когда к нам обращаются" - вторая секция с этим id */
section#when-contact:nth-of-type(2),
/* Для каких клиентов мы работаем */
section#clients,
/* С какими активами мы работаем */
section#assets,
/* Технологии PROXY */
section#infrastructure,
/* Наш подход к сделкам */
section#approach,
/* Кейсы */
section#cases,
/* Сетка компетенций на странице компетенций */
section#competencies-grid {
    margin-top: -20px;
    padding-top: 120px;
    position: relative;
    border-top: none;
}

/* Закругления применяются только когда секция становится sticky */
section#what-we-do.parallax-hero.sticky-rounded,
section#when-contact.parallax-hero.sticky-rounded,
section#clients.parallax-hero.sticky-rounded,
section#assets.parallax-hero.sticky-rounded,
section#infrastructure.parallax-hero.sticky-rounded,
section#cases.sticky-rounded {
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    transition: border-top-left-radius 0.2s ease, border-top-right-radius 0.2s ease;
}

/* Увеличиваем z-index для каждой последующей секции для эффекта наложения */
body > section:not(.section-hero):nth-child(2) {
    z-index: 1;
    padding-top: 120px;
}

section#what-we-do {
    z-index: 2;
}

section#when-contact:nth-of-type(2) {
    z-index: 3;
}

section#clients {
    z-index: 4;
    border-bottom: none;
}

section#assets {
    z-index: 5;
    position: relative;
    overflow: hidden;
    border-top: none;
}

section#infrastructure {
    border-bottom: none;
}

section#what-we-do {
    border-bottom: none;
}

section#when-contact {
    border-bottom: none;
    border-top: none;
}

section#what-we-do {
    border-top: none;
}

section#cases {
    border-top: none;
    border-bottom: none;
}

section#assets .container {
    position: relative;
    z-index: 1;
}

.assets-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(120px, 25vw, 400px);
    font-weight: 900;
    color: rgba(30, 30, 35, 0.08);
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    letter-spacing: 0.02em;
}

section#infrastructure {
    z-index: 6;
}

section#approach {
    z-index: 7;
}

section#cases {
    z-index: 8;
}

/* Чередование фонов секций: графитовый, черный, графитовый, черный... */
/* Начинаем с графитового для первой секции после hero */
/* Используем :not(:first-child) для всех секций после первой (hero) */
body > section:not(:first-child):not(.parallax-hero):nth-child(even) {
    background: var(--bg-surface);
}

body > section:not(:first-child):not(.parallax-hero):nth-child(odd) {
    background: var(--bg-dark);
}

/* Hero секция имеет свой фон (изображение или темный) */
.section-hero {
    background-color: var(--bg-dark);
}

/* Прозрачный фон для всех секций на странице компетенций, кроме competency-card */
body:has(.competency-card) .section-hero {
    background-color: transparent;
}

body:has(.competency-card) section:not(.competency-card) {
    background-color: transparent !important;
}

body:has(.competency-card) section.section-surface {
    background-color: transparent !important;
}

/* Плавный переход оверлея hero-секции в черный фон страницы на PROXITY */
body:has(section.proxity-dark-section) .section-hero[style*="background-image"]::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.8) 85%, rgba(0, 0, 0, 1) 100%);
}

/* Переопределение для секций с классом section-surface - они должны быть графитовыми */
.section-surface:not(.parallax-hero) {
    background: var(--bg-surface);
}

/* Но если section-surface нечетная по счету (после hero), делаем черной для чередования */
body > section.section-surface:not(:first-child):not(.parallax-hero):nth-child(odd) {
    background: var(--bg-dark);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-white);
    line-height: 1.15;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
}

/* Дополнительное правило для hero-секций */
.section-hero h1.hero-title {
    font-size: 44px;
    line-height: 1.15;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    margin-bottom: 24px;
}

h2.section-title {
    text-align: left;
    margin-bottom: 56px;
    position: relative;
    padding-top: 24px;
}

/* Декоративные клепки над заголовками секций */
h2.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 8px;
    background-image: 
        radial-gradient(circle, transparent 1.5px, var(--accent) 1.5px, var(--accent) 3.5px, transparent 3.5px),
        radial-gradient(circle, transparent 1.5px, var(--accent) 1.5px, var(--accent) 3.5px, transparent 3.5px),
        radial-gradient(circle, transparent 1.5px, var(--accent) 1.5px, var(--accent) 3.5px, transparent 3.5px);
    background-size: 8px 8px;
    background-position: 0 0, 16px 0, 32px 0;
    background-repeat: no-repeat;
}

h3 {
    font-size: 1.375rem;
    font-weight: 600;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
}

p {
    color: var(--text-muted);
    font-size: 1.0625rem;
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* --- Components: Buttons --- */
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button.primary {
    background: var(--accent);
    color: var(--text-white);
    border-color: var(--accent);
}

.button.primary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-2px);
}

.button.outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-white);
}

.button.outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

.button.white {
    background: var(--text-white);
    color: var(--text-dark);
    border-color: var(--text-white);
}

.button.white:hover {
    background: #F3F4F6;
    border-color: #F3F4F6;
    transform: translateY(-2px);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background: transparent;
    transition: var(--transition-slow);
}

.header.scrolled {
    padding: 14px 0;
    background: rgba(47, 47, 51, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.header-content .nav-main {
    margin-left: auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 36px;
    width: auto;
    transition: var(--transition);
}

.logo:hover .logo-img {
    opacity: 0.8;
}

/* Текстовый логотип */
.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white) !important;
    letter-spacing: -0.02em;
    line-height: 1;
    transition: var(--transition);
}

.logo-text-accent {
    color: var(--accent);
    font-size: 1.25rem !important;
    font-weight: 700;
}

.logo:hover .logo-text {
    opacity: 0.9;
}

/* Main Navigation */
.nav-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 12px 18px;
    border-radius: var(--radius);
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Белый цвет для навигационных ссылок до скролла */
.header:not(.scrolled) .nav-link {
    color: var(--text-white) !important;
}

.nav-link:hover {
    color: var(--text-white);
}

.nav-link.active {
    color: var(--text-white);
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-actions .button {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 99;
    padding: 100px 24px 40px;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-slow);
}

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

.mobile-menu .nav-link {
    font-size: 1.125rem;
    padding: 16px 20px;
    border-radius: var(--radius-md);
}

.mobile-menu .nav-actions {
    margin-top: 16px;
    flex-direction: row;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding-left: 20px;
}

.mobile-menu .nav-actions .button {
    width: auto;
    display: inline-flex;
}

/* --- Hero Section --- */
.section-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 160px;
    padding-bottom: 100px;
    border-bottom: none;
    background-color: var(--bg-dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Скрываем border-bottom для секций с фоновыми изображениями, чтобы оверлей полностью покрывал */
.section-hero[style*="background-image"],
.section-hero.hero-slider {
    border-bottom: none;
}

/* Для hero секций с изображениями (кроме слайдера) - кадрируем изображение */
.section-hero:not(.hero-slider)[style*="background-image"] {
    background-size: cover;
    background-position: center;
}

/* Если есть фоновое изображение через inline style, добавляем затемнение */
.section-hero:not(.hero-slider)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: transparent;
    pointer-events: none;
}

/* Затемнение для секций с фоновым изображением - покрывает всю высоту секции */
.section-hero:not(.hero-slider)[style*="background-image"]::before {
    background: linear-gradient(to bottom, 
        rgba(13, 13, 15, 0.5) 0%,
        rgba(13, 13, 15, 0.7) 40%,
        rgba(13, 13, 15, 0.9) 70%,
        rgba(13, 13, 15, 1) 100%);
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    bottom: -3px;
    width: 100%;
    height: calc(100% + 4px);
    min-height: calc(100% + 4px);
    z-index: 0;
    pointer-events: none;
}

.section-hero .container {
    position: relative;
    z-index: 1;
}

/* Hero Slider */
.hero-slider {
    position: relative;
}

.hero-slider-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.hero-slider-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Затемнение для слайдов */
.hero-slider-slide::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    bottom: -3px;
    width: 100%;
    height: calc(100% + 4px);
    min-height: calc(100% + 4px);
    background: linear-gradient(to bottom, 
        rgba(13, 13, 15, 0.6) 0%,
        rgba(13, 13, 15, 0.75) 50%,
        rgba(13, 13, 15, 0.95) 85%,
        rgba(13, 13, 15, 1) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Убеждаемся, что контент поверх слайдов */
.hero-slider .container {
    position: relative;
    z-index: 10;
}

/* Параллакс эффект для hero-секции на странице компетенций */
.section-hero.parallax-hero {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: auto;
    margin-bottom: 0;
}

.section-hero.parallax-hero + .section-surface {
    position: relative;
    z-index: 20;
    background: var(--bg-surface);
    margin-top: 0;
}

/* Параллакс эффект для обычных секций */
section.parallax-hero {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10;
    margin-bottom: 0;
    will-change: transform;
}

/* Отключаем sticky позиционирование на мобильных устройствах */
@media (max-width: 768px) {
    section.parallax-hero {
        position: static !important;
    }
    
    .section-hero.parallax-hero {
        position: static !important;
    }
}

/* Специфичные стили для секции "Что мы делаем" */
section#what-we-do.parallax-hero {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10;
    position: relative;
}


/* Специфичные стили для секции "Когда к нам обращаются" */
section#when-contact.parallax-hero {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Специфичные стили для секции "Для каких клиентов мы работаем" */
section#clients.parallax-hero {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Специфичные стили для секции "Наш подход к сделкам" */
section#approach.parallax-hero {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Фон для parallax-hero секций в зависимости от их класса */
section.parallax-hero:not(.section-surface) {
    background: var(--bg-dark);
}

section.parallax-hero.section-surface {
    background: var(--bg-surface);
}


/* Фоновое изображение для секции "Кейсы" */
/* Фоновое изображение для секции "Кейсы" */
section#cases {
    position: static !important;
}

/* Переопределение фона для секции компетенций на странице компетенций */
section#competencies-grid {
    background: var(--bg-dark) !important;
}

/* Стили для страницы PROXITY - чередование фонов */
.proxity-first-section {
    background: var(--bg-dark) !important;
}

.proxity-alt-section {
    background: #2F2F33 !important;
}

.proxity-dark-section {
    background: var(--bg-dark) !important;
}

/* Графитовый фон и белый текст для карточек в секции "Что дает платформа" */
section.proxity-dark-section .card.card-light {
    background: var(--bg-surface) !important;
}

section.proxity-dark-section .card.card-light .card-title,
section.proxity-dark-section .card.card-light h3,
section.proxity-dark-section .card.card-light h4,
section.proxity-dark-section .card.card-light p,
section.proxity-dark-section .card.card-light li,
section.proxity-dark-section .card.card-light .checklist li {
    color: var(--text-white) !important;
}

/* Компактные стили для секции компетенций */
section#competencies-grid .grid-2 {
    gap: 16px;
}

section#competencies-grid .card {
    padding: 24px;
}

section#competencies-grid .card-title {
    margin-bottom: 10px;
    font-size: 1.0625rem;
}

section#competencies-grid .card p {
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Акцентный элемент для карточек компетенций */
section#competencies-grid .competency-card {
    position: relative;
    padding-left: 32px;
}

section#competencies-grid .competency-accent {
    position: absolute;
    left: 0;
    top: 24px;
    width: 3px;
    height: 32px;
    background: var(--accent);
}

/* Переопределение фона для секции "Наш подход" на странице компетенций */
section#approach.parallax-hero {
    background: var(--bg-surface) !important;
}

/* Графитовый фон для карточек в секции approach */
section#approach .card.card-light {
    background: var(--bg-surface) !important;
}

/* Белый текст для заголовков и описаний в карточках секции approach */
section#approach .card.card-light .card-title,
section#approach .card.card-light h3,
section#approach .card.card-light h4,
section#approach .card.card-light p {
    color: var(--text-white) !important;
}

/* Белая заливка для тегов в секции approach */
section#approach .tag {
    background: #FFFFFF !important;
    color: var(--text-dark) !important;
}

/* Переопределение фона для секции команды на странице команды */
section#team-grid {
    background: var(--bg-dark) !important;
}

/* Стили для карточки компетенции */
section.competency-card {
    background: var(--bg-surface) !important;
    border-radius: var(--radius-lg);
    margin: 24px;
    padding: 40px 0;
    border-top: none;
    border-bottom: none;
}

/* Акцентный фон для секции "Запросы инвесторов" */
section.competency-card-accent {
    background: var(--accent) !important;
}

/* Белый текст для акцентной карточки */
section.competency-card-accent .section-title,
section.competency-card-accent p,
section.competency-card-accent h2,
section.competency-card-accent h3 {
    color: var(--text-white) !important;
}

/* Черные/графитовые точки для заголовка в акцентной карточке */
section.competency-card-accent .section-title::before {
    background-image: 
        radial-gradient(circle, transparent 1.5px, var(--bg-dark) 1.5px, var(--bg-dark) 3.5px, transparent 3.5px),
        radial-gradient(circle, transparent 1.5px, var(--bg-dark) 1.5px, var(--bg-dark) 3.5px, transparent 3.5px),
        radial-gradient(circle, transparent 1.5px, var(--bg-dark) 1.5px, var(--bg-dark) 3.5px, transparent 3.5px);
}

/* Скрыть описание в hero-секции на странице контактов */
body:has(section#contact-section) .hero-desc {
    display: none;
}

/* Фиксированная ширина фона для карточек на странице PROXITY на больших экранах */
/* Ширина совпадает с шириной контента секции "Что дает платформа" (контейнер с padding) */
@media (min-width: 1025px) {
    body:has(section.proxity-dark-section) section.competency-card {
        max-width: var(--container-max);
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Внутренний контейнер с padding, чтобы контент начинался там же, где карточки в секции "Что дает платформа" */
    body:has(section.proxity-dark-section) section.competency-card .container {
        padding: 0 24px;
    }
}


section.competency-card .container {
    padding: 0 40px;
}

/* Компактные стили для секции команды - 3 карточки в ряд */
section#team-grid .grid-3 {
    gap: 20px;
}

section#team-grid .person-card {
    padding: 12px;
}

section#team-grid .person-media {
    margin-bottom: 12px;
}

section#team-grid .person-name {
    font-size: 1rem;
    margin-bottom: 4px;
}

section#team-grid .person-role {
    font-size: 0.75rem;
    margin-bottom: 10px;
}

section#team-grid .person-desc {
    font-size: 0.8125rem;
    line-height: 1.5;
    margin-bottom: 10px;
    color: var(--text-dark-secondary) !important;
}

section#team-grid .person-email {
    font-size: 0.8125rem;
}

section#team-grid .person-placeholder {
    font-size: 2rem;
}

/* Переопределение фона футера на странице команды */
body:has(section#team-grid) footer {
    background: #2F2F33 !important;
}

/* Переопределение фона для секции контактов на странице контактов */
section#contact-section {
    background: var(--bg-dark) !important;
}

/* Переопределение фона футера на странице контактов */
body:has(section#contact-section) footer {
    background: #2F2F33 !important;
}

/* Следующая секция после parallax-hero должна быть поверх */
section.parallax-hero + section {
    position: relative;
    z-index: 20;
    margin-top: 0;
}

/* Убеждаемся, что следующая секция имеет правильный фон */
section.parallax-hero + .section-surface {
    background: var(--bg-surface) !important;
}

section.parallax-hero + section:not(.section-surface) {
    background: var(--bg-dark) !important;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    max-width: 960px;
}

.hero-content {
    text-align: left;
}

.hero-title {
    margin-bottom: 32px;
    line-height: 1.15;
    font-size: 44px;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 28px;
    max-width: 720px;
    opacity: 0.9;
    line-height: 1.4;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.hero-theses {
    display: grid;
    gap: 0;
    margin-top: 48px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.hero-theses li {
    border-left: 3px solid var(--accent);
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.0625rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.hero-theses li:first-child {
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
}

.hero-theses li:last-child {
    border-bottom: none;
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

/* --- Cards & Grid --- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Dark Cards (default) */
.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
    position: relative;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-white);
    line-height: 1.3;
}

.card p {
    font-size: 0.9375rem;
    margin-bottom: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Статистические показатели в карточках */
.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--text-dark-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}

.card.card-light .stat-label {
    color: var(--text-dark-secondary);
}

/* Light Cards on Dark Background */
.card.card-light {
    background: var(--card-bg);
    border: none;
    box-shadow: var(--card-shadow);
}

.card.card-light:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.card.card-light .card-title,
.card.card-light h3,
.card.card-light h4 {
    color: var(--text-dark);
}

.card.card-light p,
.card.card-light li {
    color: var(--text-dark-secondary);
}

/* Акцентный элемент для кейсов */
.case-card {
    position: relative;
    padding-left: 40px;
}

.case-accent {
    position: absolute;
    left: 0;
    top: 32px;
    width: 3px;
    height: 40px;
    background: var(--accent);
    border-radius: 2px;
}

/* Номера карточек */
.card-number {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 10rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    opacity: 0.2;
    pointer-events: none;
    transform: translate(-12px, -20px);
    z-index: 0;
    user-select: none;
}

.card.card-light .card-number {
    opacity: 0.18;
}

.card p,
.card .card-title {
    position: relative;
    z-index: 1;
}

/* --- Tags --- */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
}

/* --- Two Column Layout --- */
.two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: stretch;
}

.two-col .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* --- Checklist --- */
.checklist {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
}

.checklist li {
    position: relative;
    padding-left: 24px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 10px;
    height: 2px;
    background: var(--accent);
}

/* Light checklist inside light cards */
.card.card-light .checklist li {
    color: var(--text-dark-secondary);
}

/* --- Carousel --- */
.carousel {
    position: relative;
}

.carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.carousel-controls {
    display: flex;
    gap: 8px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.carousel-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.carousel-viewport::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 20px;
    padding: 4px 2px;
}

.carousel-slide {
    scroll-snap-align: start;
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 300px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.is-active {
    background: var(--accent);
    width: 20px;
    border-radius: 3px;
}

/* --- Person Cards (Team) --- */
.person-card {
    padding: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.person-media {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #E5E7EB;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.person-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.person-card:hover .person-media img {
    transform: scale(1.03);
}

.person-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 3rem;
    color: #9CA3AF;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #E5E7EB 0%, #D1D5DB 100%);
}

.person-info {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.person-name {
    margin-bottom: 6px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.person-role {
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.person-desc {
    font-size: 0.75rem;
    line-height: 1.5;
    margin-bottom: 12px;
    color: var(--text-dark-secondary);
}

.person-email {
    display: inline-block;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.person-email:hover {
    color: var(--accent);
    opacity: 0.8;
    text-decoration: underline;
}

/* --- Footer --- */
footer {
    position: relative;
    z-index: 100;
    padding: 80px 0 40px;
    background: #2F2F33;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0;
}

.footer-contacts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 48px;
}

.footer-contact-item {
    text-align: center;
}

.footer-contact-item h4 {
    color: var(--text-muted);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 500;
}

.footer-contact-item p {
    color: var(--text-white);
    font-size: 1rem;
    margin: 0;
}

.footer-contact-item a {
    color: var(--text-white);
}

.footer-contact-item a:hover {
    color: var(--accent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-logo {
    display: inline-block;
}

.footer-logo .logo-img {
    height: 28px;
    width: auto;
    opacity: 0.5;
    transition: var(--transition);
}

.footer-logo:hover .logo-img {
    opacity: 0.9;
}

/* Текстовый логотип в футере */
.footer-logo .logo-text {
    font-size: 1.25rem;
    opacity: 0.8;
}

.footer-logo .logo-text-accent {
    font-size: 1.25rem;
}

.footer-logo:hover .logo-text {
    opacity: 1;
}

.footer-links {
    display: flex;
    gap: 36px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links a:hover {
    color: var(--text-white);
}

.footer-copy {
    width: 100%;
    text-align: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* --- Contact Form --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

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

.form-group:last-of-type {
    margin-bottom: 28px;
}

.form-label {
    display: block;
    color: var(--text-dark);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-family: var(--font-main);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--card-bg);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9CA3AF;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    color: #DC2626;
    font-size: 0.8125rem;
    margin-top: 6px;
    display: none;
}

.form-group.error .form-input,
.form-group.error .form-textarea {
    border-color: #DC2626;
}

.form-group.error .form-error {
    display: block;
}

.form-success {
    display: none;
    padding: 16px;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: var(--radius-md);
    color: #059669;
    text-align: center;
    margin-top: 16px;
    font-size: 0.9375rem;
}

.form-success.show {
    display: block;
}

.contact-info {
    padding-top: 10px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.contact-info h3 {
    margin-bottom: 28px;
}

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

.contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
}

.contact-item-content h4 {
    color: var(--text-white);
    font-size: 0.9375rem;
    margin-bottom: 4px;
}

.contact-item-content p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin: 0;
}

.contact-item-content a {
    color: var(--text-muted);
}

.contact-item-content a:hover {
    color: var(--text-white);
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* --- Utility Classes --- */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.w-100 { width: 100%; }

/* --- Button Loading --- */
.button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.button.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Responsive --- */
/* На больших планшетах (768px-1024px) - текст и картинка рядом */
@media (min-width: 769px) and (max-width: 1024px) {
    .two-col {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* На больших планшетах (769px-1024px) - две колонки */
    @media (min-width: 769px) {
        .two-col {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    /* На узких экранах (до 768px) - одна колонка */
    @media (max-width: 768px) {
        .two-col {
            grid-template-columns: 1fr;
        }
    }
    
    .carousel-slide {
        flex-basis: calc((100% - 20px) / 2);
    }
    
    .nav-main,
    .header .nav-actions {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    /* Убеждаемся, что секции с закругленными углами имеют правильный z-index на планшетах */
    body > section:not(.section-hero):nth-child(2),
    section#what-we-do,
    section#when-contact:nth-of-type(2),
    section#clients,
    section#assets,
    section#infrastructure,
    section#approach,
    section#cases {
        position: relative !important;
    }
    
    body > section:not(.section-hero):nth-child(2) {
        z-index: 1 !important;
    }
    
    section#what-we-do {
        z-index: 2 !important;
    }
    
    section#when-contact:not(:first-of-type),
    section#when-contact:nth-of-type(2) {
        z-index: 3 !important;
    }
    
    section#clients {
        z-index: 4 !important;
    }
    
    section#assets {
        z-index: 5 !important;
    }
    
    section#infrastructure {
        z-index: 6 !important;
    }
    
    section#approach {
        z-index: 7 !important;
    }
    
    section#cases {
        z-index: 8 !important;
    }
    
    /* Убеждаемся, что секция "Кейсы" накладывается поверх "Наш подход к сделкам" */
    section#approach.parallax-hero {
        z-index: 7 !important;
    }
    
    section#cases.section-surface {
        z-index: 8 !important;
        position: relative !important;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    /* На узких мобильных - сначала текст, потом картинка */
    .two-col {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Обеспечиваем порядок: сначала текст (div с h2), потом картинка (div с img) */
    .two-col > div:has(h2),
    .two-col > div:has(.section-title) {
        order: 1;
    }
    
    .two-col > div:has(img) {
        order: 2;
    }
    
    /* Кнопки CTA в секции PROXITY одинакового размера на мобильных */
    section.proxity-dark-section .text-center > div[style*="display: flex"] {
        flex-wrap: wrap;
        width: 100%;
    }
    
    section.proxity-dark-section .text-center > div[style*="display: flex"] .button {
        flex: 1 1 calc(50% - 8px);
        min-width: 140px;
    }
    
    /* Отступ перед текстом в proxy-structure на мобильных */
    section#when-contact .proxy-structure p {
        margin-top: 24px;
    }
    
    /* Grid-2 по 2 в ряд на мобильных */
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* Grid-3 по 2 в ряд на мобильных, кроме секции кейсов */
    section .grid-3:not(section#cases .grid-3) {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* Более специфичное правило для секции assets */
    section#assets .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* Блоки команды по 1 в ряд на мобильных */
    section#team-grid .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    /* Блоки в секции PROXITY по 1 в ряд на мобильных */
    section.proxity-alt-section .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* Горизонтальная прокрутка для кейсов на мобильных */
    section#cases .grid-3 {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-bottom: 8px;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    }
    
    section#cases .grid-3::-webkit-scrollbar {
        height: 4px;
    }
    
    section#cases .grid-3::-webkit-scrollbar-track {
        background: transparent;
    }
    
    section#cases .grid-3::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
    }
    
    section#cases .grid-3 > * {
        flex: 0 0 85%;
        max-width: 85%;
        scroll-snap-align: start;
    }
    
    .carousel-slide {
        flex-basis: 85%;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .button {
        width: 100%;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .card {
        padding: 24px;
    }
    
    .footer-contacts {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        display: flex;
        flex-direction: column;
    }
    
    .contact-form {
        order: 2;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .contact-info {
        order: 1;
        position: static;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Отключение параллакса на мобильных устройствах */
    section.parallax-hero {
        position: static !important;
        z-index: auto !important;
    }
    
    section.parallax-hero + section {
        position: static !important;
        z-index: auto !important;
    }
    
    .section-hero.parallax-hero {
        position: static !important;
    }
    
    /* Специально для секции "Когда к нам обращаются" - отключаем sticky */
    section#when-contact.parallax-hero {
        position: static !important;
        z-index: auto !important;
    }
    
    /* Футер всегда поверх всех секций */
    footer {
        z-index: 100 !important;
        position: relative !important;
    }
}

@media (max-width: 480px) {
    /* Grid-2 по 1 в ряд на узких мобильных */
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    /* Grid-3 по 1 в ряд на узких мобильных */
    section#assets .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    /* Grid-4 по 1 в ряд на узких мобильных */
    section#infrastructure .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    /* Grid-3 в секции what-we-do по 1 в ряд на узких мобильных */
    section#what-we-do .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    .container {
        padding: 0 16px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .person-card {
        padding: 16px;
    }
}

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    transition: opacity var(--transition);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform var(--transition);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    border-radius: var(--radius);
    transition: var(--transition);
    z-index: 1002;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 32px;
    line-height: 1.2;
}

.modal .contact-form {
    margin-top: 0;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 32px 24px;
        width: 95%;
    }
    
    .modal-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }
}

/* --- PROXY Structure Visualization --- */
.proxy-structure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 32px 0;
    margin: 0 auto;
    max-width: 100%;
}

.proxy-structure-item {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.proxy-structure-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(163, 22, 33, 0.2);
}

.proxy-structure-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(163, 22, 33, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent);
}

.proxy-structure-proxity .proxy-structure-icon {
    background: rgba(163, 22, 33, 0.15);
}

.proxy-structure-proxy .proxy-structure-icon {
    background: rgba(163, 22, 33, 0.15);
}

.proxy-structure-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
    line-height: 1.2;
}

.proxy-structure-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.proxy-structure-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 20px 32px;
    background: transparent;
    border: none;
    position: relative;
}

.proxy-structure-center-label {
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.proxy-structure-logo-text {
    color: var(--text-white);
}

.proxy-structure-logo-accent {
    color: var(--accent);
}

.proxy-structure-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    opacity: 0.6;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .proxy-structure {
        flex-direction: column;
        gap: 20px;
    }
    
    .proxy-structure-connector {
        transform: rotate(90deg);
    }
    
    .proxy-structure-item {
        max-width: 100%;
        width: 100%;
    }
    
    .proxy-structure-center {
        width: 100%;
        min-width: auto;
    }
}
