/* See styles.css; cache-busting build version: 2026-02-18-1 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
}

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

/* Navigation */
/* Alias the navbar styles to the existing `.header` so old pages keep working */
.navbar, .header {
    background: linear-gradient(135deg, #b9a770 0%, #d6c79b 55%, #e8dfc4 100%);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(184, 163, 104, 0.25);
    backdrop-filter: blur(6px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo { display: flex; align-items: center; gap: 0.75rem; color: #111827; font-size: 1.75rem; font-weight: 700; letter-spacing: -0.025em; }
.logo-icon { font-size: 2.25rem; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)); }

.nav-menu { display: flex; list-style: none; gap: 1rem; margin: 0; }
.nav-link { color: #111827; text-decoration: none; font-weight: 800; font-size: 1rem; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); padding: 0.5rem 0.6rem; border-radius: 12px; position: relative; backdrop-filter: blur(10px); white-space: nowrap; display: block; }

.nav-link::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05)); border-radius: 12px; opacity: 0; transition: opacity 0.3s ease; }
.nav-link:hover::before { opacity: 1; }
.nav-link:hover { color: #111827; transform: translateY(-2px); }
.nav-link.active { color: #111827; background: linear-gradient(135deg, rgba(17,24,39,0.08), rgba(17,24,39,0.04)); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 4px; }
.bar { width: 28px; height: 3px; background-color: #111827; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 3px; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle::after { content: '▾'; margin-left: .35rem; font-size: .9em; opacity: .8; }
.dropdown-menu { position: absolute; top: 100%; left: 0; min-width: 260px; background: linear-gradient(135deg, rgba(185,167,112,0.98) 0%, rgba(214,199,155,0.98) 55%, rgba(232,223,196,0.98) 100%); border: 1px solid rgba(255,255,255,0.28); border-radius: 12px; box-shadow: 0 16px 48px rgba(184,163,104,0.35); backdrop-filter: blur(8px); padding: .5rem; display: none; z-index: 1001; }
/* Homepage: dropdown menu follows beige/gold theme */
body:has(#home.hero) .dropdown-menu { background: linear-gradient(135deg, rgba(185,167,112,0.98) 0%, rgba(214,199,155,0.98) 55%, rgba(232,223,196,0.98) 100%); border-color: rgba(255,255,255,0.28); box-shadow: 0 16px 48px rgba(184,163,104,0.35); }
body:has(#home.hero) .dropdown-menu .nav-link { color: #111827; }
body:has(#home.hero) .dropdown-menu .nav-link:hover { background: rgba(17,24,39,0.08); color: #111827; }
#home ~ .header .dropdown-menu .nav-link { color: #111827; }
#home ~ .header .dropdown-menu .nav-link:hover { background: rgba(17,24,39,0.08); color: #111827; }
.dropdown-menu .nav-link { color: #111827; display: block; border-radius: 10px; padding: .6rem .8rem; }
.dropdown-menu .nav-link:hover { background: rgba(17,24,39,0.08); }
.dropdown:hover > .dropdown-menu { display: block; }
.dropdown.open > .dropdown-menu { display: block; }

/* Mobile/Tablet dropdown behavior when drawer is open */
@media (max-width: 1024px) {
    .dropdown-menu { position: static; box-shadow: none; border: none; background: transparent; padding: 0; display: none; }
    .dropdown.open .dropdown-menu { display: block; }
}

/* Support old markup with an image logo */
.logo-img { height: 40px; width: auto; display: block; }

/* Offset content below fixed header */
.header + * { margin-top: 80px; }

/* Hero Section */
.hero { background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 50%, #34495e 100%); color: white; padding: 8rem 2rem; display: flex; align-items: center; min-height: 80vh; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(52, 73, 94, 0.1) 0%, transparent 50%), radial-gradient(circle at 70% 80%, rgba(44, 62, 80, 0.1) 0%, transparent 50%); pointer-events: none; }
/* Homepage-only: lighten hero background where animation lives */
#home.hero { background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 50%, #e5e7eb 100%); }
#home.hero::before { background: radial-gradient(circle at 30% 20%, rgba(17, 24, 39, 0.06) 0%, transparent 55%), radial-gradient(circle at 70% 80%, rgba(55, 65, 81, 0.05) 0%, transparent 55%); }
/* Homepage-only: match header and mobile drawer to the call-button beige/gold gradient */
#home ~ .header, body:has(#home.hero) .header { background: linear-gradient(135deg, #b9a770 0%, #d6c79b 55%, #e8dfc4 100%); box-shadow: 0 8px 24px rgba(184, 163, 104, 0.25); }
/* Homepage: make menu text black for strong contrast on beige header */
body:has(#home.hero) .nav-link { color: #111827; font-weight: 800; text-shadow: none; letter-spacing: 0.01em; }
body:has(#home.hero) .nav-link:hover { color: #111827; }
/* Fallback for browsers without :has support when header follows #home in DOM */
#home ~ .header .nav-link { color: #111827; font-weight: 800; text-shadow: none; letter-spacing: 0.01em; }
#home ~ .header .nav-link:hover { color: #111827; }
body:has(#home.hero) .nav-link.active { background: linear-gradient(135deg, rgba(17,24,39,0.08), rgba(17,24,39,0.04)); color: #111827; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
#home ~ .header .nav-link.active { background: linear-gradient(135deg, rgba(17,24,39,0.08), rgba(17,24,39,0.04)); color: #111827; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
@media (max-width: 1024px) {
    body:has(#home.hero) .has-hamburger .nav-menu { background: linear-gradient(135deg, #b9a770 0%, #d6c79b 55%, #e8dfc4 100%); box-shadow: 0 20px 60px rgba(184, 163, 104, 0.35); }
    /* Make hamburger bars dark for contrast on homepage */
    body:has(#home.hero) .bar { background-color: #111827; }
}
/* Fallback dark bars when header follows #home */
#home ~ .header .bar { background-color: #111827; }
/* Improve text contrast on light hero */
#home .hero-title { background: linear-gradient(135deg, #111827 0%, #374151 50%, #1f2937 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
#home .hero-description { color: #4b5563; }

/* Global: give every H1 a hero-like full-width light background band (except homepage .hero-title) */
h1:not(.hero-title) {
    position: relative;
    z-index: 0;
    padding: 1.75rem 0 1.5rem;
    margin: 0 0 2rem;
    color: #111827;
    font-weight: 800;
    letter-spacing: -0.02em;
}
h1:not(.hero-title)::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: calc(100% + 2rem);
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 50%, #e5e7eb 100%);
    z-index: -1;
}
h1:not(.hero-title)::after {
    content: '';
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: calc(100% + 2rem);
    background: radial-gradient(circle at 30% 20%, rgba(17, 24, 39, 0.06) 0%, transparent 55%), radial-gradient(circle at 70% 80%, rgba(55, 65, 81, 0.05) 0%, transparent 55%);
    pointer-events: none;
    z-index: -1;
}

/* Explicit font-size for h1 inside section/article/nav/aside to avoid future UA changes.
    Use 2em to match current default, so visual size stays the same. */
section h1, article h1, nav h1, aside h1 { font-size: 2em; }

@media (max-width: 768px) {
    h1:not(.hero-title) { padding: 1.5rem 0 1.25rem; margin-bottom: 1.5rem; }
    h1:not(.hero-title)::before, h1:not(.hero-title)::after { top: -0.75rem; height: calc(100% + 1.5rem); }
}
.hero-content { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.hero-title { font-size: 3rem; font-weight: 800; margin-bottom: 2rem; line-height: 1.2; background: linear-gradient(135deg, #ffffff 0%, #bdc3c7 50%, #ffffff 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -0.02em; animation: heroFadeIn .8s ease-out .15s both; word-break: break-word; overflow-wrap: anywhere; hyphens: auto; }

/* Homepage-specific: keep words intact and widen title area */
#home .hero-title { word-break: normal; overflow-wrap: normal; -webkit-hyphens: none; hyphens: manual; }
@keyframes heroFadeIn { from { opacity: 0; transform: translateY(12px); filter: blur(2px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@media (prefers-reduced-motion: reduce) { .hero-title { animation: none; } }
.hero-description { font-size: 1.375rem; margin-bottom: 2.5rem; opacity: 0.95; line-height: 1.7; color: rgba(255, 255, 255, 0.9); }
.hero-buttons { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.floating-key { display:block; max-width: 420px; width: 100%; height: auto; opacity: 0.9; animation: float 4s ease-in-out infinite; filter: drop-shadow(0 12px 36px rgba(0,0,0,0.35)); border-radius: 16px; }
@keyframes float { 0%, 100% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-30px) rotate(8deg); } }
.hero-image { position: relative; display: grid; place-items: center; }
.hero-image .lock-back { position: absolute; max-width: 540px; width: 100%; height: auto; opacity: 1; filter: blur(0.3px) drop-shadow(0 8px 24px rgba(0,0,0,0.3)); transform-origin: center; animation: lockFloat 6.5s ease-in-out infinite; }
    .hero-image .lock-back { position: absolute; max-width: 540px; width: 100%; height: auto; opacity: 1; filter: blur(0.3px) drop-shadow(0 8px 24px rgba(0,0,0,0.3)); transform-origin: center; animation: lockFloat 6.5s ease-in-out infinite; z-index: -1; pointer-events: none; }
@keyframes lockFloat { 0% { transform: translateY(4px) rotate(-6deg) scale(0.96); } 50% { transform: translateY(-6px) rotate(6deg) scale(1.06); } 100% { transform: translateY(4px) rotate(-6deg) scale(0.96); } }

/* Sync phases: key goes up while lock goes down slightly for parallax feel */
#home .floating-key { animation: keyParallax 4.8s ease-in-out infinite; }
@keyframes keyParallax { 0% { transform: translateY(0) rotate(0deg) scale(1); } 25% { transform: translateY(-22px) rotate(6deg) scale(1.02); } 50% { transform: translateY(0) rotate(0deg) scale(1); } 75% { transform: translateY(12px) rotate(-4deg) scale(0.99); } 100% { transform: translateY(0) rotate(0deg) scale(1); } }

@media (prefers-reduced-motion: reduce) {
    .hero-image .lock-back, #home .floating-key { animation: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 1.25rem 2.5rem; border-radius: 16px; text-decoration: none; font-weight: 600; font-size: 1.1rem; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; border: none; position: relative; overflow: hidden; letter-spacing: 0.025em; }
.btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.6s ease; }
.btn:hover::before { left: 100%; }
.btn-primary { background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); color: white; box-shadow: 0 8px 32px rgba(44, 62, 80, 0.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(44, 62, 80, 0.5); background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%); }
.btn-secondary { background: rgba(255, 255, 255, 0.1); color: white; border: 2px solid rgba(255, 255, 255, 0.3); backdrop-filter: blur(20px); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.5); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.2); }
/* Homepage: improve contrast of secondary button on light hero */
#home .btn-secondary { color: #1f2937; border-color: rgba(17, 24, 39, 0.35); background: rgba(255,255,255,0.65); }
#home .btn-secondary:hover { background: rgba(255,255,255,0.9); border-color: rgba(17, 24, 39, 0.55); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }

/* Homepage hero: primary button uses beige/gold palette */
#home .btn-primary { background: linear-gradient(135deg, #b9a770 0%, #d6c79b 55%, #e8dfc4 100%); color: #111827; box-shadow: 0 10px 30px rgba(184,163,104,0.28); border: 1px solid rgba(17,24,39,0.12); }
#home .btn-primary:hover { background: linear-gradient(135deg, #ad9a62 0%, #ccb981 55%, #e1d6b7 100%); box-shadow: 0 18px 48px rgba(184,163,104,0.4); }

/* Homepage products section: match CTA button color */
#products .btn-primary { background: linear-gradient(135deg, #b9a770 0%, #d6c79b 55%, #e8dfc4 100%); color: #111827; box-shadow: 0 10px 30px rgba(184,163,104,0.28); border: 1px solid rgba(17,24,39,0.12); }
#products .btn-primary:hover { background: linear-gradient(135deg, #ad9a62 0%, #ccb981 55%, #e1d6b7 100%); box-shadow: 0 18px 48px rgba(184,163,104,0.4); }

/* Accent button for EIS/services on product detail pages */
.btn-eis { background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%); color: #fff; box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35); border: none; }
.btn-eis:hover { transform: translateY(-3px); box-shadow: 0 18px 48px rgba(37, 99, 235, 0.45); background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%); }
.btn-eis:focus { outline: 3px solid rgba(37, 99, 235, 0.5); outline-offset: 2px; }

/* Product pages: align primary buttons with beige/gold palette */
.product-detail .btn-primary { background: linear-gradient(135deg, #b9a770 0%, #d6c79b 55%, #e8dfc4 100%); color: #111827; box-shadow: 0 10px 30px rgba(184,163,104,0.28); border: 1px solid rgba(17,24,39,0.12); }
.product-detail .btn-primary:hover { background: linear-gradient(135deg, #ad9a62 0%, #ccb981 55%, #e1d6b7 100%); box-shadow: 0 18px 48px rgba(184,163,104,0.4); }

/* Services Section */
.services { padding: 8rem 0; background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%); }
/* Tighter top spacing on homepage sections */
#services.services { padding-top: 4rem; padding-bottom: 4rem; }
#products.services { padding-top: 4rem; }
/* Tighter top spacing for Videos on homepage */
#videos.videos { padding-top: 4rem; }
.section-title { text-align: center; font-size: 3rem; font-weight: 800; margin-bottom: 4rem; color: #2c3e50; position: relative; letter-spacing: -0.02em; }
.section-title::after { content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 100px; height: 5px; background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); border-radius: 3px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.service-card { background: #ffffff; padding: 3rem; border-radius: 24px; box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); text-align: center; border: 1px solid rgba(17, 24, 39, 0.08); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(135deg, #e7dbc1 0%, #d4c19a 100%); transform: scaleX(0); transition: transform 0.4s ease; }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-12px); box-shadow: 0 32px 80px rgba(15, 23, 42, 0.12); border-color: rgba(212, 193, 154, 0.5); }
.service-card.card-clickable { cursor: pointer; }
.service-card.card-clickable:focus { outline: 3px solid rgba(17,24,39,0.25); outline-offset: 4px; }
.service-icon { font-size: 2rem; margin-bottom: 2rem; position: relative; display: inline-grid; place-items: center; width: 92px; height: 92px; color: #1f2937; filter: none; }
.service-icon::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f3ead7 0%, #e2d4b8 50%, #cfbd96 100%); box-shadow: inset 0 6px 18px rgba(255,255,255,0.45), 0 8px 24px rgba(17, 24, 39, 0.1); z-index: -1; }
.service-card h3 { font-size: 1.75rem; font-weight: 800; margin-bottom: 1.25rem; color: #1f2937; letter-spacing: -0.01em; }
.service-card p { color: #6b7280; margin-bottom: 2rem; line-height: 1.7; font-size: 1.1rem; }
.service-link { color: #2c3e50; text-decoration: none; font-weight: 600; font-size: 1.1rem; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 0.5rem; }
.service-link:hover { color: #34495e; transform: translateX(8px); }

/* Homepage: make "Детальніше →" look like primary buttons */
#services .service-link, #products .service-link {
    background: linear-gradient(135deg, #b9a770 0%, #d6c79b 55%, #e8dfc4 100%);
    color: #111827;
    border: 1px solid rgba(17,24,39,0.12);
    border-radius: 16px;
    padding: 0.9rem 1.6rem;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(184,163,104,0.28);
}
#services .service-link:hover, #products .service-link:hover {
    background: linear-gradient(135deg, #ad9a62 0%, #ccb981 55%, #e1d6b7 100%);
    color: #111827;
    transform: translateY(-3px);
    box-shadow: 0 18px 48px rgba(184,163,104,0.4);
}
#services .service-link:focus, #products .service-link:focus { outline: 3px solid rgba(17,24,39,0.25); outline-offset: 2px; }

/* Force 2-up layout for homepage services */
@media (min-width: 900px){
    #services.services .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Homepage: remove bullets for 'Додаткові роботи' list */
#services .service-card[data-service="additional"] ul { list-style: none; padding-left: 0; margin: 0; }
#services .service-card[data-service="additional"] li { padding-left: 0; }
#services .service-card[data-service="additional"] .service-link { margin-top: 1rem; }

/* Features */
.features { padding: 8rem 0; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
.feature { text-align: center; padding: 3rem; background: white; border-radius: 20px; box-shadow: 0 12px 40px rgba(44, 62, 80, 0.08); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid rgba(44, 62, 80, 0.05); }
.feature:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(44, 62, 80, 0.12); }
.feature-icon { font-size: 3rem; margin-bottom: 1.5rem; filter: drop-shadow(0 4px 8px rgba(44, 62, 80, 0.1)); }
.feature h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; color: #2c3e50; }
.feature p { color: #6b7280; line-height: 1.6; font-size: 1.05rem; }

/* Product images inside cards */
.product-img { width: 100%; height: 200px; object-fit: contain; object-position: center; border-radius: 16px; margin-bottom: 1rem; box-shadow: 0 8px 24px rgba(44,62,80,.08); background: #fff; padding: 8px; }
@media (max-width: 480px) { .product-img { height: 160px; } }

/* Mercedes block */
.mercedes-info { padding: 8rem 0; background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%); color: white; text-align: center; position: relative; overflow: hidden; }
/* Homepage-only: match Mercedes section to light gray hero */
body:has(#home.hero) .mercedes-info { background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 60%, #e5e7eb 100%); color: #1f2937; }
body:has(#home.hero) .mercedes-info h2 { -webkit-text-fill-color: initial; background: none; color: #111827; }
body:has(#home.hero) .mercedes-logo { filter: drop-shadow(0 8px 24px rgba(17,24,39,0.12)); }
.mercedes-info::after { content: none !important; }
.mercedes-info > .container { position: relative; z-index: 1; }
@keyframes keySpin { from { transform: translateY(-50%) rotate(0deg); } to { transform: translateY(-50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mercedes-info::after { animation: none; } }
.mercedes-info > .container { position: relative; z-index: 1; }
.mercedes-logo { display:inline-block; width: 140px; height: auto; margin-bottom: 2rem; filter: drop-shadow(0 8px 32px rgba(0,0,0,0.3)); animation: mb-float 6s ease-in-out infinite; }
@keyframes mb-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.mercedes-info h2 { font-size: 3rem; font-weight: 800; margin-bottom: 2rem; background: linear-gradient(135deg, #ffffff 0%, #bdc3c7 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mercedes-info p { font-size: 1.25rem; max-width: 800px; margin: 0 auto; opacity: 0.9; line-height: 1.7; }

/* CTA */
.cta { padding: 8rem 0; background: linear-gradient(135deg, #b9a770 0%, #d6c79b 55%, #e8dfc4 100%); color: #1f2937; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 70%, rgba(17,24,39,0.06) 0%, transparent 60%), radial-gradient(circle at 70% 30%, rgba(17,24,39,0.04) 0%, transparent 55%); pointer-events: none; }
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { font-size: 3rem; font-weight: 800; margin-bottom: 1.5rem; letter-spacing: -0.02em; color: #111827; }
.cta-content p { font-size: 1.375rem; margin-bottom: 3rem; opacity: 0.95; color: #374151; }
/* CTA button matches beige/gold palette */
.cta .btn-primary { background: linear-gradient(135deg, #b9a770 0%, #d6c79b 55%, #e8dfc4 100%); color: #111827; box-shadow: 0 10px 30px rgba(184,163,104,0.28); border: 1px solid rgba(17,24,39,0.12); }
.cta .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 48px rgba(184,163,104,0.4); background: linear-gradient(135deg, #ad9a62 0%, #ccb981 55%, #e1d6b7 100%); }

/* Footer */
.footer { background: linear-gradient(135deg, #b9a770 0%, #d6c79b 55%, #e8dfc4 100%); color: #1f2937; padding: 5rem 0 2rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-section h3, .footer-section h4 { margin-bottom: 1.5rem; color: #111827; font-weight: 800; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.75rem; }
.footer-section a { color: #374151; text-decoration: none; transition: color 0.2s ease; font-weight: 600; }
.footer-section a:hover { color: #111827; }
.footer-bottom { border-top: 1px solid rgba(17, 24, 39, 0.12); padding-top: 2rem; text-align: center; color: #4b5563; }

/* Ensure footer sections are in one row on desktop */
@media (min-width: 1024px) {
    .footer-content { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; max-width: 1100px; }
    .hero-title { font-size: 2.5rem; }
    .page-title { font-size: 2.2rem; }
    /* Reduce hero top padding on tablets */
    .hero { padding-top: 5.5rem; padding-bottom: 4rem; }
    /* Ensure the lock image sits below buttons and doesn't overlap text */
    #home .hero-image { max-width: 560px; margin: 0.5rem auto 0; }
    #home .hero-image .lock-back {
        position: static;
        display: block;
        max-width: 68%;
        width: 100%;
        height: auto;
        margin: 0.5rem auto 0;
        z-index: 0;
        animation: lockMobileFloat 5.5s ease-in-out infinite;
        transform-origin: center;
        will-change: transform;
        filter: drop-shadow(0 8px 22px rgba(0,0,0,0.22));
    }
}

@media (max-width: 1024px) {
    /* Enable drawer on tablets and phones */
    .has-hamburger .nav-menu { position: fixed; left: -100%; top: 80px; flex-direction: column; background: linear-gradient(135deg, #b9a770 0%, #d6c79b 55%, #e8dfc4 100%); width: 100%; text-align: center; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 20px 60px rgba(184, 163, 104, 0.35); padding: 2rem 0 2.5rem; backdrop-filter: blur(20px); max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
    .has-hamburger .nav-menu.active { left: 0; }
    .has-hamburger .hamburger { display: flex; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .hero { padding: 5rem 1rem; }
    /* Reduce extra space under the animated image on homepage */
    #home.hero { padding-bottom: 3.25rem; }
    #home .hero-content { grid-template-columns: 1fr; }
    #home .hero-image { max-width: 520px; margin: 0 auto; }
    #home .hero-title { word-break: normal; overflow-wrap: normal; }
    /* Center the CTA buttons on tablets */
    .hero-buttons { justify-content: center; }
    .hero-title { font-size: 2.1rem; }
    .page-title { font-size: 1.9rem; }
    .section-title { font-size: 2.25rem; }
    .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .hero-title { font-size: 1.8rem; }
    #home .hero-image { max-width: 420px; }
    #home .hero-title { word-break: normal; overflow-wrap: normal; }
    .page-title { font-size: 1.4rem; line-height: 1.3; }
    .post h2 { font-size: 1.35rem; margin: 1.75rem 0 0.75rem; }
    .section-title { font-size: 2rem; }
    .service-card { padding: 2rem; }
    .btn { padding: 1rem 2rem; font-size: 1rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
}

/* Subtle mobile animation for lock image */
@keyframes lockMobileFloat {
    0%   { transform: translateY(0) rotate(-1deg) scale(1); }
    50%  { transform: translateY(-8px) rotate(1deg) scale(1.02); }
    100% { transform: translateY(0) rotate(-1deg) scale(1); }
}

/* Homepage hero image: mobile presentation */
@media (max-width: 600px) {
    #home .hero-image { max-width: 360px; }
    #home .hero-image .lock-back {
        position: static; /* avoid overlap */
        display: block;
        max-width: 72%;
        width: 100%;
        height: auto;
        margin: 0.25rem auto 0; /* small gap under title/buttons */
        animation: lockMobileFloat 4.8s ease-in-out infinite;
        transform-origin: center; 
        will-change: transform;
        filter: drop-shadow(0 6px 18px rgba(0,0,0,0.22));
    }
    #home.hero { padding: 4.25rem 1rem 3.25rem; }
}

/* Smooth scrolling and focus */
html { scroll-behavior: smooth; }
.btn:focus, input:focus, select:focus, textarea:focus { outline: 3px solid rgba(44, 62, 80, 0.5); outline-offset: 2px; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%); }

/* Contact Page (ported from project 10) */
.contact-hero { background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 50%, #e5e7eb 100%); color: #111827; padding: 3.5rem 2rem 4rem; text-align: center; position: relative; overflow: hidden; }
.contact-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(17, 24, 39, 0.06) 0%, transparent 55%), radial-gradient(circle at 70% 80%, rgba(55, 65, 81, 0.05) 0%, transparent 55%); }
/* Avoid duplicate light band behind title inside the light hero */
.contact-hero h1::before, .contact-hero h1::after { content: none; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; margin-top: 4rem; }
.contact-card { background: white; padding: 3rem; border-radius: 24px; box-shadow: 0 20px 60px rgba(44, 62, 80, 0.08); text-align: center; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid rgba(44, 62, 80, 0.1); position: relative; overflow: hidden; }
.contact-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); transform: scaleX(0); transition: transform 0.4s ease; }
.contact-card:hover::before { transform: scaleX(1); }
.contact-card:hover { transform: translateY(-8px); box-shadow: 0 32px 80px rgba(44, 62, 80, 0.15); }
.contact-icon { font-size: 3.5rem; margin-bottom: 2rem; filter: drop-shadow(0 4px 12px rgba(44, 62, 80, 0.2)); }
.contact-card h3 { color: #2c3e50; font-weight: 700; margin-bottom: 1.5rem; font-size: 1.375rem; }
.contact-card p { color: #6b7280; font-weight: 500; margin-bottom: 0.75rem; font-size: 1.05rem; }
.contact-card .phone-link { color: #2c3e50; text-decoration: none; }
.contact-card .phone-link:hover { text-decoration: underline; }
.contact-card small { color: #9ca3af; font-size: 0.95rem; }

/* Social card */
.social-card .social-icons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
.social-card .social-link { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .75rem; border: 1px solid rgba(44,62,80,.12); border-radius: 999px; color: #2c3e50; text-decoration: none; background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.social-card .social-link:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(44,62,80,.12); border-color: rgba(44,62,80,.2); }
.social-card .social-link img { display: block; width: 24px; height: 24px; }

/* Ensure long emails/links don't overflow and align them left */
.contact-email { text-align: left; word-break: break-word; overflow-wrap: anywhere; margin-left: 0; white-space: nowrap; }
.email-card { padding: 2.25rem 2rem; }
@media (max-width: 420px){
    .contact-email { white-space: normal; }

/* Mobile: center email text inside the email contact card */
@media (max-width: 640px){
    .email-card .contact-email { text-align: center; margin-left: auto; margin-right: auto; white-space: normal; }
}
}

.contact-form-section { padding: 8rem 0; background: white; }
.form-content { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.form-info h2 { color: #2c3e50; font-size: 2.5rem; font-weight: 800; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.form-info p { color: #6b7280; margin-bottom: 3rem; line-height: 1.7; font-size: 1.1rem; }
.form-benefits { display: flex; flex-direction: column; gap: 1.5rem; }
.benefit { display: flex; align-items: center; gap: 1.5rem; }
.benefit-icon { background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; box-shadow: 0 4px 16px rgba(44, 62, 80, 0.3); }
.benefit span:last-child { font-weight: 600; color: #2c3e50; font-size: 1.1rem; }
.contact-form { background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%); padding: 3rem; border-radius: 24px; box-shadow: 0 20px 60px rgba(44, 62, 80, 0.08); border: 1px solid rgba(44, 62, 80, 0.1); }
.form-group { margin-bottom: 2rem; }
.form-group label { display: block; margin-bottom: 0.75rem; font-weight: 600; color: #2c3e50; font-size: 1.05rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 1.25rem; border: 2px solid rgba(44, 62, 80, 0.2); border-radius: 12px; font-size: 1rem; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); background: white; color: #2c3e50; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #2c3e50; box-shadow: 0 0 0 4px rgba(44, 62, 80, 0.1); transform: translateY(-2px); }

/* FAQ Page basics */
.faq-section { margin-bottom: 4rem; }
.faq-hero { padding: 3rem 0 3rem; text-align: center; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); }
.faq-hero .page-title { background: none; -webkit-text-fill-color: #2c3e50; color: #2c3e50; }
.faq-hero .page-subtitle { color: #6b7280; }
.faq-section .faq-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; }
.faq-categories { display: flex; flex-direction: column; gap: .75rem; position: sticky; top: 6rem; align-self: start; }
.faq-cat { padding: .75rem 1rem; border: 2px solid #e5e7eb; background: #fff; border-radius: 12px; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; font-weight: 700; color: #2c3e50; }
.faq-cat.active, .faq-cat:hover { border-color: #2c3e50; background: #f3f4f6; }
.faq-content { display: flex; flex-direction: column; gap: 1.25rem; }
.faq-search input { width: 100%; padding: 1rem 1.1rem 1rem 2.75rem; border: 2px solid #e5e7eb; border-radius: 14px; font-size: 1rem; transition: all .2s ease; background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%236b7280" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>') no-repeat 12px center; }
.faq-search input:focus { border-color: #2c3e50; box-shadow: 0 0 0 4px rgba(44,62,80,.08); outline: none; }
.accordion { display: flex; flex-direction: column; gap: 1rem; }
.accordion-item { background: #fff; border-radius: 14px; box-shadow: 0 8px 24px rgba(44,62,80,.08); overflow: hidden; border: 1px solid rgba(44,62,80,.08); }
.accordion-header { width: 100%; text-align: left; background: none; border: none; padding: 1.1rem 1.25rem; font-weight: 700; color: #2c3e50; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.accordion-header:hover { background: linear-gradient(135deg, rgba(44,62,80,.03), rgba(44,62,80,.06)); }
.accordion-header::after { content: "▾"; font-size: 1.1rem; color: #6b7280; transition: transform .2s ease; }
.accordion-item.open .accordion-header::after { transform: rotate(-180deg); }
.accordion-body { padding: 0 1.25rem; max-height: 0; overflow: hidden; transition: max-height .3s ease; color: #4b5563; }
.accordion-item.open .accordion-body { padding: 0 1.25rem 1rem; }
.accordion-body p { margin: 1rem 0 0; line-height: 1.7; }
@media (max-width: 900px){
    .faq-section .faq-layout { grid-template-columns: 1fr; }
    /* Turn categories into horizontal scroll pills and remove sticky to avoid overlap */
    .faq-categories { position: static; top: auto; flex-direction: row; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1rem; -webkit-overflow-scrolling: touch; }
    .faq-categories::-webkit-scrollbar { display: none; }
    .faq-cat { flex: 0 0 auto; white-space: nowrap; }
    /* Tighten gaps and improve wrapping for long questions */
    .accordion { gap: .75rem; }
    .accordion-header { font-size: 1rem; line-height: 1.4; }
}

/* Contact quick helpers */
.contact-info .contact-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 1.25rem; }
.contact-form-section .form-content { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px){ .contact-form-section .form-content { grid-template-columns: 1fr; } }

/* --- Page hero (from project 10) --- */
.contact-map { padding: 2rem 0 0; }
.contact-map .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.contact-map .map-embed { display: block; width: 100%; height: 420px; border: 0; border-radius: 16px; box-shadow: 0 12px 40px rgba(44,62,80,.12); }
@media (max-width: 600px){ .contact-map .map-embed { height: 300px; } }

.page-hero { background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 50%, #e5e7eb 100%); color: #111827; padding: 3.5rem 2rem 4rem; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(17, 24, 39, 0.06) 0%, transparent 55%), radial-gradient(circle at 70% 80%, rgba(55, 65, 81, 0.05) 0%, transparent 55%); }
.page-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 1.5rem; color: #111827; -webkit-text-fill-color: initial; background: none; position: relative; z-index: 1; line-height: 1.25; word-break: normal; overflow-wrap: break-word; -webkit-hyphens: none; hyphens: none; }
.page-subtitle { font-size: 1.375rem; opacity: .95; max-width: 700px; margin: 0 auto; position: relative; z-index: 1; color: #374151; }
/* Avoid double background bands for H1 inside page hero */
.page-hero h1::before, .page-hero h1::after { content: none; }

/* Compact hero modifier (used on blog page) */
.page-hero.compact-hero { padding: 2.625rem 2rem 3.5rem; }
.page-hero.compact-hero .page-title { margin-bottom: 1rem; }

/* --- Repair page styles (from project 10) --- */
.repair-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 2.5rem; }
.repair-card { background: #fff; padding: 3rem; border-radius: 24px; box-shadow: 0 20px 60px rgba(44,62,80,.08); transition: all .4s cubic-bezier(.4,0,.2,1); border-left: 6px solid #2c3e50; position: relative; overflow: hidden; }
.repair-card::before { content: ""; position: absolute; top: 0; right: 0; width: 100px; height: 100px; background: radial-gradient(circle, rgba(44,62,80,.1) 0%, transparent 70%); border-radius: 50%; transform: translate(30px, -30px); }
.repair-card:hover { transform: translateY(-12px); box-shadow: 0 32px 80px rgba(44,62,80,.15); border-left-color: #34495e; }
.repair-icon { font-size: 3.5rem; margin-bottom: 2rem; text-align: center; filter: drop-shadow(0 4px 12px rgba(44,62,80,.2)); }
.repair-card h3 { font-size: 1.75rem; font-weight: 700; margin-bottom: 1.5rem; color: #2c3e50; letter-spacing: -0.01em; }
.repair-card p { color: #6b7280; margin-bottom: 2rem; line-height: 1.7; font-size: 1.05rem; }
.repair-card ul { list-style: none; margin-bottom: 2rem; }
.repair-card li { padding: .75rem 0 .75rem 2rem; position: relative; color: #2c3e50; font-size: 1.05rem; border-bottom: 1px solid rgba(44,62,80,.1); }
.repair-card li:last-child { border-bottom: none; }
.repair-card li::before { content: '•'; position: absolute; left: 0; color: #2c3e50; font-weight: 700; font-size: 1.2rem; }
.repair-price { font-size: 1.5rem; font-weight: 800; color: #2c3e50; text-align: center; padding: 1rem; background: linear-gradient(135deg, rgba(44,62,80,.1) 0%, rgba(52,73,94,.1) 100%); border-radius: 12px; border: 2px solid rgba(44,62,80,.1); }

.repair-process { padding: 8rem 0; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); }
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
.step { background: #fff; padding: 3rem; border-radius: 20px; box-shadow: 0 12px 40px rgba(44,62,80,.08); text-align: center; position: relative; transition: all .3s ease; }
.step:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(44,62,80,.12); }
.step-number { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 50px; height: 50px; background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.5rem; box-shadow: 0 8px 24px rgba(44,62,80,.3); }
.step h3 { margin-top: 1.5rem; margin-bottom: 1rem; color: #2c3e50; font-weight: 700; font-size: 1.25rem; }

/* --- FBS3 info section --- */
.fbs-info { padding: 3rem 0 6rem; background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%); }
.fbs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.fbs-card { background: #fff; padding: 2rem; border-radius: 20px; box-shadow: 0 16px 48px rgba(44,62,80,.08); border: 1px solid rgba(44,62,80,.08); transition: transform .3s ease, box-shadow .3s ease; }
.fbs-card:hover { transform: translateY(-6px); box-shadow: 0 24px 72px rgba(44,62,80,.12); }
.fbs-icon { width: 54px; height: 54px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); box-shadow: 0 8px 24px rgba(44,62,80,.25); margin-bottom: 1rem; }
.fbs-card h3 { font-size: 1.25rem; color: #2c3e50; margin-bottom: .75rem; font-weight: 700; }
.fbs-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; color: #4b5563; }
.fbs-list li { position: relative; padding-left: 1.25rem; }
.fbs-list li::before { content: '•'; position: absolute; left: 0; top: 0; color: #2c3e50; font-weight: 700; }
.fbs-steps { margin-left: 1rem; color: #4b5563; display: grid; gap: .35rem; }
.fbs-steps li { padding-left: .25rem; }

/* --- Programming page styles (from project 10) --- */
.programming-services { padding: 4rem 0 8rem; background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%); }
.programming-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2.5rem; }
.programming-card { background: #fff; padding: 3rem; border-radius: 24px; box-shadow: 0 20px 60px rgba(44,62,80,.08); transition: all .4s cubic-bezier(.4,0,.2,1); border-left: 6px solid #2c3e50; position: relative; overflow: hidden; }
.programming-card::before { content: ""; position: absolute; top: 0; right: 0; width: 100px; height: 100px; background: radial-gradient(circle, rgba(44,62,80,.1) 0%, transparent 70%); border-radius: 50%; transform: translate(30px, -30px); }
.programming-card:hover { transform: translateY(-12px); box-shadow: 0 32px 80px rgba(44,62,80,.15); border-left-color: #34495e; }
.programming-icon { font-size: 3.2rem; margin-bottom: 1.25rem; text-align: center; filter: drop-shadow(0 4px 12px rgba(44,62,80,.2)); }
.programming-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; color: #2c3e50; letter-spacing: -0.01em; }
.programming-card p { color: #6b7280; margin-bottom: 1.25rem; line-height: 1.7; font-size: 1.05rem; }
.programming-card ul { list-style: none; margin-bottom: 1.5rem; }
.programming-card li { padding: .6rem 0 .6rem 1.5rem; position: relative; color: #2c3e50; font-size: 1.02rem; border-bottom: 1px solid rgba(44,62,80,.08); }
.programming-card li:last-child { border-bottom: none; }
.programming-card li::before { content: '•'; position: absolute; left: 0; color: #2c3e50; font-weight: 700; }
.programming-price { font-size: 1.1rem; font-weight: 800; color: #2c3e50; text-align: center; padding: .75rem 1rem; background: linear-gradient(135deg, rgba(44,62,80,.08) 0%, rgba(52,73,94,.08) 100%); border-radius: 12px; border: 2px solid rgba(44,62,80,.08); }

.programming-process { padding: 8rem 0; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); }
.process-timeline { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.timeline-item { position: relative; background: #fff; border-radius: 16px; padding: 1.5rem 1.5rem 1.5rem 4rem; box-shadow: 0 12px 40px rgba(44,62,80,.08); border: 1px solid rgba(44,62,80,.06); }
.timeline-icon { position: absolute; left: 1rem; top: 1.25rem; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); color: #fff; box-shadow: 0 8px 24px rgba(44,62,80,.25); font-size: 1.1rem; }
.timeline-content h3 { margin: 0 0 .25rem; font-size: 1.2rem; color: #2c3e50; }
.timeline-content p { margin: 0; color: #4b5563; line-height: 1.6; }

.supported-systems { padding: 8rem 0; background: #fff; }
.systems-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.system-card { background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); border: 1px solid rgba(44,62,80,.08); border-radius: 16px; padding: 1.5rem; box-shadow: 0 12px 32px rgba(44,62,80,.06); }
.system-card h3 { color: #2c3e50; margin-bottom: .25rem; font-size: 1.15rem; }
.system-card p { color: #6b7280; margin-bottom: .75rem; }
.system-features { display: flex; flex-wrap: wrap; gap: .5rem; }
.feature-tag { display: inline-block; padding: .35rem .6rem; background: rgba(44,62,80,.06); color: #2c3e50; border: 1px solid rgba(44,62,80,.12); border-radius: 999px; font-size: .85rem; font-weight: 600; }

.equipment { padding: 8rem 0; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); }
.equipment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.equipment-item { background: #fff; border: 1px solid rgba(44,62,80,.08); border-radius: 14px; padding: 1.25rem; box-shadow: 0 8px 24px rgba(44,62,80,.06); }
.equipment-item h3 { color: #2c3e50; margin-bottom: .35rem; font-size: 1.1rem; }
.equipment-item p { color: #4b5563; margin: 0; }

/* Videos section */
.videos { padding: 6rem 0; background: #fff; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.video-wrapper { position: relative; width: 100%; padding-top: 56.25%; /* 16:9 */ border-radius: 20px; overflow: hidden; box-shadow: 0 16px 48px rgba(44,62,80,.10); border: 1px solid rgba(44,62,80,.10); background: #000; transform: translateZ(0); transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s cubic-bezier(.4,0,.2,1), border-color .35s ease; }
.video-wrapper::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 80% at 50% 50%, rgba(255,255,255,.08) 0%, transparent 70%); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.video-wrapper:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 28px 84px rgba(44,62,80,.18); border-color: rgba(44,62,80,.18); }
.video-wrapper:hover::after { opacity: 1; }
.video-wrapper iframe, .video-wrapper video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videos .section-title { margin-bottom: 2rem; }
@media (max-width: 900px){ .video-grid { grid-template-columns: 1fr; gap: 1.25rem; } }

/* Article styles */
.article { padding: 4rem 0 6rem; background: #fff; }
.post { max-width: 820px; margin: 0 auto; font-size: 1.08rem; color: #374151; line-height: 1.85; }
.post-figure { margin: 1rem 0 2rem; text-align: center; }
.post-image { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 12px 40px rgba(44,62,80,.12); }
.post-image--half { width: 65%; display: block; margin: 0 auto; }
.post-figure figcaption { color: #6b7280; font-size: .95rem; margin-top: .5rem; }
.post-back { display: inline-flex; align-items: center; gap: .35rem; color: #2c3e50; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; margin: .25rem 0 1rem; }
.post-back:hover { border-color: rgba(44,62,80,.35); }
.post-image-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 640px){ .post-image-row { grid-template-columns: 1fr; } }
.post h2 { color: #1f2937; font-size: 1.75rem; margin: 2rem 0 1rem; }
.post-sep { border: 0; height: 1px; background: linear-gradient(90deg, rgba(44,62,80,.12), rgba(44,62,80,.04)); margin: 2rem 0; }
.post-list { margin: 0 0 1rem 1.25rem; }
.post-list li { margin: .35rem 0; }

/* Center single embedded video within post */
.post .video-grid--single { display: grid; grid-template-columns: 1fr; justify-items: center; max-width: 820px; margin: 1.5rem auto 1.25rem; }
.post .video-grid--single .video-wrapper { width: 100%; }

/* Extra spacing above the bottom "back to articles" link */
.post > p:last-child { margin-top: 1.5rem; }
.image-placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f3f4f6, #e5e7eb); color: #6b7280; border: 1px dashed #d1d5db; border-radius: 12px; height: 220px; font-weight: 600; }

/* Blog listing */
.blog-section { padding: 4rem 0 6rem; background: #fff; }
.blog-filters { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.blog-filter { padding: .6rem .9rem; border: 1px solid rgba(44,62,80,.15); background: #fff; color: #2c3e50; border-radius: 999px; font-weight: 600; cursor: pointer; transition: background .2s ease, box-shadow .2s ease, transform .2s ease; }
.blog-filter:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(44,62,80,.10); }
.blog-filter.active { background: linear-gradient(135deg, #b9a770 0%, #d6c79b 55%, #e8dfc4 100%); color: #111827; border-color: rgba(17,24,39,0.12); box-shadow: 0 10px 30px rgba(184,163,104,0.22); }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.blog-card { background: #fff; border: 1px solid rgba(44,62,80,.10); border-radius: 20px; overflow: hidden; box-shadow: 0 12px 36px rgba(44,62,80,.08); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 22px 64px rgba(44,62,80,.16); border-color: rgba(44,62,80,.18); }

.blog-image { display: block; position: relative; background: linear-gradient(135deg, #b9a770 0%, #d6c79b 55%, #e8dfc4 100%); }
/* Subtle texture overlay to add depth on beige/gold background */
.blog-image::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(17,24,39,0.06) 0%, transparent 55%), radial-gradient(circle at 70% 80%, rgba(55,65,81,0.05) 0%, transparent 55%); pointer-events: none; }
.blog-image .blog-placeholder { display: flex; align-items: center; justify-content: center; height: 200px; color: #111827; font-size: 3rem; letter-spacing: .05em; background: none; position: relative; z-index: 1; }
.blog-content { padding: 1rem 1.1rem 1.25rem; }
.blog-meta { display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem; min-height: 1.25rem; }
.blog-category { display: inline-block; padding: .25rem .6rem; background: rgba(44,62,80,.06); color: #2c3e50; border: 1px solid rgba(44,62,80,.12); border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.blog-content h3 { margin: .35rem 0 .35rem; font-size: 1.15rem; letter-spacing: -0.01em; }
.blog-content h3 a { color: #1f2937; text-decoration: none; }
.blog-content p { color: #4b5563; margin: 0 0 .75rem; }
.blog-read-more { display: inline-flex; align-items: center; gap: .25rem; color: #2c3e50; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; }
.blog-read-more:hover { border-color: rgba(44,62,80,.35); }

.blog-pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 2rem; }
.pagination-btn { padding: .6rem .9rem; border: 1px solid rgba(44,62,80,.15); background: #fff; color: #2c3e50; border-radius: 12px; font-weight: 700; }

/* Spacing tweak: promo video on blog page */
#promo-video{ margin-top:0; padding-top:8px; }
#promo-video .section-title{ margin-top:0; margin-bottom:12px; }

/* Floating animation for visit card on CTA */
.floating-card {
    animation: floatCard 5.5s ease-in-out infinite;
    will-change: transform;
}
@keyframes floatCard {
    0%   { transform: translateY(0) rotate(-2deg); }
    25%  { transform: translateY(-12px) rotate(0deg); }
    50%  { transform: translateY(0) rotate(2deg); }
    75%  { transform: translateY(-12px) rotate(0deg); }
    100% { transform: translateY(0) rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) {
    .floating-card { animation: none; }
}

/* Page-specific CTA layout for blog-klyuch-rybka-mercedes */
.cta-visit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.cta-visit__media { display: flex; justify-content: center; }
.cta-visit__media-link { display:inline-block; cursor: pointer; transition: transform .25s ease; will-change: transform; transform-origin: center; }
.cta-visit__media-link:hover, .cta-visit__media-link:focus-visible { transform: scale(1.12); }
.cta-visit__image {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.cta-visit__text { text-align: left; }
.cta-visit__text h2 { margin-bottom: 1rem; }
.cta-visit__text p { margin-bottom: 1.5rem; }

@media (max-width: 900px) {
    .cta-visit { grid-template-columns: 1fr; text-align: center; }
    .cta-visit__text { text-align: center; }
}

/* Warning callout inside articles */
.post-warning {
    background-color: #fffbeb;
    border-left: 4px solid #d97706;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    color: #b45309;
    font-size: 1.05rem;
    line-height: 1.6;
}
.post-warning strong {
    color: #78350f;
    font-weight: 800;
}

/* Professional Equipment Section inside articles */
.equipment-section {
    margin: 2.5rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 24px;
    border: 1px solid rgba(44, 62, 80, .06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}
.equipment-section h3 {
    margin-top: 0 !important;
    font-size: 1.4rem !important;
    color: #1f2937;
    margin-bottom: 0.75rem;
}
.equipment-section > p {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (max-width: 768px) {
    .equipment-grid {
        grid-template-columns: 1fr;
    }
}
.equipment-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(44, 62, 80, .08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display: flex;
    flex-direction: column;
}
.equipment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(44, 62, 80, .12);
    border-color: rgba(185, 167, 112, .4);
}
.equipment-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* square ratio */
    background: #f3f4f6;
    overflow: hidden;
}
.equipment-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.equipment-card:hover .equipment-img-wrapper img {
    transform: scale(1.05);
}
.equipment-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #b9a770 0%, #d6c79b 100%);
    color: #111827;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 2;
}
.equipment-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.equipment-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.15rem;
    color: #1f2937;
    font-weight: 700;
}
.equipment-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
}

/* Mercedes Info Equipment Showcase on Home Page */
.mercedes-equipment-showcase {
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.equipment-showcase-wrapper {
    max-width: 420px;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
    border: 1px solid rgba(185, 167, 112, 0.25);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    background: #ffffff;
}
.equipment-showcase-wrapper:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 65px rgba(44, 62, 80, 0.18);
    border-color: rgba(185, 167, 112, 0.5);
}
.equipment-showcase-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}
.equipment-showcase-caption {
    margin-top: 1.25rem !important;
    font-size: 0.95rem !important;
    color: #6b7280 !important;
    font-style: italic;
    max-width: 500px;
    text-align: center;
    line-height: 1.4;
    opacity: 0.9;
}

/* Floating contact buttons styling */
.floating-contacts {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
}

.floating-btn {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-size: 200% auto;
    cursor: pointer;
}

/* Premium gradients for brand networks */
.phone-btn {
    background-image: linear-gradient(135deg, #b9a770 0%, #d6c79b 55%, #e8dfc4 100%);
    color: #111827;
    box-shadow: 0 10px 30px rgba(184, 163, 104, 0.35);
    border: 1px solid rgba(17, 24, 39, 0.08);
}

.telegram-btn {
    background-image: linear-gradient(135deg, #0088cc 0%, #00a2ed 50%, #0088cc 100%);
    box-shadow: 0 10px 30px rgba(0, 136, 204, 0.35);
}

.viber-btn {
    background-image: linear-gradient(135deg, #7309a9 0%, #8f2fd6 50%, #7309a9 100%);
    box-shadow: 0 10px 30px rgba(115, 9, 169, 0.35);
}

.floating-btn svg {
    width: 26px;
    height: 26px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover effects */
.floating-btn:hover {
    transform: translateY(-5px) scale(1.08);
}

.phone-btn:hover {
    box-shadow: 0 16px 40px rgba(184, 163, 104, 0.5);
    color: #111827;
}

.telegram-btn:hover {
    box-shadow: 0 16px 40px rgba(0, 136, 204, 0.5);
}

.viber-btn:hover {
    box-shadow: 0 16px 40px rgba(115, 9, 169, 0.5);
}

.floating-btn:hover svg {
    transform: rotate(12deg) scale(1.1);
}

/* Glassmorphic tooltips */
.floating-tooltip {
    position: absolute;
    right: 76px;
    top: 50%;
    transform: translateY(-50%) translateX(15px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #111827;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(17, 24, 39, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Arrow for tooltip */
.floating-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.floating-btn:hover .floating-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

/* Pulsing effect to make them look alive */
@keyframes phonePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(184, 163, 104, 0.5);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(184, 163, 104, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(184, 163, 104, 0);
    }
}

@keyframes contactPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.5);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(0, 136, 204, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 136, 204, 0);
    }
}

@keyframes viberPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(115, 9, 169, 0.5);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(115, 9, 169, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(115, 9, 169, 0);
    }
}

.phone-btn {
    animation: phonePulse 3s infinite 0.75s;
}

.telegram-btn {
    animation: contactPulse 3s infinite;
}

.viber-btn {
    animation: viberPulse 3s infinite 1.5s;
}

@media (prefers-reduced-motion: reduce) {
    .phone-btn, .telegram-btn, .viber-btn {
        animation: none;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-contacts {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }
    .floating-btn {
        width: 50px;
        height: 50px;
    }
    .floating-btn svg {
        width: 22px;
        height: 22px;
    }
    .floating-tooltip {
        display: none !important;
    }
}

/* Embedded Shipping Flow inside CTA */
.shipping-flow-embedded {
    width: 100%;
    margin-bottom: 4.5rem;
    position: relative;
}

.flow-embedded-title {
    text-align: center;
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #111827;
    letter-spacing: -0.02em;
}

.flow-embedded-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #374151;
    margin-bottom: 3.5rem;
    font-weight: 500;
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

/* Connecting line between steps on desktop */
@media (min-width: 1025px) {
    .flow-steps::before {
        content: '';
        position: absolute;
        top: 48px;
        left: 12.5%;
        width: 75%;
        height: 3px;
        background: linear-gradient(90deg, rgba(17, 24, 39, 0.08) 0%, rgba(17, 24, 39, 0.2) 50%, rgba(17, 24, 39, 0.08) 100%);
        z-index: 1;
    }
}

.flow-step {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(17, 24, 39, 0.06);
    text-align: center;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.flow-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(184, 163, 104, 0.18);
    border-color: rgba(184, 163, 104, 0.4);
}

.flow-icon-wrapper {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 1.75rem;
}

.flow-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #f3ead7 0%, #e2d4b8 50%, #cfbd96 100%);
    box-shadow: inset 0 6px 18px rgba(255,255,255,0.45), 0 8px 24px rgba(17, 24, 39, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
}

.flow-num {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(44, 62, 80, 0.3);
    z-index: 3;
}

.flow-step h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1f2937;
    letter-spacing: -0.01em;
}

.flow-step p {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #6b7280;
}

/* Responsive adjustments for steps */
@media (max-width: 1024px) {
    .flow-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .flow-embedded-subtitle {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 768px) {
    .flow-embedded-title {
        font-size: 2rem;
    }
    .flow-embedded-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 600px) {
    .flow-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .flow-step {
        padding: 2rem 1.5rem;
    }
}




