/* =====================================================
   NIVADI - Мебельная компания
   Светлая тема, минимализм
===================================================== */

:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f7f6f3;
    --color-bg-dark: #1a1a1a;
    --color-text: #2c2c2c;
    --color-text-light: #6b6b6b;
    --color-text-muted: #999999;
    --color-gold: #C9A962;
    --color-gold-dark: #A68B4B;
    --color-white: #ffffff;
    --color-border: #e8e6e1;
    --color-border-light: #f0eeea;
    --font-heading: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Raleway', 'Helvetica Neue', sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
}

[id] { scroll-margin-top: 90px; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 400; line-height: 1.3; color: var(--color-text); }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); letter-spacing: 1px; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); letter-spacing: 0.5px; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin-bottom: 1rem; color: var(--color-text-light); font-size: 1rem; line-height: 1.8; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 16px 44px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-gold);
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(201, 169, 98, 0.25);
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: btnShine 3s ease-in-out infinite;
}
.btn-primary:hover {
    background: var(--color-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 169, 98, 0.45);
}

@keyframes btnShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
}
.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.25), transparent);
    animation: btnShine 3s ease-in-out infinite;
}
.btn-outline:hover {
    background: var(--color-gold);
    color: var(--color-white);
    box-shadow: 0 6px 25px rgba(201, 169, 98, 0.35);
    transform: translateY(-2px);
}

.btn-white {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(201, 169, 98, 0.4);
}
.btn-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.3), transparent);
    animation: btnShine 3s ease-in-out infinite;
}
.btn-white:hover {
    background: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--color-gold);
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 25px rgba(201, 169, 98, 0.4);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    animation: btnShineGold 3s ease-in-out infinite;
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--color-gold-dark), #8B7340);
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(201, 169, 98, 0.55);
    border-color: rgba(255, 255, 255, 0.5);
}

@keyframes btnShineGold {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.btn-full { width: 100%; text-align: center; }

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}
.header.scrolled,
.header:hover {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.logo {
    display: flex; align-items: center; gap: 10px;
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-white);
    transition: all 0.4s ease;
}
.header.scrolled .logo-text,
.header:hover .logo-text {
    color: var(--color-text);
}

/* === Navigation === */
.nav { display: flex; align-items: center; }
.nav-list { display: flex; gap: 40px; }

.nav-link {
    font-size: 0.82rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-white);
    position: relative;
    transition: all 0.4s ease;
}
.header.scrolled .nav-link,
.header:hover .nav-link {
    color: var(--color-text);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: var(--transition);
}
.nav-link:hover { color: var(--color-gold); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* === Mobile Menu === */
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
.burger span { width: 24px; height: 1.5px; background: var(--color-white); transition: all 0.4s ease; }
.header.scrolled .burger span,
.header:hover .burger span { background: var(--color-text); }
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}
.hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.7;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}
.hero-content {
    position: relative;
    text-align: center;
    z-index: 3;
    padding: 0 24px;
}
.hero-logo {
    width: 180px;
    height: auto;
    margin: 0 auto 30px;
    animation: fadeInUp 1s ease;
    filter: brightness(1.3) drop-shadow(0 4px 20px rgba(201, 169, 98, 0.5));
}
.hero h1 {
    color: var(--color-white);
    margin-bottom: 16px;
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    font-size: clamp(2.5rem, 5vw, 4rem);
}
.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.4s both;
    letter-spacing: 1px;
}
.hero .btn { animation: fadeInUp 1s ease 0.6s both; }

/* === Section Styles === */
.section { padding: 100px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 560px; margin: 0 auto; color: var(--color-text-muted); font-size: 1rem; }
.gold-line { width: 50px; height: 1.5px; background: var(--color-gold); margin: 16px auto; }

/* === About Section === */.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image { position: relative; overflow: hidden; }
.about-image img { width: 100%; height: auto; object-fit: cover; }
.about-content h2 { margin-bottom: 20px; }
.about-content p { margin-bottom: 20px; line-height: 1.9; }

/* === Animated Logo (Stroke Drawing) === */
.about-logo-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 440px;
    overflow: visible;
}
.logo-anim-container {
    position: relative;
    width: 340px;
    height: 440px;
    cursor: pointer;
    transition: transform 200ms ease;
}
.logo-anim-container:hover {
    transform: scale(1.03);
}
.logo-anim-container:hover .hover-glow {
    opacity: 0.3;
    transition: opacity 300ms ease;
}
.hover-glow {
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
}
.nivadi-tree-svg {
    width: 100%;
    height: 100%;
}

/* Filled elements - start hidden, appear with fade/reveal */
.fill-reveal {
    opacity: 0;
}

/* Center glow */
.center-glow { opacity: 0; }

/* ---- 11-Step Filled Reveal Animation (~4.5s total) ---- */

/* Step 0 (0s): Center glow pulse */
.logo-anim-container.animate .center-glow {
    animation: glowPulse 1.0s ease 0s forwards;
}

/* Step 1 (0.3s): Trunk appears bottom-to-top */
.logo-anim-container.animate .anim-trunk {
    animation: revealUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

/* Step 2 (0.9s): Left crown inner (branches/leaves start) */
.logo-anim-container.animate .anim-crown-inner1 {
    animation: fadeInScale 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
}

/* Step 3 (1.4s): Right crown inner */
.logo-anim-container.animate .anim-crown-inner2 {
    animation: fadeInScale 0.7s cubic-bezier(0.4, 0, 0.2, 1) 1.4s forwards;
}

/* Step 4 (1.9s): Crown outer scalloped shape */
.logo-anim-container.animate .anim-crown-outer {
    animation: fadeInScale 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.9s forwards;
}

/* Steps 5-10 (2.8s+): Letters N-I-V-A-D-I appear one by one */
.logo-anim-container.animate .anim-letter-n {
    animation: fadeInUp 0.35s cubic-bezier(0.4, 0, 0.2, 1) 2.8s forwards;
}
.logo-anim-container.animate .anim-letter-i1 {
    animation: fadeInUp 0.25s cubic-bezier(0.4, 0, 0.2, 1) 3.1s forwards;
}
.logo-anim-container.animate .anim-letter-v {
    animation: fadeInUp 0.35s cubic-bezier(0.4, 0, 0.2, 1) 3.3s forwards;
}
.logo-anim-container.animate .anim-letter-a {
    animation: fadeInUp 0.35s cubic-bezier(0.4, 0, 0.2, 1) 3.6s forwards;
}
.logo-anim-container.animate .anim-letter-d {
    animation: fadeInUp 0.35s cubic-bezier(0.4, 0, 0.2, 1) 3.9s forwards;
}
.logo-anim-container.animate .anim-letter-i2 {
    animation: fadeInUp 0.25s cubic-bezier(0.4, 0, 0.2, 1) 4.2s forwards;
}

/* ---- Keyframes ---- */
@keyframes glowPulse {
    0% { opacity: 0; }
    30% { opacity: 0.6; }
    100% { opacity: 0; }
}

/* Trunk reveals bottom to top using clip-path */
@keyframes revealUp {
    0% {
        opacity: 1;
        clip-path: inset(100% 0 0 0);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

/* Crown parts fade in with slight scale */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Letters fade in with slight upward movement */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .logo-anim-container.animate .fill-reveal,
    .logo-anim-container.animate .center-glow {
        animation-duration: 0.01s !important;
        animation-delay: 0s !important;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .logo-anim-container {
        width: 260px;
        height: 340px;
    }
    .about-logo-animation {
        min-height: 340px;
    }
    .hover-glow { display: none; }
}

/* === Advantages Section === */
.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.advantage-card {
    text-align: center;
    padding: 40px 24px;
    transition: var(--transition);
    border: 1px solid var(--color-gold);
    border-radius: 4px;
    background: var(--color-bg);
}
.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(201, 169, 98, 0.15);
    border-color: var(--color-gold-dark);
}

.advantage-icon {
    width: 80px; height: 80px;
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--color-gold);
    border-radius: 50%;
}
.advantage-icon svg { width: 26px; height: 26px; stroke: var(--color-gold); fill: none; stroke-width: 1.5; }
.advantage-icon-img {
    border: none;
    width: 80px;
    height: 80px;
}
.advantage-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.advantage-card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--color-text); }
.advantage-card p { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.7; }

/* === Work Stages === */
.stages-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.stage-card {
    position: relative;
    background: var(--color-white);
    border: 1px solid var(--color-gold);
    border-radius: 12px;
    text-align: center;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(201, 169, 98, 0.08);
}
.stage-card:hover {
    border-color: var(--color-gold-dark);
    box-shadow: 0 8px 30px rgba(201, 169, 98, 0.18);
    transform: translateY(-4px);
}

.stage-number {
    position: absolute;
    top: 14px; left: 18px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gold);
    z-index: 2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.stage-image { width: 100%; height: 260px; overflow: hidden; }
.stage-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.stage-card:hover .stage-image img { transform: scale(1.06); }

.stage-card h3 { font-size: 1.15rem; color: var(--color-text); margin: 20px 20px 10px; letter-spacing: 0.5px; }
.stage-card p { font-size: 0.9rem; color: var(--color-text-light); padding: 0 20px 24px; line-height: 1.5; }

/* === Category Cards (Main Page) === */
.categories-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.category-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
    border-radius: 4px;
    border: 1px solid var(--color-gold);
    box-shadow: 0 2px 10px rgba(201, 169, 98, 0.1);
}

.category-card:hover {
    border-color: var(--color-gold-dark);
    box-shadow: 0 8px 30px rgba(201, 169, 98, 0.2);
}


.category-image { height: 320px; overflow: hidden; background-color: var(--color-bg-alt); }
.category-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }

.category-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.05) 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    transition: var(--transition);
}
.category-card:hover .category-image img { transform: scale(1.06); }
.category-card:hover .category-overlay { background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%); }
.category-overlay h3 { font-size: 1.4rem; color: var(--color-white); letter-spacing: 1px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }

.works-more { text-align: center; margin-top: 50px; }

/* === Works Page === */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.work-card { position: relative; overflow: hidden; cursor: pointer; display: block; }
.work-image { height: 350px; overflow: hidden; background-color: var(--color-bg-alt); display: flex; align-items: center; justify-content: center; }
.work-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }

.work-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    opacity: 0;
    transition: var(--transition);
}
.work-card:hover .work-overlay { opacity: 1; }
.work-card:hover .work-image img { transform: scale(1.04); }
.work-overlay h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--color-white); }
.work-overlay p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); margin-bottom: 0; }

.works-category { margin-top: 0; }
.category-title { color: var(--color-text); }

.page-header { padding: 100px 0 40px; text-align: center; background: var(--color-bg-alt); }
.page-header h1 { margin-bottom: 10px; font-size: 2.2rem; }
.page-header p { max-width: 560px; margin: 0 auto; color: var(--color-text-muted); }

.breadcrumbs { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; font-size: 0.82rem; }
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-gold); }
.breadcrumbs span { color: var(--color-text); }

/* === Application Form Section === */
.application-section { background: var(--color-bg-alt); }
.application-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.application-info h2 { margin-bottom: 20px; }
.application-info p { margin-bottom: 24px; color: var(--color-text-light); line-height: 1.9; }

/* === Contact Section === */
.contact-section { background: var(--color-bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.contact-info h2 { margin-bottom: 24px; }
.contact-info > p { margin-bottom: 30px; color: var(--color-text-light); }

.contact-details { margin-bottom: 30px; }
.contact-item { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.contact-item-icon {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    flex-shrink: 0;
}
.contact-item-icon svg { width: 20px; height: 20px; stroke: var(--color-gold); fill: none; }
.contact-item-text { color: var(--color-text); }
.contact-item-label { font-size: 0.75rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; }

.contact-map { margin-top: 0; }
.contact-map h3 { text-align: center; color: var(--color-text); margin-bottom: 24px; font-size: 1.3rem; }

/* === Form Styles === */
.contact-form { background: var(--color-white); padding: 48px; border: 1px solid var(--color-border); }
.form-group { margin-bottom: 24px; }
.form-label { display: block; margin-bottom: 8px; font-size: 0.8rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 1.5px; }

.form-input, .form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--color-gold); background: var(--color-white); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--color-text-muted); }
.form-textarea { min-height: 110px; resize: vertical; }

.form-checkbox { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.form-checkbox label { display: flex; align-items: center; gap: 12px; }
.form-checkbox input { display: none; }

.checkbox-custom {
    width: 18px; height: 18px;
    border: 1px solid var(--color-border);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    background: var(--color-bg-alt);
}
.form-checkbox input:checked + .checkbox-custom { background: var(--color-gold); border-color: var(--color-gold); }
.checkbox-custom svg { width: 12px; height: 12px; stroke: var(--color-white); opacity: 0; transition: var(--transition); }
.form-checkbox input:checked + .checkbox-custom svg { opacity: 1; }

.checkbox-text { font-size: 0.82rem; color: var(--color-text-muted); line-height: 1.5; }
.checkbox-text a { color: var(--color-gold); text-decoration: underline; }
.checkbox-text a:hover { color: var(--color-gold-dark); }

/* === Footer === */
.footer { background: var(--color-bg-dark); padding: 0; }
.footer-upper { display: grid; grid-template-columns: 1fr 1fr; min-height: 280px; }
.footer-left {
    background: rgba(255,255,255,0.03);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 40px;
    position: relative;
}
.footer-left::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--color-gold), transparent);
    opacity: 0.4;
}
.footer-left .big-logo {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--color-gold);
    letter-spacing: 10px;
}
.footer-left .big-logo-sub {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 12px;
}
.footer-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 50px 40px;
    gap: 40px;
    align-content: center;
}
.footer-right .footer-col h4 {
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
    font-weight: 600;
}
.footer-right .footer-col ul { list-style: none; }
.footer-right .footer-col li { margin-bottom: 10px; }
.footer-right .footer-col a,
.footer-right .footer-col span.contact-val {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    transition: color 0.3s;
}
.footer-right .footer-col a:hover { color: var(--color-gold); }
.footer-right .footer-col .contact-label {
    display: block;
    font-size: 0.68rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    margin-top: 12px;
}
.footer-right .footer-col .contact-label:first-child { margin-top: 0; }
.footer-right .footer-col .contact-val {
    display: block;
    margin-bottom: 2px;
}
.footer-bottom-bar {
    background: rgba(0,0,0,0.3);
    padding: 16px 0;
}
.footer-bottom-bar .bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom-bar p { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer-bottom-bar .legal-links { display: flex; gap: 20px; }
.footer-bottom-bar .legal-links a {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    transition: color 0.3s;
}
.footer-bottom-bar .legal-links a:hover { color: var(--color-gold); }

/* === Modal === */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}
.modal.active { opacity: 1; visibility: visible; }

.modal-content {
    background: var(--color-white);
    padding: 60px;
    text-align: center;
    max-width: 480px;
    border: 1px solid var(--color-border);
    transform: scale(0.95);
    transition: var(--transition);
}
.modal.active .modal-content { transform: scale(1); }

.modal-icon {
    width: 72px; height: 72px;
    margin: 0 auto 24px;
    border: 1.5px solid var(--color-gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.modal-icon svg { width: 36px; height: 36px; stroke: var(--color-gold); fill: none; }
.modal-content h3 { font-size: 1.6rem; margin-bottom: 12px; color: var(--color-text); }
.modal-content p { color: var(--color-text-muted); margin-bottom: 28px; }

.modal-close {
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 12px 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
}
.modal-close:hover { background: var(--color-gold); color: var(--color-white); }

/* === Works Page Carousel === */
.work-card-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--color-border-light);
    transition: var(--transition);
}
.work-card-wrapper:hover {
    border-color: var(--color-gold);
    box-shadow: 0 8px 30px rgba(201, 169, 98, 0.15);
}

.work-carousel {
    position: relative;
    overflow: hidden;
}

.work-card-wrapper .work-image {
    height: 350px;
    overflow: hidden;
    background-color: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}
.work-card-wrapper .work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.5s ease;
}
.work-card-wrapper:hover .work-image img {
    transform: scale(1.04);
}

.work-info-link {
    display: block;
}

.work-overlay-bottom {
    padding: 20px 24px;
    background: var(--color-white);
    transition: var(--transition);
}
.work-overlay-bottom h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
    color: var(--color-text);
}
.work-overlay-bottom p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}
.work-info-link:hover .work-overlay-bottom {
    background: var(--color-bg-alt);
}

/* Carousel Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 0;
}
.work-carousel:hover .carousel-arrow {
    opacity: 1;
}
.carousel-arrow:hover {
    background: var(--color-white);
    border-color: var(--color-gold-dark);
    box-shadow: 0 4px 20px rgba(201, 169, 98, 0.35);
    transform: translateY(-50%) scale(1.08);
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-arrow svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-gold);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.carousel-arrow:hover svg {
    stroke: var(--color-gold-dark);
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.work-carousel:hover .carousel-dots {
    opacity: 1;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--color-gold);
    cursor: pointer;
    transition: var(--transition);
}
.carousel-dot.active {
    background: var(--color-gold);
    border-color: var(--color-gold);
}
.carousel-dot:hover {
    background: rgba(201, 169, 98, 0.6);
}

/* === Case Page Gallery Arrows === */
.case-gallery {
    position: relative;
}

.case-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 0;
}
.case-gallery:hover .case-gallery-nav {
    opacity: 1;
}
.case-gallery-nav:hover {
    background: var(--color-white);
    border-color: var(--color-gold-dark);
    box-shadow: 0 4px 20px rgba(201, 169, 98, 0.35);
    transform: translateY(-50%) scale(1.08);
}
.case-gallery-prev { left: -26px; }
.case-gallery-next { right: -26px; }

.case-gallery-nav svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-gold);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.case-gallery-nav:hover svg {
    stroke: var(--color-gold-dark);
}

.case-main-image {
    position: relative;
    overflow: hidden;
}
.case-main-image img {
    transition: opacity 0.4s ease;
}

/* === Case Page === */
.case-section { padding: 60px 0; }
.case-info { max-width: 800px; }
.case-info h2 { margin-bottom: 10px; }

.case-gallery { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.case-main-image {
    width: 100%;
    max-height: 600px;
    background-color: var(--color-bg-alt);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.case-main-image img { width: 100%; height: auto; max-height: 600px; object-fit: contain; }

.case-thumbnails { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.thumbnail { width: 110px; height: 82px; cursor: pointer; border: 2px solid transparent; transition: var(--transition); overflow: hidden; background-color: var(--color-bg-alt); }
.thumbnail:hover { border-color: var(--color-gold); }
.thumbnail.active { border-color: var(--color-gold); }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.case-description { max-width: 800px; }
.case-description h2 { margin-bottom: 20px; }
.case-description p { margin-bottom: 20px; }

.case-specs { margin: 30px 0; }
.case-specs h3 { font-size: 1.1rem; margin-bottom: 16px; color: var(--color-text); }

.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--color-border); }
.specs-table td { padding: 12px 16px; font-size: 0.92rem; color: var(--color-text-light); vertical-align: top; }
.specs-table td:first-child { font-weight: 400; color: var(--color-text); width: 35%; white-space: nowrap; }

/* === Privacy Page === */
.privacy-content { padding: 140px 0 80px; }
.privacy-content h1 { margin-bottom: 40px; }
.privacy-content h2 { font-size: 1.4rem; margin: 40px 0 20px; }
.privacy-content p { margin-bottom: 15px; }
.privacy-content ul { margin-bottom: 20px; padding-left: 20px; }
.privacy-content li { margin-bottom: 10px; color: var(--color-text-light); position: relative; padding-left: 15px; }
.privacy-content li::before { content: '—'; position: absolute; left: 0; color: var(--color-gold); }

/* === Scroll to Top === */
.scroll-top {
    position: fixed;
    bottom: 36px; right: 36px;
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    border: none;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0; visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(201, 169, 98, 0.35);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 8px 30px rgba(201, 169, 98, 0.5); }
.scroll-top svg { width: 22px; height: 22px; stroke: var(--color-white); fill: none; stroke-width: 2.5; transition: var(--transition); }
.scroll-top:hover svg { transform: translateY(-2px); }

/* === Animations === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* === Form States === */
.form-input.error, .form-textarea.error { border-color: #e74c3c; }
.form-error { color: #e74c3c; font-size: 0.78rem; margin-top: 5px; display: none; }
.form-error.visible { display: block; }

.btn.loading { position: relative; color: transparent; pointer-events: none; }
.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 18px; height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid var(--color-white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === Responsive === */
@media (max-width: 1024px) {
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .works-grid { grid-template-columns: repeat(2, 1fr); }
    .stages-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-upper { grid-template-columns: 1fr 1fr; }
    .about-grid { gap: 50px; }
    .application-grid { gap: 50px; }
}

@media (max-width: 768px) {
    .carousel-arrow { width: 38px; height: 38px; opacity: 1; }
    .carousel-arrow svg { width: 18px; height: 18px; }
    .carousel-prev { left: 8px; }
    .carousel-next { right: 8px; }
    .carousel-dots { opacity: 1; }
    .case-gallery-nav { width: 44px; height: 44px; opacity: 1; }
    .case-gallery-nav svg { width: 20px; height: 20px; }
    .case-gallery-prev { left: 8px; }
    .case-gallery-next { right: 8px; }
    .nav {
        position: fixed;
        top: 74px; left: 0; right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        padding: 30px;
        transform: translateY(-100%);
        opacity: 0; visibility: hidden;
        transition: var(--transition);
        border-bottom: 1px solid var(--color-border);
    }
    .nav.active { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-list { flex-direction: column; gap: 20px; text-align: center; }
    .burger { display: flex; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .application-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 30px; }
    .section { padding: 70px 0; }
    .thumbnail { width: 90px; height: 68px; }
}

@media (max-width: 576px) {
    .carousel-arrow { width: 34px; height: 34px; }
    .carousel-arrow svg { width: 16px; height: 16px; }
    .case-gallery-nav { width: 38px; height: 38px; }
    .case-gallery-nav svg { width: 18px; height: 18px; }
    .section { padding: 50px 0; }
    .advantages-grid { grid-template-columns: 1fr; }
    .works-grid { grid-template-columns: 1fr; }
    .stages-grid { grid-template-columns: repeat(2, 1fr); }
    .stage-image { height: 180px; }
    .categories-grid { grid-template-columns: 1fr; }
    .category-image { height: 220px; }
    .footer-upper { grid-template-columns: 1fr; }
    .footer-left { padding: 40px 20px; }
    .footer-left::after { display: none; }
    .footer-left .big-logo { font-size: 2.2rem; letter-spacing: 6px; }
    .footer-right { padding: 30px 20px; gap: 30px; }
    .footer-bottom-bar .bottom-inner { flex-direction: column; gap: 10px; text-align: center; }
    .footer-bottom-bar .legal-links { flex-direction: column; gap: 8px; align-items: center; }
    .hero-logo { width: 130px; }
    .modal-content { padding: 40px 20px; margin: 20px; }
    .thumbnail { width: 70px; height: 52px; }
    .scroll-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

.consent-error-msg { color: #e74c3c; font-size: 0.78rem; margin-top: 8px; display: none; width: 100%; }
.form-checkbox.error .checkbox-custom { border-color: #e74c3c; }
.form-checkbox.error .checkbox-text { color: #e74c3c; }


/* === Consent Checkbox Error Styles === */
.form-checkbox.consent-error .checkbox-custom {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.form-checkbox.consent-error .checkbox-text {
    color: #e74c3c;
}

/* === Toast Notification === */
.consent-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #2c2c2c;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    z-index: 10000;
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-left: 3px solid #e74c3c;
    max-width: 90vw;
    text-align: center;
}

.consent-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.consent-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e74c3c;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .consent-toast {
        bottom: 20px;
        padding: 12px 20px;
        font-size: 0.82rem;
    }
}
