/* ================================
   A&A Design - Modern Liquid Glass
   Main Stylesheet v2.1 - UPDATED
   ================================ */

/* Root Variables */
:root {
    --primary-pink: #FFB5C5;
    --accent-red: #F01030;
    --light-pink: #FFF0F3;
    --black: #1a1a1a;
    --white: #ffffff;
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 189, 200, 0.3);
    --glass-shadow: 0 8px 32px rgba(240, 16, 48, 0.1);
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(240, 16, 48, 0.08);
    --shadow-medium: 0 8px 32px rgba(240, 16, 48, 0.12);
    --shadow-strong: 0 20px 40px rgba(240, 16, 48, 0.15);
    
    /* Transitions */
    --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-small: 12px;
    --radius-medium: 16px;
    --radius-large: 24px;
    --radius-pill: 50px;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    
    /* Bottom Nav Height */
    --bottom-nav-height: 70px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-pink) 100%);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: calc(var(--bottom-nav-height) + 20px);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
}

h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }

p {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* ================================
   Glass Effect Utility
   ================================ */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* ================================
   Floating Logo
   ================================ */
.floating-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    opacity: 0.9;
    transition: var(--transition-fast);
    pointer-events: none;
}

.floating-logo .logo-img {
    height: 50px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.floating-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

body.scrolled .floating-logo {
    opacity: 0.7;
}

body.scrolled .floating-logo .logo-img {
    height: 40px;
}

/* ================================
   Main Content
   ================================ */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 40px;
}

.section {
    display: none;
    opacity: 0;
    animation: fadeOut 0.3s ease;
}

.section.active {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

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

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ================================
   Section Headers
   ================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--accent-red), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 15px;
    opacity: 0.8;
}

/* ================================
   Hero Section (Compact)
   ================================ */
.hero-compact {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-large);
    margin-bottom: var(--spacing-2xl);
    box-shadow: var(--glass-shadow);
}

.hero-compact h1 {
    font-size: 28px;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--accent-red), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-compact p {
    font-size: 15px;
    opacity: 0.85;
    line-height: 1.7;
    margin: 0;
}

/* ================================
   Services Grid
   ================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .services-grid {
        gap: var(--spacing-sm);
    }
}

/* ================================
   Service Card (Glass)
   ================================ */
.service-card {
    position: relative;
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: var(--radius-large);
    transition: var(--transition-fast);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 320px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-pink);
}

.service-card:hover::before {
    left: 100%;
}

.service-card:active {
    transform: translateY(-4px) scale(0.98);
}

.service-card.express {
    background: linear-gradient(135deg, rgba(240, 16, 48, 0.1), rgba(255, 181, 197, 0.2));
    border: 2px solid var(--accent-red);
    animation: expressGlow 3s ease-in-out infinite;
}

@keyframes expressGlow {
    0%, 100% { 
        box-shadow: 0 8px 32px rgba(240, 16, 48, 0.2);
    }
    50% { 
        box-shadow: 0 8px 32px rgba(240, 16, 48, 0.35);
    }
}

.service-card.express .card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-red);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--spacing-md);
    color: var(--accent-red);
    opacity: 0.9;
}

.card-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--black);
}

.card-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-red);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.5px;
}

.card-details {
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.detail-item {
    font-size: 14px;
    color: var(--black);
    opacity: 0.75;
    line-height: 1.5;
}

.glass-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent-red), #d00a28);
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    box-shadow: 0 4px 16px rgba(240, 16, 48, 0.25);
    position: relative;
    overflow: hidden;
}

.glass-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.glass-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240, 16, 48, 0.35);
}

.glass-btn:hover::before {
    width: 300px;
    height: 300px;
}

.glass-btn:active {
    transform: translateY(0) scale(0.98);
}

.glass-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* ================================
   3D Books Section - CENTERED & SMALLER
   ================================ */
.books-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    perspective: 1500px;
    width: 100%;
    min-height: 450px;
}

@media (max-width: 768px) {
    .books-grid {
        padding: var(--spacing-xl) var(--spacing-md);
        min-height: 400px;
    }
}

.book-container {
    width: 100%;
    max-width: 500px;
    height: 350px;
    perspective: 1500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    position: relative;
}

.book {
    position: relative;
    width: 200px;
    height: 280px;
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    transform: rotateY(0deg) rotateX(0deg);
    animation: breathe 4s ease-in-out infinite;
    margin: 0 auto;
}

@keyframes breathe {
    0%, 100% { 
        transform: rotateY(0deg) rotateX(0deg) scale(1);
    }
    50% { 
        transform: rotateY(0deg) rotateX(0deg) scale(1.02);
    }
}

.book:hover {
    transform: rotateY(0deg) rotateX(5deg) scale(1.05);
    animation: none;
}

.book-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    border-radius: 5px 15px 15px 5px;
    box-shadow: 
        12px 12px 30px rgba(0, 0, 0, 0.35),
        -3px 0 10px rgba(0, 0, 0, 0.15);
    transition: all 0.8s ease;
    z-index: 5;
    transform-origin: left center;
}

.book-spread {
    position: absolute;
    width: 200%;
    height: 100%;
    top: 0;
    left: -50%;
    transform-style: preserve-3d;
    opacity: 0;
    pointer-events: none;
    transition: all 0.8s ease;
    display: flex;
    visibility: hidden;
}

.book-spread.active {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}

.page-left, .page-right {
    position: absolute;
    width: 50%;
    height: 100%;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    background: white;
}

.page-left {
    left: 0;
    transform: rotateY(0deg);
    transform-origin: right center;
    border-radius: 15px 5px 5px 15px;
}

.page-right {
    right: 0;
    transform: rotateY(0deg);
    transform-origin: left center;
    border-radius: 5px 15px 15px 5px;
}

.page-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.page-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-spine {
    position: absolute;
    left: -8px;
    top: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-red), #d00a28);
    border-radius: 5px 0 0 5px;
    box-shadow: inset 2px 0 5px rgba(0, 0, 0, 0.4);
    transform: rotateY(-90deg);
    transform-origin: right center;
    z-index: 4;
}

/* Book States - ALL CENTERED */
.book-container.state-0 .book {
    transform: rotateY(0deg) rotateX(0deg);
}

.book-container.state-0 .book-cover {
    transform: rotateY(0deg);
    opacity: 1;
}

.book-container.state-0 .book-spread {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* When book is open (states 1-9), keep it centered and slightly smaller */
.book-container.state-1 .book,
.book-container.state-2 .book,
.book-container.state-3 .book,
.book-container.state-4 .book,
.book-container.state-5 .book,
.book-container.state-6 .book,
.book-container.state-7 .book,
.book-container.state-8 .book,
.book-container.state-9 .book {
    transform: rotateY(0deg) rotateX(0deg) scale(0.85);
    animation: none;
}

.book-container.state-1 .book-cover,
.book-container.state-2 .book-cover,
.book-container.state-3 .book-cover,
.book-container.state-4 .book-cover,
.book-container.state-5 .book-cover,
.book-container.state-6 .book-cover,
.book-container.state-7 .book-cover,
.book-container.state-8 .book-cover,
.book-container.state-9 .book-cover {
    transform: rotateY(-180deg);
    opacity: 0;
}

/* Open book spreads - perfectly centered */
.book-container.state-1 .book-spread-1,
.book-container.state-2 .book-spread-2,
.book-container.state-3 .book-spread-3,
.book-container.state-4 .book-spread-4,
.book-container.state-5 .book-spread-5,
.book-container.state-6 .book-spread-6,
.book-container.state-7 .book-spread-7,
.book-container.state-8 .book-spread-8,
.book-container.state-9 .book-spread-9 {
    left: -50%;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .book-container {
        max-width: 400px;
        height: 300px;
    }
    
    .book {
        width: 180px;
        height: 250px;
    }
    
    .book-container.state-1 .book,
    .book-container.state-2 .book,
    .book-container.state-3 .book,
    .book-container.state-4 .book,
    .book-container.state-5 .book,
    .book-container.state-6 .book,
    .book-container.state-7 .book,
    .book-container.state-8 .book,
    .book-container.state-9 .book {
        transform: rotateY(0deg) rotateX(0deg) scale(0.75);
    }
}

@media (max-width: 480px) {
    .book-container {
        max-width: 100%;
        height: 280px;
    }
    
    .book {
        width: 160px;
        height: 220px;
    }
    
    .book-container.state-1 .book,
    .book-container.state-2 .book,
    .book-container.state-3 .book,
    .book-container.state-4 .book,
    .book-container.state-5 .book,
    .book-container.state-6 .book,
    .book-container.state-7 .book,
    .book-container.state-8 .book,
    .book-container.state-9 .book {
        transform: rotateY(0deg) rotateX(0deg) scale(0.7);
    }
}

/* ================================
   FAQ Section
   ================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.faq-item {
    border-radius: var(--radius-medium);
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-item:hover {
    box-shadow: var(--shadow-medium);
}

.faq-question {
    padding: var(--spacing-lg);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
    user-select: none;
    font-size: 16px;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: var(--accent-red);
    transition: transform var(--transition-fast);
    font-weight: 300;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--spacing-lg);
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-smooth);
    opacity: 0;
    font-size: 14px;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    max-height: 600px;
    opacity: 1;
}

/* ================================
   Map Section
   ================================ */
.map-section {
    margin-top: var(--spacing-2xl);
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-large);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.yandex-map {
    width: 100%;
    height: 100%;
}

/* Delivery Notice - NEW */
.delivery-notice {
    padding: var(--spacing-lg);
    border-radius: var(--radius-medium);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 181, 197, 0.2), rgba(255, 240, 243, 0.5));
    border: 1px solid var(--glass-border);
}

.delivery-notice-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--black);
    opacity: 0.85;
}

.delivery-notice-text strong {
    color: var(--accent-red);
    font-weight: 600;
}

.typography-info {
    padding: var(--spacing-lg);
    border-radius: var(--radius-medium);
    margin-bottom: var(--spacing-lg);
}

.typography-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.typography-city {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-red);
}

.close-info-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(240, 16, 48, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.close-info-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent-red);
}

.close-info-btn:hover {
    background: var(--accent-red);
}

.close-info-btn:hover svg {
    stroke: var(--white);
}

.typography-address {
    font-size: 15px;
    margin-bottom: var(--spacing-lg);
    opacity: 0.85;
}

.typography-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.action-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: var(--radius-small);
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

.cities-list {
    margin-top: var(--spacing-xl);
}

.cities-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-sm);
}

.city-btn {
    padding: var(--spacing-md);
    background: var(--glass-bg);
    backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-small);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
}

.city-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: var(--primary-pink);
}

.city-btn.active {
    background: linear-gradient(135deg, var(--primary-pink), var(--light-pink));
    border-color: var(--accent-red);
}

/* ================================
   Contacts Section - ALIGNED
   ================================ */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.contact-card {
    position: relative;
    padding: var(--spacing-xl);
    border-radius: var(--radius-large);
    text-decoration: none;
    color: var(--black);
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 200px;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.contact-icon {
    width: 60px;
    height: 60px;
    color: var(--accent-red);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.contact-label {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: var(--spacing-xs);
}

.contact-value {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.contact-arrow {
    width: 24px;
    height: 24px;
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-arrow svg {
    width: 100%;
    height: 100%;
    stroke-width: 2;
}

.work-hours {
    padding: var(--spacing-xl);
    border-radius: var(--radius-large);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.work-hours-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.work-hours-time {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: var(--spacing-xs);
}

.work-hours-response {
    font-size: 14px;
    opacity: 0.75;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.stat-item {
    padding: var(--spacing-xl);
    border-radius: var(--radius-medium);
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-red);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 14px;
    opacity: 0.75;
}

/* ================================
   Bottom Navigation (Liquid Glass)
   ================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 var(--spacing-md);
    z-index: 999;
    border-top: 1px solid var(--glass-border);
    border-radius: var(--radius-large) var(--radius-large) 0 0;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--transition-fast);
    border-radius: var(--radius-small);
    position: relative;
}

.nav-icon {
    width: 24px;
    height: 24px;
    stroke: var(--black);
    opacity: 0.5;
    transition: var(--transition-fast);
    stroke-width: 2;
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--black);
    opacity: 0.5;
    transition: var(--transition-fast);
}

.nav-item:hover .nav-icon,
.nav-item:hover .nav-label {
    opacity: 0.8;
}

.nav-item.active {
    background: rgba(240, 16, 48, 0.1);
}

.nav-item.active .nav-icon {
    stroke: var(--accent-red);
    opacity: 1;
    transform: scale(1.1);
}

.nav-item.active .nav-label {
    color: var(--accent-red);
    opacity: 1;
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--accent-red);
    border-radius: 0 0 var(--radius-pill) var(--radius-pill);
}

/* ================================
   Footer (Minimal)
   ================================ */
.footer {
    text-align: center;
    padding: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.footer-text {
    font-size: 12px;
    opacity: 0.6;
}

/* ================================
   Utilities
   ================================ */
.hidden { display: none !important; }
.visible { display: block !important; }

/* ================================
   Animations
   ================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

/* ================================
   Scrollbar
   ================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-pink);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-pink);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 24px;
        --spacing-2xl: 32px;
    }
    
    .content {
        padding: 60px 16px 40px;
    }
    
    .hero-compact h1 {
        font-size: 24px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .floating-logo {
        top: 15px;
        left: 15px;
    }
    
    .floating-logo .logo-img {
        height: 40px;
        max-width: 100px;
    }
    
    .hero-compact {
        padding: var(--spacing-lg);
    }
    
    .hero-compact h1 {
        font-size: 22px;
    }
    
    .hero-compact p {
        font-size: 14px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .card-price {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    .bottom-nav,
    .floating-logo {
        display: none !important;
    }
    
    body {
        background: white;
        padding-bottom: 0;
    }
}