:root {
    --bg-dark: #fbfbfc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --accent-blue: #172554;
    --accent-neon: #5B9BF5;
    --accent-glow: rgba(91, 155, 245, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.9);
    --glass-shadow: 0 10px 40px -10px rgba(0,0,0,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--bg-dark); color: var(--text-main); font-family: 'Outfit', sans-serif; overflow-x: clip; min-height: 100vh; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }

.glow-bg {
    position: fixed; top: -20%; left: -10%; width: 55vw; height: 55vw;
    background: radial-gradient(circle, rgba(91, 155, 245, 0.22) 0%, transparent 60%);
    z-index: -2; filter: blur(62px);
    animation: glow-move 15s ease-in-out infinite alternate;
    will-change: transform;
}
.glow-bg::after {
    content: '';
    position: fixed; top: 40%; right: -20%; width: 45vw; height: 45vw;
    background: radial-gradient(circle, rgba(23, 37, 84, 0.15) 0%, transparent 60%);
    z-index: -2; filter: blur(62px);
    animation: glow-move 20s ease-in-out infinite alternate-reverse;
}
/* Third accent orb */
.glow-bg::before {
    content: '';
    position: fixed; bottom: 10%; left: 30%; width: 30vw; height: 30vw;
    background: radial-gradient(circle, rgba(91, 220, 180, 0.1) 0%, transparent 60%);
    z-index: -2; filter: blur(56px);
    animation: glow-move 25s ease-in-out infinite alternate;
}
@keyframes glow-move {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.2) translate(5%, 10%); }
    100% { transform: scale(0.9) translate(-5%, -5%); }
}
.grid-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 120%;
    background-image: linear-gradient(rgba(0,0,0,0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.022) 1px, transparent 1px);
    background-size: 50px 50px; z-index: -1;
    opacity: 0.82;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 88%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 88%);
    will-change: transform;
}

.glass { background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.glass:hover { background: rgba(255, 255, 255, 0.95); }

.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 4rem; position: fixed; top: 0; width: 100%; z-index: 100; border-bottom: 1px solid rgba(0,0,0,0.05); background: rgba(251, 251, 252, 0.85); backdrop-filter: blur(12px); }
.logo img { height: 50px; width: auto; object-fit: contain; }
.nav-links a { color: var(--text-main); text-decoration: none; margin: 0 1.5rem; font-weight: 500; font-size: 0.95rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-neon); }

.phone-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.01em;
}

.btn { padding: 0.8rem 1.75rem; border-radius: 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; border: none; font-family: inherit; font-size: 1rem; }
.btn-primary { background: linear-gradient(135deg, var(--accent-neon), var(--accent-blue)); color: white; box-shadow: 0 5px 15px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--accent-glow); }
.btn-outline { background: transparent; color: var(--text-main); border: 1px solid rgba(0,0,0,0.1); }
.btn-outline:hover { background: rgba(0,0,0,0.03); }
.btn-glass { background: white; color: var(--text-main); border: 1px solid var(--glass-border); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.btn-glass:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.arrow { display: inline-block; transition: transform 0.3s; margin-left: 5px; }
.btn-glass:hover .arrow { transform: translateX(5px); }

.hero { display: flex; align-items: center; min-height: 70vh; padding: 6rem 4rem 2rem; max-width: 1400px; margin: 0 auto; gap: 4rem; }
.hero-content { flex: 1; }
.badge { display: inline-block; padding: 0.5rem 1.2rem; border-radius: 30px; font-size: 0.85rem; margin-bottom: 0.75rem; color: var(--accent-blue); background: rgba(91, 155, 245, 0.1); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border: 1px solid rgba(91, 155, 245, 0.2); }
.hero h1 { font-size: 4.2rem; line-height: 1.05; margin-bottom: 1rem; letter-spacing: -2px; }
.text-gradient { background: linear-gradient(135deg, var(--accent-neon), var(--accent-blue)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 1.75rem; line-height: 1.5; max-width: 540px; }
.hero-actions { display: flex; gap: 1rem; }
.hero-visual { flex: 1; height: 550px; perspective: 1000px; display: flex; align-items: center; justify-content: center; position: relative; }

/* Interactive CSS Dashboard Mockup */
.mockup-window {
    width: 100%; height: 100%;
    /* Clean Premium Frosted Glass (Apple Style) */
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(24px) saturate(120%); -webkit-backdrop-filter: blur(24px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
    display: flex; flex-direction: column; overflow: hidden;
    transform-style: preserve-3d;
    position: relative;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Focused White Specular Highlight */
.mockup-window::before {
    content: '';
    position: absolute;
    top: 5px; left: 5px; width: 40%; height: 40%;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.7) 0%, transparent 60%);
    pointer-events: none;
    z-index: 10;
    opacity: 0.9;
}

/* Subtle Lite Spheres */
.dashboard-sphere {
    position: absolute;
    border-radius: 50% !important;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), rgba(255,255,255,0.1));
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 
        inset 0 0 10px rgba(255,255,255,0.3),
        0 8px 30px rgba(91, 155, 245, 0.1);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    z-index: 20;
    animation: dashboardOrbit 15s infinite ease-in-out;
}
.ds1 { width: 30px; height: 30px; top: -15px; left: 20%; animation-delay: -1s; }
.ds2 { width: 45px; height: 45px; bottom: 10%; right: -25px; animation-delay: -3s; }
.ds3 { width: 22px; height: 22px; top: 40%; left: -15px; animation-delay: -6s; }

@keyframes dashboardOrbit {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

.hero-visual:hover .mockup-window {
    transform: translateY(-15px) rotateX(4deg) rotateY(-2deg);
    box-shadow: 
        0 60px 120px rgba(23, 37, 84, 0.25),
        0 0 60px rgba(91, 155, 245, 0.2);
}

.mockup-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.6rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.2); backdrop-filter: blur(10px);
}

.mockup-header-left, .mockup-header-right { display: flex; align-items: center; gap: 1.5rem; }

.mockup-logo-container {
    display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--accent-blue); font-size: 1rem;
}

.mockup-logo-icon {
    width: 20px; height: 20px; background: linear-gradient(135deg, var(--accent-neon), var(--accent-blue));
    border-radius: 5px;
}

.mockup-nav { display: flex; gap: 1rem; color: var(--text-muted); font-size: 0.8rem; font-weight: 500; }
.mockup-nav span { padding: 4px 8px; cursor: pointer; transition: all 0.3s; border-radius: 6px; }
.mockup-nav span.active, .mockup-nav span:hover { color: var(--accent-blue); background: rgba(255,255,255,0.5); }

.mockup-header-right { color: var(--text-muted); gap: 1rem; }
.mockup-notification { position: relative; cursor: pointer; }
.notification-badge { position: absolute; top: -5px; right: -5px; background: #ef4444; color: white; font-size: 0.6rem; width: 14px; height: 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid white; }
.mockup-user { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 600; color: var(--text-main); cursor: pointer; }
.user-avatar { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #ddd, #999); }

.mockup-content { display: flex; flex: 1; padding: 1.5rem; gap: 1.5rem; }

.mockup-sidebar {
    width: 60px; display: flex; flex-direction: column; gap: 1.2rem;
    align-items: center; border-right: 1px solid rgba(255,255,255,0.3); padding-right: 1.5rem;
}
.mockup-sidebar .mockup-icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: all 0.3s;
}
.mockup-sidebar .mockup-icon.active, .mockup-sidebar .mockup-icon:hover {
    background: var(--accent-blue); color: white; box-shadow: 0 5px 15px rgba(23, 37, 84, 0.3); transform: scale(1.1);
}

.mockup-main { 
    flex: 1; display: grid; 
    grid-template-columns: 1fr 1fr 1fr; 
    grid-template-rows: auto 1fr 1.4fr; 
    gap: 0.4rem; 
    padding: 0.4rem;
}

.mockup-dashboard-title { grid-column: 1 / 4; grid-row: 1; font-size: 1.4rem; font-weight: 700; color: var(--accent-blue); margin-bottom: 0.25rem; }

.mockup-card {
    background: rgba(255, 255, 255, 0.25); 
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px; padding: 0.6rem 1rem 1rem; display: flex; flex-direction: column;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.05), 
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative; overflow: visible; z-index: 5;
}

.mockup-card:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(91, 155, 245, 0.1);
}

/* High contrast blue text against white glass */
.mockup-card h3, 
.mockup-card h4, 
.mockup-dashboard-title,
.mockup-card .item-name,
.mockup-card .price {
    color: #1e3a8a !important;
    text-shadow: none;
}
.mockup-card p {
    color: #475569 !important;
}

.mockup-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 45px rgba(91, 155, 245, 0.3);
}

/* Bright text and charts contrast */
.mockup-card h3, 
.mockup-card h4, 
.mockup-dashboard-title,
.mockup-card .item-name,
.mockup-card .price {
    color: #ffffff !important;
    text-shadow: 0 2px 5px rgba(0,0,0,0.4);
}
.mockup-card p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.hero-visual:hover .card-sales { transform: translateZ(30px) translateY(-5px); }
.hero-visual:hover .card-stock { transform: translateZ(15px) translateY(-2px); }
.hero-visual:hover .card-low-stock { transform: translateZ(40px) translateY(-8px); }

.mockup-card:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--accent-neon);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
.card-period { font-size: 0.7rem; color: var(--text-muted); display: flex; align-items: center; gap: 3px; background: rgba(0,0,0,0.03); padding: 2px 6px; border-radius: 4px; }

.mockup-card h5 { font-size: 0.9rem; color: var(--accent-blue); font-weight: 600; display: flex; justify-content: space-between; align-items: center; width: 100%;}
.mockup-card h5 span { font-size: 0.7rem; color: #10b981; background: rgba(16, 185, 129, 0.1); padding: 2px 6px; border-radius: 4px;}

.mockup-value { font-size: 1.3rem; font-weight: 700; color: var(--text-main); font-family: 'Space Grotesk', sans-serif; margin-bottom: 0.25rem; }

/* Chart Container Curve */
.mockup-chart-container { flex: 1; min-height: 80px; position: relative; margin-top: 0.5rem; }

/* ===== Services legacy cards unification (detail pages "Другие услуги") ===== */
.uk-slider-items .uk-card.uk-link-reset.uk-background-default.uk-card-body,
.uk-slider-items a.uk-card.uk-link-reset.uk-background-default.uk-card-body {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
}

.uk-slider-items .uk-card.uk-link-reset.uk-background-default.uk-card-body:hover,
.uk-slider-items a.uk-card.uk-link-reset.uk-background-default.uk-card-body:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 36px rgba(91,155,245,.16) !important;
    border-color: rgba(91,155,245,.35) !important;
}

.uk-slider-items .uk-card.uk-link-reset h3,
.uk-slider-items a.uk-card.uk-link-reset h3 {
    font-family: "Space Grotesk", sans-serif !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    line-height: 1.25 !important;
}

.uk-slider-items .uk-card.uk-link-reset p,
.uk-slider-items .uk-card.uk-link-reset div,
.uk-slider-items a.uk-card.uk-link-reset p,
.uk-slider-items a.uk-card.uk-link-reset div {
    color: var(--text-muted) !important;
}

.uk-slider-items .uk-card.uk-link-reset hr,
.uk-slider-items a.uk-card.uk-link-reset hr {
    border-top-color: rgba(15,23,42,.08) !important;
}

.uk-slider-items .uk-card .uk-h4 .uk-text-bold,
.uk-slider-items a.uk-card .uk-h4 .uk-text-bold {
    color: var(--accent-blue) !important;
    font-family: "Space Grotesk", sans-serif !important;
}
.mockup-curve { width: 100%; height: 100%; transition: all 0.5s ease; }
.mockup-card:hover .mockup-curve { transform: scale(1.02); }
.mockup-curve path { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw-curve 2s forwards ease-in-out; }

@keyframes draw-curve {
    0% { stroke-dashoffset: 1000; }
    100% { stroke-dashoffset: 0; }
}
.chart-point { position: absolute; width: 8px; height: 8px; background: white; border: 2px solid var(--accent-blue); border-radius: 50%; transform: translate(-50%, -50%); cursor: pointer; transition: all 0.3s; }
.chart-point:hover, .chart-point.active { transform: translate(-50%, -50%) scale(1.5); background: var(--accent-blue); box-shadow: 0 0 10px rgba(91, 155, 245, 0.3); }
.chart-labels { display: flex; justify-content: space-between; margin-top: 0; transform: translateY(-12px); font-size: 0.65rem; color: var(--text-muted); }

/* Circular Progress */
.stock-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.stock-progress-circle { width: 60px; height: 60px; }
.circle-bg { fill: none; stroke: rgba(0,0,0,0.05); stroke-width: 3.8; }
.circle { fill: none; stroke: var(--accent-neon); stroke-width: 2.8; stroke-linecap: round; animation: progress 1.5s ease-out forwards; transition: stroke-width 0.3s ease; }
.mockup-card:hover .circle { stroke-width: 4; animation: rotate-circle 2s linear infinite, progress 1.5s ease-out forwards; }

@keyframes rotate-circle {
    0% { transform: rotate(0deg); transform-origin: center; }
    100% { transform: rotate(360deg); transform-origin: center; }
}
@keyframes progress { 0% { stroke-dasharray: 0 100; } }
.percentage { fill: var(--accent-blue); font-family: 'Outfit'; font-size: 0.5rem; text-anchor: middle; font-weight: 700; transition: all 0.3s ease; }
.mockup-card:hover .percentage { transform: scale(1.1); fill: var(--accent-neon); }

.stock-tag { font-size: 0.7rem; color: var(--text-muted); }
.stock-tag span { color: var(--accent-blue); font-weight: 700; }
.stock-footer { display: flex; justify-content: space-between; margin-top: 1rem; padding-top: 10px; border-top: 1px solid rgba(0,0,0,0.05); }

/* Low Stock List */
.low-stock-list { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.4rem; }
.low-stock-item { 
    display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.6rem; 
    background: rgba(255,255,255,0.4); border-radius: 8px; 
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative; overflow: hidden;
}
.low-stock-item:hover { 
    transform: translateX(5px) scale(1.02); 
    background: rgba(255,255,255,0.8);
    box-shadow: 0 5px 15px rgba(23, 37, 84, 0.1);
}
.low-stock-item::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    transition: 0.5s;
}
.low-stock-item:hover::after { left: 100%; transition: 0.6s; }

.item-img { width: 28px; height: 28px; background: white; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.3s; }
.low-stock-item:hover .item-img { animation: wiggle 0.5s ease-in-out infinite both; }

.item-count { font-size: 0.75rem; font-weight: 700; color: #ef4444; transition: transform 0.3s; }
.low-stock-item:hover .item-count { animation: pulse-red 1s infinite; transform: scale(1.1); }

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}
@keyframes pulse-red {
    0% { text-shadow: 0 0 0 rgba(239, 68, 68, 0); }
    50% { text-shadow: 0 0 10px rgba(239, 68, 68, 0.5); }
    100% { text-shadow: 0 0 0 rgba(239, 68, 68, 0); }
}

/* Table and Status */
.mockup-table-header { display: flex; justify-content: space-between; font-size: 0.7rem; font-weight: 700; color: var(--text-muted); padding: 0.5rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); margin-bottom: 0.5rem; }
.order-status { font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.status-new { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.status-processing { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.status-done { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.card-sales { grid-column: 1 / 3; grid-row: 2; }
.card-stock { grid-column: 3; grid-row: 2 / 4; }
.card-low-stock { grid-column: 1 / 3; grid-row: 3; }

.dashboard-glow {
    position: absolute;
    top: 50%; left: 50%; width: 100%; height: 90%;
    background: radial-gradient(circle, rgba(91, 155, 245, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(60px);
    opacity: 0.5;
    animation: dashboardPulse 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes dashboardPulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.05); }
}

/* Animated Shapes */
.hero-shape { position: absolute; z-index: -1; pointer-events: none; }
.shape-ring { border-radius: 50%; border: 2px solid var(--accent-neon); opacity: 0.15; }
.shape-ring-1 { width: 400px; height: 400px; left: -100px; bottom: -100px; }
.shape-ring-2 { width: 250px; height: 250px; right: -50px; top: -50px; border-color: var(--accent-blue); }
.shape-triangle { width: 0; height: 0; border-left: 30px solid transparent; border-right: 30px solid transparent; border-bottom: 50px solid var(--accent-neon); opacity: 0.1; top: 10%; left: 5%; transform: rotate(15deg); }
.shape-cube { width: 40px; height: 40px; background: var(--accent-blue); opacity: 0.1; border-radius: 8px; bottom: 10%; right: 10%; transform: rotate(-25deg); }

@media (max-width: 1024px) {
    .mockup-main { grid-template-columns: 1fr 1fr; }
    .card-sales { grid-column: 1 / 3; }
    .card-stock { grid-column: 1; grid-row: 2; }
    .card-low-stock { grid-column: 2; grid-row: 2; }
}

@media (max-width: 1024px) {
    .mockup-window { transform: scale(0.9); transform-origin: center right; }
}
@media (max-width: 768px) {
    .mockup-window { transform: scale(0.7); transform-origin: top center; height: 500px; }
    .hero-visual { height: 400px; }
}

/* ===== Device-tuned mobile polish ===== */
@media (max-width: 430px) {
    .navbar {
        padding: 0.8rem 0.85rem !important;
    }
    .logo img {
        height: 38px !important;
    }
    .hero {
        padding: 5.8rem 0.85rem 1rem !important;
    }
    .hero-actions {
        width: 100%;
        gap: 0.65rem !important;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .section {
        padding: 2.8rem 0.85rem !important;
    }
}

@media (max-width: 390px) {
    .hero h1 {
        font-size: 1.95rem !important;
    }
    .hero p {
        font-size: 0.95rem !important;
    }
    .hero-visual {
        height: 300px !important;
        transform: scale(0.68) !important;
    }
    .mobile-menu {
        padding-top: 82px !important;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.8rem !important;
        line-height: 1.1 !important;
    }
    .section-header h2 {
        font-size: 1.35rem !important;
    }
    .btn {
        font-size: 0.94rem !important;
        padding: 0.78rem 1rem !important;
    }
    .mobile-menu a {
        font-size: 1rem !important;
    }
}

.section { padding: 8rem 4rem; max-width: 1400px; margin: 0 auto; }
.section#benefits,
.section#services,
.section#equipment,
.section#cloud-fiscalization,
.section#cases,
.section#blog,
.section#cta {
    content-visibility: auto;
    contain-intrinsic-size: 1px 1000px;
}
.section-header { text-align: center; margin-bottom: 4rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 3.5rem; margin-bottom: 1.5rem; line-height: 1.2; color: var(--text-main); letter-spacing: -1px; }
.section-header p { color: var(--text-muted); font-size: 1.2rem; }
.alt-bg { background: linear-gradient(180deg, transparent, rgba(91, 155, 245, 0.03), transparent); }

.svg-icon svg { width: 40px; height: 40px; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.service-card { padding: 2.5rem; border-radius: 24px; transition: transform 0.3s, box-shadow 0.3s; outline: 1px solid rgba(0,0,0,0.03); display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.service-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; border-radius: 20px; background: linear-gradient(135deg, #ffffff, #f1f5f9); width: 80px; height: 80px; box-shadow: 0 10px 20px rgba(0,0,0,0.04); transition: transform 0.3s, box-shadow 0.3s; color: var(--accent-blue); }
.service-card:hover .service-icon { transform: scale(1.1) translateY(-5px); box-shadow: 0 15px 30px rgba(91, 155, 245, 0.2); color: var(--accent-neon); }
.service-card h3 { margin-bottom: 1rem; font-size: 1.5rem; letter-spacing: -0.5px;}
.service-card p { color: var(--text-muted); line-height: 1.6; flex-grow: 1; margin-bottom: 1.5rem;}
.service-price { font-weight: 700; color: var(--accent-neon); padding-top: 1rem; border-top: 1px solid rgba(0,0,0,0.05); font-size: 1.1rem; }

.service-icon-local {
    height: 210px; /* Reduced by 10% as requested */
    width: 100%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible;
    z-index: 10;
    transition: all 0.4s ease;
}
.service-icon-local img {
    width: auto;
    max-width: 95%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(91, 155, 245, 0.55)); /* Increased glow (+20%) */
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.service-card-local:hover .service-icon-local img {
    transform: scale(1.05) translateY(-15px);
    filter: drop-shadow(0 35px 60px rgba(91, 155, 245, 0.45));
}
/* Alignment fix for marking scanner with internal whitespace */
.service-scanner-marking {
    transform: translateX(-15px) !important;
}
.service-card-local:hover .service-scanner-marking {
    transform: scale(1.05) translateY(-15px) translateX(-15px) !important;
}
.equip-scanner-align {
    transform: translateY(-15px) !important;
}
.equipment-card:hover .equip-scanner-align {
    transform: scale(1.05) translateY(-30px) !important;
}

.benefits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.benefits-grid { align-items: stretch; }
.benefit-card { padding: 2.2rem; border-radius: 24px; display: flex; gap: 1.8rem; align-items: center; transition: all 0.4s ease; }
.benefit-card { height: 100%; }
.benefit-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.9); }
.benefit-icon { 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    width: 100px !important; 
    height: 100px !important; 
    flex-shrink: 0 !important; 
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important; 
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.benefit-icon img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain !important;
    filter: drop-shadow(0 15px 30px rgba(91, 155, 245, 0.45));
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    background: transparent !important;
    mix-blend-mode: normal !important;
}
.benefit-card:hover .benefit-icon img {
    transform: scale(1.1) translateY(-5px) !important;
    filter: drop-shadow(0 25px 45px rgba(91, 155, 245, 0.5));
}
.benefit-card:hover .benefit-icon { 
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}
.benefit-text h4 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--text-main); }
.benefit-text p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; }

/* Interactive Tech Core (Nanga Style) */
.benefit-decoration {
    background: linear-gradient(135deg, rgba(91, 155, 245, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(91, 155, 245, 0.3);
    position: relative;
    overflow: hidden;
}
.tech-core-container {
    width: 140px;
    height: 140px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tech-core-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(91, 155, 245, 0.4));
}
.tech-label {
    position: absolute;
    bottom: -10px;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-neon);
    font-weight: 700;
    opacity: 0.6;
}
.core-center {
    animation: corePulse 3s infinite ease-in-out;
    transform-origin: center;
}
@keyframes corePulse {
    0%, 100% { r: 20; opacity: 0.8; }
    50% { r: 25; opacity: 1; }
}
.data-point {
    transform-origin: center;
}
.p1 { animation: orbit 15s infinite linear; }
.p2 { animation: orbit 8s infinite linear reverse; }
@keyframes orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 2.2rem; }
.blog-card { 
    padding: 2.2rem; border-radius: 24px; display: flex; flex-direction: column; 
    height: 100%; /* Force equal height */
    justify-content: flex-start; position: relative; overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08); transition: 0.5s;
}
.blog-card:hover { border-color: rgba(91, 155, 245, 0.3); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.blog-card h3 { 
    margin-bottom: 1rem; font-size: 1.4rem; line-height: 1.4; color: var(--text-main); 
    font-weight: 700; transition: color 0.3s;
}
.blog-card:hover h3 { color: var(--accent-blue); }
.blog-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.5rem; flex-grow: 1; }
.blog-card img { 
    width: 100%; height: 200px; object-fit: cover; border-radius: 18px; 
    margin-bottom: 1.5rem; filter: sepia(0.2) saturate(1.2); transition: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.blog-card .blog-link, .blog-card a {
    margin-top: auto; /* Push to bottom for alignment */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-blue);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
}

.blog-card .blog-link:hover, .blog-card a:hover {
    color: var(--accent-neon);
    gap: 12px;
}

.blog-card:hover img { transform: scale(1.03) translateY(-5px); filter: sepia(0) saturate(1.4); }
.blog-tag {
    position: absolute; top: 3.2rem; left: 3.2rem; background: rgba(23, 37, 84, 0.8);
    backdrop-filter: blur(10px); color: white; padding: 4px 12px; border-radius: 8px;
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    z-index: 10; border: 1px solid rgba(255,255,255,0.1);
}

.partner-box { background: linear-gradient(135deg, rgba(91, 155, 245, 0.05), rgba(23, 37, 84, 0.05)); padding: 3rem; border-radius: 24px; border: 1px solid rgba(91, 155, 245, 0.2); }
.partner-box p { color: var(--text-main); font-size: 1.1rem; line-height: 1.6; margin-bottom: 1rem; }
.partner-code { background: white; padding: 1.5rem; border-radius: 12px; font-family: monospace; color: var(--accent-blue); font-size: 1.1rem; box-shadow: inset 0 2px 10px rgba(0,0,0,0.03); border: 1px dashed rgba(23, 37, 84, 0.2); margin-top: 1.5rem;}

.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.case-card { 
    padding: 2.5rem; 
    border-radius: 24px; 
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: flex; 
    flex-direction: column; 
    height: 100%; /* Force equal height */
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
}
.case-card::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(91, 155, 245, 0.05) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.5s; pointer-events: none;
}
.case-card:hover::before { opacity: 1; }
.case-card h3 { margin-bottom: 0.8rem; font-size: 1.6rem; color: var(--text-main); font-weight: 800; letter-spacing: -0.5px;}
.case-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.5; flex-grow: 1; }
.case-card a { 
    display: inline-flex; align-items: center; gap: 8px; color: var(--accent-blue); 
    text-decoration: none; font-weight: 700; font-size: 0.9rem; transition: 0.3s;
}
.case-card a:hover { color: var(--accent-neon); gap: 12px; }
.case-badge {
    position: absolute; top: 1.5rem; right: 1.5rem; width: 45px; height: 45px;
    background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
    border-radius: 12px; border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; transition: 0.5s;
}
.case-card:hover .case-badge { transform: rotate(10deg) scale(1.1); background: rgba(91, 155, 245, 0.2); border-color: var(--accent-blue); }

.cta-box { 
    text-align: center; 
    padding: 5rem; 
    border-radius: 30px; 
    max-width: 900px; 
    margin: 0 auto; 
    background: rgba(255, 255, 255, 0.4); /* Transparent glass instead of solid white */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    outline: 1px solid rgba(0,0,0,0.05); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.04); 
}
.cta-box h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.cta-box p { color: var(--text-muted); margin-bottom: 2.5rem; font-size: 1.1rem; }
.cta-form { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.glass-input { background: var(--bg-dark); border: 1px solid rgba(0,0,0,0.1); padding: 1.1rem 1.5rem; border-radius: 12px; color: var(--text-main); font-family: inherit; font-size: 1rem; outline: none; transition: all 0.3s; min-width: 280px; }
.glass-input:focus { border-color: var(--accent-neon); box-shadow: 0 0 0 4px rgba(91, 155, 245, 0.1); }

.footer { padding: 3rem 4rem; margin-top: 4rem; background: var(--bg-dark); border-top: 1px solid rgba(0,0,0,0.05); }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; max-width: 1400px; margin: 0 auto; }
.footer-logo img { height: 40px; }
.footer-links { text-align: right; }
.footer-links p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.5rem; line-height: 1.5;}
.footer-links a { display:inline-block; color: var(--accent-blue); text-decoration: none; font-weight: 600; font-size: 1rem; margin-bottom: 0.5rem;}

/* Equipment Grid: Strict forced parity via CSS Grid */
.equipment-grid { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    justify-items: center;
    align-items: stretch; /* Force stretch */
}
.equipment-card { 
    padding: 2.2rem; 
    border-radius: 20px; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    height: 100% !important; /* Force equal height override */
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
}
.equipment-card:hover { transform: translateY(-10px); }
.equipment-img { 
    height: 240px !important; /* Reduced by 10% as requested */
    width: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 1.5rem; 
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    position: relative;
    z-index: 10;
    transition: all 0.4s ease;
}
.equipment-img img { 
    width: auto; 
    max-width: 95%;
    height: 100%; 
    object-fit: contain; 
    filter: drop-shadow(0 20px 40px rgba(91, 155, 245, 0.55)); /* Increased glow (+20%) */
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.equipment-card:hover .equipment-img img { 
    transform: scale(1.05) translateY(-15px); 
    filter: drop-shadow(0 40px 70px rgba(91, 155, 245, 0.45));
}
.equipment-card h4 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--text-main); }
.equipment-card p { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    flex-grow: 1; /* Stretch content */
}


/* Standardized Premium Burger & Menu system will be injected below */


.navbar.scrolled { background: rgba(255, 255, 252, 0.95); padding: 1rem 4rem; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }

/* Media Queries */
@media (max-width: 1200px) {
    .navbar { padding: 1.2rem 2rem; }
    .hero { padding: 6rem 2rem 2rem; gap: 3rem; }
    .hero h1 { font-size: 3.5rem; }
    .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .nav-links, .header-contact, .header-auth { display: none; }
    .burger { display: flex; }
    .navbar.scrolled { padding: 1rem 2rem; }
    .header-actions-group { display: flex; align-items: center; gap: 1rem; }
    
    .hero { flex-direction: column; text-align: center; padding-top: 9rem; gap: 4rem; }
    .hero-content { align-items: center; text-align: center; }
    .hero p { margin-left: auto; margin-right: auto; font-size: 1.1rem; }
    .hero-actions { justify-content: center; }
    .hero-visual { width: 100%; height: 480px; max-width: 650px; }
    
    .services-grid, .marketplace-grid, .capabilities-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; letter-spacing: -1.5px; }
    .hero-visual { height: 420px; transform: scale(0.9); }
    .hero-shape,
    .dashboard-sphere,
    .dashboard-glow,
    .shape-ring,
    .shape-triangle,
    .shape-cube {
        display: none !important;
        animation: none !important;
    }
    
    .section { padding: 4rem 1.5rem; }
    .section-header h2 { font-size: 2.1rem; }
    
    .services-grid, .marketplace-grid, .capabilities-grid, .benefits-grid, .blog-grid { grid-template-columns: 1fr; }
    
    .cta-container { padding: 4rem 1.5rem; }
    .cta-form { flex-direction: column; width: 100%; gap: 1rem; }
    .glass-input { width: 100%; }
    
    .footer-content { flex-direction: column; gap: 3rem; text-align: center; }
    .footer-links { justify-content: center; flex-wrap: wrap; gap: 1.5rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.4rem; }
    .hero-visual { transform: scale(0.78); height: 320px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .navbar { padding: 1rem 1.5rem; }
    .mobile-menu a { line-height: 1.25; }
}

/* --- Slider System --- */
.slider-container {
    position: relative;
    width: 100%;
}

.slider-viewport {
    overflow: hidden;
    padding: 1rem 0 3rem;
    margin: -1rem 0;
}

.slider-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.slider-item {
    flex: 0 0 calc((100% - 4rem) / 3);
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.slider-item > * {
    height: 100%;
    width: 100%;
}

/* --- Slider System --- */
.slider-container {
    position: relative;
    width: 100%;
}

.slider-viewport {
    overflow: hidden;
    padding: 1rem 0 3rem;
    margin: -1rem 0;
}

.slider-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.slider-item {
    flex: 0 0 calc((100% - 4rem) / 3);
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.slider-item > * {
    height: 100%;
    width: 100%;
}

/* Slider Controls in Section Header */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    gap: 2rem;
}

.section-header-row .section-header {
    margin: 0;
    text-align: left;
}

/* Center alignment for key homepage sections */
#benefits .section-header,
#cases .section-header,
#blog .section-header {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

#benefits .section-header {
    margin-bottom: 2.75rem;
}

#benefits .benefits-grid {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}

/* Keep key homepage blocks strictly centered */
#cases .slider-container,
#blog .slider-container {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}

#cases .slider-viewport,
#blog .slider-viewport {
    margin-left: 0;
    margin-right: 0;
}

#cases .slider-track,
#blog .slider-track {
    align-items: stretch;
}

#cases .slider-item,
#blog .slider-item {
    display: flex;
}

#cases .case-card,
#blog .blog-card {
    width: 100%;
    height: 100%;
}

#cases .section-header-row,
#blog .section-header-row {
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 2rem;
}

#cases .section-header-row .section-header,
#blog .section-header-row .section-header {
    text-align: center;
    margin: 0 auto;
}

#cases .slider-controls,
#blog .slider-controls {
    justify-content: center;
    margin-bottom: 0;
    transform: translateY(-1px);
}

.slider-controls {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.slider-btn:hover:not(:disabled) {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(23, 37, 84, 0.2);
}

.slider-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.slider-btn svg {
    width: 20px;
    height: 20px;
}

/* Small Case Badge Icons */
.case-badge-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.case-card:hover .case-badge-icon {
    color: white;
}

@media (max-width: 1024px) {
    .slider-item {
        flex: 0 0 calc((100% - 2rem) / 2);
    }
    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .slider-item {
        flex: 0 0 100%;
    }
    .section-header-row {
        gap: 1.5rem;
    }
    .slider-controls {
        width: 100%;
        justify-content: flex-end;
    }

    #cases .section-header-row,
    #blog .section-header-row {
        align-items: center;
        gap: 0.85rem;
        margin-bottom: 1.35rem;
    }

    #cases .slider-controls,
    #blog .slider-controls {
        justify-content: center;
    }
}

/* Performance tuning */
.case-card, .blog-card, .slider-track, .service-card, .service-card-local {
    will-change: transform;
}

@media (max-width: 768px) {
    .glass, .slider-btn, .case-card, .blog-card, .header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.85) !important;
    }

    .bg-sphere {
        display: none;
    }

    .glow-bg,
    .grid-overlay {
        display: none !important;
    }
}

/* CTA/Consultation Section White Background */
.cta-section {
    background: #ffffff;
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

/* Cloud Fiscalization & Marking Section */
.cloud-fiscal-section { padding-top: 6rem; padding-bottom: 6rem; position: relative; }
.cloud-fiscal-container {
    display: flex;
    align-items: center;
    gap: 5rem;
    padding: 0; /* Removed padding to blend better */
    border-radius: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-top: 2rem;
    position: relative;
}
.cloud-atmosphere {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(91, 155, 245, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    filter: blur(40px);
}
.cloud-fiscal-content { flex: 1.2; position: relative; z-index: 2; }
.cloud-fiscal-content h2 { font-size: 3.5rem; margin: 1.5rem 0; line-height: 1.1; letter-spacing: -0.02em; }
.cloud-fiscal-content p { font-size: 1.15rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 3rem; max-width: 600px; }
.cloud-fiscal-features { display: flex; flex-direction: column; gap: 1.5rem; }
.feature-item { display: flex; align-items: center; gap: 1.2rem; font-weight: 600; color: var(--text-main); font-size: 1.1rem; }
.feature-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-neon), var(--accent-blue));
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(91, 155, 245, 0.3);
}

.cloud-fiscal-visual { flex: 1; position: relative; display: flex; justify-content: center; z-index: 1; }
.cloud-visual-wrapper { 
    position: relative; 
    width: 100%; 
    max-width: 800px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: visible;
}

.main-cloud { 
    width: 100%; 
    height: auto; 
    position: relative;
    z-index: 5;
}

.static-visual {
    mix-blend-mode: screen;
    filter: drop-shadow(0 10px 40px rgba(91, 155, 245, 0.4));
}

.cloud-visual-wrapper { 
    position: relative; 
    width: 100%; 
    max-width: 850px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: visible;
}

.main-cloud { 
    width: 100%; 
    height: auto; 
    position: relative;
    z-index: 5;
}

.static-visual {
    /* Tighter radial fade to aggressively remove all background blue/square borders */
    -webkit-mask-image: radial-gradient(circle, black 30%, transparent 65%);
    mask-image: radial-gradient(circle, black 30%, transparent 65%);
    filter: drop-shadow(0 15px 45px rgba(91, 155, 245, 0.35));
}

.datamatrix-pattern {
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, var(--accent-blue) 1.2px, transparent 1.2px),
        radial-gradient(circle, var(--accent-blue) 1.2px, transparent 1.2px);
    background-size: 6px 6px;
    background-position: 0 0, 3px 3px;
    opacity: 0.6;
}
.orbit-item.receipt::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 5px;
    right: 5px;
    height: 2px;
    background: rgba(0,0,0,0.05);
    box-shadow: 0 -4px 0 rgba(0,0,0,0.05), 0 -8px 0 rgba(0,0,0,0.05);
}

.orbit-item.marking {
    width: 35px;
    height: 35px;
    border-radius: 8px;
}
.orbit-item.marking::after {
    content: "";
    position: absolute;
    inset: 6px;
    background-image: radial-gradient(var(--accent-neon) 2px, transparent 2px);
    background-size: 8px 8px;
    opacity: 0.4;
}

@media (max-width: 1100px) {
    .cloud-fiscal-container { flex-direction: column; text-align: center; gap: 4rem; }
    .feature-item { justify-content: center; }
    .cloud-fiscal-content h2 { font-size: 2.8rem; }
    .cloud-fiscal-content p { margin-left: auto; margin-right: auto; }
    .cloud-atmosphere { left: 50%; opacity: 0.6; }
}

/* Product pages: restyle legacy miniShop2 card to modern theme */
.ms2_form.uk-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ms2_form .uk-heading-small,
.ms2_form h1.uk-modal-title {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.ms2_form .uk-button-primary {
    border-radius: 12px;
    border: 1px solid rgba(30, 58, 138, 0.15);
    background: linear-gradient(135deg, var(--accent-neon), #1e40af);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.25);
}

.ms2_form .uk-button-primary:hover {
    background: linear-gradient(135deg, #5aa3ff, #1e3a8a);
}

.ms2_form .uk-thumbnav > * > * {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}

/* Unified Buttons: global parity with homepage style */
.btn,
.btn-primary,
.btn-buy,
.uk-button,
.uk-button-primary,
a.uk-button,
a.uk-button-primary,
button.uk-button,
button.uk-button-primary,
input.uk-button,
input.uk-button-primary {
    border-radius: 12px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}

.btn-primary,
.btn-buy,
.uk-button-primary,
a.uk-button-primary,
button.uk-button-primary,
input.uk-button-primary {
    color: #fff !important;
    border: 1px solid rgba(30, 58, 138, 0.15) !important;
    background: linear-gradient(135deg, var(--accent-neon), #1e40af) !important;
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.25) !important;
}

.btn-primary:hover,
.btn-buy:hover,
.uk-button-primary:hover,
a.uk-button-primary:hover,
button.uk-button-primary:hover,
input.uk-button-primary:hover {
    transform: translateY(-1px) !important;
    background: linear-gradient(135deg, #5aa3ff, #1e3a8a) !important;
    box-shadow: 0 12px 24px rgba(30, 64, 175, 0.28) !important;
}

.btn-primary:active,
.btn-buy:active,
.uk-button-primary:active,
a.uk-button-primary:active,
button.uk-button-primary:active,
input.uk-button-primary:active {
    transform: translateY(0) !important;
}

.btn:focus-visible,
.btn-primary:focus-visible,
.btn-buy:focus-visible,
.uk-button:focus-visible,
.uk-button-primary:focus-visible,
a.uk-button:focus-visible,
a.uk-button-primary:focus-visible,
button.uk-button:focus-visible,
button.uk-button-primary:focus-visible,
input.uk-button:focus-visible,
input.uk-button-primary:focus-visible {
    outline: 2px solid rgba(91, 155, 245, 0.45) !important;
    outline-offset: 2px !important;
}

/* Extra-strong override for legacy UIkit pages (services/equipment cards) */
html body .integration-card .uk-button-primary,
html body .integration-card a.uk-button-primary,
html body .integration-card button.uk-button-primary,
html body .integration-card input.uk-button-primary,
html body .uk-card .uk-button-primary,
html body .uk-card a.uk-button-primary,
html body .uk-card button.uk-button-primary,
html body .uk-card input.uk-button-primary,
html body .price-row .btn-buy,
html body a.btn-buy {
    border-radius: 12px !important;
    border: 1px solid rgba(30, 58, 138, 0.15) !important;
    background-image: linear-gradient(135deg, #5B9BF5, #1e40af) !important;
    background-color: #1e40af !important;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.25) !important;
    text-decoration: none !important;
    padding: 0.62rem 0.95rem !important;
}

html body .integration-card .uk-button-primary:hover,
html body .integration-card a.uk-button-primary:hover,
html body .integration-card button.uk-button-primary:hover,
html body .integration-card input.uk-button-primary:hover,
html body .uk-card .uk-button-primary:hover,
html body .uk-card a.uk-button-primary:hover,
html body .uk-card button.uk-button-primary:hover,
html body .uk-card input.uk-button-primary:hover,
html body .price-row .btn-buy:hover,
html body a.btn-buy:hover {
    background-image: linear-gradient(135deg, #6fb0ff, #1e3a8a) !important;
    background-color: #1e3a8a !important;
    box-shadow: 0 12px 24px rgba(30, 64, 175, 0.28) !important;
    transform: translateY(-1px) !important;
}

/* Services pages: normalize "Другие услуги" cards to homepage style */
html body .section.uk-background-muted [uk-slider] .uk-slider-items > li > a.uk-card.uk-link-reset {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 320px !important;
    border-radius: 24px !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08) !important;
    padding: 1.35rem 1.35rem 1.15rem !important;
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

html body .section.uk-background-muted [uk-slider] .uk-slider-items > li > a.uk-card.uk-link-reset:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.11) !important;
    border-color: rgba(91, 155, 245, 0.35) !important;
}

html body .section.uk-background-muted [uk-slider] .uk-slider-items > li > a.uk-card.uk-link-reset h3 {
    margin: 0 0 0.65rem 0 !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 1.58rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.01em !important;
}

html body .section.uk-background-muted [uk-slider] .uk-slider-items > li > a.uk-card.uk-link-reset > .uk-margin-small-top {
    margin-top: 0.2rem !important;
    color: #475569 !important;
    font-size: 1rem !important;
    line-height: 1.55 !important;
}

html body .section.uk-background-muted [uk-slider] .uk-slider-items > li > a.uk-card.uk-link-reset hr {
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
    margin-top: auto !important;
    margin-bottom: 0.9rem !important;
}

html body .section.uk-background-muted [uk-slider] .uk-slider-items > li > a.uk-card.uk-link-reset .uk-h4 {
    color: #1e3a8a !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
}

html body .section.uk-background-muted [uk-slider] .uk-slider-items > li > a.uk-card.uk-link-reset .uk-icon[uk-icon="clock"] {
    color: #5B9BF5 !important;
}

@media (max-width: 960px) {
    html body .section.uk-background-muted [uk-slider] .uk-slider-items > li > a.uk-card.uk-link-reset {
        min-height: 300px !important;
    }
    html body .section.uk-background-muted [uk-slider] .uk-slider-items > li > a.uk-card.uk-link-reset h3 {
        font-size: 1.38rem !important;
    }
}

/* ===== Mobile Performance & UX Overrides (safe) ===== */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
    }

    /* Lighter effects on mobile to reduce scroll jank */
    .glow-bg,
    .glow-bg::before,
    .glow-bg::after {
        filter: blur(55px) !important;
        opacity: 0.6 !important;
        animation-duration: 26s !important;
    }
    .grid-overlay {
        background-size: 44px 44px !important;
        opacity: 0.55 !important;
    }
    .glass,
    .navbar,
    .cta-box,
    .slider-btn,
    .blog-card,
    .case-card {
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }

    /* Better touch targets */
    .btn,
    .uk-button,
    .slider-btn,
    .burger {
        min-height: 44px !important;
    }

    /* Navbar/mobile menu readability */
    .navbar {
        padding: 0.9rem 1rem !important;
    }
    .logo img {
        height: 42px !important;
    }


    /* Hero and sections */
    .hero {
        min-height: auto !important;
        padding: 6.4rem 1rem 1.3rem !important;
        gap: 1.4rem !important;
    }
    .hero h1 {
        font-size: clamp(2rem, 8.2vw, 2.55rem) !important;
        line-height: 1.08 !important;
        letter-spacing: -0.03em !important;
    }
    .hero p {
        font-size: 1rem !important;
        line-height: 1.55 !important;
        margin-bottom: 1.1rem !important;
    }
    .section {
        padding: 3.2rem 1rem !important;
    }
    .section-header {
        margin-bottom: 1.8rem !important;
    }
    .section-header h2 {
        font-size: clamp(1.55rem, 6.6vw, 2.05rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 0.85rem !important;
    }
    .section-header p {
        font-size: 1rem !important;
    }

    /* Cards spacing and visual consistency */
    .services-grid,
    .equipment-grid,
    .benefits-grid,
    .cases-grid,
    .blog-grid {
        gap: 1rem !important;
    }
    .service-card,
    .equipment-card,
    .benefit-card,
    .case-card,
    .blog-card {
        border-radius: 18px !important;
        padding: 1.05rem !important;
    }

    /* Slider/card behavior on mobile */
    .slider-item {
        flex: 0 0 100% !important;
    }
    .slider-track {
        gap: 1rem !important;
    }
    .slider-viewport {
        padding-bottom: 2rem !important;
    }
    .slider-controls {
        gap: 0.55rem !important;
    }
    .slider-btn {
        width: 42px !important;
        height: 42px !important;
    }

    /* Forms */
    .cta-box {
        padding: 1.25rem !important;
        border-radius: 18px !important;
    }
    .cta-form {
        gap: 0.7rem !important;
    }
    .glass-input {
        min-width: 0 !important;
        width: 100% !important;
        padding: 0.9rem 1rem !important;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 6rem !important;
    }
    .hero-visual {
        transform: scale(0.7) !important;
        height: 320px !important;
    }
    .badge {
        font-size: 0.72rem !important;
        padding: 0.42rem 0.75rem !important;
    }
    .section-header h2 {
        font-size: 1.45rem !important;
    }
}



/* ===== Mobile Overflow Guard ===== */
@media (max-width: 768px) {
    html, body {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    img, svg, video, canvas, iframe {
        max-width: 100% !important;
        height: auto;
    }
    .hero,
    .section,
    .navbar,
    .uk-container,
    .cta-box {
        overflow-x: clip !important;
    }
    .hero-visual,
    .mockup-window,
    .service-icon-local,
    .equipment-img,
    .benefit-icon {
        max-width: 100% !important;
    }
    .service-icon-local img,
    .equipment-img img,
    .benefit-icon img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Unified footer */
.footer-analog { background:#f3f5f9; border-top:1px solid rgba(15,23,42,.08); margin-top:2rem; padding:2.4rem 0 0; }
.footer-analog-wrap { max-width:1400px; margin:0 auto; padding:0 2rem; }
.footer-analog-grid { display:grid; grid-template-columns:1.5fr 1fr; gap:2rem; }
.footer-col-title { font-weight:700; margin-bottom:.95rem; color:var(--text-main); font-size:.95rem; line-height:1.2; font-family:'Outfit',sans-serif; }
.footer-col-list { list-style:none; margin:0; padding:0; display:grid; gap:.6rem; }
.footer-col-list a { color:var(--text-muted); text-decoration:none; font-size:.95rem; font-family:'Outfit',sans-serif; font-weight:500; }
.footer-col-list a:hover { color:var(--accent-blue); }
.footer-main-logo { height:56px; width:auto; object-fit:contain; margin-bottom:.9rem; }
.footer-desc { color:var(--text-muted); line-height:1.55; font-size:.95rem; margin-bottom:.9rem; max-width:420px; font-family:'Outfit',sans-serif; font-weight:500; }
.footer-contact-col { justify-self:end; width:max-content; min-width:320px; text-align:right; }
.footer-social-rounds { display:flex; gap:.6rem; margin-top:.8rem; }
.footer-contact-col .footer-social-rounds { justify-content:flex-end; }
.footer-social-round { width:38px; height:38px; border-radius:999px; border:1px solid rgba(15,23,42,.12); background:rgba(255,255,255,.85); color:var(--text-main); display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
.footer-social-round svg { width:18px; height:18px; }
.footer-analog-divider { margin:1.6rem 0 1.2rem; height:1px; background:rgba(15,23,42,.1); }
.footer-analog-bottom { display:flex; align-items:center; justify-content:space-between; gap:1rem; color:var(--text-muted); font-size:.95rem; padding-bottom:1.4rem; font-family:'Outfit',sans-serif; font-weight:500; }
.footer-bottom-links { display:flex; gap:1.3rem; flex-wrap:wrap; }
.footer-bottom-links a { color:var(--text-muted); text-decoration:none; }
.footer-bottom-links a:hover { color:var(--accent-blue); }
.footer-magic-it { border-top:1px solid rgba(15,23,42,.08); text-align:center; padding:1.6rem 0 1.9rem; background:#eef1f6; }
.footer-magic-it a { display:inline-flex; flex-direction:column; align-items:center; gap:.35rem; color:var(--accent-blue); text-decoration:none; font-weight:800; font-size:0; line-height:1.05; }
.footer-magic-it img { width:168px; height:auto; object-fit:contain; }

/* Footer logo safety: different templates use different logo classes */
.footer-analog img { max-width: 100%; height: auto; }
.footer-logo img { width: auto; max-width: 220px; height: auto; object-fit: contain; }

@media (max-width:768px){
 .footer-analog-wrap{padding:0 1rem;}
 .footer-analog-grid{grid-template-columns:1fr; gap:1.2rem;}
 .footer-main-logo{height:auto; max-height:46px; max-width:min(72vw,220px);}
 .footer-logo img{max-width:min(72vw,220px);}
 .footer-desc,.footer-col-list a{font-size:.95rem;}
 .footer-col-title{font-size:.95rem; margin-bottom:.55rem;}
 .footer-contact-col{justify-self:start; width:auto; min-width:0; text-align:left;}
 .footer-contact-col .footer-social-rounds{justify-content:flex-start;}
 .footer-analog-bottom{flex-direction:column; align-items:flex-start; font-size:.94rem;}
 .footer-magic-it img{width:min(128px,46vw);}
}

/* Footer icon normalization across all templates (including /cart/) */
.footer-analog img,
.footer-analog svg,
.footer-magic-it img,
.footer-magic-it svg,
.footer-logo img {
    max-width: 100% !important;
    height: auto !important;
}
.footer-analog .footer-main-logo,
.footer-main-logo {
    display: block !important;
    width: auto !important;
    height: 56px !important;
    max-width: min(260px, 78vw) !important;
    object-fit: contain !important;
}
.footer-magic-it img {
    display: inline-block !important;
    width: 148px !important;
    max-width: min(148px, 52vw) !important;
    height: auto !important;
}
.footer-social-round {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    overflow: hidden !important;
}
.footer-social-round svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    display: block !important;
}

@media (max-width: 1024px) {
    .footer-analog .footer-main-logo,
    .footer-main-logo,
    .footer-logo img {
        height: 48px !important;
        max-width: min(230px, 76vw) !important;
    }
    .footer-magic-it img {
        width: 132px !important;
        max-width: min(132px, 48vw) !important;
    }
}

@media (max-width: 768px) {
    .footer-main-logo,
    .footer-logo img {
        width: auto !important;
        max-width: min(72vw, 220px) !important;
        max-height: 46px !important;
    }
    .footer-magic-it img {
        width: min(124px, 44vw) !important;
        max-width: min(124px, 44vw) !important;
    }
    .footer-social-round {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
    }
    .footer-social-round svg {
        width: 16px !important;
        height: 16px !important;
        max-width: 16px !important;
        max-height: 16px !important;
    }
}

@media (max-width: 480px) {
    .footer-main-logo,
    .footer-logo img {
        max-width: min(76vw, 200px) !important;
        max-height: 42px !important;
    }
    .footer-magic-it img {
        width: min(112px, 42vw) !important;
        max-width: min(112px, 42vw) !important;
    }
    .footer-social-round {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
    }
    .footer-social-round svg {
        width: 15px !important;
        height: 15px !important;
        max-width: 15px !important;
        max-height: 15px !important;
    }
}

/* Header group: Решения для бизнеса */
.nav-links .nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-links .nav-dropdown > .nav-dropdown-toggle { margin: 0 1.5rem; }
.nav-links .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 320px;
    background: rgba(255,255,255,0.97);
    border: 1px solid rgba(15,23,42,0.1);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(15,23,42,0.12);
    padding: 0.55rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
    z-index: 220;
}
.nav-links .nav-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
}
.nav-links .nav-dropdown-menu a {
    display: block;
    margin: 0;
    padding: 0.62rem 0.75rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
}
.nav-links .nav-dropdown-menu a:hover { background: rgba(91,155,245,0.12); color: var(--accent-blue); }
.nav-links .nav-dropdown:hover .nav-dropdown-menu,
.nav-links .nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.2s ease, visibility 0s linear 0s;
}
.mobile-group-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.4rem;
    margin-bottom: -0.5rem;
}

/* Global mobile footer lock for legacy .footer and cart pages */
.footer .footer-logo img,
.footer .footer-social-link,
.cart-page .footer-main-logo,
.cart-page .footer-magic-it img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

@media (max-width: 768px) {
    .footer .footer-logo img,
    .cart-page .footer-main-logo,
    .cart-page .footer .footer-logo img {
        max-width: min(76vw, 230px) !important;
        max-height: 56px !important;
    }

    .footer .footer-social-link,
    .cart-page .footer-social-round {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
    }

    .footer .footer-social-link svg,
    .cart-page .footer-social-round svg {
        width: 16px !important;
        height: 16px !important;
        max-width: 16px !important;
        max-height: 16px !important;
    }

    .cart-page .footer-magic-it img,
    .footer .footer-magic-it img {
        width: min(132px, 48vw) !important;
        max-width: min(132px, 48vw) !important;
    }
}

@media (max-width: 480px) {
    .footer .footer-logo img,
    .cart-page .footer-main-logo,
    .cart-page .footer .footer-logo img {
        max-width: min(82vw, 210px) !important;
        max-height: 50px !important;
    }

    .footer .footer-social-link,
    .cart-page .footer-social-round {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
    }

    .footer .footer-social-link svg,
    .cart-page .footer-social-round svg {
        width: 15px !important;
        height: 15px !important;
        max-width: 15px !important;
        max-height: 15px !important;
    }

    .cart-page .footer-magic-it img,
    .footer .footer-magic-it img {
        width: min(112px, 42vw) !important;
        max-width: min(112px, 42vw) !important;
    }
}

/* 2026-04-08: hard lock for header/mobile menu + desktop footer logo stability */
@media (min-width: 769px) {
  .footer-analog .footer-analog-grid {
    align-items: flex-start !important;
    grid-template-columns: minmax(280px, 1fr) minmax(240px, auto) !important;
    column-gap: 2rem !important;
  }

  .footer-analog .footer-main-logo,
  .footer-analog .footer-logo img,
  .footer .footer-logo img {
    width: auto !important;
    height: 56px !important;
    max-width: 260px !important;
    max-height: 56px !important;
    object-fit: contain !important;
  }

  .footer-analog .footer-magic-it img,
  .footer .footer-magic-it img {
    width: 168px !important;
    max-width: 168px !important;
    height: auto !important;
    object-fit: contain !important;
  }
}

/* 2026-04-09: desktop smooth mode (subtle reduction of heavy effects) */
@media (min-width: 769px) {
  .glow-bg,
  .glow-bg::before,
  .glow-bg::after {
    filter: blur(46px) !important;
    opacity: 0.82 !important;
  }

  .glass,
  .navbar.glass,
  .feature-card,
  .benefit-card,
  .service-card,
  .price-card,
  .case-card,
  .blog-card {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07) !important;
    backdrop-filter: blur(9px) !important;
    -webkit-backdrop-filter: blur(9px) !important;
  }
}

/* 2026-04-09: smoother scrolling by disabling reveal-on-scroll animations */
.gs-reveal,
.gs-scroll {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  transition: none !important;
  animation: none !important;
}

/* 2026-04-09: mobile performance polish (lighter paint/composite load) */
@media (max-width: 768px) {
  .glow-bg,
  .glow-bg::before,
  .glow-bg::after {
    display: none !important;
    animation: none !important;
    filter: none !important;
  }

  .grid-overlay {
    opacity: 0.35 !important;
    background-size: 64px 64px !important;
  }

  .glass,
  .navbar.glass,
  .feature-card,
  .benefit-card,
  .service-card,
  .price-card,
  .case-card,
  .blog-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06) !important;
  }

  .mockup-window,
  .hero-visual,
  .dashboard-sphere {
    animation: none !important;
    transition: none !important;
  }
}


.mobile-menu { display: none; }
/* ===== PREMIUM MOBILE NAVIGATION SYSTEM (Standardized) ===== */
@media (max-width: 1024px) {
    .mobile-menu { display: flex; }
    .burger { 
        display: flex; flex-direction: column; gap: 5.5px; cursor: pointer; 
        -webkit-appearance: none;
        appearance: none;
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 10px;
        z-index: 2005 !important;
    }
    .burger span { 
        display: block; width: 26px; height: 2.5px; background: #0f172a; 
        border-radius: 4px; transition: all 0.3s ease; 
    }
    .burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: #fff; }
    .burger.open span:nth-child(2) { opacity: 0; }
    .burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: #fff; }

    .mobile-menu-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px); z-index: 1999;
        opacity: 0; visibility: hidden; transition: all 0.4s;
    }
    .mobile-menu.open { right: 0; }

    .mobile-menu {
        position: fixed; top: 0; right: -100%; width: 320px; max-width: 85%; height: 100vh;
        background: rgba(251, 251, 252, 0.92); z-index: 2000;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column;
        padding: 0; box-shadow: -10px 0 40px rgba(0,0,0,0.08);
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: var(--text-main);
        border-left: 1px solid rgba(0,0,0,0.05);
    }

    .mobile-menu-header {
        padding: 1.5rem 1.2rem 0.5rem; display: flex; align-items: center; justify-content: space-between;
        background: rgba(0,0,0,0.02); border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .mobile-menu-header .logo-small img { height: 24px; width: auto; filter: none !important; }
    .close-menu {
        background: rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.05);
        border-radius: 50%; width: 30px; height: 30px; position: relative; cursor: pointer; transition: 0.3s;
    }
    .close-menu:hover { background: rgba(0,0,0,0.1); transform: rotate(90deg); }
    .close-menu::before, .close-menu::after {
        content: ''; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px;
        background: var(--text-main); border-radius: 2px; transform-origin: center;
    }
    .close-menu::before { transform: translate(-50%, -50%) rotate(45deg); }
    .close-menu::after { transform: translate(-50%, -50%) rotate(-45deg); }

    .mobile-menu-content { flex: 1; padding: 0.2rem 1.2rem 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.2rem; }
    .mobile-menu-content .mobile-group-title {
        font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px;
        color: var(--text-muted); margin-top: 0.8rem; margin-bottom: 0.2rem;
        text-align: right;
    }
    .mobile-menu-content a {
        font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem; font-weight: 500;
        color: var(--text-main) !important; text-decoration: none !important; text-transform: uppercase;
        padding: 0.4rem 0; transition: all 0.25s ease; opacity: 0.8; display: flex; justify-content: flex-end; text-align: right;
    }
    .mobile-menu-content a:not(.mobile-cart-block):hover { opacity: 1; padding-right: 0.4rem; color: var(--accent-neon) !important; }
    .mobile-menu-content a.active { opacity: 1; color: var(--accent-neon) !important; }

    .mobile-menu-footer {
        padding: 0.8rem 1.2rem 1.2rem; background: rgba(0,0,0,0.02);
        border-top: 1px solid rgba(0,0,0,0.05); display: flex; flex-direction: column; gap: 0.5rem;
    }
    .mobile-icon-row {
        display: inline-flex;
        gap: 0.45rem;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        padding: 0.4rem 0.55rem;
        border-radius: 999px;
        background: rgba(255,255,255,0.82);
        border: 1px solid rgba(15,23,42,0.14);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
    }
    .mobile-icon-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #5B9BF5, #1e40af);
        border: 1px solid rgba(23,37,84,0.24);
        color: #fff;
        text-decoration: none;
        transition: all 0.2s ease;
        box-shadow:
          inset 0 0 0 1px rgba(255,255,255,0.14),
          0 6px 14px rgba(30,64,175,0.22);
    }
    .mobile-icon-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
    .mobile-icon-row .mobile-icon-btn {
        color: #fff !important;
    }
    .mobile-icon-row .mobile-icon-btn svg {
        width: 17px;
        height: 17px;
        display: block;
        overflow: visible;
    }
    .mobile-icon-row .mobile-icon-btn[href^="tel:"] svg,
    .mobile-icon-row .mobile-icon-btn[href^="mailto:"] svg {
        width: 17px;
        height: 17px;
        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 1.9 !important;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .mobile-icon-row .mobile-icon-btn[aria-label="WhatsApp"] svg {
        width: 16px;
        height: 16px;
        fill: currentColor !important;
        stroke: none !important;
    }
    .mobile-icon-row .mobile-icon-btn[aria-label="Telegram"] svg {
        width: 16px;
        height: 16px;
        fill: currentColor !important;
        stroke: none !important;
    }
    .mobile-cart-block,
    .mobile-menu-header .mobile-icon-btn[aria-label="Корзина"]{
        color: #fff !important;
        border-color: rgba(23,37,84,0.24) !important;
        background: linear-gradient(135deg, #5B9BF5, #1e40af) !important;
        box-shadow:
          inset 0 0 0 1px rgba(255,255,255,0.14),
          0 8px 18px rgba(30,64,175,0.25) !important;
    }
    .mobile-cart-block{
        border-radius: 12px !important;
    }
    .mobile-cart-block .cart-count{
        color: #fff !important;
        font-weight: 700;
    }
    
.mobile-contact-info { text-align: center; }
.mobile-contact-info a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: 0.3s; }
.mobile-contact-info a:hover { color: var(--text-main); }
.mobile-contact-phone { display: block; font-size: 1.1rem; font-weight: 700; color: var(--text-main) !important; margin-bottom: 0.2rem; }
@media (max-width: 1024px){
  .mobile-menu-footer .mobile-contact-info{
    margin-top: .35rem;
  }
  .mobile-menu-footer .mobile-contact-info a{
    display: block;
    line-height: 1.35;
  }
}
}


/* Global mobile sticky CTA */
.mobile-quick-cta{display:none;}
@media (max-width:768px){
  .mobile-quick-cta{display:none !important;}
  body{padding-bottom:0 !important;}
}

/* Global UX tuning: smoother scrolling and no heavy reveal jitter */
html { scroll-behavior: smooth; }
body.no-scroll-anim .gs-reveal,
body.no-scroll-anim .js .gs-reveal,
body.no-scroll-anim .gs-reveal.visible {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

/* Mobile UX hardening for overflow/tap targets */
@media (max-width:768px){
  /* Unify drawer/overlay visuals across pages */
  .mobile-menu-overlay{
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15,23,42,0.35) !important;
    z-index: 1990 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity .3s ease, visibility .3s ease !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
  }
  .mobile-menu-overlay.open{
    opacity: 1 !important;
    visibility: visible !important;
  }
  .mobile-menu{
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    left: auto !important;
    width: 72% !important;
    max-width: 360px !important;
    height: 100vh !important;
    background: rgba(251,251,252,0.92) !important;
    z-index: 2000 !important;
    box-shadow: -10px 0 40px rgba(0,0,0,0.08) !important;
    border-left: 1px solid rgba(0,0,0,0.05) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    transition: right .4s cubic-bezier(.4,0,.2,1) !important;
  }
  .mobile-menu:not(.open){ pointer-events: none !important; }
  .mobile-menu.open{
    right: 0 !important;
    pointer-events: auto !important;
  }
  .mobile-menu-content > a:not(.mobile-cart-block) {
    padding:.35rem 0;
    min-height:38px;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    width: 100%;
    box-sizing: border-box;
  }
  .mobile-menu-header {
    padding-top: calc(env(safe-area-inset-top, 20px) + 1.5rem) !important;
  }
  img,svg,video,canvas,iframe{
    max-width:100%;
    height:auto;
  }
  .mobile-menu-content .mobile-group-title {
    display: block !important;
    text-align: right !important;
    margin: 0.85rem 0 0.25rem !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #475569 !important;
  }
}

/* Header messenger icons (global) */
.header-actions-group,
.header-actions{
  display:flex;
  align-items:center;
  gap:.55rem;
}
.header-messenger-icons{
  display:inline-flex;
  align-items:center;
  gap:.3rem;
  padding:.2rem;
  border-radius:999px;
  background:rgba(255,255,255,.68);
  border:1px solid rgba(15,23,42,.08);
  white-space:nowrap;
  list-style:none !important;
  margin:0 !important;
}
.header-messenger-icons li{
  list-style:none !important;
  margin:0 !important;
  padding:0 !important;
}
.header-messenger-icons li::before{
  display:none !important;
  content:none !important;
}
.header-msg-btn{
  width:30px;
  height:30px;
  border-radius:999px;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  text-decoration:none;
  border:1px solid rgba(15,23,42,.1);
  background:rgba(255,255,255,.9);
  color:#334155;
  box-shadow:none;
  transition:all .18s ease;
}
.header-msg-btn svg{
  width:14px;
  height:14px;
}
.header-msg-phone{ color:#0f172a; }
.header-msg-wa{ color:#1d9f5a; }
.header-msg-tg{ color:#2090d8; }
.header-msg-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(15,23,42,.2);
  background:#fff;
}
.burger{
  display:none;
  -webkit-appearance:none;
  appearance:none;
  background:transparent;
  border:0;
  box-shadow:none;
  padding:10px;
  cursor:pointer;
}
@media (max-width:1024px){
  .header-messenger-icons{ gap:.25rem; }
  .header-msg-btn{
    width:29px;
    height:29px;
  }
  .header-messenger-icons{
    display:none !important;
  }
}
@media (max-width:768px){
  .header-actions-group,
  .header-actions{
    gap:.45rem !important;
  }
  .header-messenger-icons{
    display:inline-flex !important;
    align-items:center;
    gap:.22rem;
    padding:.16rem;
    background:rgba(255,255,255,.78);
  }
  .header-msg-btn{
    width:28px;
    height:28px;
  }
  .header-messenger-icons{
    display:none !important;
  }
}

/* Header logo hardening for legacy pages (blog/cart/articles) */
.navbar .logo{
  display:flex !important;
  align-items:center !important;
  flex:0 0 auto !important;
  min-width:170px;
  overflow:visible !important;
  margin-top:0 !important;
}
.navbar .logo a{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  width:auto !important;
  height:auto !important;
  border-radius:0 !important;
  overflow:visible !important;
  background:transparent !important;
  box-shadow:none !important;
  clip-path:none !important;
  -webkit-clip-path:none !important;
  mask:none !important;
  -webkit-mask:none !important;
}
.navbar .logo img{
  display:block !important;
  width:auto !important;
  height:46px !important;
  max-height:none !important;
  max-width:none !important;
  object-fit:contain !important;
  border-radius:0 !important;
  clip-path:none !important;
  -webkit-clip-path:none !important;
  mask:none !important;
  -webkit-mask:none !important;
}
@media (max-width:768px){
  .navbar .logo{min-width:132px;}
  .navbar .logo img{height:40px !important;}
  .header-actions-group > a[href^="tel"]{
    display:none !important;
  }
}
@media (max-width:1024px){
  .header-actions-group > a[href^="tel"]{
    display:none !important;
  }
}

/* Blog article visual unification + smaller titles */
body .uk-card.uk-background-default{
  background:rgba(255,255,255,.94) !important;
  border:1px solid rgba(15,23,42,.08) !important;
  border-radius:24px !important;
  box-shadow:0 18px 45px rgba(15,23,42,.08) !important;
}
body h1.uk-heading-small{
  font-size:clamp(1.5rem,2.15vw,2.25rem) !important;
  line-height:1.18 !important;
  letter-spacing:-.01em !important;
  margin-top:.55rem !important;
}
@media (max-width:768px){
  body h1.uk-heading-small{
    font-size:clamp(1.28rem,6.2vw,1.74rem) !important;
  }
}

/* Extra text block for equipment product pages */
.equipment-seo-extra{
  margin-top:1.1rem;
  padding:1rem 1.05rem;
  border:1px solid rgba(15,23,42,.1);
  border-radius:16px;
  background:linear-gradient(180deg,rgba(248,251,255,.95),rgba(255,255,255,.97));
}
.equipment-seo-extra h2{
  margin:.1rem 0 .55rem;
  font-size:clamp(1.08rem,1.5vw,1.32rem);
  letter-spacing:-.01em;
  color:#0f172a;
}
.equipment-seo-extra p{
  margin:.35rem 0;
  color:#334155;
  line-height:1.6;
}
.equipment-seo-extra ul{
  margin:.45rem 0 .25rem;
  padding-left:1.1rem;
}
.equipment-seo-extra li{
  margin:.28rem 0;
  color:#334155;
}

/* ===== Global product cards title normalization ===== */
html body .equipment-card h3,
html body .product-card h3,
html body .catalog-card h3,
html body .equipment-quick-card h3,
html body .equipment-grid .uk-card h3 {
    font-size: clamp(1rem, 1.1vw, 1.14rem) !important;
    line-height: 1.32 !important;
    letter-spacing: -0.01em !important;
    font-weight: 700 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: calc(1.32em * 3) !important;
}

/* ===== Cart modernization and anti-legacy overrides ===== */
html body.cart-page .cart-title {
    font-size: clamp(1.2rem, 1.9vw, 1.72rem) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
}

html body.cart-page #msCart table,
html body.cart-page #msCart .table,
html body.cart-page #msCart .ms2-cart-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #fff !important;
    border: 1px solid rgba(15,23,42,.08) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

html body.cart-page #msCart th,
html body.cart-page #msCart td {
    border-bottom: 1px solid rgba(15,23,42,.08) !important;
    padding: .82rem .75rem !important;
    vertical-align: middle !important;
}

html body.cart-page #msCart th {
    font-size: .78rem !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
    color: #64748b !important;
    background: #f8fbff !important;
}

html body.cart-page #msCart tr:last-child td {
    border-bottom: 0 !important;
}

html body.cart-page #msCart .btn,
html body.cart-page #msCart .uk-button,
html body.cart-page #msCart button[type="submit"],
html body.cart-page #msCart a.uk-button-primary {
    border-radius: 12px !important;
}

/* ===== Equipment product page title fix (prevents oversized H1) ===== */
html body #pdopage .ms2_form h1.uk-modal-title,
html body #pdopage .ms2_form .uk-modal-title,
html body #pdopage h1.uk-modal-title {
  font-size: clamp(1.55rem, 2.6vw, 3rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.015em !important;
  margin: 0 0 .85rem !important;
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
  html body #pdopage .ms2_form h1.uk-modal-title,
  html body #pdopage .ms2_form .uk-modal-title,
  html body #pdopage h1.uk-modal-title {
    font-size: clamp(1.35rem, 6.2vw, 2.1rem) !important;
    line-height: 1.14 !important;
  }
}

/* ===== Equipment product content heading normalization ===== */
html body #pdopage .ms2_form .description h2,
html body #pdopage .ms2_form [itemprop="description"] h2,
html body #pdopage .ms2_form h2 {
  font-size: clamp(1.1rem, 1.9vw, 2rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  margin: 1rem 0 .7rem !important;
}

html body #pdopage .ms2_form .description h3,
html body #pdopage .ms2_form [itemprop="description"] h3,
html body #pdopage .ms2_form h3 {
  font-size: clamp(1rem, 1.4vw, 1.45rem) !important;
  line-height: 1.25 !important;
  margin: .8rem 0 .55rem !important;
}

html body #pdopage .ms2_form p {
  font-size: clamp(0.98rem, 1.05vw, 1.1rem) !important;
  line-height: 1.6 !important;
}

/* UIkit Modal Fix: Ensure modals are hidden by default in the new template */
[uk-modal]:not(.uk-open) {
    display: none !important;
}

/* Hide technical form artifacts and success messages from plain view */
.msk-form-success, .policy-consent-wrap, .task-desc-wrap {
    /* These are injected into forms, so if the form is in a hidden modal, they are hidden. 
       But let's make sure they don't break layout if rendered elsewhere. */
}

/* Fix for potential UIkit conflict with new design */
.uk-modal {
    z-index: 2000 !important;
}

/* Hide legacy AJAX message containers and other technical artifacts globally */
#af_message, #ms2_message, #ms_message, .ms2_message {
    display: none !important;
}

/* The cart page renders the local fallback order table inside #msCart. */
html body.cart-page #msCart {
    display: block !important;
}

/* Ensure injected form fields don't appear outside of their intended containers */
.task-desc-wrap, .policy-consent-wrap {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Sticky Buy Bar - Universal styles for Apple Premium template */
.sticky-buy-bar {
    position: fixed;
    top: -120px;
    left: 0;
    width: 100%;
    height: 72px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    z-index: 999;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.sticky-buy-bar.visible {
    top: 70px; /* Positions below the sticky navbar */
}

/* Header/menu layering fix for product pages:
   keep sticky product bar under navbar and mobile menu while scrolling. */
html body .navbar.glass {
    z-index: 2200 !important;
}
html body .mobile-menu-overlay {
    z-index: 4900 !important;
}
html body .mobile-menu {
    z-index: 5000 !important;
}
html body .burger {
    z-index: 5010 !important;
}
html body .sticky-buy-bar {
    z-index: 1800 !important;
}
html body .sticky-buy-bar.visible {
    top: var(--ms-navbar-offset, 92px) !important;
}
html body.menu-open .sticky-buy-bar {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-130%) !important;
}

.sticky-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticky-bar-title {
    font-family: "Space Grotesk", sans-serif !important;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.sticky-bar-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.sticky-bar-price {
    font-family: "Outfit", sans-serif !important;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e40af;
}

.sticky-bar-btn {
    padding: 0.65rem 1.75rem;
    background: linear-gradient(135deg, #5B9BF5, #1e40af);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: "Outfit", sans-serif !important;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.2);
}

.sticky-bar-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
    filter: brightness(1.1);
}

@media (max-width: 1024px) {
    .sticky-buy-bar { display: none !important; }
}

/* Global Apple Background */
body { background-color: #f5f5f7 !important; }
.uk-background-muted { background: #f5f5f7 !important; }

/* Apple Premium Section Structure */
.apple-premium-section {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
    position: relative;
    z-index: 1;
}

/* Apple Premium Product Page Components */
.glow-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(30, 64, 175, 0.03) 0%, transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(30, 64, 175, 0.03) 0%, transparent 40%);
    z-index: -1;
}

.grid-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
}

.apple-buy-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    padding: 2rem 0;
    align-items: stretch;
}

.apple-gallery {
    position: sticky;
    top: 8rem;
    align-self: start;
    z-index: 1;
    padding-top: 1rem;
}

.gallery-sticky-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(15, 23, 42, 0.04);
    border-radius: 32px;
    padding: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.gallery-sticky-container img {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 12px;
    mix-blend-mode: multiply;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.apple-details {
    padding-top: 1rem;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.apple-badges {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.apple-badge {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.apple-badge-ms { background: #eff6ff; color: #1e40af; }
.apple-badge-promo { background: #fef2f2; color: #991b1b; }
.apple-badge-hit { background: #f0fdf4; color: #166534; }

.apple-title {
    font-family: "Space Grotesk", sans-serif !important;
    font-size: 2.5rem !important;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 0.5rem 0;
    color: #111827;
    letter-spacing: -0.01em;
}

.apple-price {
    font-family: "Space Grotesk", sans-serif !important;
    font-size: 1.6rem !important;
    font-weight: 600;
    color: #1e40af;
    margin: 0 0 1.5rem 0;
}

.apple-short-desc {
    font-family: "Outfit", sans-serif !important;
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 2.5rem;
}

.apple-section-title {
    font-family: "Space Grotesk", sans-serif !important;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1.25rem 0;
}

.apple-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
}

.apple-feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.6);
    border: 2px solid rgba(15,23,42,0.06);
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.apple-feature-card.wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
}

.apple-feature-card:hover {
    border-color: #1e40af;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 10px 20px rgba(30,64,175,0.08);
    transform: translateY(-2px);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #1e40af;
    flex-shrink: 0;
}

.feature-icon-wrapper svg { 
    width: 24px !important; 
    height: 24px !important; 
    display: block !important;
}

.feature-text {
    font-family: "Outfit", sans-serif !important;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.apple-list {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.apple-list li {
    position: relative;
    font-family: "Outfit", sans-serif !important;
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.5;
    background: rgba(255,255,255,0.5);
    padding: 1rem 1rem 1rem 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,0.04);
}

.apple-list li::before {
    content: '✓';
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: #1e40af;
    font-weight: 800;
    font-size: 1.1rem;
}

.apple-specs-box {
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(15,23,42,0.06);
}

.spec-row:last-child { border-bottom: none; }
.spec-label { font-family: "Outfit", sans-serif !important; font-size: 1.05rem; color: #64748b; font-weight: 500; }
.spec-value { font-family: "Outfit", sans-serif !important; font-size: 1.05rem; color: #0f172a; font-weight: 600; text-align: right; }

.apple-action-area {
    margin-top: auto;
    padding: 2rem 0;
    position: relative;
    z-index: 5;
}

.apple-btn-buy {
    width: 100%;
    display: block;
    padding: 1.25rem 2rem;
    background-image: linear-gradient(135deg, #5B9BF5, #1e40af);
    background-color: #1e40af;
    color: #fff;
    border: none;
    border-radius: 16px;
    font-family: "Outfit", sans-serif !important;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(30,64,175,0.15);
    text-align: center;
    text-decoration: none !important;
}

.apple-btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(30, 64, 175, 0.25);
    filter: brightness(1.1);
}

@media (max-width: 1024px) {
    .apple-buy-layout { grid-template-columns: 1fr; gap: 2rem; }
    .apple-gallery { position: relative; top: 0; height: auto; z-index: 1; }
    .gallery-sticky-container { padding: 2rem; }
    .apple-title { font-size: 1.75rem !important; }
    .apple-features-grid { grid-template-columns: 1fr; }
    .apple-list { grid-template-columns: 1fr; }
    .apple-action-area { 
        position: fixed; bottom: 0; left: 0; right: 0; 
        margin: 0; border-radius: 24px 24px 0 0; 
        padding: 1rem; background: rgba(255,255,255,0.95); 
        z-index: 100; 
    }
    .apple-details { padding-bottom: 6rem; }
    .rich-description-section { margin-top: 4rem !important; }
}

/* Configurations Block */
.apple-configs {
  margin: 0 0 3rem 0;
}
.config-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.config-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
}
.config-item:hover {
  border-color: #1e40af;
  background: #fff;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.05);
}
.config-item.active {
  border-color: #1e40af;
  border-width: 2px;
  background: #fff;
  padding: 0.9375rem 1.1875rem; /* adjust for border */
}
.config-info {
  display: flex;
  flex-direction: column;
}
.config-name {
  font-family: "Outfit", sans-serif !important;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}
.config-meta {
  font-family: "Outfit", sans-serif !important;
  font-size: 0.85rem;
  color: #64748b;
}
.config-price {
  font-family: "Space Grotesk", sans-serif !important;
  font-weight: 700;
  color: #1e40af;
  font-size: 0.95rem;
}

/* Force unified mobile drawer menu across pages with legacy inline menu styles */
@media (max-width: 1024px) {
  .mobile-menu {
    left: auto !important;
    right: -100% !important;
    width: 72% !important;
    max-width: 360px !important;
    height: 100vh !important;
    z-index: 2000 !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    background: rgba(251, 251, 252, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-left: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: -10px 0 40px rgba(0,0,0,0.08) !important;
    transition: right 0.4s cubic-bezier(0.4,0,0.2,1) !important;
  }
  .mobile-menu.open {
    display: flex !important;
    right: 0 !important;
  }
  .mobile-menu-overlay,
  #menu-overlay {
    z-index: 1990 !important;
    background: rgba(15,23,42,0.35) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
  }
  .mobile-menu-overlay.open,
  #menu-overlay.open {
    opacity: 1 !important;
    visibility: visible !important;
  }
  .mobile-menu-content a {
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    text-align: right !important;
    justify-content: flex-end !important;
    padding: 0.4rem 0 !important;
  }

  .mobile-cart-block {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.6rem !important;
    width: 100% !important;
    margin: 0.1rem 0 0.5rem !important;
    padding: 0.7rem 0.95rem !important;
    border-radius: 12px !important;
    color: #fff !important;
    text-decoration: none !important;
    border: 1px solid rgba(23, 37, 84, 0.24) !important;
    background: linear-gradient(135deg, #5B9BF5, #1e40af) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 8px 18px rgba(30, 64, 175, 0.25) !important;
  }
  .mobile-cart-block .mobile-cart-left {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
    font-size: 1.05rem !important;
    letter-spacing: 0.02em !important;
  }
  .mobile-cart-block .cart-count {
    font-family: "Space Grotesk", sans-serif !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #fff !important;
  }

  .mobile-menu-header {
    padding: 0.85rem 1rem !important;
    min-height: 74px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  }

  .mobile-menu .logo-small img,
  .mobile-menu-header .logo-small img {
    width: 118px !important;
    height: auto !important;
    display: block !important;
  }

  .mobile-menu-content {
    padding: 0.75rem 1rem 0.4rem !important;
    gap: 0.15rem !important;
  }

  .mobile-menu-footer {
    padding: 0.85rem 1rem 0.95rem !important;
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  }

  .mobile-menu-footer .mobile-group-title {
    font-size: 1.05rem !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 0.5rem !important;
  }

  .mobile-menu-footer .mobile-icon-row {
    display: flex !important;
    justify-content: center !important;
    gap: 0.52rem !important;
    padding: 0.3rem 0.45rem !important;
    border-radius: 999px !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    background: rgba(255, 255, 255, 0.72) !important;
    width: fit-content !important;
    margin: 0 auto !important;
  }

  .mobile-menu-footer .mobile-icon-btn,
  .mobile-menu .mobile-icon-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .mobile-menu-footer .mobile-icon-btn svg,
  .mobile-menu .mobile-icon-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  .mobile-cart-block .mobile-cart-left {
    min-width: 0 !important;
  }

  .mobile-cart-block .mobile-cart-left span:last-child {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* Keep floating chat/widget from overlapping opened mobile menu */
body.menu-open #amo_social_button,
body.menu-open .amo-social-button,
body.menu-open .amo-button-holder {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
