:root {
    --primary-color: #4B0082;
    --secondary-color: #FF4500;
    --accent-color: #FFD700;
    --text-color: #FFFFFF;
    --bg-color: #1A1A2E;
    --vk-blue: #4680C2;
    --border-radius: 8px;
    --container-width: 1200px;
    --transition-speed: 0.3s;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    overscroll-behavior: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 16px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3 {
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.3;
}

.header {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo {
    font-size: clamp(18px, 5vw, 20px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-size: clamp(14px, 4vw, 16px);
    font-weight: 500;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.2);
}

.btn--large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn--primary, .btn--hero, .btn--cta {
    background-color: var(--secondary-color);
}

.btn--primary:hover, .btn--hero:hover, .btn--cta:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.btn i {
    font-size: 1.2rem;
}

.hero {
    padding-top: 80px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 20% 80%, rgba(255, 69, 0, 0.1), transparent 30%),
                radial-gradient(circle at 80% 30%, rgba(255, 215, 0, 0.1), transparent 30%);
}

.hero__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero__content {
    flex: 1;
    max-width: 600px;
    opacity: 1; /* Резервный стиль */
}

.hero__title {
    font-size: clamp(24px, 6vw, 48px);
    font-weight: 800;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: clamp(16px, 4vw, 18px);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero__subtitle strong {
    color: var(--accent-color);
}

.hero__animation {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1; /* Резервный стиль */
}

.hero__animation .main-icon {
    font-size: 80px;
    color: var(--secondary-color);
    z-index: 2;
}

.hero__animation .circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.3);
    animation: pulse 4s infinite ease-in-out;
}

.hero__animation .circle:nth-child(1) { width: 150px; height: 150px; animation-delay: 0s; }
.hero__animation .circle:nth-child(2) { width: 220px; height: 220px; animation-delay: 1s; }
.hero__animation .circle:nth-child(3) { width: 300px; height: 300px; animation-delay: 2s; }

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; }
}

.about {
    padding: 48px 0;
}

.about h2 {
    font-size: clamp(20px, 5vw, 28px);
    margin-bottom: 16px;
    text-align: center;
    opacity: 1; /* Резервный стиль */
}

.about p {
    max-width: 600px;
    margin: 0 auto 24px;
    font-size: clamp(14px, 4vw, 16px);
    opacity: 1; /* Резервный стиль */
}

.about img {
    max-width: 100%;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
    opacity: 1; /* Резервный стиль */
}

.features {
    padding: 48px 0;
    background-color: rgba(255, 255, 255, 0.05);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.feature-card {
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1; /* Резервный стиль */
}

.feature-card i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.feature-card h3 {
    font-size: clamp(16px, 4vw, 18px);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: clamp(12px, 3vw, 14px);
}

.how-it-works {
    padding: 80px 0;
}

.how-it-works h2 {
    font-size: clamp(20px, 5vw, 36px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    opacity: 1; /* Резервный стиль */
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 40px;
    text-align: center;
}

.step {
    padding: 16px;
    opacity: 1; /* Резервный стиль */
}

.step__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--secondary-color);
    font-size: 32px;
    transition: all var(--transition-speed) ease;
}

.step:hover .step__icon {
    background-color: var(--secondary-color);
    color: var(--text-color);
    transform: scale(1.1);
}

.step__title {
    font-size: clamp(16px, 4vw, 20px);
    margin-bottom: 10px;
}

.step__text {
    font-size: clamp(12px, 3vw, 14px);
}

.gallery {
    padding: 48px 0;
    background-color: rgba(255, 255, 255, 0.05);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.gallery img {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 4/3;
    opacity: 1; /* Резервный стиль */
}

.reviews {
    padding: 48px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.review-card {
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1; /* Резервный стиль */
}

.review-card p {
    font-size: clamp(12px, 3vw, 14px);
    margin-bottom: 8px;
}

.review-card h4 {
    font-size: clamp(14px, 4vw, 16px);
    color: var(--accent-color);
}

.stats {
    padding: 48px 0;
    background-color: rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    text-align: center;
}

.stat h3 {
    font-size: clamp(24px, 6vw, 32px);
    color: var(--secondary-color);
}

.stat p {
    font-size: clamp(12px, 3vw, 14px);
}

.faq {
    padding: 48px 0;
}

.faq-item {
    margin-bottom: 16px;
    opacity: 1; /* Резервный стиль */
}

.faq-item h3 {
    cursor: pointer;
    padding: 12px;
    background-color: var(--vk-blue);
    border-radius: 8px;
    font-size: clamp(14px, 4vw, 16px);
}

.faq-item p {
    padding: 12px;
    display: none;
    font-size: clamp(12px, 3vw, 14px);
}

.faq-item.active p {
    display: block;
}

.floating-buttons {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-speed);
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-btn i {
    font-size: 1.5rem;
}

.back-to-top {
    background-color: var(--secondary-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--accent-color);
}

.cta {
    padding: 80px 0;
    text-align: center;
}

.cta__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 16px;
}

.cta__title {
    font-size: clamp(24px, 6vw, 40px);
    margin-bottom: 15px;
    opacity: 1; /* Резервный стиль */
}

.cta__text {
    font-size: clamp(16px, 4vw, 18px);
    margin-bottom: 30px;
    opacity: 1; /* Резервный стиль */
}

.footer {
    padding: 40px 0;
    background-color: var(--primary-color);
    text-align: center;
}

.footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__logo img {
    height: 30px;
    width: 30px;
}

.footer__logo span {
    font-size: 18px;
    font-weight: 500;
}

.footer__copyright {
    font-size: 14px;
}

.footer__links a {
    font-size: 14px;
    margin: 0 10px;
}

@media (max-width: 992px) {
    .hero__container {
        flex-direction: column;
        text-align: center;
    }
    .hero__content {
        max-width: 100%;
    }
    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero__animation {
        margin-top: 40px;
    }
    .steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 12px;
    }
    .hero {
        padding-top: 60px;
    }
    .hero__title {
        font-size: clamp(20px, 6vw, 36px);
    }
    .hero__subtitle {
        font-size: clamp(14px, 4vw, 16px);
    }
    .btn--large {
        padding: 14px 28px;
        font-size: 16px;
    }
    .how-it-works h2 {
        font-size: clamp(18px, 5vw, 32px);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    .features-grid, .gallery-grid, .reviews-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
}