/* =========================================
   ГЛАВНАЯ СТРАНИЦА (ЛЕНДИНГ)
   Единый стиль проекта: токены из global.css
   Поддержка 3 тем: dark (default), black (OLED), light
   ========================================= */

/* === ПЕРВЫЙ ЭКРАН (HERO) === */
.hero {
    max-width: 900px;
    margin-inline: auto;
    display: flex; flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 20px 20px 50px;
    position: relative;
    box-sizing: border-box;
    z-index: 1;
}
.hero > * { box-sizing: border-box; }

/* Верхняя строка: соцсети слева, лого+слоган справа */
.hero-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}
.hero-row-top { align-items: center; }
.hero-top-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.logo-main {
    width: clamp(80px, 18vw, 140px);
    height: auto; object-fit: contain;
    filter: drop-shadow(0 0 30px var(--accent-glow));
    animation: floatLogo 6s infinite ease-in-out;
}
@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hero-slogan {
    font-family: 'PT Sans Narrow';
    font-size: clamp(0.75rem, 2vw, 1rem);
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    text-align: right;
    max-width: 50vw;
}

.hero-socials {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}
.hero-socials a {
    color: var(--accent);
    font-family: 'PT Sans Narrow';
    text-decoration: none;
    font-weight: bold;
    border: 1px solid var(--accent);
    padding: 5px 12px;
    font-size: 0.85rem;
    transition: 0.2s;
}
.hero-socials a:hover {
    background: var(--accent);
    color: var(--text);
}

/* Строка кнопок: пусто слева, "Стать частью" справа */
.hero-row-btns {
    margin-top: 12px;
    align-items: center;
}
.hero-join {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    font-family: 'PT Sans Narrow';
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
    background: radial-gradient(circle at 30% 30%, rgba(255,0,51,0.6), rgba(100,0,0,0.8));
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(255,0,51,0.2);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hero-join:hover {
    transform: scale(1.05);
    border-color: var(--text);
    box-shadow: 0 0 30px rgba(255,0,51,0.5);
}

.hero-tagline {
    margin: 30px 0 0;
    padding: 0 20px;
    font-family: 'PT Sans Narrow';
    font-size: clamp(0.75rem, 2vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text);
    font-weight: bold;
    opacity: 0.85;
    text-align: center;
    max-width: 600px;
    margin-inline: auto;
    line-height: 1.5;
}

/* Строка с фольгой и белой кнопкой */
.hero-foil-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 25px;
    padding: 0 20px;
}
.hero-join-white { margin-right: auto; }
.hero-foil { margin-left: auto; }

/* Серебряная мятая точка из фольги */
.hero-foil {
    position: relative;
    flex-shrink: 0;
    width: clamp(150px, 30vw, 255px);
    height: clamp(150px, 30vw, 255px);
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, #f0f0f0 0%, #c8c8c8 18%, #999 40%, #707070 65%, #555 88%, #3a3a3a 100%),
        repeating-linear-gradient(48deg,
            rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 3px,
            rgba(0,0,0,0.08) 3px, rgba(0,0,0,0.08) 6px),
        repeating-linear-gradient(-22deg,
            rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 4px,
            transparent 4px, transparent 9px),
        repeating-linear-gradient(78deg,
            rgba(0,0,0,0.06) 0px, rgba(0,0,0,0.06) 2px,
            transparent 2px, transparent 7px);
    box-shadow:
        inset 2px 2px 6px rgba(255,255,255,0.5),
        inset -4px -4px 10px rgba(0,0,0,0.4),
        inset 0 0 30px rgba(0,0,0,0.15),
        0 12px 30px rgba(0,0,0,0.5),
        0 6px 12px rgba(0,0,0,0.3);
    animation: foilWrinkle 8s infinite ease-in-out;
}
@keyframes foilWrinkle {
    0%, 100% {
        filter: brightness(1) contrast(1);
        box-shadow:
            inset 2px 2px 6px rgba(255,255,255,0.5),
            inset -4px -4px 10px rgba(0,0,0,0.4),
            inset 0 0 30px rgba(0,0,0,0.15),
            0 12px 30px rgba(0,0,0,0.5),
            0 6px 12px rgba(0,0,0,0.3);
    }
    50% {
        filter: brightness(1.1) contrast(1.08);
        box-shadow:
            inset -3px 2px 6px rgba(255,255,255,0.55),
            inset 3px -4px 10px rgba(0,0,0,0.35),
            inset 0 0 35px rgba(0,0,0,0.2),
            0 14px 34px rgba(0,0,0,0.55),
            0 6px 12px rgba(0,0,0,0.3);
    }
}
/* Мятые текстуры через псевдо-элементы */
.hero-foil::before,
.hero-foil::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    mix-blend-mode: overlay;
    pointer-events: none;
}
.hero-foil::before {
    background:
        linear-gradient(37deg, transparent 38%, rgba(255,255,255,0.45) 39%, rgba(255,255,255,0.45) 40%, transparent 41%),
        linear-gradient(-53deg, transparent 58%, rgba(0,0,0,0.4) 59%, rgba(0,0,0,0.4) 60%, transparent 61%),
        linear-gradient(72deg, transparent 22%, rgba(255,255,255,0.3) 23%, rgba(255,255,255,0.3) 24%, transparent 25%),
        linear-gradient(-18deg, transparent 72%, rgba(0,0,0,0.35) 73%, rgba(0,0,0,0.35) 74%, transparent 75%),
        linear-gradient(127deg, transparent 45%, rgba(255,255,255,0.25) 46%, rgba(255,255,255,0.25) 47%, transparent 48%),
        linear-gradient(-42deg, transparent 15%, rgba(0,0,0,0.3) 16%, rgba(0,0,0,0.3) 17%, transparent 18%),
        linear-gradient(8deg, transparent 65%, rgba(255,255,255,0.2) 66%, rgba(255,255,255,0.2) 67%, transparent 68%);
}
.hero-foil::after {
    background:
        radial-gradient(circle at 65% 30%, rgba(255,255,255,0.35) 0%, transparent 14%),
        radial-gradient(circle at 30% 65%, rgba(0,0,0,0.35) 0%, transparent 12%),
        radial-gradient(circle at 75% 70%, rgba(255,255,255,0.2) 0%, transparent 10%),
        radial-gradient(circle at 20% 25%, rgba(0,0,0,0.25) 0%, transparent 8%),
        radial-gradient(circle at 50% 80%, rgba(255,255,255,0.18) 0%, transparent 9%);
}

.hero-join-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-family: 'PT Sans Narrow';
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    color: #000;
    text-decoration: none;
    background: #fff;
    border: 1px solid #fff;
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hero-join-white:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255,255,255,0.4);
}

.hero-banner {
    margin: 20px 0 0;
    position: relative;
    z-index: 1;
    padding: 24px 32px;
    background: #d4c5a9;
    border: none;
    border-radius: var(--radius-lg);
    font-family: 'PT Sans Narrow';
    font-size: clamp(1.1rem, 2.8vw, 1.9rem);
    color: #2a1e0b;
    text-align: center;
    line-height: 1.25;
    letter-spacing: 0.5px;
    box-shadow: none;
}

/* КНОПКИ-СФЕРЫ */
.btn-point {
    width: 110px; height: 110px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    font-family: 'PT Sans'; font-weight: 900; font-size: 0.7rem;
    text-transform: uppercase; text-align: center;
    color: var(--text);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border);
}
.point-red {
    background: radial-gradient(circle at 30% 30%, rgba(255,0,51,0.6), rgba(100,0,0,0.8));
    box-shadow: 0 10px 30px rgba(255,0,51,0.2);
}
.point-blue {
    background: radial-gradient(circle at 30% 30%, rgba(43,69,97,0.6), rgba(10,20,30,0.8));
    box-shadow: 0 10px 30px rgba(43,69,97,0.3);
}
.btn-point:hover {
    transform: scale(1.15) rotate(5deg);
    border-color: var(--text);
    box-shadow: 0 0 40px currentColor;
}
.btn-point span {
    z-index: 2;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

/* === СЕКЦИИ === */
section {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
h2 {
    font-family: 'PT Sans';
    font-size: 1rem; font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--text);
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

/* ТЕКСТОВЫЙ БЛОК */
.glass-card {
    background: var(--surface);
    border-left: 4px solid var(--accent);
    padding: 30px;
    margin-bottom: 50px;
    border-radius: var(--radius-sm);
}
.main-text {
    font-family: 'PT Serif';
    font-size: 1.3rem; line-height: 1.6;
    color: var(--text);
    margin-bottom: 20px;
    max-width: 800px;
}

/* БЛОК С ИМЕНАМИ */
.residents-highlight {
    margin-top: 30px;
    border-top: 1px dashed var(--border);
    padding-top: 20px;
}
.residents-highlight p {
    font-family: 'PT Sans Narrow';
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}
.names-row {
    display: flex; flex-wrap: wrap;
    gap: 20px;
}
.name-link {
    font-family: 'PT Sans', sans-serif;
    font-weight: 700;
    color: var(--text);
    font-size: 1.1rem;
    text-decoration: none;
    border-bottom: 2px solid var(--border);
    transition: 0.3s ease;
    padding-bottom: 2px;
}
.name-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-2px);
}

/* === БЛОК ВОЗМОЖНОСТЕЙ (СЛАЙДЕР) === */
#opportunities h2 { margin-top: 10px; }
.opps-intro {
    font-family: 'PT Serif';
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text);
    margin: 20px 0 12px;
    max-width: 760px;
}
.opps-intro-sub {
    font-family: 'PT Sans Narrow';
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--accent);
    text-transform: uppercase;
    margin: 0 0 16px;
}
.opps-slider-wrap {
    position: relative;
    margin: 20px 0 6px;
}
.opps-slider {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0 10px;
    scroll-padding-left: 4px;
}
.opps-slider::-webkit-scrollbar { display: none; }
.opp-card {
    scroll-snap-align: start;
    flex: 0 0 280px;
    width: 280px;
    --opp: var(--accent);
    background: color-mix(in srgb, var(--opp) 8%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--opp) 25%, var(--border));
    border-left: 4px solid var(--opp);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
}
.opp-card h3 { color: var(--opp); }
.opp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px color-mix(in srgb, var(--opp) 35%, transparent);
    border-color: var(--opp);
}
.opp-exhib   { --opp: #ff0033; }   /* красный — искусство */
.opp-comm    { --opp: #00e5ff; }   /* голубой — связь */
.opp-mk      { --opp: #ffd700; }   /* золото — обучение */
.opp-sales   { --opp: #00ff88; }   /* зелёный — продажи */
.opp-video   { --opp: #b026ff; }   /* фиолетовый — видео-арт */
.opp-resident { --opp: #ff7a00; }  /* оранжевый — резидентство */
.opp-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}
.opp-card h3 {
    font-family: 'PT Sans';
    font-weight: 900;
    font-size: 1.05rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.opp-card p {
    font-family: 'PT Serif';
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
}
.opps-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
}
.opps-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: 0.25s ease;
    padding: 0;
    border: none;
}
.opps-dot.active {
    background: var(--accent);
    width: 22px;
    border-radius: 4px;
}

/* === КАРТОЧКА ОСНОВАТЕЛЯ === */
.founder-card {
    margin: 26px 0 6px;
    padding: 20px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}
.founder-avatar-link {
    float: left;
    margin: 0 18px 8px 0;
}
.founder-avatar {
    width: 140px;
    height: 140px;
    border-radius: 18px;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 0 18px var(--accent-glow);
    display: block;
}
.founder-info { min-width: 0; }
.founder-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
    margin-bottom: 8px;
}
.founder-name {
    font-family: 'PT Sans';
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--text);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.founder-name:hover { color: var(--accent); }
.founder-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
}
.founder-role {
    font-family: 'PT Sans Narrow';
    font-size: 0.78rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border: 1px solid var(--accent);
    border-radius: 20px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    white-space: nowrap;
}
.founder-bio-label {
    font-family: 'PT Sans Narrow';
    font-size: 0.72rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 2px 0 6px;
}
.founder-bio {
    font-family: 'PT Serif';
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.founder-card::after {
    content: '';
    display: block;
    clear: both;
}
.scattered-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px 0;
}
.scatter-item {
    position: relative;
    transition: 0.4s ease;
    cursor: pointer;
}
.scatter-item img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    filter: grayscale(100%) contrast(1.1);
    transition: 0.4s;
    box-shadow: var(--shadow-md);
}
/* Лёгкие повороты без смещения */
.item-1 { transform: rotate(-1deg); }
.item-2 { transform: rotate(1deg); }
.item-3 { transform: rotate(0.5deg); }
.item-4 { transform: rotate(-0.5deg); }
/* Ховер: картинка выравнивается и оживает */
.scatter-item:hover {
    transform: scale(1.03) rotate(0deg) !important;
    z-index: 10;
}
.scatter-item:hover img {
    filter: grayscale(0) contrast(1);
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

/* === БЛОК БИЗНЕСУ === */
.biz-section {
    background: color-mix(in srgb, var(--blue) 15%, transparent);
    border-top: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
    margin-top: 40px;
    padding: 20px 0;
    position: relative;
    z-index: 1;
}
/* Вводный абзац секции «Торговым Центрам» — theme-aware, без хардкода #ddd */
.biz-intro {
    font-family: 'PT Serif';
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 30px;
    color: var(--text-muted);
}
/* Подзаголовок- dẫnущая под «Стать частью проекта» — theme-aware, без хардкода #aaa */
.join-intro {
    font-family: 'PT Serif';
    font-size: 1.2rem;
    line-height: 1.45;
    color: var(--text-muted);
    margin-bottom: 40px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.stat-box b {
    display: block;
    font-family: 'PT Sans';
    font-size: 3.5rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 10px;
}
.stat-box span {
    font-family: 'PT Sans Narrow';
    color: var(--text);
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
}
.stat-box p {
    color: var(--text-muted);
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* === БЛОК «РАБОТЫ УЧАСТНИКОВ» (slider с бесконечной прокруткой) === */
.home-works {
    max-width: 1200px; margin: 30px auto 10px;
    padding: 0 20px; box-sizing: border-box;
    position: relative; z-index: 1;
}
.home-works .hw-head { text-align: center; margin-bottom: 24px; }
.home-works .hw-head h2 {
    font-family: 'PT Sans'; font-size: 1rem; font-weight: 900;
    text-transform: uppercase; color: var(--text);
    margin-bottom: 8px; letter-spacing: 1px;
}
.home-works .hw-head .hw-sub {
    font-family: 'PT Serif'; font-size: 0.92rem; line-height: 1.5;
    color: var(--text-muted); max-width: 640px; margin: 0 auto;
}
.hw-slider-wrap {
    position: relative;
    margin: 0 -8px;
}
/* Горизонтальный скролл с привязкой к карточкам (scroll-snap) */
.hw-rail {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    padding: 6px 8px 12px;
}
.hw-rail::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.hw-track {
    display: inline-flex; gap: 16px;
    align-items: center; /* общая центральная горизонтальная ось */
    user-select: none;
}
.hw-card {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    flex: 0 0 auto;
    width: clamp(280px, 32vw, 420px);
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden; cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.hw-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.hw-card .hw-img {
    width: 100%;
    background: var(--surface-hover);
    line-height: 0; /* убирает зазор под img */
}
.hw-card .hw-img img {
    width: 100%;
    height: auto;
    max-height: 560px; /* ограничение для очень вытянутых работ */
    object-fit: contain; /* без обрезки — целиком */
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}
.hw-card:hover .hw-img img { transform: scale(1.04); }
.hw-noimg {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 4/3; font-size: 3rem; opacity: 0.25;
}
.hw-meta { padding: 14px 18px 18px; }
.hw-author {
    font-family: 'PT Sans Narrow'; font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--accent); margin-bottom: 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hw-title {
    font-family: 'PT Sans'; font-weight: 900; font-size: 0.98rem;
    color: var(--text); line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

.hw-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--glass-bg); border: 1px solid var(--border);
    color: var(--text); cursor: pointer; z-index: 2;
    font-size: 1.6rem; line-height: 1; padding: 0;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s; backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
}
.hw-nav:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.hw-prev { left: -4px; }
.hw-next { right: -4px; }

/* Карточка-кнопка «Подгрузить ещё» в конце слайдера */
.hw-sentinel {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 220px;
    min-height: 200px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px;
    background: transparent;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    font-family: 'PT Sans Narrow';
}
.hw-sentinel:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255,0,51,0.04);
}
.hw-sentinel-ico {
    font-size: 2rem; line-height: 1;
    display: inline-block;
    transition: transform 0.4s;
}
.hw-sentinel:hover .hw-sentinel-ico { transform: rotate(180deg); }
.hw-sentinel-txt {
    font-size: 0.78rem; text-transform: uppercase;
    letter-spacing: 0.5px; text-align: center; padding: 0 12px;
}

.hw-progress {
    display: flex; gap: 6px; justify-content: center;
    margin-top: 14px; flex-wrap: wrap;
}
.hw-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    cursor: pointer; transition: 0.2s;
}
.hw-dot.active {
    background: var(--accent); border-color: var(--accent);
    box-shadow: 0 0 6px var(--accent-glow);
    transform: scale(1.25);
}

.hw-cta {
    display: flex; gap: 12px; justify-content: center;
    margin-top: 22px; flex-wrap: wrap;
}

@media (max-width: 650px) {
    /* Зона показа слайдера — фиксированная по высоте, карты отцентрированы
       по вертикали (центр viewport'а показа). Активная карта — в центре внимания. */
    .hw-rail {
        min-height: 62vh;
        display: flex;
        align-items: center;
    }
    .hw-track {
        align-items: center;
        margin: auto; /* гарантия центрирования внутри flex-rail */
    }
    .hw-card { width: 260px; }
    .hw-card .hw-img img { max-height: 56vh; }
    .hw-card .hw-meta { padding: 12px 14px 14px; }
    .hw-author { font-size: 0.7rem; }
    .hw-title { font-size: 0.88rem; }
    .hw-nav { width: 36px; height: 36px; font-size: 1.3rem; }
    .home-works .hw-head .hw-sub { font-size: 0.85rem; }
}

/* === КОНТАКТЫ === */
.contact-section {
    background: var(--bg);
    color: var(--text);
    padding: 60px 0 20px;
    border-top: 4px solid var(--accent);
    margin-top: 40px;
    position: relative;
    z-index: 1;
}
.grid-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.loc-item {
    display: block;
    margin-bottom: 25px;
    border-left: 2px solid var(--border);
    padding-left: 15px;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}
.loc-item:hover {
    border-left-color: var(--accent);
    transform: translateX(3px);
}
.loc-item b {
    font-family: 'PT Sans';
    font-size: 1.2rem;
    display: block;
    margin-bottom: 5px;
    color: var(--text);
}
.loc-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: 'PT Sans Narrow';
}

.contact-info {
    text-align: right;
}
.phone-link {
    display: inline-block;
    font-family: 'PT Sans', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 5px;
    transition: 0.3s ease;
    text-shadow: 0 0 15px var(--accent-glow);
}
.phone-link:hover {
    color: var(--text);
    text-shadow: 0 0 20px var(--accent);
    transform: scale(1.05) translateX(-5px);
}
.contact-info .producer {
    font-family: 'PT Serif';
    color: var(--text-muted);
    font-size: 1rem;
}
.socials-footer {
    margin-top: 15px;
    display: flex; gap: 15px;
    justify-content: flex-end;
}
.socials-footer a {
    color: var(--accent);
    font-family: 'PT Sans Narrow';
    text-decoration: none;
    font-weight: bold;
    border: 1px solid var(--accent);
    padding: 5px 10px;
    transition: 0.2s;
}
.socials-footer a:hover {
    background: var(--accent);
    color: var(--text);
}

/* === АДАПТИВ === */
@media (min-width: 1100px) {
    .hero { max-width: 60vw; }
    section { max-width: 60vw; }
    .biz-section .stats-grid,
    .contact-section .grid-about { max-width: 60vw; margin-inline: auto; }
}
@media (max-width: 768px) {
    .hero { max-width: 100%; }
    section { max-width: 100%; }
    .hero h1 { font-size: 1rem; }
    .scattered-gallery { grid-template-columns: 1fr; }
    .grid-about { grid-template-columns: 1fr; gap: 20px; }
    .contact-info { text-align: left; margin-top: 40px; }
    .socials-footer { justify-content: flex-start; }
    .hero-slogan { font-size: 0.9rem; letter-spacing: 3px; }
    .hero-foil-row { flex-direction: column; gap: 20px; }
}

/* === БЛОК «ПОСЛЕДНИЙ ВЕРНИСАЖ» (на главной) === */
#latestVernissage {
    max-width: 900px; margin: 10px auto 18px;
    padding: 0 20px; box-sizing: border-box;
}
#latestVernissage .vernissage-badge {
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(255,0,51,0.15), rgba(255,0,51,0.05));
    border: 1px solid rgba(255,0,51,0.35);
    border-radius: 999px;
    padding: 7px 14px 7px 12px;
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 0.72rem; font-weight: bold;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--text);
    transition: 0.25s ease;
    margin-bottom: 16px;
    backdrop-filter: blur(6px);
}
#latestVernissage .vernissage-badge:hover {
    background: linear-gradient(135deg, rgba(255,0,51,0.28), rgba(255,0,51,0.10));
    border-color: var(--accent);
    box-shadow: 0 0 18px rgba(255,0,51,0.35);
    transform: translateY(-1px);
}
#latestVernissage .vb-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: vbPulse 2.4s ease-in-out infinite;
}
@keyframes vbPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.55; transform: scale(0.78); }
}
#latestVernissage .vb-arrow {
    margin-left: 2px;
    transition: transform 0.25s ease;
    color: var(--accent);
}
#latestVernissage .vernissage-badge:hover .vb-arrow {
    transform: translateX(4px);
}

.hv-card {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 0;
    background: var(--glass-bg); border: 1px solid var(--border-light);
    border-left: 4px solid var(--color-marker, var(--accent));
    border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; transition: 0.3s;
    box-shadow: var(--shadow-md);
}
.hv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hv-cover { aspect-ratio: 16/10; overflow: hidden; background: var(--surface); }
.hv-cover img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.hv-card:hover .hv-cover img { transform: scale(1.03); }
/* Текстовая обложка-заглушка, когда нет фото: градиент + дата */
.hv-cover-text {
    aspect-ratio: 16/10; width: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background:
        radial-gradient(circle at 78% 12%, rgba(255,255,255,0.05), transparent 55%),
        linear-gradient(135deg, var(--surface-hover) 0%, #050505 100%);
    color: var(--color-marker, var(--accent));
    text-align: center; position: relative; overflow: hidden; gap: 6px;
}
.hv-cover-text::before {
    content: '✺'; position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 9rem; opacity: 0.10; pointer-events: none;
}
.hv-cover-text .vc-year { font-family: 'PT Sans'; font-size: 2.8rem; font-weight: 900; letter-spacing: 1px; position: relative; }
.hv-cover-text .vc-month { font-family: 'PT Sans Narrow'; font-size: 0.85rem; letter-spacing: 5px; text-transform: uppercase; position: relative; opacity: 0.85; }
.hv-info { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.hv-date { font-family: 'PT Sans Narrow'; color: var(--color-marker, var(--accent)); font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.hv-title { font-family: 'PT Sans'; font-weight: 900; font-size: 1.2rem; color: var(--text); text-transform: uppercase; margin-bottom: 10px; line-height: 1.2; }
.hv-loc { font-family: 'PT Sans Narrow'; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 12px; }
.hv-meta { font-family: 'PT Sans Narrow'; color: var(--gold); font-size: 0.82rem; font-weight: bold; }

@media (max-width: 768px) {
    .hv-card { grid-template-columns: 1fr; }
}
