:root {
    --bg-color: #0b1120;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --navbar-bg: rgba(11, 17, 32, 0.95);
    --zindex-navbar: 1000;
    --moi-seo-zindex-feedback: 9999;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; margin-bottom: 40px; }

.navbar { position: fixed; top: 0; left: 0; width: 100%; background-color: var(--navbar-bg); backdrop-filter: blur(10px); z-index: var(--zindex-navbar); border-bottom: 1px solid rgba(255,255,255,0.05); transition: padding 0.3s ease; }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 20px 20px; }
.navbar.scrolled .nav-container { padding: 10px 20px; }
.logo { font-size: 1.5rem; font-weight: 700; color: #fff; }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { color: var(--text-main); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent); }

.hero { text-align: center; padding: 160px 20px 100px; background: linear-gradient(rgba(11,17,32,0.8), rgba(11,17,32,1)), url('img/hero-bg.jpg') center/cover; border-bottom: 1px solid rgba(255,255,255,0.05); }
.hero h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 40px; }

.btn-primary { display: inline-block; background-color: var(--accent); color: #fff; padding: 15px 35px; border-radius: 30px; text-decoration: none; font-weight: 600; transition: transform 0.3s, background-color 0.3s; }
.btn-primary:hover { background-color: var(--accent-hover); transform: translateY(-3px); }

.action-wrapper { margin-top: 25px; }
.btn-secondary { display: inline-block; padding: 12px 28px; border: 1px solid var(--accent); color: var(--accent); border-radius: 30px; text-decoration: none; font-weight: 600; transition: all 0.3s; }
.btn-secondary:hover { background-color: var(--accent); color: #fff; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); }

.service-section { padding: 100px 0; border-bottom: 1px solid rgba(255,255,255,0.02); scroll-margin-top: 70px;}
.bg-alt { background-color: #0f172a; }
.section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.section-grid.reverse { direction: rtl; }
.section-grid.reverse > * { direction: ltr; }
.text-content h2 { font-size: 2.2rem; margin-bottom: 20px; color: #fff; }
.text-content p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.05rem; }
.image-content img { width: 100%; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); background-color: #1e293b; min-height: 300px;}

.swiper { width: 100%; max-width: 900px; padding-bottom: 40px; }
.swiper-slide { position: relative; border-radius: 16px; overflow: hidden; background-color: #1e293b; }
.swiper-slide img { width: 100%; height: 450px; object-fit: cover; display: block; }
.slide-caption { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: #fff; padding: 30px 20px 20px; font-weight: 600; font-size: 1.2rem; text-align: center; }
.swiper-button-next, .swiper-button-prev { color: var(--accent) !important; }
.swiper-pagination-bullet-active { background: var(--accent) !important; }

.footer { padding: 60px 0; background-color: #080d18; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer h3 { margin-bottom: 20px; color: #fff; }
.footer p { color: var(--text-muted); margin-bottom: 10px; }
.footer-link { color: var(--accent); text-decoration: none; }
.footer-link:hover { text-decoration: underline; }

.fab-container { position: fixed; bottom: 40px; right: 40px; z-index: var(--moi-seo-zindex-feedback); display: flex; flex-direction: column; align-items: center; }
.fab-options { display: flex; flex-direction: column; gap: 15px; margin-bottom: 15px; opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.8); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); transform-origin: bottom center; }
.fab-container.open .fab-options { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.fab-option { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.3); transition: transform 0.2s; text-decoration: none; }
.fab-option:hover { transform: scale(1.1); filter: brightness(1.1); }

.fab-main { width: 65px; height: 65px; border-radius: 50%; background-color: var(--accent); border: none; cursor: pointer; box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4); display: flex; align-items: center; justify-content: center; transition: transform 0.3s, background-color 0.3s; }
.fab-main:hover { background-color: var(--accent-hover); transform: scale(1.05); }

@keyframes shake-with-pause { 0%, 10% { transform: translate(0, 0) rotate(0deg); } 1%, 9% { transform: translate(-1px, -2px) rotate(-1deg); } 2%, 8% { transform: translate(-3px, 0px) rotate(1deg); } 3%, 7% { transform: translate(3px, 2px) rotate(0deg); } 4%, 6% { transform: translate(1px, -1px) rotate(1deg); } 5% { transform: translate(-1px, 2px) rotate(-1deg); } 11%, 100% { transform: translate(0, 0) rotate(0deg); } }
.shake-animation { animation: shake-with-pause 6s infinite; }

@media (max-width: 900px) {
    .section-grid { grid-template-columns: 1fr; gap: 40px; }
    .section-grid.reverse { direction: ltr; }
    .nav-links { display: none; }
    .swiper-slide img { height: 300px; }
}

/* =========================================
   Стрелка-указатель для плавающей кнопки
========================================= */
.fab-arrow-wrapper {
    position: absolute;
    right: 80px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    animation: float-arrow 2.5s ease-in-out infinite;
    z-index: -1;
}

.fab-arrow-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    background-color: var(--accent);
    padding: 8px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    white-space: nowrap;
}

.fab-arrow-svg {
    width: 60px;
    height: 60px;
    margin-top: 15px;
}

/* Скрываем стрелку, когда открывается меню опций */
.fab-container.open .fab-arrow-wrapper {
    opacity: 0;
    transform: translateY(20px);
}

@keyframes float-arrow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-10px, -5px) rotate(-2deg); }
}

@media (max-width: 768px) {
    /* На узких экранах скрываем текст, оставляем только саму стрелку */
    .fab-arrow-text {
        display: none;
    }
    .fab-arrow-wrapper {
        right: 70px;
        bottom: 30px;
    }
}