:root {
    --bg-main: #2b313a;
    --bg-card: #222730;
    --bg-card-hover: #282e38;
    --accent: #ffc107;
    --text-main: #ffffff;
    --text-muted: #a0a5ad;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --card-w: 160px;
    --card-h: 340px;
    --card-gap: 15px;
    --slider-ease: cubic-bezier(0.25, 1, 0.5, 1);
    --sidebar-w: 420px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============ SIDEBAR ============ */
.sidebar {
    width: var(--sidebar-w);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* лого сверху, меню снизу */
    position: fixed;
    height: 100vh;
    left: 0; top: 0;
    z-index: 50;
    background-color: var(--bg-main);
    transition: transform .3s ease;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: lowercase;
    flex-shrink: 0;
}
.logo span { color: var(--accent); }

/* ОГРОМНЫЙ eco-title в середине */
.eco-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: var(--text-main);
    margin: auto 0; /* центрирует по вертикали между лого и меню */
    max-width: 100%;
}
.eco-title span {
    display: block;
    color: var(--accent);
}
.eco-title small {
    display: block;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 18px;
    letter-spacing: 0;
    line-height: 1.5;
    max-width: 260px;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
}
.nav-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color .3s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--accent); }

/* Бургер */
.burger {
    display: none;
    width: 40px; height: 40px;
    border: none; background: transparent; cursor: pointer;
    position: relative; z-index: 60;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.burger span { display: block; width: 24px; height: 2px; background-color: var(--text-main); transition: transform .3s, opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ MAIN ============ */
.main-content {
    margin-left: var(--sidebar-w);
    padding: 60px 80px 60px 40px;
    flex: 1;
    width: calc(100% - var(--sidebar-w));
    display: flex;
    flex-direction: column;
    gap: 120px;
    min-width: 0;
}

/* ============ HERO ============ */
.section-hero {
margin-bottom: 0;
padding-bottom: 40px;
}
.hero-greeting {
font-size: 52px;
font-weight: 700;
line-height: 1.15;
max-width: 900px;
letter-spacing: -1px;
}
.hero-greeting span { color: var(--accent); }
.hero-subtext {
margin-top: 16px;
font-size: 22px;
line-height: 1.4;
color: var(--text-muted);
max-width: 600px;
}
.hero-cta {
display: inline-flex;
align-items: center;
gap: 10px;
margin-top: 32px;
padding: 14px 28px;
background-color: var(--accent);
color: #2b313a;
font-size: 16px;
font-weight: 600;
text-decoration: none;
border-radius: 10px;
transition: background-color .3s, transform .2s, box-shadow .3s;
}
.hero-cta:hover {
background-color: #ffcd38;
transform: translateY(-2px);
box-shadow: 0 10px 25px rgba(255, 193, 7, 0.25);
}
.hero-cta i {
transition: transform .3s;
}
.hero-cta:hover i {
transform: translateX(4px);
}

/* ============ ABOUT ============ */
.section-about {
margin-bottom: 0;
padding-top: 40px;
border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.about-header {
font-size: 42px;
font-weight: 700;
line-height: 1.2;
margin-bottom: 40px;
}
.about-header span { color: var(--accent); }

.tabs {
display: flex;
gap: 40px;
margin-bottom: 40px;
flex-wrap: wrap;
}
.tab {
font-size: 36px;
font-weight: 600;
color: var(--text-muted);
cursor: pointer;
transition: color .3s;
position: relative;
padding-bottom: 10px;
background: none;
border: none;
font-family: inherit;
}
.tab.active { color: var(--accent); }
.tab.active::after {
content: '';
position: absolute;
bottom: 0; left: 0;
width: 100%; height: 3px;
background-color: var(--accent);
animation: tabSlide .3s ease;
}
@keyframes tabSlide {
from { transform: scaleX(0); transform-origin: left; }
to { transform: scaleX(1); transform-origin: left; }
}

.tab-panels { position: relative; }
.tab-panel {
display: none;
font-size: 20px;
line-height: 1.6;
max-width: 800px;
animation: fadeIn .4s ease;
}
.tab-panel.active { display: block; }
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.tab-panel strong { color: var(--accent); font-weight: 600; }
.tab-panel ul {
list-style: none;
margin-top: 15px;
display: flex;
flex-direction: column;
gap: 10px;
}
.tab-panel li {
display: flex;
align-items: flex-start;
gap: 10px;
font-size: 17px;
}
.tab-panel li::before { content: '—'; color: var(--accent); }

/* ============ ECOSYSTEM ============ */
.section-ecosystem { display: flex; flex-direction: column; gap: 40px; }
/* ============ ECOSYSTEM ============ */
    .section-ecosystem {
        display: flex;
        flex-direction: column;
        gap: 50px;
    }

    .eco-title {
        font-size: 52px;
        font-weight: 700;
        line-height: 1.1;
        letter-spacing: -1px;
        color: var(--text-main);
        max-width: 420px;
    }
    .eco-title span {
        display: block;
        color: var(--accent);
    }
    .eco-title small {
        display: block;
        font-size: 20px;
        font-weight: 400;
        color: var(--text-muted);
        margin-top: 15px;
        letter-spacing: 0;
        line-height: 1.5;
        max-width: 400px;
    }

    /* Раскладка: заголовок слева, слайдер справа */
    .ecosystem-top {
        display: flex;
        gap: 60px;
        align-items: flex-start;
    }
    .ecosystem-top .slider-wrapper {
        flex: 1;
        min-width: 0;
    }

.slider-wrapper { position: relative; display: flex; align-items: center; gap: 15px; width: 100%; min-width: 0; }
.cards-viewport { position: relative; overflow: hidden; flex: 1; min-width: 0; touch-action: pan-y; cursor: grab; }
.cards-viewport:active { cursor: grabbing; }

.cards-track { position: relative; display: flex; gap: var(--card-gap); will-change: transform; padding-bottom: 20px; }

.slider-bg {
    position: absolute; top: 0; left: 0;
    height: var(--card-h); width: var(--card-w);
    background-color: var(--accent);
    border-radius: 12px;
    transition: left .45s var(--slider-ease), width .45s var(--slider-ease);
    z-index: 1;
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.2);
    pointer-events: none;
}

.card {
    position: relative;
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 30px 20px;
    width: var(--card-w); height: var(--card-h);
    flex-shrink: 0;
    display: flex; flex-direction: column; justify-content: space-between;
    cursor: pointer;
    z-index: 2;
    transition: background-color .3s, color .3s, transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    user-select: none; -webkit-user-select: none;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, .2); background-color: var(--bg-card-hover); }
.card.is-active { background-color: transparent; border-color: transparent; color: #2b313a; }
.card.is-active:hover { transform: none; box-shadow: none; background-color: transparent; }
.card-title { font-size: 16px; font-weight: 600; text-align: center; transition: color .3s; }
.card-icon { font-size: 40px; text-align: center; margin-top: 20px; transition: color .3s; }
.card.is-active .card-icon { color: #2b313a; }
.card-arrow { font-size: 24px; align-self: center; transition: transform .3s, color .3s; display: inline-block;}

/* Анимация покачивания при наведении на карточку */
@keyframes arrowShake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(4px); }
    50%      { transform: translateX(-2px); }
    75%      { transform: translateX(3px); }
}

/* Наведение на карточку — стрелка дрожит */
.card:hover .card-arrow {
    animation: arrowShake 0.6s ease-in-out infinite;
    color: var(--accent);
}

/* Когда карточка активна — стрелка "отпрыгнула" вправо */
.card.is-active .card-arrow {
    transform: translateX(5px);
    color: #2b313a;
}

/* При клике (активации) — пружинистый толчок */
.card.is-active .card-arrow {
    animation: arrowBounce 0.5s ease-out;
}


.slider-btn {
    background: var(--accent); border: none;
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #2b313a; font-size: 18px;
    transition: background-color .3s, transform .2s, opacity .3s;
    z-index: 5; flex-shrink: 0;
}
.slider-btn:hover:not(:disabled) { background-color: #ffcd38; transform: scale(1.05); }
.slider-btn:active:not(:disabled) { transform: scale(0.95); }
.slider-btn:disabled { opacity: .3; cursor: not-allowed; }

/* Описание услуги */
.service-description {
    margin-top: 20px;
    padding: 30px;
    background-color: var(--bg-card);
    border-radius: 16px;
    border-left: 4px solid var(--accent);
    min-height: 120px;
    transition: opacity .3s ease, transform .3s ease;
}
.service-description.hidden { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.service-description h3 { font-size: 24px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.service-description p { font-size: 16px; line-height: 1.6; max-width: 800px; }
.service-description .service-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 15px; }
.service-description .service-tags span {
    font-size: 13px; padding: 4px 12px;
    background: rgba(255,193,7,0.15); color: var(--accent); border-radius: 20px;
}

/* ============ TECH RATING ============ */
.section-rating { display: flex; flex-direction: column; gap: 20px; }
.rating-text { font-size: 18px; max-width: 700px; }
.tech-list { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.tech-item { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 80px; cursor: pointer; transition: transform .3s; }
.tech-item:hover { transform: translateY(-3px); }
.tech-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background-color: var(--bg-card);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: var(--accent);
    border: 1px solid rgba(255,255,255,0.05);
    transition: background-color .3s, border-color .3s;
}
.tech-item:hover .tech-icon { background-color: var(--bg-card-hover); border-color: var(--accent); }
.tech-name { font-size: 12px; color: var(--text-muted); text-align: center; }

/* ============ CONTACT ============ */
.section-contact { display: flex; gap: 60px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.contact-left { display: flex; flex-direction: column; gap: 20px; max-width: 500px; }
.contact-title { font-size: 42px; font-weight: 700; color: var(--accent); line-height: 1.2; }
.contact-subtitle { font-size: 20px; line-height: 1.4; }
.contact-note { font-size: 16px; color: var(--text-muted); line-height: 1.5; }

.contact-card {
    position: relative;
    width: 320px; height: 320px;
    border-radius: 16px; overflow: hidden;
    background: linear-gradient(135deg, #ffc107 0%, #ff5e7e 50%, #a855f7 100%);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: transform .3s, box-shadow .3s;
    box-shadow: 0 20px 40px rgba(255, 193, 7, 0.15);
    text-decoration: none;
}
.contact-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 30px 60px rgba(255, 193, 7, 0.3); }
.contact-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 60%);
    pointer-events: none;
}
.contact-card__icon {
    width: 100px; height: 100px; border-radius: 50%;
    background: #2b313a;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 46px;
    z-index: 2; transition: transform .3s;
}
.contact-card:hover .contact-card__icon { transform: scale(1.1) rotate(-8deg); }
.contact-card__label {
    position: absolute; bottom: 20px; left: 0; right: 0;
    text-align: center; font-size: 14px; font-weight: 600;
    color: #2b313a; letter-spacing: 1px; text-transform: uppercase; z-index: 2;
}

/* ============ FOOTER ============ */
.footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted); font-size: 14px;
    flex-wrap: wrap; gap: 15px;
}
.footer a { color: var(--text-muted); text-decoration: none; transition: color .3s; }
.footer a:hover { color: var(--accent); }
.footer-socials { display: flex; gap: 15px; }
.footer-socials a {
    width: 36px; height: 36px; border-radius: 8px;
    background-color: var(--bg-card);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-main);
    transition: background-color .3s, color .3s;
}
.footer-socials a:hover { background-color: var(--accent); color: #2b313a; }

/* ============ АДАПТИВНОСТЬ ============ */
@media (max-width: 1024px) {
   :root { --card-w: 140px; --card-h: 300px; --card-gap: 12px; --sidebar-w: 100%; }
    body { flex-direction: column; }

    .sidebar {
        height: auto;
        position: relative;
        padding: 15px 20px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    /* Скрываем огромный заголовок на мобилках */
    .sidebar .eco-title { display: none; }
    .sidebar .eco-title { display: none; }
    .nav-menu {
        position: absolute; top: 100%; left: 0; right: 0;
        background-color: var(--bg-main);
        flex-direction: column;
        padding: 20px 30px 30px;
        margin: 0; gap: 20px;
        transform: translateY(-120%); opacity: 0; pointer-events: none;
        transition: transform .35s ease, opacity .35s ease;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        z-index: 40;
    }
    .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .burger { display: flex; }

    .main-content { margin-left: 0; width: 100%; padding: 30px 20px; gap: 80px; }
    .hero-greeting, .about-header, .eco-header, .contact-title { font-size: 32px; }
    .tab { font-size: 32px; }
    .tab-panel { font-size: 18px; }
    .tab-panel li { font-size: 16px; }
    .slider-btn { display: none; }
    .section-contact { flex-direction: column; align-items: flex-start; gap: 30px; }
    .contact-card { width: 280px; height: 280px; }


    .hero-greeting { font-size: 38px; }
    .hero-subtext { font-size: 18px; }
    .about-header { font-size: 32px; }
    .tab { font-size: 28px; }
    .tab-panel { font-size: 17px; }

    .ecosystem-top { flex-direction: column; gap: 30px; }
    .eco-title { font-size: 36px; max-width: 100%; }
    .eco-title small { font-size: 16px; }
}

@media (max-width: 600px) {
    .eco-title { font-size: 28px; }
    .eco-title small { font-size: 15px; }
    .logo { font-size: 22px; }
    .tab { font-size: 24px; }
    .tabs { gap: 20px; }
    .tab-panel { font-size: 16px; }
    .hero-greeting, .about-header, .eco-header, .contact-title { font-size: 26px; }
    .hero-subtext { font-size: 16px; }
    .tech-list { gap: 12px; }
    .tech-item { width: 70px; }
    .tech-icon { width: 48px; height: 48px; font-size: 22px; }
    .contact-card { width: 100%; max-width: 300px; height: 260px; }
    .contact-card__icon { width: 80px; height: 80px; font-size: 36px; }
    .service-description { padding: 20px; }
    .service-description h3 { font-size: 20px; }
    .service-description p { font-size: 15px; }

       .hero-greeting { font-size: 28px; letter-spacing: -0.5px; }
.hero-subtext { font-size: 16px; }
.hero-cta { padding: 12px 22px; font-size: 15px; }
.about-header { font-size: 26px; }
.tab { font-size: 22px; }
.tabs { gap: 20px; }
.tab-panel { font-size: 15px; }
.tab-panel li { font-size: 15px; }
}
/* ============ АНИМАЦИИ ПОЯВЛЕНИЯ ============ */
.reveal {
opacity: 0;
transform: translateY(40px);
transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.visible {
opacity: 1;
transform: translateY(0);
}

/* Задержки для дочерних элементов (опционально) */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============ TYPEWRITER ============ */
.hero-greeting {
font-size: 52px;
font-weight: 700;
line-height: 1.15;
max-width: 900px;
letter-spacing: -1px;
min-height: 2.3em; /* чтобы не прыгало, пока печатается */
}
.hero-greeting .typewriter-text {
color: var(--text-main);
}
.hero-greeting .typewriter-text span {
color: var(--accent);
}

/* Курсор для typewriter */
.typewriter-cursor {
display: inline-block;
width: 3px;
height: 1em;
background-color: var(--accent);
margin-left: 4px;
vertical-align: text-bottom;
animation: blink 0.8s step-end infinite;
}
@keyframes blink {
0%, 50% { opacity: 1; }
50.01%, 100% { opacity: 0; }
}

/* Кнопка hero — скрыта до окончания печати */
.hero-cta {
opacity: 0;
transform: translateY(10px);
transition: opacity 0.6s ease, transform 0.6s ease, background-color .3s, box-shadow .3s;
pointer-events: none;
}
.hero-cta.visible {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}

/* Lenis требует, чтобы html/body не имели своего overflow */
html.lenis, html.lenis body {
height: auto;
}
.lenis.lenis-smooth {
scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
overscroll-behavior: contain;
}
.lenis.lenis-stopped {
overflow: hidden;
}
.intro-banner {
background-color: rgba(255, 193, 7, 0.08); /* Легкий желтый оттенок */
border-left: 3px solid var(--accent);
padding: 20px 25px;
border-radius: 0 8px 8px 0;
margin-bottom: 30px;
}
.intro-banner p {
font-size: 18px;
line-height: 1.5;
color: var(--text-main);
}
.intro-banner strong {
color: var(--accent);
font-weight: 600;
}
.intro-banner span {
color: var(--accent);
font-weight: 500;
}

/* ============ PORTFOLIO ============ */
.section-portfolio {
display: flex;
flex-direction: column;
gap: 30px;
}

.portfolio-header {
font-size: 42px;
font-weight: 700;
line-height: 1.2;
}
.portfolio-header span { color: var(--accent); }

.portfolio-subtext {
font-size: 18px;
color: var(--text-muted);
max-width: 700px;
line-height: 1.5;
margin-top: -15px;
}

/* Фильтры */
.portfolio-filters {
display: flex;
gap: 10px;
flex-wrap: wrap;
margin-bottom: 10px;
}

.filter-btn {
padding: 10px 20px;
background: var(--bg-card);
border: 1px solid rgba(255,255,255,0.06);
color: var(--text-main);
font-size: 14px;
font-weight: 500;
border-radius: 8px;
cursor: pointer;
transition: background .3s, color .3s, border-color .3s;
font-family: inherit;
}

.filter-btn:hover {
border-color: var(--accent);
}

.filter-btn.active {
background: var(--accent);
color: #2b313a;
border-color: var(--accent);
font-weight: 600;
}

/* Сетка */
.portfolio-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 24px;
}

.portfolio-card {
background: var(--bg-card);
border-radius: 16px;
overflow: hidden;
border: 1px solid rgba(255,255,255,0.05);
transition: transform .3s, box-shadow .3s, border-color .3s;
display: flex;
flex-direction: column;
opacity: 1;
}

.portfolio-card:hover {
transform: translateY(-6px);
box-shadow: 0 20px 40px rgba(0,0,0,0.3);
border-color: rgba(255, 193, 7, 0.3);
}

/* Скрытие при фильтрации */
.portfolio-card.hidden {
display: none;
}

/* Превью */
.portfolio-thumb {
height: 160px;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 48px;
position: relative;
overflow: hidden;
}

/* Если добавляешь реальные картинки — используй это: */
.portfolio-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
}

.portfolio-body {
padding: 22px;
display: flex;
flex-direction: column;
gap: 10px;
flex: 1;
}

.portfolio-tag {
display: inline-block;
font-size: 12px;
padding: 4px 10px;
background: rgba(255,193,7,0.15);
color: var(--accent);
border-radius: 20px;
align-self: flex-start;
font-weight: 500;
}

.portfolio-title {
font-size: 18px;
font-weight: 700;
line-height: 1.3;
color: var(--text-main);
}

.portfolio-desc {
font-size: 14px;
line-height: 1.6;
color: var(--text-muted);
flex: 1;
}

.portfolio-tech {
display: flex;
gap: 6px;
flex-wrap: wrap;
margin-top: 5px;
}

.portfolio-tech span {
font-size: 11px;
padding: 3px 8px;
background: rgba(255,255,255,0.05);
color: var(--text-muted);
border-radius: 6px;
}

/* Адаптив */
@media (max-width: 600px) {
.portfolio-header { font-size: 28px; }
.portfolio-subtext { font-size: 15px; }
.portfolio-grid { grid-template-columns: 1fr; gap: 16px; }
.portfolio-thumb { height: 140px; font-size: 40px; }
.portfolio-body { padding: 18px; }
.portfolio-title { font-size: 16px; }
.filter-btn { padding: 8px 14px; font-size: 13px; }
}


.case-study { max-width: 900px; }
.breadcrumbs { font-size: 14px; color: var(--text-muted); margin-bottom: 30px; }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.case-title { font-size: 42px; font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.case-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.case-tag { font-size: 13px; padding: 5px 14px; background: rgba(255,193,7,0.15); color: var(--accent); border-radius: 20px; }
.case-section { margin-bottom: 40px; }
.case-section h2 { font-size: 26px; font-weight: 700; margin-bottom: 15px; color: var(--text-main); }
.case-section p, .case-section li { font-size: 17px; line-height: 1.7; color: var(--text-muted); }
.case-section ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.case-section li::before { content: '→'; color: var(--accent); margin-right: 10px; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.result-item { background: var(--bg-card); padding: 25px; border-radius: 12px; text-align: center; border-left: 3px solid var(--accent); }
.result-number { font-size: 28px; font-weight: 700; color: var(--accent); margin-bottom: 5px; }
.result-label { font-size: 13px; color: var(--text-muted); }
.case-cta { background: var(--bg-card); padding: 40px; border-radius: 16px; text-align: center; margin-top: 60px; }
.case-cta h2 { font-size: 26px; margin-bottom: 15px; }
.case-cta p { font-size: 16px; color: var(--text-muted); margin-bottom: 25px; }
@media (max-width: 600px) {
    .case-title { font-size: 28px; }
    .result-grid { grid-template-columns: 1fr; }
    .case-cta { padding: 25px; }
}


/* ============ ДОПОЛНИТЕЛЬНЫЕ КОНТАКТЫ (ПЛАШКИ) ============ */
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

/* Жестко перебиваем стандартные стили ссылок */
a.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-card);
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main) !important; /* Белый текст */
    text-decoration: none !important;   /* Убираем подчеркивание */
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.3s, border-color 0.3s, transform 0.2s;
}

a.contact-link i {
    color: var(--accent); /* Желтая иконка */
    font-size: 18px;
    transition: transform 0.3s;
}

/* Эффект при наведении */
a.contact-link:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
}

a.contact-link:hover i {
    transform: scale(1.1);
}

/* ============ ПЛАВАЮЩАЯ КНОПКА ============ */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999; /* Максимальный приоритет, чтобы точно была поверх всего */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.floating-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent);
    color: #2b313a;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.3);
    transition: transform 0.3s, background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Пульсация */
.floating-main::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background-color: var(--accent);
    opacity: 0.4;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

/* Отключаем пульсацию, когда меню открыто */
.floating-main.no-pulse::before {
    animation: none;
    opacity: 0;
}

.floating-main:hover {
    transform: scale(1.05);
    background-color: #ffcd38;
}

/* Выпадающее меню */
.floating-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.floating-contact.open .floating-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.floating-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--bg-card);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.floating-btn:hover {
    background-color: var(--accent);
    color: #2b313a;
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .floating-contact { bottom: 20px; right: 20px; }
    .floating-main { width: 54px; height: 54px; font-size: 22px; }
    .floating-btn { width: 42px; height: 42px; font-size: 16px; }
}