/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0AD1C9;
    --primary-dark: #08B5AE;
    --primary-light: #2DE8E1;
    --text-color: #1A1A1A;
    --text-light: #666666;
    --bg-color: #FFFFFF;
    --bg-light: #F5F5F5;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #0AD1C9 0%, #08B5AE 100%);
    --gradient-primary-light: linear-gradient(135deg, #2DE8E1 0%, #0AD1C9 100%);
    /* Общий фон: бирюзовый «смах» от верха (как hero на главной), дальше в белый */
    --page-gradient-bg: linear-gradient(
        180deg,
        rgba(10, 209, 201, 0.14) 0%,
        rgba(10, 209, 201, 0.09) 18%,
        rgba(10, 209, 201, 0.06) 38%,
        rgba(10, 209, 201, 0.035) 62%,
        rgba(10, 209, 201, 0.015) 85%,
        var(--bg-color) 100%
    );
}

html {
    scroll-behavior: smooth;
    min-height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    min-height: 100vh;
    background-color: var(--bg-color);
    background-image: var(--page-gradient-bg);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    overflow-x: hidden;
    orphans: 2;
    widows: 2;
    text-wrap: pretty;
}

p {
    orphans: 2;
    widows: 2;
    text-wrap: pretty;
    hyphenate-limit-chars: 6 3 2;
    hyphenate-limit-lines: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 80px;
}

.logo-image {
    height: 120%;
    width: auto;
    max-height: 96px;
    object-fit: contain;
    margin-top: -10px;
    margin-bottom: -10px;
}

.logo-second {
    margin-left: 10px;
    height: 80%;
    max-height: 64px;
    margin-top: -8px;
    margin-bottom: -8px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

@media (hover: hover) {
    .nav-link:hover {
        color: var(--primary-color);
        background: linear-gradient(90deg, transparent 0%, rgba(10, 209, 201, 0.05) 50%, transparent 100%);
    }
    .nav-link:hover::after {
        width: 100%;
    }
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.nav-link.active::after {
    width: 100%;
}

.btn-donate-nav {
    background: var(--gradient-primary);
    color: white !important;
    padding: 13px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 17px;
    transition: var(--transition);
}

@media (hover: hover) {
    .btn-donate-nav:hover {
        background: var(--gradient-primary-light);
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
    }
}

.btn-donate-nav::after {
    display: none;
}

a.btn-donate-nav--cta {
    display: inline-block;
    text-decoration: none;
    font-size: 21px;
    font-weight: 700;
    padding: 18px 44px;
    border-radius: 10px;
    line-height: 1.25;
    box-shadow: 0 5px 22px rgba(10, 209, 201, 0.4);
}

@media (hover: hover) {
    a.btn-donate-nav--cta:hover {
        box-shadow: 0 8px 28px rgba(10, 209, 201, 0.48);
    }
}

.btn-auction {
    display: inline-block;
    margin-top: 0;
    background: var(--gradient-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 20px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(10, 209, 201, 0.35);
}

@media (hover: hover) {
    .btn-auction:hover {
        background: var(--gradient-primary-light);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(10, 209, 201, 0.45);
    }
}

.btn-auction--ghost {
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-dark);
    border: 2px solid rgba(10, 209, 201, 0.55);
    box-shadow: 0 2px 12px rgba(10, 209, 201, 0.12);
}

@media (hover: hover) {
    .btn-auction--ghost:hover {
        background: rgba(10, 209, 201, 0.08);
        color: var(--primary-dark);
        border-color: var(--primary-color);
    }
}

.hero-cta--row {
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    text-align: center;
    background: transparent;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    orphans: 2;
    widows: 2;
    text-wrap: balance;
}

.hero-cta {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.hero-events {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.hero-events-content {
    background: linear-gradient(135deg, rgba(10, 209, 201, 0.1) 0%, rgba(8, 181, 174, 0.05) 100%);
    border-radius: 16px;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    box-shadow: 0 4px 20px rgba(10, 209, 201, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.hero-events-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(10, 209, 201, 0.1), transparent);
    transition: left 0.6s ease;
}

@media (hover: hover) {
    .hero-events-content:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(10, 209, 201, 0.3);
    }
    
    .hero-events-content:hover::before {
        left: 100%;
    }
}

.hero-event-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.hero-event-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hero-event-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-event-date {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

.hero-event-location {
    font-size: 16px;
    color: var(--text-color);
    font-weight: 600;
    margin-top: 2px;
}

.hero-event-divider {
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-title.centered {
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 50px;
}

.section-subtitle.centered {
    text-align: center;
}

/* About Section */
.about-section {
    background-color: var(--bg-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    /* делаем фото компактнее в верхнем блоке "О проекте" */
    flex: 0 1 520px;
    max-width: 350px;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: var(--shadow);
    object-fit: cover;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.8;
    orphans: 3;
    widows: 3;
    text-wrap: pretty;
}

/* Dreams Section */
.dreams-section {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(10, 209, 201, 0.08) 100px,
        rgba(10, 209, 201, 0.06) 50%,
        transparent 100%
    );
    overflow: visible;
}

.dreams-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    overflow: visible;
}

.dream-card {
    flex: 0 1 360px;
    min-width: 280px;
    background-color: var(--bg-color);
    border-radius: 12px;
    overflow: visible;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 2px solid transparent;
    z-index: 1;
}

@media (hover: hover) {
    .dream-card:hover {
        z-index: 100;
        transform: translateY(-15px) rotate(1deg) scale(1.03);
        box-shadow: 0 15px 40px rgba(10, 209, 201, 0.3), 0 5px 15px rgba(0, 0, 0, 0.1);
    }
}

.dream-image {
    width: 100%;
    min-height: 250px;
    max-height: 400px;
    height: auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--bg-light);
    position: relative;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    perspective: 900px;
}

.dream-image-flip {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 250px;
    transform-style: preserve-3d;
    transition: transform 0.85s cubic-bezier(0.34, 1.35, 0.5, 1);
}

.dream-card--flipped .dream-image-flip {
    transform: rotateY(180deg);
}

.dream-image-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px 12px 0 0;
}

.dream-image-back {
    transform: rotateY(180deg);
}

.dream-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 209, 201, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    border-radius: 12px 12px 0 0;
}

@media (hover: hover) {
    .dream-card:hover .dream-image::before {
        opacity: 1;
    }
}

.dream-image-face img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Масштаб при наведении только у видимой стороны — чтобы не проступало и не моргало второе изображение */
@media (hover: hover) {
    .dream-card:hover .dream-image-front img {
        transform: scale(1.08);
    }
    .dream-card:hover .dream-image-back img {
        transform: none;
    }
    .dream-card--flipped:hover .dream-image-front img {
        transform: none;
    }
    .dream-card--flipped:hover .dream-image-back img {
        transform: scale(1.08);
    }
}

.dream-info {
    padding: 25px;
    position: relative;
    z-index: 2;
    transition: background-color 0.4s ease;
}

@media (hover: hover) {
    .dream-card:hover .dream-info {
        background: linear-gradient(to bottom, rgba(10, 209, 201, 0.03), transparent);
    }
}

.dream-header {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 15px;
}

.child-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background-color: white;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: grayscale(100%);
    opacity: 0.8;
    display: none; /* Временно скрыто, можно вернуть убрав эту строку */
}

@media (hover: hover) {
    .dream-card:hover .child-photo {
        transform: scale(1.15) rotate(5deg);
        box-shadow: 0 4px 15px rgba(10, 209, 201, 0.3);
        filter: grayscale(0%);
        opacity: 1;
        border-color: var(--primary-color);
    }
}

.dream-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    position: relative;
    transition: all 0.4s ease;
    display: inline-block;
    line-height: 1.3;
    word-wrap: break-word;
    max-width: 100%;
}

@media (hover: hover) {
    .dream-card:hover .dream-name {
        color: var(--primary-color);
        transform: translateX(5px);
    }
}

.dream-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.4s ease;
}

@media (hover: hover) {
    .dream-card:hover .dream-name::after {
        width: 100%;
    }
}

.dream-text {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
    transition: color 0.4s ease, transform 0.4s ease;
    transform: translateY(0);
}

@media (hover: hover) {
    .dream-card:hover .dream-text {
        color: var(--text-color);
        transform: translateY(-2px);
    }
}

/* Results Section */
.results-section {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(10, 209, 201, 0.08) 80px,
        rgba(10, 209, 201, 0.05) 40%,
        transparent 100%
    );
}

.results-content {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 50px;
}

.results-video {
    flex: 1;
    position: relative;
}

.results-video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    clip-path: inset(0 round 12px);
    object-fit: cover;
    object-position: center;
}

@media (hover: hover) {
    .results-video-player:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 4px 15px rgba(10, 209, 201, 1);
    }
}

.results-text {
    flex: 1;
}

.results-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.results-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.8;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
    padding: 30px 0;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.stat-item {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(10, 209, 201, 0.05) 0%, rgba(8, 181, 174, 0.02) 100%);
    transition: var(--transition);
}

@media (hover: hover) {
    .stat-item:hover {
        background: linear-gradient(135deg, rgba(10, 209, 201, 0.1) 0%, rgba(8, 181, 174, 0.05) 100%);
        transform: translateY(-3px);
        box-shadow: 0 4px 15px rgba(10, 209, 201, 0.5);
    }
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.4;
}

/* Partners Section */
.partners-section {
    /* более контрастный фон, чтобы логотипы не "сливались" */
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.04) 0%, rgba(10, 209, 201, 0.06) 55%, rgba(15, 23, 42, 0.03) 100%);
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex: 0 1 280px;
    width: auto;
    min-width: 0;
    min-height: 150px;
    height: 150px;
    max-height: 150px;
    padding: 16px;
    /* бирюзовая подложка под логотип */
    background-color: var(--primary-color);
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.partner-logo img {
    width: 100%;
    height: 100px;
    max-width: 100%;
    max-height: 100px;
    min-height: 100px;
    transition: var(--transition);
    object-fit: contain;
    display: block;
}

/* Третье лого ("Новые люди") делаем меньше */
.partner-logo img.partner-logo-img--nl {
    height: 80px;
    max-height: 80px;
    min-height: 80px;
}

/* Лого "Безумно" — крупнее (масштаб), плашка не меняем */
.partner-logo img.partner-logo-img--bezum {
    width: auto;
    height: 100px;
    max-height: 100px;
    min-height: 100px;
    max-width: none;
    transform: scale(1.55);
}

/* Лого "Майолика" — делаем заметнее */
.partner-logo img.partner-logo-img--maiolica {
    transform: scale(1.35);
}

.partner-logo img.partner-logo-img--dv {
    width: auto;
    max-width: none;
    transform: scale(1.5);
}

.partner-logo img.partner-logo-img--santa {
    width: auto;
    max-width: none;
    transform: scale(1.5);
}

@media (hover: hover) {
    .partner-logo:hover {
        /* как у "карточки" видео: лёгкий подъём + усиленная тень */
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 4px 15px rgba(10, 209, 201, 1);
    }
}

.partner-placeholder {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
    font-weight: 500;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 12px;
    box-sizing: border-box;
}

.partner-logo:has(img) .partner-placeholder {
    display: none;
}

/* Donate Section */
.donate-section {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.donate-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 232, 225, 0.3) 0%, rgba(10, 209, 201, 0.1) 100%);
    pointer-events: none;
}

.donate-content {
    position: relative;
    z-index: 1;
}

.donate-content {
    max-width: 700px;
    margin: 0 auto;
}

.donate-section .section-title {
    color: white;
    margin-bottom: 20px;
}

.donate-text {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.95;
    orphans: 2;
    widows: 2;
    text-wrap: balance;
}

.btn-donate-large {
    background-color: white;
    color: var(--primary-color);
    padding: 18px 48px;
    font-size: 20px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none;
}

.btn-donate-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary-light);
    transition: left 0.3s ease;
    z-index: -1;
}

@media (hover: hover) {
    .btn-donate-large:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 25px rgba(10, 209, 201, 0.4);
        color: white;
    }
    .btn-donate-large:hover::before {
        left: 0;
    }
}

/* Footer */
.footer {
    background-color: #1A1A1A;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-subtitle {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.6;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

@media (hover: hover) {
    .footer-link:hover {
        color: var(--primary-color);
        transform: translateX(5px);
    }
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: var(--transition);
}

@media (hover: hover) {
    .social-link:hover {
        color: white;
        border-color: var(--primary-color);
        background: var(--gradient-primary);
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

@media (hover: hover) {
    .footer-bottom a:hover {
        color: var(--primary-light);
        text-decoration: underline;
    }
}

/* Lightbox для картин */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s ease;
    z-index: 10001;
    padding: 0;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-content {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: calc(100vh - 40px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* Анимации */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Адаптивность */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .about-content {
        gap: 40px;
    }
    
    .dreams-grid .dream-card {
        flex: 0 1 320px;
        min-width: 280px;
    }
    
    .results-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .results-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .partners-grid {
        gap: 25px;
        max-width: 100%;
    }
    
    .partners-grid .partner-logo {
        flex: 0 1 280px;
    }
    
    .partner-logo {
        min-height: 140px;
        height: 140px;
        max-height: 140px;
        padding: 14px;
        box-sizing: border-box;
    }
    
    .partner-logo img {
        height: 110px;
        max-height: 110px;
        min-height: 110px;
    }

    .partner-logo img.partner-logo-img--nl {
        height: 85px;
        max-height: 85px;
        min-height: 85px;
    }

    .partner-logo img.partner-logo-img--bezum {
        transform: scale(1.5);
    }

    .partner-logo img.partner-logo-img--dv {
        transform: scale(1.45);
    }

    .partner-logo img.partner-logo-img--santa {
        transform: scale(1.45);
    }
}

@media (max-width: 768px) {
    .logo {
        height: 50px;
        gap: 15px;
    }
    
    .logo-image {
        height: 150%;
        max-height: 75px;
        margin-top: -12px;
        margin-bottom: -12px;
    }
    
    .logo-second {
        height: 100%;
        max-height: 50px;
        margin-top: -10px;
        margin-bottom: -10px;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .header {
        position: relative;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        transition: max-height 0.3s ease, padding 0.3s ease, top 0.3s ease;
        z-index: 1000;
        margin-top: -10px;
    }
    
    .nav-menu.active {
        max-height: 560px;
        padding: 20px 0;
    }
    
    .nav-menu .nav-link {
        width: 100%;
        padding: 18px 20px;
        border-bottom: none;
        display: block;
        font-size: 18px;
        text-align: center;
        margin: 0;
    }
    
    .nav-menu .nav-link::after {
        display: none;
    }
    
    .nav-menu .btn-donate-nav {
        margin: 10px 20px 0;
        width: calc(100% - 40px);
        text-align: center;
        padding: 16px 22px;
        font-size: 18px;
        border-radius: 8px;
        background: var(--gradient-primary) !important;
        color: white !important;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }

    a.btn-donate-nav--cta {
        font-size: 18px;
        padding: 16px 28px;
    }
    
    .hero-events {
        margin-top: 30px;
        padding: 0 15px;
    }
    
    .hero-events-content {
        flex-direction: column;
        gap: 25px;
        padding: 25px 20px;
    }
    
    .hero-event-divider {
        width: 60px;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    }
    
    .hero-event-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .hero-event-date {
        font-size: 22px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .about-content {
        flex-direction: column-reverse;
    }

    .about-image {
        display: none;
    }
    
    .about-text p {
        font-size: 16px;
    }
    
    .dreams-grid {
        gap: 25px;
    }
    
    .dreams-grid .dream-card {
        flex: 1 1 100%;
        min-width: 0;
    }
    
    .dream-card .dream-image-face img,
    .dream-card:hover .dream-image-face img {
        transform: none !important;
    }
    
    .results-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .results-title {
        font-size: 28px;
    }
    
    .results-text p {
        font-size: 16px;
    }
    
    .results-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px 0;
    }
    
    .stat-item {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .partners-grid {
        gap: 20px;
        max-width: 100%;
    }
    
    .partners-grid .partner-logo {
        flex: 0 1 280px;
    }
    
    .partner-logo {
        min-height: 120px;
        height: 120px;
        max-height: 120px;
        padding: 15px;
        box-sizing: border-box;
    }
    
    .partner-logo img {
        height: 80px;
        max-height: 80px;
        min-height: 80px;
    }
    
    .partner-logo img.partner-logo-img--nl {
        height: 60px;
        max-height: 60px;
        min-height: 60px;
    }

    .partner-logo img.partner-logo-img--bezum {
        transform: scale(1.45);
    }

    .partner-logo img.partner-logo-img--dv {
        transform: scale(1.35);
    }

    .partner-logo img.partner-logo-img--santa {
        transform: scale(1.35);
    }
    
    .donate-text {
        font-size: 18px;
    }
    
    .btn-donate-large {
        padding: 16px 40px;
        font-size: 18px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

@media (max-width: 480px) {
    .logo {
        height: 40px;
        gap: 10px;
    }
    
    .logo-image {
        height: 150%;
        max-height: 60px;
        margin-top: -10px;
        margin-bottom: -10px;
    }
    
    .logo-second {
        height: 100%;
        max-height: 40px;
        margin-top: -8px;
        margin-bottom: -8px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-events {
        margin-top: 25px;
        padding: 0 10px;
    }
    
    .hero-events-content {
        padding: 20px 15px;
        gap: 20px;
    }
    
    .hero-event-date {
        font-size: 20px;
    }
    
    .hero-event-location {
        font-size: 14px;
    }
    
    .hero-event-label {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .results-title {
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .partners-grid {
        gap: 15px;
        max-width: 100%;
    }
    
    .partners-grid .partner-logo {
        flex: 0 1 calc(50% - 8px);
    }
    
    .partner-logo {
        min-height: 100px;
        height: 100px;
        max-height: 100px;
        padding: 15px;
        box-sizing: border-box;
    }
    
    .partner-logo img {
        height: 70px;
        max-height: 70px;
        min-height: 70px;
    }
    
    .partner-logo img.partner-logo-img--nl {
        height: 50px;
        max-height: 50px;
        min-height: 50px;
    }

    .partner-logo img.partner-logo-img--bezum {
        transform: scale(1.4);
    }

    .partner-logo img.partner-logo-img--dv {
        transform: scale(1.3);
    }

    .partner-logo img.partner-logo-img--santa {
        transform: scale(1.3);
    }
}

/* Партия НЛ: один логотип в шапке */
.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.page-index .logo-image,
.page-chistye-steny .logo-image {
    margin-top: 0;
    margin-bottom: 0;
    max-height: 72px;
}

.page-index .logo,
.page-chistye-steny .logo {
    height: 72px;
}

/* «Чистые стены»: блоки как у «Мечта ангела» (about-content), без карточек */
.page-chistye-steny {
    --cs-photo-uniform-h: clamp(268px, 38vh, 392px);
    --cs-photo-hero-h: clamp(260px, 38vh, 400px);
}

.page-chistye-steny .about-content {
    align-items: center;
}

.page-chistye-steny .about-content--reverse {
    flex-direction: row-reverse;
}

.page-chistye-steny .about-image {
    flex: 0 1 480px;
    max-width: min(480px, 48%);
}

.page-chistye-steny .about-image--stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-chistye-steny .about-image--stack .cs-gallery__item--inline {
    width: 100%;
    height: auto; /* без пустых полей: высота следует картинке */
    display: block;
    background: transparent;
    box-shadow: none; /* без "подложки" в покое */
    padding: 0;
    border-radius: 8px; /* привести к радиусу картинки */
    overflow: hidden;
}

.page-chistye-steny .about-image--stack .cs-gallery__item--inline img {
    width: 100%;
    height: auto;
    object-fit: contain; /* без обрезаний: сохраняем соотношение сторон как у исходника */
    object-position: center;
    border-radius: 8px;
    box-shadow: none; /* убрать дополнительную тень img, которая визуально наслаивается */
}

.page-chistye-steny .about-text .section-title {
    text-align: left;
}

.page-chistye-steny .cs-subhead-dates {
    display: block;
    margin-top: 8px;
    font-size: clamp(16px, 2.4vw, 18px);
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

.page-chistye-steny h3.cs-inline-h3 {
    font-size: clamp(19px, 2.2vw, 22px);
    font-weight: 600;
    color: var(--text-color);
    margin: 26px 0 10px;
    line-height: 1.35;
}

.page-chistye-steny h3.cs-inline-h3:first-of-type {
    margin-top: 10px;
}

.page-chistye-steny .results-section .cs-gallery__item--results-photo {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    display: block;
    line-height: 0;
    border-radius: 12px;
    overflow: hidden;
}

.page-chistye-steny .results-section .cs-gallery__item--results-photo .results-video-player {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 16 / 10;
    max-height: min(340px, 52vw);
}

@media (max-width: 768px) {
    .page-chistye-steny .about-image {
        display: flex;
        flex-direction: column;
        max-width: 100%;
        flex: 1 1 auto;
    }

    .page-chistye-steny .about-content,
    .page-chistye-steny .about-content--reverse {
        flex-direction: column;
    }
}

/* Заглушки «скоро» */
.soon-section {
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 209, 201, 0.06) 50%, transparent 100%);
}

.soon-section--alt {
    background: linear-gradient(to bottom, rgba(10, 209, 201, 0.05) 0%, transparent 50%, rgba(10, 209, 201, 0.04) 100%);
}

.soon-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

.soon-section__text {
    margin-bottom: 0;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Главная: сетка проектов — та же «мятная» подложка, что .cs-band--mint на внутренних страницах */
.home-projects-section {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(10, 209, 201, 0.12) 12%,
        rgba(10, 209, 201, 0.1) 50%,
        rgba(10, 209, 201, 0.05) 88%,
        transparent 100%
    );
    padding-top: 72px;
    padding-bottom: 88px;
}

.home-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 56px;
}

/* Нечётное число карточек: последняя по центру, без пустой ячейки */
.home-projects-grid > .project-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, calc((100% - 28px) / 2));
}

@media (max-width: 768px) {
    .home-projects-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .home-projects-grid > .project-card:last-child:nth-child(odd) {
        grid-column: auto;
        width: 100%;
        justify-self: stretch;
    }
}

.project-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(10, 209, 201, 0.12);
    transition: var(--transition);
}

@media (hover: hover) {
    .project-card:hover {
        box-shadow: var(--shadow-hover);
        transform: translateY(-5px);
        border-color: rgba(10, 209, 201, 0.28);
    }
}

.project-card__media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-light);
}

.project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

@media (hover: hover) {
    .project-card:hover .project-card__media img {
        transform: scale(1.04);
    }
}

.project-card__body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
}

.project-card__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 10px;
    line-height: 1.25;
}

.project-card__text {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-light);
    flex: 1;
}

.project-card__link {
    align-self: flex-start;
    font-weight: 600;
    font-size: 16px;
    color: var(--primary-dark);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid rgba(10, 209, 201, 0.45);
    transition: var(--transition);
}

@media (hover: hover) {
    .project-card__link:hover {
        color: var(--primary-color);
        border-bottom-color: var(--primary-color);
    }
}

.home-projects-btn-wrap {
    text-align: center;
}

.page-index .home-section__heading {
    font-size: clamp(26px, 3.5vw, 34px);
    font-weight: 700;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.page-index .home-section__heading.fade-in {
    transform: none;
}

.page-index .home-section__heading.fade-in.visible {
    transform: none;
}

/* Главная: блок новостей VK */
.page-index .vk-news-section {
    padding: 48px 0 40px;
}

.page-index .vk-news-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 24px;
    margin-bottom: 24px;
}

.page-index .vk-news-header .home-section__heading {
    margin-bottom: 0;
}

.page-index .home-projects-section > .container > .home-section__heading {
    margin-bottom: 24px;
}

.page-index .vk-news-header__link {
    font-size: clamp(18px, 2.4vw, 22px);
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
    border-bottom: 2px solid rgba(10, 209, 201, 0.45);
    transition: var(--transition);
    line-height: 1.2;
}

@media (hover: hover) {
    .page-index .vk-news-header__link:hover {
        color: var(--primary-color);
        border-bottom-color: var(--primary-color);
    }
}

.page-index .vk-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 992px) {
    .page-index .vk-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .page-index .vk-news-grid {
        grid-template-columns: 1fr;
    }
}

.page-index .vk-news-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

@media (hover: hover) {
    .page-index .vk-news-card:not(.vk-news-card--skeleton):hover {
        box-shadow: var(--shadow-hover);
        transform: translateY(-5px);
    }

    .page-index .vk-news-card:not(.vk-news-card--skeleton):hover .vk-news-card__media img {
        transform: scale(1.04);
    }
}

.page-index .vk-news-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-index .vk-news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.45s ease;
}

.page-index .vk-news-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.page-index .vk-news-card__date {
    font-size: 13px;
    color: var(--text-light);
}

.page-index .vk-news-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-index .vk-news-card__excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.page-index .vk-news-card__more {
    align-self: flex-start;
    margin-top: 4px;
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    border-bottom: 2px solid rgba(10, 209, 201, 0.45);
    transition: var(--transition);
}

@media (hover: hover) {
    .page-index .vk-news-card__more:hover {
        color: var(--primary-color);
        border-bottom-color: var(--primary-color);
    }
}

.page-index .vk-news-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-light);
    font-size: 15px;
    padding: 24px 16px;
}

.page-index .vk-news-empty a {
    color: var(--primary-dark);
    font-weight: 600;
}

.page-index .vk-news-card--skeleton .skeleton-block {
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: linear-gradient(90deg, var(--bg-light) 25%, #ebebeb 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: vk-skeleton-shimmer 1.2s ease-in-out infinite;
}

.page-index .skeleton-line {
    height: 12px;
    border-radius: 4px;
    background: var(--bg-light);
    margin-bottom: 8px;
}

.page-index .skeleton-line--short {
    width: 40%;
}

@keyframes vk-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Модалка новости */
.news-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.news-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.news-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.news-modal__panel {
    position: relative;
    width: min(100%, 560px);
    max-height: min(85vh, 640px);
    overflow: auto;
    background: var(--bg-color);
    border-radius: 12px;
    padding: 28px 24px 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(10, 209, 201, 0.15);
}

.news-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
}

@media (hover: hover) {
    .news-modal__close:hover {
        color: var(--text-color);
        background: var(--bg-light);
    }
}

.news-modal__date {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.news-modal__title {
    margin: 0 0 12px;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-color);
}

.news-modal__title[hidden] {
    display: none;
}

.news-modal__body {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-color);
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 20px;
}

.news-modal__body a {
    color: var(--primary-dark);
    text-decoration: underline;
}

.news-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.news-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: var(--transition);
}

.news-modal__btn--secondary {
    background: var(--bg-light);
    color: var(--text-color);
}

@media (hover: hover) {
    .news-modal__btn--secondary:hover {
        background: var(--border-color);
    }
}

.news-modal__btn--primary {
    background: var(--gradient-primary);
    color: #fff;
}

@media (hover: hover) {
    .news-modal__btn--primary:hover {
        opacity: 0.92;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page-index .home-projects-section {
    background: none;
    padding-top: 16px;
    padding-bottom: 40px;
}

.page-index .home-projects-section > .container > .home-section__heading {
    margin-bottom: 32px;
}

.page-index .home-projects-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

a.home-project-row {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.home-project-row:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: 4px;
    border-radius: 12px;
}

.page-index .home-project-row__inner {
    align-items: center;
    gap: clamp(16px, 2.5vw, 28px);
}

.page-index .home-projects-list .home-project-row:nth-child(even) .home-project-row__inner {
    flex-direction: row-reverse;
}

.page-index .home-project-row__media {
    flex: 0 0 auto;
    width: min(32%, 260px);
    max-width: 260px;
    margin: 0;
}

.page-index .home-project-row__media img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: none;
    object-fit: contain;
}

.page-index .home-project-row__text {
    flex: 1;
    min-width: 0;
}

.page-index .home-project-row__title {
    margin: 0 0 12px;
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
}

.page-index .home-project-row__desc {
    margin: 0 0 18px;
    font-size: clamp(17px, 2.1vw, 20px);
    line-height: 1.75;
    color: var(--text-color);
    max-width: 40em;
}

.page-index .home-project-row__more {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
    border-bottom: 2px solid rgba(10, 209, 201, 0.45);
    transition: var(--transition);
}

@media (hover: hover) {
    .page-index .home-project-row:hover .home-project-row__more {
        color: var(--primary-color);
        border-bottom-color: var(--primary-color);
    }
}

.page-index .home-cta-section {
    padding: 24px 0 64px;
    text-align: center;
}

.page-index .home-cta-section__inner {
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .page-index .home-project-row__inner,
    .page-index .home-projects-list .home-project-row:nth-child(even) .home-project-row__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    /* На мобильных .about-image { display: none } — показываем логотипы проектов на главной */
    .page-index .home-project-row .about-image.home-project-row__media {
        display: block;
        flex: none;
        width: auto;
        max-width: min(78%, 200px);
        margin: 0 auto;
    }

    .page-index .home-project-row__media img {
        margin: 0 auto;
    }

    .page-index .home-projects-list {
        gap: 40px;
    }
}

/* Блок контактов на главной */
.contacts-block-section {
    background: linear-gradient(180deg, rgba(10, 209, 201, 0.06) 0%, transparent 65%);
}

.contacts-block {
    max-width: 520px;
    margin: 0 auto;
    padding: 32px 28px;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.contacts-block__line {
    margin-bottom: 16px;
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.6;
}

.contacts-block__line:last-child {
    margin-bottom: 0;
}

.contacts-block__line a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
}

@media (hover: hover) {
    .contacts-block__line a:hover {
        text-decoration: underline;
    }
}

/* Страница «Чистые стены»: чередование фонов — бирюзовый с плавным уходом в белый, как блок «Мечты» */
.cs-band {
    position: relative;
    overflow: hidden;
}

/* Иначе в ленте фото обрезаются тень и hover (translate/scale) */
.page-chistye-steny .results-section.cs-band {
    overflow: visible;
    /* без огромного зазора перед «Партнёрами»: тень ленты закрывается padding у .cs-photos-strip */
    padding-bottom: clamp(40px, 5vw, 56px);
}

/* Не трогаем .about-section здесь: иначе градиент .cs-band--mint теряется (ниже специфичность). */
.page-chistye-steny .dreams-section,
.page-chistye-steny .results-section,
.page-chistye-steny .partners-section {
    background: none;
}

.page-chistye-steny .partners-section.section {
    padding-top: clamp(48px, 6vw, 64px);
}

/* Первый блок сразу под хедером — бирюзовый как у остальных «мятных» полос */
.page-chistye-steny .cs-band--hero,
.page-chistye-steny .cs-band--mint {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(10, 209, 201, 0.12) 12%,
        rgba(10, 209, 201, 0.1) 50%,
        rgba(10, 209, 201, 0.05) 88%,
        transparent 100%
    );
}

.page-chistye-steny .cs-band--hero {
    padding-top: 72px;
    padding-bottom: 80px;
}

/* «Светлый» блок: без сплошного белого — виден общий градиент страницы */
.page-chistye-steny .cs-band--plain {
    background: transparent;
}

/* Результаты ЧС: слева столбик цифр + подпись к видео, справа видео; фото — отдельный блок-лента */
.page-chistye-steny .results-section .cs-results-split {
    margin-top: 8px;
    align-items: center;
}

.page-chistye-steny .results-section .cs-results-stack {
    flex: 1;
    min-width: 0;
    max-width: min(460px, 100%);
}

.page-chistye-steny .results-section .cs-stats--vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
}

.page-chistye-steny .results-section .cs-stats--vertical .stat-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 16px 18px;
    margin: 0;
    min-height: clamp(88px, 11vw, 112px);
}

.page-chistye-steny .results-section .cs-results-split__video {
    flex: 0 1 520px;
    max-width: min(520px, 52%);
}

.page-chistye-steny .results-section .cs-results-split__photo {
    flex: 0 1 520px;
    max-width: min(520px, 52%);
}

.page-chistye-steny .results-section .cs-results-split__photo .cs-gallery__item--inline {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none; /* подложка/контур не нужен в покое */
    cursor: zoom-in;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
    filter: none;
}

@media (hover: hover) {
    /* Лёгкая тень только на наведении для фото в описаниях (без подложки в покое) */
    .page-chistye-steny .about-image--stack .cs-gallery__item--inline:hover,
    .page-chistye-steny .cs-hero .about-image .cs-gallery__item--hero:hover,
    .page-chistye-steny .results-section .cs-results-split__photo .cs-gallery__item--inline:hover {
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    }
}

.page-chistye-steny .results-section .cs-results-split__photo .cs-gallery__item--inline img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: unset; /* исходные пропорции */
    object-fit: contain; /* без обрезаний */
    object-position: center;
    border-radius: 12px;
}

.page-chistye-steny .results-section .cs-results-split:has(> .cs-results-split__video--full),
.page-chistye-steny .results-section .cs-results-split--video-centered {
    justify-content: center;
}

/* Без flex-grow: иначе единственный flex-элемент растягивается на всю строку и визуально прилипает к левому краю */
.page-chistye-steny .results-section .cs-results-split__video--full {
    flex: 0 1 min(720px, 100%);
    max-width: min(720px, 100%);
    width: 100%;
    margin-inline: auto;
}

.page-chistye-steny .results-section .cs-results-split__video .cs-video-box--split {
    margin: 0;
    max-width: none;
    width: 100%;
    filter: drop-shadow(0 10px 28px rgba(10, 209, 201, 0.2));
}

.page-chistye-steny .results-section .cs-results-split__video .results-video-player {
    display: block;
    width: 100%;
}

.page-chistye-steny .cs-photo-collection {
    margin-top: clamp(28px, 4vw, 44px);
    padding: clamp(6px, 1.5vw, 12px) 0 clamp(8px, 2vw, 16px);
    border-top: none;
}

.page-chistye-steny .cs-photo-collection__title {
    font-size: clamp(28px, 3.2vw, 36px);
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.2;
}

.page-chistye-steny .cs-photo-collection__hint {
    font-size: 16px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: clamp(24px, 3vw, 32px);
}

.page-chistye-steny .cs-photos-strip {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: clamp(16px, 2vw, 22px);
    overflow-x: auto;
    overflow-y: visible;
    margin-left: -20px;
    margin-right: -20px;
    /* место под тень и подъём карточки при hover */
    padding: 20px 20px 36px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.page-chistye-steny .cs-photos-strip .cs-gallery__item--strip {
    flex: 0 0 auto;
    width: clamp(220px, 32vw, 308px);
    height: var(--cs-photo-uniform-h);
    scroll-snap-align: start;
    align-self: stretch;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
}

.page-chistye-steny .cs-photos-strip .cs-gallery__item--strip img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    object-position: center;
}

@media (hover: hover) {
    .page-chistye-steny .cs-photos-strip .cs-gallery__item--strip:hover {
        transform: translateY(-6px) scale(1.015);
        box-shadow: 0 14px 36px rgba(10, 209, 201, 0.2), 0 6px 16px rgba(0, 0, 0, 0.08);
    }

    .page-chistye-steny .cs-photos-strip .cs-gallery__item--strip:hover img {
        transform: scale(1.03);
    }
}

@media (max-width: 768px) {
    .page-chistye-steny .results-section .cs-results-stack {
        max-width: 100%;
    }

    .page-chistye-steny .results-section .cs-results-split__video {
        max-width: 100%;
        flex: 1 1 auto;
    }

    .page-chistye-steny .results-section .cs-results-split__photo {
        max-width: 100%;
        flex: 1 1 auto;
    }
}

/* Верхний блок: как «О проекте» у мечты — слева фото, справа текст */
.page-chistye-steny .cs-hero .about-content {
    align-items: center;
}

.page-chistye-steny .cs-hero .about-image {
    flex: 0 1 480px;
    max-width: min(480px, 52%);
}

.page-chistye-steny .cs-hero .about-image .cs-gallery__item--hero {
    width: 100%;
    height: auto; /* без пустых полей: высота следует картинке */
    display: block;
    background: transparent;
    box-shadow: none; /* подложка/контур не нужен в покое */
    border-radius: 8px; /* совпадение с радиусом img */
    overflow: hidden;
}

.page-chistye-steny .cs-hero .about-image .cs-gallery__item--hero img {
    width: 100%;
    height: auto;
    object-fit: contain; /* без обрезаний */
    object-position: center;
    border-radius: 8px;
    min-height: 0;
    aspect-ratio: unset;
}

.page-chistye-steny .cs-hero .about-text .section-title {
    text-align: left;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .page-chistye-steny .cs-hero .about-image {
        max-width: 100%;
        flex: 1 1 auto;
    }
}

.cs-card {
    background: var(--bg-color);
    border-radius: 16px;
    padding: 36px 32px 40px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.07),
        0 12px 40px rgba(10, 209, 201, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(10, 209, 201, 0.12);
    transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.1), box-shadow 0.45s ease;
}

@media (hover: hover) {
    .cs-card:hover {
        transform: translateY(-4px);
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.1),
            0 16px 48px rgba(10, 209, 201, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 1);
    }
}

.cs-card--compact {
    padding: 28px 28px 32px;
}

.cs-split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 480px);
    gap: clamp(28px, 4vw, 52px);
    align-items: stretch;
}

/* Фото слева, текст справа */
.cs-split--reverse {
    grid-template-columns: minmax(300px, 480px) minmax(0, 1.2fr);
}

.cs-split--reverse .cs-split__media {
    order: -1;
}

.cs-split__text {
    min-width: 0;
}

.cs-split__media {
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.cs-split__media .cs-gallery__item--inline {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
}

.cs-split__media .cs-gallery__item--inline img {
    width: 100%;
    height: auto;
    min-height: 260px;
    max-height: 420px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.cs-split__media--stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cs-split__media--stack .cs-gallery__item--inline img {
    min-height: 200px;
    max-height: 320px;
    aspect-ratio: 4 / 3;
}

.cs-block-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 18px;
    line-height: 1.25;
}

.cs-block-title--center {
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.cs-prose p {
    margin-bottom: 18px;
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.85;
}

.cs-prose p:last-child {
    margin-bottom: 0;
}

.cs-prose--intro {
    max-width: 640px;
    margin: 0 auto 28px;
    text-align: center;
}

.cs-prose--center {
    text-align: center;
}

.cs-prose strong {
    color: var(--text-color);
    font-weight: 600;
}

.cs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 640px;
}

.cs-list--rich {
    margin: 0;
}

.cs-list--partners {
    max-width: 480px;
    margin: 0 auto 28px;
    text-align: center;
}

.cs-list--partners li {
    padding-left: 0;
    text-align: center;
}

.cs-list--partners li::before {
    display: none;
}

.cs-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.7;
}

.cs-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: 0 0 0 3px rgba(10, 209, 201, 0.2);
}

.cs-problems-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(300px, 460px);
    gap: clamp(28px, 3vw, 44px);
    align-items: start;
    margin-top: 8px;
}

.cs-problems-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.cs-problems-photos .cs-gallery__item--inline {
    width: 100%;
    min-width: 0;
}

.cs-problems-photos .cs-gallery__item--inline img {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 280px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.cs-stats-wrap {
    margin-top: 8px;
}

/* Одна анимация fade-in на сетку + фото, как у блока «Результаты в цифрах» на «Жить по-новому» */
.cs-infographic-reveal {
    width: 100%;
}

.page-chistye-steny .cs-problems-grid {
    align-items: center;
}

.page-chistye-steny .cs-problems-photos .cs-gallery__item--inline {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    height: var(--cs-photo-uniform-h);
    overflow: hidden;
}

.page-chistye-steny .cs-problems-photos .cs-gallery__item--inline img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-height: 0;
    aspect-ratio: unset;
}

.page-chistye-steny .results-section .results-stats {
    border-top: none;
    border-bottom: none;
}

/* «Результаты в цифрах» на «Чистых стенах»: размер фото как у «Жить по-новому» — без отдельных правил (общие .page-chistye-steny .results-section .cs-results-split__photo) */

/* Страница «Чистые стены»: портретные кадры — без обрезки, выше лента и герой */
[data-page="chisty-walls"] {
    --cs-photo-uniform-h: clamp(300px, 46vh, 460px);
}

[data-page="chisty-walls"] .cs-hero .about-image {
    flex: 0 1 min(340px, 46%);
    max-width: min(340px, 46%);
}

[data-page="chisty-walls"] #podrobnee .about-image {
    max-width: min(340px, 94%);
}

[data-page="chisty-walls"] .cs-photos-strip--chisty-portrait .cs-gallery__item--strip {
    width: clamp(168px, 22vw, 232px);
}

@media (max-width: 768px) {
    [data-page="chisty-walls"] .cs-hero .about-image {
        max-width: min(320px, 88%);
        flex: 1 1 auto;
    }
}

/* «Голос города»: сетка карточек и фото снизу — как у «Чистых стен» */
.page-chistye-steny .cs-golos-results-digits .results-stats.cs-stats--golos-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: clamp(16px, 2.2vw, 22px);
    max-width: min(960px, 100%);
    margin-left: auto;
    margin-right: auto;
    margin-top: clamp(12px, 2vw, 20px);
    padding: clamp(16px, 2vw, 24px) 0 clamp(8px, 1.5vw, 16px);
}

.page-chistye-steny .cs-golos-results-digits .results-stats.cs-stats--golos-cards .stat-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: clamp(100px, 13vw, 128px);
    text-align: center;
    padding: clamp(18px, 2.2vw, 22px) clamp(14px, 2vw, 18px);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(10, 209, 201, 0.08) 0%, rgba(8, 181, 174, 0.04) 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
    transition: var(--transition);
}

@media (hover: hover) {
    .page-chistye-steny .cs-golos-results-digits .results-stats.cs-stats--golos-cards .stat-item:hover {
        background: linear-gradient(135deg, rgba(10, 209, 201, 0.1) 0%, rgba(8, 181, 174, 0.05) 100%);
        transform: translateY(-3px);
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.6) inset,
            0 4px 15px rgba(10, 209, 201, 0.5);
    }
}

.page-chistye-steny .cs-golos-results-digits .results-stats.cs-stats--golos-cards .stat-number {
    margin-bottom: 6px;
}

.page-chistye-steny .cs-golos-results-digits .cs-stats-photos {
    margin-top: clamp(20px, 3vw, 32px);
}

/* «Голос города»: меньше зазор между сеткой цифр и блоком «Фото и видео» */
.page-chistye-steny.page-golos-goroda .cs-golos-results-digits.results-section.cs-band {
    padding-bottom: clamp(8px, 1.5vw, 20px);
}

.page-chistye-steny.page-golos-goroda .results-section.cs-band--plain {
    padding-top: clamp(12px, 2vw, 28px);
}

.page-chistye-steny.page-golos-goroda .results-section.cs-band--plain .cs-photo-collection {
    margin-top: 0;
    padding-top: 0;
}

.page-chistye-steny.page-golos-goroda .cs-golos-results-digits .cs-stats-photos {
    margin-top: clamp(12px, 2vw, 22px);
}

.page-chistye-steny.page-golos-goroda .golos-cta-footer {
    margin-bottom: 0;
}

.cs-stats--lift {
    margin-top: 0;
    margin-bottom: 28px;
}

.cs-stats-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 22px);
    width: 100%;
    max-width: min(920px, 100%);
    margin: 0 auto;
}

.cs-stats-photos .cs-gallery__item--inline img {
    width: 100%;
    height: auto;
    min-height: 220px;
    max-height: 340px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.cs-partners-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 22px);
    width: 100%;
    max-width: min(920px, 100%);
    margin: 8px auto 0;
}

.cs-partners-photos .cs-gallery__item--inline img {
    width: 100%;
    height: auto;
    min-height: 220px;
    max-height: 340px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.cs-video-box {
    max-width: 900px;
    margin: 28px auto 0;
    filter: drop-shadow(0 12px 32px rgba(10, 209, 201, 0.25));
}

.cs-gallery-section .section-subtitle {
    margin-bottom: 36px;
}

.cs-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 28px);
    margin-top: 12px;
    width: 100%;
    max-width: min(960px, 100%);
    margin-left: auto;
    margin-right: auto;
}

/* Как .dream-card: только вверх, без rotate; чуть слабее, чем у мечты */
.cs-gallery__item {
    display: block;
    padding: 0;
    border: none;
    border-radius: 14px;
    overflow: hidden;
    cursor: zoom-in;
    background: var(--bg-light);
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font: inherit;
    color: inherit;
}

.page-chistye-steny .cs-gallery__item img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.page-chistye-steny .cs-gallery__item {
    background: transparent;
    overflow: hidden;
}

.cs-gallery__item--hero {
    width: 100%;
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 4px 20px rgba(10, 209, 201, 0.35);
    display: block;
}

.cs-gallery__item--hero img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 240px;
    max-height: min(56vh, 520px);
    object-fit: cover;
    display: block;
}

@media (hover: hover) {
    /* Мечта: -15px + rotate + scale(1.03) на карточке; здесь только вверх, слабее */
    .cs-gallery__item:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 12px 32px rgba(10, 209, 201, 0.22), 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .cs-gallery__item--hero:hover {
        transform: translateY(-8px) scale(1.015);
        box-shadow: 0 12px 28px rgba(10, 209, 201, 0.2), 0 4px 14px rgba(0, 0, 0, 0.08);
    }

    .cs-gallery__item:hover img {
        transform: scale(1.05);
    }
}

/* Нижняя сетка «Ещё кадры» — крупные равные ячейки */
.cs-gallery-section .cs-gallery .cs-gallery__item img {
    width: 100%;
    height: auto;
    min-height: 280px;
    max-height: 480px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

@media (hover: hover) {
    .cs-stats--lift .stat-item {
        transition: transform 0.35s ease, box-shadow 0.35s ease;
    }

    .cs-stats--lift .stat-item:hover {
        transform: translateY(-5px) scale(1.02);
    }
}

@media (max-width: 900px) {
    .cs-split,
    .cs-split--reverse {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cs-split--reverse .cs-split__media {
        order: 0;
    }

    .cs-split__media {
        min-width: 0;
        max-width: 100%;
    }

    .cs-problems-grid {
        grid-template-columns: 1fr;
    }

    .cs-problems-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-chistye-steny {
        --cs-photo-uniform-h: clamp(228px, 48vw, 328px);
        --cs-photo-hero-h: clamp(220px, 50vw, 340px);
    }

    .page-index .logo-image,
    .page-chistye-steny .logo-image {
        max-height: 52px;
    }

    .page-index .logo,
    .page-chistye-steny .logo {
        height: 52px;
    }

    .nav-menu .nav-link {
        font-size: 16px;
    }

    .cs-split__media .cs-gallery__item--inline img {
        min-height: 220px;
        max-height: 360px;
    }

    .cs-gallery__item--hero img {
        min-height: 200px;
        max-height: min(42vh, 360px);
    }

    .cs-gallery-section .cs-gallery .cs-gallery__item img {
        min-height: 220px;
        max-height: 380px;
    }

    .cs-block-title {
        font-size: 22px;
    }

    .cs-card {
        padding: 24px 20px 28px;
    }

    .cs-stats-photos,
    .cs-partners-photos {
        grid-template-columns: 1fr;
    }
}

/* «Мечта ангела»: два блока цифр по годам */
.page-mechta-angela .mechta-dual-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 32px);
    margin-top: 12px;
    align-items: stretch;
}

.page-mechta-angela .mechta-year-block {
    border-radius: 16px;
    padding: clamp(22px, 3vw, 28px);
    border: none;
    box-shadow: var(--shadow);
    background: linear-gradient(160deg, rgba(10, 209, 201, 0.08) 0%, var(--bg-color) 55%);
}

.page-mechta-angela .mechta-year-block__title {
    margin: 0 0 6px;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: 700;
    color: var(--text-color);
}

.page-mechta-angela .mechta-year-block__note {
    margin: 0 0 18px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.45;
}

.page-mechta-angela .mechta-year-block .cs-stats--vertical {
    gap: 14px;
}

.page-mechta-angela #podrobnee,
.page-golos-goroda #podrobnee,
.page-chistye-steny #podrobnee {
    scroll-margin-top: clamp(88px, 14vh, 120px);
}

.page-mechta-angela .mechta-hero-lead,
.page-golos-goroda .mechta-hero-lead,
.page-chistye-steny .mechta-hero-lead {
    font-size: clamp(1.05rem, 2.2vw, 1.22rem);
    line-height: 1.58;
    color: var(--text-color);
    margin: 0 0 22px;
    max-width: 36em;
}

.page-mechta-angela .mechta-hero-more-wrap,
.page-golos-goroda .mechta-hero-more-wrap {
    margin: 0;
}

.page-mechta-angela .mechta-hero-more,
.page-golos-goroda .mechta-hero-more {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid rgba(10, 209, 201, 0.45);
    padding-bottom: 3px;
    transition:
        border-color 0.2s ease,
        color 0.2s ease;
}

.page-mechta-angela .mechta-hero-more:hover,
.page-golos-goroda .mechta-hero-more:hover {
    border-bottom-color: var(--primary-color);
    color: #089993;
}

.page-golos-goroda .golos-cta-footer {
    margin-top: clamp(24px, 3.5vw, 36px);
    margin-bottom: clamp(12px, 2vw, 20px);
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 600;
    line-height: 1.45;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: var(--text-color);
}

.page-mechta-angela .mechta-stages-section {
    padding-bottom: 4px;
}

.page-mechta-angela .mechta-stages-intro {
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
}

.page-mechta-angela .mechta-stages-visual {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: clamp(22px, 3vw, 36px);
    margin-top: clamp(32px, 4vw, 48px);
    max-width: 100%;
}

.page-mechta-angela .mechta-infographic {
    --mechta-node: 52px;
    --mechta-node-r: 26px;
    --mechta-line: 4px;
    --mechta-v-gap: clamp(14px, 2.2vw, 22px);

    position: relative;
    margin-top: 0;
    padding: clamp(28px, 3.5vw, 44px) clamp(14px, 2vw, 28px) clamp(24px, 3vw, 36px);
    background: linear-gradient(
        165deg,
        rgba(10, 209, 201, 0.14) 0%,
        rgba(10, 209, 201, 0.06) 42%,
        var(--bg-color) 100%
    );
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.page-mechta-angela .mechta-infographic--vertical {
    --mechta-tail-out: clamp(48px, 6.5vh, 68px);

    flex: 0 0 auto;
    width: fit-content;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.page-mechta-angela .mechta-infographic--vertical .mechta-infographic__track {
    min-width: 0;
    position: relative;
}

.page-mechta-angela .mechta-infographic--vertical .mechta-infographic__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--mechta-v-gap);
    position: relative;
    z-index: 1;
}

.page-mechta-angela .mechta-infographic--vertical .mechta-infographic__step {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    text-align: left;
    gap: 16px;
    padding: 8px 8px 8px 6px;
    position: relative;
    z-index: 1;
    flex: none;
}

/* Хвост выше первого кружка: сверху прозрачно, к центру кружка — плотнее */
.page-mechta-angela .mechta-infographic--vertical .mechta-infographic__step:first-child::before {
    content: '';
    position: absolute;
    left: calc(6px + var(--mechta-node-r));
    transform: translateX(-50%);
    width: var(--mechta-line);
    top: calc(-1 * var(--mechta-tail-out));
    height: calc(var(--mechta-tail-out) + 6px + var(--mechta-node-r));
    border-radius: 4px;
    background: linear-gradient(
        180deg,
        rgba(10, 209, 201, 0) 0%,
        rgba(10, 209, 201, 0.2) 42%,
        rgba(10, 209, 201, 0.55) 78%,
        #0ad1c9 100%
    );
    box-shadow: 0 0 16px rgba(10, 209, 201, 0.12);
    z-index: 0;
    pointer-events: none;
}

/* Между кружками — сплошная линия */
.page-mechta-angela .mechta-infographic--vertical .mechta-infographic__step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: calc(6px + var(--mechta-node-r));
    top: calc(6px + var(--mechta-node-r));
    transform: translateX(-50%);
    width: var(--mechta-line);
    height: calc(
        100% - (6px + var(--mechta-node-r)) + var(--mechta-v-gap) + (6px + var(--mechta-node-r))
    );
    border-radius: 4px;
    background: linear-gradient(180deg, #0ad1c9 0%, #08b5ae 100%);
    box-shadow: 0 0 12px rgba(10, 209, 201, 0.18);
    z-index: 0;
    pointer-events: none;
}

/* Хвост ниже последнего кружка: от центра вниз — растворяется */
.page-mechta-angela .mechta-infographic--vertical .mechta-infographic__step:last-child::after {
    content: '';
    position: absolute;
    left: calc(6px + var(--mechta-node-r));
    top: calc(6px + var(--mechta-node-r));
    transform: translateX(-50%);
    width: var(--mechta-line);
    height: var(--mechta-tail-out);
    border-radius: 4px;
    background: linear-gradient(
        180deg,
        #08b5ae 0%,
        rgba(10, 209, 201, 0.5) 38%,
        rgba(10, 209, 201, 0.12) 72%,
        rgba(10, 209, 201, 0) 100%
    );
    box-shadow: 0 0 16px rgba(10, 209, 201, 0.1);
    z-index: 0;
    pointer-events: none;
}

.page-mechta-angela .mechta-infographic--vertical .mechta-infographic__num {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: var(--mechta-node);
    height: var(--mechta-node);
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 22px rgba(10, 209, 201, 0.38);
    line-height: 1;
}

.page-mechta-angela .mechta-infographic--vertical .mechta-infographic__label {
    position: relative;
    z-index: 1;
    font-size: clamp(0.88rem, 1.35vw, 1rem);
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.42;
    max-width: none;
    padding-top: 0;
}

/* Фото снаружи карточки: высота строки = высоте инфографики (flex stretch + absolute fill) */
.page-mechta-angela .mechta-stages-visual .mechta-stages-photo {
    flex: 1 1 260px;
    min-width: 0;
    max-width: min(520px, 50vw);
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(10, 209, 201, 0.18);
    line-height: 0;
    min-height: 0;
}

.page-mechta-angela .mechta-stages-visual .mechta-stages-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}

@media (max-width: 899px) {
    .page-mechta-angela .mechta-stages-visual {
        flex-direction: column;
        align-items: center;
    }

    .page-mechta-angela .mechta-infographic--vertical {
        width: 100%;
        max-width: min(440px, 100%);
    }

    .page-mechta-angela .mechta-stages-visual .mechta-stages-photo {
        order: -1;
        flex: none;
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
        max-height: min(280px, 56vw);
    }

    .page-mechta-angela .mechta-stages-visual .mechta-stages-photo img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 28%;
    }
}

@media (max-width: 768px) {
    .page-mechta-angela .mechta-dual-stats {
        grid-template-columns: 1fr;
    }
}

/* «Мечта ангела»: только цифры под заголовком «Результаты в цифрах» */
.page-mechta-angela .results-section .mechta-results-stats-only {
    margin-top: 8px;
}

.page-mechta-angela .results-section .mechta-results-stats-only .mechta-dual-stats {
    margin-top: 0;
}

/* Видео в блоке с фото — над горизонтальной лентой */
.page-mechta-angela .cs-photo-collection .mechta-collection-video {
    max-width: min(720px, 100%);
    margin: clamp(20px, 3vw, 32px) auto clamp(28px, 4vw, 44px);
}

.page-mechta-angela .cs-photo-collection .mechta-collection-video__title {
    margin: 0 0 14px;
    text-align: center;
}

.page-mechta-angela .cs-photo-collection .mechta-collection-video__box {
    margin: 0;
    max-width: none;
    width: 100%;
    filter: drop-shadow(0 10px 28px rgba(10, 209, 201, 0.2));
}

.page-mechta-angela .cs-photo-collection .mechta-collection-video .results-video-player {
    display: block;
    width: 100%;
    border-radius: 12px;
}

.page-chistye-steny.page-golos-goroda .cs-photo-collection .golos-collection-video {
    max-width: min(720px, 100%);
    margin: clamp(20px, 3vw, 32px) auto clamp(28px, 4vw, 44px);
}

.page-chistye-steny.page-golos-goroda .cs-photo-collection .golos-collection-video__box {
    margin: 0;
    max-width: none;
    width: 100%;
    filter: drop-shadow(0 10px 28px rgba(10, 209, 201, 0.2));
}

.page-chistye-steny.page-golos-goroda .cs-photo-collection .golos-collection-video .results-video-player {
    display: block;
    width: 100%;
    border-radius: 12px;
}

.page-chistye-steny.page-zpn .cs-photo-collection .zpn-collection-video {
    max-width: min(720px, 100%);
    margin: clamp(20px, 3vw, 32px) auto clamp(28px, 4vw, 44px);
}

.page-chistye-steny.page-zpn .cs-photo-collection .zpn-collection-video__box {
    margin: 0;
    max-width: none;
    width: 100%;
    filter: drop-shadow(0 10px 28px rgba(10, 209, 201, 0.2));
}

.page-chistye-steny.page-zpn .cs-photo-collection .zpn-collection-video .results-video-player {
    display: block;
    width: 100%;
    border-radius: 12px;
}

/* «Вторая жизнь» (spam-urny.html): герой и фото у блоков проектов — чуть компактнее */
.page-vtoraya-zhizn .cs-hero .about-image {
    flex: 0 1 min(400px, 44%);
    max-width: min(400px, 44%);
}

.page-vtoraya-zhizn .about-section:not(.cs-hero) .about-image {
    flex: 0 1 min(300px, 38%);
    max-width: min(300px, 38%);
}

@media (max-width: 768px) {
    .page-vtoraya-zhizn .cs-hero .about-image,
    .page-vtoraya-zhizn .about-section:not(.cs-hero) .about-image {
        max-width: min(280px, 86%);
        margin-inline: auto;
    }
}

.page-vtoraya-zhizn .vz-hero-lead {
    font-size: clamp(1.05rem, 2.2vw, 1.18rem);
    line-height: 1.55;
    margin: 0;
    max-width: 36em;
}

.page-vtoraya-zhizn .vz-mini {
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
}

.page-vtoraya-zhizn .vz-mini__text {
    margin-bottom: 0;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.page-vtoraya-zhizn .vz-mini__more-wrap {
    margin: 1rem 0 0;
}

.page-vtoraya-zhizn .vz-text-link {
    display: inline-flex;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid rgba(10, 209, 201, 0.45);
    padding-bottom: 3px;
    transition:
        border-color 0.2s ease,
        color 0.2s ease;
}

.page-vtoraya-zhizn .vz-text-link:hover {
    border-bottom-color: var(--primary-color);
    color: #089993;
}

.page-vtoraya-zhizn #spam-urny-o-proekte {
    scroll-margin-top: clamp(88px, 14vh, 120px);
}
