/* ============================================
   SAVI FAMILY - Loft Style Website
   ============================================ */

/* Font Face Declarations - YFF RARE TRIAL */
@font-face {
    font-family: 'YFF RARE TRIAL';
    src: url('../assets/fonts/YFFRARETRIAL-AlphaRegular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'YFF RARE TRIAL';
    src: url('../assets/fonts/YFFRARETRIAL-AlphaBold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'YFF RARE TRIAL';
    src: url('../assets/fonts/YFFRARETRIAL-AlphaExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'YFF RARE TRIAL';
    src: url('../assets/fonts/YFFRARETRIAL-AlphaLight.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'YFF RARE TRIAL';
    src: url('../assets/fonts/YFFRARETRIAL-AlphaMedium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

/* CSS Variables */
:root {
    --accent-color: #B43A3A;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f8f8;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'YFF RARE TRIAL', sans-serif;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

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

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

/* Page Transition Animation */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.page-transition.loaded {
    opacity: 1;
    transform: translateY(0);
}

.page-exit {
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.header-social {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.header-social a {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.header-social a:hover {
    opacity: 1;
}

.header-social img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo {
    font-family: 'YFF RARE TRIAL', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-dark);
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section - Compact */
.hero {
    height: 50vh;
    min-height: 350px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
                url('../assets/images/IMG_2711.jpeg') center/cover no-repeat;
    color: white;
    text-align: center;
    margin-top: 80px;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-family: 'YFF RARE TRIAL', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 2rem;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-nav {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.hero-nav a {
    padding: 0.75rem 1.5rem;
    border: 1px solid white;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    font-weight: 300;
    transition: var(--transition);
}

.hero-nav a:hover {
    background: white;
    color: var(--text-dark);
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding-top: 0;
}

/* Full-Page Scroll - Disabled, now fully scrollable */
.fullpage-container {
    min-height: 100vh;
    overflow: visible;
    position: relative;
}

.fullpage-section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
    padding-top: 100px;
    padding-bottom: 100px;
    z-index: 1;
    isolation: isolate;
}

.fullpage-section#screen1 {
    padding: 0;
    min-height: 100vh;
    height: 100vh;
    z-index: 2;
}

.fullpage-section#screen2 {
    z-index: 3;
}

.fullpage-section#screen3 {
    z-index: 4;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    background: #000;
}

@media (max-width: 768px) {
    .carousel-container {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .carousel-container::-webkit-scrollbar {
        display: none;
    }
    
    .carousel-slide {
        flex: 0 0 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        position: relative;
    }
}

.carousel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
    z-index: 2;
    pointer-events: none;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    object-fit: cover;
    display: block;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
    display: block;
}

.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

.carousel-pause {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-pause:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-next-hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    color: white;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Roadmap Timeline - Loft Business Style */
.roadmap-container {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.roadmap-title {
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'YFF RARE TRIAL', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--text-dark);
}

.roadmap-path {
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
}

.roadmap-progress {
    position: sticky;
    top: 120px;
    width: 120px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    min-height: 600px;
}

.roadmap-progress-line {
    width: 4px;
    height: 100%;
    min-height: 500px;
    background: var(--border-color);
    position: relative;
    border-radius: 2px;
    margin: 0;
}

.roadmap-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, var(--accent-color), rgba(180, 58, 58, 0.8));
    border-radius: 2px;
    transition: height 0.3s ease;
    height: 50%;
    box-shadow: 0 0 10px rgba(180, 58, 58, 0.3);
}

.roadmap-progress-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 3px solid var(--border-color);
    z-index: 2;
    transition: all 0.3s ease;
    margin-top: -9px;
}

.roadmap-progress-marker.completed {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(180, 58, 58, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.roadmap-progress-marker.current {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(180, 58, 58, 0.7);
    transform: translateX(-50%) scale(1.4);
    width: 22px;
    height: 22px;
    margin-top: -11px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(180, 58, 58, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(180, 58, 58, 0.6);
    }
}

.roadmap-progress-label {
    position: absolute;
    right: calc(100% + 0.75rem);
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    font-family: 'YFF RARE TRIAL', sans-serif;
    background: var(--bg-white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.roadmap-progress-marker.completed .roadmap-progress-label {
    color: var(--accent-color);
}

.roadmap-progress-marker.current .roadmap-progress-label {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.85rem;
}

.roadmap-items-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.roadmap-item {
    position: relative;
    opacity: 0.7;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease forwards;
}

.roadmap-item.upcoming {
    opacity: 0.5;
}

.roadmap-item.current {
    opacity: 1;
    transform: translateX(10px);
}

.roadmap-item.completed {
    opacity: 1;
}

.roadmap-item:nth-child(1) { animation-delay: 0.1s; }
.roadmap-item:nth-child(2) { animation-delay: 0.2s; }
.roadmap-item:nth-child(3) { animation-delay: 0.3s; }
.roadmap-item:nth-child(4) { animation-delay: 0.4s; }
.roadmap-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 0.7;
        transform: translateY(0);
    }
}

.roadmap-item.completed {
    opacity: 1;
}

.roadmap-item.current {
    opacity: 1;
}

.roadmap-item:hover {
    opacity: 1;
    transform: translateY(-8px);
}

.roadmap-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: row;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-height: 280px;
}

.roadmap-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-color);
}

.roadmap-image-wrapper {
    width: 40%;
    min-width: 300px;
    overflow: hidden;
    position: relative;
    background: var(--bg-light);
}

.roadmap-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
    filter: brightness(0.9) saturate(0.95);
}

.roadmap-card:hover .roadmap-image {
    transform: scale(1.08);
    filter: brightness(1.15) saturate(1.2);
}

.roadmap-content {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.roadmap-year {
    font-family: 'YFF RARE TRIAL', sans-serif;
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.roadmap-card-title {
    font-family: 'YFF RARE TRIAL', sans-serif;
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: var(--text-dark);
    letter-spacing: 0.05em;
}

.roadmap-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), padding 0.6s ease, opacity 0.4s ease;
    padding: 0;
    opacity: 0;
}

.roadmap-card.active .roadmap-details,
.roadmap-card:hover .roadmap-details {
    max-height: 2000px;
    padding-top: 1.5rem;
    opacity: 1;
}

@media (min-width: 769px) {
    .roadmap-card:hover .roadmap-details {
        overflow-y: auto;
        max-height: 60vh;
    }
    
    .roadmap-card:hover .roadmap-details::-webkit-scrollbar {
        width: 6px;
    }
    
    .roadmap-card:hover .roadmap-details::-webkit-scrollbar-track {
        background: var(--bg-light);
        border-radius: 3px;
    }
    
    .roadmap-card:hover .roadmap-details::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 3px;
    }
}

.roadmap-details p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1rem;
}

.roadmap-details p:last-child {
    margin-bottom: 0;
}

/* Action Blocks Grid */
.action-blocks {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: auto;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.action-blocks-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.action-blocks-row:first-child {
    grid-template-columns: repeat(2, 1fr);
}

.action-blocks-row:last-child {
    grid-template-columns: repeat(3, 1fr);
}

.action-block {
    position: relative;
    border-radius: 8px;
    overflow: visible;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 300px;
    z-index: 1;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
}

.action-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.action-block-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
}

.action-block:hover .action-block-image {
    transform: scale(1.05);
}

.action-block-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    padding: 2rem 1.5rem 1.5rem;
    color: white;
    transform: translateY(0);
    transition: var(--transition);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 0 0 12px 12px;
}

.action-block-popup {
    position: fixed;
    background: var(--bg-white);
    backdrop-filter: blur(10px);
    color: var(--text-dark);
    padding: 2rem;
    border-radius: 8px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 99999;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 400px;
    width: max-content;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--border-color);
    left: 50%;
    top: 50%;
    max-height: 70vh;
    overflow-y: auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.action-block-popup::-webkit-scrollbar {
    width: 6px;
}

.action-block-popup::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.action-block-popup::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.action-block:hover .action-block-popup {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.action-block-popup:hover {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
    pointer-events: auto !important;
}

/* Сохраняем popup видимым при наведении на него */
.action-block:hover .action-block-popup:hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.action-block-popup p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.action-block-popup p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .action-block-popup {
        max-width: 90vw;
        width: auto;
    }
}

.action-block-overlay .action-block-description {
    font-size: 1.5em;
    line-height: 1.6;
}

.action-block-title {
    font-family: 'YFF RARE TRIAL', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 3;
    pointer-events: auto;
    flex-shrink: 0;
    cursor: pointer;
}

.action-block-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0;
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
    margin-top: 0.5rem;
    pointer-events: auto;
    display: none;
}

.action-block-title {
    position: relative;
    z-index: 3;
    pointer-events: none;
}

.action-block.active .action-block-description {
    max-height: 500px;
    padding-top: 1rem;
}

.action-block.active .action-block-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.7));
    padding-bottom: 2rem;
}

.action-block-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    position: relative;
    z-index: 4;
}

.action-block-social img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.action-block-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.action-block-social a:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

/* Стили для иконок соцсетей внутри popup (белый фон) */
.action-block-popup .action-block-social {
    margin-top: 1.5rem;
    justify-content: center;
}

.action-block-popup .action-block-social a {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.action-block-popup .action-block-social a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.action-block-popup .action-block-social a:hover img {
    filter: brightness(0) invert(1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    padding-top: 6rem;
}

.section {
    margin-bottom: 6rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-family: 'YFF RARE TRIAL', sans-serif;
}

/* Timeline Section - On First Screen */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    opacity: 1;
    transition: var(--transition);
}

.timeline-item.future {
    opacity: 0.6;
}

.timeline-item.current {
    opacity: 1;
}

.timeline-item.current .timeline-card {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(180, 58, 58, 0.2);
}

.timeline-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
    max-width: 45%;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
}

.timeline-item:nth-child(odd) .timeline-card {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-card {
    margin-right: auto;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.timeline-year {
    font-family: 'YFF RARE TRIAL', sans-serif;
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-family: 'YFF RARE TRIAL', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-preview {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.timeline-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    padding: 0;
}

.timeline-card.active .timeline-details {
    max-height: 2000px;
    padding-top: 1.5rem;
}

.timeline-details h4 {
    font-family: 'YFF RARE TRIAL', sans-serif;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.timeline-details p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 2rem;
    width: 20px;
    height: 20px;
    background: var(--bg-white);
    border: 3px solid var(--border-color);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: var(--transition);
}

.timeline-item.current .timeline-marker {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(180, 58, 58, 0.5);
}

.timeline-item.future .timeline-marker {
    background: #ccc;
    border-color: #ccc;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-light);
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    font-weight: 400;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(180, 58, 58, 0.2);
}

.btn:hover {
    background: #9a2e2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(180, 58, 58, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: white;
}

/* ============================================
   SHOP PAGE - REDESIGNED
   ============================================ */

/* Shop Grid - Адаптивная сетка */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    padding: 0;
}

/* Product Card - Унифицированные стили */
.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    height: 100%;
}

/* Эффекты наведения только для устройств с курсором */
@media (hover: hover) {
    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }
}

/* Обёртка для изображения с overflow для эффекта масштабирования */
.product-image-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    background: var(--bg-light);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

/* Эффект приближения изображения при наведении */
@media (hover: hover) {
    .product-card:hover .product-image {
        transform: scale(1.05);
    }
}

/* Контент карточки */
.product-card > *:not(.product-image-wrapper) {
    padding: 0 1.5rem;
}

.product-title {
    font-family: 'YFF RARE TRIAL', sans-serif;
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    line-height: 1.3;
    color: var(--text-dark);
    font-weight: 300;
}

/* Секция цены - унифицированная для всех товаров */
.product-price-section {
    min-height: 80px;
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0;
    line-height: 1.2;
}

/* Стили для поля ввода суммы сертификата */
.product-price-input-wrapper {
    width: 100%;
    margin: 0;
}

.price-input-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
}

.price-input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.product-price-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: inherit;
    transition: var(--transition);
    max-width: 200px;
    box-sizing: border-box;
}

.product-price-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(180, 58, 58, 0.1);
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    flex-shrink: 0;
}

.price-input-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}

/* Краткое описание */
.product-description-text {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    flex-grow: 0;
}

/* Статичное полное описание (всегда видимо) */
.product-description-static {
    margin-bottom: 1.5rem;
    padding: 0;
}

.product-description-static p {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 0.9rem;
    margin: 0;
}

/* Кнопка "В корзину" */
.add-to-cart {
    width: calc(100% - 3rem);
    margin: 0 1.5rem 1.5rem;
    margin-top: auto;
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
    min-height: 44px;
    box-sizing: border-box;
}

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .product-image-wrapper {
        height: 260px;
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    .shop-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 3rem;
    }
    
    .product-card {
        width: 100%;
    }
    
    .product-image-wrapper {
        height: 240px;
    }
    
    .product-title {
        font-size: 1.3rem;
        margin: 1.25rem 0 0.75rem;
    }
    
    .product-price-section {
        min-height: 70px;
        margin-bottom: 0.75rem;
    }
    
    .product-price {
        font-size: 1.6rem;
    }
    
    .product-price-input {
        font-size: 1.3rem;
        max-width: 100%;
    }
    
    .price-currency {
        font-size: 1.3rem;
    }
    
    .product-description-text {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .product-description-static {
        margin-bottom: 1.25rem;
    }
    
    .product-description-static p {
        font-size: 0.85rem;
    }
    
    .add-to-cart {
        width: calc(100% - 2rem);
        margin: 0 1rem 1.5rem;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    .product-card > *:not(.product-image-wrapper) {
        padding: 0 1rem;
    }
}

/* Маленькие мобильные (до 480px) */
@media (max-width: 480px) {
    .shop-grid {
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .product-image-wrapper {
        height: 220px;
    }
    
    .product-title {
        font-size: 1.2rem;
    }
    
    .product-price {
        font-size: 1.5rem;
    }
    
    .add-to-cart {
        min-height: 50px;
        font-size: 1rem;
    }
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 2rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-family: 'YFF RARE TRIAL', sans-serif;
    margin: 0;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.cart-items {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--text-light);
    font-size: 0.9rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
}

.cart-footer {
    padding: 2rem;
    border-top: 2px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.cart-checkout {
    width: 100%;
}

/* Cart Icon in Header */
.header-cart {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: var(--transition);
}

.header-cart:hover {
    opacity: 0.7;
}

.header-cart svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-dark);
}

.header-cart .cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: white;
    color: var(--accent-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Forms */
.form-section {
    max-width: 600px;
    margin: 0;
    padding: 3rem 2rem;
    position: relative;
    margin-left: auto;
}

.form-section::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: -3rem;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

/* ============================================
   BOOKING PAGE - OPTIMIZED LAYOUT
   ============================================ */

.booking-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    align-items: start;
    min-height: calc(100vh - 200px);
}

/* Левая колонка (2/3 ширины) */
.booking-visual {
    position: relative;
    height: 100%;
    min-height: 600px;
}

.booking-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-light);
}

.booking-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Кнопки навигации карусели */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.booking-carousel-wrapper:hover .carousel-nav {
    opacity: 1;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

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

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Призыв к действию */
.booking-cta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem 3rem;
    border-radius: 12px;
    color: white;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}

.booking-cta.hidden {
    opacity: 0;
    visibility: hidden;
}

.booking-cta p {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.booking-cta svg {
    margin: 0 auto;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Описание бронирования */
.booking-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    color: white;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
    z-index: 5;
    border-radius: 0 0 12px 12px;
}

.booking-description.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.description-text {
    margin-bottom: 1.5rem;
}

.description-text p {
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.description-text p:last-child {
    margin-bottom: 0;
}

/* Кнопка "Оставить заявку" в описании */
.booking-action-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.booking-action-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.booking-action-btn:active {
    transform: translateY(0);
}

/* Правая колонка (1/3 ширины) */
.booking-form-container {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.booking-form-container::-webkit-scrollbar {
    width: 6px;
}

.booking-form-container::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.booking-form-container::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

/* Мобильная версия */
@media (max-width: 1023px) {
    .booking-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: auto;
        padding: 1rem;
    }
    
    .booking-visual {
        min-height: 50vh;
        max-height: 50vh;
        position: relative;
        margin-bottom: 2rem;
    }
    
    .booking-carousel-wrapper {
        min-height: 50vh;
        max-height: 50vh;
        position: relative;
    }
    
    .booking-carousel {
        min-height: 50vh;
        max-height: 50vh;
    }
    
    .booking-form-container {
        position: relative;
        top: auto;
        max-height: none;
        overflow-y: visible;
        padding-top: 0;
    }
    
    .carousel-nav {
        opacity: 1;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .booking-cta {
        padding: 1.5rem 2rem;
    }
    
    .booking-cta p {
        font-size: 1rem;
    }
    
    .booking-description {
        padding: 1.5rem;
        position: absolute;
        bottom: 0;
        max-height: 40%;
        overflow-y: auto;
    }
    
    .booking-description::-webkit-scrollbar {
        width: 4px;
    }
    
    .booking-description::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.5);
        border-radius: 2px;
    }
}

/* Планшетная версия */
@media (min-width: 768px) and (max-width: 1023px) {
    .booking-container {
        grid-template-columns: 1fr;
    }
}

/* Старые стили для совместимости (можно удалить после тестирования) */
.booking-info-block {
    display: none;
}

.booking-info-wrapper {
    display: none;
}

.booking-social-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.booking-social-buttons.visible {
    opacity: 1;
    visibility: visible;
}

#bookingSubmitBtn:hover ~ #bathhouseSocialButtons,
#bathhouseInfoBlock:hover .booking-social-buttons {
    opacity: 1;
    visibility: visible;
}

.booking-social-buttons a {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.booking-social-buttons a:hover {
    transform: scale(1.1);
    background: #9a2e2e;
}

.booking-social-buttons img {
    width: 24px;
    height: 24px;
    margin: 0;
}

.booking-brick-button {
    display: none;
    width: 100%;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.booking-brick-button.visible {
    display: flex;
}

.booking-brick-button:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(180, 58, 58, 0.25);
}

.booking-brick-button img {
    width: 32px;
    height: 32px;
    margin: 0;
    object-fit: contain;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(180, 58, 58, 0.1);
}


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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.3rem;
    cursor: pointer;
}

.checkbox-group label {
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.6;
}

.checkbox-group a {
    color: var(--accent-color);
    text-decoration: underline;
}

.form-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 4000;
    opacity: 0;
    transition: var(--transition);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Footer - Compact (50% height) */
footer {
    background: var(--text-dark);
    color: white;
    padding: 1rem 2rem 0.75rem;
    margin-top: 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.footer-section h4 {
    font-family: 'YFF RARE TRIAL', sans-serif;
    margin-bottom: 0.5rem;
    color: white;
    font-size: 0.85rem;
    font-weight: 300;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
    transition: var(--transition);
    font-size: 0.8rem;
}

.footer-section a img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.footer-brick-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    margin-top: 1rem;
    justify-content: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.footer-brick-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.footer-brick-button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    margin: 0;
    flex: 1;
    text-align: left;
}

.footer-bottom .footer-brick-button {
    margin: 0;
    flex-shrink: 0;
}

/* ============================================
   FLOATING BRICK BUTTON - Статичная кнопка в правом нижнем углу
   ============================================ */
.floating-brick-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 70px;
    height: 70px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    overflow: hidden;
}

.floating-brick-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 1);
}

.floating-brick-button img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .floating-brick-button {
        width: 60px;
        height: 60px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .floating-brick-button img {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .floating-brick-button {
        width: 56px;
        height: 56px;
        bottom: 1rem;
        right: 1rem;
    }
    
    .floating-brick-button img {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   LEGAL PAGE - Map and Reviews
   ============================================ */
.map-section-wrapper {
    margin: 3rem 0;
}

.map-section-wrapper h2 {
    margin-bottom: 2rem;
}

.map-and-reviews {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.map-container {
    position: relative;
}

.map-container iframe {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    font-weight: 500;
}

.map-link:hover {
    text-decoration: underline;
}

.reviews-section {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.reviews-section h3 {
    font-family: 'YFF RARE TRIAL', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.rating-display {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 2px solid var(--border-color);
}

.rating-display .stars {
    font-size: 2rem;
    color: #FFD700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.2rem;
}

.rating-display .rating-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.rating-display .rating-source {
    font-size: 0.9rem;
    color: var(--text-light);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.review-author {
    font-weight: 600;
    color: var(--text-dark);
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.review-stars {
    color: #FFD700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.1rem;
}

.review-text {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.95rem;
}

.reviews-link {
    display: inline-block;
    text-align: center;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 1rem;
}

.reviews-link:hover {
    background: #9a2e2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(180, 58, 58, 0.3);
}

@media (max-width: 1024px) {
    .map-and-reviews {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .map-container iframe {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .map-and-reviews {
        gap: 1.5rem;
    }
    
    .reviews-section {
        padding: 1.5rem;
    }
    
    .reviews-section h3 {
        font-size: 1.3rem;
    }
    
    .rating-display {
        padding: 1.25rem;
    }
    
    .rating-display .stars {
        font-size: 1.75rem;
    }
    
    .review-item {
        padding: 1.25rem;
    }
}

/* Legal Page */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.8;
}

.legal-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.contact-info {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 4px;
    margin: 2rem 0;
}

.contact-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.contact-column h3 {
    margin-bottom: 1rem;
    font-family: 'YFF RARE TRIAL', sans-serif;
    color: var(--accent-color);
}

.contact-info a {
    display: block;
    margin: 0.75rem 0;
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    text-decoration: underline;
}

.social-link-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
    padding: 0.25rem 0;
}

.social-link-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.social-link-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.social-link-item a:hover {
    text-decoration: underline;
}

.contact-info h3 {
    margin-top: 0;
}

.map-container {
    margin: 3rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.map-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.map-link:hover {
    text-decoration: underline;
}

/* Fix Yandex Map */
.map-container iframe[src*="yandex"] {
    pointer-events: auto;
}

/* Fix for Yandex Maps embed */
.map-container {
    position: relative;
}

.map-container iframe {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-social {
        display: none;
    }
    
    .header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .contact-two-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Исправление наложения блоков на мобильных */
    .fullpage-section {
        overflow: visible;
        padding-top: 80px;
        padding-bottom: 80px;
        margin-bottom: 0;
        position: relative;
    }
    
    .fullpage-section#screen1 {
        padding: 0;
        height: 100vh;
        overflow: hidden;
    }
    
    .fullpage-section#screen2 {
        overflow: visible;
        min-height: auto;
    }
    
    .fullpage-section#screen3 {
        overflow: visible;
        min-height: auto;
    }
    
    .action-blocks {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
        overflow: visible;
        position: relative;
        z-index: 1;
    }
    
    .action-blocks-row {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .action-blocks-row:first-child {
        grid-template-columns: 1fr !important;
    }
    
    .action-blocks-row:last-child {
        grid-template-columns: 1fr !important;
    }
    
    .action-block {
        height: 250px;
        overflow: visible;
        position: relative;
        z-index: 1;
    }
    
    .action-block {
        position: relative;
    }
    
    .action-block.mobile-action-block:hover {
        transform: none;
    }
    
    .action-block.mobile-action-block:hover .action-block-image {
        transform: none;
    }
    
    .action-block-popup {
        max-width: 90vw;
        padding: 1.5rem;
        font-size: 0.85rem;
        max-height: 60vh;
        overflow-y: auto;
        position: fixed;
        z-index: 99999;
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, -50%) scale(0.95);
    }
    
    .action-block.popup-open .action-block-popup {
        opacity: 1;
        pointer-events: auto;
        transform: translate(-50%, -50%) scale(1);
    }
    
    .roadmap-container {
        padding: 3rem 1rem;
        overflow: visible;
        position: relative;
        z-index: 1;
    }
    
    .roadmap-path {
        flex-direction: column;
        overflow: visible;
    }
    
    .roadmap-progress {
        position: relative;
        top: auto;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        padding: 1rem 0;
        min-height: auto;
    }
    
    .roadmap-progress-line {
        width: 80%;
        height: 4px;
        flex: none;
        margin: 0 1rem;
        min-height: 4px;
    }
    
    .roadmap-progress-fill {
        width: 50%;
        height: 100%;
        top: 0;
    }
    
    .roadmap-progress-marker {
        top: 50%;
        transform: translateY(-50%);
        margin-top: 0;
    }
    
    .roadmap-progress-marker.current {
        transform: translateY(-50%) scale(1.3);
        margin-top: 0;
    }
    
    .roadmap-progress-marker[style*="top: 0%"] { left: 0%; top: 50% !important; }
    .roadmap-progress-marker[style*="top: 25%"] { left: 25%; top: 50% !important; }
    .roadmap-progress-marker[style*="top: 50%"] { left: 50%; top: 50% !important; }
    .roadmap-progress-marker[style*="top: 75%"] { left: 75%; top: 50% !important; }
    .roadmap-progress-marker[style*="top: 100%"] { left: 100%; top: 50% !important; }
    
    .roadmap-progress-label {
        left: 50%;
        right: auto;
        top: auto;
        bottom: calc(100% + 0.5rem);
        transform: translateX(-50%);
    }
    
    .roadmap-card {
        flex-direction: column;
        min-height: auto;
        overflow: visible;
    }
    
    .roadmap-image-wrapper {
        width: 100%;
        min-width: 100%;
        height: 250px;
    }
    
    .roadmap-content {
        padding: 1.5rem;
    }
    
    .roadmap-details {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), padding 0.6s ease, opacity 0.4s ease;
        padding: 0;
        opacity: 0;
    }
    
    .roadmap-card.active .roadmap-details {
        max-height: 2000px;
        padding-top: 1.5rem;
        opacity: 1;
        overflow-y: auto;
        max-height: 60vh;
    }
    
    .roadmap-card.active .roadmap-details::-webkit-scrollbar {
        width: 4px;
    }
    
    .roadmap-card.active .roadmap-details::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 2px;
    }
    
    .carousel-controls {
        bottom: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Горизонтальный скролл для карусели на мобильных */
    .carousel-container {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .carousel-container::-webkit-scrollbar {
        display: none;
    }
    
    .carousel-slide {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
    

    .menu-toggle {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: white;
        padding: 2rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }

    nav ul.active {
        left: 0;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-card {
        max-width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }

    .timeline-marker {
        left: 20px;
    }

    .hero-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .shop-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }
    
    .action-blocks {
        padding: 1rem 0.5rem;
        gap: 1rem;
    }
    
    .action-blocks-row {
        gap: 1rem;
    }
    
    .action-block {
        height: 200px;
    }
    
    .action-block-title {
        font-size: 1rem;
    }
    
    .action-block-popup {
        max-width: 95vw;
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .carousel-pause {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .roadmap-container {
        padding: 2rem 0.5rem;
    }
    
    .roadmap-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom p {
        text-align: center;
    }
}

