/* ==================== VARIABLES ==================== */
:root {
    /* Colors - Black & Red Matte Theme */
    --color-primary: #0a0a0a;
    --color-secondary: #1a1a1a;
    --color-accent: #c41e1e;
    --color-accent-light: #e63939;
    --color-accent-dark: #8b1515;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray-light: #f5f5f5;
    --color-gray-medium: #999999;
    --color-gray-dark: #333333;
    --color-red-matte: #c41e1e;
    --color-red-dark: #8b1515;
    --color-red-light: #e63939;
    
    /* Fonts */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Font Sizes */
    --fs-h1: 3.5rem;
    --fs-h2: 2.5rem;
    --fs-h3: 1.75rem;
    --fs-h4: 1.25rem;
    --fs-normal: 1rem;
    --fs-small: 0.875rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Z-index */
    --z-fixed: 100;
    --z-modal: 1000;
}

/* ==================== BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-secondary);
    font-size: var(--fs-normal);
    line-height: 1.6;
    color: var(--color-gray-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

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

/* ==================== UTILITIES ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section__header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section__subtitle {
    display: block;
    font-size: var(--fs-small);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #e63939;
    margin-bottom: var(--spacing-xs);
    position: relative;
    display: inline-block;
}

.section__subtitle::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, #c41e1e 0%, transparent 100%);
    animation: line-grow 2s ease-in-out infinite;
}

@keyframes line-grow {
    0%, 100% { width: 50%; }
    50% { width: 80%; }
}

.section__title {
    font-size: var(--fs-h2);
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
    color: #1a1a1a;
    font-weight: 700;
}

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

.accent-text {
    color: var(--color-accent);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: var(--fs-normal);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #c41e1e 0%, #8b1515 100%);
    color: var(--color-white);
    border: none;
    box-shadow: 0 4px 15px rgba(196, 30, 30, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e63939 0%, #c41e1e 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(196, 30, 30, 0.5), 0 0 20px rgba(196, 30, 30, 0.3);
}

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

.btn-primary:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid #c41e1e;
    position: relative;
    z-index: 1;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #c41e1e 0%, #8b1515 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-radius: 50px;
}

.btn-outline:hover {
    color: var(--color-white);
    border-color: #e63939;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(196, 30, 30, 0.4);
}

.btn-outline:hover::before {
    width: 100%;
}

.btn-full {
    width: 100%;
}

/* ==================== HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    z-index: var(--z-fixed);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(196, 30, 30, 0.08);
}

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

.nav__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
}

.nav__brand {
    display: flex;
    align-items: center;
}

.brand-text {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: linear-gradient(135deg, #c41e1e 0%, #8b1515 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.brand-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #c41e1e, #8b1515);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.brand-text:hover::after {
    width: 100%;
}

.nav__list {
    display: flex;
    gap: var(--spacing-md);
}

.nav__link {
    font-weight: 500;
    color: var(--color-gray-dark);
    position: relative;
    padding: 0.5rem 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-normal);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav__phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--color-beige-light);
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--color-primary);
}

.nav__phone:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.nav__toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
}

/* ==================== HOME SECTION ==================== */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(196, 30, 30, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 21, 21, 0.12) 0%, transparent 50%);
    animation: gradient-shift 15s ease infinite;
    z-index: 0;
}

.home::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 40px,
        rgba(196, 30, 30, 0.02) 40px,
        rgba(196, 30, 30, 0.02) 80px
    );
    animation: pattern-rotate 30s linear infinite;
    z-index: 0;
}

@keyframes gradient-shift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes pattern-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.home__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.home__subtitle {
    display: block;
    font-size: var(--fs-small);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e63939;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 0 20px rgba(196, 30, 30, 0.5);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { text-shadow: 0 0 20px rgba(196, 30, 30, 0.5); }
    50% { text-shadow: 0 0 30px rgba(196, 30, 30, 0.8), 0 0 40px rgba(196, 30, 30, 0.4); }
}

.home__title {
    font-size: var(--fs-h1);
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
    line-height: 1.1;
}

.home__description {
    font-size: 1.1rem;
    color: var(--color-gray-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.home__buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

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

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    border: 2px solid var(--color-beige-medium);
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--color-primary);
    transition: var(--transition-normal);
}

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

.home__image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.home__blob {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-beige-dark) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob-animate 8s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes blob-animate {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--color-accent);
    animation: scroll-bounce 2s ease-in-out infinite;
}

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

/* ==================== SERVICES SECTION ==================== */
.services {
    background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(196, 30, 30, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.services .container {
    position: relative;
    z-index: 1;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 24px;
    padding: var(--spacing-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(196, 30, 30, 0.05), transparent);
    transition: left 0.5s;
}

.service-card:hover {
    border-color: rgba(196, 30, 30, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 30px rgba(196, 30, 30, 0.08);
    transform: translateY(-12px) scale(1.02);
}

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

.service-card__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c41e1e 0%, #8b1515 100%);
    border-radius: 20px;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 8px 24px rgba(196, 30, 30, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-card:hover .service-card__icon {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 12px 32px rgba(196, 30, 30, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.service-card__title {
    font-size: var(--fs-h3);
    margin-bottom: var(--spacing-sm);
}

.service-card__description {
    color: var(--color-gray-medium);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.service-card__features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-card__features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gray-dark);
    font-size: var(--fs-small);
}

.service-card__features i {
    color: var(--color-accent);
}

/* ==================== ABOUT SECTION ==================== */
.about {
    background-color: var(--color-beige-light);
}

.about__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about__image {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about__blob {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-gray-dark) 100%);
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    animation: blob-animate 8s ease-in-out infinite;
    opacity: 0.2;
}

.about__description {
    font-size: 1.1rem;
    color: var(--color-gray-medium);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.about__features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
}

.feature-item {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.feature-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
}

.feature-item__icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-beige-light);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    color: var(--color-accent);
}

.feature-item__content h4 {
    font-size: var(--fs-h4);
    margin-bottom: 0.25rem;
    text-align: left;
}

.feature-item__content p {
    font-size: var(--fs-small);
    color: var(--color-gray-medium);
    text-align: left;
}

/* ==================== STUDIO PHOTO ==================== */
.studio-photo {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.studio-photo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(196, 30, 30, 0.1) 0%, transparent 70%);
    animation: pulse-background 10s ease-in-out infinite;
}

@keyframes pulse-background {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.studio-photo__wrapper {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(196, 30, 30, 0.2);
    max-width: 1200px;
    margin: 0 auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.studio-photo__wrapper:hover {
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(196, 30, 30, 0.4);
    transform: translateY(-8px);
}

.studio-photo__image {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9) contrast(1.1);
}

.studio-photo__wrapper:hover .studio-photo__image {
    transform: scale(1.08);
    filter: brightness(1) contrast(1.15);
}

.studio-photo__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 50%, rgba(0, 0, 0, 0.4) 100%);
    padding: var(--spacing-lg);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.studio-photo__overlay h3 {
    color: #ffffff;
    font-size: var(--fs-h3);
    margin-bottom: var(--spacing-xs);
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(196, 30, 30, 0.6);
    animation: title-glow 3s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% { 
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(196, 30, 30, 0.6);
    }
    50% { 
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 40px rgba(196, 30, 30, 0.9), 0 0 50px rgba(196, 30, 30, 0.5);
    }
}

.studio-photo__overlay p {
    color: #f0f0f0;
    font-size: var(--fs-normal);
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* ==================== GALLERY SECTION ==================== */
.gallery {
    background: linear-gradient(180deg, #f8f8f8 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.gallery::before {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 30, 30, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.gallery .container {
    position: relative;
    z-index: 1;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(196, 30, 30, 0.5), rgba(139, 21, 21, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
}

.gallery-item:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25), 0 0 40px rgba(196, 30, 30, 0.15);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    color: var(--color-accent);
    font-size: 3rem;
}

.gallery-item__placeholder span {
    font-size: var(--fs-h4);
    font-weight: 600;
    color: var(--color-primary);
}

.gallery-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item--real:hover .gallery-item__image {
    transform: scale(1.1);
}

.gallery-item__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: var(--spacing-md);
    color: var(--color-white);
    transform: translateY(100%);
    transition: var(--transition-normal);
}

.gallery-item--real:hover .gallery-item__overlay {
    transform: translateY(0);
}

.gallery-item__overlay h4 {
    color: var(--color-white);
    font-size: var(--fs-h4);
    margin-bottom: 0.25rem;
}

.gallery-item__overlay p {
    color: var(--color-beige-medium);
    font-size: var(--fs-small);
    margin: 0;
}

/* Gallery Video Styles */
.gallery-item__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item--video:hover .gallery-item__video {
    transform: scale(1.05);
}

.gallery-item--video:hover .gallery-item__overlay {
    transform: translateY(0);
}

/* Badge for "Выполненные работы" */
.gallery-item__badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-beige-dark) 100%);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: var(--fs-small);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    z-index: 100;
}

.gallery-item__badge:hover {
    background: linear-gradient(135deg, var(--color-beige-dark) 0%, var(--color-accent) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.gallery-item__badge i {
    font-size: 1rem;
}

/* Details Popup */
.gallery-item__details {
    position: absolute;
    top: 60px;
    right: var(--spacing-sm);
    background-color: var(--color-white);
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-lg);
    padding: 0;
    width: 320px;
    height: 280px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 200;
    overflow: hidden;
}

/* Compact popup for items with less content */
.gallery-item__details--compact {
    height: auto;
    max-height: 220px;
    width: 320px;
}

.gallery-item__details--compact .gallery-item__details-scroll {
    height: auto;
    max-height: 220px;
    padding: 0.75rem 0.75rem 1rem 1rem;
}

.gallery-item__details-scroll {
    height: 280px;
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 1rem 0.75rem 2rem 1rem;
    overscroll-behavior: contain;
}

/* Custom scrollbar for popup */
.gallery-item__details-scroll::-webkit-scrollbar {
    width: 6px;
}

.gallery-item__details-scroll::-webkit-scrollbar-track {
    background: var(--color-beige-light);
    border-radius: var(--radius-sm);
}

.gallery-item__details-scroll::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: var(--radius-sm);
}

.gallery-item__details-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--color-beige-dark);
}

/* Firefox scrollbar */
.gallery-item__details-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) var(--color-beige-light);
}

/* Show popup on hover */
.gallery-item:hover .gallery-item__badge:hover ~ .gallery-item__details,
.gallery-item__details:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile active state */
.gallery-item__details.active-mobile {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.gallery-item__details h5 {
    color: var(--color-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-beige-light);
}

.gallery-item__details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.gallery-item__details li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--color-gray-dark);
    font-size: 0.8rem;
    line-height: 1.4;
    padding-right: 0.5rem;
}

.gallery-item__details li i {
    color: #2d5016;
    font-size: 0.85rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.gallery__note {
    text-align: center;
    padding: var(--spacing-md);
    background-color: var(--color-beige-light);
    border-radius: var(--radius-md);
    color: var(--color-gray-medium);
}

.gallery__note i {
    color: var(--color-accent);
    margin-right: 0.5rem;
}

/* ==================== CONTACTS SECTION ==================== */
.contacts {
    background-color: var(--color-gray-light);
}

.contacts__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.contacts__info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-card {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

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

.contact-card__icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-beige-light);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    color: var(--color-accent);
}

.contact-card__content h4 {
    font-size: var(--fs-h4);
    margin-bottom: 0.25rem;
}

.contact-card__content p,
.contact-card__content a {
    color: var(--color-gray-medium);
    font-size: var(--fs-normal);
}

.contact-card__content a:hover {
    color: var(--color-accent);
}

.email-placeholder {
    font-style: italic;
    color: var(--color-gray-medium);
}

.contacts__social {
    padding: var(--spacing-md);
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
}

.contacts__social h4 {
    margin-bottom: var(--spacing-sm);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.social-link-large {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background-color: var(--color-beige-light);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    color: var(--color-primary);
    transition: var(--transition-normal);
}

.social-link-large:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateX(8px);
}

.social-link-large i {
    font-size: 1.5rem;
}

/* ==================== FORM ==================== */
.contacts__form {
    background-color: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contacts__form h3 {
    font-size: var(--fs-h3);
    margin-bottom: var(--spacing-sm);
}

.contacts__form > p {
    color: var(--color-gray-medium);
    margin-bottom: var(--spacing-md);
}

.form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form__group {
    position: relative;
}

.form__input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--color-beige-light);
    border-radius: var(--radius-md);
    font-size: var(--fs-normal);
    font-family: inherit;
    background-color: var(--color-white);
    transition: var(--transition-normal);
}

.form__input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
    transform: translateY(-1.5rem) scale(0.85);
    background-color: var(--color-white);
    padding: 0 0.5rem;
    color: var(--color-accent);
}

.form__label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--color-gray-medium);
    pointer-events: none;
    transition: var(--transition-normal);
    transform-origin: left center;
}

.form__select {
    cursor: pointer;
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__success {
    display: none;
    text-align: center;
    padding: var(--spacing-md);
    background-color: var(--color-beige-light);
    border-radius: var(--radius-md);
    color: var(--color-primary);
}

.form__success.active {
    display: block;
}

.form__success i {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
}

/* ==================== STUDIO INFO ==================== */
.studio-info {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-accent);
    box-shadow: var(--shadow-md);
}

.studio-info__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.studio-info__grid--reviews {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.studio-info__card {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
    text-align: center;
}

.studio-info__card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.studio-info__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.studio-info__card h4 {
    color: var(--color-accent);
    font-size: var(--fs-h4);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.studio-info__card p {
    color: var(--color-gray-light);
    font-size: var(--fs-small);
    line-height: 1.6;
}

/* ==================== REVIEWS SECTION ==================== */
.reviews-section {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
}

.reviews-title {
    text-align: center;
    color: var(--color-accent);
    font-size: var(--fs-h3);
    margin-bottom: var(--spacing-md);
}

.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.review-card {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.review-stars {
    color: #FFD700;
    margin-bottom: var(--spacing-xs);
}

.review-name {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.review-text {
    color: var(--color-gray-light);
    font-size: var(--fs-small);
    line-height: 1.6;
}

.reviews-actions {
    text-align: center;
    margin-top: var(--spacing-md);
}

/* ==================== MAP ==================== */
.contacts__map {
    height: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

#map {
    width: 100%;
    height: 100%;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer__container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-xl);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.footer__brand h3 {
    color: var(--color-accent);
    font-size: var(--fs-h3);
    margin-bottom: var(--spacing-xs);
    letter-spacing: 3px;
    font-weight: 800;
    text-transform: uppercase;
}

.footer__brand p {
    color: var(--color-gray-light);
}

.footer__links h4,
.footer__contact h4 {
    color: var(--color-accent);
    font-size: var(--fs-h4);
    margin-bottom: var(--spacing-sm);
}

.footer__links ul,
.footer__contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__links a,
.footer__contact a {
    color: var(--color-gray-light);
    transition: var(--transition-normal);
}

.footer__links a:hover,
.footer__contact a:hover {
    color: var(--color-accent);
    padding-left: 0.5rem;
}

.footer__contact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gray-light);
}

.footer__contact i {
    color: var(--color-accent);
    width: 20px;
}

.footer__bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-gray-medium);
}

/* ==================== FLOATING ELEMENTS ==================== */
.scroll-top {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: var(--z-fixed);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--color-primary);
    transform: translateY(-4px);
}

.floating-buttons {
    position: fixed;
    right: 2rem;
    bottom: 6rem;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    z-index: var(--z-fixed);
}

.floating-btn {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--color-white);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.phone-btn {
    background-color: var(--color-primary);
}

.telegram-btn {
    background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
}

.instagram-btn {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
}

/* ==================== RESPONSIVE ==================== */
@media screen and (max-width: 968px) {
    :root {
        --fs-h1: 2.5rem;
        --fs-h2: 2rem;
        --fs-h3: 1.5rem;
        --fs-h4: 1.15rem;
    }
    
    .nav__menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-white);
        padding: var(--spacing-md);
        transition: var(--transition-normal);
        box-shadow: var(--shadow-md);
    }
    
    .nav__menu.active {
        left: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .nav__link {
        display: block;
        padding: var(--spacing-sm);
        border-bottom: 1px solid var(--color-beige-light);
    }
    
    .nav__toggle {
        display: block;
    }
    
    .brand-text {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .nav__phone span {
        display: none;
    }
    
    .home__container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .home__buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .home__social {
        justify-content: center;
    }
    
    .home__image {
        height: 300px;
    }
    
    .about__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about__image {
        height: 300px;
        order: 2;
    }
    
    .contacts__container {
        grid-template-columns: 1fr;
    }
    
    .gallery-item__details {
        width: 280px;
        max-height: 250px;
        right: var(--spacing-xs);
        left: var(--spacing-xs);
    }
    
    .gallery-item__details-scroll {
        height: 250px;
        padding: 0.85rem;
    }
    
    .gallery-item__badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__logo {
        align-items: center;
    }
    
    .footer__brand h3 {
        font-size: 1.5rem;
    }
    
    .footer__contact li {
        justify-content: center;
    }
    
    .floating-buttons {
        right: 1rem;
        bottom: 5rem;
    }
    
    .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .scroll-top {
        right: 1rem;
        bottom: 1rem;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

@media screen and (max-width: 576px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .section {
        padding: var(--spacing-md) 0;
    }
    
    .brand-text {
        font-size: 1.25rem;
        letter-spacing: 2px;
    }
    
    .home__title {
        font-size: 2rem;
    }
    
    .home__buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item__details {
        width: 260px;
        max-height: 220px;
        right: 0;
        left: var(--spacing-xs);
    }
    
    .gallery-item__details-scroll {
        height: 220px;
        padding: 0.75rem;
        font-size: 0.75rem;
    }
    
    .gallery-item__badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }
    
    .gallery-item__badge span {
        display: none;
    }
    
    .gallery-item__badge i {
        font-size: 1.2rem;
    }
    
    .contacts__map {
        height: 300px;
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .header,
    .floating-buttons,
    .scroll-top,
    .scroll-down {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
    }
}