/* ================================================
   VIVIDFORMS - Modern Website Styles
   ================================================ */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #ff740f;
    --primary-dark: #e56500;
    --primary-light: #ff9a4d;
    --secondary: #1a1a2e;
    --dark: #0f0f1a;
    --dark-lighter: #16162a;
    --gray-900: #1a1a2e;
    --gray-800: #2d2d44;
    --gray-700: #404060;
    --gray-600: #5a5a7a;
    --gray-500: #7a7a9a;
    --gray-400: #9a9aba;
    --gray-300: #babada;
    --gray-200: #dadadf;
    --gray-100: #f0f0f5;
    --white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ff740f 0%, #ff9a4d 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    --gradient-hero: linear-gradient(180deg, rgba(15, 15, 26, 0.9) 0%, rgba(26, 26, 46, 0.95) 100%);

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --section-padding: 100px;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(255, 116, 15, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* ================================================
   LIGHT THEME - Аналоговая гармония (теплая)
   ================================================ */
[data-theme="light"] {
    /* Colors - теплые оттенки */
    --primary: #ff740f;
    --primary-dark: #e56500;
    --primary-light: #ff9a4d;
    --secondary: #f5f0e8;
    --dark: #faf8f5;              /* теплый белый */
    --dark-lighter: #f5f0e8;      /* кремовый */
    --gray-900: #2d2a26;          /* теплый черный */
    --gray-800: #3d3a36;
    --gray-700: #4a4540;
    --gray-600: #5a5650;
    --gray-500: #6a6560;
    --gray-400: #7a7570;          /* уникальное значение для контраста */
    --gray-300: #3d3a36;          /* темный для текста */
    --gray-200: #4a4540;          /* темный для lead текста */
    --gray-100: #f5f0e8;
    --white: #2d2a26;             /* теплый черный для текста */

    /* Gradients - теплые */
    --gradient-primary: linear-gradient(135deg, #ff740f 0%, #ff9a4d 100%);
    --gradient-dark: linear-gradient(135deg, #f5f0e8 0%, #faf8f5 100%);
    --gradient-hero: linear-gradient(180deg, rgba(250,248,245,0.95) 0%, rgba(245,240,232,0.98) 100%);

    /* Shadows - теплые оттенки */
    --shadow-sm: 0 2px 10px rgba(45, 42, 38, 0.06);
    --shadow-md: 0 4px 20px rgba(45, 42, 38, 0.08);
    --shadow-lg: 0 10px 40px rgba(45, 42, 38, 0.12);
    --shadow-glow: 0 0 30px rgba(255, 116, 15, 0.2);
}

/* Логотип - инвертировать для светлой темы */
[data-theme="light"] .logo-img,
[data-theme="light"] .preloader-logo-img,
[data-theme="light"] .footer-logo-img {
    filter: invert(1) brightness(0.2);
}

/* Header при скролле */
[data-theme="light"] .header.scrolled {
    background: rgba(250, 248, 245, 0.95);
    box-shadow: 0 5px 30px rgba(45, 42, 38, 0.1);
}

/* Preloader */
[data-theme="light"] .preloader {
    background: var(--dark);
}

/* Burger menu lines */
[data-theme="light"] .burger span {
    background: var(--gray-900);
}

/* Form inputs */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
    background: #fdfcfa;
    border-color: #e5dfd5;
    color: var(--gray-900);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus,
[data-theme="light"] .form-group select:focus {
    border-color: var(--primary);
}

[data-theme="light"] .form-group input:focus + label,
[data-theme="light"] .form-group input:not(:placeholder-shown) + label,
[data-theme="light"] .form-group textarea:focus + label,
[data-theme="light"] .form-group textarea:not(:placeholder-shown) + label {
    background: var(--dark-lighter);
}

/* Lightbox */
[data-theme="light"] .lightbox {
    background: rgba(250, 248, 245, 0.95);
}

/* Portfolio overlay */
[data-theme="light"] .portfolio-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(250, 248, 245, 0.95) 100%);
}

/* Scroll indicator */
[data-theme="light"] .scroll-indicator {
    color: var(--gray-600);
}

/* Cards borders */
[data-theme="light"] .service-card,
[data-theme="light"] .contact-card,
[data-theme="light"] .team-card,
[data-theme="light"] .feature,
[data-theme="light"] .step-content,
[data-theme="light"] .tech-feature,
[data-theme="light"] .contacts-form {
    border-color: #e5dfd5;
}

/* Select dropdown arrow для светлой темы */
[data-theme="light"] .form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%237a756d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}

/* Outline кнопки - видимая рамка */
[data-theme="light"] .btn-outline {
    border-color: #2d2a26;
    color: #2d2a26;
}

[data-theme="light"] .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 116, 15, 0.1);
}

/* Кнопка телефона в header */
[data-theme="light"] .phone-btn {
    border-color: var(--primary);
    background: rgba(255, 116, 15, 0.08);
}

/* CTA кнопка телефона */
[data-theme="light"] .cta-buttons .btn-outline {
    border-color: #2d2a26;
}

/* Catalog cards */
[data-theme="light"] .catalog-card {
    border-color: #e5dfd5;
}

[data-theme="light"] .catalog-arrow {
    background: rgba(45, 42, 38, 0.05);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-300);
    background-color: var(--dark);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
}

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

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Section */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 116, 15, 0.1);
    border: 1px solid rgba(255, 116, 15, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(255, 116, 15, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 116, 15, 0.4);
}

.btn-primary i {
    transition: var(--transition-normal);
}

.btn-primary:hover i {
    transform: translateX(5px);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 116, 15, 0.1);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

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

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.preloader-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 30px;
}

.preloader-logo span {
    color: var(--primary);
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: var(--gray-800);
    border-radius: 3px;
    overflow: hidden;
}

.preloader-bar::after {
    content: '';
    display: block;
    width: 50%;
    height: 100%;
    background: var(--gradient-primary);
    animation: preloaderBar 1s ease-in-out infinite;
}

@keyframes preloaderBar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

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

.header.scrolled {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
}

.logo-accent {
    color: var(--primary);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

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

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

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

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* WhatsApp Button in Header */
.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #25D366;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 1.4rem;
    transition: var(--transition-normal);
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: scale(1.05);
    color: #fff;
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 116, 15, 0.1);
    border: 1px solid rgba(255, 116, 15, 0.3);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.theme-toggle:hover {
    background: var(--primary);
    color: var(--white);
}

/* Тёмная тема: показываем луну */
.theme-toggle .fa-sun {
    display: none;
}

.theme-toggle .fa-moon {
    display: block;
}

/* Светлая тема: показываем солнце */
[data-theme="light"] .theme-toggle .fa-sun {
    display: block;
}

[data-theme="light"] .theme-toggle .fa-moon {
    display: none;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition-normal);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 116, 15, 0.1);
    border: 1px solid rgba(255, 116, 15, 0.3);
    border-radius: 50px;
    margin-bottom: 30px;
}

.hero-badge i {
    color: var(--primary);
}

.hero-badge span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-400);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 50px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
}

.hero-3d-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gray-500);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.2rem;
}

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

/* ================================================
   ABOUT SECTION
   ================================================ */
.about {
    background: var(--dark-lighter);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    margin-bottom: 40px;
}

.about-text .lead {
    font-size: 1.2rem;
    color: var(--gray-200);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--gray-400);
}

.about-text strong {
    color: var(--white);
}

/* About Features */
.about-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.feature:hover {
    background: rgba(255, 116, 15, 0.05);
    border-color: rgba(255, 116, 15, 0.2);
    transform: translateX(10px);
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    font-size: 1.3rem;
    color: var(--white);
}

.feature-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feature-content p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* About Visual */
.about-visual {
    position: relative;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--gray-600);
}

.image-placeholder i {
    font-size: 3rem;
    color: var(--gray-700);
}

.image-placeholder span {
    font-size: 0.9rem;
}

.image-placeholder.dark {
    background: linear-gradient(135deg, var(--dark-lighter) 0%, var(--dark) 100%);
}

.about-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glow);
}

.about-card .card-icon {
    font-size: 2rem;
    color: var(--white);
}

.about-card .card-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.about-card .card-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ================================================
   SERVICES SECTION
   ================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    position: relative;
    padding: 40px 30px;
    background: var(--dark-lighter);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 116, 15, 0.3);
    box-shadow: var(--shadow-lg);
}

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

.service-card.featured {
    background: linear-gradient(135deg, rgba(255, 116, 15, 0.1) 0%, var(--dark-lighter) 100%);
    border-color: rgba(255, 116, 15, 0.3);
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 12px;
    background: var(--primary);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 116, 15, 0.1);
    border-radius: var(--radius-md);
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 25px;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: var(--white);
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-description {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: 25px;
    line-height: 1.7;
}

.service-features {
    margin-bottom: 25px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--gray-400);
}

.service-features i {
    color: var(--primary);
    font-size: 0.8rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-link i {
    transition: var(--transition-normal);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ================================================
   CATALOG SECTION
   ================================================ */
.catalog {
    background: var(--dark);
    padding-top: 0;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.catalog-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--dark-lighter);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.catalog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 0;
}

.catalog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 116, 15, 0.3);
    box-shadow: var(--shadow-lg);
}

.catalog-card:hover::before {
    opacity: 0.05;
}

.catalog-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.catalog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 116, 15, 0.1);
    color: var(--primary);
    font-size: 2rem;
    transition: var(--transition-normal);
}

.catalog-card:hover .catalog-placeholder {
    background: var(--gradient-primary);
    color: var(--white);
}

.catalog-content {
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.catalog-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 5px;
    transition: var(--transition-normal);
}

.catalog-count {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.catalog-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--gray-500);
    font-size: 0.9rem;
    transition: var(--transition-normal);
    position: relative;
    z-index: 1;
}

.catalog-card:hover .catalog-arrow {
    background: var(--primary);
    color: var(--white);
    transform: translateX(5px);
}

/* ================================================
   TOAST NOTIFICATIONS
   ================================================ */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--dark-lighter);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 380px;
    pointer-events: auto;
}

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

.toast.success {
    border-left: 4px solid #4caf50;
}

.toast.error {
    border-left: 4px solid #f44336;
}

.toast.warning {
    border-left: 4px solid #ff9800;
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast.success .toast-icon { color: #4caf50; }
.toast.error .toast-icon { color: #f44336; }
.toast.warning .toast-icon { color: #ff9800; }

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    color: var(--gray-300);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 5px;
    transition: color var(--transition-fast);
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--white);
}

/* Light theme toast */
[data-theme="light"] .toast {
    background: #fdfcfa;
    border-color: #e5dfd5;
    box-shadow: 0 4px 20px rgba(45, 42, 38, 0.15);
}

[data-theme="light"] .toast-message {
    color: var(--gray-700);
}

@media (max-width: 480px) {
    .toast-container {
        left: 10px;
        right: 10px;
        top: 80px;
    }

    .toast {
        max-width: 100%;
    }
}

/* Catalog Responsive */
@media (max-width: 992px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .catalog-card {
        padding: 20px;
    }

    .catalog-image {
        width: 60px;
        height: 60px;
    }

    .catalog-placeholder {
        font-size: 1.5rem;
    }
}

/* ================================================
   PORTFOLIO SECTION
   ================================================ */
.portfolio {
    background: var(--dark-lighter);
}

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

.filter-btn {
    padding: 12px 28px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-normal);
}

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

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item.large {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 15, 26, 0.95) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: var(--transition-normal);
}

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

.portfolio-content {
    transform: translateY(20px);
    transition: var(--transition-normal);
}

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

.portfolio-category {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 116, 15, 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.portfolio-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.portfolio-description {
    font-size: 0.9rem;
    color: var(--gray-400);
}

.portfolio-link {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition-normal);
}

.portfolio-item:hover .portfolio-link {
    opacity: 1;
    transform: scale(1);
}

.portfolio-cta {
    text-align: center;
    margin-top: 50px;
}

.portfolio-cta-text {
    font-size: 1.1rem;
    color: var(--gray-400);
    margin-bottom: 25px;
}

.portfolio-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Portfolio Meta */
.portfolio-meta {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.portfolio-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--gray-300);
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
}

.portfolio-meta span i {
    color: var(--primary);
    font-size: 0.75rem;
}

/* Filter buttons with icons */
.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn i {
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.filter-btn:hover i,
.filter-btn.active i {
    transform: scale(1.1);
}

/* Portfolio item animations */
.portfolio-item {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Portfolio link arrow animation */
.portfolio-link i {
    transition: transform var(--transition-normal);
}

.portfolio-item:hover .portfolio-link i {
    transform: translateX(3px);
}

/* ================================================
   GALLERY SECTION
   ================================================ */
.gallery {
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-lighter) 100%);
}

.legacy-gallery-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.gallery-hint {
    margin: 0;
    color: var(--gray-400);
    font-size: 0.95rem;
}

#load-gallery.loading {
    opacity: 0.7;
    pointer-events: none;
}

#load-gallery.loaded {
    background: var(--dark-lighter);
    color: var(--white);
    border-color: var(--gray-700);
}

.legacy-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.legacy-item {
    position: relative;
    padding-top: 70%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--dark);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.legacy-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.legacy-item:hover img {
    transform: scale(1.06);
}

/* ================================================
   TECHNOLOGY SECTION
   ================================================ */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--gray-800) 100%);
}

.process-step {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 20px;
    transition: var(--transition-normal);
}

.process-step:hover .step-number {
    color: var(--primary);
}

.step-content {
    padding: 30px 20px;
    background: var(--dark-lighter);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    min-height: 220px;
    flex-grow: 1;
}

.process-step:hover .step-content {
    border-color: rgba(255, 116, 15, 0.3);
    transform: translateY(-5px);
}

.step-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 116, 15, 0.1);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 auto 20px;
}

.step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* Tech Features */
.tech-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.tech-feature {
    text-align: center;
    padding: 40px 20px;
    background: var(--dark-lighter);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    min-height: 220px;
}

.tech-feature:hover {
    border-color: rgba(255, 116, 15, 0.3);
    transform: translateY(-5px);
}

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

.tech-feature h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.tech-feature p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* ================================================
   TEAM SECTION
   ================================================ */
.team {
    background: var(--dark-lighter);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.team-card {
    display: flex;
    gap: 30px;
    padding: 40px;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.team-card:hover {
    border-color: rgba(255, 116, 15, 0.3);
    transform: translateY(-5px);
}

.team-photo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
}

.team-photo .image-placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
}

.team-photo .image-placeholder i {
    font-size: 2rem;
}

.team-name {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.team-role {
    display: block;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ================================================
   CTA SECTION
   ================================================ */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(255, 116, 15, 0.1) 0%, var(--dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 116, 15, 0.1) 0%, transparent 70%);
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.1rem;
    color: var(--gray-400);
    max-width: 500px;
    margin: 0 auto 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* ================================================
   CONTACTS SECTION
   ================================================ */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--dark-lighter);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.contact-card:hover {
    border-color: rgba(255, 116, 15, 0.3);
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 116, 15, 0.1);
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    color: var(--primary);
}

.contact-content h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-content a,
.contact-content p {
    font-size: 0.95rem;
    color: var(--gray-400);
}

.contact-content a:hover {
    color: var(--primary);
}

/* Contact Social */
.contact-social {
    margin-top: 20px;
}

.contact-social h4 {
    font-size: 1rem;
    margin-bottom: 15px;
}

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

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

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Contact Form */
.contacts-form {
    padding: 50px;
    background: var(--dark-lighter);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: 30px;
}

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

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

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

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

.form-group label {
    position: absolute;
    left: 20px;
    top: 18px;
    color: var(--gray-500);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition-normal);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 15px;
    font-size: 0.8rem;
    background: var(--dark-lighter);
    padding: 0 5px;
    color: var(--primary);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239a9aba' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}

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

.form-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.form-note i {
    color: var(--gray-600);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: var(--dark);
    padding: 100px 0 40px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1200px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

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

.footer-logo-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    background: var(--dark-lighter);
    border: 2px solid rgba(255, 116, 15, 0.2);
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: var(--transition-normal);
    overflow: hidden;
    padding: 20px;
}

.footer-logo-circle:hover {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 116, 15, 0.2);
}

.footer-description {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.footer-brand-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.footer-brand-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--gray-500);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.footer-brand-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-links h4,
.footer-contacts h4 {
    font-size: 1rem;
    margin-bottom: 25px;
    color: var(--white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.95rem;
    color: var(--gray-500);
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contacts p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--gray-500);
}

.footer-contacts i {
    color: var(--primary);
    width: 20px;
}

.footer-contacts a {
    color: var(--gray-500);
    transition: var(--transition-normal);
}

.footer-contacts a:hover {
    color: var(--primary);
}

.footer-contacts p:hover i {
    transform: scale(1.2);
}

.footer-contacts i {
    transition: var(--transition-normal);
}

/* Footer Map */
.footer-map {
    margin-top: 40px;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 116, 15, 0.2);
}

.footer-map iframe {
    display: block;
    width: 100%;
    height: 200px;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright {
    font-size: 0.9rem;
    color: var(--gray-600);
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--gray-500);
    transition: var(--transition-normal);
}

/* Instagram — кастомная CSS-иконка */
.footer-social a[aria-label="Instagram"],
.social-link[aria-label="Instagram"] {
    background:
        radial-gradient(circle farthest-corner at 28% 100%, #fcdf8f 0%, #fbd377 10%, #fa8e37 22%, #f73344 35%, transparent 65%),
        linear-gradient(145deg, #3051f1 10%, #c92bb7 70%);
    border: none;
    border-radius: 50%;
    position: relative;
}

.footer-social a[aria-label="Instagram"]::before,
.social-link[aria-label="Instagram"]::before,
.footer-social a[aria-label="Instagram"]::after,
.social-link[aria-label="Instagram"]::after {
    content: "";
    color: #fff;
    position: absolute;
    aspect-ratio: 1;
}

/* Внешняя рамка камеры */
.footer-social a[aria-label="Instagram"]::before,
.social-link[aria-label="Instagram"]::before {
    border: 2px solid #fff;
    border-radius: 22%;
    width: 60%;
    height: 60%;
}

/* Объектив + вспышка */
.footer-social a[aria-label="Instagram"]::after,
.social-link[aria-label="Instagram"]::after {
    border-radius: 50%;
    border: 2px solid #fff;
    width: 30%;
    height: 30%;
    box-shadow: 9px -9px 0 -7px #fff;
}

/* Скрыть Font Awesome иконку */
.footer-social a[aria-label="Instagram"] i,
.social-link[aria-label="Instagram"] i {
    display: none;
}

.footer-social a[aria-label="Instagram"]:hover,
.social-link[aria-label="Instagram"]:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 20px rgba(225, 48, 108, 0.4);
}

/* WhatsApp — зелёный (изначально) */
.footer-social a[aria-label="WhatsApp"],
.social-link[aria-label="WhatsApp"] {
    background: #25D366;
    color: var(--white);
    border-color: transparent;
}

.footer-social a[aria-label="WhatsApp"]:hover,
.social-link[aria-label="WhatsApp"]:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

/* ================================================
   FIXED ELEMENTS
   ================================================ */
.fixed-phone {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.3rem;
    box-shadow: var(--shadow-glow);
    z-index: 999;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 116, 15, 0.5); }
    70% { box-shadow: 0 0 0 20px rgba(255, 116, 15, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 116, 15, 0); }
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-lighter);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

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

.scroll-top:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ================================================
   ANIMATIONS (AOS Alternative)
   ================================================ */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-down"] {
    transform: translateY(-30px);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0);
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline::before {
        display: none;
    }

    .tech-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .legacy-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    :root {
        --section-padding: 80px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: none;
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height для iOS */
        background: var(--dark);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: var(--transition-normal);
        z-index: 1000;
        padding: env(safe-area-inset-top, 20px) env(safe-area-inset-right, 20px) env(safe-area-inset-bottom, 20px) env(safe-area-inset-left, 20px);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .burger {
        display: flex;
    }

    .phone-btn span {
        display: none;
    }

    .logo-img {
        height: 60px;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: block;
        height: 300px;
        margin-top: 40px;
    }

    .hero-content {
        text-align: center;
        max-width: none;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-visual {
        order: -1;
    }

    .about-card {
        right: 20px;
        bottom: -20px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-item.large {
        grid-column: span 1;
    }

    .legacy-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .legacy-gallery-controls {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-visual {
        height: 250px;
    }

    .logo-img {
        height: 50px;
    }

    .header {
        transition: transform 0.3s ease, background 0.3s ease, padding 0.3s ease;
    }

    .header.hidden {
        transform: translateY(-100%);
    }

    .header.scrolled {
        padding: 10px 0;
    }

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

    .scroll-indicator {
        display: none;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
    }

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

    .portfolio-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        flex-shrink: 0;
    }

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

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

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .tech-features {
        grid-template-columns: 1fr;
    }

    .team-card {
        flex-direction: column;
        text-align: center;
    }

    .team-photo {
        margin: 0 auto;
    }

    .contacts-form {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .fixed-phone {
        display: none;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Landscape orientation for mobile devices */
@media (max-width: 992px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .hero-visual {
        height: 200px;
    }

    .hero-stats {
        gap: 30px;
    }

    .logo-img {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

/* ================================================
   ADDITIONAL IMAGE STYLES
   ================================================ */

/* Logo Image */
.logo-img {
    height: 60px;
    width: auto;
}

.preloader-logo-img {
    height: 150px;
    width: auto;
    margin-bottom: 30px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition-normal);
}

/* Hero Background Image */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Hero Main Image */
.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-main-image {
    position: absolute;
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-main-image.active {
    opacity: 1;
    animation: floatImage 6s ease-in-out infinite;
}

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

/* About Image */
.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* Service Image */
.service-image {
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

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

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

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

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

/* Team Photo */
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* CTA Background */
.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.cta-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

/* ================================================
   LIGHTBOX
   ================================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-normal);
    z-index: 10001;
}

.lightbox-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: var(--transition-normal);
}

.lightbox.active .lightbox-image {
    transform: scale(1);
}
