/* =====================================================
   ConsultCMS - Main Stylesheet
   Design inspired by consult.tj with enhancements
   ===================================================== */

:root {
    --gold: #C9A227;
    --gold-dark: #A6851A;
    --gold-light: #E8D48B;
    --gold-bg: #FBF7EB;
    --dark: #1A1A1A;
    --dark-soft: #2D2D2D;
    --gray: #6B7280;
    --gray-light: #F3F4F6;
    --white: #FFFFFF;
    --success: #10B981;
    --error: #EF4444;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* ========== Typography ========== */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.25;
}

.text-gold { color: var(--gold); }
.bg-gold { background-color: var(--gold); }
.bg-gold-light { background-color: var(--gold-bg); }

/* ========== Header ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

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

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.5px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.logo-text span {
    font-size: 0.65rem;
    color: var(--gold);
    letter-spacing: 1px;
    font-weight: 500;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-soft);
    border-radius: 8px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-dark);
    background: var(--gold-bg);
}

/* Dropdown */
.nav-item {
    position: relative;
}

.nav-item .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

.dropdown a:hover {
    background: var(--gold-bg);
    color: var(--gold-dark);
}

/* Language switcher */
.lang-switcher {
    display: flex;
    background: var(--gray-light);
    border-radius: 8px;
    overflow: hidden;
}

.lang-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.lang-btn:hover:not(.active) {
    background: #e5e7eb;
}

/* Mobile menu */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

/* ========== Hero ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../img/hero-bg.svg') center/cover no-repeat, linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    color: white;
}

.hero-badge {
    display: inline-block;
    background: var(--gold);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    margin-bottom: 1.25rem;
    max-width: 700px;
    animation: fadeInUp 0.8s ease 0.15s both;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 520px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.45s both;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 162, 39, 0.35);
}

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

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

.btn-outline-dark {
    background: transparent;
    color: var(--dark);
    border-color: #d1d5db;
}

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

/* ========== Sections ========== */
.section {
    padding: 5rem 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
}

/* ========== About ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.quote-box {
    background: var(--gold-bg);
    border-left: 4px solid var(--gold);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--dark-soft);
    margin: 1.5rem 0;
}

.values-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.value-tag {
    background: var(--gold-bg);
    color: var(--gold-dark);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    padding: 1.25rem;
    border-radius: var(--radius);
    background: var(--gray-light);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--gold-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: var(--gold);
}

.feature-item h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.feature-item p {
    font-size: 0.875rem;
    color: var(--gray);
}

/* ========== Services ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.service-card {
    background: white;
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.service-card:hover {
    border-color: var(--gold-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

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

.service-icon {
    width: 48px;
    height: 48px;
    background: var(--gold-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--gold);
}

.service-card h3 {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.925rem;
    color: var(--gray);
    margin-bottom: 1.25rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.tag {
    background: var(--gold-bg);
    color: var(--gold-dark);
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.service-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-link:hover {
    color: var(--gold-dark);
}

/* ========== Process / Steps ========== */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    counter-reset: step;
}

.step {
    text-align: center;
    position: relative;
}

.step-num {
    width: 56px;
    height: 56px;
    background: var(--gold-bg);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    transition: var(--transition);
}

.step:hover .step-num {
    background: var(--gold);
    color: white;
    transform: scale(1.1);
}

.step h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

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

/* ========== CTA ========== */
.cta {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    text-align: center;
    padding: 4rem 1.5rem;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.cta h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta p {
    opacity: 0.85;
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

/* ========== Contact ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--gold-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}

.contact-form {
    background: white;
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--dark-soft);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    background: white;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

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

.form-message {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.form-message.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ========== Footer ========== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 3.5rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer h4 {
    color: white;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    padding: 0.3rem 0;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* ========== Cookie Banner ========== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    font-size: 0.875rem;
    opacity: 0.9;
}

.cookie-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

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

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* AOS-like */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

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

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

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

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid #eee;
    }
    
    .nav.open {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* ========== Utility ========== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }

/* Ensure critical styles always apply */
body { background: #fff !important; color: #1a1a1a; }
.header { background: rgba(255,255,255,0.97) !important; }
.hero { background: linear-gradient(135deg, #1a1a2e, #0f3460) !important; min-height: 90vh; }
.btn-primary { background: #C9A227 !important; color: #fff !important; }

/* ========== Service Modal ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}
.modal-box {
    background: #fff;
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.25rem 2rem 2rem;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
    border-right: 4px solid var(--gold);
}
.modal-overlay.open .modal-box {
    transform: translateY(0) scale(1);
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}
.modal-close:hover {
    background: var(--gold);
    color: #fff;
}
.modal-category {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.modal-box h2 {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--dark);
    padding-right: 2rem;
}
.modal-underline {
    width: 40px;
    height: 3px;
    background: var(--gold);
    margin-bottom: 1.25rem;
    border-radius: 2px;
}
.modal-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #374151;
}
.modal-body h3 {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
    color: var(--dark);
}
.modal-body ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem;
}
.modal-body ul li {
    padding: 0.3rem 0 0.3rem 1.25rem;
    position: relative;
}
.modal-body ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 0.65rem;
    top: 0.55rem;
}
.modal-body p {
    margin-bottom: 0.75rem;
}
.service-card {
    cursor: pointer;
}
.service-card .service-link {
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
}
body.modal-open {
    overflow: hidden;
}
@media (max-width: 600px) {
    .modal-box {
        padding: 1.75rem 1.25rem;
        max-height: 90vh;
    }
    .modal-box h2 {
        font-size: 1.35rem;
    }
}





/* ========== Hero — 3D icon cloud ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a101c 0%, #121c33 55%, #0f1a2e 100%) !important;
}
.hero-overlay {
    z-index: 2;
    background: linear-gradient(100deg,
        rgba(10,16,28,0.92) 0%,
        rgba(10,16,28,0.78) 38%,
        rgba(10,16,28,0.25) 68%,
        rgba(10,16,28,0.12) 100%) !important;
}
.hero-content {
    position: relative;
    z-index: 5;
    max-width: 540px;
}

.hero-cloud-wrap {
    position: absolute;
    right: 2%;
    top: 50%;
    transform: translateY(-50%);
    width: min(460px, 46vw);
    height: min(460px, 46vw);
    z-index: 3;
    perspective: 900px;
    cursor: grab;
}
.hero-cloud-wrap:active { cursor: grabbing; }

.cloud-scene {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-8deg) rotateY(15deg);
}

.cloud-item {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(201, 162, 39, 0.85);
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.28);
    border-radius: 10px;
    backdrop-filter: blur(2px);
    transform-style: preserve-3d;
    transition: color 0.25s, background 0.25s, border-color 0.25s, box-shadow 0.25s;
    will-change: transform, opacity;
    pointer-events: none;
}
.cloud-item svg {
    width: 20px;
    height: 20px;
}
.cloud-item.is-front {
    color: #f0d060;
    background: rgba(201, 162, 39, 0.18);
    border-color: rgba(240, 208, 96, 0.55);
    box-shadow: 0 0 18px rgba(201, 162, 39, 0.35);
}
.cloud-item.is-back {
    color: rgba(140, 180, 220, 0.35);
    background: rgba(80, 120, 180, 0.06);
    border-color: rgba(100, 150, 200, 0.15);
}

/* soft glow behind cloud */
.hero-cloud-wrap::before {
    content: '';
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,162,39,0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Rotator */
.hero-rotator {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 0.5rem 0.75rem; margin-bottom: 1.75rem; min-height: 1.75rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}
.rotator-label { font-size: 0.95rem; color: rgba(255,255,255,0.65); }
.rotator-words {
    position: relative; display: inline-block; min-width: 12rem; height: 1.5em; overflow: hidden;
}
.rotator-word {
    position: absolute; left: 0; top: 0; font-weight: 600; font-size: 1rem;
    color: var(--gold); opacity: 0; transform: translateY(100%);
    transition: opacity 0.45s ease, transform 0.45s ease; white-space: nowrap;
}
.rotator-word.active { opacity: 1; transform: translateY(0); }
.rotator-word.exit { opacity: 0; transform: translateY(-100%); }

@media (max-width: 900px) {
    .hero-cloud-wrap {
        width: min(300px, 50vw);
        height: min(300px, 50vw);
        right: 1%;
    }
    .cloud-item { width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 8px; }
    .cloud-item svg { width: 15px; height: 15px; }
}
@media (max-width: 640px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        padding: 5rem 1rem 2rem;
    }
    .hero-cloud-wrap {
        position: relative;
        right: auto; top: auto;
        transform: none;
        width: 260px; height: 260px;
        margin: 0 auto 1.25rem;
    }
    .hero-content { max-width: 100%; text-align: center; }
    .hero-buttons { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .cloud-scene { transform: none !important; }
}


/* Header auth links */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}
.user-auth-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.auth-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark, #1a1a1a);
    text-decoration: none;
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    transition: opacity 0.2s, color 0.2s;
}
.auth-link:hover {
    opacity: 1;
    color: var(--gold, #C9A227);
}
.auth-link--admin {
    color: var(--gold, #C9A227);
    opacity: 1;
}
.auth-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: var(--gold, #C9A227);
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.2s;
}
.auth-btn:hover {
    background: var(--gold-dark, #A6851A);
    color: #fff;
}
.header.scrolled .auth-link,
.header.is-sticky .auth-link {
    color: inherit;
}
@media (max-width: 900px) {
    .header-actions {
        order: 3;
        width: 100%;
        justify-content: flex-end;
        margin-top: 0.5rem;
        margin-left: 0;
    }
    .user-auth-links {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}
@media (max-width: 640px) {
    .auth-link--cabinet span,
    .auth-link svg + * {
        max-width: 6rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Page hero with photo (no people stock) */
.page-hero{
  position:relative;
  padding:7rem 0 3.5rem;
  background:#1a1a1a;
  color:#fff;
  overflow:hidden;
}
.page-hero.has-image{min-height:280px;display:flex;align-items:flex-end}
.page-hero-bg{
  position:absolute;inset:0;
  background-size:cover;background-position:center;
  transform:scale(1.02);
}
.page-hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.45) 0%,rgba(0,0,0,.72) 100%);
}
.page-hero-inner{position:relative;z-index:2}
.page-hero .section-label{color:rgba(255,255,255,.75)}
.page-hero .section-title{color:#fff;margin:0}
.page-layout{
  display:grid;
  gap:2rem;
  align-items:start;
}
@media(min-width:900px){
  .page-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)}
  .page-layout .page-side-image{order:0}
  .page-layout .page-content{order:1}
}
.page-side-image{margin:0}
.page-side-image img{
  width:100%;height:auto;border-radius:14px;
  object-fit:cover;max-height:420px;
  box-shadow:0 8px 32px rgba(0,0,0,.08);
}
.page-content{
  max-width:720px;line-height:1.8;font-size:1.05rem;color:#374151;
}
.page-content h2,.page-content h3{margin:1.5rem 0 .6rem;color:#1a1a1a}
.page-content ul,.page-content ol{margin:.5rem 0 1rem 1.25rem}
.page-content p{margin-bottom:.9rem}



.service-card-photo{
  height:120px;margin:-1.25rem -1.25rem 1rem;border-radius:12px 12px 0 0;
  background-size:cover;background-position:center;
}

/* Services v2 — full photos, no ugly crop */
.services-section{background:var(--gray-light,#f3f4f6);padding-top:2.5rem;padding-bottom:4rem}
.services-intro{max-width:720px;margin:0 auto 2.5rem;text-align:center;color:#4b5563;line-height:1.7}
.services-grid--v2{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:1.5rem;
}
.svc-card{
  background:#fff;border-radius:16px;overflow:hidden;
  box-shadow:0 4px 20px rgba(0,0,0,.06);
  display:flex;flex-direction:column;
  transition:transform .25s ease,box-shadow .25s ease;
  border:1px solid rgba(0,0,0,.04);
}
.svc-card:hover{transform:translateY(-4px);box-shadow:0 12px 32px rgba(0,0,0,.1)}
.svc-card__media{
  position:relative;width:100%;
  aspect-ratio:16/10;
  background:#e5e7eb;overflow:hidden;
}
.svc-card__media img{
  width:100%;height:100%;
  object-fit:cover;object-position:center;
  display:block;
}
.svc-card__body{padding:1.25rem 1.35rem 1.5rem;flex:1;display:flex;flex-direction:column}
.svc-card__icon{
  width:42px;height:42px;border-radius:10px;
  background:#fbf7eb;color:#C9A227;
  display:flex;align-items:center;justify-content:center;
  margin-bottom:.85rem;
}
.svc-card__title{font-size:1.1rem;font-weight:600;margin:0 0 .5rem;line-height:1.35;color:#1a1a1a}
.svc-card__text{font-size:.92rem;color:#6b7280;line-height:1.55;margin:0 0 1rem;flex:1}
.svc-card__tags{display:flex;flex-wrap:wrap;gap:.35rem;margin-bottom:1rem}
.svc-card__tags span{
  font-size:.72rem;font-weight:500;padding:.2rem .55rem;
  border-radius:999px;background:#f3f4f6;color:#6b7280;
}
.svc-card__more{
  align-self:flex-start;background:none;border:none;padding:0;
  font:inherit;font-weight:600;font-size:.9rem;color:#C9A227;cursor:pointer;
}
.svc-card__more:hover{color:#A6851A}

/* JS 3D scenes (no photos) */
.page-hero--3d{
  background:linear-gradient(135deg,#0f172a 0%,#1e293b 50%,#0f3460 100%);
  padding:6.5rem 0 2.5rem;color:#fff;overflow:hidden;
}
.page-hero--3d .page-hero-inner{
  display:grid;gap:1.5rem;align-items:center;
}
@media(min-width:900px){
  .page-hero--3d .page-hero-inner{grid-template-columns:1.1fr 1fr}
}
.page-hero--3d .section-title{color:#fff;margin:0}
.page-hero--3d .section-label{color:rgba(255,255,255,.7)}
.scene-3d{
  width:100%;height:280px;min-height:200px;
  border-radius:16px;position:relative;
}
.scene-3d canvas{display:block;width:100%!important;height:100%!important;border-radius:16px}
.scene-3d--card{
  height:auto;aspect-ratio:16/10;min-height:140px;
  border-radius:16px 16px 0 0;background:linear-gradient(160deg,#0f172a,#1e293b);
}
.svc-card__media.scene-3d--card{margin:0;overflow:hidden}
.page-side-image,.page-hero-bg,.service-card-photo{display:none!important}

/* 3D tag-cloud scenes (section-specific icons) */
.page-hero--3d{
  background:linear-gradient(135deg,#0f172a 0%,#1e293b 45%,#16213e 100%);
  padding:6.5rem 0 2.5rem;color:#fff;overflow:hidden;
}
.page-hero--3d .page-hero-inner{
  display:grid;gap:1.5rem;align-items:center;
}
@media(min-width:900px){
  .page-hero--3d .page-hero-inner{grid-template-columns:1.1fr 1fr}
}
.page-hero--3d .section-title{color:#fff;margin:0}
.page-hero--3d .section-label{color:rgba(255,255,255,.7)}
.scene-3d{
  width:100%;height:300px;min-height:220px;
  position:relative;perspective:900px;
  display:flex;align-items:center;justify-content:center;
}
.scene-3d--card{
  height:auto;aspect-ratio:16/10;min-height:150px;
  border-radius:16px 16px 0 0;
  background:linear-gradient(160deg,#0f172a 0%,#1e293b 100%);
  perspective:700px;
}
.tagcloud{
  width:100%;height:100%;
  display:flex;align-items:center;justify-content:center;
  transform-style:preserve-3d;
}
.tagcloud-scene{
  position:relative;width:1px;height:1px;
  transform-style:preserve-3d;
  will-change:transform;
}
.tagcloud-item{
  position:absolute;left:0;top:0;
  width:44px;height:44px;margin:-22px 0 0 -22px;
  display:flex;align-items:center;justify-content:center;
  border-radius:12px;
  background:rgba(201,162,39,.12);
  border:1px solid rgba(201,162,39,.35);
  color:#E8C547;
  box-shadow:0 8px 24px rgba(0,0,0,.25);
  backface-visibility:hidden;
  transition:color .2s,background .2s,border-color .2s;
}
.scene-3d--card .tagcloud-item{
  width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:9px;
}
.tagcloud-item svg{width:60%;height:60%;display:block}
.scene-3d:hover .tagcloud-item{
  background:rgba(201,162,39,.2);
  border-color:rgba(232,197,71,.55);
}
