/* ==========================================================================
   PIRIN DESIGN STUDIO - PREMIUM STYLESHEET
   ========================================================================== */

/* Import Google Fonts (with Cyrillic support for Luxury Architectural Branding) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Forum&family=Inter:wght@300;400;500;600&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;1,500&family=Outfit:wght@200;300;400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

/* CSS Variables for Light/Dark Themes */
:root {
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-brand: 'Forum', 'Cormorant Garamond', 'Montserrat', serif;
    
    /* Common Transitions */
    --transition-fast: 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Light Theme Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f9f9fb;
    --bg-tertiary: #f1f1f4;
    --text-primary: #111112;
    --text-secondary: #5a5a62;
    --text-muted: #8d8d96;
    --accent: #b89355; /* Warm gold/brass */
    --accent-hover: #9c783c;
    --border: #e6e6ec;
    --border-muted: #f0f0f4;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(230, 230, 236, 0.5);
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    --shadow-large: 0 20px 40px rgba(0, 0, 0, 0.06);
    --card-hover-bg: #ffffff;
}

[data-theme="dark"] {
    /* Dark Theme Colors */
    --bg-primary: #0a0a0b;
    --bg-secondary: #121215;
    --bg-tertiary: #1a1a20;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #d4af37; /* Brass gold */
    --accent-hover: #f3cf55;
    --border: #242428;
    --border-muted: #1c1c1f;
    --glass-bg: rgba(10, 10, 11, 0.85);
    --glass-border: rgba(36, 36, 40, 0.5);
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    --shadow-large: 0 20px 40px rgba(0, 0, 0, 0.5);
    --card-hover-bg: #16161a;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.625;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

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

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

/* Common Layout Utilities */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6.5rem 0;
    border-bottom: 1px solid var(--border);
}

.section-head {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: background-color var(--transition-normal), border var(--transition-normal);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 1.65rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--text-primary) 20%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all var(--transition-fast);
}

.brand:hover .brand-name {
    background: linear-gradient(135deg, var(--accent) 0%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast);
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-primary);
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.theme-toggle .sun-icon {
    display: none;
}

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

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    z-index: 1010;
}

.hamburger span {
    width: 100%;
    height: 1.5px;
    background-color: var(--text-primary);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    border-bottom: 1px solid var(--border);
}

/* ==========================================================================
   HERO SECTION & LUXURY SLIDESHOW
   ========================================================================== */
.hero {
    position: relative;
    height: 88vh;
    min-height: 650px;
    max-height: 900px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #0b0c0e;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.2s ease-in-out, transform 6s ease-out;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(12, 13, 16, 0.88) 0%, rgba(12, 13, 16, 0.45) 55%, rgba(12, 13, 16, 0.78) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-top: 40px;
}

.hero-content {
    max-width: 820px;
    color: #ffffff;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s forwards cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1.1rem;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    margin-bottom: 1.5rem;
}

.hero-badge-icon {
    color: var(--accent);
    font-size: 0.875rem;
}

.hero-badge-text {
    color: #f0f0f5;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 200;
    letter-spacing: 0.04em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title strong {
    font-weight: 600;
    color: var(--accent);
    background: linear-gradient(135deg, #f3cf55 0%, #b89355 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 300;
    max-width: 720px;
}

/* Hero Slider Navigation Tabs */
.hero-slider-nav {
    position: absolute;
    bottom: 2.5rem;
    right: 2rem;
    z-index: 4;
    display: flex;
    gap: 1.25rem;
}

.hero-slider-dot {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    min-width: 130px;
}

.hero-slider-dot:hover {
    opacity: 0.85;
}

.hero-slider-dot.active {
    opacity: 1;
    border-bottom-color: var(--accent);
}

.dot-num {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.1em;
}

.dot-label {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    color: #ffffff;
    font-weight: 400;
    margin-top: 0.2rem;
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2.25rem;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 0;
    transition: all var(--transition-fast);
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
}

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

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    border-color: #ffffff;
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-2px);
}

.btn-outline-dark {
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-outline-dark:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ==========================================================================
   STATS & ACHIEVEMENTS BAR
   ========================================================================== */
.stats-bar-section {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    position: relative;
    padding: 0 1rem;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: var(--border);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   FEATURED CATEGORIES SHOWCASE
   ========================================================================== */
.category-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.showcase-card {
    position: relative;
    aspect-ratio: 16/11;
    overflow: hidden;
    border: 1px solid var(--border);
    background-color: var(--bg-secondary);
    text-decoration: none;
    display: block;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(12, 13, 16, 0.9) 0%, rgba(12, 13, 16, 0.3) 60%, rgba(12, 13, 16, 0.05) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem;
    transition: background var(--transition-normal);
}

.showcase-card:hover img {
    transform: scale(1.08);
}

.showcase-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-large);
}

.showcase-count {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.showcase-title {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.showcase-link-btn {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: inline-block;
}

.showcase-card:hover .showcase-link-btn {
    color: var(--accent);
    transform: translateX(4px);
}

/* ==========================================================================
   WHY CHOOSE US FEATURE CARDS
   ========================================================================== */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.why-us-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 2.25rem 1.75rem;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.why-us-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow-large);
}

.why-us-icon {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    display: inline-block;
}

.why-us-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.why-us-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   PHILOSOPHY QUOTE BANNER
   ========================================================================== */
.philosophy-section {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 4.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.philosophy-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.quote-mark {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.35;
    display: block;
    margin-bottom: -1.5rem;
}

.philosophy-quote {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 1.75rem;
    font-style: italic;
}

.philosophy-author strong {
    display: block;
    font-size: 1rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.philosophy-author span {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   SERVICES SECTION (УСЛУГИ)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    overflow: hidden;
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--shadow-large);
}

.service-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

.service-card:hover .service-img-wrapper img {
    transform: scale(1.08);
}

.service-content {
    padding: 2.25rem 2rem;
}

.service-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

.service-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ==========================================================================
   PROCEDURES ACCORDION (ЗУТ)
   ========================================================================== */
.procedures-container {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-primary);
    padding: 0.5rem 0;
}

.accordion-header:hover {
    color: var(--accent);
}

.accordion-icon {
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.accordion-header.active .accordion-icon {
    transform: rotate(45deg);
    color: var(--accent);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease;
}

.accordion-inner {
    padding: 1.25rem 0 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.accordion-inner ul {
    list-style-type: none;
}

.accordion-inner li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.accordion-inner li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* ==========================================================================
   PORTFOLIO GALLERY & FILTERING
   ========================================================================== */
.filter-menu {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.625rem 1.5rem;
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
    background-color: var(--bg-secondary);
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--border);
    background-color: var(--bg-secondary);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards ease-out;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: opacity var(--transition-fast) ease-out;
    z-index: 2;
}

.portfolio-card:hover img {
    transform: scale(1.06);
}

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

.portfolio-project-title {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    transform: translateY(10px);
    transition: transform var(--transition-fast) ease;
}

.portfolio-project-category {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transform: translateY(10px);
    transition: transform var(--transition-fast) ease 0.05s;
}

.portfolio-project-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8125rem;
    line-height: 1.4;
    margin-top: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transform: translateY(10px);
    transition: transform var(--transition-fast) ease 0.08s;
}

.portfolio-card:hover .portfolio-project-title,
.portfolio-card:hover .portfolio-project-category,
.portfolio-card:hover .portfolio-project-desc {
    transform: translateY(0);
}

.card-count-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: rgba(10, 10, 11, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.03em;
}

.badge-plan-tag {
    color: var(--accent);
    margin-left: 0.25rem;
    font-weight: 600;
}

/* Play button overlay specifically for animations category */
.video-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-badge svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.portfolio-card-video::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(184, 147, 85, 0.85); /* gold */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0.8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 54% 50%;
    background-size: 24px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.portfolio-card-video:hover::after {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

/* Load More Button Container */
.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

/* ==========================================================================
   LIGHTBOX (МОДАЛ ГАЛЕРИЯ СЛАЙДЪР)
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 10, 11, 0.98);
    z-index: 2000;
    display: none; /* JS will open */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-fast) ease-out;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 200;
    cursor: pointer;
    z-index: 2020;
    transition: color var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-header-info {
    position: absolute;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #ffffff;
    max-width: 65%;
    z-index: 2010;
    pointer-events: none;
}

.lightbox-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0.2rem 0;
    color: #ffffff;
    letter-spacing: 0.03em;
}

.lightbox-description {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    margin: 0;
}

.lightbox-caption-text {
    position: absolute;
    bottom: 5rem;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    z-index: 2010;
    pointer-events: none;
}

/* Lightbox Thumbnail Strip */
.lightbox-thumbs-strip {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    max-width: 90vw;
    overflow-x: auto;
    padding: 0.35rem 0.5rem;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2010;
    scrollbar-width: thin;
}

.lightbox-thumb-item {
    position: relative;
    width: 54px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.55;
    transition: opacity var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.lightbox-thumb-item:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.lightbox-thumb-item.active {
    opacity: 1;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.lightbox-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-plan-badge {
    position: absolute;
    bottom: 1px;
    right: 2px;
    font-size: 0.65rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 2px;
    padding: 0 2px;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 85%;
    max-height: 70vh;
    margin-top: 3rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-media {
    max-width: 100%;
    max-height: 68vh;
    object-fit: contain;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lightbox-video {
    width: 80vw;
    max-width: 960px;
    aspect-ratio: 16/9;
    background-color: #000000;
}

.lightbox-caption {
    position: absolute;
    bottom: -3.5rem;
    left: 0;
    width: 100%;
    text-align: center;
    color: #ffffff;
}

.lightbox-category {
    color: var(--accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 3rem;
    cursor: pointer;
    padding: 1rem;
    z-index: 2010;
    user-select: none;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.lightbox-arrow:hover {
    color: var(--accent);
}

.lightbox-arrow-left {
    left: 1.5rem;
}

.lightbox-arrow-left:hover {
    transform: translateY(-50%) translateX(-4px);
}

.lightbox-arrow-right {
    right: 1.5rem;
}

.lightbox-arrow-right:hover {
    transform: translateY(-50%) translateX(4px);
}

.lightbox-counter {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    z-index: 2020;
}

/* ==========================================================================
   CONTACTS SECTION (ЗА КОНТАКТИ)
   ========================================================================== */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.contact-card:hover .contact-icon {
    background-color: var(--accent);
    color: #ffffff;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.contact-title {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.contact-value {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

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

.address-link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    transition: color var(--transition-fast);
}

.address-link:hover {
    color: var(--accent);
}

.maps-badge {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.address-link:hover .maps-badge {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

/* Embedded Google Maps Container */
.map-container {
    margin-top: 3rem;
    border: 1px solid var(--border);
    background-color: var(--bg-secondary);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: border-color var(--transition-normal);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 420px;
    transition: filter var(--transition-normal);
}

[data-theme="dark"] .map-container iframe {
    filter: invert(90%) hue-rotate(180deg) contrast(0.95);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    background-color: var(--bg-secondary);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 36px;
    width: auto;
    opacity: 0.75;
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ==========================================================================
   SCROLL ANIMATION CLASS
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

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

/* Controls auto-hide toggle for Lightbox */
.lightbox.controls-hidden .lightbox-header-info,
.lightbox.controls-hidden .lightbox-counter,
.lightbox.controls-hidden .lightbox-thumbs-strip,
.lightbox.controls-hidden .lightbox-caption-text,
.lightbox.controls-hidden .lightbox-arrow,
.lightbox.controls-hidden .lightbox-fullscreen,
.lightbox.fullscreen-mode .lightbox-header-info,
.lightbox.fullscreen-mode .lightbox-counter,
.lightbox.fullscreen-mode .lightbox-thumbs-strip,
.lightbox.fullscreen-mode .lightbox-caption-text,
.lightbox.fullscreen-mode .lightbox-arrow,
.lightbox.fullscreen-mode .lightbox-fullscreen {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease;
}

/* Maximized Image View */
.lightbox.controls-hidden .lightbox-content-wrapper,
.lightbox.fullscreen-mode .lightbox-content-wrapper {
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    width: 100%;
    height: 100%;
}

.lightbox.controls-hidden .lightbox-media,
.lightbox.fullscreen-mode .lightbox-media {
    max-width: 100%;
    max-height: 100vh;
    height: 100vh;
    object-fit: contain;
    border: none;
    box-shadow: none;
}

/* Fullscreen Button Styles */
.lightbox-fullscreen {
    position: absolute;
    top: 1.2rem;
    right: 4.5rem;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 2020;
    transition: color var(--transition-fast), transform var(--transition-fast);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-fullscreen:hover {
    color: #ffffff;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .lightbox-fullscreen {
        top: 0.3rem;
        right: 3rem;
    }
}

@media (max-height: 550px) {
    .lightbox-fullscreen {
        top: 0.1rem;
        right: 3rem;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4.5rem 0;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }

    .hero-slider-nav {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

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

    .category-showcase-grid {
        grid-template-columns: 1fr;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-quote {
        font-size: 1.15rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-container {
        height: 70px;
    }
    .brand-logo {
        height: 40px;
    }
    .brand-name {
        font-size: 1.25rem;
        font-weight: 700;
        letter-spacing: 0.05em;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 3rem;
        gap: 2rem;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        border-top: 1px solid var(--border);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* Modern Filter Menu Scroll on Mobile */
    .filter-menu {
        display: flex;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 0.5rem;
        padding: 0.5rem 0.5rem 0.75rem 0.5rem;
        margin-bottom: 2rem;
        scrollbar-width: none;
    }
    .filter-menu::-webkit-scrollbar {
        display: none;
    }
    .filter-btn {
        flex: 0 0 auto;
        scroll-snap-align: start;
        font-size: 0.75rem;
        padding: 0.5rem 1.1rem;
        border-radius: 24px;
        letter-spacing: 0.05em;
    }
    
    /* Lightbox Mobile Adjustments */
    .lightbox-header-info {
        top: 0.8rem;
        width: 100%;
        max-width: 100%;
        padding: 0 3.2rem;
    }

    .lightbox-title {
        font-size: 0.95rem;
        line-height: 1.2;
        margin: 0.15rem 0;
    }

    .lightbox-category {
        font-size: 0.6875rem;
    }

    .lightbox-description {
        display: none;
    }

    .lightbox-counter {
        top: 0.8rem;
        left: 0.8rem;
        font-size: 0.72rem;
        padding: 0.2rem 0.4rem;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 4px;
        backdrop-filter: blur(4px);
    }

    .lightbox-close {
        top: 0.5rem;
        right: 0.8rem;
        font-size: 2.2rem;
    }

    .lightbox-content-wrapper {
        max-width: 96%;
        max-height: 72vh;
        margin-top: 2.8rem;
        margin-bottom: 3.8rem;
    }

    .lightbox-media {
        max-height: 70vh;
    }

    .lightbox-arrow {
        font-size: 1.75rem;
        padding: 0.4rem 0.6rem;
        background-color: rgba(0, 0, 0, 0.4);
        border-radius: 50%;
        backdrop-filter: blur(4px);
    }
    
    .lightbox-arrow-left {
        left: 0.4rem;
    }
    
    .lightbox-arrow-right {
        right: 0.4rem;
    }

    .lightbox-caption-text {
        bottom: 3.6rem;
        font-size: 0.75rem;
        padding: 0 1rem;
    }

    .lightbox-thumbs-strip {
        bottom: 0.5rem;
        max-width: 95vw;
        padding: 0.25rem;
        gap: 0.35rem;
    }

    .lightbox-thumb-item {
        width: 44px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .brand {
        gap: 0.4rem;
    }

    .brand-logo {
        height: 34px;
    }

    .brand-name {
        font-size: 1.1rem;
        font-weight: 700;
        letter-spacing: 0.03em;
    }
}

@media (max-width: 360px) {
    .brand-name {
        font-size: 0.96rem;
        letter-spacing: 0.01em;
    }
}

/* Landscape Mode Optimization for Mobile Devices */
@media (max-height: 550px) {
    .lightbox-header-info {
        top: 0.4rem;
        padding: 0 3rem;
    }

    .lightbox-title {
        font-size: 0.85rem;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .lightbox-category {
        font-size: 0.65rem;
    }

    .lightbox-description {
        display: none;
    }

    .lightbox-counter {
        top: 0.4rem;
        left: 0.5rem;
        font-size: 0.7rem;
    }

    .lightbox-close {
        top: 0.2rem;
        right: 0.6rem;
        font-size: 2rem;
    }

    .lightbox-content-wrapper {
        max-width: 98%;
        max-height: 84vh;
        margin-top: 1.8rem;
        margin-bottom: 1.8rem;
    }

    .lightbox-media {
        max-height: 82vh;
        max-width: 92vw;
    }

    .lightbox-arrow {
        font-size: 1.5rem;
        padding: 0.3rem 0.5rem;
    }

    .lightbox-caption-text {
        bottom: 2.4rem;
        font-size: 0.7rem;
        background: rgba(0, 0, 0, 0.6);
        padding: 0.15rem 0.5rem;
        border-radius: 4px;
        display: inline-block;
        width: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .lightbox-thumbs-strip {
        bottom: 0.25rem;
        padding: 0.15rem;
        gap: 0.25rem;
        background-color: rgba(0, 0, 0, 0.4);
    }

    .lightbox-thumb-item {
        width: 38px;
        height: 26px;
    }
}

