@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-black: #000000;
    --bg-dark-grey: #121212;
    --bg-light-grey: #1E1E1E;
    --text-white: #FFFFFF;
    --text-grey: #AAAAAA;
    --accent-silver: #C0C0C0;
    --border-grey: #333333;
    --safe-area-inset: 16px;
    --header-height: 60px;
    --nav-height: 57px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Typography */
h1 {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

h3 {
    font-size: 16px;
    font-weight: 600;
}

p {
    font-size: 14px;
    color: var(--text-grey);
}

/* Layout */
.container {
    padding: 0 var(--safe-area-inset);
}

section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-grey);
}

.section-about section {
    padding: 80px 0;
}

/* Header & Nav */
header {
    background: var(--bg-black);
    padding: 20px var(--safe-area-inset);
    border-bottom: 1px solid var(--border-grey);
}

.logos-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.logo-icon-sq {
    width: 24px;
    height: 24px;
    background: var(--text-white);
    flex-shrink: 0;
}

.logo-icon-cr {
    width: 24px;
    height: 24px;
    background: var(--text-white);
    border-radius: 50%;
    flex-shrink: 0;
}

.logo-text-small {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    color: var(--text-white);
}

/* Burger Menu Base Styles */
.burger-menu {
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 10;
}

.burger-bar {
    height: 2px;
    background: var(--text-white);
    border-radius: 1px;
    transition: 0.3s;
}

.header-burger {
    flex-shrink: 0;
}

.quick-links {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--bg-black);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-grey);
}

.quick-links .container {
    display: flex;
    align-items: center;
    overflow-x: auto;
    gap: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-left: var(--safe-area-inset);
    padding-right: 80px;
    /* Reduced space: enough for gradient and burger wrap */
}

.quick-links .container::-webkit-scrollbar {
    display: none;
}

/* Gradient fade - pinned to the right of the sticky nav */
.nav-gradient-overlay {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    /* Slightly narrower gradient */
    background: linear-gradient(to right, transparent, var(--bg-black) 90%);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s;
}

.chip {
    padding: 8px 16px;
    background: var(--bg-light-grey);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-white);
    text-decoration: none;
    border: 1px solid var(--border-grey);
    white-space: nowrap;
    transition: background 0.2s;
}

/* Dynamic Burger in Nav - Wrapper style */
.nav-burger-wrapper {
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    background: var(--bg-black);
    z-index: 5;
    padding-left: 12px;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--border-grey);
}

.quick-links.is-sticky .nav-burger-wrapper {
    display: flex;
}

.chip.active {
    background: var(--text-white);
    color: var(--bg-black);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 30px var(--safe-area-inset);
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 8px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-grey);
    margin-bottom: 24px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 18px;
    background: var(--text-white);
    color: var(--bg-black);
    text-align: center;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.counters {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 32px 0;
}

.counter-item {
    text-align: center;
}

.counter-value {
    font-size: 24px;
    font-weight: 800;
    display: block;
}

.counter-label {
    font-size: 10px;
    color: var(--text-grey);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.anchor-link {
    color: var(--text-grey);
    text-decoration: underline;
    font-size: 13px;
    display: inline-block;
    margin-top: 20px;
}

/* Section spacing adjustments */
.section-participate {
    padding-top: 40px;
    padding-bottom: 40px;
    /* Reduced from 80px by half */
}

.section-trust {
    padding-top: 40px;
    padding-bottom: 54px;
    /* Reduced by ~1/3 from 80px */
}

.section-stories,
.section-numbers,
.section-partners,
.section-history,
.section-organizers {
    padding-top: 56px;
    /* Increased top spacing for more "air" */
    padding-bottom: 64px;
    /* Increased bottom spacing */
}

.section-organizers {
    padding-bottom: 80px;
    /* Extra space before footer */
}

.section-title {
    margin-bottom: 32px;
}

.section-subtitle {
    margin-top: -16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-grey);
}

.benefit-card.js-open-benefit {
    cursor: pointer;
}

.benefit-card.js-open-benefit:active {
    background: var(--bg-light-grey);
}

.btn-outline {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid var(--border-grey);
    border-radius: 12px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline:active {
    background: var(--bg-light-grey);
}

/* Steps Block */
.steps-grid {
    display: grid;
    gap: 12px;
}

.step-card {
    background: var(--bg-dark-grey);
    border: 1px solid var(--border-grey);
    border-radius: 14px;
    overflow: hidden;
}

.step-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.step-title-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.step-title-wrap h3 {
    font-size: 15px;
    line-height: 1.3;
}

.step-number {
    width: 28px;
    height: 28px;
    border: 1px solid var(--text-grey);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    /* Prevents squashing into oval shape */
}

.chevron {
    width: 12px;
    height: 12px;
    border-bottom: 2px solid var(--text-grey);
    border-right: 2px solid var(--text-grey);
    transform: rotate(45deg);
    transition: transform 0.3s;
}

.step-card.active .chevron {
    transform: rotate(-135deg);
}

.step-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s;
}

.step-card.active .step-content {
    max-height: 500px;
    padding-bottom: 20px;
}

/* Step Card Action Row (Step 2 in About) */
.step-card-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-dark-grey);
    padding: 20px;
    border-radius: 14px;
    border: 1px solid var(--border-grey);
    text-decoration: none;
    margin-bottom: 12px;
}

.step-card-action.light {
    background: var(--text-white);
    border: none;
}

.step-card-action.light h3,
.step-card-action.light .cta-arrow {
    color: var(--bg-black);
}

.step-card-action:active {
    background: var(--bg-light-grey);
}

.step-card-action.light:active {
    background: var(--accent-silver);
}

.step-card-action .step-number {
    background: var(--text-white);
    color: var(--bg-black);
    border: none;
}

.step-card-action.light .step-number {
    background: var(--bg-black);
    color: var(--text-white);
}

.step-card-action h3 {
    color: var(--text-white);
    flex: 1;
    margin-left: 16px;
}

.step-card-action .cta-arrow {
    font-size: 20px;
    color: var(--text-white);
}

/* Sub-block After Registration */
.after-reg-block {
    margin: 32px 0 40px;
}

.after-reg-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: var(--text-white);
}

.after-reg-grid {
    display: grid;
    gap: 8px;
}

.after-reg-card {
    background: var(--bg-light-grey);
    padding: 16px;
    border-radius: 12px;
    border-left: none;
    /* Убрана полоска по просьбе юзера */
}

.after-reg-card h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.after-reg-card p {
    font-size: 12px;
}

/* Attributes Grid */
.attributes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.attr-item {
    background: var(--bg-dark-grey);
    border: 1px solid var(--border-grey);
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
}

.attr-preview {
    aspect-ratio: 1/1;
    background: var(--bg-light-grey);
    border-radius: 10px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attr-item span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-white);
}

/* Stats 2x2 */
.stats-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-dark-grey);
    border: 1px solid var(--border-grey);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.stat-card .counter-value {
    font-size: 20px;
    margin-bottom: 4px;
}

/* Map Preview Card */
.map-preview-card {
    background: var(--bg-dark-grey);
    border: 1px solid var(--border-grey);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 12px;
}

.map-thumbnail {
    height: 140px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.map-thumbnail::after {
    content: 'Карта участия';
    font-size: 12px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 12px;
    border-radius: 20px;
}

.btn-map-open {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--bg-light-grey);
    color: var(--text-white);
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-top: 1px solid var(--border-grey);
}

/* Fullscreen Overlay Mode */
.fullscreen-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-black);
    z-index: 5000;
    display: none;
    flex-direction: column;
}

.fullscreen-view.active {
    display: flex;
}

.fv-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-grey);
}

.fv-close {
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.fv-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.map-controls {
    position: absolute;
    bottom: 24px;
    left: 16px;
    right: 16px;
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px;
    border-radius: 12px;
}

.map-control-btn {
    flex: 1;
    border: none;
    background: none;
    color: var(--text-grey);
    font-size: 11px;
    font-weight: 600;
    padding: 10px 4px;
    border-radius: 8px;
}

.map-control-btn.active {
    background: var(--bg-light-grey);
    color: var(--text-white);
}

/* Photo Gallery Carousel */
.photo-carousel {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 0 12px;
    /* Меньше нижний отступ, чтобы кнопка была ближе */
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.photo-carousel::-webkit-scrollbar {
    display: none;
}

.photo-slide {
    min-width: 85%;
    aspect-ratio: 4/3;
    background: var(--bg-dark-grey);
    border-radius: 16px;
    scroll-snap-align: center;
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 16px;
}

.gallery-item {
    aspect-ratio: 1/1;
    background: var(--bg-dark-grey);
    border-radius: 12px;
    overflow: hidden;
}

/* Video Block Styling */
.video-block {
    margin: 20px 0;
}

.video-player-mock {
    width: 100%;
    aspect-ratio: 16/9;
    background: #333;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.play-btn-circle {
    width: 64px;
    height: 64px;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
}

.play-icon-inner {
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid white;
    margin-left: 6px;
}

.history-text-toggle {
    max-height: 80px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
}

.history-text-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--bg-black));
}

.history-text-toggle.expanded {
    max-height: 2000px;
}

.history-text-toggle.expanded::after {
    display: none;
}

.btn-read-more-text {
    background: none;
    border: none;
    color: var(--text-white);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 0;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: center;
}

/* Why Trust (Benefit Cards) */
.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefit-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-dark-grey);
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--border-grey);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-light-grey);
    border-radius: 10px;
    flex-shrink: 0;
}

/* Stories Scroll */
.stories-scroll {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 0 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.stories-scroll::-webkit-scrollbar {
    display: none;
}

.story-card {
    min-width: 240px;
    background: var(--bg-dark-grey);
    border-radius: 20px;
    padding: 12px;
    border: 1px solid var(--border-grey);
}

.story-img {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--bg-light-grey);
    border-radius: 14px;
    margin-bottom: 12px;
}

.story-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-story {
    font-size: 12px;
    font-weight: 600;
    color: var(--bg-black);
    background: var(--text-white);
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
}

/* Helping Tabs */
.tabs-wrap {
    background: var(--bg-dark-grey);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--border-grey);
}

.tabs-nav {
    display: flex;
    gap: 4px;
    background: var(--bg-black);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    color: var(--text-grey);
    font-weight: 600;
    font-size: 13px;
    border-radius: 10px;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--bg-light-grey);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.tab-content {
    text-align: center;
}

.help-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    /* Safety for small screens */
}

.help-arrow {
    color: var(--text-grey);
    font-size: 16px;
}

.help-object {
    background: var(--bg-light-grey);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    max-width: 140px;
    line-height: 1.2;
}

/* Partners Marquee */
.partners-marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 10px 0;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: marquee-scroll 20s linear infinite;
}

.partner-grid-marquee {
    display: grid;
    grid-template-rows: repeat(2, 110px);
    grid-template-columns: repeat(3, 110px);
    gap: 12px;
    padding-right: 12px;
    /* Margin between sets */
}

.partner-card {
    width: 110px;
    height: 110px;
    background: var(--bg-dark-grey);
    border: 1px solid var(--border-grey);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Scroll half because we have 2 sets */
    }
}

.btn-all-partners {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    border: 1px solid var(--border-grey);
    border-radius: 12px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* Footer & Bottom UI */
footer {
    padding: 60px var(--safe-area-inset) 40px;
    background: var(--bg-black);
    text-align: center;
    border-top: 1px solid var(--border-grey);
}

.footer-thanks {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--text-white);
}

.footer-hashtag {
    font-size: 14px;
    color: var(--text-grey);
    margin-bottom: 40px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}

.footer-contacts a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.footer-tel {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-tel span {
    font-size: 12px;
    color: var(--text-grey);
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
    padding-top: 32px;
    border-top: 1px solid #1a1a1a;
}

.footer-legal a {
    color: var(--text-grey);
    text-decoration: none;
    font-size: 12px;
    line-height: 1.4;
}

.footer-bottom {
    font-size: 11px;
    color: #444;
    line-height: 1.6;
}

/* Bottom Sheet (Shell) */
.bottom-sheet {
    position: fixed;
    bottom: -80%;
    /* Start slightly off-screen */
    left: 0;
    width: 100%;
    height: 75vh;
    /* 3/4 of viewport height as requested */
    background: var(--bg-dark-grey);
    border-radius: 24px 24px 0 0;
    z-index: 2000;
    transition: bottom 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

.bottom-sheet.active {
    bottom: 0;
}

.bs-handle {
    width: 40px;
    height: 4px;
    background: var(--border-grey);
    border-radius: 2px;
    margin: 12px auto;
}

.bs-content {
    padding: 0 var(--safe-area-inset) 40px;
    overflow-y: auto;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1001;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Version 2 Specific Styles */
.header-v2 {
    padding: 16px var(--safe-area-inset);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-black);
    border-bottom: 1px solid var(--border-grey);
    position: sticky;
    top: 0;
    z-index: 1001;
}

.logo-v2 {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.05em;
    color: var(--text-white);
}

.btn-primary-small {
    background: var(--text-white);
    color: var(--bg-black);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.bottom-nav {
    position: fixed;
    bottom: 24px;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 16px;
    pointer-events: none;
}

.bottom-nav-inner {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-grey);
    padding: 12px 16px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
}

.nav-item {
    color: var(--text-grey);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    padding: 4px 0;
}

.nav-item:active {
    color: var(--text-white);
}

/* Hero Logos Adjustment */
.hero-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.hero-logos .logo-group {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    flex: none;
    /* Prevents expansion and shifting */
}

.hero-logos .logo-text-small {
    font-size: 10px;
    line-height: 1.2;
    color: var(--text-grey);
    font-weight: 500;
}

/* Special Step Card V2 */
.step-card-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--text-white);
    padding: 20px;
    border-radius: 20px;
    text-decoration: none;
    margin-bottom: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.step-card-cta:active {
    transform: scale(0.98);
}

.step-card-cta .step-number {
    background: var(--bg-black);
    color: var(--text-white);
}

.cta-arrow {
    font-size: 24px;
    color: var(--bg-black);
    font-weight: 300;
}

/* Modal Window V2 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-window {
    background: var(--bg-dark-grey);
    width: 100%;
    max-width: 340px;
    border-radius: 24px;
    border: 1px solid var(--border-grey);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 70vh;
}

.modal-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-grey);
}

.modal-header h2 {
    margin-bottom: 0;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-grey);
}

/* Fix spacing for Step 2 CTA in V2 */
.step-card-cta {
    margin-bottom: 0 !important;
    /* Let the track or gap handle it */
}

.steps-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* V2 Spacing and Layout Fixes */
.help-visual-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 16px 0;
    flex-wrap: nowrap;
}

.logo-circle-mini {
    width: 28px;
    height: 28px;
    background: #444;
    border-radius: 50%;
    flex-shrink: 0;
}

.help-arrow-mini {
    color: var(--text-grey);
    font-size: 12px;
    flex-shrink: 0;
}

.help-object-compact {
    background: var(--bg-dark-grey);
    border: 1px solid var(--border-grey);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    min-width: 100px;
    max-width: 140px;
    white-space: normal;
    overflow: visible;
}

.bouquet-count {
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-white);
}

.icon-flower {
    font-size: 16px;
}

/* Partner Grid in Modal/BS */
.partners-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-bottom: 24px;
}

.partner-card-static {
    aspect-ratio: 1/1;
    background: var(--bg-black);
    border: 1px solid var(--border-grey);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-grey);
}