/* ========================================
   ГАРРИ ПЛОТТЕР - Современный сайт
   CMYK Style 2026
   ======================================== */

/* ========================================
   1. CSS CUSTOM PROPERTIES
   ======================================== */
:root {
    /* CMYK Colors - фирменные цвета печати */
    --cmyk-c: #00AEEF;      /* Cyan - голубой */
    --cmyk-m: #EC008C;      /* Magenta - пурпурный */
    --cmyk-y: #FFF200;      /* Yellow - желтый */
    --cmyk-k: #231F20;      /* Key (Black) - черный */
    
    /* Дополнительные оттенки */
    --cmyk-c-light: #4BC3F5;
    --cmyk-m-light: #F247A8;
    --cmyk-y-light: #FFF866;
    --cmyk-k-light: #454545;
    
    /* Градиенты CMYK */
    --gradient-cmyk: linear-gradient(135deg, var(--cmyk-c), var(--cmyk-m), var(--cmyk-y), var(--cmyk-k));
    --gradient-cm: linear-gradient(135deg, var(--cmyk-c), var(--cmyk-m));
    --gradient-my: linear-gradient(135deg, var(--cmyk-m), var(--cmyk-y));
    --gradient-yk: linear-gradient(135deg, var(--cmyk-y), var(--cmyk-k));
    --gradient-ck: linear-gradient(135deg, var(--cmyk-c), var(--cmyk-k));
    
    /* Основные цвета */
    --primary: var(--cmyk-k);
    --primary-light: #3a3a3a;
    --secondary: #ffffff;
    --accent: var(--cmyk-c);
    
    /* Текст */
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --text-light: #999999;
    
    /* Фон */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #121212;
    --bg-gray: #e9ecef;
    
    /* Границы */
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    
    /* Тени */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.2);
    
    /* Радиусы */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Переходы */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Отступы */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 700;
    --z-notification: 800;
}

/* ========================================
   2. RESET & BASE
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Container */
.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1400px) {
    .container {
        padding: 0 40px;
    }
}

/* Selection */
::selection {
    background: var(--cmyk-c);
    color: white;
}

/* Focus */
:focus-visible {
    outline: 3px solid var(--cmyk-c);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-cm);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cmyk-m);
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cmyk-c);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius);
    z-index: var(--z-tooltip);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--spacing-md);
}

/* ========================================
   3. CMYK BACKGROUND ANIMATION
   ======================================== */
.cmyk-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.03;
}

.cmyk-layer {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: cmykFloat 20s ease-in-out infinite;
}

.cmyk-c {
    background: var(--cmyk-c);
    width: 500px;
    height: 500px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.cmyk-m {
    background: var(--cmyk-m);
    width: 400px;
    height: 400px;
    bottom: -80px;
    left: -80px;
    animation-delay: -5s;
}

.cmyk-y {
    background: var(--cmyk-y);
    width: 350px;
    height: 350px;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

.cmyk-k {
    background: var(--cmyk-k);
    width: 300px;
    height: 300px;
    top: 20%;
    right: 20%;
    animation-delay: -15s;
}

@keyframes cmykFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(25px, 25px) scale(1.05); }
}

/* ========================================
   4. HEADER
   ======================================== */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    max-width: 100vw;
    top: 0;
    z-index: var(--z-sticky);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    overflow-x: hidden;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.header-hidden {
    transform: translateY(-100%);
}

.header-top {
    background: var(--gradient-cm);
    color: white;
    padding: 8px 0;
    font-size: 13px;
    max-width: 100vw;
    overflow-x: hidden;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    max-width: 100%;
}

.header-top-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.header-phone,
.header-email {
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    font-weight: 500;
}

.header-phone:hover,
.header-email:hover {
    color: var(--cmyk-y);
    transform: translateY(-2px);
}

.header-phone .icon,
.header-email .icon {
    width: 14px;
    height: 14px;
}

.header-top-address {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.header-top-address .icon {
    width: 14px;
    height: 14px;
}

.header-main {
    padding: 12px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 55px;
    width: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1.2px;
    line-height: 1.2;
    white-space: nowrap;
}

.logo-tagline {
    font-size: 10px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Navigation */
.nav-menu ul {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.nav-menu a {
    font-weight: 600;
    color: var(--text-dark);
    padding: 10px 14px;
    display: block;
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 14px;
    position: relative;
    white-space: nowrap;
}

/* Адаптив для планшетов */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-menu a {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .header-cta {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .logo img {
        height: 45px;
    }
    
    .logo-name {
        font-size: 13px;
    }
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-cm);
    transition: width var(--transition);
}

.nav-menu a:hover::after {
    width: 80%;
}

.nav-menu a:hover {
    color: var(--cmyk-m);
}

.btn-nav {
    background: var(--gradient-cm);
    color: white !important;
    box-shadow: var(--shadow-sm);
}

.btn-nav:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-nav::after {
    display: none;
}

.header-cta {
    display: inline-flex;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    background: var(--gradient-cm);
    color: white !important;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.header-cta:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
    z-index: 200;
    position: relative;
    background: var(--gradient-cm);
    color: white;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.mobile-menu-btn svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   5. HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 160px var(--spacing-lg) 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(35, 31, 32, 0.92), rgba(35, 31, 32, 0.85)),
        url('../img/shapka.jpg') center center / cover no-repeat;
    z-index: -1;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto 30px;
}

.hero-title {
    margin-bottom: 24px;
}

.title-line {
    display: block;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.15;
    opacity: 0;
    transform: translateY(30px);
    animation: titleReveal 0.8s ease forwards;
}

.title-line.accent {
    background: var(--gradient-cm);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation-delay: 0.2s;
}

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.95);
    max-width: 750px;
    margin: 0 auto 28px;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.5s forwards;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-large {
    padding: 18px 44px;
    font-size: 14px;
}

.btn-primary {
    background: var(--gradient-cm);
    color: white;
    box-shadow: 0 10px 30px rgba(236, 0, 140, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(236, 0, 140, 0.5);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-5px);
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.btn-primary:hover .btn-icon {
    transform: translateX(5px);
}

/* Promo badge */
.hero-promo {
    margin-top: 30px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.9s forwards;
    display: inline-block;
    text-align: center;
}

.promo-text {
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.3;
    margin-bottom: 4px;
}

.promo-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    width: 100%;
}

.stat-item {
    text-align: center;
    padding: 20px 28px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 130px;
    opacity: 0;
    transform: translateY(30px);
    animation: statReveal 0.8s ease forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.8s; }
.stat-item:nth-child(2) { animation-delay: 1s; }
.stat-item:nth-child(3) { animation-delay: 1.2s; }
.stat-item:nth-child(4) { animation-delay: 1.4s; }

@keyframes statReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    display: block;
    font-size: 40px;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stat-suffix {
    font-size: 24px;
    font-weight: 700;
    color: var(--cmyk-c);
    margin-left: 2px;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.4;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s ease infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.5; transform: translateX(-50%) translateY(10px); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========================================
   6. SECTIONS COMMON
   ======================================== */
.section {
    padding: 80px 0;
    position: relative;
}

.section-bg {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-cm);
    color: white;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-gray);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   7. SERVICES SECTION
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 32px 26px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-cm);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.cmyk-c-icon {
    background: var(--gradient-ck);
}

.cmyk-m-icon {
    background: var(--gradient-cm);
}

.cmyk-y-icon {
    background: var(--gradient-my);
}

.cmyk-k-icon {
    background: linear-gradient(135deg, var(--cmyk-k), var(--cmyk-k-light));
}

.service-card h3 {
    color: var(--primary);
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 16px;
    flex-grow: 1;
}

.service-features {
    margin-bottom: 16px;
    padding: 12px 14px;
    background: var(--bg-light);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.service-features li {
    color: var(--text-dark);
    font-size: 13px;
    margin-bottom: 4px;
    line-height: 1.5;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--cmyk-c);
    font-weight: 600;
    transition: var(--transition);
}

.service-link svg {
    width: 18px;
    height: 18px;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--cmyk-m);
    gap: var(--spacing-md);
}

.service-link:hover svg {
    transform: translateX(5px);
}

/* ========================================
   8. ADVANTAGES SECTION
   ======================================== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.advantage-card {
    background: white;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.advantage-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

.cmyk-c-bg {
    background: var(--gradient-ck);
}

.cmyk-m-bg {
    background: var(--gradient-cm);
}

.cmyk-y-bg {
    background: var(--gradient-my);
}

.cmyk-k-bg {
    background: linear-gradient(135deg, var(--cmyk-k), var(--cmyk-k-light));
}

.advantage-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
    line-height: 1.3;
}

.advantage-card p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   9. PORTFOLIO SECTION
   ======================================== */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    background: white;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-cm);
    border-color: transparent;
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.portfolio-image {
    width: 100%;
    height: 100%;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.placeholder-img svg {
    width: 60px;
    height: 60px;
    stroke: rgba(255, 255, 255, 0.5);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.4));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .placeholder-img {
    transform: scale(1.08);
}

.portfolio-overlay h4 {
    color: white;
    font-size: 17px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.portfolio-cta {
    text-align: center;
    margin-top: 40px;
}

/* ========================================
   10. PROCESS SECTION
   ======================================== */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    font-weight: 800;
    color: white;
    box-shadow: var(--shadow-md);
}

.step-content h3 {
    font-size: 17px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.step-content p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   11. PROMO SECTION
   ======================================== */
.promo-section {
    background: var(--gradient-cm);
    padding: 80px 0;
}

.promo-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.promo-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.promo-label {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    align-self: flex-start;
}

.promo-text h2 {
    color: white;
    margin-bottom: 0;
    line-height: 1.2;
    font-size: clamp(2rem, 4vw, 3rem);
    width: 100%;
    white-space: nowrap;
}

.promo-text > p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 0;
    max-width: 550px;
}

.promo-list {
    margin-bottom: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.promo-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: white;
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.5;
}

.promo-list svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.promo-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.promo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: rotate 20s linear infinite;
}

.promo-circle.cmyk-c {
    width: 200px;
    height: 200px;
    background: var(--cmyk-c);
    animation-delay: 0s;
}

.promo-circle.cmyk-m {
    width: 150px;
    height: 150px;
    background: var(--cmyk-m);
    animation-delay: -5s;
}

.promo-circle.cmyk-y {
    width: 100px;
    height: 100px;
    background: var(--cmyk-y);
    animation-delay: -10s;
}

.promo-circle.cmyk-k {
    width: 50px;
    height: 50px;
    background: var(--cmyk-k);
    animation-delay: -15s;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

/* ========================================
   12. REVIEWS SECTION
   ======================================== */
.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background: white;
    padding: 26px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.review-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.review-info h4 {
    font-size: 15px;
    margin-bottom: 2px;
    line-height: 1.3;
}

.review-info p {
    font-size: 12px;
    color: var(--text-gray);
    margin: 0;
}

.review-rating {
    margin-left: auto;
    color: var(--cmyk-y);
    font-size: 16px;
}

.review-content p {
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
    font-style: italic;
}

/* ========================================
   13. CTA SECTION
   ======================================== */
.cta-section {
    background: var(--bg-dark);
    padding: 60px 0;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 12px;
    line-height: 1.2;
}

.cta-content > p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    margin-bottom: 28px;
    line-height: 1.5;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   14. CONTACTS SECTION
   ======================================== */
.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.contact-details h4 {
    font-size: 15px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.contact-details p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.contact-details a {
    color: var(--text-dark);
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--cmyk-c);
}

.phones-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.phones-list a {
    font-weight: 600;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 35px;
}

.contact-form h3 {
    margin-bottom: 8px;
    line-height: 1.3;
}

.contact-form > p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 28px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

.form-group input[type="file"] {
    padding: 10px 14px;
    cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--cmyk-c);
    box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--cmyk-c);
}

.form-checkbox label {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

/* Contact form button */
.contact-form .btn {
    padding: 12px 28px;
    font-size: 13px;
}

.contact-form .btn svg {
    width: 18px;
    height: 18px;
}

/* Map */
.map-section {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-wrapper {
    width: 100%;
}

.map-wrapper iframe {
    display: block;
}

/* ========================================
   15. FOOTER
   ======================================== */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.footer-logo img {
    height: 50px;
    width: auto;
    border-radius: var(--radius);
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-text .logo-name {
    color: white;
    font-size: 14px;
}

.footer-logo-text .logo-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.footer-col h4 {
    color: white;
    margin-bottom: 18px;
    font-size: 15px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--cmyk-c);
    padding-left: 6px;
}

.footer-contacts li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-contacts svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contacts a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contacts a:hover {
    color: var(--cmyk-c);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom-left p {
    font-size: 13px;
    margin: 6px 0;
}

.footer-bottom-right {
    display: flex;
    gap: 20px;
}

.footer-bottom-right a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-right a:hover {
    color: var(--cmyk-c);
}

/* ========================================
   16. SCROLL TO TOP
   ======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-cm);
    color: white;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    z-index: var(--z-fixed);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   17. NOTIFICATIONS
   ======================================== */
#notification-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: var(--z-notification);
}

.notification {
    padding: 16px 24px;
    border-radius: var(--radius);
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-md);
    transform: translateX(400px);
    transition: transform var(--transition);
    max-width: 400px;
    font-size: 14px;
}

.notification-success {
    background: linear-gradient(135deg, #38a169, #2f855a);
}

.notification-error {
    background: linear-gradient(135deg, #e53e3e, #c53030);
}

.notification-info {
    background: linear-gradient(135deg, #3182ce, #2c5282);
}

/* ========================================
   18. RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .contacts-wrapper {
        grid-template-columns: 1fr;
    }

    .promo-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .promo-text {
        align-items: center;
        text-align: center;
    }

    .promo-text h2 {
        white-space: normal;
    }

    .promo-label {
        justify-self: center;
    }

    .promo-text > p {
        max-width: 100%;
    }

    .promo-visual {
        height: 200px;
    }

    .promo-list {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .promo-list li {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    /* Скрываем десктопное меню в мобильном режиме */
    .desktop-nav {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 10002;
        position: relative;
    }

    /* Overlay для мобильного меню */
    .nav-menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        pointer-events: none;
    }

    .nav-menu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Мобильное меню - вынесено за пределы header */
    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw !important;
        max-width: 100vw !important;
        bottom: 0;
        background: white;
        padding: 100px 0 40px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        transform: translateY(-100%);
        transition: transform 0.4s ease;
        z-index: 9999;
        overflow-y: auto;
        max-height: 100vh;
        min-height: 100vh;
        display: none;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    .mobile-nav.active {
        transform: translateY(0);
        display: block;
    }

    /* Mobile navigation list */
    .nav-menu ul {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .nav-menu ul li {
        width: 100%;
        margin: 0 !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
    }

    .nav-menu ul li a {
        display: flex;
        align-items: center;
        justify-content: center !important;
        padding: 18px 20px;
        font-size: 16px;
        font-weight: 600;
        border-radius: var(--radius);
        background: var(--bg-light);
        color: var(--text-dark) !important;
        text-decoration: none;
        transition: var(--transition);
        box-sizing: border-box;
        width: 100%;
    }

    .nav-menu ul li a:hover,
    .nav-menu ul li a:active {
        background: var(--gradient-cm);
        color: white !important;
    }

    .nav-menu ul li a::after {
        display: none !important;
    }

    .nav-menu ul li:last-child {
        margin-top: 10px;
    }

    .nav-menu ul li:last-child a,
    .nav-menu.mobile-nav ul li a.btn-nav {
        background: var(--gradient-cm) !important;
        color: white !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 18px 20px !important;
        box-sizing: border-box !important;
        border-radius: var(--radius) !important;
    }

    .header-cta {
        display: none;
    }

    /* Header top mobile */
    .header-top {
        padding: 6px 0;
    }

    .header-top .container {
        flex-direction: column;
        gap: 4px;
        padding: 0 10px;
    }

    .header-top-info {
        gap: 8px;
        font-size: 11px;
    }

    .header-phone,
    .header-email {
        font-size: 11px;
        gap: 4px;
    }

    .header-phone .icon,
    .header-email .icon {
        width: 12px;
        height: 12px;
    }

    .header-top-address {
        font-size: 11px;
    }

    /* Header main mobile */
    .header-main {
        padding: 8px 0;
    }

    .header-main .container {
        gap: 10px;
    }

    .logo {
        gap: 8px;
    }

    .logo img {
        height: 40px;
    }

    .logo-name {
        font-size: 12px;
        letter-spacing: 0.5px;
        white-space: normal;
    }

    .logo-tagline {
        font-size: 8px;
        display: none;
    }

    /* Hero mobile */
    .hero {
        padding: 110px 12px 40px;
        min-height: auto;
    }

    .hero-content {
        margin-bottom: 20px;
    }

    .title-line {
        font-size: 1.3rem !important;
        letter-spacing: 0.5px !important;
        line-height: 1.2 !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 0 10px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 12px;
    }

    .btn-large {
        width: 100%;
        max-width: 100%;
        padding: 14px 24px;
        font-size: 13px;
    }

    .hero-stats {
        gap: 8px;
        margin-top: 20px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        padding: 0 5px;
    }

    .stat-item {
        min-width: auto;
        padding: 12px 8px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-suffix {
        font-size: 16px;
    }

    .stat-label {
        font-size: 9px;
        letter-spacing: 0.5px;
    }

    .hero-promo {
        margin-top: 16px;
        padding: 10px 14px;
        max-width: 100%;
        border-radius: 30px;
    }

    .promo-text {
        font-size: 12px;
    }

    .promo-desc {
        font-size: 10px;
    }

    .scroll-indicator {
        display: none;
    }

    .services-grid,
    .advantages-grid,
    .portfolio-grid,
    .reviews-slider {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    .section-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    /* Header top extra small */
    .header-top {
        padding: 4px 0;
    }

    .header-top .container {
        padding: 0 8px;
        gap: 2px;
    }

    .header-top-info {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-phone,
    .header-email {
        font-size: 10px;
        gap: 2px;
    }

    .header-phone .icon,
    .header-email .icon {
        width: 10px;
        height: 10px;
    }

    .header-top-address {
        font-size: 10px;
        text-align: center;
    }

    /* Header main extra small */
    .header-main {
        padding: 6px 0;
    }

    .header-main .container {
        padding: 0 10px;
        gap: 8px;
    }

    .logo {
        gap: 6px;
    }

    .logo img {
        height: 36px;
    }

    .logo-name {
        font-size: 11px;
    }

    .logo-tagline {
        display: none;
    }

    .mobile-menu-btn {
        padding: 6px;
    }

    .mobile-menu-btn span {
        width: 22px;
        height: 2px;
    }

    /* Hero extra small */
    .hero {
        padding: 100px 10px 40px;
        min-height: auto;
    }

    .hero-content {
        margin-bottom: 16px;
    }

    .title-line {
        font-size: 1.1rem !important;
        letter-spacing: 0.3px !important;
        line-height: 1.2 !important;
    }

    .hero-subtitle {
        font-size: 0.85rem !important;
        margin-bottom: 12px;
        line-height: 1.5;
    }

    .hero-buttons {
        padding: 0 5px;
        gap: 8px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 11px;
        letter-spacing: 0.5px;
    }

    .btn-large {
        padding: 12px 20px;
        font-size: 12px;
    }

    .hero-promo {
        margin-top: 12px;
        padding: 8px 12px;
        border-radius: 25px;
        width: calc(100% - 20px);
        margin-left: auto;
        margin-right: auto;
    }

    .promo-text {
        font-size: 11px;
    }

    .promo-desc {
        font-size: 9px;
    }

    .scroll-indicator {
        display: none;
    }

    .hero-stats {
        gap: 6px;
        margin-top: 16px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
    }

    .stat-item {
        padding: 10px 6px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-suffix {
        font-size: 14px;
    }

    .stat-label {
        font-size: 8px;
        letter-spacing: 0.3px;
    }

    /* Sections */
    .section {
        padding: 30px 0;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 1.2rem !important;
    }

    .section-tag {
        font-size: 10px;
        padding: 5px 12px;
    }

    .section-subtitle {
        font-size: 13px;
    }

    /* Contact form */
    .contact-form-wrapper {
        padding: 16px;
    }

    .contact-form h3 {
        font-size: 1.2rem;
    }

    .contact-form > p {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 14px;
        font-size: 14px;
    }

    /* Promo section */
    .promo-section {
        padding: 40px 0;
    }

    .promo-text h2 {
        font-size: 1.2rem;
        white-space: normal;
    }

    .promo-text > p {
        font-size: 13px;
        line-height: 1.5;
    }

    .promo-list {
        gap: 8px;
    }

    .promo-list li {
        font-size: 12px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-grid {
        gap: 24px;
    }

    .footer-col h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .footer-col ul a {
        font-size: 13px;
    }

    .footer-bottom {
        padding-top: 16px;
    }

    .footer-bottom-left p {
        font-size: 11px;
    }

    .footer-bottom-right a {
        font-size: 11px;
    }

    /* Services and cards */
    .service-card,
    .advantage-card,
    .material-card,
    .review-card {
        padding: 20px 16px;
    }

    .service-card h3,
    .advantage-card h3,
    .material-card h3 {
        font-size: 16px;
    }

    .service-card p,
    .advantage-card p,
    .material-card p {
        font-size: 13px;
    }

    .service-features li {
        font-size: 12px;
    }

    /* Modal */
    .modal {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 16px 18px;
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-body .form-group {
        margin-bottom: 14px;
    }

    .modal-body .form-checkbox {
        margin-bottom: 18px;
    }

    /* Cookie banner */
    .cookie-banner-buttons {
        flex-direction: column;
    }

    .cookie-banner-buttons .btn {
        max-width: 100%;
    }
}

/* ========================================
   19. PRINT STYLES
   ======================================== */
@media print {
    .cmyk-bg,
    .header,
    .hero-buttons,
    .scroll-indicator,
    .scroll-to-top,
    .contact-form {
        display: none !important;
    }
    
    body {
        background: white;
        font-size: 12pt;
    }
    
    .section {
        padding: 20px 0;
    }
    
    a {
        text-decoration: underline;
    }
}

/* ========================================
   20. ANIMATIONS
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Portfolio filter animation */
.portfolio-item.hidden {
    display: none;
}

.portfolio-item.show {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   21. MATERIALS SECTION
   ======================================== */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.material-card {
    background: white;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.material-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--cmyk-c);
}

.material-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.material-icon svg {
    width: 36px;
    height: 36px;
    stroke: white;
}

.material-card:hover .material-icon {
    transform: scale(1.1);
}

.material-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}

.material-card p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.material-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cmyk-c);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.material-card:hover .material-link {
    color: var(--cmyk-m);
}

/* Material Modal */
.material-modal {
    max-width: 700px;
}

.material-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.material-detail h4 {
    font-size: 16px;
    color: var(--primary);
    margin: 20px 0 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.material-detail h4:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.material-detail ul {
    margin-bottom: 16px;
}

.material-detail li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

.material-detail li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cmyk-c);
    font-weight: bold;
}

.material-detail p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.material-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.material-type {
    background: var(--bg-light);
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 13px;
}

.material-type strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.material-type span {
    color: var(--text-gray);
}

/* ========================================
   22. QUICK ORDER FLOATING BUTTON
   ======================================== */
.quick-order-fab {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: var(--z-fixed);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.quick-order-btn {
    width: 64px;
    height: 64px;
    background: var(--gradient-cm);
    color: white;
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(236, 0, 140, 0.4);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fabPulse 2s ease infinite;
    border: none;
}

.quick-order-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(236, 0, 140, 0.5);
}

.quick-order-btn svg {
    width: 28px;
    height: 28px;
    transition: var(--transition);
}

.quick-order-btn.active svg {
    transform: rotate(45deg);
}

.quick-order-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.quick-order-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-left-color: var(--primary);
}

.quick-order-fab:hover .quick-order-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes fabPulse {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(236, 0, 140, 0.4);
    }
    50% {
        box-shadow: 0 8px 40px rgba(236, 0, 140, 0.6), 0 0 0 10px rgba(236, 0, 140, 0.1);
    }
}

/* ========================================
   22. MODAL WINDOW
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-modal);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 20px;
    margin: 0;
    color: var(--primary);
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.modal-close:hover {
    background: var(--cmyk-m);
    color: white;
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 28px;
}

.modal-body .form-group {
    margin-bottom: 18px;
}

.modal-body .form-checkbox {
    margin-bottom: 24px;
}

.modal-body .btn {
    width: 100%;
    justify-content: center;
}

/* ========================================
   23. COOKIE BANNER (ФЗ-152)
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.15);
    z-index: var(--z-notification);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    border-top: 3px solid var(--cmyk-c);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.cookie-banner-text {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cookie-banner-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-cm);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cookie-banner-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.cookie-banner-info h4 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--primary);
}

.cookie-banner-info p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

.cookie-banner-info a {
    color: var(--cmyk-c);
    text-decoration: underline;
}

.cookie-banner-info a:hover {
    color: var(--cmyk-m);
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-banner-buttons .btn {
    padding: 12px 24px;
    font-size: 14px;
    white-space: nowrap;
}

.btn-cookie-accept {
    background: var(--gradient-cm);
    color: white;
    box-shadow: 0 5px 20px rgba(236, 0, 140, 0.3);
}

.btn-cookie-accept:hover {
    box-shadow: 0 8px 25px rgba(236, 0, 140, 0.4);
}

.btn-cookie-settings {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
}

.btn-cookie-settings:hover {
    border-color: var(--cmyk-c);
    color: var(--cmyk-c);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    max-width: 560px;
}

.cookie-category {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-category-header h5 {
    font-size: 15px;
    margin: 0;
    color: var(--text-dark);
}

.cookie-category-header .badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: var(--bg-light);
    color: var(--text-gray);
}

.cookie-category-header .badge.required {
    background: var(--cmyk-c);
    color: white;
}

.cookie-category p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--border-color);
    border-radius: 26px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--gradient-cm);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive for Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cookie-banner-text {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cookie-banner-buttons {
        justify-content: center;
        width: 100%;
    }

    .cookie-banner-buttons .btn {
        flex: 1;
        max-width: 180px;
    }

    .quick-order-fab {
        bottom: 90px;
        right: 20px;
    }

    .quick-order-btn {
        width: 56px;
        height: 56px;
    }

    .quick-order-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .modal {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 18px 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .cookie-banner-buttons {
        flex-direction: column;
    }

    .cookie-banner-buttons .btn {
        max-width: 100%;
    }
}

/* ========================================
   24. MOBILE QUICK NAVIGATION
   ======================================== */
.mobile-quick-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100vw;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: var(--z-fixed);
    padding: 8px 0 env(safe-area-inset-bottom, 8px);
    border-top: 1px solid var(--border-color);
    overflow-x: hidden;
}

.mobile-quick-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    flex: 1;
    min-width: 0;
    position: relative;
}

.mobile-quick-nav__item svg {
    width: 22px;
    height: 22px;
    transition: var(--transition);
}

.mobile-quick-nav__item:hover,
.mobile-quick-nav__item.active {
    color: var(--cmyk-c);
}

.mobile-quick-nav__item:hover svg,
.mobile-quick-nav__item.active svg {
    transform: translateY(-2px);
}

.mobile-quick-nav__item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--gradient-cm);
    border-radius: 0 0 3px 3px;
}

/* Special styling for phone button */
.mobile-quick-nav__item--phone {
    color: var(--cmyk-c);
}

.mobile-quick-nav__item--phone svg {
    stroke: var(--cmyk-c);
}

/* Special styling for CTA button */
.mobile-quick-nav__item--cta {
    color: white;
    background: var(--gradient-cm);
    border-radius: var(--radius) var(--radius) 0 0;
    margin: -8px 4px 0;
    padding-top: 12px;
    position: relative;
}

.mobile-quick-nav__item--cta::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--gradient-cm);
    border-radius: var(--radius) var(--radius) 0 0;
}

.mobile-quick-nav__item--cta svg {
    stroke: white;
    width: 24px;
    height: 24px;
}

.mobile-quick-nav__item--cta span {
    color: white;
}

/* Show mobile nav only on mobile */
@media (max-width: 768px) {
    .mobile-quick-nav {
        display: flex;
    }

    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Adjust body padding for mobile nav */
    body {
        padding-bottom: 70px;
    }

    /* Adjust scroll to top button position */
    .scroll-to-top {
        bottom: 85px;
        right: 15px;
        width: 44px;
        height: 44px;
    }

    /* Adjust quick order FAB */
    .quick-order-fab {
        bottom: 85px;
        right: 15px;
    }

    .quick-order-btn {
        width: 50px;
        height: 50px;
    }

    /* Cookie banner adjustment */
    .cookie-banner.show {
        bottom: 60px;
    }
}

@media (max-width: 480px) {
    .mobile-quick-nav__item {
        font-size: 9px;
        padding: 6px 2px;
    }

    .mobile-quick-nav__item svg {
        width: 20px;
        height: 20px;
    }

    .mobile-quick-nav__item--cta svg {
        width: 22px;
        height: 22px;
    }
}

/* Hide on larger screens */
@media (min-width: 769px) {
    .mobile-quick-nav {
        display: none !important;
    }

    body {
        padding-bottom: 0;
    }
}

/* ========================================
   25. PRICES SECTION
   ======================================== */
.prices-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
}

.prices-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
    min-width: 600px;
}

.prices-table thead {
    background: var(--gradient-cm);
}

.prices-table thead th {
    color: white;
    font-weight: 700;
    padding: 18px 20px;
    text-align: left;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.prices-table thead th:last-child {
    text-align: right;
}

.prices-table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.prices-table tbody tr:hover {
    background: var(--bg-light);
}

.prices-table tbody tr:last-child {
    border-bottom: none;
}

.prices-table tbody td {
    padding: 14px 20px;
    color: var(--text-dark);
    line-height: 1.5;
}

.prices-table tbody td:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--cmyk-m);
    white-space: nowrap;
}

.prices-table .prices-category {
    background: var(--bg-light);
}

.prices-table .prices-category td {
    padding: 16px 20px;
    border-bottom: 2px solid var(--border-color);
}

.prices-table .prices-category td strong {
    color: var(--primary);
    font-size: 14px;
    letter-spacing: 1px;
}

.prices-note {
    background: var(--bg-light);
    padding: 20px 24px;
    border-radius: var(--radius);
    border-left: 4px solid var(--cmyk-c);
    margin-bottom: 32px;
}

.prices-note p {
    margin: 0;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.prices-action {
    text-align: center;
}

/* Prices responsive */
@media (max-width: 768px) {
    .prices-table-wrapper {
        margin: 0 -20px;
        border-radius: 0;
        padding: 0 10px;
    }
    
    .prices-table {
        min-width: 500px;
    }
    
    .prices-table thead th,
    .prices-table tbody td {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .prices-note {
        padding: 16px 18px;
    }
    
    .prices-note p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .prices-table-wrapper {
        margin: 0 -10px;
        padding: 0 5px;
    }
    
    .prices-table {
        min-width: 320px;
    }
    
    .prices-table thead th {
        padding: 10px 8px;
        font-size: 10px;
    }
    
    .prices-table tbody td {
        padding: 10px 8px;
        font-size: 11px;
    }
    
    .prices-table .prices-category td {
        padding: 12px 8px;
    }
    
    .prices-table .prices-category td strong {
        font-size: 11px;
    }
    
    .prices-note {
        padding: 14px 12px;
        margin: 0 5px 24px;
    }
    
    .prices-note p {
        font-size: 12px;
    }
}
