/* ENGINE 16 – COSMIC NEBULA */
:root {
    --bg: #0a0f1e;
    --bg-secondary: #141b2b;
    --text: #e0e5f0;
    --text-light: #ffffff;
    --accent: #7b2eda;
    --accent-dim: #5a1ea5;
    --accent-gradient: linear-gradient(135deg, #7b2eda, #c445f0);
    --muted: #8f9bb3;
    --border: #2a324a;
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.3);
    --shadow-md: 0 5px 20px rgba(123,46,218,0.3);
    --shadow-lg: 0 10px 40px rgba(123,46,218,0.5);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --cursor-default: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%237b2eda"><circle cx="12" cy="12" r="10" /></svg>') 12 12, auto;
    --cursor-pointer: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23c445f0"><circle cx="12" cy="12" r="12" /></svg>') 12 12, pointer;
}
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.7;
    cursor: var(--cursor-default);
    overflow-x: hidden;
}
a, button, .btn, .nav-link, .card, .team-member, .pricing-card, .gallery-item, .timeline-dot, .faq-question, .filter-radio, .slide-radio {
    cursor: var(--cursor-pointer);
}
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ШАПКА – SMART PARALLAX ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 15, 30, 0.2);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 1.5rem 0;
    transform-style: preserve-3d;
}
.site-header.scrolled {
    background: rgba(10, 15, 30, 0.95);
    box-shadow: var(--shadow-md);
    padding: 0.8rem 0;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    transform-style: preserve-3d;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
    transform: translateZ(20px);
}
.logo:hover {
    transform: translateZ(30px) scale(1.05);
}
.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 0 20px var(--accent);
    animation: pulse 2s infinite;
}
.logo-svg {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 10px var(--accent));
}
.brand-name {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 3s ease-in-out infinite;
}
@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent-dim); }
    50% { text-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent-dim); }
}
.site-header.scrolled .brand-name {
    font-size: 1.8rem;
}
.site-header.scrolled .logo {
    transform: translateZ(10px);
}
.site-nav {
    display: flex !important;
    gap: 2.5rem !important;
    align-items: center !important;
    transform: translateZ(10px);
}
.site-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}
.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}
.site-nav a:hover::after,
.site-nav a.active::after {
    width: 100%;
}
.site-nav a:hover {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent);
}
.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    z-index: 1100;
    transform: translateZ(5px);
}
.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
    margin: 8px 0;
    transition: var(--transition);
    border-radius: 3px;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    width: 70%;
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    width: 70%;
}
.drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: rgba(20, 27, 43, 0.98);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    transition: right 0.4s ease;
    z-index: 1099;
    box-shadow: -5px 0 30px rgba(0,0,0,0.7);
    overflow-y: auto;
}
.drawer.open {
    right: 0;
}
.drawer a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.8rem;
    transition: var(--transition);
}
.drawer a:hover {
    color: var(--accent);
    transform: translateX(-5px);
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1098;
    display: none;
}
.overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .site-nav {
        display: none !important;
    }
    .hamburger {
        display: block;
    }
    .brand-name {
        font-size: 1.5rem;
    }
    .logo-img, .logo-svg {
        width: 50px;
        height: 50px;
    }
}

/* ===== ОСНОВНОЙ КОНТЕЙНЕР ===== */
main {
    padding-top: 100px;
}

/* ===== ГЕРОЙ ===== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 70% 30%, rgba(123,46,218,0.15), transparent 60%),
                linear-gradient(145deg, var(--bg-secondary), var(--bg));
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><circle cx="20" cy="20" r="2" fill="white"/><circle cx="80" cy="40" r="3" fill="white"/><circle cx="50" cy="80" r="2" fill="white"/><circle cx="10" cy="70" r="2" fill="white"/></svg>');
    animation: twinkle 10s infinite;
}
@keyframes twinkle {
    0%,100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero-text {
    transform-style: preserve-3d;
    perspective: 1000px;
}
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.hero-title span {
    display: inline-block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glitch 5s infinite;
}
@keyframes glitch {
    2%,64% { transform: skew(0deg, 0deg); opacity: 1; }
    4%,60% { transform: skew(2deg, 0.5deg); opacity: 0.8; text-shadow: -2px 0 red, 2px 0 blue; }
    62% { transform: skew(0deg, 0deg); text-shadow: none; }
}
.hero-subtitle {
    font-size: 1.3rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
}
.hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
.hero-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}
.hero-image img:hover {
    transform: scale(1.02) rotate(1deg);
    box-shadow: 0 20px 40px rgba(123,46,218,0.5);
}

/* ===== КНОПКИ – 5 СТИЛЕЙ ===== */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    z-index: -1;
}
.btn:hover::before {
    width: 300px;
    height: 300px;
}
.btn-style-1 {
    background: var(--accent-gradient);
    color: white;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
}
.btn-style-1:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.btn-style-2 {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 50px;
}
.btn-style-2:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.btn-style-3 {
    background: var(--bg-secondary);
    color: var(--text-light);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}
.btn-style-3:hover {
    background: var(--accent-dim);
    color: white;
}
.btn-style-4 {
    background: var(--accent);
    color: white;
    border-radius: 0;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}
.btn-style-4:hover {
    background: var(--accent-dim);
    transform: scale(1.05);
}
.btn-style-5 {
    background: linear-gradient(145deg, var(--accent), var(--accent-dim));
    color: white;
    border-radius: 30px 0 30px 0;
    box-shadow: var(--shadow-md);
}
.btn-style-5:hover {
    border-radius: 0 30px 0 30px;
    transform: translateY(-3px);
}

/* ===== КАРТОЧКИ ===== */
.card {
    background: rgba(31, 40, 51, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    color: var(--text-light);
    transform-style: preserve-3d;
    perspective: 1000px;
}
.card:hover {
    transform: rotateX(2deg) rotateY(2deg) translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

/* ===== HOVER-ЭФФЕКТЫ (5 вариантов, используем 3) ===== */
.hover-glow:hover {
    box-shadow: 0 0 30px var(--accent);
}
.hover-scale:hover {
    transform: scale(1.05);
}
.hover-rotate:hover {
    transform: rotate(2deg) scale(1.02);
}
.hover-skew:hover {
    transform: skewX(-2deg) translateY(-5px);
}
.hover-border:hover {
    border-color: var(--accent);
    border-width: 2px;
}

/* ===== СЕТКИ ===== */
.services-grid, .team-grid, .reviews-grid, .gallery-grid, .values-grid, .process-grid, .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ===== КОМАНДА – FLIP-КАРТОЧКИ ===== */
.team-flip {
    background: transparent;
    width: 100%;
    height: 350px;
    perspective: 1000px;
}
.team-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}
.team-flip:hover .team-flip-inner {
    transform: rotateY(180deg);
}
.team-flip-front, .team-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    background: rgba(31, 40, 51, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.team-flip-front {
    color: var(--text-light);
}
.team-flip-back {
    background: var(--accent-gradient);
    color: white;
    transform: rotateY(180deg);
}
.team-flip-back p {
    color: white;
}
.team-flip img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    margin-bottom: 1rem;
}

/* ===== ОТЗЫВЫ – CSS-СЛАЙДЕР ===== */
.reviews-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.reviews-slider input {
    display: none;
}
.review-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s;
}
#slide1:checked ~ .slides .slide1,
#slide2:checked ~ .slides .slide2,
#slide3:checked ~ .slides .slide3 {
    display: block;
    opacity: 1;
}
.review-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}
.review-nav label {
    width: 15px;
    height: 15px;
    background: var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}
.review-nav label:hover {
    background: var(--accent);
}
#slide1:checked ~ .review-nav label[for="slide1"],
#slide2:checked ~ .review-nav label[for="slide2"],
#slide3:checked ~ .review-nav label[for="slide3"] {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}
.review {
    background: rgba(31, 40, 51, 0.7);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.review p:first-child {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.review .author {
    color: var(--accent);
    font-weight: 600;
}

/* ===== ГАЛЕРЕЯ С ФИЛЬТРАМИ (CSS ONLY) ===== */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.gallery-filters input {
    display: none;
}
.gallery-filters label {
    padding: 0.5rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}
.gallery-filters label:hover {
    background: var(--accent);
    color: white;
}
#filter-all:checked ~ .filters label[for="filter-all"],
#filter-web:checked ~ .filters label[for="filter-web"],
#filter-mobile:checked ~ .filters label[for="filter-mobile"],
#filter-design:checked ~ .filters label[for="filter-design"] {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.gallery-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.gallery-item {
    display: block;
}
#filter-web:checked ~ .gallery-items .gallery-item:not(.filter-web),
#filter-mobile:checked ~ .gallery-items .gallery-item:not(.filter-mobile),
#filter-design:checked ~ .gallery-items .gallery-item:not(.filter-design) {
    display: none;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: var(--transition);
}
.gallery-item:hover .overlay {
    transform: translateY(0);
}

/* ===== PRICING С ПЕРЕКЛЮЧАТЕЛЕМ ГОД/МЕСЯЦ ===== */
.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.pricing-toggle input {
    display: none;
}
.pricing-toggle label {
    padding: 0.5rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}
.pricing-toggle label:hover {
    background: var(--accent);
    color: white;
}
#price-yearly:checked ~ .toggle label[for="price-yearly"],
#price-monthly:checked ~ .toggle label[for="price-monthly"] {
    background: var(--accent);
    color: white;
}
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}
.pricing-card .price small {
    font-size: 1rem;
    color: var(--muted);
}
#price-yearly:checked ~ .pricing-cards .price-monthly {
    display: none;
}
#price-monthly:checked ~ .pricing-cards .price-yearly {
    display: none;
}
.pricing-card .price-yearly {
    display: block;
}
.pricing-card .price-monthly {
    display: block;
}
#price-yearly:checked ~ .pricing-cards .price-yearly {
    display: block;
}
#price-yearly:checked ~ .pricing-cards .price-monthly {
    display: none;
}
#price-monthly:checked ~ .pricing-cards .price-monthly {
    display: block;
}
#price-monthly:checked ~ .pricing-cards .price-yearly {
    display: none;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--accent-gradient);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border: 3px solid var(--bg);
    border-radius: 50%;
    top: 20px;
    right: -10px;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(123,46,218,0.2);
}
.timeline-item.left {
    left: 0;
}
.timeline-item.right {
    left: 50%;
}
.timeline-item.right::after {
    left: -10px;
}
.timeline-content {
    padding: 1.5rem;
    background: rgba(31, 40, 51, 0.7);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.timeline-content:hover {
    transform: scale(1.02);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}
@media (max-width: 600px) {
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item.right { left: 0; }
    .timeline-item::after { left: 20px; right: auto; }
}

/* ===== FAQ – АККОРДЕОН ===== */
.faq-item {
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}
.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 1.5rem;
    transition: var(--transition);
}
.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 1rem 1rem 1rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ===== ФОРМА ===== */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}
label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-light);
}
input, textarea, select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    box-sizing: border-box;
    background: rgba(255,255,255,0.05);
    color: var(--text-light);
    transition: var(--transition);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(123,46,218,0.2);
    background: rgba(255,255,255,0.1);
}
.error-message {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}
input:invalid:not(:placeholder-shown) + .error-message,
textarea:invalid:not(:placeholder-shown) + .error-message {
    display: block;
}
input:valid:not(:placeholder-shown) {
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76,175,80,0.2);
}

/* ===== ФУТЕР – 5 ВАРИАНТОВ ===== */
.site-footer {
    margin-top: 6rem;
    padding: 4rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    color: var(--text);
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}
.footer-nav {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-nav a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}
.footer-nav a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}
.footer-legal {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-legal a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}
.footer-legal a:hover {
    color: var(--accent);
}
.copyright {
    color: var(--muted);
    font-size: 0.95rem;
}
.social-links {
    display: flex;
    gap: 1.5rem;
}
.social-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: var(--transition);
}
.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}
/* Варианты футера */
body.footer-style-1 .site-footer { background: var(--bg-secondary); text-align: center; }
body.footer-style-2 .site-footer { background: var(--bg); border-top: 2px solid var(--accent); }
body.footer-style-2 .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
body.footer-style-3 .footer-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; align-items: start; }
body.footer-style-4 .site-footer { background: linear-gradient(145deg, var(--bg-secondary), var(--bg)); color: var(--text-light); }
body.footer-style-5 .site-footer { background: #1a1f2b; border-top: none; position: relative; }
body.footer-style-5 .site-footer::before { content: ''; position: absolute; top: -2px; left: 0; width: 100%; height: 2px; background: var(--accent-gradient); }

/* ===== КНОПКА "НАВЕРХ" С ПРОГРЕССОМ ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 99;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-top:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.progress-ring circle {
    fill: none;
    stroke: rgba(255,255,255,0.3);
    stroke-width: 4;
}
.progress-ring .progress {
    stroke: white;
    stroke-dasharray: 170;
    stroke-dashoffset: 170;
    transition: stroke-dashoffset 0.1s;
}

/* ===== АНИМАЦИИ ПОЯВЛЕНИЯ (выбирается одна) ===== */
.glitch-in {
    opacity: 0;
    transform: scale(0.8) rotate(5deg);
    filter: blur(10px);
    transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}
.glitch-in.visible {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0);
}
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}
.fade-in.visible {
    opacity: 1;
}
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.rotate-in {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.rotate-in.visible {
    opacity: 1;
    transform: rotate(0) scale(1);
}

        :root {
            --bg: #0f1f1e;
            --bg-secondary: #1b302e;
            --text: #c0f0f0;
            --text-light: #ffffff;
            --accent: #00cec9;
            --accent-dim: #00a8a3;
            --muted: #a0c0c0;
            --border: #1f4a47;
        }
        body {
            font-family: 'Quicksand', sans-serif;
        }
        .rotate-in {
            opacity: 0;
            transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
        }
        .rotate-in.visible {
            opacity: 1;
        }