/*
Theme Name: Premium Business Elite - SIP Construction
Theme URI: https://example.com
Author: Premium Design Team
Description: Ultra-premium business theme with modern design, full mobile responsiveness, and advanced animations
Version: 3.0
License: GNU General Public License v2 or later
*/

/* ===================================
   ROOT VARIABLES - RED-GOLD PREMIUM THEME
   =================================== */
:root {
    /* Premium RED-GOLD Color Palette */
    --primary: #dc2626;
    --primary-dark: #991b1b;
    --primary-light: #ef4444;
    --secondary: #0f172a;
    --secondary-light: #1e293b;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-dark: #d97706;
    
    /* Gradients - RED-GOLD */
    --gradient-primary: linear-gradient(135deg, #dc2626 0%, #f59e0b 100%);
    --gradient-accent: linear-gradient(135deg, #ef4444 0%, #fbbf24 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.90) 100%);
    --gradient-hero: linear-gradient(135deg, #dc2626 0%, #f59e0b 50%, #dc2626 100%);
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-padding: 0 20px;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Animation */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ===================================
   GLOBAL RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===================================
   PRELOADER
   =================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.preloader-logo {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #dc2626 0%, #f59e0b 50%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
    animation: logoGlow 2s ease-in-out infinite;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    position: relative;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
}

.spinner-ring:nth-child(1) {
    border-top-color: #dc2626;
    border-right-color: #dc2626;
    animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(2) {
    border-bottom-color: #f59e0b;
    border-left-color: #f59e0b;
    animation: spin 1.2s linear infinite reverse;
}

.spinner-ring:nth-child(3) {
    border-top-color: #ef4444;
    animation: spin 0.8s linear infinite;
}

.preloader-text {
    color: var(--gray-100);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes logoGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* ===================================
   HEADER
   =================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    padding: 15px 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    z-index: 1001;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
}

.logo-text {
    background: linear-gradient(135deg, #dc2626 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--gray-200);
    font-weight: 500;
    font-size: 0.938rem;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
}

.lang-btn {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--gray-100);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    width: 32px;
    height: 32px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gradient-dark);
}

/* Video Background */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-video.loaded {
    opacity: 1;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.35) 0%,
        rgba(30, 41, 59, 0.30) 50%,
        rgba(15, 23, 42, 0.35) 100%
    );
    transition: opacity 0.4s ease;
}

.hero-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.12) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 1s ease;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    padding: 100px 20px 0;
    text-align: center;
    animation: fadeInUp 1s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.badge-svg-icon {
    flex-shrink: 0;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 30px;
}

.title-line {
    display: block;
    animation: fadeInUp 1s ease 0.3s backwards;
}

.title-highlight {
    display: block;
    background: linear-gradient(135deg, #dc2626 0%, #f59e0b 50%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray-100);
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.5s backwards;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease 0.6s backwards;
}

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

.stat-number {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #dc2626 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-200);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease 0.7s backwards;
}

/* Hero Features List */
.hero-features-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.8s backwards;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    color: var(--gray-200);
    font-size: 0.875rem;
    font-weight: 500;
}

.feature-badge i {
    color: var(--accent);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--gray-200);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    animation: fadeInUp 1s ease 1s backwards;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--gray-400);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--gray-400);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% {
        opacity: 0;
        top: 8px;
    }
    50% {
        opacity: 1;
        top: 20px;
    }
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 10px 30px -5px rgba(220, 38, 38, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -5px rgba(220, 38, 38, 0.6);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-white {
    background: var(--white);
    color: var(--gray-900);
}

.btn-outline-white:hover {
    background: var(--gray-100);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 20px 40px;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===================================
   SECTION STYLES
   =================================== */
.section {
    padding: var(--section-padding);
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.container-fluid {
    padding: var(--container-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===================================
   SERVICES SECTION - DARK THEME
   =================================== */
.services-section {
    background: var(--gradient-dark);
}

.services-section .section-title {
    color: var(--white);
}

.services-section .section-subtitle {
    color: var(--gray-300);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card.premium {
    background: rgba(220, 38, 38, 0.08);
    border: 2px solid var(--primary);
}

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

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 12px;
    background: var(--gradient-accent);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.service-icon {
    margin-bottom: 30px;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 10px 30px -5px rgba(220, 38, 38, 0.4);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray-200);
    margin-bottom: 25px;
    line-height: 1.8;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-100);
    font-size: 0.938rem;
}

.service-features li i {
    color: var(--success);
    font-size: 1rem;
}

/* ===================================
   PROCESS SECTION - DARK THEME, NO NUMBERS, 5-COLUMN
   =================================== */
.process-section {
    background: var(--gradient-dark);
}

.process-section .section-title {
    color: var(--white);
}

.process-section .section-subtitle {
    color: var(--gray-300);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    position: relative;
}

.timeline-item {
    text-align: center;
    position: relative;
}

.timeline-number {
    display: none;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    height: 100%;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.timeline-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--white);
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.timeline-content p {
    color: var(--gray-200);
    line-height: 1.6;
    font-size: 0.938rem;
}

/* ===================================
   CALCULATOR SECTION
   =================================== */
.calculator-section {
    background: var(--gradient-dark);
    color: var(--white);
}

.calculator-section .section-title {
    color: var(--white);
}

.calculator-section .section-subtitle {
    color: var(--gray-300);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.calculator-form,
.calculator-result {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--white);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

/* Fix for dropdown option visibility */
.form-select option {
    background-color: #1e293b !important;
    color: #ffffff !important;
    padding: 10px;
}

.form-select option:checked {
    background-color: #dc2626 !important;
    color: #ffffff !important;
}

.form-select option:hover {
    background-color: #dc2626 !important;
    color: #ffffff !important;
}

.form-input::placeholder {
    color: var(--gray-200);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

.range-display {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.875rem;
    color: var(--gray-200);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    transition: var(--transition);
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.1);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.currency-toggle {
    display: flex;
    gap: 10px;
}

.currency-btn {
    flex: 1;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    color: var(--gray-100);
    font-weight: 600;
    transition: var(--transition);
}

.currency-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.currency-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
}

/* Calculator Result */
.result-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.result-header {
    margin-bottom: 30px;
}

.result-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.result-header p {
    color: var(--gray-200);
}

.result-price {
    text-align: center;
    padding: 40px;
    background: rgba(220, 38, 38, 0.1);
    border: 2px solid rgba(220, 38, 38, 0.3);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.price-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-200);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.price-amount {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #dc2626 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
}

.price-per-sqm {
    display: block;
    font-size: 1rem;
    color: var(--gray-200);
}

.result-breakdown {
    margin-bottom: 30px;
}

.result-breakdown h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-100);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.result-features {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--success);
}

.result-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
    font-size: 0.875rem;
    color: var(--gray-200);
}

/* ===================================
   GALLERY SECTION - DARK THEME
   =================================== */
.gallery-section {
    background: var(--gradient-dark);
}

.gallery-section .section-title {
    color: var(--white);
}

.gallery-section .section-subtitle {
    color: var(--gray-300);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--gray-100);
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.gallery-item {
    opacity: 1;
    transition: var(--transition);
}

.gallery-item.hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.gallery-card {
    background: transparent;
    backdrop-filter: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: none;
    transition: var(--transition);
    border: none;
}

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

.gallery-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    border-radius: 12px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h3 {
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--gray-100);
    font-size: 0.938rem;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gallery-info {
    padding: 20px;
}

.category-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.813rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: capitalize;
}

/* ===================================
   TESTIMONIALS SECTION - DARK THEME
   =================================== */
.testimonials-section {
    background: var(--gradient-dark);
}

.testimonials-section .section-title {
    color: var(--white);
}

.testimonials-section .section-subtitle {
    color: var(--gray-300);
}

.testimonials-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Testimonials Slider */
.testimonials-slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 60px;
}

.testimonials-slider {
    overflow: hidden;
    position: relative;
}

.testimonial-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.testimonial-slide.active {
    display: block;
}

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

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(245, 158, 11, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
    background: rgba(220, 38, 38, 0.9);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.slider-btn svg {
    color: white;
}

.slider-btn-prev {
    left: 0;
}

.slider-btn-next {
    right: 0;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background: rgba(245, 158, 11, 0.6);
    transform: scale(1.2);
}

.slider-dot.active {
    background: var(--primary);
    width: 32px;
    border-radius: 6px;
}

.testimonials-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12);
}

.quote-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.2;
}

.rating {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.rating i {
    color: #fbbf24;
    font-size: 1.25rem;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-200);
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.author-info p {
    color: var(--gray-200);
    font-size: 0.938rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dots .dot.active {
    background: var(--primary);
    width: 40px;
    border-radius: 6px;
}

/* ===================================
   CONTACT SECTION - DARK THEME
   =================================== */
.contact-section {
    background: var(--gradient-dark);
}

.contact-section .section-title {
    color: var(--white);
}

.contact-section .section-subtitle {
    color: var(--gray-300);
}

.contact-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}

.contact-form .form-input,
.contact-form .form-select,
.contact-form .form-textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form .form-input::placeholder,
.contact-form .form-textarea::placeholder {
    color: var(--gray-500);
}

.contact-form .form-input:focus,
.contact-form .form-select:focus,
.contact-form .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
}

.contact-info-card {
    background: var(--gradient-dark);
    padding: 50px;
    border-radius: var(--radius-xl);
    color: var(--white);
    height: 100%;
}

.contact-info-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-info-card > p {
    color: var(--gray-100);
    margin-bottom: 40px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    font-size: 1.25rem;
    color: var(--accent);
}

.info-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.info-content p {
    color: var(--gray-100);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.125rem;
    transition: var(--transition);
}

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

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

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

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1200px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .calculator-wrapper,
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--gradient-dark);
        padding: 100px 30px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-features-list {
        flex-direction: column;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
    }
    
    .calculator-form,
    .calculator-result {
        padding: 30px 20px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .testimonials-carousel {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper,
    .contact-info-card {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .language-switcher {
        display: none;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.hidden {
    display: none !important;
}

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

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

/* ===================================
   MOBILE OPTIMIZATIONS - ENHANCED
   =================================== */

@media (max-width: 576px) {
    body {
        font-size: 15px;
    }
    
    /* ── HEADER MOBILE FIX ── */
    .site-header {
        padding: 12px 0;
        background: rgba(10, 15, 30, 0.92) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .header-container {
        padding: 0 16px;
        gap: 0;
        justify-content: space-between;
    }

    .site-logo {
        font-size: 1.15rem;
        gap: 8px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
        flex-shrink: 0;
    }

    .logo-icon svg {
        width: 30px;
        height: 30px;
    }

    .logo-text {
        white-space: nowrap;
        font-size: 1.1rem;
    }

    /* Language switcher — скрыть на мобиле, показывать только в меню */
    .language-switcher {
        display: none !important;
    }

    /* Mobile toggle */
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        display: flex;
        margin-left: auto;
    }

    /* ── HERO MOBILE FIX ── */
    .hero-section {
        min-height: 100svh;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        padding: 80px 20px 40px;
        padding-top: calc(60px + env(safe-area-inset-top, 20px));
    }

    .hero-badge {
        padding: 8px 16px;
        font-size: 0.72rem;
        margin-bottom: 16px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
        margin-bottom: 16px;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 0.92rem;
        margin-bottom: 24px;
        line-height: 1.65;
    }

    /* Stats в ряд на мобиле */
    .hero-stats {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 24px;
        margin-bottom: 28px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.72rem;
    }

    /* Кнопки */
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 28px;
        align-items: stretch;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.92rem;
    }

    /* Feature badges */
    .hero-features-list {
        gap: 10px;
        justify-content: center;
    }

    .feature-badge {
        padding: 7px 14px;
        font-size: 0.78rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .hero-actions .btn {
        width: 100%;
        padding: 14px 28px;
        font-size: 0.938rem;
    }
    
    .hero-features-list {
        flex-direction: column;
        gap: 12px;
    }
    
    .feature-badge {
        padding: 8px 16px;
        font-size: 0.813rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* Section mobile */
    .section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.938rem;
    }
    
    /* Services mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Process mobile */
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .timeline-number {
        font-size: 3.5rem;
    }
    
    /* Calculator mobile */
    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .calculator-form,
    .calculator-result {
        padding: 25px 15px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 14px 16px;
        font-size: 0.938rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .currency-toggle {
        flex-wrap: wrap;
    }
    
    .currency-btn {
        flex: 1;
        min-width: calc(33.333% - 7px);
    }
    
    /* Gallery mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    
    /* Testimonials mobile */
    .testimonials-carousel {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    /* Contact mobile */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form-wrapper,
    .contact-info-card {
        padding: 25px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Mobile menu improvements */
    .main-navigation {
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .main-navigation ul {
        padding-top: 20px;
    }
    
    .nav-link {
        font-size: 1.125rem;
        padding: 12px 0;
    }
    
    /* Buttons mobile */
    .btn {
        padding: 14px 28px;
        font-size: 0.938rem;
    }
    
    .btn-lg {
        padding: 16px 32px;
        font-size: 1rem;
    }
    
    /* Footer mobile */
    .site-footer {
        padding-top: 60px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .footer-bottom {
        padding: 25px 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Back to top mobile */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
    
    /* Language switcher mobile */
    .language-switcher {
        order: 3;
    }
    
    /* Preloader mobile */
    .preloader-logo {
        font-size: 2.5rem;
    }
    
    .preloader-spinner {
        width: 50px;
        height: 50px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        -webkit-tap-highlight-color: transparent;
    }
    
    .nav-link,
    .filter-btn,
    .lang-btn {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Increase touch targets */
    .mobile-menu-toggle {
        width: 44px;
        height: 44px;
        padding: 10px;
    }
    
    .back-to-top {
        width: 54px;
        height: 54px;
    }
}

/* Landscape phone optimization */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-item {
        flex: 0 0 auto;
        min-width: 150px;
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        min-height: -webkit-fill-available;
    }
    
    input,
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* ===================================
   MOBILE LANGUAGE SWITCHER
   =================================== */
.language-switcher-mobile {
    display: none;
    margin-top: 30px;
    padding: 20px 0 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 6px;
    justify-content: center;
}

.lang-btn-mobile {
    padding: 6px 18px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--gray-100);
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition);
    cursor: pointer;
}

.lang-btn-mobile:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn-mobile.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
}

@media (max-width: 992px) {
    .language-switcher-mobile {
        display: flex;
    }
}

/* Mobile nav drawer width fix */
@media (max-width: 992px) {
    .main-navigation {
        width: 260px;
        overflow-y: auto;
    }
}

/* Process timeline responsive: keep 5 columns until tablet, then stack */
@media (max-width: 1200px) {
    .process-timeline {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Fix back-to-top z-index to not overlap Tawk widget */
.back-to-top {
    z-index: 998 !important;
}

@media (max-width: 576px) {
    .back-to-top {
        bottom: 80px !important;
    }
}

/* Body menu-open backdrop */
body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999;
    animation: fadeIn 0.3s ease;
}

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

/* ИСПРАВЛЕНИЯ - Скрыть кавычки во всех отзывах */
.quote-icon-modern {
    display: none !important;
}

/* Исправление иконок звездочек */
.rating-modern svg {
    fill: #fbbf24 !important;
    width: 20px;
    height: 20px;
}

/* Убедимся, что по 1 карточке на слайд */
.testimonial-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonials-grid-modern {
    display: flex;
    justify-content: center;
    max-width: 100%;
}

.testimonial-card-modern {
    width: 100%;
    max-width: 600px;
}

/* Lightbox Gallery Styles */
.gallery-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.gallery-card:hover {
    text-decoration: none;
}

.gallery-overlay .zoom-icon {
    width: 80px;
    height: 80px;
    background: rgba(220, 38, 38, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.gallery-card:hover .zoom-icon {
    transform: scale(1.1);
    background: rgba(245, 158, 11, 0.9);
}

.gallery-overlay .overlay-content {
    text-align: center;
}

/* Настройка lightbox */
.lb-data .lb-caption {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.lb-data .lb-number {
    color: rgba(255, 255, 255, 0.8);
}


/* Hero Image Background Styles */
.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.65);
    transform: scale(1.05);
}

/* Анимация при загрузке */
@keyframes heroImageZoom {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1.05);
    }
}

.hero-image {
    animation: heroImageZoom 20s ease-out infinite alternate;
}

/* Parallax effect for hero image — desktop only, mobile breaks with fixed */
@media (min-width: 1024px) {
    .hero-section {
        background-attachment: scroll; /* intentionally scroll - fixed breaks mobile */
    }
}


/* Исправление видимости текста в выпадающих списках */
select,
select option {
    background-color: #1e293b !important;
    color: #ffffff !important;
}

select option:checked,
select option:hover {
    background-color: #dc2626 !important;
    color: #ffffff !important;
}

.calc-input-group select {
    color: #ffffff !important;
    background-color: #1e293b !important;
}

.contact-form select {
    color: #ffffff !important;
    background-color: #1e293b !important;
}

/* Глобальный фикс для всех option элементов */
option {
    background-color: #1e293b !important;
    color: #ffffff !important;
}


/* ===========================
   CROSS-BROWSER FIXES
   =========================== */

/* Fix for Yandex / Firefox / Edge - hero text overlap */
.hero-section {
    padding-top: 0;
}

/* NOTE: padding-top removed here — handled per breakpoint in mobile-fix.css */
@media (min-width: 769px) {
    .hero-content {
        padding-top: 100px;
    }
}

/* Webkit background-clip fix for all browsers */
.hero-title,
.title-line,
.title-highlight,
.logo-text {
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
}

/* Fix nav transparency on non-Chrome browsers */
.site-header {
    background: rgba(15, 23, 42, 0.75);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Fix nav z-index so it never overlaps hero text */
.main-navigation {
    z-index: 1001;
    position: relative;
}

/* Ensure stat numbers are always visible */
.stat-number {
    color: var(--primary) !important;
    -webkit-text-fill-color: unset !important;
}

/* Fix button rendering in all browsers */
.btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
}

/* Fix for Firefox - select dropdown */
select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #ffffff;
}

/* Gallery title styled as badge */
.gallery-title-badge {
    display: inline-block;
    background: var(--gradient-primary) !important;
    -webkit-background-clip: unset !important;
    -moz-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    color: #ffffff !important;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 1.1rem !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* TikTok social with label */
.tiktok-social-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tiktok-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #dc2626, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    max-width: 130px;
    line-height: 1.4;
}

.tiktok-link {
    transition: transform 0.3s ease;
}

.tiktok-link:hover {
    transform: translateY(-4px) scale(1.1);
}

/* ===========================
   GALLERY HERO-STYLE HEADER
   =========================== */
.gallery-hero-header {
    padding: 60px 20px 30px;
}

.gallery-hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 20px;
    line-height: 1.1;
}

.gallery-title-line {
    display: block;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.gallery-title-highlight {
    display: block;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #dc2626 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
}

.gallery-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
    letter-spacing: 0.02em;
}

/* ===================================================
   TOP 3 PROIECTE SIP — LEGENDARY SECTION
   =================================================== */

.top-projects-section {
    position: relative;
    background: linear-gradient(180deg, #0a0f1e 0%, #0f172a 50%, #0a0f1e 100%);
    padding: 80px 0 90px;
    overflow: hidden;
}

.top-projects-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(220,38,38,0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 30%, rgba(245,158,11,0.08) 0%, transparent 55%);
    pointer-events: none;
}

.top-projects-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

/* === HEADER === */
.top-projects-header {
    text-align: center;
    margin-bottom: 60px;
}

.top-projects-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 20px;
    line-height: 1.0;
}

.tpt-line1 {
    display: block;
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.tpt-line2 {
    display: block;
    font-size: clamp(2.8rem, 6.5vw, 6rem);
    font-weight: 900;
    background: linear-gradient(135deg, #dc2626 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.03em;
}

.top-projects-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.6);
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: 0.02em;
}

/* === GRID === */
.top-projects-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    margin-bottom: 50px;
}

.top-projects-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* === CARD === */
.top-project-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    cursor: pointer;
}

.top-project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(220,38,38,0.2);
    border-color: rgba(245,158,11,0.3);
}

.top-project-img-wrap {
    position: relative;
    overflow: hidden;
}

.top-project-main .top-project-img-wrap {
    height: 320px;
}

.top-projects-side .top-project-img-wrap {
    height: 180px;
}

.top-project-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.top-project-card:hover .top-project-img-wrap img {
    transform: scale(1.05);
}

.top-project-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
}

.top-project-tag {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #dc2626, #f59e0b);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(220,38,38,0.4);
}

.top-project-info {
    padding: 24px;
}

.top-project-info h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.top-project-info p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    margin-bottom: 16px;
}

.top-project-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.top-project-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}

/* === CTA === */
.top-projects-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .top-projects-grid {
        grid-template-columns: 1fr;
    }
    .top-project-main .top-project-img-wrap {
        height: 260px;
    }
    .top-projects-side {
        flex-direction: row;
    }
    .top-projects-side .top-project-card {
        flex: 1;
    }
}

@media (max-width: 600px) {
    .top-projects-inner {
        padding: 0 16px;
    }
    .top-projects-side {
        flex-direction: column;
    }
    .top-projects-cta {
        flex-direction: column;
    }
    .top-projects-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================================
   PROJECT COLLAGE — 3 photos = 1 project
   =================================================== */

.proj-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 60px;
}

.proj-item {
    display: grid;
    grid-template-columns: 40px 1fr 380px;
    gap: 32px;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 28px;
    padding: 36px 36px 36px 28px;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.proj-item:hover {
    box-shadow: 0 24px 70px rgba(220,38,38,0.14);
    border-color: rgba(245,158,11,0.22);
}

/* Number badge */
.proj-number {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 4.5rem;
    font-weight: 900;
    color: rgba(255,255,255,0.05);
    letter-spacing: -0.04em;
    line-height: 1;
    user-select: none;
}

/* 3-photo collage */
.proj-collage {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 10px;
    height: 340px;
    border-radius: 18px;
    overflow: hidden;
}

.proj-col-big {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.proj-col-big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.proj-item:hover .proj-col-big img {
    transform: scale(1.04);
}

.proj-col-small {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.proj-col-sm-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    flex: 1;
    background: #0f172a;
}

.proj-col-sm-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.proj-item:hover .proj-col-sm-item img {
    transform: scale(1.06);
}

.img-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    color: rgba(255,255,255,0.9);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
    pointer-events: none;
}

/* Info panel */
.proj-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.proj-tag {
    display: inline-block;
    padding: 6px 18px;
    background: linear-gradient(135deg, #dc2626, #f59e0b);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(220,38,38,0.35);
    align-self: flex-start;
}

.proj-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
}

.proj-desc {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
}

.proj-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.proj-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.ps-val {
    font-size: 1.7rem;
    font-weight: 900;
    background: linear-gradient(135deg, #dc2626, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.ps-lbl {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.proj-stat-div {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.12);
}

.proj-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #dc2626, #f59e0b);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50px;
    text-decoration: none;
    align-self: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 20px rgba(220,38,38,0.35);
}

.proj-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(220,38,38,0.45);
}

/* Responsive */
@media (max-width: 1100px) {
    .proj-item {
        grid-template-columns: 1fr;
        padding: 24px;
    }
    .proj-number {
        display: none;
    }
    .proj-collage {
        height: 280px;
    }
}

@media (max-width: 640px) {
    .proj-collage {
        grid-template-columns: 1fr;
        height: auto;
    }
    .proj-col-big {
        height: 220px;
    }
    .proj-col-small {
        flex-direction: row;
        height: 130px;
    }
}

/* =====================================================
   TOP 3 PROJECTS — 3-IN-1 COLLAGE REDESIGN
   ===================================================== */

/* Remove old styles conflicts */
.top-project-card, .top-projects-grid, .top-projects-side,
.top-project-img-wrap, .top-project-main, .top-project-info,
.top-project-meta, .top-project-tag, .top-project-overlay { all: unset; }

/* --- SECTION --- */
.top-projects-section {
    position: relative;
    background: #080d1a;
    padding: 90px 0 100px;
    overflow: hidden;
}
.top-projects-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 10% 60%, rgba(220,38,38,0.07) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 90% 20%, rgba(245,158,11,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.top-projects-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
    position: relative;
    z-index: 1;
}

/* --- HEADER --- */
.top-projects-header {
    text-align: center;
    margin-bottom: 70px;
}
.top-projects-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.0;
    margin-bottom: 18px;
}
.tpt-line1 {
    display: block;
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.tpt-line2 {
    display: block;
    font-size: clamp(3rem, 7.5vw, 6.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #dc2626 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.03em;
}
.top-projects-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.02em;
}

/* --- PROJECTS LIST --- */
.proj-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}

/* --- SINGLE PROJECT CARD --- */
.proj-item {
    position: relative;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.proj-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(220,38,38,0.18);
    border-color: rgba(245,158,11,0.25);
}

/* Number badge */
.proj-num-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
    font-size: 0.7rem;
    font-weight: 900;
    color: rgba(255,255,255,0.15);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
    font-size: 3.5rem;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.proj-body {
    display: flex;
    flex-direction: column;
}

/* --- 3-IN-1 COLLAGE --- */
.proj-collage {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: 240px;
    gap: 3px;
}
.pc-main {
    position: relative;
    overflow: hidden;
}
.pc-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.proj-item:hover .pc-main img {
    transform: scale(1.06);
}
.pc-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
}
.pc-sm {
    position: relative;
    overflow: hidden;
}
.pc-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.proj-item:hover .pc-sm img {
    transform: scale(1.08);
}

/* Photo labels */
.pc-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    padding: 4px 10px;
    border-radius: 20px;
    pointer-events: none;
}

/* --- INFO PANEL --- */
.proj-info {
    padding: 24px;
    flex: 1;
}
.proj-tag {
    display: inline-block;
    padding: 5px 14px;
    background: linear-gradient(135deg, #dc2626, #f59e0b);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 14px;
    box-shadow: 0 4px 15px rgba(220,38,38,0.35);
}
.proj-tag-soon {
    background: rgba(255,255,255,0.1);
    box-shadow: none;
    color: rgba(255,255,255,0.5);
}
.proj-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.35;
}
.proj-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.65;
    margin-bottom: 18px;
}

/* Stats row */
.proj-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.proj-stats-muted .ps-val,
.proj-stats-muted .ps-lbl { opacity: 0.3; }
.proj-stat { text-align: center; }
.ps-val {
    font-size: 1.4rem;
    font-weight: 900;
    color: #f59e0b;
    line-height: 1;
    display: block;
}
.ps-lbl {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
    margin-top: 2px;
}
.proj-sep {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

/* CTA button */
.proj-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #dc2626, #f59e0b);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 6px 20px rgba(220,38,38,0.35);
}
.proj-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220,38,38,0.5);
}
.proj-cta-muted {
    background: rgba(255,255,255,0.08);
    box-shadow: none;
    color: rgba(255,255,255,0.5);
}
.proj-cta-muted:hover {
    background: rgba(255,255,255,0.14);
    box-shadow: none;
    transform: translateY(-2px);
}

/* Coming soon placeholder */
.proj-collage-soon { grid-template-rows: 240px; }
.pc-soon-main {
    background: rgba(255,255,255,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pc-soon-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.25);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.pc-soon-sm {
    background: rgba(255,255,255,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pc-soon-sm-inner {
    opacity: 0.4;
}

/* CTA row */
.top-projects-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1100px) {
    .proj-list { grid-template-columns: 1fr; max-width: 700px; margin-left: auto; margin-right: auto; }
    .proj-collage { grid-template-rows: 280px; }
}
@media (max-width: 600px) {
    .top-projects-inner { padding: 0 16px; }
    .proj-collage { grid-template-columns: 1fr; grid-template-rows: auto; }
    .pc-side { grid-template-rows: 130px 130px; }
    .pc-main { height: 220px; }
    .top-projects-cta { flex-direction: column; align-items: center; }
    .top-projects-cta .btn { width: 100%; justify-content: center; }
}

/* ===================================================
   TPS — NEW PREMIUM 3-IN-1 PROJECT SECTION
   =================================================== */

.tps-wrap {
    background: #07091a;
    padding: 100px 0 110px;
    position: relative;
    overflow: hidden;
}
.tps-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 40% at 5% 80%, rgba(220,38,38,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 95% 10%, rgba(245,158,11,0.06) 0%, transparent 60%);
    pointer-events: none;
}
.tps-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    position: relative;
    z-index: 1;
}

/* HEAD */
.tps-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px;
    gap: 40px;
}
.tps-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #f59e0b;
    margin-bottom: 12px;
}
.tps-dot {
    width: 8px; height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(245,158,11,0.6);
    animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.7; }
}
.tps-h2 {
    display: flex;
    flex-direction: column;
    line-height: 1.0;
    margin: 0;
}
.tps-h2-num {
    font-style: normal;
    font-size: clamp(4rem, 9vw, 8rem);
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 0.95;
    text-shadow: 0 0 60px rgba(255,255,255,0.05);
}
.tps-h2-text {
    font-size: clamp(2.5rem, 5.5vw, 5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #dc2626 0%, #f59e0b 60%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
    line-height: 1.1;
}
.tps-head-right {
    max-width: 380px;
    text-align: right;
    flex-shrink: 0;
}
.tps-head-right p {
    color: rgba(255,255,255,0.45);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}
.tps-head-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #dc2626, #f59e0b);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 25px rgba(220,38,38,0.35);
}
.tps-head-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 35px rgba(220,38,38,0.5); }

/* ── PROJECT 1 BIG CARD ── */
.tps-proj {
    position: relative;
    margin-bottom: 32px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 28px;
    overflow: hidden;
    transition: border-color 0.4s, box-shadow 0.4s;
}
.tps-proj:hover {
    border-color: rgba(245,158,11,0.2);
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.tps-proj-num {
    position: absolute;
    top: 20px; right: 28px;
    font-size: 7rem;
    font-weight: 900;
    color: rgba(255,255,255,0.04);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
.tps-proj-content {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    position: relative;
    z-index: 1;
}

/* ── 3-IN-1 COLLAGE ── */
.tps-collage {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 4px;
    height: 460px;
    border-radius: 28px 0 0 28px;
    overflow: hidden;
}
.tps-col-a {
    position: relative;
    overflow: hidden;
}
.tps-col-a img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}
.tps-proj:hover .tps-col-a img { transform: scale(1.04); }

.tps-col-b {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
}
.tps-col-b-top, .tps-col-b-bot {
    position: relative;
    overflow: hidden;
}
.tps-col-b-top img, .tps-col-b-bot img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}
.tps-proj:hover .tps-col-b-top img,
.tps-proj:hover .tps-col-b-bot img { transform: scale(1.06); }

/* Photo label */
.tps-photo-tag {
    position: absolute;
    bottom: 12px; left: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 5px 12px;
    border-radius: 20px;
    pointer-events: none;
}

/* ── INFO PANEL ── */
.tps-info {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.tps-badge {
    display: inline-block;
    padding: 5px 16px;
    background: linear-gradient(135deg, #dc2626, #f59e0b);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(220,38,38,0.4);
}
.tps-badge-soon {
    background: rgba(255,255,255,0.08) !important;
    box-shadow: none !important;
    color: rgba(255,255,255,0.4) !important;
}
.tps-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}
.tps-info-soon h3 { color: rgba(255,255,255,0.4); }
.tps-info p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* Stats */
.tps-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.tps-stats-muted .tps-stat strong,
.tps-stats-muted .tps-stat span { opacity: 0.2; }
.tps-stat { text-align: center; }
.tps-stat strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 900;
    color: #f59e0b;
    line-height: 1;
}
.tps-stat span {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 3px;
}
.tps-sdiv {
    width: 1px; height: 36px;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
}

/* CTA */
.tps-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    background: linear-gradient(135deg, #dc2626, #f59e0b);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    align-self: flex-start;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 25px rgba(220,38,38,0.35);
}
.tps-cta:hover { transform: translateY(-3px); box-shadow: 0 14px 35px rgba(220,38,38,0.5); }
.tps-cta-soon {
    background: rgba(255,255,255,0.07) !important;
    box-shadow: none !important;
    color: rgba(255,255,255,0.45) !important;
}
.tps-cta-soon:hover { background: rgba(255,255,255,0.12) !important; box-shadow: none !important; }

/* ── SOON ROW ── */
.tps-soon-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.tps-proj-soon {
    position: relative;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    overflow: hidden;
    transition: border-color 0.4s;
}
.tps-proj-soon:hover { border-color: rgba(255,255,255,0.1); }
.tps-proj-num-sm {
    font-size: 4.5rem;
    position: absolute;
    top: 12px; right: 20px;
    color: rgba(255,255,255,0.035);
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.tps-soon-collage {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 4px;
    height: 240px;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.tps-soon-a { position: relative; overflow: hidden; }
.tps-soon-b {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
}
.tps-soon-sm { overflow: hidden; }
.tps-soon-placeholder {
    background: rgba(255,255,255,0.025);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255,255,255,0.2);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    height: 100%;
}
.tps-info-soon { padding: 24px 28px; }
.tps-info-soon h3 { font-size: 1.1rem; }

/* =====================================================
   TPS v3 — 4-PHOTO MOSAIC + 3D DEPTH EFFECTS
   ===================================================== */

/* SECTION */
.tps-wrap {
    background: #060b18;
    padding: 100px 0 110px;
    position: relative;
    overflow: hidden;
}
.tps-wrap::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 0% 70%, rgba(220,38,38,0.07) 0%, transparent 55%),
        radial-gradient(ellipse 60% 60% at 100% 10%, rgba(245,158,11,0.07) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(30,41,59,0.4) 0%, transparent 70%);
    pointer-events: none;
}
.tps-container {
    max-width: 1440px; margin: 0 auto;
    padding: 0 48px;
    position: relative; z-index: 1;
}

/* HEADER */
.tps-head {
    display: flex; justify-content: space-between;
    align-items: flex-end; margin-bottom: 72px; gap: 40px;
}
.tps-eyebrow {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: #f59e0b; margin-bottom: 10px;
}
.tps-dot {
    width: 8px; height: 8px; background: #f59e0b;
    border-radius: 50%; flex-shrink: 0;
    box-shadow: 0 0 12px rgba(245,158,11,0.7);
    animation: tpsPulse 2.2s ease-in-out infinite;
}
@keyframes tpsPulse {
    0%,100%{transform:scale(1);opacity:1}
    50%{transform:scale(1.5);opacity:0.6}
}
.tps-h2 { display:flex; flex-direction:column; line-height:1.0; margin:0; }
.tps-h2-num {
    font-style:normal; font-size:clamp(4rem,9vw,8.5rem);
    font-weight:900; color:#ffffff; text-transform:uppercase;
    letter-spacing:0.06em; line-height:0.92;
    text-shadow: 0 0 80px rgba(255,255,255,0.04);
}
.tps-h2-text {
    font-size:clamp(2.8rem,5.5vw,5.5rem); font-weight:900;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 35%, #f59e0b 70%, #fbbf24 100%);
    -webkit-background-clip:text; -webkit-text-fill-color:transparent;
    background-clip:text; letter-spacing:0.02em;
}
.tps-head-right { max-width:420px; text-align:right; flex-shrink:0; }
.tps-head-right p {
    font-size:1.25rem;
    font-weight:600;
    line-height:1.6;
    margin-bottom:28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(245,158,11,0.75) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.01em;
}
.tps-head-btn {
    display:inline-flex; align-items:center; gap:9px;
    padding:13px 30px;
    background: linear-gradient(135deg,#dc2626,#f59e0b);
    color:#fff; font-weight:700; font-size:0.9rem;
    border-radius:50px; text-decoration:none;
    transition:transform 0.3s,box-shadow 0.3s;
    box-shadow:0 8px 28px rgba(220,38,38,0.38);
}
.tps-head-btn:hover{transform:translateY(-3px);box-shadow:0 16px 40px rgba(220,38,38,0.55);}

/* ── BIG PROJECT CARD ── */
.tps-proj {
    position:relative;
    display:grid;
    grid-template-columns: 1fr 1fr 380px;
    gap:0;
    background: rgba(255,255,255,0.025);
    border:1px solid rgba(255,255,255,0.07);
    border-radius:28px; overflow:hidden;
    margin-bottom:28px;
    transition:border-color 0.4s, box-shadow 0.4s, transform 0.4s;
}
.tps-proj:hover {
    border-color:rgba(245,158,11,0.22);
    box-shadow:0 40px 100px rgba(0,0,0,0.55), 0 0 0 1px rgba(245,158,11,0.08);
    transform:translateY(-4px);
}
.tps-proj-num {
    position:absolute; top:20px; left:24px;
    width:40px; height:40px;
    background: linear-gradient(135deg, #dc2626 0%, #f59e0b 100%);
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-size:1rem; font-weight:800; color:#fff;
    line-height:1; z-index:10;
    letter-spacing:0;
    box-shadow: 0 4px 12px rgba(220,38,38,0.4);
}

/* ── 4-PHOTO MOSAIC ── */
.tps-mosaic {
    grid-column:1/3;
    display:grid;
    grid-template-columns:1.6fr 1fr;
    gap:4px;
    overflow:hidden;
    height:520px;
}
.tps-mos-main {
    position:relative; overflow:hidden;
    height:520px;
}
.tps-mos-main img {
    width:100%; height:100%;
    object-fit:cover; display:block;
    transition:transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.tps-proj:hover .tps-mos-main img{transform:scale(1.05);}
.tps-mos-glow {
    position:absolute; inset:0;
    background:linear-gradient(to top, rgba(6,11,24,0.7) 0%, transparent 50%);
    pointer-events:none;
}
.tps-mos-side {
    display:grid;
    grid-template-rows:1fr 1fr 1fr;
    gap:4px;
    height:520px;
}
.tps-mos-sm {
    position:relative; overflow:hidden;
    min-height:0;
}
.tps-mos-sm img {
    width:100%; height:100%;
    object-fit:cover; display:block;
    transition:transform 0.6s ease, filter 0.4s;
    filter:brightness(0.88);
}
.tps-mos-sm:hover img {transform:scale(1.07);filter:brightness(1);}

/* Photo tags */
.tps-mos-tag {
    position:absolute; bottom:10px; left:10px;
    font-size:0.6rem; font-weight:800;
    text-transform:uppercase; letter-spacing:0.09em;
    color:#fff; background:rgba(0,0,0,0.52);
    backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
    padding:4px 12px; border-radius:20px;
    pointer-events:none; z-index:2;
}

/* ── INFO PANEL ── */
.tps-info {
    padding:40px 38px;
    display:flex; flex-direction:column; justify-content:center;
    position:relative; z-index:1;
    border-left:1px solid rgba(255,255,255,0.05);
}
.tps-badge {
    display:inline-block; padding:5px 16px;
    background:linear-gradient(135deg,#dc2626,#f59e0b);
    color:#fff; font-size:0.68rem; font-weight:800;
    letter-spacing:0.1em; text-transform:uppercase;
    border-radius:50px; margin-bottom:16px;
    box-shadow:0 4px 18px rgba(220,38,38,0.4);
    align-self:flex-start;
}
.tps-badge-soon{background:rgba(255,255,255,0.07)!important;box-shadow:none!important;color:rgba(255,255,255,0.35)!important;}
.tps-info h3 {
    font-size:1.45rem; font-weight:800; color:#fff;
    margin-bottom:12px; line-height:1.3;
}
.tps-info-soon h3{color:rgba(255,255,255,0.3);}
.tps-info p {
    font-size:0.88rem; color:rgba(255,255,255,0.45);
    line-height:1.75; margin-bottom:24px;
}
.tps-stats {
    display:flex; align-items:center;
    gap:12px; margin-bottom:20px; flex-wrap:nowrap;
}
.tps-stats-muted .tps-stat strong,
.tps-stats-muted .tps-stat span{opacity:0.18;}
.tps-stat{text-align:center;}
.tps-stat strong {
    display:block; font-size:1.55rem; font-weight:900;
    color:#f59e0b; line-height:1;
    text-shadow:0 0 20px rgba(245,158,11,0.4);
}
.tps-stat span {
    display:block; font-size:0.6rem; font-weight:600;
    color:rgba(255,255,255,0.35); text-transform:uppercase;
    letter-spacing:0.07em; margin-top:2px;
}
.tps-sdiv{width:1px;height:34px;background:rgba(255,255,255,0.08);flex-shrink:0;}

/* Features checklist */
.tps-features {
    display:flex; flex-direction:column; gap:6px;
    margin-bottom:26px;
}
.tps-features span {
    font-size:0.8rem; color:rgba(255,255,255,0.5);
    display:flex; align-items:center; gap:8px;
}
.tps-features span:first-child::before,
.tps-features span:nth-child(2)::before,
.tps-features span:last-child::before{content:'';}

/* CTA button */
.tps-cta {
    display:inline-flex; align-items:center; gap:10px;
    padding:13px 28px;
    background:linear-gradient(135deg,#dc2626,#f59e0b);
    color:#fff; font-size:0.88rem; font-weight:700;
    border-radius:50px; text-decoration:none;
    align-self:flex-start; transition:transform 0.3s,box-shadow 0.3s;
    box-shadow:0 8px 25px rgba(220,38,38,0.38);
}
.tps-cta:hover{transform:translateY(-3px);box-shadow:0 16px 40px rgba(220,38,38,0.55);}
.tps-cta-soon{background:rgba(255,255,255,0.07)!important;box-shadow:none!important;color:rgba(255,255,255,0.4)!important;}
.tps-cta-soon:hover{background:rgba(255,255,255,0.12)!important;box-shadow:none!important;}

/* ── SOON ROW ── */
.tps-soon-row {
    display:grid; grid-template-columns:1fr 1fr; gap:24px;
}
.tps-proj-soon {
    position:relative;
    background:rgba(255,255,255,0.02);
    border:1px solid rgba(255,255,255,0.05);
    border-radius:24px; overflow:hidden;
    transition:border-color 0.4s, transform 0.4s;
}
.tps-proj-soon:hover{border-color:rgba(255,255,255,0.1);transform:translateY(-3px);}
.tps-num-sm {
    position:absolute; bottom:12px; right:20px;
    font-size:5rem; font-weight:900;
    color:rgba(255,255,255,0.03); line-height:1;
    pointer-events:none; user-select:none; z-index:0;
}

/* Soon mosaic — 4 slots */
.tps-soon-mosaic {
    display:grid;
    grid-template-columns:1.6fr 1fr;
    gap:4px; height:240px;
    border-radius:24px 24px 0 0; overflow:hidden;
    position:relative; z-index:1;
}
.tps-soon-main{ position:relative; overflow:hidden; }
.tps-soon-side{display:grid;grid-template-rows:1fr 1fr 1fr;gap:4px;}
.tps-soon-sm{ overflow:hidden; }
.tps-ph {
    background:rgba(255,255,255,0.025);
    display:flex; flex-direction:column;
    align-items:center; justify-content:center; gap:8px;
    color:rgba(255,255,255,0.18); font-size:0.6rem;
    font-weight:700; text-transform:uppercase; letter-spacing:0.09em;
    height:100%;
}
.tps-info-soon{padding:24px 28px;}
.tps-info-soon h3{font-size:1.05rem;}

/* ══════════════════════════════════
   RESPONSIVE — TABLET & MOBILE
══════════════════════════════════ */

/* Tablet: 1024px */
@media(max-width:1200px){
    .tps-wrap{ padding:70px 0 80px; }
    .tps-container{ padding:0 28px; }
    .tps-proj{ grid-template-columns:1fr; }
    .tps-mosaic{ grid-column:1/2; height:400px; }
    .tps-proj-half .tps-mosaic{ height:380px; }
    .tps-info{ border-left:none; border-top:1px solid rgba(255,255,255,0.05); padding:28px 28px; }
    .tps-soon-row{ grid-template-columns:1fr 1fr; gap:16px; }
    .tps-head{ margin-bottom:44px; }
}

/* Tablet small: 860px */
@media(max-width:860px){
    .tps-wrap{ padding:56px 0 64px; }
    .tps-container{ padding:0 20px; }

    /* Header */
    .tps-head{ flex-direction:column; align-items:flex-start; gap:20px; margin-bottom:36px; }
    .tps-head-right{ text-align:left; max-width:100%; }
    .tps-head-btn{ font-size:0.82rem; padding:10px 22px; }
    .tps-h2-num{ font-size:clamp(3.5rem,14vw,6rem); }
    .tps-h2-text{ font-size:clamp(2.2rem,9vw,4rem); }

    /* Cards */
    .tps-proj{ border-radius:20px; margin-bottom:20px; }
    .tps-proj-num{ width:34px; height:34px; font-size:0.9rem; top:14px; left:16px; }

    /* Mosaic: big photo + 3 small below in a row */
    .tps-mosaic{
        grid-template-columns:1fr;
        height:auto;
        grid-column:1/2;
    }
    .tps-mos-main{ height:260px; }
    .tps-mos-main img{ min-height:260px; height:100%; }
    .tps-mos-side{
        grid-template-rows:none;
        grid-template-columns:1fr 1fr 1fr;
        height:110px;
    }
    .tps-mos-sm{ height:110px; min-height:0; overflow:hidden; }
    .tps-mos-sm img{ min-height:110px; height:110px; width:100%; object-fit:cover; }

    /* Info panel */
    .tps-info{ padding:22px 20px; }
    .tps-info h3{ font-size:1.2rem; }
    .tps-info p{ font-size:0.82rem; margin-bottom:18px; }
    .tps-stat strong{ font-size:1.25rem; }
    .tps-stat span{ font-size:0.55rem; }
    .tps-stats{ gap:8px; }
    .tps-sdiv{ height:28px; }

    /* Half projects row */
    .tps-soon-row{ grid-template-columns:1fr; gap:20px; }
    .tps-proj-half{ grid-template-columns:1fr; }
    .tps-proj-half .tps-mosaic{ height:auto; }
    .tps-proj-half .tps-mos-main{ height:240px; }
    .tps-proj-half .tps-mos-side{
        grid-template-rows:none;
        grid-template-columns:1fr 1fr 1fr;
        height:100px;
    }
    .tps-proj-half .tps-mos-sm{ height:100px; min-height:0; overflow:hidden; }
    .tps-proj-half .tps-mos-sm img{ height:100px; width:100%; min-height:unset; object-fit:cover; display:block; }
}

/* Mobile: 560px */
@media(max-width:560px){
    .tps-wrap{ padding:44px 0 52px; }
    .tps-container{ padding:0 14px; }

    /* Header */
    .tps-h2-num{ font-size:clamp(3rem,13vw,5rem); }
    .tps-h2-text{ font-size:clamp(1.9rem,9vw,3.2rem); }
    .tps-head{ gap:16px; margin-bottom:28px; }
    .tps-head-right p{ font-size:0.85rem; }
    .tps-head-btn{ width:100%; justify-content:center; padding:12px 20px; }

    /* Cards */
    .tps-proj{ border-radius:16px; margin-bottom:16px; }
    .tps-proj-num{ width:30px; height:30px; font-size:0.8rem; top:10px; left:12px; }

    /* Mosaic */
    .tps-mos-main{ height:220px; }
    .tps-mos-main img{ min-height:220px; }
    .tps-mos-side{ height:88px; grid-template-columns:1fr 1fr 1fr; grid-template-rows:none; }
    .tps-mos-sm{ height:88px; min-height:0; overflow:hidden; }
    .tps-mos-sm img{ min-height:88px; height:88px; width:100%; object-fit:cover; display:block; }
    .tps-mos-tag{ font-size:0.55rem; padding:3px 9px; bottom:6px; left:6px; }
    .tps-mos-zoom{ width:36px; height:36px; }

    /* Info */
    .tps-info{ padding:18px 16px; }
    .tps-badge{ font-size:0.62rem; padding:4px 12px; margin-bottom:10px; }
    .tps-info h3{ font-size:1.05rem; margin-bottom:8px; }
    .tps-info p{ font-size:0.78rem; line-height:1.6; margin-bottom:14px; }

    /* Stats — wrap on 2 rows if needed */
    .tps-stats{ flex-wrap:wrap; gap:10px 6px; margin-bottom:14px; }
    .tps-stat strong{ font-size:1.1rem; }
    .tps-stat span{ font-size:0.5rem; }
    .tps-sdiv{ height:24px; }

    /* Features */
    .tps-features{ gap:4px; margin-bottom:18px; }
    .tps-features span{ font-size:0.75rem; }

    /* CTA */
    .tps-cta{ width:100%; justify-content:center; padding:13px 20px; font-size:0.85rem; }

    /* Half row */
    .tps-proj-half .tps-mos-main{ height:200px; }
    .tps-proj-half .tps-mos-side{ height:80px; grid-template-columns:1fr 1fr 1fr; grid-template-rows:none; }
    .tps-proj-half .tps-mos-sm{ height:80px; min-height:0; overflow:hidden; }
    .tps-proj-half .tps-mos-sm img{ height:80px; width:100%; min-height:unset; object-fit:cover; display:block; }
}

/* Mobile XS: 380px */
@media(max-width:380px){
    .tps-container{ padding:0 10px; }
    .tps-h2-num{ font-size:2.8rem; }
    .tps-h2-text{ font-size:1.8rem; }
    .tps-mos-main{ height:190px; }
    .tps-mos-main img{ min-height:190px; }
    .tps-mos-side{ height:72px; grid-template-columns:1fr 1fr 1fr; grid-template-rows:none; }
    .tps-mos-sm{ height:72px; min-height:0; overflow:hidden; }
    .tps-mos-sm img{ min-height:72px; height:72px; width:100%; object-fit:cover; display:block; }
    .tps-info{ padding:14px 12px; }
    .tps-info h3{ font-size:0.95rem; }
    .tps-stat strong{ font-size:1rem; }
    .tps-proj-half .tps-mos-main{ height:180px; }
    .tps-proj-half .tps-mos-side{ height:68px; grid-template-columns:1fr 1fr 1fr; grid-template-rows:none; }
    .tps-proj-half .tps-mos-sm{ height:68px; min-height:0; overflow:hidden; }
    .tps-proj-half .tps-mos-sm img{ height:68px; width:100%; min-height:unset; object-fit:cover; display:block; }

    /* Header 380px */
    .site-logo { font-size: 1rem; gap: 7px; }
    .logo-icon, .logo-icon svg { width: 26px; height: 26px; }

    /* Hero 380px */
    .hero-title { font-size: 1.7rem; }
    .hero-subtitle { font-size: 0.85rem; }
    .stat-number { font-size: 1.7rem; }
    .feature-badge { padding: 6px 10px; font-size: 0.72rem; }
}

/* ── MOSAIC LIGHTBOX ZOOM ── */
.tps-mos-link {
    display: block;
    width: 100%; height: 100%;
    position: relative;
    text-decoration: none;
}
.tps-mos-zoom {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 10;
    border: 1.5px solid rgba(255,255,255,0.25);
}
.tps-mos-sm .tps-mos-zoom {
    width: 34px; height: 34px;
}
.tps-mos-link:hover .tps-mos-zoom {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.tps-mos-link:hover img {
    transform: scale(1.05);
    filter: brightness(0.75);
}

/* ── EMPTY PHOTO SLOTS ── */
.tps-proj-half {
    grid-template-columns: 1fr 380px;
}
.tps-proj-half .tps-mosaic {
    height: 520px;
}
.tps-proj-half .tps-mos-main {
    height: 520px;
}
.tps-proj-half .tps-mos-main img {
    min-height: unset;
    height: 100%;
}
.tps-proj-half .tps-mos-side {
    height: 520px;
    grid-template-rows: 1fr 1fr 1fr;
}
.tps-proj-half .tps-mos-sm {
    min-height: 0;
    overflow: hidden;
}
.tps-proj-half .tps-mos-sm img {
    min-height: unset;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tps-empty-slot {
    background: rgba(255,255,255,0.02);
    border: 1.5px dashed rgba(245,158,11,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tps-empty-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(245,158,11,0.4);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.tps-empty-icon-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.tps-features-muted span {
    opacity: 0.3;
}

/* ================================================================
   TPS MOSAIC — PERFECT MOBILE v2.0
   Covers all 3 projects, all photo types (render, plan, facades)
   ================================================================ */

/* ── Plans & facades: contain so drawings are fully visible ── */
.tps-mos-sm img {
    object-position: center center;
}
/* The 2nd and 3rd small thumbnails are plans/facades — use contain */
.tps-mos-side .tps-mos-sm:nth-child(2) img,
.tps-mos-side .tps-mos-sm:nth-child(3) img {
    object-fit: contain;
    background: #f5f5f0;
    filter: brightness(1) !important;
}
.tps-mos-side .tps-mos-sm:nth-child(1) img {
    /* 3D renders = cover is fine, just brighten */
    object-fit: cover;
    filter: brightness(0.95);
}

/* Touch: always show zoom icon */
@media (hover: none) and (pointer: coarse) {
    .tps-mos-zoom {
        opacity: 0.85 !important;
        transform: translate(-50%, -50%) scale(0.85) !important;
    }
}

/* ── 860px — tablet/big phone ── */
@media (max-width: 860px) {
    .tps-mosaic {
        grid-template-columns: 1fr !important;
        height: auto !important;
        gap: 3px !important;
        border-radius: 16px;
        overflow: hidden;
    }
    .tps-mos-main {
        height: 280px !important;
        border-radius: 0 !important;
    }
    .tps-mos-main img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center 30% !important;
        min-height: unset !important;
    }
    .tps-mos-side {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        grid-template-rows: none !important;
        height: 130px !important;
        gap: 3px !important;
    }
    .tps-mos-sm {
        height: 130px !important;
        min-height: 0 !important;
        overflow: hidden !important;
        border-radius: 0 !important;
    }
    .tps-mos-sm img {
        width: 100% !important;
        height: 130px !important;
        display: block !important;
    }
    .tps-mos-tag {
        font-size: 0.58rem !important;
        padding: 4px 10px !important;
        bottom: 7px !important;
        left: 7px !important;
    }

    /* Half projects same fix */
    .tps-proj-half .tps-mosaic {
        height: auto !important;
        border-radius: 16px !important;
    }
    .tps-proj-half .tps-mos-main {
        height: 260px !important;
    }
    .tps-proj-half .tps-mos-side {
        height: 120px !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        grid-template-rows: none !important;
    }
    .tps-proj-half .tps-mos-sm {
        height: 120px !important;
    }
    .tps-proj-half .tps-mos-sm img {
        height: 120px !important;
        width: 100% !important;
        object-fit: cover !important;
    }
}

/* ── 560px — small phone ── */
@media (max-width: 560px) {
    .tps-mosaic {
        gap: 2px !important;
        border-radius: 14px !important;
    }
    .tps-mos-main {
        height: 240px !important;
    }
    .tps-mos-main img {
        height: 100% !important;
        min-height: unset !important;
        object-fit: cover !important;
        object-position: center 25% !important;
    }
    .tps-mos-side {
        height: 110px !important;
        gap: 2px !important;
    }
    .tps-mos-sm {
        height: 110px !important;
    }
    .tps-mos-sm img {
        height: 110px !important;
    }
    /* Plans/facades: contain with padding */
    .tps-mos-side .tps-mos-sm:nth-child(2) img,
    .tps-mos-side .tps-mos-sm:nth-child(3) img {
        object-fit: contain !important;
        padding: 4px !important;
        background: #f0efec !important;
    }
    .tps-mos-tag {
        font-size: 0.52rem !important;
        padding: 3px 8px !important;
        bottom: 5px !important;
        left: 5px !important;
    }
    .tps-mos-zoom {
        width: 34px !important;
        height: 34px !important;
    }

    /* Half */
    .tps-proj-half .tps-mos-main {
        height: 210px !important;
    }
    .tps-proj-half .tps-mos-side {
        height: 100px !important;
    }
    .tps-proj-half .tps-mos-sm {
        height: 100px !important;
    }
    .tps-proj-half .tps-mos-sm img {
        height: 100px !important;
    }
}

/* ── 380px — XS phone ── */
@media (max-width: 380px) {
    .tps-mos-main {
        height: 205px !important;
    }
    .tps-mos-main img {
        height: 100% !important;
        min-height: unset !important;
    }
    .tps-mos-side {
        height: 90px !important;
    }
    .tps-mos-sm {
        height: 90px !important;
    }
    .tps-mos-sm img {
        height: 90px !important;
    }
    .tps-mos-tag {
        font-size: 0.48rem !important;
        padding: 2px 7px !important;
    }
    .tps-proj-half .tps-mos-main {
        height: 185px !important;
    }
    .tps-proj-half .tps-mos-side {
        height: 82px !important;
    }
    .tps-proj-half .tps-mos-sm {
        height: 82px !important;
    }
    .tps-proj-half .tps-mos-sm img {
        height: 82px !important;
    }
}

/* ── EMPTY PHOTO SLOT ── */
.tps-mos-empty {
    background: rgba(255,255,255,0.03);
    border: 1.5px dashed rgba(255,255,255,0.1);
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: default;
}
.tps-mos-empty-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}
