/* ============================================
   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: radial-gradient(ellipse at 25% 25%, #2A2A2A 0%, #1F1F1F 25%, #1A1A1A 40%, #0F0F0F 60%, #1A1A1A 80%, #1F1F1F 100%);
    background-attachment: fixed;
    background-size: 150% 150%;
    background-position: center;
    min-height: 100vh;
    color: var(--text-light);
    font-family: 'ComonsPro', sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

/* Horizontal overflow protection for main page only */
body:has(section#when-contact:not(.parallax-hero)) {
    overflow-x: hidden;
}

/* Фон как на главной для страниц объектов */
body.objects-page section:not(footer) {
    background: transparent !important;
    background-color: transparent !important;
}

body.objects-page section.object-detail {
    background: transparent !important;
    background-color: transparent !important;
}

body.objects-page section.objects-section {
    background: transparent !important;
    background-color: transparent !important;
}

/* Прозрачный фон для hero-секции на главной странице */
body:has(section#when-contact:not(.parallax-hero)) .section-hero {
    background-color: transparent !important;
    background-image: none !important;
}

/* Прозрачный фон для всех секций на главной странице, кроме футера и competency-card */
body:has(section#when-contact:not(.parallax-hero)) section:not(footer):not(.competency-card) {
    background-color: transparent !important;
    background: transparent !important;
}

/* Графитовый фон для секции с классом competency-card на главной странице, исключая "Что мы делаем", "Для каких клиентов" и "Технологии PROXITY" */
body:has(section#when-contact:not(.parallax-hero)) section.competency-card:not(#what-we-do):not(#clients):not(#infrastructure) {
    background: transparent !important;
    background-color: transparent !important;
}

/* Прозрачный фон для секции "Кто мы" */
section#who-we-are.competency-card {
    background: transparent !important;
    background-color: transparent !important;
    padding-top: 24px;
    padding-bottom: 40px;
}

/* Графитовый фон для секции "Что мы делаем" - переопределяет общее правило */
body:has(section#when-contact:not(.parallax-hero)) section#what-we-do.competency-card {
    background: var(--bg-surface) !important;
    background-color: var(--bg-surface) !important;
}

section#what-we-do.competency-card {
    background: var(--bg-surface) !important;
    background-color: var(--bg-surface) !important;
}

/* Графитовый фон для секции "Для каких клиентов мы работаем" */
body:has(section#when-contact:not(.parallax-hero)) section#clients.competency-card {
    background: var(--accent) !important;
    background-color: var(--accent) !important;
}

section#clients.competency-card {
    background: var(--accent) !important;
    background-color: var(--accent) !important;
}

/* Белый текст для описания в секции #clients */
section#clients.competency-card p {
    color: var(--text-white) !important;
}

section#clients.competency-card h2.section-title {
    color: var(--text-white) !important;
}

/* Белые точки перед заголовком в секции #clients */
section#clients.competency-card h2.section-title::before {
    background-image: 
        radial-gradient(circle, transparent 1.5px, var(--text-white) 1.5px, var(--text-white) 3.5px, transparent 3.5px),
        radial-gradient(circle, transparent 1.5px, var(--text-white) 1.5px, var(--text-white) 3.5px, transparent 3.5px),
        radial-gradient(circle, transparent 1.5px, var(--text-white) 1.5px, var(--text-white) 3.5px, transparent 3.5px);
}

/* Графитовый фон для секции "Технологии PROXITY" */
body:has(section#when-contact:not(.parallax-hero)) section#infrastructure.competency-card {
    background: var(--bg-surface) !important;
    background-color: var(--bg-surface) !important;
}

section#infrastructure.competency-card {
    background: var(--bg-surface) !important;
    background-color: var(--bg-surface) !important;
}

/* Переопределяем чередование фонов для главной страницы, исключая competency-card */
body:has(section#when-contact:not(.parallax-hero)) > section:not(:first-child):not(.parallax-hero):not(.competency-card):nth-child(even),
body:has(section#when-contact:not(.parallax-hero)) > section:not(:first-child):not(.parallax-hero):not(.competency-card):nth-child(odd) {
    background: transparent !important;
    background-color: transparent !important;
}

/* Переопределяем section-surface для главной страницы, исключая competency-card */
body:has(section#when-contact:not(.parallax-hero)) .section-surface:not(.parallax-hero):not(.competency-card),
body:has(section#when-contact:not(.parallax-hero)) > section.section-surface:not(:first-child):not(.parallax-hero):not(.competency-card):nth-child(odd) {
    background: transparent !important;
    background-color: transparent !important;
}

/* Графитовый фон для section-surface с competency-card "Что мы делаем" */
body:has(section#when-contact:not(.parallax-hero)) section.section-surface.competency-card#what-we-do {
    background: var(--bg-surface) !important;
    background-color: var(--bg-surface) !important;
}

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;
    overflow: visible;
}

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;
    padding-top: 220px !important;
    padding-bottom: 80px !important;
}

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 - они должны быть графитовыми */
/* Исключаем главную страницу, где все секции прозрачные */
body:not(:has(section#when-contact:not(.parallax-hero))) .section-surface:not(.parallax-hero) {
    background: var(--bg-surface);
}

/* Но если section-surface нечетная по счету (после hero), делаем черной для чередования */
body:not(:has(section#when-contact:not(.parallax-hero))) > 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.graphite {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-white);
}

.button.graphite:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-2px);
}

.button.graphite .button-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    font-size: 1.9rem;
    font-weight: 100;
    line-height: 1;
    align-self: center;
}

.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: 16px;
    left: 0;
    right: 0;
    z-index: 1301;
    padding: 16px 0;
    background: transparent;
    transition: padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background: transparent;
    padding-top: 20px;
    padding-bottom: 20px;
}

.header.scrolled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: calc(var(--container-max) + 48px);
    height: 100%;
    background: rgba(47, 47, 51, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 
                0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: -1;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                backdrop-filter 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                -webkit-backdrop-filter 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                border 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 0 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-quotes {
    color: var(--accent);
    font-size: 2.5rem;
    font-weight: 700;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    transform: translateY(-5px);
}

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

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

.nav-services {
    position: relative;
}

.nav-link.nav-services-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
}

.services-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 520px;
    background: rgba(24, 24, 28, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    column-gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    pointer-events: none;
    z-index: 50;
}

.services-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}

.services-dropdown.is-open .services-dropdown-menu,
.services-dropdown:hover .services-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.services-dropdown-link {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: var(--transition);
}

.services-dropdown-link:hover {
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.footer-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.footer-dropdown-toggle {
    background: transparent;
    border: none;
    padding: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.footer-dropdown-menu {
    bottom: calc(100% + 8px);
    top: auto;
}

.footer-dropdown .services-dropdown-link {
    color: var(--text-white);
}

.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;
    text-decoration: none;
    position: relative;
}

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

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

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 18px;
    right: 18px;
    height: 2px;
    background-color: var(--accent);
    border-radius: 1px;
}

.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);
    position: relative;
    z-index: 1302;
}

.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: 1200;
    padding: 100px 24px 40px;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-slow);
}

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

.mobile-menu .nav-link {
    font-size: 1.125rem;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.mobile-menu .nav-link.active {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
    text-decoration-skip-ink: none;
}

.mobile-menu .nav-link.active::after {
    display: none;
}

.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;
}

.mobile-menu .services-dropdown-menu {
    position: static;
    transform: none;
    border: none;
    background: transparent;
    padding: 4px 0 0 12px;
    min-width: 100%;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    grid-template-columns: 1fr;
}

.mobile-menu .services-dropdown.is-open .services-dropdown-menu {
    display: grid;
}

.mobile-menu .services-dropdown-link {
    border-color: rgba(255, 255, 255, 0.12);
}

body.objects-page .mobile-menu .nav-actions {
    margin-top: 0;
    padding-left: 0;
    display: block;
}

body.objects-page .mobile-menu .nav-actions .nav-link {
    display: block;
    width: 100%;
}

/* --- 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;
}

/* Static hero blocks should size to content, not viewport */
.section-hero.hero-static {
    min-height: auto;
}

/* Скрываем 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;
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 100px;
}

/* Обертка для слайдера с отступами и скругленными краями */
.hero-slider-wrapper {
    position: absolute;
    top: calc(var(--header-height) + 24px);
    left: 0;
    right: 0;
    bottom: 100px;
    max-width: var(--container-max);
    width: calc(100% - 48px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
    border-radius: var(--radius-lg);
    overflow: hidden;
    z-index: 0;
}

@media (max-width: 768px) {
    .hero-slider {
        padding-top: calc(var(--header-height) + 16px);
        padding-bottom: 60px;
    }
    
    .hero-slider-wrapper {
        top: calc(var(--header-height) + 16px);
        left: 16px;
        right: 16px;
        bottom: 60px;
        border-radius: var(--radius-md);
    }
    
    .hero-slider-indicators {
        bottom: 16px;
        gap: 8px;
    }
    
    .hero-slider .hero-content {
        padding: 0;
    }
    
    .hero-slider .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: 20px;
    }
    
    .hero-slider .hero-desc {
        font-size: 1rem;
        margin-bottom: 24px;
        max-width: 100%;
    }
    
    .hero-slider .hero-buttons {
        margin-top: 24px;
    }
    
    .hero-slider .container {
        padding: 0 24px;
    }
}

.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, filter 0.5s ease-in-out;
    z-index: 0;
    filter: blur(20px);
    transform: scale(1.1);
}

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

.hero-slider-slide.loaded {
    filter: blur(0);
    transform: scale(1);
}

/* Равномерное затемнение для слайдов без градиента к низу */
.hero-slider-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2;
    pointer-events: none;
}

/* Индикаторы слайдера */
.hero-slider-indicators {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.hero-slider-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    outline: none;
}

.hero-slider-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.2);
}

.hero-slider-indicator.active {
    background: var(--accent);
    border-color: var(--accent);
    width: 32px;
    height: 6px;
    border-radius: 3px;
}

/* Убеждаемся, что контент поверх слайдов */
.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;
}

/* Отключение эффектов прикрепления и параллакса для секций на главной странице */
body:has(section#when-contact:not(.parallax-hero)) section {
    position: static !important;
    z-index: auto !important;
}

/* Отключаем 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;
}

/* Прозрачный фон для hero-секции на странице PROXITY */
body:has(section.proxity-dark-section) .section-hero {
    background-color: transparent !important;
    background-image: none !important;
    background: transparent !important;
}

/* Убираем псевдоэлемент ::before для hero-секции на странице PROXITY */
body:has(section.proxity-dark-section) .section-hero::before {
    display: none !important;
    content: none !important;
}

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

/* Графитовый фон со скругленными углами для competency-card на странице PROXITY */
body:has(section.proxity-dark-section) section.competency-card {
    background: var(--bg-surface) !important;
    background-color: var(--bg-surface) !important;
    border-radius: var(--radius-lg);
    margin: 24px;
    padding: 40px 0;
}

/* Акцентный фон для competency-card-accent на странице PROXITY */
body:has(section.proxity-dark-section) section.competency-card.competency-card-accent {
    background: var(--accent) !important;
    background-color: var(--accent) !important;
}

/* Стили для страницы PROXITY - прозрачные фоны для градиента body */
.proxity-first-section {
    background: transparent !important;
}

.proxity-alt-section {
    background: transparent !important;
}

.proxity-dark-section {
    background: transparent !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: transparent !important;
    color: var(--text-white) !important;
    border: 1px solid #FFFFFF !important;
}

/* Белая обводка и белый текст для тегов в секциях компетенций */
body:has(.competency-card) .two-col .tags-list .tag {
    background: transparent !important;
    color: var(--text-white) !important;
    border: 1px solid #FFFFFF !important;
}

/* Прозрачный фон для секции команды на странице команды, чтобы был виден градиентный фон body */
section#team-grid {
    background: transparent !important;
}

/* Прозрачный фон для hero-секции на странице команды */
body:has(section#team-grid) .section-hero {
    background-color: transparent !important;
    background-image: none !important;
}

/* Прозрачный фон для всех секций на странице команды, кроме футера */
body:has(section#team-grid) section:not(footer) {
    background-color: transparent !important;
    background: transparent !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;
}

/* Дополнительный верхний отступ для первой competency-card на главной странице */
body:has(section#who-we-are.competency-card) section.competency-card:first-of-type {
    margin-top: 120px;
}

/* Единый верхний отступ для всех competency-card секций на главной странице */
section#what-we-do.competency-card,
section#clients.competency-card,
section#infrastructure.competency-card {
    margin-top: 8px;
    margin-bottom: 24px;
    padding-top: 48px;
    padding-bottom: 40px;
}

/* Единый верхний отступ для секции "Кто мы" */
section#who-we-are.competency-card {
    padding-top: 48px;
    padding-bottom: 40px;
}

/* Гармоничные отступы для остальных секций на главной странице */
body:has(section#when-contact:not(.parallax-hero)) section:not(.section-hero):not(.competency-card):not(footer) {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Уменьшенные отступы для секции "Когда к нам обращаются" */
body:has(section#when-contact:not(.parallax-hero)) section#when-contact:not(.competency-card) {
    padding-top: 48px;
    padding-bottom: 60px;
}

/* Акцентный фон для секции "Запросы инвесторов" */
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;
    }
}

/* Ограничение ширины фона для секций competency-card на странице компетенций на больших экранах */
/* Ограничение касается только фона, контент остается на всю ширину */
@media (min-width: 1025px) {
    body:has(.competency-card):not(: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;
    }
}


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

/* Стили для буллитов в секциях компетенций */
.competency-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 120px;
}

/* Больший отступ для буллитов в секции "Инвестиционная аналитика и моделирование" */
section.competency-card .competency-bullets {
    padding-top: 180px;
}

/* Меньший отступ для буллитов в секции "Структурирование сделок" (без competency-card) */
section:not(.competency-card) .competency-bullets {
    padding-top: 60px;
}

.competency-bullets li {
    position: relative;
    padding-left: 32px;
    color: var(--text-white);
    font-size: 1.125rem;
    line-height: 1.6;
}

.competency-bullets li::before {
    content: '‹';
    position: absolute;
    left: 0;
    top: 0.5em;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    transform: translateY(-50%);
}

/* Убираем верхний отступ у списка с буллитами на мобильных */
@media (max-width: 768px) {
    .competency-bullets {
        padding-top: 0 !important;
    }
    
    section.competency-card .competency-bullets {
        padding-top: 0 !important;
    }
    
    section:not(.competency-card) .competency-bullets {
        padding-top: 0 !important;
    }
    
    /* Убираем верхний отступ у тегов в секциях компетенций на мобильных */
    .two-col .tags-list[style*="padding-top: 120px"] {
        padding-top: 0 !important;
    }
}

/* Компактные стили для секции команды - 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-desc p {
    margin: 0 0 8px;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

section#team-grid .person-desc p:last-child {
    margin-bottom: 0;
}

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;
}

/* Прозрачный фон для hero-секции на странице контактов */
body:has(section#contact-section) .section-hero {
    background-color: transparent !important;
    background-image: none !important;
}

/* Убираем sticky позиционирование для hero-секции на странице контактов */
/* Отключение sticky для секции на странице контактов на всех экранах */
body:has(section#contact-section) .section-hero.parallax-hero,
body:has(section#contact-section) section.parallax-hero {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    margin-bottom: 0 !important;
}

/* Отключение sticky для всех parallax-hero секций на планшетах и мобильных */
@media (max-width: 1024px) {
    section.parallax-hero,
    .section-hero.parallax-hero {
        position: static !important;
        z-index: auto !important;
    }
    
    section.parallax-hero + section {
        position: static !important;
        z-index: auto !important;
    }
}

/* Прозрачный фон для всех секций на странице контактов, кроме футера */
body:has(section#contact-section) section:not(footer) {
    background-color: transparent !important;
    background: transparent !important;
}

/* Переопределение фона для секции контактов на странице контактов */
section#contact-section {
    background: transparent !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-slider - такие же как в competency-card */
.hero-slider .container {
    padding: 0 40px;
}

.hero-slider .hero-grid {
    margin-top: 0;
    padding: 0;
}

.hero-slider .hero-content {
    padding: 0;
}

.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;
}

/* Обертка для слайдера кейсов */
.cases-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    overflow: visible;
}

/* Горизонтальная прокрутка для кейсов на всех устройствах */
section#cases .cases-slider {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding-bottom: 8px;
    padding-top: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    scroll-behavior: smooth;
    width: 100%;
}

section#cases .cases-slider::-webkit-scrollbar {
    display: none;
}

section#cases .cases-slider > * {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
    scroll-snap-align: start;
    position: relative;
}

section#cases .cases-slider > *:hover {
    z-index: 20;
}

/* Кнопки навигации слайдера */
.cases-slider-nav {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.cases-slider-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.cases-slider-nav:active {
    transform: scale(0.95);
}

.cases-slider-nav svg {
    width: 20px;
    height: 20px;
}

.cases-slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Индикаторы точек */
.cases-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding: 8px 0;
}

.cases-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0;
    outline: none;
}

.cases-slider-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cases-slider-dot:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.2);
}

.cases-slider-dot:hover::before {
    transform: translate(-50%, -50%) scale(1.5);
}

.cases-slider-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    width: 32px;
    height: 6px;
    border-radius: 3px;
    transform: scale(1);
}

.cases-slider-dot.active::before {
    display: none;
}

.cases-slider-dot.active:hover {
    transform: scale(1.05);
    background: var(--accent-light);
    border-color: var(--accent-light);
}

/* На мобильных устройствах кейсы занимают больше места */
@media (max-width: 768px) {
    section#cases .cases-slider > * {
        flex: 0 0 85%;
        max-width: 85%;
    }
    
    .cases-slider-nav {
        display: none;
    }
}

.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);
}

/* Стили для блоков в секции infrastructure */
section#infrastructure .grid-4 .card.card-light {
    background: var(--bg-surface) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

section#infrastructure .grid-4 .card.card-light .stat-value {
    color: var(--accent) !important;
}

section#infrastructure .grid-4 .card.card-light .stat-label {
    color: var(--text-white) !important;
}

/* 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);
    z-index: 10;
    position: relative;
}

.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: 52px;
}

.case-accent {
    position: absolute;
    left: 24px;
    top: 32px;
    color: var(--accent);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    transform: translateY(-3px);
}

.case-accent::before {
    content: '‹';
}

.case-accent::after {
    display: none;
}

/* Стили для карточек кейсов в секции #cases */
section#cases .case-card.card-light {
    background: var(--bg-surface) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

section#cases .case-card.card-light .card-title {
    color: var(--text-white) !important;
}

section#cases .case-card.card-light p {
    color: var(--text-muted) !important;
}

/* Номера карточек */
.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;
}

.object-spec-list {
    margin: 16px 0 0;
    padding-left: 20px;
    color: var(--text-white);
}

.object-spec-list li {
    margin-bottom: 8px;
}

.objects-page .object-specs {
    gap: 12px;
}

.objects-page .object-spec {
    margin-bottom: 12px;
}

.objects-page .object-spec-label {
    margin-bottom: 6px;
    font-size: 0.7rem;
}

.objects-page .object-spec-list {
    margin-top: 10px;
    padding-left: 18px;
}

.objects-page .object-spec-list li {
    margin-bottom: 6px;
    line-height: 1.4;
}

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

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

/* Стили для секции "Что мы делаем" */
section#what-we-do .two-col {
    grid-template-columns: 0.9fr 1.1fr;
}

section#what-we-do .what-we-do-left {
    position: sticky;
    top: 120px;
    align-self: start;
}

section#what-we-do .what-we-do-left p {
    max-width: 400px;
}

section#what-we-do .what-we-do-algorithm {
    position: relative;
    padding-left: 0;
}

section#what-we-do .algorithm-step {
    position: relative;
    margin-bottom: 120px;
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

section#what-we-do .algorithm-step:last-child {
    margin-bottom: 0;
}

section#what-we-do .algorithm-number {
    font-size: 5rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    flex-shrink: 0;
    margin-top: -0.2em;
}

section#what-we-do .algorithm-content {
    flex: 1;
}

section#what-we-do .algorithm-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
}

section#what-we-do .algorithm-desc {
    font-size: 1.0625rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- 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.1em;
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

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

/* Стили для карточки в секции clients */
section#clients .card.card-light {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

section#clients .card.card-light .checklist li {
    color: var(--text-white) !important;
}

section#clients .card.card-light .checklist li::before {
    color: var(--text-white) !important;
}

/* --- 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;
    text-decoration: none !important;
}

.footer-logo:hover {
    text-decoration: none !important;
}

.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;
    text-decoration: none !important;
}

.footer-logo .logo-text-accent {
    font-size: 1.25rem;
    text-decoration: none !important;
}

.footer-logo:hover .logo-text {
    opacity: 1;
    text-decoration: none !important;
}

.footer-logo:hover .logo-text-accent {
    text-decoration: none !important;
}

.footer-links {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
    align-items: center;
}

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

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

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

.footer-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--accent);
    border-radius: 1px;
}

.footer-links .footer-cta {
    padding: 10px 18px;
    font-size: 0.75rem;
    letter-spacing: 0.4px;
}

.footer-links .footer-cta.button {
    color: var(--text-white);
}

.footer-links .footer-cta.button: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;
}

/* --- Objects Catalog & Detail Pages --- */
.objects-hero {
    padding-bottom: 40px;
}

/* --- Services Overview Page --- */
.services-overview-grid {
    margin-top: 28px;
}

.services-overview-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
}

.services-overview-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 28px;
}

.services-overview-card.card-light {
    background: transparent;
    border: none;
    box-shadow: none;
}

.services-overview-card.card-light:hover {
    background: transparent;
    border: none;
    box-shadow: none;
    transform: none;
}

.services-overview-card.card-light .card-title,
.services-overview-card.card-light h3 {
    color: var(--text-white);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 18px;
    position: relative;
    padding-top: 20px;
}

.services-overview-card.card-light .card-title::before,
.services-overview-card.card-light h3::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;
}

.services-overview-card.card-light p {
    margin: 0 0 20px;
    font-size: 1.125rem;
    color: var(--text-white);
    opacity: 1;
    line-height: 1.4;
    max-width: 920px;
}

.services-overview-actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 768px) {
    .services-overview-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .services-overview-actions .button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

.objects-hero .objects-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.objects-hero .objects-hero-content {
    max-width: 860px;
}

.objects-hero .objects-hero-cta {
    display: flex;
    justify-content: flex-end;
    flex: 1;
}

.objects-hero .objects-hero-cta .button {
    max-width: 360px;
    text-align: left;
    white-space: normal;
    font-weight: 300;
    font-size: 0.875rem;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.72);
}

.object-process {
    padding-top: 12px;
}

.object-process-inner {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.object-process-lead {
    max-width: 760px;
    color: var(--text-muted);
    margin-top: 8px;
}

.object-process-steps {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.object-process-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.object-process-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.object-process-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 4px;
}

.object-process-desc {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.object-detail-hero {
    padding-top: 170px;
}

.objects-page .object-detail-hero .hero-title {
    max-width: 980px;
}

.hero-spec {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    width: 100%;
    max-width: 520px;
}

.hero-spec-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
}

.hero-spec-value {
    font-size: 1.125rem;
    color: var(--text-white);
    font-weight: 600;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.breadcrumbs-link {
    color: var(--text-muted);
}

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

.breadcrumbs-current {
    color: var(--text-muted);
}

.objects-section {
    padding-top: 40px;
}

.objects-section-inner {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.objects-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) 1fr;
    gap: 40px;
    align-items: start;
}

.objects-filters {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.objects-filters-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-white);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    margin-bottom: 16px;
}

.objects-filters-toggle-icon {
    font-size: 1rem;
    line-height: 1;
}

.objects-filters-body {
    display: block;
}

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

.objects-filters .section-title {
    margin: 0;
    font-size: 1.125rem;
}

.objects-reset {
    padding: 10px 16px;
    font-size: 0.75rem;
}

.objects-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.objects-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    color: var(--text-light);
}

.objects-filter-remove {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.objects-filter-remove:hover {
    background: rgba(255, 255, 255, 0.2);
}

.filter-group {
    border: none;
    margin: 0 0 16px;
    padding: 0;
}

.filter-group legend {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: var(--text-light);
    font-size: 0.875rem;
}

.filter-option input {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    box-sizing: border-box;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: visible;
    padding-right: 0;
}

.filter-options .filter-option.is-collapsed-option {
    display: none;
}

.filter-options.is-expanded .filter-option.is-collapsed-option {
    display: flex;
}

.filter-options-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.6875rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.filter-options-toggle:hover {
    color: var(--accent);
}

.filter-options-toggle:focus-visible {
    outline: 1px solid rgba(167, 139, 250, 0.6);
    outline-offset: 2px;
    border-radius: 4px;
}

.filter-options-toggle-icon {
    font-size: 0.875rem;
    line-height: 1;
    transform-origin: 50% 45%;
    transition: transform var(--transition);
}

.filter-options-toggle[aria-expanded="true"] .filter-options-toggle-icon {
    transform: rotate(180deg);
}

.filter-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.filter-input-wrap {
    position: relative;
}

.filter-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-white);
    font-family: var(--font-main);
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.2px;
    transition: var(--transition);
}

.filter-input-masked {
    color: transparent;
    caret-color: var(--text-white);
}

.filter-input-masked::placeholder {
    color: transparent;
}

.filter-input-display {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: var(--text-white);
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.2px;
    pointer-events: none;
}

.filter-input::placeholder {
    color: var(--text-muted);
}

.filter-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.objects-results {
    min-height: 300px;
}

.objects-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
}

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

.objects-count {
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.objects-loading {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.objects-empty {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
}

.objects-list {
    display: grid;
    gap: 20px;
}

/* --- Print Page --- */
.print-page {
    background: #f5f5f5;
    color: #1f1f1f;
}

.print-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 84px 24px 72px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.print-actions-bar {
    position: fixed;
    top: 16px;
    right: 24px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.print-actions-bar .button {
    padding: 8px 14px;
    font-size: 0.75rem;
    letter-spacing: 0.4px;
    color: #2f2f33;
    border-color: #2f2f33;
    background: #f7f7f7;
}

.print-header {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    padding: 24px 28px;
    margin-top: 28px;
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

.print-header-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.print-header-aside-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    align-self: center;
}

.print-header-aside-wrap .print-filters {
    justify-content: flex-end;
    max-width: 460px;
}


.print-header-aside {
    background: #f1f1f4;
    color: #2f2f33;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.85rem;
}

.print-header-aside-title {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2f2f33;
}

.print-header-aside-text {
    color: #4b4b50;
    line-height: 1.4;
}

.print-header-aside-contacts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #3f3f44;
}

.print-header-aside-contacts a {
    color: inherit;
    text-decoration: none;
}

.print-brand {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #7c7c7c;
}

.print-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 6px;
    color: #1f1f1f;
}

.print-subtitle {
    margin-top: 2px;
    color: #6e6e6e;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.print-subtitle [data-print-date] {
    font-size: 0.85rem;
    line-height: 1.2;
}

.print-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* --- Object Print Page --- */
.object-print-page {
    background: #f7f7f8;
    color: #1f1f1f;
}

.object-print-topbar {
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 16px;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    color: #1f1f1f;
    margin-bottom: 16px;
}

.object-print-topbar-logo {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1f1f1f;
    font-weight: 700;
}

.object-print-topbar-text {
    font-size: 0.85rem;
    color: #3f3f44;
}

/* Print: move confidentiality line above object title (in hero) */
.object-print-page .object-print-topbar-text {
    display: none;
}

.object-print-page .object-print-topbar {
    padding: 0;
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-white);
    overflow: hidden;
}

.object-print-page .object-print-topbar-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 16px 48px;
    background-color: #202026;
    background: radial-gradient(140% 220% at 18% 12%, #4a4a52 0%, #34343c 18%, #24242b 40%, #19191e 66%, #0f0f12 100%),
                radial-gradient(120% 220% at 85% 0%, rgba(163,22,33,0.28) 0%, rgba(163,22,33,0.10) 30%, rgba(163,22,33,0) 60%),
                linear-gradient(135deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 38%, rgba(255,255,255,0.05) 72%, rgba(163,22,33,0.18) 100%) !important;
    background-size: 200% 200%;
    background-position: 32% 18%;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px 22px;
}

.object-print-page .object-print-topbar-tagline {
    font-size: 0.8rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.85);
    text-align: right;
    max-width: 280px;
}

.object-print-page .object-print-topbar-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-self: center;
}

.object-print-page .object-print-topbar-logo {
    font-size: 1.35rem;
    line-height: 1.1;
}

.object-print-page .logo-quotes {
    transform: translateY(-7px);
}

/* Reusable print format for all private object briefs */
.private-object-print-page .object-print-topbar {
    padding: 0;
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-white);
    overflow: hidden;
}

.private-object-print-page .object-print-topbar-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 16px 48px;
    background-color: #202026;
    background: radial-gradient(140% 220% at 18% 12%, #4a4a52 0%, #34343c 18%, #24242b 40%, #19191e 66%, #0f0f12 100%),
                radial-gradient(120% 220% at 85% 0%, rgba(163,22,33,0.28) 0%, rgba(163,22,33,0.10) 30%, rgba(163,22,33,0) 60%),
                linear-gradient(135deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 38%, rgba(255,255,255,0.05) 72%, rgba(163,22,33,0.18) 100%) !important;
    background-size: 200% 200%;
    background-position: 32% 18%;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px 22px;
}

.private-object-print-page .object-print-topbar-tagline {
    font-size: 0.8rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.85);
    text-align: right;
    max-width: 280px;
}

.private-object-print-page .object-print-topbar-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-self: center;
}

.private-object-print-page .object-print-topbar-logo {
    font-size: 1.35rem;
    line-height: 1.1;
}

.private-object-print-page .object-print-topbar-subtitle {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.1;
}

.private-object-print-page .logo-quotes {
    transform: translateY(-7px);
}

.private-object-print-page .object-print-topbar-contacts {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    text-align: right;
    font-size: 0.74rem;
    line-height: 1.15;
    align-self: stretch;
    color: rgba(255, 255, 255, 0.85);
}

.private-object-print-page .object-print-topbar-contacts a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
}

.private-object-print-page .object-print-topbar-qr {
    align-self: stretch;
    display: flex;
    align-items: stretch;
}

.private-object-print-page .object-print-topbar-qr img {
    height: 100%;
    width: auto;
    aspect-ratio: 1 / 1;
    display: block;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    max-height: 56px;
}

.object-print-page .object-print-confidential-note {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #6e6e6e;
    margin: 0 0 26px 0;
}

.object-print-topbar-contacts {
    font-size: 0.8rem;
    color: #2f2f33;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.object-print-topbar-contacts a {
    color: inherit;
    text-decoration: none;
}

.object-print-page .object-print-content {
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #1f1f1f;
}


.object-print-page .object-detail,
.object-print-page .object-detail * {
    color: #1f1f1f !important;
}

.object-print-page .object-detail .section-title {
    font-size: 1.35rem !important;
    line-height: 1.15 !important;
    margin-top: 18px !important;
    margin-bottom: 10px !important;
}

.object-print-page .object-detail-inner {
    background: #ffffff !important;
}

.object-print-page .object-detail {
    padding-top: 12px !important;
    margin-top: 0 !important;
}

.object-print-page .object-specs {
    background: #ffffff !important;
}

.object-print-page .object-detail-aside {
    width: 100%;
    position: static !important;
    top: auto !important;
    align-self: stretch;
}

.object-print-page .object-spec-label {
    font-weight: 700 !important;
}

@media (max-width: 1024px) {
    .object-print-page .object-specs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 12px;
    }

    .object-print-page .object-spec {
        margin-bottom: 0;
        padding-bottom: 8px;
    }
}

.object-print-page .object-cta-card {
    background: #ffffff !important;
}

.object-print-page .objects-hero,
.object-print-page .section-hero {
    background: #ffffff !important;
}

.object-print-page .objects-hero,
.object-print-page .objects-hero * {
    color: #1f1f1f !important;
}

.object-print-page .section-hero,
.object-print-page .section-hero * {
    color: #1f1f1f !important;
}

.object-print-page .section-hero .fade-in-up,
.object-print-page .section-hero .fade-in-up * {
    color: #1f1f1f !important;
}

.object-print-page .section-hero .fade-in-up {
    font-size: 0.45rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    max-height: 24px;
    overflow: hidden;
}

.object-print-page .section-hero {
    padding-top: 28px !important;
    padding-bottom: 14px !important;
    min-height: auto !important;
}

.object-print-page .section-hero .container {
    max-width: none !important;
}

.object-print-page .object-detail-hero {
    padding-top: 28px !important;
}

.object-print-page .hero-title {
    font-size: 1rem !important;
    line-height: 1.15 !important;
}

.object-print-page .hero-spec {
    margin-top: 2px !important;
    max-width: none !important;
}

.object-print-page .hero-spec-value {
    font-size: 0.9rem !important;
}

.object-print-hero-meta {
    margin-top: 8px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    display: grid;
    gap: 4px;
    width: 100%;
    max-width: none;
    display: block;
    color: #1f1f1f !important;
}

.object-print-hero-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1f1f1f !important;
    line-height: 1.1;
}

.object-print-page .object-print-hero-title {
    max-width: 720px;
}

.object-print-hero-price {
    font-size: 0.9rem;
    color: #2f2f33 !important;
    margin-top: 18px;
}

.object-print-link-label {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #8a8a8a;
    margin-bottom: 2px;
}


.object-print-link-card {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    background: #f3f3f5;
    display: grid;
    gap: 6px;
    max-width: 360px;
    color: #1f1f1f;
}

.object-print-link-card-footer {
    margin-top: 16px;
}

/* Print-only: full width + compact QR on the right */
.object-print-page .object-print-link-card {
    max-width: none;
    width: 100%;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "label qr"
        "url qr";
    align-items: center;
    column-gap: 14px;
    row-gap: 4px;
    padding: 10px 12px;
}

.object-print-page .object-print-link-label {
    grid-area: label;
    margin-bottom: 0;
}

.object-print-page .object-print-link-url {
    grid-area: url;
    font-size: 0.72rem;
}

.object-print-page .object-print-link-card img {
    grid-area: qr;
    width: 56px;
    height: 56px;
    justify-self: end;
}

.object-print-link-card img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
}

.object-print-link-url {
    color: #1f1f1f;
    word-break: break-all;
    font-size: 0.75rem;
    text-decoration: underline;
}

@media print {
    .object-print-content {
        border: none;
        padding: 0;
    }

    /* Ensure right border is not clipped in print/PDF */
    .object-print-page .object-print-topbar,
    .object-print-page .object-print-link-card,
    .object-print-page .print-card,
    .object-print-page .print-services-card {
        outline: 1px solid #dcdcdc;
        outline-offset: -1px;
    }

    /* Content block: use inset shadow to avoid clipped right edge */
    .object-print-page .object-print-content {
        outline: none;
        box-shadow: inset 0 0 0 1px #dcdcdc;
    }

    .object-print-link-card {
        border: 1px solid #dcdcdc;
        background: #f3f3f3;
        color: #2f2f33;
    }

    .object-print-link-url {
        color: #2f2f33;
    }

    .object-print-link-card img {
        border-color: #dcdcdc;
    }
}


.print-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.print-filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #e3e3e3;
    background: #f7f7f7;
    font-size: 0.75rem;
    color: #5c5c5c;
}

.print-sheet {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 18px;
    padding: 24px;
    page-break-after: always;
    break-after: page;
}

.print-sheet:last-child {
    page-break-after: auto;
    break-after: auto;
}

.print-type {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6e6e6e;
    margin-bottom: 18px;
}

.print-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.print-card {
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    break-inside: avoid;
}

.print-card-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.print-card-location {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #7c7c7c;
}

.print-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.25;
    margin-top: 6px;
    color: #1f1f1f;
    max-width: 520px;
}

.print-card-price {
    font-size: 1rem;
    font-weight: 400;
    color: #2b2b2b;
    white-space: nowrap;
    margin-top: 18px;
}

.print-card-lead {
    color: #4f4f4f;
    font-size: 0.92rem;
    line-height: 1.4;
    margin: 0;
}

.print-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    font-size: 0.85rem;
    color: #6a6a6a;
}

.print-card-meta span {
    display: block;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.6px;
    color: #8a8a8a;
    margin-bottom: 4px;
}

.print-card-meta strong {
    font-weight: 600;
    color: #2d2d2d;
}

.print-card-footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #ededed;
}

.print-card-qr {
    grid-column: 1;
}

.print-card-link {
    grid-column: 2;
}

.print-card-qr img {
    width: 72px;
    height: 72px;
    display: block;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
}

.print-card-link {
    font-size: 0.85rem;
    color: #4a4a4a;
    word-break: break-all;
}

.print-card-id {
    grid-column: 3;
    justify-self: end;
    text-align: right;
}

.print-card-id span {
    display: block;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.6px;
    color: #8a8a8a;
    margin-bottom: 4px;
}

.print-card-id strong {
    font-weight: 600;
    color: #2d2d2d;
}

.print-card-link-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #8a8a8a;
    margin-bottom: 6px;
}

.print-card-link a {
    color: #4a4a4a;
    text-decoration: underline;
}

.print-empty {
    text-align: center;
    padding: 48px;
    background: #ffffff;
    border: 1px dashed #d6d6d6;
    border-radius: 16px;
    color: #6e6e6e;
}

.object-print-page .print-services {
    margin-top: 48px;
    padding-top: 14px;
    border-top: none;
}

.object-print-page .print-services .section-title {
    color: #1f1f1f !important;
    font-size: 1.15rem !important;
    line-height: 1.15 !important;
    margin: 0 0 22px !important;
}

.object-print-page .print-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
    gap: 10px 14px;
}

.object-print-page .print-services-card {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px 14px;
    break-inside: avoid;
}

.object-print-page .print-services-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1f1f1f;
}

.object-print-page .print-services-desc {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.35;
    color: #4f4f4f;
}

.object-print-page .print-services-footer {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: end;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #ffffff;
    padding: 10px 12px;
}

.object-print-page .print-services-footer-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #8a8a8a;
    margin-bottom: 8px;
}

.object-print-page .print-services-footer-contacts {
    font-size: 0.82rem;
    line-height: 1.2;
    color: #1f1f1f;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.object-print-page .print-services-footer-contacts a {
    color: #1f1f1f;
    text-decoration: none;
}

.object-print-page .print-services-footer-qr img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    border: 1px solid #e2e2e2;
    background: #ffffff;
}

@media (max-width: 720px) {
    .object-print-page .print-services-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .object-print-page .print-services-card {
        padding: 10px 12px;
        border-radius: 10px;
    }

    .object-print-page .print-services-title {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

    .object-print-page .print-services-desc {
        font-size: 0.78rem;
        line-height: 1.3;
    }

    .object-print-page .print-services-footer {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .object-print-page .print-services-footer-qr {
        margin-top: 10px;
    }
}

@media print {
    body.print-page {
        background: #ffffff;
    }

    /* Print the 3-dot decoration before each section title reliably */
    .object-print-page h2.section-title {
        padding-top: 0 !important;
    }

    .object-print-page h2.section-title::before {
        content: '···';
        position: static;
        display: block;
        width: auto;
        height: auto;
        background-image: none;
        margin: 0 0 10px;
        font-size: 14px;
        line-height: 1;
        letter-spacing: 6px;
        color: var(--accent);
    }

    /* Always move services block to a dedicated final page */
    .object-print-page .print-services {
        break-before: page;
        page-break-before: always;
        break-inside: avoid-page;
        page-break-inside: avoid;
        margin-top: 0;
        padding-top: 0;
    }

    /* Keep services section on one page (compact print layout) */
    .object-print-page .print-services .section-title {
        font-size: 1.05rem !important;
        margin: 0 0 14px !important;
    }

    .object-print-page .print-services-grid {
        gap: 8px 10px;
    }

    .object-print-page .print-services-card {
        padding: 9px 10px;
        border-radius: 10px;
    }

    .object-print-page .print-services-title {
        font-size: 0.82rem;
        margin: 0 0 4px;
    }

    .object-print-page .print-services-desc {
        font-size: 0.75rem;
        line-height: 1.25;
    }

    .object-print-page .print-services-footer {
        margin-top: 14px;
        gap: 10px;
        padding: 8px 10px;
    }

    .object-print-page .print-services-footer-contacts {
        font-size: 0.76rem;
        line-height: 1.25;
    }

    .object-print-page .print-services-footer-qr img {
        width: 56px;
        height: 56px;
    }

    .print-layout {
        width: 100%;
        margin: 0;
        max-width: none;
        box-sizing: border-box;
        /* Keep borders/outlines inside printable area */
        padding: 0 2mm;
    }

    .print-header {
        border: none;
        padding: 0 0 16px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .print-header-aside {
        border: 1px solid #dcdcdc;
        background: #f3f3f3;
        color: #2f2f33;
    }

    .print-header-aside-title {
        color: #2f2f33;
    }

    .print-header-aside-text,
    .print-header-aside-contacts {
        color: #3f3f44;
    }

    .print-actions-bar {
        display: none;
    }

    .object-print-content {
        border: none;
        padding: 0;
    }

    .object-print-qr img {
        width: 80px;
        height: 80px;
    }

    .print-sheet {
        border: none;
        padding: 0 0 12px;
    }

    .print-card {
        border: 1px solid #dcdcdc;
    }

    @page {
        size: A4;
        margin: 12mm;
    }

    /* Page numbers (supported in some print engines/browsers) */
    @page {
        @bottom-center {
            content: "Стр. " counter(page) " из " counter(pages);
            font-size: 10px;
            color: #6e6e6e;
        }
    }
}

.object-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: var(--transition);
}

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

.object-card:focus,
.object-card:focus-within {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(163, 22, 33, 0.2);
}

.object-card-title {
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 12px;
    font-weight: 600;
}

.object-card-lead {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.45;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.object-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    margin-bottom: 20px;
}

.object-card-meta span {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.object-card-meta strong {
    display: block;
    color: var(--text-white);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-top: 4px;
}

.object-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.object-card .button {
    padding: 12px 20px;
    font-size: 0.75rem;
}

.object-card-actions .button.outline {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-white);
}

.object-card-actions .button.outline:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    color: var(--text-white);
}

.object-card-price {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-white);
}

.object-card-topline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.object-card-location {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    margin-bottom: 0;
}

.object-card-id {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.object-card-id-label {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
}

.object-card-id-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
}

.object-detail {
    padding-top: 40px;
    padding-bottom: 16px;
    background: transparent;
}

.object-detail-inner {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.object-detail-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}

.object-detail-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--header-height) + 24px);
    align-self: start;
}

.object-specs {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: static;
}

.object-spec {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}

.object-specs-cta {
    margin-top: 0;
}

.object-specs-cta .button {
    width: 100%;
    text-align: left;
    white-space: normal;
    font-size: 0.8125rem;
    font-weight: 200;
    letter-spacing: 0.25px;
}

.object-print-cta {
    margin-top: 16px;
}

.object-print-cta .button {
    width: 100%;
}

.object-spec:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.object-spec-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 0.75rem;
}

.object-spec-value {
    color: var(--text-white);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-top: 6px;
    display: block;
}

.object-description .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.object-description p + .section-title {
    margin-top: 28px;
}

.object-description p {
    color: var(--text-muted);
    font-size: 1rem;
}

.object-description .object-description-paragraph {
    margin-bottom: 10px;
}

.object-description .object-description-paragraph:last-of-type {
    margin-bottom: 16px;
}

.object-cta {
    padding-top: 16px;
    display: flex;
    justify-content: flex-start;
}

.object-cta-card {
    margin-top: 16px;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 24px;
    max-width: none;
    width: 100%;
}

.object-cta-title {
    font-size: 1.25rem;
    color: var(--text-white);
}

.object-cta-note {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.object-cta-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.object-cta-manager {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.object-cta-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.object-cta-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.object-cta-person {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.object-cta-name {
    color: var(--text-white);
    font-weight: 600;
}

.object-cta-role {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* --- 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;
}

/* Увеличиваем ширину блока описания в hero-секции на странице команды */
section.section-hero.parallax-hero .fade-in-up[style*="max-width: 900px"],
body:has(section.section-hero.parallax-hero h1:contains("Команда")) .fade-in-up {
    max-width: 900px !important;
}

.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;
    }
    
    /* Адаптация меню после скролла на мобильных - позиция и размеры не меняются, только фон */
    .header {
        top: 12px;
    }
    
    .header.scrolled::before {
        top: 0;
        left: 16px;
        right: 16px;
        transform: none;
        width: calc(100% - 32px);
        max-width: none;
        height: 100%;
        border-radius: var(--radius-md);
    }
    
    /* Убеждаемся, что секции с закругленными углами имеют правильный 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;
    }
    
    /* Двухколоночный grid в секции #when-contact становится одноколоночным на мобильных */
    section#when-contact .fade-in-up[style*="grid"] {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    
    /* Убираем верхний отступ у proxy-structure на мобильных */
    section#when-contact .proxy-structure {
        padding-top: 0 !important;
    }
    
    /* На узких мобильных - сначала текст, потом картинка */
    .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;
    }
    
    /* Список с буллитами после текста на мобильных */
    .two-col > div:has(.competency-bullets) {
        order: 2;
    }
    
    /* Теги после текста на мобильных */
    .two-col > div:has(.tags-list) {
        order: 2;
    }
    
    /* Порядок элементов в секции "Что мы делаем" на мобильных */
    section#what-we-do .two-col {
        display: flex;
        flex-direction: column;
    }
    
    section#what-we-do .what-we-do-left {
        position: static;
        order: 1;
    }
    
    section#what-we-do .what-we-do-algorithm {
        order: 2;
    }
    
    section#what-we-do .algorithm-step {
        margin-bottom: 60px;
        flex-direction: row;
        align-items: flex-start;
    }
    
    section#what-we-do .algorithm-number {
        font-size: 4rem;
    }
    
    /* Кнопки 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 calc(50% - 8px);
        max-width: calc(50% - 8px);
        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: 16px;
        padding-bottom: 24px;
        margin-bottom: 24px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    /* Prevent footer services dropdown overflow on mobile (inherits min-width: 520px) */
    .footer-dropdown-menu {
        min-width: 100% !important;
        max-width: calc(100vw - 32px);
        left: 50% !important;
        right: auto;
        transform: translateX(-50%);
    }

    /* Prevent cases slider overflow propagating to page */
    .cases-slider-wrapper {
        overflow-x: hidden;
    }

    .footer-links a {
        font-size: 0.75rem;
    }

    .footer-contact-item h4 {
        font-size: 0.625rem;
        letter-spacing: 1px;
        margin-bottom: 6px;
    }

    .footer-contact-item p {
        font-size: 0.875rem;
    }

    footer {
        padding: 40px 0 24px;
    }

    .footer-copy {
        margin-top: 24px;
        padding-top: 20px;
        font-size: 0.75rem;
    }
    
    .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;
    }
}

/* Keep detail aside sticky on desktop/tablet */
@media (min-width: 769px) {
    .object-detail-aside {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: calc(var(--header-height) + 24px) !important;
        align-self: start;
    }
}

@media (max-width: 480px) {
    /* Grid-2 по 1 в ряд на узких мобильных */
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    /* Grid-3 по 2 в ряд на узких мобильных */
    section#assets .grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    
    /* Уменьшенный шрифт для карточек в секции assets на узких мобильных */
    section#assets .card {
        padding: 20px 16px !important;
    }
    
    section#assets .card .card-title {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
    }
    
    /* 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;
    }
    
    /* Grid-3 в секции competency-card (Безопасность) по 1 в ряд на узких мобильных */
    section.competency-card .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    /* На узких мобильных показываем 1 кейс */
    section#cases .grid-3 > * {
        flex: 0 0 85% !important;
        max-width: 85% !important;
    }
    
    /* Компактный текстовый блок в секции #when-contact на узких мобильных */
    section#when-contact .fade-in-up[style*="grid"] > div:first-child {
        padding-right: 0 !important;
    }
    
    section#when-contact .fade-in-up[style*="grid"] > div:first-child p {
        font-size: 0.9375rem !important;
        line-height: 1.5 !important;
        margin-bottom: 16px !important;
    }
    
    section#when-contact .fade-in-up[style*="grid"] > div:first-child h2 {
        margin-bottom: 16px !important;
        font-size: 1.5rem !important;
    }
    
    /* На узких мобильных текст наезжает на цифры в алгоритме */
    section#what-we-do .algorithm-step {
        gap: 8px !important;
        padding-left: 0 !important;
    }
    
    section#what-we-do .algorithm-number {
        font-size: 2.4rem !important;
        margin: 0 !important;
        min-width: 2.2rem;
        text-align: center;
        line-height: 1;
        opacity: 0.6;
    }
    
    section#what-we-do .algorithm-content {
        flex: 1;
        margin-left: 0 !important;
        padding-left: 0 !important;
        min-width: 0;
        z-index: 1;
        position: relative;
    }
    
    .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%;
    width: 100%;
}

/* Центрирование только блока proxy-structure в секции #when-contact */
section#when-contact .proxy-structure {
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    gap: 12px;
    padding: 0;
    margin-top: 0;
    align-self: start;
    padding-top: 80px;
}

/* Вертикальные коннекторы для proxy-structure в секции #when-contact */
section#when-contact .proxy-structure-connector {
    transform: rotate(90deg);
}

/* Компактные размеры для элементов proxy-structure в секции #when-contact */
section#when-contact .proxy-structure-item {
    padding: 20px 16px;
    max-width: 240px;
    min-width: auto;
    flex: none;
}

section#when-contact .proxy-structure-center {
    padding: 12px 24px;
    min-width: auto;
}

section#when-contact .proxy-structure-connector svg {
    width: 24px;
    height: 24px;
}

.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;
    }
}

/* Кнопка "Наверх" */
.scroll-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 12px rgba(163, 22, 33, 0.3);
}

.scroll-to-top.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--accent-light);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(163, 22, 33, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 32px;
    left: 32px;
    max-width: 360px;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: none;
}

.cookie-notice.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.cookie-notice-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-notice-text {
    color: var(--text-white);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-notice-button {
    padding: 10px 20px;
    background: var(--accent);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    align-self: flex-start;
}

.cookie-notice-button:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cookie-notice {
        bottom: 24px;
        left: 24px;
        right: 24px;
        max-width: none;
        padding: 16px;
    }
    
    .cookie-notice-button {
        width: 100%;
        align-self: stretch;
    }
}

@media (max-width: 1024px) {
    .objects-layout {
        grid-template-columns: 1fr;
    }

    .objects-filters {
        position: static;
    }

    .object-detail-grid {
        grid-template-columns: 1fr;
    }

    .object-detail-aside {
        position: static;
        top: auto;
    }

    .object-specs {
        position: static;
        top: auto;
    }
}

@media (max-width: 768px) {
    .objects-hero {
        padding-bottom: 24px;
    }

    .objects-hero .objects-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .objects-hero .objects-hero-cta {
        width: 100%;
        justify-content: flex-start;
    }

    .objects-hero .objects-hero-cta .button {
        width: 100%;
        max-width: none;
    }

    .object-detail-aside {
        position: static;
        top: auto;
    }

    .object-detail {
        padding-top: 24px;
        padding-bottom: 12px;
    }

    .object-detail-inner {
        padding: 20px;
    }

    .object-detail-grid {
        gap: 20px;
    }

    .object-specs {
        padding: 10px 12px;
        border-radius: var(--radius-md);
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        align-self: stretch;
    }

    .object-spec {
        padding-bottom: 8px;
        margin-bottom: 8px;
    }

    .object-specs-cta {
        margin-top: 12px;
    }

    .object-specs-cta .button {
        padding: 12px 16px;
    }

    .object-detail-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .object-detail-aside {
        display: contents;
    }

    .object-specs {
        order: 1;
    }

    .object-description {
        order: 2;
    }

    .object-detail .object-print-cta {
        display: block;
        order: 3;
        margin-top: 0;
        width: 100%;
        align-self: stretch;
    }

    .object-detail .object-print-cta .button {
        display: flex;
        width: 100% !important;
        min-width: 100%;
    }

    .object-spec-label {
        letter-spacing: 0.25px;
        line-height: 1.2;
    }

    .object-spec-value {
        margin-top: 4px;
        line-height: 1.25;
    }

    .object-description .section-title {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }

    .object-description p + .section-title {
        margin-top: 20px;
    }

    .object-description p {
        font-size: 0.9375rem;
        line-height: 1.55;
        margin-bottom: 16px;
    }

    .object-description .object-description-paragraph {
        margin-bottom: 8px;
    }

    .object-process-inner {
        padding: 20px;
    }

    .object-process-step {
        gap: 12px;
    }

    .object-process-number {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .object-process-lead {
        margin-top: 6px;
        font-size: 0.9375rem;
        line-height: 1.45;
    }

    .object-process-steps {
        gap: 12px;
        margin-top: 16px;
    }

    .object-process-title {
        font-size: 0.9375rem;
    }

    .object-process-desc {
        font-size: 0.9375rem;
        line-height: 1.45;
    }

    .objects-filters-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .objects-section-inner {
        padding: 20px;
        border-radius: var(--radius-md);
    }

    .object-detail-inner {
        padding: 20px;
        border-radius: var(--radius-md);
    }

    .objects-filters-toggle {
        display: flex;
    }

    .objects-filters-body {
        display: none;
    }

    .objects-filters.is-open .objects-filters-body {
        display: block;
    }

    .objects-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .object-card-title {
        font-size: 1.25rem;
    }

    .object-card-lead {
        -webkit-line-clamp: 3;
        margin-bottom: 10px;
    }

    .object-card-price {
        font-size: 1.25rem;
    }

    .object-card-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .object-card-actions .button {
        width: 100%;
    }

    .object-cta-card {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 16px;
    }

    .object-cta-manager {
        border-left: none;
        padding-left: 0;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .object-cta-title {
        font-size: 1.0625rem;
    }

    .object-cta-note {
        font-size: 0.8125rem;
    }

    .object-cta-content {
        gap: 12px;
    }

    .object-cta-avatar {
        width: 44px;
        height: 44px;
    }

    .object-cta-name {
        font-size: 0.9375rem;
    }

    .object-cta-role {
        font-size: 0.8125rem;
    }

    .object-specs {
        position: static;
        top: auto;
    }

    .object-detail-hero {
        padding-top: 120px;
    }

    .object-detail-hero .hero-title {
        font-size: 2.16rem !important;
        line-height: 1.05 !important;
        letter-spacing: 0;
    }

    .breadcrumbs {
        flex-wrap: wrap;
        row-gap: 6px;
        font-size: 0.75rem;
        margin-bottom: 10px;
        gap: 6px;
    }

    .object-card-meta {
        grid-template-columns: 1fr;
    }
}
