:root {
    --bg-dark: #080b10;
    --bg-card: rgba(21, 26, 34, 0.75);
    --bg-card-hover: rgba(27, 34, 45, 0.9);
    --accent: #2DD4BF;
    --accent-hover: #14B8A6;
    --accent-glow: rgba(45, 212, 191, 0.35);
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

/* Стилизация скроллбара */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(45, 212, 191, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    z-index: 0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: radial-gradient(circle at 50% 20%, rgba(45, 212, 191, 0.08) 0%, transparent 60%), url('images/backcity1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Шапка сайта */
header {
    background-color: rgba(8, 11, 16, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
}

.logo-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    background-color: var(--bg-card);
    box-shadow: 0 0 12px var(--accent-glow);
}

.logo span {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #2DD4BF 0%, #14B8A6 100%);
    color: #041014;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 212, 191, 0.5);
}

.btn-outline {
    border: 1px solid var(--accent);
    color: var(--accent);
    background: rgba(45, 212, 191, 0.05);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: #041014;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-outline2 {
    border: 1px solid rgba(45, 212, 191, 0.4);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
    margin-left: 10px;
}

.btn-outline2:hover {
    border-color: var(--accent);
    background-color: var(--accent);
    box-shadow: 0 4px 20px var(--accent-glow);
    transform: translateY(-2px);
    color: #041014;
}

/* Главный экран */
.hero {
    padding: 160px 20px 90px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    display: inline-block;
    background: rgba(45, 212, 191, 0.1);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid rgba(45, 212, 191, 0.25);
    box-shadow: 0 0 15px rgba(45, 212, 191, 0.1);
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero h1 span {
    background: linear-gradient(120deg, #2DD4BF, #22D3EE, #14B8A6, #2DD4BF);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 50px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* Карточки */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.card:hover {
    transform: scale(1.04) translateY(-6px);
    border-color: rgba(45, 212, 191, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(45, 212, 191, 0.2);
    z-index: 10;
    background: var(--bg-card-hover);
}

.card-images {
    width: 100%;
    height: 190px;
    overflow: hidden;
    background-color: #0f131a;
    position: relative;
}

.img-slot {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.img-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.4s ease;
}

.card:hover .img-slot img {
    transform: scale(1.05);
}

.card-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-category {
    font-size: 12px;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.card-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.card-price {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    margin-top: auto;
}

.card .btn {
    width: 100%;
}

.tag-orange {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, #FF9A44, #FC6076);
    color: #fff;
    font-weight: 800;
    vertical-align: middle;
    margin-left: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(252, 96, 118, 0.4);
}

/* Баннер Аудита */
.audit-banner {
    background: linear-gradient(135deg, rgba(21, 26, 34, 0.9) 0%, rgba(12, 16, 22, 0.95) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: 24px;
    padding: 40px;
    margin: 50px auto 20px;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(45, 212, 191, 0.05);
}

.audit-content {
    max-width: 650px;
}

.audit-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(45, 212, 191, 0.12);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
    border: 1px solid rgba(45, 212, 191, 0.3);
}

.fire-group {
    display: flex;
    align-items: center;
    gap: 2px;
}

.fire-flame-icon {
    width: 18px;
    height: 22px;
    overflow: visible;
    filter: drop-shadow(0 2px 6px rgba(255, 68, 0, 0.6));
}

.fire-delay-1 { transform: scale(0.9); }
.fire-delay-2 { transform: scale(1.1); }
.fire-delay-3 { transform: scale(0.85); }

.flame-body {
    transform-origin: 50% 90%;
    animation: flameMotion 1.4s infinite alternate ease-in-out;
}

.fire-delay-2 .flame-body { animation-delay: 0.3s; }
.fire-delay-3 .flame-body { animation-delay: 0.6s; }

@keyframes flameMotion {
    0% { transform: scaleX(1) scaleY(1) rotate(-3deg); }
    50% { transform: scaleX(1.08) scaleY(0.95) rotate(4deg); }
    100% { transform: scaleX(0.94) scaleY(1.06) rotate(-2deg); }
}

.audit-content h3 {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.audit-content p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.social-hover-wrapper {
    position: relative;
    display: inline-block;
}

.audit-main-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

.btn-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.social-hover-wrapper:hover .btn-arrow {
    transform: rotate(45deg);
}

.social-popover {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.95);
    background: rgba(12, 16, 22, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--accent);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    gap: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(45, 212, 191, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
}

.social-popover::before {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    height: 25px;
    background: transparent;
}

.social-popover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: var(--accent) transparent transparent transparent;
}

.social-hover-wrapper:hover .social-popover,
.social-hover-wrapper.active .social-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0) scale(1);
}

.popover-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tg-btn { background: #2AABEE; }
.tg-btn:hover { background: #229ED9; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(42, 171, 238, 0.4); }

.vk-btn { background: #0077FF; }
.vk-btn:hover { background: #0066CC; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 119, 255, 0.4); }

/* Обучение */
.tutorial-card {
    background: linear-gradient(145deg, rgba(21, 26, 34, 0.8) 0%, rgba(12, 16, 22, 0.9) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(45, 212, 191, 0.25);
    border-radius: 24px;
    padding: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 40px;
}

.tutorial-info h3 {
    font-size: 32px;
    color: white;
    margin-bottom: 15px;
    font-weight: 800;
}

.tutorial-info p {
    color: var(--text-muted);
    margin-bottom: 25px;
    max-width: 550px;
    line-height: 1.6;
}

.tutorial-price {
    font-size: 30px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 20px;
    text-shadow: 0 0 12px var(--accent-glow);
}

/* Стили модалки правил */
.rules-modal-container {
    max-width: 650px;
}

.rules-modal-body {
    padding: 35px;
}

.rules-scroll-area {
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 12px;
}

.rule-item {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
}

.rule-item h4 {
    color: var(--accent);
    font-size: 16px;
    margin-bottom: 8px;
}

.rule-item p {
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.6;
}

.rules-list {
    margin-top: 10px;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.rules-list li {
    margin-bottom: 6px;
}

.rules-list strong {
    color: var(--text-main);
}

/* О нас и Соц доказательства */
.social-proof {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    scroll-margin-top: 180px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.stat-item h4 {
    font-size: 44px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 5px;
    text-shadow: 0 0 15px var(--accent-glow);
}

/* Отзывы */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    justify-items: center;
    width: 100%;
}

.review {
    background: rgba(15, 19, 26, 0.7);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 18px;
    padding: 18px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    transition: all 0.3s ease;
}

.review:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.review .logo {
    font-size: 14px;
    color: var(--text-muted);
}

.review .logo span {
    color: var(--accent);
    font-weight: bold;
}

.review-text {
    font-size: 12.5px;
    color: var(--text-main);
    line-height: 1.5;
}

/* Партнеры (Бегущая строка / Marquee) */
.partners-marquee-wrapper,
.ticker-wrapper {
    width: 100%;
    overflow: hidden;
    margin-top: 35px;
    position: relative;
    padding: 10px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.partners-marquee-track,
.ticker-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marqueeScroll 25s linear infinite;
    will-change: transform;
}

.partners-marquee-wrapper:hover .partners-marquee-track,
.partners-marquee-wrapper:active .partners-marquee-track,
.ticker-wrapper:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-track .review2 {
    flex-shrink: 0;
    width: 180px;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 40px auto;
    justify-items: center;
    width: 100%;
}

.review2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 18px;
    box-sizing: border-box;
    color: var(--accent);
    background: rgba(15, 19, 26, 0.6);
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: 18px;
    height: 240px;
    width: 175px;
    flex-shrink: 0;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
}

.review2:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px var(--accent-glow);
    background: rgba(21, 26, 34, 0.9);
}

.image-avatars {
    height: 110px;
    width: 110px;
    border-radius: 14px;
    border: 2px solid var(--accent);
    object-fit: cover;
    flex-shrink: 0;
}

.project-name {
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin-top: 12px;
    text-align: center;
}

.project-subs {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
    text-align: center;
}

/* Подвал */
footer {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    padding: 40px 20px 25px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.3s;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    margin-top: 30px;
    font-size: 13px;
}

.obertka {
    margin-left: auto;
}

.page-container {
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Мобильное меню */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2005;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--accent);
    border-radius: 3px;
    transition: all 0.4s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* Адаптивность */
@media (max-width: 1024px) {
    .logos-grid { grid-template-columns: repeat(4, 1fr); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 993px) and (max-width: 1150px) {
    .obertka {
        display: flex;
        gap: 8px;
    }
    .obertka .btn-outline2 {
        margin-left: 0;
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 992px) {
    .nav-container { justify-content: space-between; }
    .hamburger { display: flex; }
    
    .obertka {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(8, 11, 16, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        padding: 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s ease;
        z-index: 2000;
        pointer-events: none;
        margin-left: 0;
    }

    .obertka.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: all;
    }

    .obertka .btn-outline2 {
        margin-left: 0;
        width: 80%;
        max-width: 280px;
    }

    .audit-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }
    
    .audit-main-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero { padding: 110px 15px 40px; }
    .hero h1 { font-size: 32px; }
    .section { padding: 40px 15px; }
    .section-title { font-size: 28px; }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .card-images { height: 120px; }
    .card-content { padding: 12px; }
    .card-title { font-size: 14px; margin-bottom: 6px; }
    .card-price { font-size: 15px; margin-bottom: 10px; }

    .tutorial-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
        gap: 16px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }

    .review2 {
        width: 140px;
        height: 200px;
        padding: 12px;
    }
    .image-avatars {
        height: 85px;
        width: 85px;
    }
    .project-name {
        font-size: 13px;
        margin-top: 8px;
    }
    .project-subs {
        font-size: 11px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
}

/* ==========================================
   МОДАЛЬНОЕ ОКНО УСЛУГ И ПРАВИЛ
   ========================================== */

.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#rulesModal {
    z-index: 3100;
}

.service-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.service-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 7, 12, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.service-modal-container {
    position: relative;
    z-index: 10;
    width: 92%;
    max-width: 980px;
    max-height: 88vh;
    background: rgba(15, 20, 28, 0.95);
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(45, 212, 191, 0.15);
    overflow: hidden;
    transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-modal.active .service-modal-container {
    transform: scale(1);
}

.service-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.service-modal-close:hover {
    background: var(--accent);
    color: #041014;
    transform: rotate(90deg);
}

.service-modal-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    height: 100%;
    max-height: 88vh;
}

.service-modal-gallery {
    background: #080b10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
    user-select: none;
}

.gallery-viewport {
    position: relative;
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-viewport img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    transition: opacity 0.25s ease;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(12, 16, 22, 0.7);
    border: 1px solid rgba(45, 212, 191, 0.3);
    color: var(--accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.gallery-arrow:hover {
    background: var(--accent);
    color: #041014;
    box-shadow: 0 0 12px var(--accent-glow);
}

.arrow-prev { left: 10px; }
.arrow-next { right: 10px; }

.gallery-dots {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.service-modal-info {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.modal-category {
    font-size: 12px;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.modal-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.2;
}

.modal-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 20px;
    text-shadow: 0 0 12px var(--accent-glow);
}

.modal-description-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.modal-description-block h4 {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.modal-description-block p {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.6;
}

/* Плашка правил в модалке */
.modal-rules-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(45, 212, 191, 0.05);
    border: 1px solid rgba(45, 212, 191, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-rules-notice:hover {
    background: rgba(45, 212, 191, 0.12);
    border-color: var(--accent);
    color: var(--accent);
}

.modal-rules-notice svg {
    color: var(--accent);
    flex-shrink: 0;
}

.modal-actions {
    margin-top: auto;
}

.actions-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 600;
}

.actions-buttons {
    display: flex;
    gap: 12px;
}

.btn-modal-tg, .btn-modal-vk {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.25s ease;
}

.btn-modal-tg {
    background: rgba(42, 171, 238, 0.15);
    color: #2AABEE;
    border: 1px solid rgba(42, 171, 238, 0.4);
}

.btn-modal-tg:hover {
    background: #2AABEE;
    color: #fff;
    box-shadow: 0 4px 15px rgba(42, 171, 238, 0.4);
    transform: translateY(-2px);
}

.btn-modal-vk {
    background: rgba(0, 119, 255, 0.15);
    color: #0077FF;
    border: 1px solid rgba(0, 119, 255, 0.4);
}

.btn-modal-vk:hover {
    background: #0077FF;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.4);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .service-modal-container {
        width: 95%;
        max-height: 90vh;
        border-radius: 16px;
    }

    .service-modal-content {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .service-modal-gallery {
        padding: 15px;
    }

    .gallery-viewport {
        height: 220px;
    }

    .service-modal-info {
        padding: 20px 18px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-price {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .actions-buttons {
        flex-direction: column;
    }
}

/* ==========================================
   СЛАЙДЕР: Как происходит сотрудничество
   ========================================== */

.workflow-slider-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 50px;
}

.workflow-slider-container {
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(21, 26, 34, 0.85) 0%, rgba(12, 16, 22, 0.95) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(45, 212, 191, 0.3);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(45, 212, 191, 0.05);
}

.workflow-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.workflow-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 35px 30px;
    opacity: 0.3;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(0.97);
}

.workflow-slide.active {
    opacity: 1;
    transform: scale(1);
}

.wf-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.wf-step-tag {
    display: inline-block;
    background: rgba(45, 212, 191, 0.12);
    color: var(--accent);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
    border: 1px solid rgba(45, 212, 191, 0.3);
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.15);
}

.wf-icon {
    font-size: 42px;
    margin-bottom: 12px;
    line-height: 1;
    filter: drop-shadow(0 0 12px var(--accent-glow));
}

.wf-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 18px;
    line-height: 1.3;
}

.wf-media-side {
    width: 100%;
    max-width: 680px;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    background-color: #0b0f17;
}

.wf-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wf-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
}

.wf-card-final .wf-order-btn {
    margin-top: 22px;
    padding: 14px 32px;
    font-size: 16px;
    gap: 8px;
}

.wf-order-btn {
    margin-top: 20px;
}

.workflow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(12, 16, 22, 0.85);
    border: 1px solid rgba(45, 212, 191, 0.4);
    color: var(--accent);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.workflow-arrow:hover {
    background: var(--accent);
    color: #041014;
    box-shadow: 0 0 18px var(--accent-glow);
    transform: translateY(-50%) scale(1.08);
}

.workflow-arrow.arrow-prev { left: 0; }
.workflow-arrow.arrow-next { right: 0; }

.workflow-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.wf-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.wf-dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 10px;
    box-shadow: 0 0 12px var(--accent-glow);
}

/* ==========================================
   ПЛАВАЮЩАЯ КНОПКА «Разбор превью»
   ========================================== */

.floating-audit-widget {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 2500;
    width: 290px;
    background: rgba(12, 16, 22, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(45, 212, 191, 0.4);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(45, 212, 191, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-audit-widget.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.floating-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.floating-close:hover {
    color: var(--accent);
    transform: scale(1.15);
}

.floating-badge {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.floating-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.2;
}

.floating-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}

.floating-buttons {
    display: flex;
    gap: 8px;
}

.floating-buttons .popover-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .workflow-slider-wrapper {
        padding: 0 15px;
    }

    .workflow-arrow {
        display: none;
    }

    .workflow-slide {
        padding: 25px 15px;
    }

    .wf-card {
        min-height: auto;
    }

    .wf-title {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .wf-desc {
        font-size: 13.5px;
    }

    .floating-audit-widget {
        bottom: 15px;
        left: 15px;
        right: 15px;
        width: auto;
        max-width: calc(100vw - 30px);
    }
}

/* --- Анимация появления блоков при скролле --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s cubic-bezier(0.215, 0.61, 0.355, 1), 
                transform 0.7s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   Виджет пакетов в стиле подложек модалки
   ========================================== */
.package-selector-widget {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    margin: 16px 0;
}

.pkg-label {
    font-size: 11px;
    color: var(--text-muted, #8A94A6);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.pkg-toggle-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.pkg-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-main, #FFFFFF);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pkg-btn:hover {
    border-color: rgba(45, 212, 191, 0.4);
    background: rgba(45, 212, 191, 0.05);
}

.pkg-btn.active {
    background: rgba(45, 212, 191, 0.12);
    border-color: #2DD4BF;
    color: #FFFFFF;
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.2);
}

.pkg-badge {
    font-size: 10px;
    background: linear-gradient(135deg, #FF9A44, #FC6076);
    color: #FFFFFF;
    padding: 1px 6px;
    border-radius: 6px;
    margin-top: 3px;
    font-weight: 800;
}

.pkg-price-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pkg-price-main {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.total-price {
    font-size: 18px;
    font-weight: 800;
    color: #2DD4BF;
    text-shadow: 0 0 8px rgba(45, 212, 191, 0.3);
}

.unit-price {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.pkg-savings-badge {
    font-size: 11px;
    font-weight: 700;
    color: #2DD4BF;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.25);
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
/* ==========================================
   АНИМАЦИИ И ЭФФЕКТЫ ДЛЯ ПЛАШЕК ВЫГОДЫ
   ========================================== */

/* Ключевые кадры: плавное дыхание/пульсация */
@keyframes badgePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 16px rgba(45, 212, 191, 0.4);
    }
    100% {
        transform: scale(1);
    }
}

/* Ключевые кадры: всплытие плашки экономии */
@keyframes savingsPop {
    0% {
        opacity: 0;
        transform: scale(0.82) translateY(5px);
    }
    70% {
        transform: scale(1.06) translateY(-1px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 1. Главная плашка в шапке (Hero) */
.badge {
    display: inline-block;
    background: rgba(45, 212, 191, 0.1);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid rgba(45, 212, 191, 0.25);
    box-shadow: 0 0 15px rgba(45, 212, 191, 0.1);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: badgePulse 3s infinite ease-in-out;
    cursor: default;
}

.badge:hover {
    transform: scale(1.07) translateY(-2px);
    background: rgba(45, 212, 191, 0.18);
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(45, 212, 191, 0.45);
}

/* 2. Бейдж "Популярно" на карточках */
.tag-orange {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, #FF9A44, #FC6076);
    color: #fff;
    font-weight: 800;
    vertical-align: middle;
    margin-left: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(252, 96, 118, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: badgePulse 2.5s infinite ease-in-out;
}

.tag-orange:hover {
    transform: scale(1.15) rotate(2deg);
}

/* 3. Плашки "-10%" и "-25%" внутри кнопок пакетов */
.pkg-badge {
    font-size: 10px;
    background: linear-gradient(135deg, #FF9A44, #FC6076);
    color: #FFFFFF;
    padding: 1px 6px;
    border-radius: 6px;
    margin-top: 3px;
    font-weight: 800;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    animation: badgePulse 2.8s infinite ease-in-out;
}

.pkg-btn:hover .pkg-badge,
.pkg-btn.active .pkg-badge {
    transform: scale(1.15) translateY(-1px);
    box-shadow: 0 4px 12px rgba(252, 96, 118, 0.6);
}

/* 4. Плашка "Экономия X ₽" в модальном окне */
.pkg-savings-badge {
    font-size: 11px;
    font-weight: 700;
    color: #2DD4BF;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.35);
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 0 12px rgba(45, 212, 191, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: savingsPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.pkg-savings-badge:hover {
    transform: scale(1.08) translateY(-1px);
    background: rgba(45, 212, 191, 0.2);
    box-shadow: 0 0 18px rgba(45, 212, 191, 0.4);
}
/* ==========================================
   CYBER 3D EFFECT (Адаптирован под стилистику сайта)
   ========================================== */

/* Контейнеры-носители эффекта */
.cyber-3d-target {
  position: relative;
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
  overflow: hidden !important;
}

/* Свечение и сканер */
.cyber-3d-target::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(
    circle at center,
    rgba(45, 212, 191, 0.15) 0%,
    rgba(34, 211, 238, 0.05) 50%,
    transparent 70%
  );
  filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.cyber-3d-target:hover::before {
  opacity: 1;
}

/* Блики (Glare) */
.cyber-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(45, 212, 191, 0.08) 45%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(45, 212, 191, 0.08) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.cyber-3d-target:hover .cyber-glare {
  opacity: 1;
}

/* Бегущий сканер */
.cyber-scan-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(45, 212, 191, 0.25),
    transparent
  );
  transform: translateY(-100%);
  pointer-events: none;
  z-index: 2;
}

.cyber-3d-target:hover .cyber-scan-line {
  animation: cyberScanMove 2s linear infinite;
}

@keyframes cyberScanMove {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Угловые фиксаторы */
.cyber-corners span {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(45, 212, 191, 0.3);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 3;
}

.cyber-corners span:nth-child(1) { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.cyber-corners span:nth-child(2) { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.cyber-corners span:nth-child(3) { bottom: 6px; left: 6px; border-right: 0; border-top: 0; }
.cyber-corners span:nth-child(4) { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }

.cyber-3d-target:hover .cyber-corners span {
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* Частицы */
.cyber-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.cyber-3d-target:hover .cyber-particles span {
  animation: cyberParticleFloat 2s infinite ease-in-out;
}

.cyber-particles span:nth-child(1) { --x: 0.8; --y: -0.8; top: 40%; left: 20%; }
.cyber-particles span:nth-child(2) { --x: -0.8; --y: -0.8; top: 60%; right: 20%; }
.cyber-particles span:nth-child(3) { --x: 0.5; --y: 0.9; top: 20%; left: 40%; }
.cyber-particles span:nth-child(4) { --x: -0.5; --y: 0.9; top: 80%; right: 40%; }

@keyframes cyberParticleFloat {
  0% { transform: translate(0, 0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translate(calc(var(--x, 0) * 20px), calc(var(--y, 0) * 20px)); opacity: 0; }
}

/* Применение эффектов к отзывам, аватаркам и иконкам */
.review, 
.review2, 
.image-avatars, 
.logo-avatar {
  box-sizing: border-box !important;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Сохранение размеров плашек отзывов */
.reviews-grid .review {
  height: 100%;
}