/* ============================================================
   ПОРТФОЛИО ДМИТРИЯ ГРИГОРЬЕВА — ЕДИНЫЙ ФАЙЛ СТИЛЕЙ
   Покрывает: главную, блог (список + статья), 404
   ============================================================ */

/* ============================================================
   1. ПЕРЕМЕННЫЕ
   ============================================================ */
:root {
    --orange: #ff7a1a;
    --orange-light: #ff9e4a;
    --orange-dark: #e05e00;
    --orange-glow: rgba(255, 122, 26, 0.3);
    --dark: #0a0a0a;
    --dark-gray: #121212;
    --gray: #1e1e1e;
    --light-gray: #2a2a2a;
    --text: #f0f0f0;
    --text-muted: #a0a0a0;
    --success: #2ecc71;
    --ai-glow: rgba(100, 220, 255, 0.25);
    --ai-color: #64dcff;
    --bs-body-bg: #0a0a0a;
    --bs-body-color: #f0f0f0;
}

/* ============================================================
   2. БАЗА
   ============================================================ */
* {
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
}

::selection {
    background: var(--orange);
    color: #000;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 10px;
}

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

a:hover {
    text-decoration: none;
    color: var(--orange-light)
}

/* ============================================================
   3. KEYFRAMES (все анимации в одном месте)
   ============================================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes numberPop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.15);
    }

    70% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseRing {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 122, 26, 0.5);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(255, 122, 26, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 122, 26, 0);
    }
}

@keyframes aiPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 var(--ai-glow);
    }

    50% {
        box-shadow: 0 0 25px 6px var(--ai-glow);
    }
}

@keyframes dotPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes caseReveal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes glitch {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(-3px, 2px);
    }

    40% {
        transform: translate(3px, -2px);
    }

    60% {
        transform: translate(-2px, -2px);
    }

    80% {
        transform: translate(2px, 2px);
    }
}

/* ============================================================
   4. ANIMATE ON SCROLL
   ============================================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.3, 1),
        transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* ============================================================
   5. НАВИГАЦИЯ
   ============================================================ */
.navbar-custom {
    background: transparent;
    transition: all 0.35s;
    padding: 1.2rem 0;
}

.navbar-custom.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 122, 26, 0.2);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--text) !important;
    letter-spacing: -0.03em;
}

.navbar-brand span {
    color: var(--orange);
}

.navbar-custom .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    margin: 0 0.5rem;
    padding: 0.5rem 0.4rem !important;
    transition: color 0.3s;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--orange);
    transition: width 0.3s;
}

.navbar-custom .nav-link:hover {
    color: var(--text) !important;
}

.navbar-custom .nav-link:hover::after {
    width: 100%;
}

.navbar-custom .nav-link.active {
    color: var(--orange) !important;
}

.navbar-custom .nav-link.active::after {
    width: 100%;
}

.navbar-custom .navbar-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: var(--orange) !important;
    color: #000 !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 1.4rem !important;
    border-radius: 50px !important;
    margin-left: 0.8rem;
    line-height: 1.2;
    border: none;
    box-shadow: 0 4px 14px rgba(255, 122, 26, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none !important;
}

.navbar-custom .navbar-cta::after {
    display: none !important;
}

.navbar-custom .navbar-cta:hover {
    background: var(--orange-light) !important;
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 122, 26, 0.5);
}

.navbar-custom .navbar-cta i {
    font-size: 0.85rem;
    margin: 0 !important;
}

.navbar-toggler {
    border: 1px solid var(--orange);
    padding: 0.4rem 0.6rem;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px var(--orange-glow);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ff7a1a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================================
   6. DOTTED-SCROLLSPY
   ============================================================ */
.dotted-scrollspy {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-60%);
    z-index: 901;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    padding: 12px 8px;
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    border: 1px solid rgba(255, 122, 26, 0.15);
    transition: all 0.3s ease;
    max-height: calc(100vh - 200px);
    pointer-events: auto;
}

.dotted-scrollspy:hover {
    background: rgba(18, 18, 18, 0.9);
    border-color: rgba(255, 122, 26, 0.4);
}

.dotted-scrollspy a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dotted-scrollspy .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--light-gray);
    border: 1px solid rgba(255, 122, 26, 0.3);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.dotted-scrollspy a:hover .dot {
    background: var(--orange-light);
    border-color: var(--orange-light);
    transform: scale(1.3);
}

.dotted-scrollspy a.active .dot {
    background: var(--orange);
    border-color: var(--orange);
    width: 12px;
    height: 12px;
    box-shadow: 0 0 12px rgba(255, 122, 26, 0.8);
    animation: dotPop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}

.dotted-scrollspy .dot-label {
    position: absolute;
    right: 100%;
    margin-right: 12px;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: var(--orange);
    color: #000;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dotted-scrollspy .dot-label::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: var(--orange);
}

.dotted-scrollspy a:hover .dot-label,
.dotted-scrollspy a.active .dot-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ============================================================
   7. HERO (главная)
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 110px;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at top right, rgba(255, 122, 26, 0.1), transparent 60%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 122, 26, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 8s infinite ease-in-out;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 122, 26, 0.12);
    border: 1px solid rgba(255, 122, 26, 0.3);
    color: var(--orange);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.8s ease;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulseRing 2s infinite;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.3rem;
    animation: fadeUp 1s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

.hero-title .highlight {
    color: var(--orange);
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--orange-glow);
    z-index: -1;
    border-radius: 4px;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, .9rem);
    color: var(--text-muted);
    max-width: 620px;
    margin-bottom: 2rem;
    animation: fadeUp 1s 0.15s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.hero-sub strong {
    color: var(--text);
    font-weight: 600;
}

.hero-sub .ai-highlight {
    color: var(--ai-color);
    font-weight: 600;
    white-space: nowrap;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

/* Кнопки */
.btn-primary-orange {
    background: var(--orange);
    color: #000;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.9rem 2rem;
    border: none;
    box-shadow: 0 8px 25px rgba(255, 122, 26, 0.35);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
}

.btn-primary-orange:hover {
    background: var(--orange-light);
    color: #000;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(255, 122, 26, 0.5);
}

.btn-secondary-outline {
    background: transparent;
    color: var(--text);
    font-weight: 600;
    border: 2px solid var(--light-gray);
    border-radius: 50px;
    padding: 0.9rem 2rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
}

.btn-secondary-outline:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-4px);
}

/* Hero trust */
.hero-trust {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: 560px;
    animation: fadeUp 1s 0.3s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(30, 30, 30, 0.85);
    border: 1.5px solid rgba(255, 122, 26, 0.35);
    border-radius: 14px;
    padding: 0.7rem 1rem;
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.trust-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--orange), var(--orange-light));
    opacity: 0.8;
}

.trust-item:hover {
    border-color: var(--orange);
    background: rgba(255, 122, 26, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -8px rgba(255, 122, 26, 0.35);
}

.trust-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 122, 26, 0.15);
    border: 1px solid rgba(255, 122, 26, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.trust-icon i {
    color: var(--orange);
    font-size: 1.05rem;
}

.trust-item:hover .trust-icon {
    background: var(--orange);
    border-color: var(--orange);
}

.trust-item:hover .trust-icon i {
    color: #000;
}

.trust-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.trust-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.trust-value span {
    color: var(--orange);
}

.trust-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hero visual — сфера */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1.2s ease;
}

.code-sphere {
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--orange-dark), #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: float 6s infinite ease-in-out;
    box-shadow: 0 0 60px rgba(255, 122, 26, 0.3);
    margin: 0 auto;
}

.code-sphere::after {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    border: 2px dashed var(--orange);
    opacity: 0.4;
    animation: spinSlow 20s linear infinite;
}

.code-sphere i {
    font-size: 7.5rem;
    color: var(--orange);
    filter: drop-shadow(0 0 20px rgba(255, 122, 26, 0.8));
}

.code-sphere::before {
    content: '';
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 122, 26, 0.15);
    pointer-events: none;
}

.sphere-ai-badge {
    position: absolute;
    bottom: -8px;
    right: -8px;
    background: var(--dark-gray);
    border: 2px solid var(--ai-color);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ai-color);
    animation: aiPulse 3s infinite;
    z-index: 4;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
}

.sphere-ai-badge i {
    font-size: 0.85rem;
    color: var(--ai-color);
}

/* ============================================================
   8. ОБЩИЕ СТИЛИ СЕКЦИЙ
   ============================================================ */
section {
    padding: 5.5rem 0;
}

.section-label {
    display: inline-block;
    color: var(--orange);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.section-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 680px;
    margin-bottom: 3rem;
}

/* ============================================================
   9. БОЛИ КЛИЕНТА
   ============================================================ */
.pain-card {
    background: var(--gray);
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    padding: 1.8rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.pain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--orange-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.pain-card:hover {
    transform: translateY(-8px);
    border-color: var(--orange);
    box-shadow: 0 25px 40px -15px rgba(255, 122, 26, 0.2);
}

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

.pain-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 122, 26, 0.12);
    border: 1px solid rgba(255, 122, 26, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--orange);
    margin-bottom: 1.1rem;
}

.pain-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.pain-card .pain-question {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.pain-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.pain-card .solution {
    color: var(--success);
    font-weight: 600;
    font-size: 0.88rem;
    margin-top: 0.6rem;
}

/* ============================================================
   10. ПРОЦЕСС
   ============================================================ */
.process-step {
    background: var(--gray);
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    padding: 2rem 1.6rem;
    height: 100%;
    position: relative;
    transition: all 0.4s;
}

.process-step:hover {
    border-color: var(--orange);
    transform: translateY(-6px);
}

.step-num {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--orange);
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 0.8rem;
    font-variant-numeric: tabular-nums;
}

.process-step h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0;
}

.step-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(46, 204, 113, 0.15);
    color: var(--success);
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    margin-top: 0.8rem;
}

/* Contract CTA */
.contract-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    background: linear-gradient(135deg, rgba(255, 122, 26, 0.18), rgba(255, 122, 26, 0.05));
    border: 2px solid var(--orange);
    border-radius: 22px;
    padding: 1.8rem 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
}

.contract-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--orange-light));
}

.contract-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(255, 122, 26, 0.35);
}

.contract-cta h4 {
    font-weight: 800;
    font-size: 1.15rem;
    margin: 0 0 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.contract-cta h4 i {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--orange);
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contract-cta p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0;
}

.btn-contract {
    background: var(--orange);
    color: #000;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.85rem 1.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 8px 20px rgba(255, 122, 26, 0.3);
    white-space: nowrap;
}

.btn-contract:hover {
    background: var(--orange-light);
    color: #000;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 122, 26, 0.5);
}

.btn-contract i {
    font-size: 1rem;
}

/* ============================================================
   11. ХОЛДИНГ
   ============================================================ */
.holding-card {
    background: linear-gradient(160deg, var(--gray), var(--dark-gray));
    border: 1px solid var(--light-gray);
    border-radius: 28px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.holding-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 122, 26, 0.1), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.holding-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--orange-light));
}

.holding-icon {
    width: 170px;
    height: auto;
    border-radius: 20px;
    background: rgba(255, 122, 26, 0.15);
    border: 1px solid rgba(255, 122, 26, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--orange);
    margin-bottom: 1.5rem;
    padding: 10px;
}

.holding-icon a img {
    width: 100%;
    height: auto;
}

.holding-icon a:hover {
    width: 100%;
    height: auto;
    border-bottom: 3px solid var(--orange);
}


.holding-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.holding-card h3 .highlight {
    color: var(--orange);
}

.holding-card p {
    color: var(--text-muted);
    font-size: 1.02rem;
    margin-bottom: 1rem;
}

.holding-card p strong {
    color: var(--text);
}

.holding-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 1.5rem 0;
}

.holding-highlights span {
    background: rgba(255, 122, 26, 0.1);
    border: 1px solid rgba(255, 122, 26, 0.25);
    color: var(--orange);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
}

.site-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.site-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--light-gray);
    border: 1px solid var(--light-gray);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    transition: all 0.3s;
}

.site-list a i {
    font-size: 0.7rem;
    opacity: 0.6;
}

.site-list a:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #000;
    transform: translateY(-3px);
}

.site-list a:hover i {
    opacity: 1;
}

.holding-note {
    background: rgba(46, 204, 113, 0.08);
    border-left: 3px solid var(--success);
    padding: 0.8rem 1.1rem;
    border-radius: 0 10px 10px 0;
    font-size: 0.9rem;
    color: var(--success);
    margin-top: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.holding-note i {
    margin-top: 3px;
}

/* ============================================================
   12. КЕЙСЫ (главная + блог + вёрстка)
   ============================================================ */
.case-card {
    background: var(--gray);
    border: 1px solid var(--light-gray);
    border-radius: 22px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s;
}

.case-card:hover {
    transform: translateY(-8px);
    border-color: var(--orange);
    box-shadow: 0 30px 50px -20px rgba(255, 122, 26, 0.2);
}

.case-preview {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

.case-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
    display: block;
}

.case-card:hover .case-preview img {
    transform: scale(1.07);
}

.case-category {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--orange);
    color: #000;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 3;
}

.case-card:hover .case-overlay {
    opacity: 1;
}

.case-overlay-btn {
    background: var(--orange);
    color: #000;
    font-weight: 700;
    padding: 0.65rem 1.6rem;
    border-radius: 50px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateY(15px);
    transition: transform 0.35s ease, box-shadow 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.case-card:hover .case-overlay-btn {
    transform: translateY(0);
}

.case-overlay-btn:hover {
    box-shadow: 0 0 25px rgba(255, 122, 26, 0.6);
    color: #000;
}

.case-body {
    padding: 1.5rem 1.6rem 1.7rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-body h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.case-body .case-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex: 1;
}

.case-result {
    background: rgba(46, 204, 113, 0.08);
    border-left: 3px solid var(--success);
    padding: 0.6rem 0.9rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1rem;
    font-size: 0.87rem;
    color: var(--success);
    font-weight: 600;
}

.case-tags span {
    font-size: 0.75rem;
    background: var(--light-gray);
    color: var(--text-muted);
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    margin-right: 0.3rem;
    display: inline-block;
    margin-bottom: 0.3rem;
}

.case-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--orange);
    font-weight: 600;
    font-size: 0.88rem;
    margin-top: 0.8rem;
    transition: gap 0.3s;
}

.case-link:hover {
    gap: 0.8rem;
    color: var(--orange-light);
}

/* Скрытые кейсы + подгрузка */
.case-hidden {
    display: none !important;
}

.case-hidden.revealed {
    display: block !important;
    animation: caseReveal 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

.load-more-cases-wrap {
    text-align: center;
    margin-top: 3rem;
}

.btn-load-more-cases {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    background: transparent;
    color: var(--text);
    border: 2px solid var(--light-gray);
    border-radius: 50px;
    padding: 0.95rem 2.4rem;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-load-more-cases::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    opacity: 0;
    transition: opacity 0.35s;
    z-index: 0;
}

.btn-load-more-cases>* {
    position: relative;
    z-index: 1;
}

.btn-load-more-cases:hover {
    border-color: var(--orange);
    color: #000;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(255, 122, 26, 0.4);
}

.btn-load-more-cases:hover::before {
    opacity: 1;
}

.btn-load-more-cases i {
    color: var(--orange);
    transition: all 0.3s;
}

.btn-load-more-cases:hover i {
    color: #000;
}

.btn-load-more-cases:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-load-more-cases:disabled:hover::before {
    opacity: 0;
}

.btn-load-more-cases:disabled:hover {
    color: var(--text);
    border-color: var(--light-gray);
    box-shadow: none;
}

.btn-load-more-cases:disabled:hover i {
    color: var(--orange);
}

.btn-load-more-cases.loading i {
    animation: spinSlow 1s linear infinite;
}

.load-more-cases-done {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 1rem;
}

.load-more-cases-done.show {
    display: flex;
}

.load-more-cases-done i {
    color: var(--success);
}

/* ============================================================
   13. ОТЗЫВЫ
   ============================================================ */
.review-card {
    background: var(--gray);
    border: 1px solid var(--light-gray);
    border-radius: 22px;
    padding: 2rem;
    height: 100%;
    position: relative;
    transition: all 0.4s;
}

.review-card:hover {
    border-color: var(--orange);
    transform: translateY(-6px);
    box-shadow: 0 25px 40px -15px rgba(255, 122, 26, 0.2);
}

.review-quote {
    font-size: 2rem;
    color: var(--orange);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 0.8rem;
}

.review-text {
    color: var(--text);
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.65;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.review-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0;
}

.review-role {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin: 0;
}

/* ============================================================
   14. ЦЕНЫ
   ============================================================ */
.price-card {
    background: var(--gray);
    border: 1px solid var(--light-gray);
    border-radius: 22px;
    padding: 2.2rem 1.8rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s;
    position: relative;
}

.price-card:hover {
    transform: translateY(-8px);
    border-color: var(--orange);
    box-shadow: 0 25px 40px -15px rgba(255, 122, 26, 0.2);
}

.price-card.featured {
    border-color: var(--orange);
    background: linear-gradient(160deg, rgba(255, 122, 26, 0.08), var(--gray));
}

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--orange);
    color: #000;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.price-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.price-value {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--orange);
    margin-bottom: 0.3rem;
}

.price-time {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.8rem;
    flex: 1;
}

.price-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.7rem;
}

.price-list li i {
    color: var(--success);
    margin-top: 4px;
    font-size: 0.8rem;
}

.btn-price {
    display: block;
    text-align: center;
    background: var(--light-gray);
    color: var(--text);
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 50px;
    transition: all 0.3s;
    font-size: 0.95rem;
    border: 1px solid var(--light-gray);
}

.btn-price:hover {
    background: var(--orange);
    color: #000;
    border-color: var(--orange);
}

.price-card.featured .btn-price {
    background: var(--orange);
    color: #000;
    border-color: var(--orange);
}

.price-card.featured .btn-price:hover {
    background: var(--orange-light);
}

/* ============================================================
   15. О СЕБЕ
   ============================================================ */
.about-brief {
    background: var(--gray);
    border: 1px solid var(--light-gray);
    border-radius: 24px;
    padding: 2.5rem;
    height: 100%;
}

.about-brief h3 {
    color: var(--orange);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.about-brief p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.about-brief strong {
    color: var(--text);
}

/* AI-блок */
.ai-block {
    background: linear-gradient(135deg, rgba(100, 220, 255, 0.1), rgba(100, 220, 255, 0.02));
    border: 1.5px solid rgba(100, 220, 255, 0.35);
    border-radius: 16px;
    padding: 1.2rem 1.3rem;
    margin: 1.2rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.ai-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--ai-color);
}

.ai-block:hover {
    border-color: var(--ai-color);
    box-shadow: 0 10px 30px -10px rgba(100, 220, 255, 0.35);
}

.ai-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(100, 220, 255, 0.15);
    border: 1px solid rgba(100, 220, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--ai-color);
    flex-shrink: 0;
    animation: aiPulse 3s infinite;
}

.ai-block h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ai-color);
    margin: 0 0 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ai-block p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

.ai-block p strong {
    color: var(--text);
}

/* Теги навыков */
.skill-tag {
    display: inline-block;
    background: var(--light-gray);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.83rem;
    font-weight: 500;
    border: 1px solid var(--light-gray);
    color: var(--text-muted);
    margin: 0 0.35rem 0.6rem 0;
    transition: all 0.3s;
}

.skill-tag:hover {
    background: var(--orange);
    color: #000;
    border-color: var(--orange);
    transform: translateY(-3px);
}

.skill-tag.ai-tag {
    background: rgba(100, 220, 255, 0.1);
    border-color: rgba(100, 220, 255, 0.4);
    color: var(--ai-color);
    font-weight: 700;
}

.skill-tag.ai-tag:hover {
    background: var(--ai-color);
    color: #000;
    border-color: var(--ai-color);
}

.skill-tag.ai-tag i {
    margin-right: 0.3rem;
}

/* Мини-статистика */
.stat-mini {
    background: var(--dark-gray);
    border: 1px solid var(--light-gray);
    border-radius: 16px;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.3s;
}

.stat-mini:hover {
    border-color: var(--orange);
    transform: translateY(-4px);
}

.stat-mini .num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--orange);
    line-height: 1;
}

.stat-mini .lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* ============================================================
   16. СЕРТИФИКАТЫ И БЛАГОДАРНОСТИ
   ============================================================ */
.cert-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
}

.cert-gallery-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.cert-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--light-gray);
    background: var(--gray);
    cursor: pointer;
    transition: all 0.4s;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-item.horizontal {
    aspect-ratio: 4 / 3;
}

.cert-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s, filter 0.4s;
}

.cert-item:hover {
    border-color: var(--orange);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 35px -10px rgba(255, 122, 26, 0.3);
}

.cert-item:hover img {
    transform: scale(1.06);
    filter: brightness(1.1);
}

.cert-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    background: rgba(10, 10, 10, 0.6);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.cert-item:hover::after {
    opacity: 1;
}

.cert-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 122, 26, 0.2), transparent 60%),
        linear-gradient(135deg, #1a1a1a, #252525, #1a1a1a);
    color: var(--orange);
    padding: 1rem;
    text-align: center;
}

.cert-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.cert-placeholder span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

/* ============================================================
   17. FAQ
   ============================================================ */
.accordion-item {
    background: var(--gray) !important;
    border: 1px solid var(--light-gray) !important;
    border-radius: 16px !important;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.accordion-button {
    background: var(--gray) !important;
    color: var(--text) !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 1.2rem 1.5rem;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: var(--orange) !important;
    background: var(--gray) !important;
}

.accordion-button::after {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(350deg);
}

.accordion-body {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 0 1.5rem 1.2rem;
}

/* ============================================================
   18. КОНТАКТЫ + QR
   ============================================================ */
.contact-card {
    background: var(--gray);
    border: 1px solid var(--light-gray);
    border-radius: 22px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-muted);
    transition: all 0.3s;
}

.contact-card i {
    font-size: 1.9rem;
    color: var(--orange);
    transition: transform 0.3s;
}

.contact-card:hover {
    color: var(--text);
    border-color: var(--orange);
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -10px rgba(255, 122, 26, 0.25);
}

.contact-card:hover i {
    transform: scale(1.15) rotate(5deg);
}

.contact-card .label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
}

.contact-card .value {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    word-break: break-word;
}

/* QR-блок */
.qr-block {
    margin-top: 3.5rem;
    background: linear-gradient(160deg, var(--gray), var(--dark-gray));
    border: 2px solid var(--light-gray);
    border-radius: 28px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
}

.qr-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--orange-light));
}

.qr-block:hover {
    border-color: var(--orange);
    box-shadow: 0 25px 50px -20px rgba(255, 122, 26, 0.25);
}

.qr-block-title {
    text-align: center;
    margin-bottom: 2rem;
}

.qr-block-title h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.qr-block-title h3 i {
    color: var(--orange);
    margin-right: 0.5rem;
}

.qr-block-title p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.qr-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-item:hover {
    border-color: var(--orange);
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -10px rgba(255, 122, 26, 0.3);
}

.qr-wrapper {
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    display: inline-block;
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.qr-item:hover .qr-wrapper {
    box-shadow: 0 12px 30px rgba(255, 122, 26, 0.4);
    transform: scale(1.03);
}

.qr-wrapper img {
    display: block;
    width: 140px;
    height: 140px;
    border-radius: 6px;
}

.qr-item .qr-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 122, 26, 0.15);
    border: 1px solid rgba(255, 122, 26, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    font-size: 1rem;
    margin-bottom: 0.6rem;
    transition: all 0.3s;
}

.qr-item:hover .qr-icon {
    background: var(--orange);
    color: #000;
    border-color: var(--orange);
}

.qr-item .qr-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.qr-item .qr-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* HR CTA */
.hr-cta-box {
    background: linear-gradient(135deg, rgba(255, 122, 26, 0.12), rgba(255, 122, 26, 0.03));
    border: 1px solid rgba(255, 122, 26, 0.3);
    border-radius: 22px;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

.hr-cta-box h4 {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 0 0.3rem;
}

.hr-cta-box p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0;
}

/* ============================================================
   19. ФУТЕР
   ============================================================ */
footer {
    padding: 2rem 0;
    color: var(--text-muted);
    border-top: 1px solid var(--light-gray);
    font-size: 0.92rem;
}

footer i {
    color: var(--orange);
}

/* ============================================================
   20. ЛАЙТБОКС
   ============================================================ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: zoomIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 80px rgba(255, 122, 26, 0.3);
    border: 3px solid var(--orange);
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: -10px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--orange);
    color: #000;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.lightbox-close:hover {
    background: var(--orange-light);
    transform: rotate(90deg) scale(1.1);
}

.lightbox-caption {
    position: absolute;
    bottom: -42px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    white-space: nowrap;
}

/* ============================================================
   21. SPEED DIAL (замена кнопки «Наверх»)
   ============================================================ */
.speed-dial {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 899;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.speed-dial-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    pointer-events: none;
}

.speed-dial-actions .speed-action {
    opacity: 0;
    transform: translateY(20px) scale(0.6);
    transition: opacity 0.35s cubic-bezier(0.2, 0.9, 0.3, 1),
        transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
    pointer-events: none;
}

.speed-dial.open .speed-dial-actions {
    pointer-events: auto;
}

.speed-dial.open .speed-dial-actions .speed-action {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.speed-dial.open .speed-dial-actions .speed-action:nth-child(1) {
    transition-delay: 0.1s;
}

.speed-dial.open .speed-dial-actions .speed-action:nth-child(2) {
    transition-delay: 0.05s;
}

.speed-dial.open .speed-dial-actions .speed-action:nth-child(3) {
    transition-delay: 0s;
}

.speed-action {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gray);
    border: 2px solid var(--orange);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    text-decoration: none;
    position: relative;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.speed-action:hover {
    background: var(--orange);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 122, 26, 0.6);
}

.speed-action::after {
    content: attr(data-label);
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(-8px);
    background: var(--orange);
    color: #000;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.speed-action::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(2px);
    border: 5px solid transparent;
    border-left-color: var(--orange);
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}

.speed-action:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(-2px);
}

.speed-action:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.speed-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 8px 25px rgba(255, 122, 26, 0.5);
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
    position: relative;
    animation: pulseRing 2.5s infinite;
}

.speed-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 35px rgba(255, 122, 26, 0.7);
}

.speed-toggle:active {
    transform: scale(1.02);
}

.speed-toggle i {
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.speed-dial.open .speed-toggle {
    animation: none;
    background: linear-gradient(135deg, var(--orange-light), var(--orange));
    box-shadow: 0 10px 30px rgba(255, 122, 26, 0.7);
}

.speed-dial.open .speed-toggle i {
    transform: rotate(45deg);
}

/* ============================================================
   22. MOBILE CTA (sticky снизу)
   ============================================================ */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-gray);
    border-top: 1px solid var(--orange);
    padding: 0.7rem 1rem;
    z-index: 998;
    gap: 0.6rem;
}

.mobile-cta a {
    flex: 1;
    text-align: center;
    padding: 0.7rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
}

.mobile-cta .m-call {
    background: var(--orange);
    color: #000;
}

.mobile-cta .m-tg {
    background: var(--light-gray);
    color: var(--text);
    border: 1px solid var(--light-gray);
}

/* ============================================================
   23. БЛОГ: СТРАНИЦА СПИСКА СТАТЕЙ
   ============================================================ */
.page-header {
    padding: 140px 0 60px;
    background: radial-gradient(ellipse at top right, rgba(255, 122, 26, 0.1), transparent 60%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 122, 26, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 8s infinite ease-in-out;
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-label {
    display: inline-block;
    color: var(--orange);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.8rem;
}

.page-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    line-height: 1.15;
    animation: fadeUp 1s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

.page-title .highlight {
    color: var(--orange);
}

.page-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 680px;
    margin-bottom: 0;
    animation: fadeUp 1s 0.15s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

/* Сетка блога + сайдбар */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    padding: 4rem 0 5rem;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    padding: 4rem 0 5rem;
}

/* Карточка статьи (список) */
.post-card {
    background: var(--gray);
    border: 1px solid var(--light-gray);
    border-radius: 22px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
    margin-bottom: 2rem;
}

.post-card:hover {
    transform: translateY(-8px);
    border-color: var(--orange);
    box-shadow: 0 30px 50px -20px rgba(255, 122, 26, 0.2);
}

.post-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.post-card:hover .post-card-image img {
    transform: scale(1.07);
}

.post-card-category {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--orange);
    color: #000;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-card-body {
    padding: 1.6rem 1.8rem 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.post-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.post-card-meta i {
    color: var(--orange);
    font-size: 0.8rem;
}

.post-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    color: var(--text);
    transition: color 0.3s;
}

.post-card:hover .post-card-title {
    color: var(--orange);
}

.post-card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    flex: 1;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

.post-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.post-card-tags span {
    font-size: 0.75rem;
    background: var(--light-gray);
    color: var(--text-muted);
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
}

.post-card-link {
    color: var(--orange);
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.3s;
    white-space: nowrap;
}

.post-card-link:hover {
    gap: 0.8rem;
    color: var(--orange-light);
}

/* Load more */
.load-more-wrap {
    text-align: center;
    padding: 1.5rem 0 0;
}

.btn-load-more {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--light-gray);
    border-radius: 50px;
    padding: 0.9rem 2.2rem;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-load-more:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-3px);
}

.btn-load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-load-more i {
    transition: transform 0.3s;
}

.btn-load-more.loading i {
    animation: spinSlow 1s linear infinite;
}

.load-more-done {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.load-more-done.show {
    display: flex;
}

.load-more-done i {
    color: var(--success);
}

/* Сайдбар блога */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--gray);
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s;
}

.sidebar-widget:hover {
    border-color: rgba(255, 122, 26, 0.4);
}

.sidebar-widget h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-widget h4 i {
    color: var(--orange);
    font-size: 0.95rem;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
    transition: all 0.3s;
}

.category-list a:hover,
.category-list a.active {
    background: rgba(255, 122, 26, 0.1);
    color: var(--orange);
    padding-left: 1rem;
}

.category-list .count {
    font-size: 0.75rem;
    background: var(--light-gray);
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    color: var(--text-muted);
    font-weight: 600;
}

.category-list a:hover .count,
.category-list a.active .count {
    background: var(--orange);
    color: #000;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag-cloud a {
    font-size: 0.82rem;
    background: var(--light-gray);
    color: var(--text-muted);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    transition: all 0.3s;
    border: 1px solid var(--light-gray);
}

.tag-cloud a:hover {
    background: var(--orange);
    color: #000;
    border-color: var(--orange);
    transform: translateY(-2px);
}

.sidebar-cta {
    background: linear-gradient(135deg, rgba(255, 122, 26, 0.15), rgba(255, 122, 26, 0.03));
    border: 1.5px solid rgba(255, 122, 26, 0.4);
    border-radius: 20px;
    padding: 1.8rem;
    text-align: center;
}

.sidebar-cta h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text);
    border: none;
    padding: 0;
    justify-content: center;
}

.sidebar-cta p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
}

.sidebar-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--orange);
    color: #000;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: none;
    width: 100%;
    justify-content: center;
}

.sidebar-cta .btn:hover {
    background: var(--orange-light);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 122, 26, 0.4);
}

/* ============================================================
   24. БЛОГ: СТРАНИЦА СТАТЬИ
   ============================================================ */
.article-header {
    padding: 140px 0 40px;
    background: radial-gradient(ellipse at top right, rgba(255, 122, 26, 0.1), transparent 60%);
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 122, 26, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 8s infinite ease-in-out;
    pointer-events: none;
}

.article-header .container {
    position: relative;
    z-index: 2;
}

.article-breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.article-breadcrumbs a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.article-breadcrumbs a:hover {
    color: var(--orange);
}

.article-breadcrumbs i {
    font-size: 0.7rem;
    opacity: 0.5;
}

.article-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--orange);
    color: #000;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.2rem;
}

.article-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1.3rem;
    animation: fadeUp 1s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-muted);
    animation: fadeUp 1s 0.15s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.article-meta i {
    color: var(--orange);
}

.article-content {
    background: var(--gray);
    border: 1px solid var(--light-gray);
    border-radius: 24px;
    overflow: hidden;
}

.article-hero-image {
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

.article-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    padding: 2.5rem 2.8rem 3rem;
    font-size: 1.05rem;
    line-height: 1.85;
}

.article-body p {
    color: var(--text-muted);
    margin-bottom: 1.4rem;
}

.article-body p strong {
    color: var(--text);
    font-weight: 600;
}

.article-body p em {
    color: var(--orange);
    font-style: italic;
}

.article-body h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--light-gray);
    letter-spacing: -0.02em;
}

.article-body h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.1rem;
    background: var(--orange);
    border-radius: 2px;
    margin-right: 0.7rem;
    vertical-align: middle;
}

.article-body ul,
.article-body ol {
    color: var(--text-muted);
    margin-bottom: 1.4rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body li strong {
    color: var(--text);
}

.article-body blockquote {
    background: rgba(255, 122, 26, 0.08);
    border-left: 4px solid var(--orange);
    border-radius: 0 12px 12px 0;
    padding: 1.2rem 1.5rem;
    margin: 1.8rem 0;
    color: var(--text);
    font-style: italic;
    font-size: 1.05rem;
}

.article-body blockquote strong {
    color: var(--orange);
}

.article-body .article-img {
    border-radius: 16px;
    overflow: hidden;
    margin: 2rem 0;
    border: 1px solid var(--light-gray);
}

.article-body .article-img img {
    width: 100%;
    display: block;
}

.article-body .article-img figcaption {
    padding: 0.8rem 1rem;
    background: var(--dark-gray);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

.article-body code {
    background: var(--dark-gray);
    color: var(--orange-light);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-body pre {
    background: var(--dark-gray);
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.article-tags-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.5rem 2.8rem 2rem;
    border-top: 1px solid var(--light-gray);
    background: var(--dark-gray);
}

.article-tags-bottom span {
    font-size: 0.85rem;
    background: var(--light-gray);
    color: var(--text-muted);
    padding: 0.35rem 0.95rem;
    border-radius: 50px;
}

.article-tags-bottom span:hover {
    background: var(--orange);
    color: #000;
    cursor: default;
}

/* Автор */
.author-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--gray);
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    padding: 1.8rem 2rem;
    margin-top: 2rem;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: #000;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.author-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.author-info a {
    color: var(--orange);
    font-weight: 600;
}

/* ============================================================
   25. СТРАНИЦА 404
   ============================================================ */
.error-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at top right, rgba(255, 122, 26, 0.1), transparent 60%);
}

.error-page::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 122, 26, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 8s infinite ease-in-out;
    pointer-events: none;
}

.error-page::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 122, 26, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 10s infinite ease-in-out reverse;
    pointer-events: none;
}

.error-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.error-code {
    font-size: clamp(6rem, 18vw, 14rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: var(--orange);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    text-shadow: 0 0 60px rgba(255, 122, 26, 0.4);
    animation: fadeUp 1s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

.error-code .zero {
    display: inline-block;
    position: relative;
    color: transparent;
    -webkit-text-stroke: 4px var(--orange);
    animation: glitch 4s infinite;
}

.error-code .zero::before,
.error-code .zero::after {
    content: '0';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--orange);
    opacity: 0.8;
}

.error-code .zero::before {
    color: var(--orange-light);
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    animation: glitch 4s infinite reverse;
}

.error-code .zero::after {
    color: var(--orange-dark);
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    animation: glitch 4s infinite 0.5s;
}

.error-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
    animation: fadeUp 1s 0.15s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.error-title .highlight {
    color: var(--orange);
}

.error-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 540px;
    margin: 0 auto 2.5rem;
    animation: fadeUp 1s 0.25s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.error-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    animation: fadeUp 1s 0.35s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
    margin-top: 3rem;
    animation: fadeUp 1s 0.45s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.quick-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--gray);
    border: 1px solid var(--light-gray);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    transition: all 0.3s;
}

.quick-links a i {
    color: var(--orange);
    font-size: 0.85rem;
    transition: transform 0.3s;
}

.quick-links a:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-2px);
    background: rgba(255, 122, 26, 0.08);
}

.quick-links a:hover i {
    transform: scale(1.15);
}

/* ============================================================
   26. АДАПТИВ
   ============================================================ */

/* Планшеты и меньше — общее */
@media (max-width: 991.98px) {

    /* Scrollspy скрыт */
    .dotted-scrollspy {
        display: none;
    }

    /* Навигация в выпадашке */
    .navbar-custom .navbar-collapse {
        background: var(--gray);
        border: 1px solid var(--light-gray);
        border-radius: 16px;
        margin-top: 1rem;
        padding: 1.2rem 1rem;
        box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(12px);
    }

    .navbar-custom .nav-link {
        padding: 0.7rem 1rem !important;
        border-radius: 10px;
        margin: 0;
        transition: all 0.3s;
    }

    .navbar-custom .nav-link::after {
        display: none;
    }

    .navbar-custom .nav-link:hover,
    .navbar-custom .nav-link.active {
        background: rgba(255, 122, 26, 0.1);
        color: var(--orange) !important;
    }

    .navbar-custom .navbar-cta {
        margin: 0.8rem 0 0 0;
        width: 100%;
        padding: 0.75rem 1rem !important;
        font-size: 1rem;
    }

    /* Hero по центру */
    .hero {
        padding-top: 110px;
        text-align: center;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-trust {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        margin-top: 2.5rem;
    }

    .code-sphere {
        width: 280px;
        height: 280px;
    }

    .code-sphere i {
        font-size: 5rem;
    }

    /* Холдинг */
    .holding-card {
        padding: 2rem;
    }

    /* Speed Dial */
    .speed-dial {
        right: 20px;
        bottom: 80px;
        gap: 10px;
    }

    .speed-toggle {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }

    .speed-action {
        width: 46px;
        height: 46px;
        font-size: 1.02rem;
    }

    /* Блог */
    .blog-layout,
    .article-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .sidebar {
        position: static;
    }
}

/* Мобильные — общее */
@media (max-width: 767.98px) {
    section {
        padding: 4rem 0;
    }

    .mobile-cta {
        display: flex;
    }

    body {
        padding-bottom: 64px;
    }

    /* Сертификаты/благодарности */
    .cert-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.9rem;
    }

    .cert-gallery-horizontal {
        grid-template-columns: 1fr;
    }

    /* Холдинг */
    .holding-card {
        padding: 1.6rem;
    }

    .holding-card h3 {
        font-size: 1.3rem;
    }

    /* Contract CTA */
    .contract-cta {
        flex-direction: column;
        text-align: center;
    }

    .contract-cta h4 {
        justify-content: center;
    }

    .btn-contract {
        width: 100%;
        justify-content: center;
    }

    /* QR */
    .qr-block {
        padding: 1.8rem 1.2rem;
    }

    /* Speed Dial */
    .speed-dial {
        right: 16px;
        bottom: 80px;
        gap: 10px;
    }

    .speed-toggle {
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
    }

    .speed-action {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    /* Блог */
    .page-header {
        padding: 120px 0 40px;
    }

    .article-header {
        padding: 120px 0 30px;
    }

    .blog-layout,
    .article-layout {
        padding: 3rem 0 4rem;
    }

    .article-body {
        padding: 1.8rem 1.5rem 2rem;
    }

    .article-hero-image {
        height: 240px;
    }

    .article-tags-bottom {
        padding: 1.2rem 1.5rem;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    /* 404 */
    .error-page {
        padding: 100px 0 40px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 575.98px) {

    /* Кнопки hero */
    .hero-cta-group {
        flex-direction: column;
    }

    .btn-primary-orange,
    .btn-secondary-outline {
        width: 100%;
        justify-content: center;
    }

    /* Сфера */
    .code-sphere {
        width: 220px;
        height: 220px;
    }

    .code-sphere i {
        font-size: 4rem;
    }

    /* Лайтбокс */
    .lightbox-close {
        top: -44px;
        right: 0;
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    /* Холдинг */
    .holding-icon {
        width: 170px;
        height: auto;
        font-size: 1.5rem;
    }

    /* Trust */
    .hero-trust {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .trust-item {
        padding: 0.6rem 0.75rem;
        gap: 0.55rem;
    }

    .trust-icon {
        width: 32px;
        height: 32px;
    }

    .trust-icon i {
        font-size: 0.9rem;
    }

    .trust-value {
        font-size: 0.98rem;
    }

    .trust-label {
        font-size: 0.7rem;
    }

    .sphere-ai-badge {
        bottom: -4px;
        right: -4px;
        padding: 0.3rem 0.7rem;
        font-size: 0.7rem;
    }

    /* QR */
    .qr-wrapper img {
        width: 110px;
        height: 110px;
    }

    /* Кнопка «Показать ещё кейсы» */
    .btn-load-more-cases {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    /* Speed Dial */
    .speed-dial {
        right: 12px;
        bottom: 76px;
        gap: 8px;
    }

    .speed-toggle {
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
    }

    .speed-action {
        width: 40px;
        height: 40px;
        font-size: 0.92rem;
    }

    .speed-action::after,
    .speed-action::before {
        display: none;
    }

    /* 404 */
    .error-cta-group {
        flex-direction: column;
    }

    .btn-primary-orange,
    .btn-secondary-outline {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   БЛОК «ЛЭНДИНГ С МАРКЕТИНГОМ»
   ============================================================ */
#landing-marketing {
    background: var(--dark-gray);
}

.marketing-step {
    position: relative;
    background: var(--gray);
    border: 1px solid var(--light-gray);
    border-radius: 22px;
    padding: 2rem 1.8rem 2.2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
    overflow: hidden;
}

.marketing-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--orange-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.marketing-step:hover {
    transform: translateY(-8px);
    border-color: var(--orange);
    box-shadow: 0 25px 40px -15px rgba(255, 122, 26, 0.2);
}

.marketing-step:hover::before {
    transform: scaleX(1);
}

.marketing-step-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--orange);
    opacity: 0.18;
    line-height: 1;
    margin-bottom: 0.4rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

.marketing-step-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 122, 26, 0.12);
    border: 1px solid rgba(255, 122, 26, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--orange);
    margin-bottom: 1.1rem;
    transition: all 0.3s;
}

.marketing-step:hover .marketing-step-icon {
    background: var(--orange);
    color: #000;
    border-color: var(--orange);
}

.marketing-step h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.marketing-step p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.65;
}

/* Итоговая плашка */
.marketing-total {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    background: linear-gradient(135deg, rgba(255, 122, 26, 0.12), rgba(255, 122, 26, 0.03));
    border: 1.5px solid rgba(255, 122, 26, 0.4);
    border-radius: 22px;
    padding: 1.8rem 2rem;
    margin-top: 2.5rem;
    transition: all 0.4s;
}

.marketing-total:hover {
    border-color: var(--orange);
    box-shadow: 0 20px 40px -15px rgba(255, 122, 26, 0.3);
}

.marketing-total-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--orange);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(255, 122, 26, 0.4);
}

.marketing-total p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
    line-height: 1.65;
}

.marketing-total p strong {
    color: var(--text);
}

.marketing-total-highlight {
    color: var(--orange);
    font-weight: 600;
}

/* Адаптив */
@media (max-width: 767.98px) {
    .marketing-step {
        padding: 1.6rem 1.4rem 1.8rem;
    }

    .marketing-step-num {
        font-size: 2.4rem;
    }

    .marketing-total {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 1.3rem;
    }
}

/* ============================================================
   ВАРИАНТ 1: «Самозанятый» второй строкой под брендом
   ============================================================ */
.navbar-brand.brand-stacked {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
}

.navbar-brand .brand-name {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    color: var(--text);
}

.navbar-brand .brand-name span {
    color: var(--orange);
}

.navbar-brand .brand-status-line {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.3s;
}

.navbar-brand .brand-status-line::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.25);
}

.navbar-brand:hover .brand-status-line {
    color: var(--orange);
}

@media (max-width: 991.98px) {
    .navbar-brand .brand-name {
        font-size: 1.4rem;
    }

    .navbar-brand .brand-status-line {
        font-size: 0.62rem;
    }
}

/* Вторая плашка — про часовой пояс и график */
.hero-status-time {
    background: rgba(100, 220, 255, 0.08);
    border-color: rgba(100, 220, 255, 0.4);
    color: var(--ai-color);
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    padding: 0.5rem 1.15rem;
    margin-top: -0.6rem;
    margin-bottom: 1.8rem;
    animation: fadeUp 1s 0.18s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.hero-status-time i {
    color: var(--ai-color);
    font-size: 0.88rem;
}

.hero-status-time:hover {
    background: rgba(100, 220, 255, 0.15);
    border-color: var(--ai-color);
    box-shadow: 0 10px 25px -8px rgba(100, 220, 255, 0.4);
}

@media (max-width: 575.98px) {
    .hero-status-time {
        font-size: 0.76rem;
        padding: 0.4rem 0.9rem;
        letter-spacing: 0.03em;
        margin-top: -0.5rem;
        margin-bottom: 1.5rem;
        white-space: normal;
        text-align: center;
    }

    .hero-status-time i {
        font-size: 0.76rem;
    }
}

/* ============================================================
   СТАТУС «САМОЗАНЯТЫЙ» ПОД ЗАГОЛОВКОМ HERO
   ============================================================ */
.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(46, 204, 113, 0.1);
    border: 1.5px solid rgba(46, 204, 113, 0.4);
    color: #2ecc71;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.55rem 1.25rem;
    border-radius: 50px;
    line-height: 1;
    margin-bottom: 1.6rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    animation: fadeUp 1s 0.1s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.hero-status i {
    font-size: 0.95rem;
    color: #2ecc71;
}

.hero-status:hover {
    background: rgba(46, 204, 113, 0.18);
    border-color: #2ecc71;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -8px rgba(46, 204, 113, 0.4);
}

/* На мобильных — чуть меньше, чтобы не переносилось на две строки */
@media (max-width: 575.98px) {
    .hero-status {
        font-size: 0.8rem;
        padding: 0.45rem 1rem;
        letter-spacing: 0.06em;
        white-space: normal;
        text-align: center;
    }

    .hero-status i {
        font-size: 0.8rem;
    }
}

/* Вторая плашка — про часовой пояс и график (уменьшенный шрифт) */
.hero-status-time {
    background: rgba(100, 220, 255, 0.08);
    border-color: rgba(100, 220, 255, 0.4);
    color: var(--ai-color);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.22rem 0.55rem;
    animation: fadeUp 1s 0.18s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.hero-status-time i {
    color: var(--ai-color);
    font-size: 0.36rem;
}

.hero-status-time:hover {
    background: rgba(100, 220, 255, 0.15);
    border-color: var(--ai-color);
    box-shadow: 0 5px 12px -4px rgba(100, 220, 255, 0.4);
}

@media (max-width: 575.98px) {
    .hero-status-time {
        font-size: 0.8rem;
        padding: 0.2rem 0.45rem;
        letter-spacing: 0.01em;
        margin-top: -0.25rem;
        margin-bottom: 0.9rem;
        white-space: normal;
        text-align: center;
    }

    .hero-status-time i {
        font-size: 0.8rem;
    }
}

/* ============================================================
   HERO: ЦИТАТА-БОЛЬ ПОД ЗАГОЛОВКОМ
   ============================================================ */
.hero-pain-quote {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.55rem;
    background: linear-gradient(135deg, rgba(255, 122, 26, 0.1), rgba(255, 122, 26, 0.02));
    border-left: 3px solid var(--orange);
    border-radius: 0 14px 14px 0;
    padding: 0.85rem 1.4rem 0.85rem 1.2rem;
    margin-bottom: 1.4rem;
    max-width: 560px;
    font-size: 1.15rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.5;
    color: var(--text);
    position: relative;
    animation: fadeUp 1s 0.08s cubic-bezier(0.2, 0.9, 0.3, 1) both;
    transition: all 0.3s ease;
}

.hero-pain-quote i {
    color: var(--orange);
    font-size: 1rem;
    opacity: 0.7;
    flex-shrink: 0;
    margin-top: 0.35rem;
}

.hero-pain-quote span {
    display: inline-block;
}

.hero-pain-quote span::after {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
    margin-top: 0.55rem;
    opacity: 0.5;
}

.hero-pain-quote:hover {
    background: linear-gradient(135deg, rgba(255, 122, 26, 0.16), rgba(255, 122, 26, 0.04));
    border-left-color: var(--orange-light);
    transform: translateX(4px);
}

/* На мобильных — компактнее */
@media (max-width: 767.98px) {
    .hero-pain-quote {
        font-size: 1rem;
        padding: 0.75rem 1.1rem 0.75rem 1rem;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .hero-pain-quote i {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .hero-pain-quote {
        font-size: 0.95rem;
        padding: 0.7rem 1rem 0.7rem 0.9rem;
        gap: 0.45rem;
    }

    .hero-pain-quote i {
        font-size: 0.8rem;
        margin-top: 0.3rem;
    }
}