/* ===== MODERN CSS RESET ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background: #ffffff;
    overflow-x: hidden;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary-gradient: linear-gradient(135deg, #0099cc 0%, #006699 100%);
    --secondary-gradient: linear-gradient(135deg, #00ccff 0%, #0088cc 100%);
    --accent-gradient: linear-gradient(135deg, #00e5ff 0%, #00b8d4 100%);
    --dark-gradient: linear-gradient(135deg, #004d66 0%, #003344 100%);
    
    --primary-color: #0099cc;
    --secondary-color: #006699;
    --accent-color: #00e5ff;
    --text-primary: #003344;
    --text-secondary: #0e6e8c;
    --text-light: #4fb3d4;
    --white: #ffffff;
    --black: #000000;
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f0f8ff;
    --bg-dark: #003344;
    --bg-overlay: rgba(0, 51, 68, 0.7);
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 100px 0;
    --element-margin: 2rem;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 51, 68, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 51, 68, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 51, 68, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 51, 68, 0.25);
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0099cc 0%, #006699 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
    color: white;
}

.water-wave {
    width: 200px;
    height: 60px;
    margin: 0 auto 2rem;
    animation: wave 2s ease-in-out infinite;
}

.loading-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: var(--transition-normal);
}
.hero-title,
.hero-subtitle,
.hero-content p,
.hero-buttons .btn {
    text-shadow: 0 2px 12px rgba(0,0,0,0.35), 0 0px 1px rgba(0,0,0,0.15);
}

.hero-title, .hero-title .title-line {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 700;
}
.hero-subtitle {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 500;
}
.hero-buttons .btn span {
    background-color: #00F2FEFF;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-logo {
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: none;       /* убираем фон */
    box-shadow: none;       /* убираем тень, если была */
    overflow: visible;
}
.logo-img {
    width: 200px;
    height: 100px;
    object-fit: contain;
    display: block;
}

.brand-text .brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
    color: var(--text-primary);
}

.brand-text .brand-tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    background: none !important;    /* на всякий случай */
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #0099cc; /* или var(--primary-color), если хочешь */
    text-decoration: underline;
    text-underline-offset: 6px;  /* красиво отступает подчеркивание от текста */
    background: none !important; /* не подсвечивать фон */
}

/* Navigation Phone */
.nav-phone {
    margin-left: 1rem;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.phone-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.phone-link i {
    font-size: 1rem;
    animation: pulse-phone 2s infinite;
}

@keyframes pulse-phone {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-normal);
}



/* Гарантируем, что фон и видео внутри заполняют всю секцию */
.hero-background,
.hero-video-container,
.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Само видео должно покрывать контейнер без полей */
.bg-video {
    object-fit: cover;
    object-position: center center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1 !important;
    z-index: 0;
}
.animated-pool {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    overflow: hidden;
}

.pool-water {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(45deg, rgba(79, 172, 254, 0.3), rgba(0, 242, 254, 0.3));
    border-radius: 50%;
    animation: water-flow 3s ease-in-out infinite;
}

.water-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: ripple 2s infinite;
}

.water-ripple.delay-1 {
    animation-delay: 0.5s;
}

.water-ripple.delay-2 {
    animation-delay: 1s;
}

@keyframes water-flow {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(5deg); }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

@keyframes custom-slideUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
    z-index: 2;
}


.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    text-align: left;
}

.hero-text {
    width: 100%;
    max-width: 100%;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: white;
    text-align: center;
}
.custom-hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out forwards;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero-title, .hero-title .title-line {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 800;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 0.8s ease-out forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.title-line:nth-child(3) {
    animation-delay: 0.4s;
}

.gradient-text {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 100%;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.6s forwards;
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.8s forwards;
    justify-content: flex-start;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.hero-subtitle,
.hero-buttons .btn {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    opacity: 0;
    animation: slideUp 0.8s ease-out 1s forwards;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    font-size: 1.5rem;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== MAIN CONTENT ===== */
.main-content {
    padding-top: 80px;
    min-height: 100vh;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    color: white;
    margin-top: 6rem;
}

.footer-content {
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--primary-gradient);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-item i {
    width: 20px;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
}

.footer-bottom .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-template-columns: none;
    gap: 2rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.footer-bottom-links a:hover {
    color: white;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-normal);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed;
    top: 100px;
    right: 2rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    transform: translateX(400px);
    transition: var(--transition-normal);
    z-index: 1000;
    max-width: 350px;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-icon {
    font-size: 1.5rem;
}

.notification.success {
    border-left: 4px solid #10b981;
}

.notification.success .notification-icon {
    color: #10b981;
}

.notification.error {
    border-left: 4px solid #ef4444;
}

.notification.error .notification-icon {
    color: #ef4444;
}

/* ===== CARD STYLES ===== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-container {
    display: grid;
    gap: 2rem;
}

.section {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    font-family: 'Playfair Display', serif;
}

.section-subtitle {
    font-size: 1.25rem;
    color: white;
    max-width: 600px;
    margin: 0 auto;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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

/* ===== PORTFOLIO SECTION ===== */
.portfolio-section {
    background: #f8fafc;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    background: white;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-icon {
    font-size: 6rem;
    color: var(--primary-color);
    transition: var(--transition-slow);
}

.portfolio-item:hover .portfolio-icon {
    transform: scale(1.2);
    color: white;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    opacity: 0;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.portfolio-item:hover .portfolio-content {
    transform: translateY(0);
}

.portfolio-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.portfolio-content p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    background: linear-gradient(135deg, #00e5ff 0%, #00b8d4 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.service-number {
    position: absolute;
    top: -20px;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00e5ff 0%, #00b8d4 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: 'Playfair Display', serif;
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-normal);
}

.service-link:hover {
    gap: 1rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.cta-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.category-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.category-visual {
    margin-bottom: 1.5rem;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: var(--transition-normal);
}

.category-card:hover .category-icon {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.1);
}

.category-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.category-card:hover .category-image {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: 'Playfair Display', serif;
}

.category-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.category-count {
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-normal);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
}

.category-link:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateX(5px);
    border-color: transparent;
}

.product-price-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    margin-bottom: 0;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-size: 1.1rem;
}

.btn-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN ===== */
/* Extra small devices (phones, 576px and down) */
@media (max-width: 575px) {
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .brand-text .brand-name {
        font-size: 1.3rem;
    }
    
    .portfolio-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .phone-link span {
        display: none;
    }
    
    .phone-link {
        padding: 0.5rem;
        border-radius: 50%;
        width: 45px;
        height: 45px;
        justify-content: center;
    }
    
    .nav-phone {
        margin-left: 0.25rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        gap: 1rem;
        transition: var(--transition-normal);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-phone {
        margin-left: 0.5rem;
    }
    
    .phone-link {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .notification {
        right: 1rem;
        left: 1rem;
        transform: translateY(-400px);
        max-width: none;
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .brand-text .brand-name {
        font-size: 1.5rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hidden {
    display: none;
}

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


.custom-hero-video-container {

    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

@media (max-width: 575px) {
    .hero-section {
        min-height: 0 !important;
        padding-top: 0 !important;
    }
    .hero-content {
        align-items: flex-start;
        padding-top: 0;
        top: 0 !important; /* Sintaksis xatosi tuzatildi */
    }
    .bg-video {
        object-fit: cover;
        object-position: top center;
    }
}



.hero-subtitle {
    color: #fff !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25), 0 0 2px rgba(0,0,0,0.08);
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important; /* Standard property for compatibility */
    font-weight: 500;
}
.hero-buttons .btn {
    background: #FFF !important;
    color: #0099cc !important;         /* яркий голубой текст */
    border: 2px solid #0099cc !important;
    border-radius: 12px;
    box-shadow: none !important;
    font-weight: 600;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    transition: background 0.16s, color 0.16s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-buttons .btn:hover {
    background: transparent !important;
    color: #fff !important;
    border-color: #0099cc !important;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
}

/* Step number styling */
.step-number {
    position: absolute;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00e5ff 0%, #00b8d4 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}


.category-image-large {
    width: 100%;
    aspect-ratio: 3/2;           /* Сохраняет пропорции (например, 3:2), работает во всех современных браузерах */
    max-height: 220px;           /* Ограничение по высоте, чтобы сетка выглядела аккуратно */
    min-height: 160px;           /* Минимальная высота, если нужно */
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    margin-bottom: 1.2rem;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;           /* Обрезает и центрирует по размеру контейнера */
    object-position: center;     /* Центр изображения */
    display: block;
    transition: transform 0.3s;
}

.category-image-large img:hover {
    transform: scale(1.05);
}



.hero-section {
    /* Гарантируем ровно 100% высоты viewport */
    height: 100vh !important;
    min-height: 100vh !important;
    padding: 0 !important;      /* Убираем любые паддинги */
    overflow: hidden !important;
    position: relative !important;
}


.hero-background,
.hero-video-container,
.bg-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* Видео-элемент растягиваем по контейнеру */
.bg-video {
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}

/* ===== CUSTOM HERO SECTION ===== */
.custom-hero-section {
    height: 100vh;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    overflow: hidden;
    width: 100%;
}

.custom-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
}

.custom-hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.custom-hero-video-container.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    z-index: 10;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.custom-bg-video {
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.custom-hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 0 2rem;
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.custom-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.custom-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 15px;
}

.custom-hero-text {
    margin-bottom: 2rem;
}

.custom-hero-title {
    text-align: center;
    font-family: 'Montserrat', 'Georgia', serif;
    font-size: 54px;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 16px rgba(26,41,128,0.18), 0 1px 0 #1a2980;
    margin-bottom: 24px;
    word-wrap: break-word;
    max-width: 100%;
    animation: fadeInUp 1s ease-out;
}

.custom-title-line {
    display: block;
    margin-bottom: 8px;
    color: #fff;
}

.custom-title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.custom-title-line:nth-child(3) {
    animation-delay: 0.4s;
}

.custom-gradient-text {
    /* Gradient aqua to blue */
    background: linear-gradient(90deg, #53D3DF 0%, #1A2980 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 2px 18px rgba(26, 41, 128, 0.14);
}

.custom-hero-subtitle {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 19px;
    font-weight: 500;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.5;
    /* Sozlash uchun engil soya */
    text-shadow: 0 2px 8px rgba(0,0,0,0.32), 0 1px 0 #232b2b;
    padding: 0 10px;
    animation: fadeInUp 1.2s ease-out;
}

.custom-hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    opacity: 0;
    animation: custom-slideUp 0.8s ease-out 0.8s forwards, fadeInUp 1.4s ease-out;
    flex-wrap: wrap;
}

.custom-gradient-subtle {
    background: linear-gradient(90deg, #39C0ED, #1A2980);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

.custom-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    margin: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Custom Buttons */
.custom-btn-primary {
    background-color: #0099cc;
    color: white;
    border: none;
}

.custom-btn-primary:hover {
    background-color: #0077b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.custom-btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid #0099cc;
}

.custom-btn-secondary:hover {
    background-color: #0099cc;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.custom-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    animation: custom-bounce 2s infinite;
    z-index: 5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.custom-scroll-arrow {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.custom-scroll-arrow:hover {
    color: #fff;
    cursor: pointer;
    transform: translateY(5px);
}

@keyframes custom-slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Media queries for hero section */
@media (max-width: 1200px) {
    .custom-hero-title {
        font-size: 48px;
    }
    
    .custom-hero-subtitle {
        font-size: 18px;
        max-width: 750px;
    }
}

@media (max-width: 992px) {
    .custom-hero-title {
        font-size: 42px;
    }
    
    .custom-hero-subtitle {
        font-size: 17px;
        max-width: 650px;
    }
}

@media (max-width: 768px) {
    .custom-hero-title {
        font-size: 36px;
    }
    
    .custom-hero-subtitle {
        font-size: 16px;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .custom-hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .custom-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .custom-hero-section {
        height: 100vh;
    }
    
    .custom-hero-title {
        font-size: 32px;
        padding: 0 10px;
    }
    
    .custom-title-line {
        margin-bottom: 5px;
    }
    
    .custom-hero-subtitle {
        font-size: 15px;
        line-height: 1.4;
        padding: 10px 15px;
        margin-top: 10px;
        margin-bottom: 20px;
        background-color: rgba(0, 0, 0, 0.3);
        border-radius: 10px;
    }
    
    .custom-hero-overlay {
        background: rgba(0, 0, 0, 0.5);
    }
    
    .custom-hero-video-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    .custom-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .custom-scroll-indicator {
        bottom: 1rem;
    }
}

@media (max-width: 375px) {
    .custom-hero-title {
        font-size: 28px;
        padding: 0 5px;
    }
    
    .custom-title-line {
        margin-bottom: 3px;
    }
    
    .custom-hero-subtitle {
        font-size: 14px;
        padding: 8px 12px;
        margin-top: 8px;
        margin-bottom: 15px;
        line-height: 1.3;
        background-color: rgba(0, 0, 0, 0.4);
        border-radius: 8px;
    }
    
    .custom-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        max-width: 250px;
    }
    
    .custom-hero-overlay {
        background: rgba(0, 0, 0, 0.6);
    }
    
    .custom-scroll-indicator {
        bottom: 0.5rem;
        font-size: 0.9rem;
    }
    
    .custom-bg-video {
        object-position: center center;
    }
}

/* Landshaft rejimi uchun stillar */
@media (max-height: 600px) and (orientation: landscape) {
    .custom-hero-section {
        height: auto;
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    
    .custom-hero-title {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .custom-hero-subtitle {
        font-size: 15px;
        max-width: 600px;
        margin-bottom: 15px;
        background-color: rgba(0, 0, 0, 0.3);
        padding: 10px;
        border-radius: 8px;
    }
    
    .custom-hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .custom-btn {
        margin: 5px 8px;
        padding: 0.75rem 1.5rem;
    }
    
    .custom-scroll-indicator {
        bottom: 5px;
    }
}

/* Safari brauzerida video fonni to'g'ri ko'rsatish */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .custom-bg-video {
        height: 100%;
        width: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    }
}

/* Mobil qurilmalar uchun qo'shimcha optimallashtirishlar */
@media (max-width: 480px) {
    .custom-hero-title {
        font-size: 36px;
        margin-bottom: 16px;
        padding: 0 10px;
    }
    
    .custom-hero-subtitle {
        font-size: 16px;
        padding: 8px 15px;
        margin-bottom: 20px;
        background-color: rgba(0, 0, 0, 0.25);
        border-radius: 8px;
        max-width: 90%;
    }
    
    .custom-hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 20px;
    }
    
    .custom-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 12px 20px;
        margin: 0;
        font-size: 16px;
        letter-spacing: 0.5px;
    }
    
    .custom-hero-video-container {
        background-color: rgba(0, 0, 0, 0.2);
    }
    
    .custom-scroll-indicator {
        bottom: 1rem;
    }
}

@media (max-width: 390px) {
    .hide-mobile {
        display: none !important;
    }
}
