/* ================================================================
   AGILE BUSINESS — Premium Styles
   Themes (Dark/Light) · 3D · Parallax · Cursor · Rounded · VIP
   ================================================================ */

/* ── Variables ──────────────────────────────────────── */
:root {
    /* Dark theme (default) */
    --bg-primary: #060606;
    --bg-secondary: #0e0e0e;
    --bg-tertiary: #161616;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --bg-glass: rgba(12,12,12,0.7);

    --text-primary: #888888;
    --text-heading: #cccccc;
    --text-muted: #444444;
    --text-white: #ffffff;

    --accent: #c8102e;
    --accent-light: #e63946;
    --accent-dark: #9b0a20;
    --accent-glow: rgba(200,16,46,0.25);
    --accent-glow-strong: rgba(200,16,46,0.45);

    --border: rgba(255,255,255,0.05);
    --border-hover: rgba(255,255,255,0.1);
    --border-accent: rgba(200,16,46,0.25);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    --shadow-card: 0 8px 32px rgba(0,0,0,0.3);
    --shadow-card-hover: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px var(--accent-glow);
    --shadow-glow: 0 0 60px var(--accent-glow);

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    --section-pad: clamp(28px, 4.5vw, 64px);
    --container: 1280px;
    --container-pad: clamp(24px, 5vw, 64px);

    --transition-theme: background 0.6s var(--ease-smooth), color 0.6s var(--ease-smooth), border-color 0.6s var(--ease-smooth), box-shadow 0.6s var(--ease-smooth);
}

/* ── Light Theme ────────────────────────────────────── */
[data-theme="light"] {
    --bg-primary: #f8f7f4;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0efec;
    --bg-card: #ffffff;
    --bg-card-hover: #fafaf8;
    --bg-glass: rgba(255,255,255,0.8);

    --text-primary: #555555;
    --text-heading: #1a1a1a;
    --text-muted: #aaaaaa;
    --text-white: #1a1a1a;

    --border: rgba(0,0,0,0.06);
    --border-hover: rgba(0,0,0,0.12);
    --border-accent: rgba(200,16,46,0.2);

    --shadow-card: 0 8px 32px rgba(0,0,0,0.06);
    --shadow-card-hover: 0 20px 60px rgba(0,0,0,0.1), 0 0 40px var(--accent-glow);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-dark) var(--bg-primary);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-dark); border-radius: 3px; }

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none;
    line-height: 1.6;
    transition: var(--transition-theme);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: none; color: inherit; }
input, textarea, select { font-family: inherit; cursor: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #fff; }

[data-i18n] { overflow-wrap: break-word; word-wrap: break-word; }
.nav__link[data-i18n], .nav__cta[data-i18n] span { overflow: hidden; text-overflow: ellipsis; }

/* ── Loading Screen ─────────────────────────────────── */
.loader {
    position: fixed; inset: 0;
    z-index: 99999;
    background: #f8f7f4;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 32px;
    transition: opacity 0.8s var(--ease-smooth), visibility 0.8s;
}
[data-theme="dark"] .loader { background: #060606; }

.loader.loaded {
    opacity: 0; visibility: hidden;
    pointer-events: none;
}

.loader__logo {
    width: 300px; height: auto;
    animation: loaderPulse 1.6s ease-in-out infinite;
    filter: brightness(1.2);
}

.loader__bar {
    width: 160px; height: 2px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.loader__bar-fill {
    width: 0; height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: var(--radius-full);
    animation: loaderFill 2s var(--ease-out-expo) forwards;
}

@keyframes loaderPulse {
    0%, 100% { opacity:1; transform: scale(1); }
    50% { opacity:0.7; transform: scale(0.97); }
}
@keyframes loaderFill {
    0% { width:0; }
    100% { width:100%; }
}

/* ── Custom Cursor ──────────────────────────────────── */
.cursor {
    position: fixed; width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%; pointer-events: none; z-index: 10000;
    transform: translate(-50%,-50%);
    transition: width .3s var(--ease-out-expo), height .3s var(--ease-out-expo), background .3s, opacity .3s;
    will-change: transform;
}

.cursor-follower {
    position: fixed; width: 44px; height: 44px;
    border: 1.5px solid rgba(200,16,46,0.4);
    border-radius: 50%; pointer-events: none; z-index: 9999;
    transform: translate(-50%,-50%);
    transition: width .5s var(--ease-out-expo), height .5s var(--ease-out-expo), border-color .3s, background .3s;
    will-change: transform;
}

.cursor.hover { width: 18px; height: 18px; background: var(--accent-light); }
.cursor-follower.hover { width: 64px; height: 64px; border-color: var(--accent-light); background: rgba(200,16,46,0.04); }
.cursor.click { width: 6px; height: 6px; }
.cursor-follower.click { width: 28px; height: 28px; }

/* ── Back Arrow ──────────────────────────────────────── */
.page-back {
    position: fixed; top: 128px; left: var(--container-pad, 24px);
    z-index: 998;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px 10px 16px;
    border-radius: 60px;
    background: var(--bg-glass, rgba(255,255,255,0.8));
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 0.9rem; font-weight: 500;
    text-decoration: none;
    transition: all .3s var(--ease-out-expo);
    opacity: 0.85;
}
.page-back:hover { opacity: 1; transform: translateX(-4px); }
.page-back svg { flex-shrink: 0; }
@media (max-width:768px) {
    .page-back { top: 108px; left: 16px; padding: 8px 14px 8px 10px; font-size: 0.82rem; }
}

/* Страницы со стрелкой «назад»: контент ниже хедера и кнопки */
main.detail-page.with-page-back {
    padding-top: clamp(120px, 14vw, 160px);
}
.detail-page--article .detail-page__hero {
    margin-top: 8px;
}

/* ── Navigation ─────────────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000; padding: 20px 0;
    transition: all .6s var(--ease-out-expo);
}

.nav.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.nav__container {
    max-width: var(--container); margin: 0 auto;
    padding: 0 var(--container-pad);
    display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 1025px) {
    .nav__container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: clamp(12px, 2vw, 20px);
    }
    .nav__logo { justify-self: start; }
    .nav__links {
        justify-self: center;
        justify-content: center;
    }
    .nav__actions { justify-self: end; border-left: none; margin-left: 0; padding-left: 0; }
}

.nav__logo { display: flex; align-items: center; gap: 14px; z-index: 1001; }

.nav__logo-img {
    height: 72px; width: auto;
    filter: brightness(1.1);
    transition: filter .3s;
}

[data-theme="light"] .nav__logo-img {
    filter: brightness(0.9);
}

.nav__logo-text {
    font-weight: 700; font-size: 20px;
    letter-spacing: -0.5px; color: var(--text-heading);
    transition: color .6s;
}

.nav__links {
    display: flex; flex-wrap: nowrap; gap: clamp(6px, 0.9vw, 12px);
    list-style: none; align-items: center;
    min-width: 0; max-width: 100%;
}

/* «Рубленые» пункты меню в одну линию с CTA, без налезания друг на друга */
.nav__link {
    font-size: clamp(10px, 0.95vw, 12px);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.35px;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.02);
    transition: color .25s, border-color .25s, background .25s, box-shadow .25s;
    flex-shrink: 0;
}

.nav__link::after { display: none; }

.nav__link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(200, 16, 46, 0.06);
    box-shadow: 0 2px 12px rgba(200, 16, 46, 0.08);
}

.nav__actions {
    display: flex; align-items: center; gap: 12px;
    flex-shrink: 0;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid var(--border);
}

/* Theme Toggle */
.theme-toggle {
    width: 40px; height: 40px;
    flex-shrink: 0;
    margin-left: 2px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-primary);
    transition: color .3s, background .3s;
    font-size: 18px;
}
.theme-toggle:hover { color: var(--accent); background: var(--border); }

/* Language Dropdown */
.lang-dropdown {
    position: relative; z-index: 1002;
}
.lang-dropdown__current {
    font-size: 13px; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    transition: all .3s;
}
.lang-dropdown__current:hover,
.lang-dropdown.open .lang-dropdown__current {
    border-color: var(--accent); color: var(--accent);
}
.lang-dropdown__list {
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 180px; max-height: 320px;
    overflow-y: auto; padding: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    list-style: none;
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: all .3s var(--ease-out-expo);
    scrollbar-width: thin;
    scrollbar-color: var(--accent-dark) transparent;
}
.lang-dropdown.open .lang-dropdown__list {
    opacity: 1; visibility: visible;
    transform: translateY(0);
}
.lang-dropdown__item {
    padding: 8px 14px; font-size: 13px;
    color: var(--text-primary); border-radius: 8px;
    transition: all .2s; cursor: pointer;
}
.lang-dropdown__item:hover {
    background: rgba(200,16,46,0.06); color: var(--text-heading);
}
.lang-dropdown__item.active {
    color: var(--accent); font-weight: 600;
}

.nav__cta {
    padding: 9px 20px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.5px; text-transform: uppercase;
    border-radius: var(--radius-full);
    transition: all .5s var(--ease-out-expo);
    white-space: nowrap;
    flex-shrink: 0;
}
.nav__cta:hover {
    background: var(--accent); color: #fff;
    box-shadow: var(--shadow-glow), 0 8px 30px rgba(200,16,46,0.25);
    transform: translateY(-2px);
}

.nav__burger { display: none; flex-direction: column; gap: 5px; z-index: 1001; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--text-heading); transition: all .3s; }
.nav__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Menu */
.mobile-menu {
    position: fixed; inset: 0; z-index: 999;
    background: var(--bg-primary);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all .6s var(--ease-out-expo);
    padding: 80px 24px 40px;
    box-sizing: border-box;
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu__links {
    list-style: none; text-align: center;
    display: flex; flex-direction: column; align-items: center;
    flex: 1; justify-content: center; width: 100%;
}
.mobile-menu__link {
    display: block; font-size: clamp(28px,5vw,44px); font-weight: 700;
    padding: 14px 0; color: var(--text-muted); transition: color .3s;
}
.mobile-menu__link:hover { color: var(--accent); }
.mobile-menu__cta {
    display: flex; align-items: center; justify-content: center;
    width: calc(100% - 48px); max-width: 400px;
    margin-top: auto;
    padding: 18px 40px;
    background: var(--accent); color: #fff;
    font-size: 15px; font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase;
    border-radius: var(--radius-full);
    text-decoration: none; text-align: center;
    box-shadow: 0 8px 32px rgba(200,16,46,0.35);
    transition: all .3s;
    flex-shrink: 0;
}
.mobile-menu__cta:hover { background: var(--accent-light); transform: translateY(-2px); }

/* ── Hero ───────────────────────────────────────────── */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    perspective: 1800px;
    transform-style: preserve-3d;
    /* Запас снизу, чтобы кнопки и скругления не упирались в край секции */
    padding-bottom: min(6vh, 80px);
    box-sizing: border-box;
}

.hero__parallax-bg { position: absolute; inset: 0; z-index: 0; }

.hero__grid-lines {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    transform: perspective(600px) rotateX(35deg);
    transform-origin: center top;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
}

[data-theme="light"] .hero__grid-lines {
    background-image:
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
}

.hero__glow {
    position: absolute; border-radius: 50%;
    filter: blur(140px); opacity: 0.35;
}
.hero__glow--1 {
    width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(200,16,46,0.55), rgba(200,16,46,0.12) 40%, transparent 70%);
    top: -320px; right: -200px;
    animation: floatGlow 10s ease-in-out infinite;
}
.hero__glow--2 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(200,16,46,0.3), rgba(200,16,46,0.08) 50%, transparent 70%);
    bottom: -200px; left: -200px;
    animation: floatGlow 12s ease-in-out infinite reverse;
}
.hero__glow--3 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(200,16,46,0.22), transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%,-50%);
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes floatGlow {
    0%,100% { transform:translateY(0) scale(1); }
    50% { transform:translateY(-40px) scale(1.06); }
}
@keyframes pulseGlow {
    0%,100% { opacity:.15; transform:translate(-50%,-50%) scale(1); }
    50% { opacity:.3; transform:translate(-50%,-50%) scale(1.12); }
}

.hero__particles { position: absolute; inset: 0; }
.hero__particle {
    position: absolute; width: 2px; height: 2px;
    background: var(--accent); border-radius: 50%;
    opacity: 0; animation: particleFloat linear infinite;
    will-change: transform, opacity;
    contain: strict;
}
@keyframes particleFloat {
    0% { opacity:0; transform:translateY(0) scale(0); }
    8% { opacity:.5; transform:translateY(-10px) scale(1); }
    90% { opacity:.2; }
    100% { opacity:0; transform:translateY(-900px) scale(0); }
}

.hero__content {
    position: relative; z-index: 30; text-align: center;
    max-width: 920px; padding: 0 var(--container-pad);
}

.hero__badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 24px;
    background: rgba(200,16,46,0.06);
    border: 1px solid rgba(200,16,46,0.15);
    border-radius: var(--radius-full);
    font-size: 12px; font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 36px;
}
.hero__badge-dot {
    width: 6px; height: 6px; background: var(--accent);
    border-radius: 50%; animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
    0%,100% { opacity:1; transform:scale(1); }
    50% { opacity:.4; transform:scale(.6); }
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(44px, 7.5vw, 92px);
    font-weight: 700; line-height: 1.05;
    letter-spacing: -2px; margin-bottom: 28px;
    color: var(--text-heading);
    transition: color .6s;
}
.hero__title-line { display: block; }
.hero__title-line--accent {
    color: var(--accent);
    font-style: italic;
    text-shadow: 0 0 80px var(--accent-glow), 0 0 160px rgba(200,16,46,0.12);
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(15px,1.8vw,19px);
    color: var(--text-primary);
    max-width: 540px; margin: 0 auto 44px;
    line-height: 1.8; font-weight: 300;
}

.hero__actions {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; flex-wrap: wrap;
    position: relative; z-index: 35;
    padding-bottom: 8px;
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 36px; font-size: 13px; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
    border-radius: var(--radius-full);
    transition: all .5s var(--ease-out-expo);
    position: relative; overflow: hidden;
}
.btn--primary {
    background: var(--accent); color: #fff;
    border: 1px solid var(--accent);
}
.btn--primary:hover {
    background: var(--accent-light);
    box-shadow: 0 0 50px var(--accent-glow), 0 8px 30px rgba(200,16,46,0.25);
    transform: translateY(-3px);
}
.btn--ghost {
    background: transparent; color: var(--text-heading);
    border: 1px solid var(--border-hover);
}
.btn--ghost:hover {
    border-color: var(--accent); color: var(--accent);
    transform: translateY(-3px);
}
.btn--full { width: 100%; justify-content: center; }


/* ── Hero 3D Shapes ─────────────────────────────────── */
.hero__3d-shapes {
    position: absolute; inset: 0; z-index: 1;
    pointer-events: none; perspective: 800px;
}

.hero__shape {
    position: absolute; border: 1px solid rgba(200,16,46,0.12);
    border-radius: var(--radius-md);
    transform-style: preserve-3d;
    will-change: transform;
}

.hero__shape--1 {
    width: 140px; height: 140px; right: 12%; top: 20%;
    background: linear-gradient(135deg, rgba(200,16,46,0.03), transparent);
    animation: shapeFloat1 16s ease-in-out infinite;
    box-shadow: inset 0 0 40px rgba(200,16,46,0.04);
}
.hero__shape--2 {
    width: 90px; height: 90px; left: 10%; bottom: 25%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,16,46,0.04), transparent 70%);
    animation: shapeFloat2 20s ease-in-out infinite;
}
.hero__shape--3 {
    width: 180px; height: 180px; right: 8%; bottom: 18%;
    border-radius: var(--radius-lg);
    border-color: rgba(200,16,46,0.08);
    background: linear-gradient(45deg, rgba(200,16,46,0.02), transparent);
    animation: shapeFloat3 14s ease-in-out infinite;
    box-shadow: 0 0 60px rgba(200,16,46,0.04);
}
.hero__shape--4 {
    width: 70px; height: 70px; left: 18%; top: 30%;
    border-radius: 50%;
    border-color: rgba(200,16,46,0.1);
    background: radial-gradient(circle, rgba(200,16,46,0.05), transparent);
    animation: shapeFloat1 18s ease-in-out infinite reverse;
}

@keyframes shapeFloat1 {
    0%,100% { transform:translateY(0) translateZ(0) rotateX(0) rotateY(0); }
    25% { transform:translateY(-30px) translateZ(40px) rotateX(20deg) rotateY(15deg); }
    50% { transform:translateY(-50px) translateZ(20px) rotateX(0) rotateY(25deg); }
    75% { transform:translateY(-20px) translateZ(60px) rotateX(-15deg) rotateY(8deg); }
}
@keyframes shapeFloat2 {
    0%,100% { transform:translate(0,0) translateZ(0) rotate(0); }
    33% { transform:translate(20px,-35px) translateZ(50px) rotate(120deg); }
    66% { transform:translate(-15px,-55px) translateZ(30px) rotate(240deg); }
}
@keyframes shapeFloat3 {
    0%,100% { transform:translate(0,0) translateZ(0) rotateZ(0); }
    50% { transform:translate(-25px,-40px) translateZ(45px) rotateZ(12deg); }
}
.hero__shape--5 {
    width: 200px; height: 200px; left: 50%; top: 15%;
    transform: translateX(-50%);
    border-radius: var(--radius-xl);
    border-color: rgba(200,16,46,0.06);
    background: linear-gradient(180deg, rgba(200,16,46,0.03), transparent);
    animation: shapeFloat2 22s ease-in-out infinite;
    box-shadow: 0 0 80px rgba(200,16,46,0.03);
}


/* ── Section Common ─────────────────────────────────── */
.section-label {
    display: inline-block; font-size: 11px; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 16px;
    position: relative; padding-left: 28px;
}
.section-label::before {
    content: ''; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%); width: 16px; height: 1.5px;
    background: var(--accent);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px,4.5vw,60px); font-weight: 700;
    line-height: 1.1; letter-spacing: -1.5px;
    margin-bottom: 20px; color: var(--text-heading);
    transition: color .6s;
}
.text-accent { color: var(--accent); font-style: italic; }

/* Smooth gradient fade from hero to about section */
.hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 180px; z-index: 1; pointer-events: none;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
}

/* ── About Section ──────────────────────────────────── */
.about { padding: var(--section-pad) 0; position: relative; }

.about__container {
    max-width: var(--container); margin: 0 auto;
    padding: 0 var(--container-pad);
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 56px; align-items: center;
}

.about__text {
    font-size: 16px; color: var(--text-primary);
    line-height: 1.9; margin-bottom: 48px;
}

.about__stats { display: flex; gap: 40px; }

.about__stat {
    position: relative; padding-right: 40px;
}
.about__stat:not(:last-child)::after {
    content: ''; position: absolute; right: 0; top: 50%;
    transform: translateY(-50%); width: 1px; height: 36px;
    background: var(--border);
}
.about__stat-number {
    display: block; font-size: 48px; font-weight: 800;
    color: var(--accent); line-height: 1; margin-bottom: 6px;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.about__stat-label {
    font-size: 12px; color: var(--text-muted); line-height: 1.4;
    text-transform: uppercase; letter-spacing: .5px; font-weight: 600;
}

.about__card-top {
    position: absolute; top: 0; left: 0; right: 0;
    padding: 28px 36px;
    background: linear-gradient(to bottom, rgba(200,16,46,0.1), rgba(200,16,46,0.04) 60%, transparent);
    z-index: 3;
    display: flex; align-items: flex-start;
}
.about__card-badge {
    display: inline-block;
    font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--accent);
    padding: 6px 14px;
    background: rgba(200,16,46,0.08);
    border: 1px solid rgba(200,16,46,0.25);
    border-radius: var(--radius-full);
}
.about__card-metric {
    text-align: right; flex-shrink: 0;
}
.about__card-metric-val {
    display: block; font-size: 22px; font-weight: 800;
    color: var(--accent); line-height: 1;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.about__card-metric-label {
    display: block; font-size: 9px; text-transform: uppercase;
    letter-spacing: 1px; color: var(--text-muted); margin-top: 4px;
}

/* ── About 3D Card ──────────────────────────────────── */
.about__3d-card {
    perspective: 1000px; width: 100%; max-width: 420px; margin-left: auto;
}
.about__card-inner {
    position: relative; width: 100%; aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-tertiary));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl); overflow: hidden;
    transition: transform .7s var(--ease-out-expo), box-shadow .7s var(--ease-out-expo);
    transform-style: preserve-3d;
}
.about__card-inner:hover {
    box-shadow: var(--shadow-card-hover);
    transform: rotateY(3deg) rotateX(2deg) translateZ(20px);
}

.about__card-pattern {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(200,16,46,0.07), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(200,16,46,0.04), transparent 50%);
}
.about__card-content {
    position: relative; z-index: 2;
    padding: 48px 36px; display: flex;
    flex-direction: column; justify-content: flex-end; height: 100%;
}
.about__card-icon-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; gap: 16px;
}
.about__card-icon { color: var(--accent); flex-shrink: 0; }
.about__card-content h3 {
    font-family: var(--font-display); font-size: 26px;
    font-weight: 600; margin-bottom: 10px; letter-spacing: -.5px;
    color: var(--text-heading);
}
.about__card-content p { font-size: 14px; color: var(--text-primary); line-height: 1.7; }
.about__card-marketing {
    margin-top: 10px;
    font-size: 12px; color: var(--accent); font-weight: 600;
    letter-spacing: 0.3px; opacity: 0.85;
}
.about__card-features {
    display: flex; flex-direction: column; gap: 8px;
    margin-top: 16px; padding-top: 16px;
    border-top: 1px solid var(--border);
}
.about__card-feat {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--text-primary); font-weight: 500;
}
.about__card-feat svg { color: var(--accent); flex-shrink: 0; }

@media (max-width:768px) {
    .about__3d-card { margin: 0 auto; max-width: calc(100% - 32px); }
    .about__card-inner { aspect-ratio: auto; }
    .about__card-top {
        position: static;
        padding: 20px 20px 0;
        background: linear-gradient(to bottom, rgba(200,16,46,0.08), transparent);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
    .about__card-content {
        padding: 16px 20px 32px;
        justify-content: flex-start;
    }
    .about__card-icon-row { margin-bottom: 16px; }
    .about__card-content h3 { font-size: 22px; }
}

/* Главная: блоки ниже героя не перекрывают CTA при наложении */
.about {
    position: relative; z-index: 12;
}

/* ── Services ───────────────────────────────────────── */
.services {
    padding: var(--section-pad) 0;
    position: relative; z-index: 18;
    background: var(--bg-secondary);
    transition: var(--transition-theme);
}
.services::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-glow), transparent);
}
.services__container {
    max-width: var(--container); margin: 0 auto;
    padding: 0 var(--container-pad);
}
.services__header {
    text-align: center; max-width: 580px; margin: 0 auto 64px;
}
.services__desc {
    font-size: 16px; color: var(--text-primary); line-height: 1.8;
}
.services__grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

/* ── Service Card ───────────────────────────────────── */
.service-card {
    position: relative;
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all .6s var(--ease-out-expo);
    overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(200,16,46,0.04), transparent 60%);
    opacity: 0; transition: opacity .5s;
    border-radius: var(--radius-lg);
}
.service-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-card-hover);
}
.service-card:hover::before { opacity: 1; }
.service-card::after {
    content: ''; position: absolute; inset: -1px;
    border-radius: var(--radius-lg); z-index: -1; opacity: 0;
    background: linear-gradient(135deg, rgba(200,16,46,0.3), transparent 40%, transparent 60%, rgba(200,16,46,0.15));
    transition: opacity .5s;
}
.service-card:hover::after { opacity: 1; filter: blur(12px); }

.service-card__number {
    font-size: 56px; font-weight: 900;
    color: rgba(255,255,255,0.18);
    position: absolute; top: -6px; right: 14px;
    line-height: 1; letter-spacing: -3px;
    transition: color .5s;
}
[data-theme="light"] .service-card__number { color: rgba(0,0,0,0.12); }
.service-card:hover .service-card__number { color: rgba(200,16,46,0.35); }

.service-card__icon {
    color: var(--accent); margin-bottom: 18px;
    position: relative; z-index: 1;
    transition: transform .5s var(--ease-out-expo);
}
.service-card:hover .service-card__icon { transform: scale(1.1) translateY(-2px); }

.service-card__title {
    font-size: 17px; font-weight: 700; margin-bottom: 8px;
    position: relative; z-index: 1; letter-spacing: -.3px;
    color: var(--text-heading); transition: color .6s;
}
.service-card__desc {
    font-size: 13px; color: var(--text-primary);
    line-height: 1.7; position: relative; z-index: 1;
}
.service-card__line {
    position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(to right, var(--accent), var(--accent-light));
    transition: width .7s var(--ease-out-expo);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.service-card:hover .service-card__line { width: 100%; }
.service-card__top-shimmer {
    position: absolute; top: -1px; left: 0; right: 0;
    height: 2px; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
    background-size: 200% 100%;
    opacity: 0; transition: opacity .5s;
    animation: shimmer 3s linear infinite;
}
.service-card:hover .service-card__top-shimmer { opacity: 1; }

/* ── Approach / Marquee ─────────────────────────────── */
.approach { padding: var(--section-pad) 0; position: relative; overflow: hidden; }


.approach__container {
    max-width: var(--container); margin: 0 auto;
    padding: 0 var(--container-pad);
}
.approach__header { text-align: center; margin-bottom: 64px; }

.approach__steps {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 28px;
}
.approach__step {
    position:relative; padding:36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all .6s var(--ease-out-expo);
}
.approach__step:hover {
    border-color: var(--border-accent);
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-card-hover);
}
.approach__step::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 2px; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
    background-size: 200% 100%;
    opacity: 0; transition: opacity .5s;
}
.approach__step:hover::after {
    opacity: 1;
    animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.approach__step-num {
    font-size: 44px; font-weight: 900;
    color: var(--accent); opacity:.12;
    line-height:1; margin-bottom:18px; letter-spacing:-2px;
}
.approach__step h3 {
    font-size: 18px; font-weight: 700; margin-bottom: 10px;
    letter-spacing: -.3px; color: var(--text-heading);
}
.approach__step p { font-size: 13px; color: var(--text-primary); line-height: 1.7; }

.approach__marquee {
    margin-top: 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.approach__marquee-track {
    display: flex;
    align-items: center;
    gap: 18px;
    width: max-content;
    padding: 14px 0;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: .22em;
    font-weight: 700;
    white-space: nowrap;
    will-change: transform;
    animation: marqueeMove 28s linear infinite;
}

@keyframes marqueeMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Contact ────────────────────────────────────────── */
.contact {
    padding: var(--section-pad) 0;
    background: var(--bg-secondary);
    position: relative;
    transition: var(--transition-theme);
}
.contact::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-glow), transparent);
}
.contact__container {
    max-width: var(--container); margin: 0 auto;
    padding: 0 var(--container-pad);
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
    align-items: start;
}
.contact__text {
    font-size: 16px; color: var(--text-primary);
    line-height: 1.9; margin-bottom: 32px;
}
.contact__info { display: flex; flex-direction: column; gap: 14px; }
.contact__info-item {
    display: flex; align-items: center; gap: 12px;
    color: var(--text-primary); font-size: 14px;
}
.contact__info-item svg { color: var(--accent); flex-shrink: 0; }

/* ── Form ───────────────────────────────────────────── */
.contact__form { display: flex; flex-direction: column; gap: 18px; }

.contact__input {
    width: 100%; padding: 16px 22px;
    background: var(--bg-card);
    border: 1.5px solid rgba(200,16,46,0.35);
    border-radius: var(--radius-md);
    color: var(--text-heading); font-size: 14px;
    transition: all .4s var(--ease-smooth);
    outline: none;
    box-shadow: 0 2px 12px rgba(200,16,46,0.05);
}
.contact__input::placeholder { color: var(--text-muted); }
.contact__input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(200,16,46,0.12), 0 2px 12px rgba(200,16,46,0.08);
}
.contact__textarea { resize: vertical; min-height: 120px; }

/* ── Footer ─────────────────────────────────────────── */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    transition: var(--transition-theme);
}
.footer__container {
    max-width: var(--container); margin: 0 auto;
    padding: 0 var(--container-pad);
}
.footer__top {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 28px;
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__links { display: flex; gap: 28px; }
.footer__links a {
    font-size: 13px; color: var(--text-primary);
    transition: color .3s; text-transform: uppercase;
    letter-spacing: .5px; font-weight: 500;
}
.footer__links a:hover { color: var(--accent); }
.footer__bottom { padding-top: 28px; border-top: 1px solid var(--border); }
.footer__bottom p { font-size: 12px; color: var(--text-muted); }

/* ── Reveal Animation ───────────────────────────────── */
.reveal {
    opacity: 0; transform: translateY(50px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ── Calculator Page ────────────────────────────────── */
.calc-page {
    min-height: 100vh; padding: 120px 0 var(--section-pad);
    background: var(--bg-primary);
    transition: var(--transition-theme);
}
main.calc-page.with-page-back {
    padding-top: clamp(120px, 14vw, 170px);
}
@media (min-width: 1025px) and (max-width: 1320px) {
    .nav__links { gap: 4px; }
    .nav__link { padding: 6px 9px; font-size: 9.5px; letter-spacing: 0.28px; }
}
.calc-page__container {
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-pad);
}
.calc-page__header { text-align: center; margin-bottom: 48px; }

/* Progress Bar */
.calc-progress {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 48px;
}
.calc-progress__step {
    flex: 1; height: 3px;
    background: var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: all .4s;
}
.calc-progress__step.active .calc-progress__fill,
.calc-progress__step.done .calc-progress__fill { width: 100%; }
.calc-progress__fill {
    width: 0; height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: var(--radius-full);
    transition: width .6s var(--ease-out-expo);
}

/* Steps */
.calc-step {
    display: none; animation: fadeInUp .6s var(--ease-out-expo);
}
.calc-step.active { display: block; }

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

.calc-step__title {
    font-family: var(--font-display);
    font-size: 28px; font-weight: 600;
    color: var(--text-heading); margin-bottom: 8px;
    letter-spacing: -.5px;
}
.calc-step__subtitle {
    font-size: 14px; color: var(--text-primary);
    margin-bottom: 32px;
}

/* Option Cards */
.calc-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-options--cols-3 { grid-template-columns: repeat(3,1fr); }

.calc-option {
    padding: 24px 20px; text-align: center;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all .4s var(--ease-out-expo);
}
.calc-option:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}
.calc-option.selected {
    border-color: var(--accent);
    background: rgba(200,16,46,0.04);
    box-shadow: 0 0 0 3px rgba(200,16,46,0.1);
}
.calc-option__icon {
    font-size: 28px; margin-bottom: 12px;
    color: var(--accent);
}
.calc-option__icon svg { margin: 0 auto; }
.calc-option__name {
    font-size: 14px; font-weight: 600;
    color: var(--text-heading); margin-bottom: 4px;
}
.calc-option__desc {
    font-size: 12px; color: var(--text-muted); line-height: 1.5;
}

.calc-textarea {
    width: 100%; min-height: 140px; padding: 20px;
    background: var(--bg-card); border: 1.5px solid var(--border);
    border-radius: var(--radius-lg); color: var(--text-heading);
    font-size: 14px; resize: vertical; outline: none;
    transition: border-color .3s, box-shadow .3s;
}
.calc-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(200,16,46,0.08);
}
.calc-textarea::placeholder { color: var(--text-muted); }

.calc-nav {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 40px;
}

/* Result Card */
.calc-result {
    text-align: center; padding: 48px 36px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    position: relative; overflow: hidden;
}
.calc-result::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(200,16,46,0.06), transparent 60%);
    pointer-events: none;
}
.calc-result__price {
    font-family: var(--font-display);
    font-size: clamp(40px,6vw,68px); font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    margin: 24px 0;
    text-shadow: none;
}
.calc-result__price small {
    font-size: 18px; font-weight: 400;
    color: var(--text-primary); letter-spacing: 0;
}
.calc-result__subtitle {
    font-size: 14px; color: var(--text-muted);
    margin-bottom: 36px;
}
.calc-result__details {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    text-align: left; margin-bottom: 36px;
    padding: 24px; background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
}
.calc-result__detail-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.calc-result__detail-value { font-size: 14px; color: var(--text-heading); font-weight: 600; margin-top: 4px; }

/* Calc Contact Form */
.calc-contact {
    display: none; animation: fadeInUp .6s var(--ease-out-expo);
    margin-top: 36px;
}
.calc-contact.active { display: block; }
.calc-contact__form { display: flex; flex-direction: column; gap: 16px; }
.calc-contact__form input {
    width:100%; padding:16px 22px;
    background: var(--bg-card); border:1.5px solid var(--border);
    border-radius: var(--radius-md); color: var(--text-heading);
    font-size:14px; outline:none; transition: all .3s;
}
.calc-contact__form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(200,16,46,0.08);
}
.calc-contact__form input::placeholder { color: var(--text-muted); }

/* ── Performance: defer rendering of below-fold sections ── */
.services, .approach, .contact, .footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width:1200px) {
    .nav__links { gap: 5px; }
    .nav__link { font-size: 9px; padding: 6px 9px; letter-spacing: 0.25px; }
    .nav__cta { padding: 6px 12px; font-size: 9px; }
    .nav__logo-img { height: 56px; }
}

@media (max-width:1024px) {
    .services__grid { grid-template-columns: repeat(2,1fr); }
    .approach__steps { grid-template-columns: repeat(2,1fr); }
    .hero__shape { display: none; }
    .nav__links { gap: 10px; }
    .nav__link { font-size: 9px; letter-spacing: 0.2px; }
    .nav__logo-img { height: 48px; }
}

@media (max-width:768px) {
    .nav { padding: 8px 0; }
    .nav.scrolled { padding: 6px 0; }
    .nav__logo-img { height: 36px; }
    .nav__container { gap: 8px; }
    .nav__actions { gap: 8px; margin-left: 4px; padding-left: 8px; }
    .theme-toggle { width: 32px; height: 32px; font-size: 15px; }
    .lang-dropdown__current { font-size: 11px; padding: 4px 10px; }
    .nav__links, .nav__cta { display:none; }
    .nav__burger { display:flex; }

    .hero { padding-top: 90px; }

    .about__container { grid-template-columns:1fr; gap:48px; }
    .about__stats { flex-wrap:wrap; gap:24px; }
    .about__stat { padding-right:0; }
    .about__stat:not(:last-child)::after { display:none; }
    .about__3d-card { margin-left:0; max-width: 100%; }

    .services__grid { grid-template-columns: 1fr; }
    .approach__steps { grid-template-columns: 1fr; }
    .contact__container { grid-template-columns:1fr; gap:48px; }
    .footer__top { flex-direction:column; gap:20px; }
    .footer__links { flex-wrap:wrap; justify-content:center; gap:14px; }

    .cursor, .cursor-follower { display:none; }
    body, button, a, input, textarea, select { cursor: auto; }

    .calc-options { grid-template-columns: 1fr; }
    .calc-options--cols-3 { grid-template-columns: 1fr; }
    .calc-result__details { grid-template-columns: 1fr; }

}

@media (max-width:480px) {
    .hero__title { letter-spacing:-1px; }
    .hero__actions { flex-direction:column; width:100%; }
    .btn { width:100%; justify-content:center; }

    .service-card__title { font-size: 15px; }
    .service-card__desc { font-size: 12px; }
    .section-title { font-size: clamp(26px, 6vw, 40px); }

    .fab-hub { bottom: 36px; right: 16px; }
    .fab-hub__trigger { width: 48px; height: 48px; }
    .fab-hub__item { width: 40px; height: 40px; }
}

/* ── FAB Hub (floating action button) ────────────────── */
.fab-hub {
    position: fixed; bottom: 48px; right: 28px;
    z-index: 950;
    display: block;
}
.fab-hub__trigger {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 28px rgba(200,16,46,0.4);
    transition: all .3s var(--ease-out-expo);
    cursor: pointer; border: none;
}
.fab-hub__trigger:hover {
    background: var(--accent-light);
    transform: scale(1.08);
    box-shadow: 0 8px 36px rgba(200,16,46,0.5);
}
.fab-hub__items {
    position: absolute; bottom: 68px; right: 0;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    opacity: 0; visibility: hidden;
    transform: translateY(10px) scale(0.8);
    transition: all .35s var(--ease-out-expo);
    pointer-events: none;
}
.fab-hub.open .fab-hub__items {
    opacity: 1; visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
.fab-hub__item {
    width: 46px; height: 46px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all .3s var(--ease-out-expo);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    color: #fff;
    text-decoration: none;
}
.fab-hub__item--tg { background: #2A8FEA; }
.fab-hub__item--wa { background: #25D366; }
.fab-hub__item--calc { background: var(--accent-light); }
[data-theme="light"] .fab-hub__item--calc { background: var(--accent); }
.fab-hub__logo {
    width: 22px; height: 22px;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}
.fab-hub__calc-svg {
    flex-shrink: 0;
    display: block;
}
.fab-hub__item:hover { transform: scale(1.15); }

/* ── Social Proof Notification ──────────────────────── */
.social-proof {
    position: fixed; bottom: 32px; left: 32px;
    z-index: 900;
    display: flex; align-items: center; gap: 12px;
    padding: 14px 22px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    opacity: 0; visibility: hidden;
    transform: translateX(-30px);
    transition: all .6s var(--ease-out-expo);
}
.social-proof.show {
    opacity: 1; visibility: visible;
    transform: translateX(0);
}
.social-proof__avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: #fff;
    flex-shrink: 0;
}
.social-proof__text { font-size: 13px; color: var(--text-primary); line-height: 1.4; }
.social-proof__text strong { color: var(--text-heading); display: block; font-size: 14px; }

/* ── Section Divider Waves ──────────────────────────── */
.section-wave {
    position: relative; overflow: hidden;
}
.section-wave::after {
    content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
    height: 60px;
    background: var(--bg-secondary);
    clip-path: ellipse(60% 100% at 50% 100%);
}

/* ── Glassmorphism Cards ────────────────────────────── */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

/* ── Smart Matching Feedback ─────────────────────────── */
.calc-smart-context {
    margin-bottom: 16px; padding: 14px 20px;
    background: rgba(200,16,46,0.04);
    border: 1px solid rgba(200,16,46,0.12);
    border-radius: var(--radius-md);
}
.calc-smart-context__hint {
    font-size: 13px; color: var(--accent-light);
    line-height: 1.6;
}
.calc-smart-feedback {
    display: flex; align-items: center; gap: 8px;
    margin-top: 12px; padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 13px; transition: all .3s;
}
.calc-smart-feedback.relevant {
    background: rgba(34,197,94,0.06);
    border: 1px solid rgba(34,197,94,0.2);
    color: #22c55e;
}
.calc-smart-feedback.irrelevant {
    background: rgba(239,68,68,0.06);
    border: 1px solid rgba(239,68,68,0.2);
    color: #ef4444;
}

/* ── RTL Support ────────────────────────────────────── */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .section-label { padding-left: 0; padding-right: 28px; }
[dir="rtl"] .section-label::before { left: auto; right: 0; }
[dir="rtl"] .lang-dropdown__list { right: auto; left: 0; }

/* ── Toast ───────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 16px 28px;
    font-size: 14px;
    color: var(--text-heading);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s var(--ease-out-expo);
    z-index: 9999;
    box-shadow: var(--shadow-glow);
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ── Portfolio cards (works / articles lists) ───────── */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 8px;
}
.portfolio-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
    box-shadow: var(--shadow-sm);
}
.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.portfolio-card__media {
    aspect-ratio: 4 / 5;
    background: var(--bg-secondary);
    overflow: hidden;
}
.portfolio-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s var(--ease-out-expo);
}
.portfolio-card:hover .portfolio-card__media img {
    transform: scale(1.07);
}
.portfolio-card__media--placeholder {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary, #1a1a1c));
    opacity: 0.5;
}
.portfolio-card__body {
    padding: 18px 18px 20px;
}
.portfolio-card__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.portfolio-card__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.25;
}
.portfolio-card__sub {
    margin: 8px 0 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Detail page (work / article) ───────────────────── */
.detail-page__hero {
    margin-bottom: 28px;
}
.detail-page__lead {
    max-width: 720px;
}
.detail-page__carousel-wrap {
    margin-bottom: 32px;
}
.detail-page__two-col {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 320px);
    gap: 24px;
    align-items: start;
    margin-bottom: 48px;
}
@media (max-width: 900px) {
    .detail-page__two-col { grid-template-columns: 1fr; }
}
.detail-page__h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 14px;
    color: var(--text-heading);
}
.detail-page__main.panel__section,
.detail-page__side.panel__section {
    margin-top: 0;
}
.detail-page__html {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-primary);
}

.work-review {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--bg-secondary);
    padding: 16px 16px;
}

.work-review__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.work-review__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.work-review__logo-img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: contain;
    border: 1px solid var(--border);
    background: var(--bg-glass);
}

.work-review__logo-link { display: inline-flex; }

.work-review__company {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.work-review__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.work-review__star {
    font-size: 1.05rem;
    color: rgba(148, 163, 184, 0.6);
}

.work-review__star.is-on {
    color: var(--accent);
}

.work-review__text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.work-tech-group {
    margin-top: 10px;
}

.work-tech-group__title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.work-tech-group__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-plain {
    white-space: pre-wrap;
    word-break: break-word;
}
.article-detail__body-wrap {
    margin-top: 8px;
}
.detail-page__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.detail-page__tag {
    font-size: 0.8125rem;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
}
.detail-page__tech {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 10px;
    border-radius: 999px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
}
.detail-page__tech img,
.detail-page__tech-icon {
    flex-shrink: 0;
    border-radius: 4px;
    object-fit: contain;
}
.detail-page__tech-label {
    font-size: 0.8125rem;
    font-weight: 500;
}
.detail-related__viewport {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.detail-related__track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 6px 4px 18px;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.detail-related__track .portfolio-card {
    flex: 0 0 min(272px, 85vw);
    scroll-snap-align: start;
    max-width: 320px;
}
.detail-related__arr {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    color: var(--text-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
}
.detail-related__arr:hover {
    background: var(--bg-card);
    transform: scale(1.05);
}
@media (max-width: 520px) {
    .detail-related__arr { width: 38px; height: 38px; }
}
.detail-page__more {
    margin-top: 24px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.detail-page__more-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.detail-page__more-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
}
.detail-page__more-link:hover { text-decoration: underline; }

/* ── ab-carousel ───────────────────────────────────── */
.ab-carousel {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    outline: none;
}
.ab-carousel__track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: min(70vh, 640px);
}
.ab-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s var(--ease-out-expo);
}
.ab-carousel__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.ab-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ab-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    color: var(--text-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, background 0.2s;
}
.ab-carousel__btn:hover { background: var(--bg-card); }
.ab-carousel__btn--prev { left: 12px; }
.ab-carousel__btn--next { right: 12px; }
.ab-carousel__dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}
.ab-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.ab-carousel__dot.is-active {
    background: var(--accent);
    transform: scale(1.15);
}
.ab-carousel__empty {
    padding: 48px;
    text-align: center;
    color: var(--text-secondary);
}

