/* ==========================================
   TopDekor - Main Stylesheet
   ========================================== */

/* --- CSS Variables --- */
:root {
    --dark: #111418;
    --dark2: #1a1f26;
    --dark3: #222830;
    --dark4: #2c3340;
    --gold: #c8a96e;
    --gold-light: #dfc08a;
    --gold-dark: #a8893a;
    --white: #ffffff;
    --off-white: #f5f3ef;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --text: #374151;
    --text-light: #6b7280;
    --border: rgba(200, 169, 110, 0.2);
    --shadow: 0 4px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
    --radius: 4px;
    --radius-lg: 10px;
    --transition: all 0.3s ease;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Raleway', Arial, sans-serif;
    --header-h: 80px;
    --topbar-h: 38px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- Icons --- */
.icon-xs { width: 14px; height: 14px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon-sm { width: 18px; height: 18px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon-md { width: 24px; height: 24px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon-lg { width: 36px; height: 36px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon-xl { width: 48px; height: 48px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
/* SVG icon color inheritance */
svg.icon-xs, svg.icon-sm, svg.icon-md, svg.icon-lg, svg.icon-xl { color: inherit; }

/* --- Container --- */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Topbar --- */
.topbar {
    background: var(--dark);
    color: rgba(255,255,255,0.65);
    font-size: 0.8rem;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(200,169,110,0.15);
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 16px;
}
.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.topbar-left span, .topbar-right a,
.topbar .tb-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.65);
}
.topbar-right a:hover { color: var(--gold); }
.topbar svg { color: var(--gold); }
.topbar-left .tb-item svg, .topbar svg { color: var(--gold); }

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--dark2);
    height: var(--header-h);
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 30px rgba(0,0,0,0.25);
    transition: var(--transition);
}
.site-header.scrolled {
    height: 65px;
    background: rgba(17, 20, 24, 0.97);
    backdrop-filter: blur(10px);
}
/* ═══════════════════════════════════════════════════
   HEADER LAYOUT  –  ЛОГО вляво, МЕНЮ+БУТОн вдясно
   ═══════════════════════════════════════════════════ */
.header-inner {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0;
}

/* ── Лого – винаги вляво ── */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;   /* не се смалява */
}
/* Лого ИЗОБРАЖЕНИЕ (качено от Settings) */
.logo img {
    display: block;
    height: auto;
    max-height: 60px;
    /* width-ът идва от inline style="width:Xpx" – НЕ го overridваме тук */
    object-fit: contain;
    transition: opacity 0.2s;
}
.logo img:hover { opacity: 0.85; }

/* Лого ТЕКСТ (TD иконка – когато няма изображение) */
.logo-icon {
    width: 50px; height: 50px; min-width: 50px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark);
    font-family: var(--font-display);
    font-weight: 700; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius); letter-spacing: 1px;
}
.logo-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.4rem; font-weight: 700;
    color: var(--white); line-height: 1.1; letter-spacing: 0.5px;
    white-space: nowrap;
}
.logo-sub {
    display: block;
    font-size: 0.65rem; color: var(--gold);
    letter-spacing: 2px; text-transform: uppercase; font-weight: 500;
}

/* ── Навигация – margin-left:auto я бута максимално вдясно ── */
.main-nav {
    margin-left: auto;   /* ★ ключовият ред */
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0; padding: 0;
}
.main-nav a {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem; font-weight: 500;
    letter-spacing: 0.5px; text-transform: uppercase;
    padding: 8px 12px;
    border-radius: var(--radius);
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    display: block;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}
.main-nav a:hover,
.main-nav a.active { color: var(--gold); }
.main-nav a:hover::after,
.main-nav a.active::after { width: calc(100% - 16px); }

/* ── CTA бутон + Хамбургер – крайно вдясно ── */
.header-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: 16px;
}
.btn-call {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: var(--dark) !important;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-call:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(200,169,110,0.3);
}
.btn-call svg { color: var(--dark); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1099;
    opacity: 0;
    transition: opacity 0.3s;
}
.mobile-overlay.active { display: block; opacity: 1; }
.mobile-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--dark2);
    z-index: 1100;
    padding: 30px;
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    border-left: 2px solid var(--gold);
}
.mobile-nav.open { right: 0; }
.mobile-nav-close {
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--white);
    opacity: 0.7;
    font-size: 1.4rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}
.mobile-nav-close:hover { opacity: 1; background: rgba(255,255,255,0.1); }
.mobile-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; margin-top: 10px; }
.mobile-nav ul { margin-bottom: 32px; }
.mobile-nav li a {
    display: block;
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}
.mobile-nav li a:hover { color: var(--gold); padding-left: 8px; }
.mobile-contact a {
    display: block;
    color: var(--gold);
    font-size: 0.9rem;
    padding: 6px 0;
    font-weight: 600;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}
.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200,169,110,0.35);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
    transform: translateY(-2px);
}
.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}
.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-2px);
}
.btn-dark {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}
.btn-dark:hover {
    background: var(--dark3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* --- Section Base --- */
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark2 { background: var(--dark2); color: var(--white); }
.section-off { background: var(--off-white); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header.left { text-align: left; }
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
    position: relative;
    padding: 0 16px;
}
.section-tag::before, .section-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}
.section-tag::before { left: -20px; }
.section-tag::after { right: -20px; }
.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 16px;
}
.section-dark .section-header h2,
.section-dark2 .section-header h2 { color: var(--white); }
.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.05rem;
}
.section-dark .section-header p,
.section-dark2 .section-header p { color: rgba(255,255,255,0.65); }
.gold-line {
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: 16px auto 0;
}
.section-header.left .gold-line { margin-left: 0; }

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0d1117 0%, #1a2535 35%, #111827 65%, #0d1117 100%);
    z-index: 0;
}
.hero-pattern {
    position: absolute;
    inset: 0;
    background: url("../images/hero-bg.jpg") center / cover no-repeat;
    z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-content {
    max-width: 720px;
    padding: 60px 0;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(200,169,110,0.15);
    border: 1px solid rgba(200,169,110,0.3);
    color: var(--gold);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
}
.hero h1 span { color: var(--gold); }
.hero-lead {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 560px;
}
.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}
.hero-stat-num {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
}
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 1;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 28px;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 0;
    background: var(--gold);
    transition: height 0.4s ease;
}
.service-card:hover {
    border-color: var(--gold);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.service-card:hover::before { height: 100%; }
.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(200,169,110,0.12), rgba(200,169,110,0.05));
    border: 1px solid rgba(200,169,110,0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}
.service-card:hover .service-icon {
    background: var(--gold);
    border-color: var(--gold);
}
.service-icon svg { color: var(--gold); transition: var(--transition); }
.service-card:hover .service-icon svg { color: var(--dark); }
.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}
.service-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 16px;
    transition: var(--transition);
}
.service-link:hover { gap: 10px; }

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-img-wrap {
    position: relative;
}
.about-img-main {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    filter: brightness(0.95);
}
.about-img-badge {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 160px;
    height: 160px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--dark);
    box-shadow: var(--shadow);
    padding: 20px;
}
.about-img-badge .num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}
.about-img-badge .lbl {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.3;
    margin-top: 6px;
}
.about-content { padding-right: 20px; }
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}
.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.about-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(200,169,110,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.about-feature-icon svg { color: var(--gold); }
.about-feature h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 3px;
}
.about-feature p { font-size: 0.82rem; color: var(--text-light); }

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
    background: var(--dark3);
}
.project-card:first-child {
    grid-column: span 2;
    grid-row: span 1;
}
.project-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}
.project-card:first-child .project-img { height: 420px; }
.project-card:hover .project-img { transform: scale(1.07); }
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17,20,24,0.9) 0%, rgba(17,20,24,0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    transition: var(--transition);
}
.project-cat {
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
}
.project-overlay h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 6px;
}
.project-meta {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    gap: 6px;
}
.project-hover-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 56px;
    height: 56px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}
.project-card:hover .project-hover-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.project-hover-btn svg { color: var(--dark); }

/* Projects page grid */
.projects-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}
.project-page-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-light);
    transition: var(--transition);
    cursor: pointer;
}
.project-page-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}
.project-page-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-page-card:hover .project-page-img { transform: scale(1.04); }
.project-page-body {
    padding: 24px;
}
.project-page-body h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}
.project-page-body p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Project filter tabs */
.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 48px;
}
.filter-tab {
    padding: 8px 22px;
    border: 2px solid var(--gray-light);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-light);
    background: transparent;
    transition: var(--transition);
    cursor: pointer;
}
.filter-tab:hover, .filter-tab.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(200,169,110,0.06);
}

/* --- Why Us / Process --- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.why-card {
    text-align: center;
    padding: 36px 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
}
.why-card:hover {
    border-color: var(--gold);
    background: rgba(200,169,110,0.04);
    transform: translateY(-4px);
}
.why-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(200,169,110,0.15);
    position: absolute;
    top: 12px;
    right: 18px;
    line-height: 1;
}
.why-icon {
    width: 64px;
    height: 64px;
    background: rgba(200,169,110,0.12);
    border: 1px solid rgba(200,169,110,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.why-icon svg { color: var(--gold); }
.why-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}
.why-card p { font-size: 0.87rem; color: rgba(255,255,255,0.55); line-height: 1.7; }

/* --- CTA Banner --- */
.cta-banner {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/cta-bg.jpg') center/cover no-repeat;
}
.cta-banner .container { position: relative; }
.cta-banner h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}
.cta-banner p {
    color: rgba(17,20,24,0.65);
    font-size: 1.05rem;
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-phones {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
}
.cta-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-display);
}
.cta-phone svg { width: 22px; height: 22px; }
.cta-phone:hover { opacity: 0.75; }

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}
.contact-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark);
}
.contact-items { margin-top: 32px; display: flex; flex-direction: column; gap: 24px; }
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.contact-item-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-item-icon svg { color: var(--dark); }
.contact-item-body h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.contact-item-body a, .contact-item-body p {
    font-size: 0.95rem;
    color: var(--dark);
    font-weight: 500;
    display: block;
    line-height: 1.6;
}
.contact-item-body a:hover { color: var(--gold); }

/* Contact Form */
.contact-form {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--gray-light);
}
.contact-form h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text);
    margin-bottom: 7px;
    text-transform: uppercase;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    background: var(--white);
    font-size: 0.95rem;
    color: var(--dark);
    transition: var(--transition);
    outline: none;
    appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200,169,110,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.92rem;
    display: none;
}
.form-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.92rem;
    display: none;
}

/* --- Page Hero (Inner pages) --- */
.page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark3) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--gold);
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/page-bg.jpg') center/cover no-repeat;
}
.page-hero .container { position: relative; z-index: 1; text-align: center; }
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}
.page-hero p {
    color: rgba(255,255,255,0.6);
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto;
}
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.82rem;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.4); }
.breadcrumb .sep { color: rgba(255,255,255,0.25); }

/* --- About Page --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px;
}
.team-card {
    text-align: center;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: var(--transition);
}
.team-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 3px solid var(--gold);
}
.team-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.team-card span { font-size: 0.8rem; color: var(--gold); font-weight: 500; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.value-card {
    padding: 36px 28px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}
.value-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow);
}
.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(200,169,110,0.1), rgba(200,169,110,0.05));
    border: 2px solid rgba(200,169,110,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.value-icon svg { color: var(--gold); }
.value-card h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 10px; }
.value-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }

/* --- Footer --- */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.65); }
.footer-top { padding: 70px 0 50px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.2fr 1.5fr;
    gap: 48px;
}
.footer-about .footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-about p { font-size: 0.9rem; line-height: 1.8; max-width: 280px; }
.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(200,169,110,0.2);
    position: relative;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    transition: var(--transition);
}
.footer-col a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.footer-contact svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 22px 0;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.35); }

/* --- Back to top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--gold);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(200,169,110,0.35);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-light); transform: translateY(-3px); }

/* --- Alert / Notice --- */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}
.alert-success { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; }
.alert-error { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
.alert-info { background: #dbeafe; border: 1px solid #93c5fd; color: #1e40af; }

/* --- Placeholder image --- */
.img-placeholder {
    width: 100%;
    background: linear-gradient(135deg, var(--dark3), var(--dark4));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid .project-card:first-child { grid-column: span 2; }
}

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 50px; }
    .about-img-badge { bottom: 16px; right: 16px; width: 130px; height: 130px; }
    .about-content { padding-right: 0; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .values-grid { grid-template-columns: 1fr 1fr; }
    /* Мобилни: nav скрита, показва хамбургер */
    .main-nav { display: none !important; }
    .btn-call span { display: none; }
    .hamburger { display: flex; }
    .topbar-left { display: none; }
    .logo img { max-height: 44px; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    :root { --header-h: 65px; }
    .hero h1 { font-size: 2rem; }
    .hero-stats { gap: 28px; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .projects-grid .project-card:first-child { grid-column: span 1; }
    .form-row { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .cta-phones { flex-direction: column; gap: 16px; align-items: center; }
    .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-btns { flex-direction: column; }
    .why-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .contact-form { padding: 28px 20px; }
    .projects-page-grid { grid-template-columns: 1fr; }
    .back-to-top { bottom: 20px; right: 20px; }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
    animation: fadeInUp 0.7s ease forwards;
    opacity: 0;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ====== ADDITIONAL FIXES ====== */

/* Topbar tb-item */
.tb-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tb-item svg { color: var(--gold); }
.topbar-right .tb-item { color: rgba(255,255,255,0.65); transition: var(--transition); }
.topbar-right .tb-item:hover { color: var(--gold); }

/* About image fix - works as div too */
.about-img-main {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* Service card icon SVG color */
.service-icon svg { color: var(--gold); transition: var(--transition); }
.service-card:hover .service-icon svg { color: var(--dark); }

/* Why card icon SVG */
.why-icon svg { color: var(--gold); }

/* Value card icon SVG */
.value-icon svg { color: var(--gold); }

/* Contact item icon SVG */
.contact-item-icon svg { color: var(--dark); }

/* Footer contact list items */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.footer-contact li svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* Hero stat */
.hero-stat { flex: 1; min-width: 100px; }

/* Hero tag */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(200,169,110,0.15);
    border: 1px solid rgba(200,169,110,0.3);
    color: var(--gold);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

/* Project page meta row */
.proj-meta-row {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--text-light);
    flex-wrap: wrap;
}
.proj-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.proj-meta-row svg { color: var(--gold); }

/* Project category badge */
.proj-cat-badge {
    display: inline-block;
    background: rgba(200,169,110,0.1);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
}

/* Extra item (услуги page) */
.extra-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 0.88rem;
    color: var(--text);
    transition: var(--transition);
    cursor: default;
}
.extra-item:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.extra-item svg { color: var(--gold); flex-shrink: 0; }

/* Breadcrumb */
.breadcrumb a { color: var(--gold); }
.breadcrumb .sep { color: rgba(255,255,255,0.3); }
.breadcrumb span { color: rgba(255,255,255,0.55); }

/* Back to top SVG */
.back-to-top svg { color: var(--dark); }

/* Hero scroll SVG */
.hero-scroll svg { color: rgba(255,255,255,0.4); }

/* Btn SVGs */
.btn svg { flex-shrink: 0; }
.btn-call svg { color: var(--dark); }

/* CTA phone SVG */
.cta-phone svg { color: var(--dark); }

/* Mobile nav close SVG */
.mobile-nav-close svg { color: rgba(255,255,255,0.7); }

/* Section tag no padding fix */
.section-tag[style*="padding:0"] { padding-left: 0 !important; padding-right: 0 !important; }
.section-tag[style*="padding:0"]::before,
.section-tag[style*="padding:0"]::after { display: none; }

/* Page hero section-tag */
.page-hero .section-tag {
    color: var(--gold);
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Form success/error visible state */
.form-success { background:#d1fae5; border:1px solid #6ee7b7; color:#065f46; padding:14px 18px; border-radius:var(--radius); margin-bottom:20px; font-size:0.92rem; }
.form-error   { background:#fee2e2; border:1px solid #fca5a5; color:#991b1b; padding:14px 18px; border-radius:var(--radius); margin-bottom:20px; font-size:0.92rem; }

/* Lightbox styles */
.lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.92);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 4px; }
.lightbox-close {
    position: absolute; top: 20px; right: 20px;
    color: #fff; cursor: pointer; opacity: 0.7;
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: all 0.2s; background: rgba(255,255,255,0.1);
}
.lightbox-close:hover { opacity: 1; background: rgba(255,255,255,0.2); }
.lightbox-close svg { color: #fff; }

/* About features responsive */
@media (max-width: 600px) {
    .about-features { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
}

/* Loading animation */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.8s linear infinite; }

/* ============================================
   PROJECT DETAIL PAGE
   ============================================ */

/* Layout grid */
.proj-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
    margin-bottom: 70px;
}

/* ── Main viewer ── */
.proj-gallery-col { position: sticky; top: 100px; }

.main-viewer {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--dark3);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
}
.main-viewer-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}
.viewer-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 20px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.viewer-zoom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}
.viewer-zoom svg { color: var(--gold); }
.viewer-count {
    background: rgba(0,0,0,0.5);
    color: rgba(255,255,255,0.8);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.15);
}

/* Slideshow nav buttons */
.viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
    backdrop-filter: blur(4px);
}
.viewer-nav:hover { background: var(--gold); border-color: var(--gold); }
.viewer-nav svg { color: inherit; }
.viewer-prev { left: 14px; }
.viewer-next { right: 14px; }
.viewer-prev svg { transform: rotate(-90deg); }
.viewer-next svg { transform: rotate(90deg); }

/* ── Thumbnail strip ── */
.thumb-strip {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
}
.thumb-strip::-webkit-scrollbar { height: 4px; }
.thumb-strip::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

.thumb {
    flex-shrink: 0;
    width: 80px; height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    transition: opacity 0.2s;
}
.thumb.active {
    border-color: var(--gold);
}
.thumb.active .thumb-overlay { opacity: 0; }
.thumb:hover .thumb-overlay { opacity: 0; }

.gallery-count-bar {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.5px;
}
.gallery-count-bar svg { color: var(--gold); }

/* No image placeholder */
.no-img-placeholder {
    height: 360px;
    background: var(--dark3);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: rgba(255,255,255,0.25);
}
.no-img-placeholder p { font-size: 0.9rem; }

/* ── Info column ── */
.proj-info-box {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.proj-detail-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 24px;
}

/* Meta items */
.proj-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: 24px;
}
.proj-meta-item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.proj-meta-icon {
    width: 38px; height: 38px;
    background: rgba(200,169,110,0.1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.proj-meta-icon svg { color: var(--gold); }
.proj-meta-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.proj-meta-val {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
}

/* Description */
.proj-description h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}
.proj-desc-text p {
    font-size: 0.93rem;
    color: var(--text-light);
    line-height: 1.85;
    margin-bottom: 10px;
}
.proj-desc-text p:last-child { margin-bottom: 0; }

/* CTA in sidebar */
.proj-cta {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-light);
}
.proj-cta > p {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

/* Prev/Next nav */
.proj-nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.proj-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    text-decoration: none;
}
.proj-nav-link:hover {
    border-color: var(--gold);
    background: rgba(200,169,110,0.03);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.proj-nav-prev { flex-direction: row; }
.proj-nav-prev svg { transform: rotate(180deg); color: var(--gold); flex-shrink: 0; }
.proj-nav-next svg { color: var(--gold); flex-shrink: 0; }
.pnl-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 3px;
}
.pnl-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
}

/* ── Full gallery grid ── */
.full-gallery-section {
    padding-top: 70px;
    border-top: 1px solid var(--gray-light);
}
.full-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: zoom-in;
    background: var(--dark3);
    aspect-ratio: 4/3;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17,20,24,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay svg { color: #fff; }

/* ── Lightbox (enhanced) ── */
.lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.95);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.3s;
    padding: 60px 80px;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lb-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 88vh;
}
.lightbox img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    transition: opacity 0.15s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lb-caption {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    margin-top: 12px;
    text-align: center;
    letter-spacing: 0.5px;
}
.lb-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 16px;
    border-radius: 100px;
}
.lightbox-close {
    position: absolute; top: 16px; right: 20px;
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #fff;
    transition: all 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-close svg { color: #fff; }
.lb-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 54px; height: 54px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #fff;
    transition: all 0.2s;
}
.lb-nav:hover { background: var(--gold); border-color: var(--gold); }
.lb-nav svg { color: inherit; }
.lb-prev { left: 16px; }
.lb-prev svg { transform: rotate(-90deg); }
.lb-next { right: 16px; }
.lb-next svg { transform: rotate(90deg); }

/* ── Project Detail Responsive ── */
@media (max-width: 1050px) {
    .proj-detail-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .proj-gallery-col { position: static; }
    .main-viewer-img { height: 420px; }
}
@media (max-width: 768px) {
    .proj-detail-grid { gap: 20px; }
    .main-viewer-img { height: 300px; }
    .proj-info-box { padding: 20px; }
    .proj-detail-title { font-size: 1.3rem; }
    /* Lightbox fullscreen on mobile */
    .lightbox { padding: 44px 8px 8px; }
    .lb-inner { max-width: 100vw; }
    .lightbox img { max-height: 75vh; border-radius: 0; }
    .lb-prev { left: 4px; width: 44px; height: 44px; }
    .lb-next { right: 4px; width: 44px; height: 44px; }
    .lightbox-close { top: 8px; right: 8px; }
    .full-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 6px;
    }
    .gallery-item { aspect-ratio: 1; }
    /* Thumbs strip smaller on mobile */
    .thumb { width: 64px; height: 48px; }
    /* Viewer nav bigger touch targets */
    .viewer-nav { width: 44px; height: 44px; }
    .viewer-prev { left: 6px; }
    .viewer-next { right: 6px; }
}
@media (max-width: 480px) {
    .main-viewer-img { height: 240px; }
    .proj-nav-links { flex-direction: column; gap: 8px; }
    .proj-cta .btn { font-size: 0.85rem; padding: 12px 16px; }
    .proj-meta-item { gap: 10px; }
    .proj-meta-icon { width: 32px; height: 32px; }
    .full-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    .gallery-item-overlay { opacity: 1; background: rgba(0,0,0,0.2); }
    /* Make lightbox nav full-height strips on very small screens */
    .lb-prev, .lb-next { top: 0; transform: none; height: 100%; border-radius: 0; background: rgba(0,0,0,0.15); width: 40px; }
    .lb-prev svg, .lb-next svg { position: absolute; top: 50%; transform: translateY(-50%); }
}

/* ── Project card hover overlay (proekti.php) ── */
.project-page-card { position: relative; }
.proj-card-hover {
    position: absolute;
    inset: 0;
    background: rgba(17,20,24,0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.proj-card-hover svg { color: var(--gold); }
.project-page-card:hover .proj-card-hover { opacity: 1; }

/* Image count badge on card */
.proj-img-count {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.12);
}
.proj-img-count svg { color: var(--gold); }

/* Project card link text */
.proj-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 14px;
    transition: gap 0.2s;
}
.project-page-card:hover .proj-card-link { gap: 10px; }

/* ── Video badge on project cards ── */
.proj-video-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.12);
}
.proj-video-badge svg { color: var(--gold); }




/* Inactive project card overlay */
.project-page-card.inactive {
    opacity: 0.5;
    pointer-events: none;
}
.proj-inactive-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(239,68,68,0.9);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 100px;
}
