:root {
    --primary-bg: #0a0a12;
    --secondary-bg: #141420;
    --accent-color: #7b6cf6;
    --accent-light: #a594ff;
    --accent-gradient: linear-gradient(135deg, #7b6cf6 0%, #a594ff 100%);
    --text-color: #ffffff;
    --text-secondary: #b8b8d6;
    --card-bg: rgba(30, 30, 48, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-effect: rgba(30, 30, 48, 0.4);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --space-purple: #2a1b4d;
    --neon-blue: #e1e1e1;
    --header-color: rgba(30, 30, 48, 0.4);
    --lang-color: #1f1f2a;
    --lang-color-hover: #1f1f2a;
}

[data-theme="light"] {
    --primary-bg: #f5f5ff;
    --secondary-bg: #ffffff;
    --accent-color: #00d4ff;
    --accent-secondary: #ff6b9d;
    --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #ff6b9d 100%);
    --accent-gradient-alt: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --warning-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    --danger-gradient: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    --accent-color: #7b6cf6;
    --accent-light: #a594ff;
    --accent-gradient: linear-gradient(135deg, #7b6cf6 0%, #a594ff 100%);
    --text-color: #121230;
    --text-secondary: #4a4a6a;
    --card-bg: rgba(255, 255, 255, 0.7);
    --border-color: rgba(0, 0, 0, 0.08);
    --glass-effect: rgba(255, 255, 255, 0.6);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --space-purple: #e6e0ff;
    --neon-blue: #0077ff;
    --header-color: rgba(238, 238, 238, 0.6);
    --lang-color: #d8d8da;
    --lang-color-hover: #d8d8da;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Unbounded';
}

body {
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 20% 30%, var(--space-purple) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, var(--space-purple) 0%, transparent 25%);
}

#threejs-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cosmic Header */
header {
    background-color: var(--header-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    position: relative;
}

.logo-highlight {
    color: var(--neon-blue);
    font-weight: 800;
}

.logo-badge {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: super;
    line-height: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle,
.lang-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: var(--secondary-bg);
    transition: all 0.3s;
    background: var(--lang-color);
    border: 1px solid var(--border-color);
    background-color: var(--secondary-bg);
}

.theme-toggle:hover,
.lang-toggle:hover {
    background-color: var(--lang-color-hover);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 15px;
    position: relative;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 6px;
    position: relative;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s;
}

nav ul li a:hover::before {
    width: calc(100% - 24px);
}

/* Cosmic Hero */
.hero {
    text-align: center;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 64px;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--accent-color) 20%, var(--accent-light) 40%, var(--accent-color) 60%, var(--accent-light) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientShine 3s linear infinite;
    line-height: 1.2;
}

@keyframes gradientShine {
    to {
        background-position: 200% center;
    }
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(123, 108, 246, 0.3);
    border: none;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--neon-blue) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(123, 108, 246, 0.4);
}

.cta-button:hover::before {
    opacity: 1;
}

.cosmic-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(123, 108, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(123, 108, 246, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    opacity: 0.3;
}

/* Services */
.services {
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
    font-size: 42px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 16px;
    transition: all 0.4s;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(123, 108, 246, 0.1) 0%, rgba(123, 108, 246, 0) 70%);
    transform: scale(0);
    transition: transform 0.6s;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: rgba(123, 108, 246, 0.3);
}

.service-card:hover::before {
    transform: scale(1);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 25px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 16px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    text-align: left;
}

.service-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.service-features i {
    color: var(--accent-color);
    font-size: 12px;
}

/* About */
.about {
    padding: 120px 0;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 42px;
    margin-bottom: 20px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
}

.about-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
}

.about-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}

.about-image:hover img {
    transform: scale(1.03);
}

.cosmic-badge {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(123, 108, 246, 0.3);
}

/* Partners */
.partners {
    padding: 100px 0;
    background-color: var(--secondary-bg);
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

.partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--space-purple) 0%, transparent 70%);
    opacity: 0.1;
    z-index: 0;
}

.partners h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 42px;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.partner-logo {
    opacity: 0.8;
    transition: all 0.3s;
    max-width: 100%;
    height: auto;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.partner-logo:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

/*Зв'язок*/

.contacts {
    padding: 100px 0;
    background-color: var(--secondary-bg);
    position: relative;
    overflow: hidden;
    padding-top: 0px;
}

.contacts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--space-purple) 0%, transparent 70%);
    opacity: 0.1;
    z-index: 0;
}

.contacts h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 42px;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.contacts form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.contacts form>p:nth-child(1) {
    grid-column: 2;
    grid-row: 1;
}

.contacts form>input:nth-child(2) {
    grid-column: 2;
    grid-row: 2;
}

.contacts form>p:nth-child(3) {
    grid-column: 2;
    grid-row: 3;
}

.contacts form>input:nth-child(4) {
    grid-column: 2;
    grid-row: 4;
}

.contacts form>p:nth-child(5) {
    grid-column: 2;
    grid-row: 5;
}

.contacts form>input:nth-child(6) {
    grid-column: 12;
    grid-row: 6;
}

.contacts form>button:nth-child(7) {
    grid-column: 2;
    grid-row: 7;
}

.contacts form>div:nth-child(8) {
    grid-column: 1;
    grid-row: 1 / span 7;
}

/* Stats */
.stats {
    padding: 120px 0;
    background: var(--accent-gradient);
    color: white;
    text-align: center;
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.2' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.stat-item h3 {
    font-size: 64px;
    margin-bottom: 10px;
    font-weight: 700;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 500;
}

/* CTA */
.cta {
    padding: 140px 0;
    text-align: center;
    position: relative;
}

.cta h2 {
    font-size: 48px;
    margin-bottom: 20px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
    font-size: 18px;
}

/* Footer */
footer {
    background-color: var(--secondary-bg);
    padding: 100px 0 30px;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.footer-column h3 {
    color: var(--text-color);
    margin-bottom: 25px;
    font-size: 20px;
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--text-color);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent-gradient);
    transform: translateY(-3px);
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

/* Modern Animations and Effects */
.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-15px) rotate(1deg);
    }
    66% {
        transform: translateY(-25px) rotate(-1deg);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(0, 212, 255, 0);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
        transform: scale(1);
    }
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 5px currentColor);
    }
    50% {
        filter: drop-shadow(0 0 20px currentColor) drop-shadow(0 0 30px currentColor);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -15px, 0);
    }
    70% {
        transform: translate3d(0, -7px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Floating elements */
.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-15px) rotate(1deg);
    }
    66% {
        transform: translateY(-25px) rotate(-1deg);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .logo-container {
        margin-bottom: 10px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .section-title,
    .partners h2,
    .cta h2 {
        font-size: 32px;
    }
}

.language-selector {
    padding: 8px 12px;
    padding-left: 40px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--secondary-bg);
    color: var(--text-color);
    cursor: pointer;
    appearance: none;
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 20px;
    transition: all 0.3s ease;
    font-size: 14px;
    height: 40px;
    font-family: 'Unbounded', sans-serif;
}

.language-selector:hover {
    border-color: var(--accent-color);
}

.language-selector:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(123, 108, 246, 0.3);
}

/* Для стрелки селекта */
.language-selector {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23b8b8d6"><path d="M7 10l5 5 5-5z"/></svg>');
    background-position: right 10px center, 10px center;
    background-size: 12px, 20px;
    padding-right: 30px;
}

/* Для опций в выпадающем списке */
.language-selector option {
    padding: 8px;
    font-family: 'Unbounded', sans-serif;
    background: var(--secondary-bg);
    color: var(--text-color);
}

/* Switch styles */
.switch {
    display: block;
    --width-of-switch: 3.5em;
    --height-of-switch: 2em;
    --size-of-icon: 1.4em;
    --slider-offset: 0.3em;
    position: relative;
    width: var(--width-of-switch);
    height: var(--height-of-switch);
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #dedede;
    transition: .4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: var(--size-of-icon, 1.4em);
    width: var(--size-of-icon, 1.4em);
    border-radius: 20px;
    left: var(--slider-offset, 0.3em);
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(40deg, #ff0080, #ff8c00 70%);
    transition: .4s;
}

input:checked+.slider {
    background-color: #303136;
}

input:checked+.slider:before {
    left: calc(100% - (var(--size-of-icon, 1.4em) + var(--slider-offset, 0.3em)));
    background: #303136;
    box-shadow: inset -3px -2px 5px -2px #8983f7, inset -10px -4px 0 0 #a3dafb;
}

/* Calculator Section */
.calculator {
    padding: 100px 0;
    background-color: var(--secondary-bg);
    padding-bottom: 50px;
}

.calculator-container {
    display: flex;
    gap: 30px;
}

.calculator-form {
    flex: 2;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.calculator-form option {
    padding: 8px;
    font-family: 'Unbounded', sans-serif;
    background: var(--secondary-bg);
    color: var(--text-color);
}

.calculator-result {
    flex: 1;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-color);
}

.calculator-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--secondary-bg);
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s;
}

.calculator-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(123, 108, 246, 0.2);
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-direction: column;
    gap: 12px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.checkbox-group label:hover {
    color: var(--text-color);
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
}

.result-card {
    z-index: 1;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--accent-gradient);
}

.result-card {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    background: var(--accent-gradient);
    color: white;
    text-align: center;
    position: relative;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.2' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 0;
}

.result-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.price-display {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.price-currency {
    font-size: 32px;
    opacity: 0.8;
}

.price-note {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 20px;
}

#request-quote {
    width: 100%;
    background: white;
    color: var(--accent-color);
    font-weight: 600;
}

#request-quote:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: var(--secondary-bg);
    padding-bottom: 50px;
    padding-top: 50px;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 500;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0px 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    padding-bottom: 20px;
    line-height: 1.7;
    margin-top: 20px;
}

.faq-item.active .faq-question {
    background-color: rgba(123, 108, 246, 0.1);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Process Section */
.process {
    padding-top: 100px;
    position: relative;
    padding-bottom: 20px;
    background: var(--secondary-bg);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    height: 100%;
    width: 2px;
    background: var(--accent-gradient);
    z-index: 0;
}

.process-step {
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    flex: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.step-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.step-content p {
    color: var(--text-secondary);
    font-size: 16px;
}

.question-box {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    background: var(--accent-gradient);
    color: white;
    text-align: center;
    position: relative;
}

.question-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.2' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 0;
}

.question-box i {
    z-index: 1;
}

/*Info contact*/
.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    /*height: 400px;*/
    height: 266px;
}

.info-card {
    display: flex;
    gap: 20px;
    align-items: center;
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.info-content a,
.info-content p {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.info-content a:hover {
    color: var(--accent-color);
}

.contact-info-mail {
    height: 400px;
    overflow: hidden;

    align-items: center;
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/*Modal*/
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content-form {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.modal .close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 32px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    z-index: 10;
}

.modal .close:hover {
    color: #fff;
}



/*Optimisation*/
@media (max-width: 768px) {

    .hero {
        padding: 120px 0 80px;
    }

    .hero h1 {
        font-size: 36px;
        line-height: 1.3;
    }

    .hero p {
        font-size: 18px;
        padding: 0 15px;
    }

    .calculator-container {
        flex-direction: column;
    }

    .calculator-form {
        padding: 25px;
    }

    .calculator-result {
        margin-top: 30px;
    }

    .contacts form {
        grid-template-columns: 1fr;
    }

    .contacts form>div:nth-child(8),
    .contacts form>p:nth-child(1),
    .contacts form>input:nth-child(2),
    .contacts form>p:nth-child(3),
    .contacts form>input:nth-child(4),
    .contacts form>p:nth-child(5),
    .contacts form>input:nth-child(6),
    .contacts form>button:nth-child(7) {
        grid-column: auto;
        grid-row: auto;
    }

    .process-step {
        flex-direction: column;
        align-items: flex-start;
    }

    .process-steps::before {
        left: 30px;
    }

    .contact-info {
        height: auto;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
    }

    .faq-question {
        padding: 15px;
    }

    .faq-question h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {

    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .theme-toggle,
    .lang-toggle {
        width: 100%;
        justify-content: center;
    }

    .service-card {
        padding: 30px 20px;
    }

    .stat-item h3 {
        font-size: 48px;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .modal-content-form {
        width: 95%;
        padding: 20px 15px;
    }

    .cta-button {
        padding: 14px 0px;
        font-size: 15px;
    }

    .price-display {
        font-size: 36px;
    }

    .calculator-input {
        padding: 10px 14px;
    }

    .section-title,
    .partners h2,
    .cta h2 {
        font-size: 28px;
    }

    .section-title::after {
        bottom: -12px;
    }
}

@media (min-width: 481px) and (max-width: 1024px) {

    .calculator-form {
        padding: 30px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .process-step {
        gap: 15px;
    }

    .step-content {
        padding: 15px;
    }

    .faq-question {
        padding: 18px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .section-title {
        margin-bottom: 50px;
    }
}

@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .logo,
    .service-icon,
    .step-number,
    .info-icon {
        -webkit-font-smoothing: antialiased;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 16px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .price-display {
        font-size: 32px;
    }
}

@media (hover: none) {
    .calculator-input:focus {
        border-color: var(--accent-color);
        box-shadow: 0 0 0 2px rgba(123, 108, 246, 0.2);
    }

    .language-selector:focus {
        box-shadow: 0 0 0 2px rgba(123, 108, 246, 0.3);
    }
}

@media screen and (max-width: 768px) {

    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

@media (max-width: 1024px) {
    html {
        scroll-behavior: smooth;
    }
}

@media (max-width: 768px) {
    #threejs-bg {
        opacity: 0.1;
    }

    .question-box {
        display: none;
    }

    .faq-question i {
        margin-left: 10px;
    }
}

@media (min-width: 769px) {
    .desktop-nav {
        display: flex;
    }

    .mobile-nav-toggle {
        display: none;
    }
}

@media (max-width: 768px) {

    nav ul {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--secondary-bg);
        border: 1px solid var(--border-color);
        border-radius: 6px;
        cursor: pointer;
        color: var(--text-color);
        font-size: 24px;
        transition: all 0.3s;
    }

    .mobile-nav-toggle:hover {
        background-color: var(--lang-color-hover);
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        width: calc(100% - 40px);
        background-color: var(--secondary-bg);
        border-radius: 8px;
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow);
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease-out;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        margin-left: auto;
        margin-right: auto;
    }

    .dropdown-menu.open {
        max-height: 500px;
    }

    .dropdown-menu ul {
        display: block;
        padding: 10px 0;
        padding-left: 24px;
    }

    .dropdown-menu ul li {
        margin: 0;
    }

    .dropdown-menu ul li a {
        display: block;
        padding: 12px 20px;
        color: var(--text-color);
        text-decoration: none;
        transition: all 0.3s;
    }

    .dropdown-menu ul li a:hover {
        background-color: rgba(123, 108, 246, 0.1);
    }

    .dropdown-menu ul li a::before {
        display: none;
    }

    .header-content {
        position: relative;
    }

    .header-actions {
        gap: 10px;
    }

}

.mobile-nav-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s;
    position: relative;
}

.mobile-nav-toggle .icon-bar+.icon-bar {
    margin-top: 6px;
}

.mobile-nav-toggle.open .icon-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle.open .icon-bar:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.open .icon-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 480px) {
    header {
        padding: 15px 0;
    }

    .logo {
        font-size: 24px;
    }

    .logo-badge {
        font-size: 10px;
        padding: 1px 4px;
    }
}

/* Header Dropdown Menu - Updated Styles */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

@media (min-width: 769px) {
    .desktop-nav {
        display: block;
    }

    .mobile-nav-toggle {
        display: none;
    }

    .dropdown-menu {
        display: none;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: var(--secondary-bg);
        border: 1px solid var(--border-color);
        border-radius: 6px;
        cursor: pointer;
        z-index: 1001;
        transition: all 0.3s;
        padding: 0;
    }

    .mobile-nav-toggle:hover {
        background-color: var(--lang-color-hover);
    }

    .mobile-nav-toggle .icon-bar {
        display: block;
        width: 22px;
        height: 2px;
        background-color: var(--text-color);
        transition: all 0.3s;
        margin: 3px 0;
    }

    .mobile-nav-toggle.open .icon-bar:nth-child(1) {
        transform: translateY(5px) rotate(45deg);
    }

    .mobile-nav-toggle.open .icon-bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle.open .icon-bar:nth-child(3) {
        transform: translateY(-5px) rotate(-45deg);
    }

    .dropdown-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--secondary-bg);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 1000;
        padding: 0 20px;
    }

    .dropdown-menu.open {
        max-height: 400px;
        padding: 10px 20px 20px;
    }

    .dropdown-menu ul {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .dropdown-menu ul li {
        margin: 0;
    }

    .dropdown-menu ul li a {
        display: block;
        padding: 12px 15px;
        border-radius: 6px;
        transition: all 0.3s;
    }

    .dropdown-menu ul li a:hover {
        background-color: rgba(123, 108, 246, 0.1);
    }

    .header-actions {
        gap: 15px;
    }

    .header-controls {
        display: none;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px 0;
    }

    .dropdown-menu {
        top: 70px;
    }
}

/* Reviews Section */
.reviews {
    padding: 100px 0;
    background-color: var(--secondary-bg);
}

.reviews-slider {
    display: flex;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    border-radius: 16px;
}

.review-card {
    min-width: 100%;
    transition: transform 0.5s ease;
    padding: 0 15px;
    box-sizing: border-box;
}

.review-content {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.review-text {
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
    position: relative;
}

.review-text::before {
    content: '\201C';
    font-size: 80px;
    position: absolute;
    top: -30px;
    left: -20px;
    color: rgba(123, 108, 246, 0.2);
    font-family: serif;
    line-height: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.author-info p {
    color: var(--text-secondary);
    font-size: 16px;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-prev,
.slider-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
}

.slider-prev:hover,
.slider-next:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(123, 108, 246, 0.4);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--accent-gradient);
    transform: scale(1.2);
}

textarea.input {
    overflow-y: hidden;
    min-height: 60px;
    max-height: 240px;
    resize: none;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-gradient);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 999;
    border: none;
}

.back-to-top.show {
    opacity: 1;
}

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

/* Game Styles */
.game-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 40px;
    background-color: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.game-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(123, 108, 246, 0.1) 0%, rgba(123, 108, 246, 0) 70%);
    z-index: -1;
}

.counter {
    font-size: 3.5rem;
    margin: 20px 0;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.message {
    font-size: 1.2rem;
    min-height: 2rem;
    margin: 20px 0;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.tap-area {
    margin: 30px auto;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    transition: transform 0.2s;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tap-area:active {
    transform: scale(0.95);
}

.planet {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #7b6cf6, #4a3f9e);
    box-shadow:
        inset -20px -20px 40px rgba(0, 0, 0, 0.3),
        inset 10px 10px 20px rgba(255, 255, 255, 0.1),
        0 0 30px rgba(123, 108, 246, 0.5);
    position: relative;
}

.planet::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 30%;
    height: 30%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    filter: blur(5px);
}

@keyframes tapScale {
    0% {
        transform: scale(0.2);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

#tapArea {
    position: relative;
}


@keyframes tapEffect {
    0% {
        opacity: 0.8;
        transform: scale(0);
    }

    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

.speed-info {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tap-area.error {
    animation: shake 0.5s;
    background: #F4433633;
    /*background: radial-gradient(circle, rgba(244, 67, 54, 0.76) 0%, rgba(244, 67, 54, 0) 100%);*/
    background: radial-gradient(circle, rgba(244, 241, 54, 0.76) 0%, rgba(244, 241, 54, 0) 100%);
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-5px);
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .game-container {
        padding: 30px 20px;
    }

    .tap-area {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .counter {
        font-size: 2.8rem;
    }

    .tap-area {
        width: 200px;
        height: 200px;
    }
}

.telegram-auth {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

#telegramIdInput {
    padding: 10px;
    border: 2px solid #3a3a3a;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-family: 'Unbounded', sans-serif;
    flex-grow: 1;
}

#linkTelegramBtn {
    padding: 10px 15px;
    background: #2481cc;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Unbounded', sans-serif;
    cursor: pointer;
    transition: background 0.3s;
}

#linkTelegramBtn:hover {
    background: #1a6cb3;
}

.debris {
    height: 360px;
    width: 360px;
    transform-origin: center center;
}

/* Добавляем в конец styles.css */

/* Level Styles */
.level-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.level-label {
    color: var(--text-secondary);
}

.level-number {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 1.5rem;
}

.progress-container {
    width: 100%;
    margin-top: 20px;
    background: rgba(30, 30, 48, 0.4);
    border-radius: 10px;
    height: 10px;
    position: relative;
}

.progress-bar {
    height: 100%;
    border-radius: 10px;
    background: var(--accent-gradient);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    margin-top: 5px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px rgba(123, 108, 246, 0.5);
}

.level-up-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.level-up-icon {
    font-size: 4rem;
    animation: float 2s ease-in-out infinite;
}

.level-up-content h2 {
    font-size: 2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.level-up-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.level-up-content p span {
    font-weight: 700;
    color: var(--accent-color);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.boost-info {
    margin: 10px 0;
    padding: 8px 12px;
    background: rgba(123, 108, 246, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(123, 108, 246, 0.5);
    font-size: 0.9rem;
    color: #a594ff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.8;
    }
}

.boost-active .tap-area {
    box-shadow: 0 0 20px rgba(123, 108, 246, 0.7);
}

.boost-active .tap-effect {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.8) 0%, transparent 70%);
}

.boost-info {
    margin: 10px 0;
    padding: 8px 12px;
    background: rgba(123, 108, 246, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(123, 108, 246, 0.5);
    font-size: 0.9rem;
    color: #a594ff;
    transition: all 0.3s ease;
    opacity: 1;
}

.boost-info.hidden {
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
}

.boost-active .tap-area {
    box-shadow: 0 0 20px rgba(123, 108, 246, 0.7);
    transition: box-shadow 0.3s ease;
}

.boost-active .tap-effect {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.8) 0%, transparent 70%);
}

.task-item {
    background: rgba(30, 30, 48, 0.6);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}

.task-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.task-reward {
    color: gold;
    font-weight: bold;
}

.task-completed {
    color: #4CAF50;
    font-weight: bold;
}

.task-btn {
    width: 100%;
    margin-top: 10px;
    background: var(--accent-gradient);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
}

.close-modal {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
}

.close-modal:hover {
    color: var(--text-color);
}

.channel-link {
    color: #2b6cb0;
    text-decoration: none;
    font-weight: bold;
}
.channel-link:hover {
    text-decoration: underline;
}

.task-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.task-buttons .cta-button {
    flex: 1;
    padding: 10px;
    text-align: center;
}

.channel-btn {
    background: #2481cc !important;
}

.channel-btn:hover {
    background: #1a6cb3 !important;
}

.task-btn {
    background: var(--accent-gradient) !important;
}

/* Добавьте эти стили в конец вашего файла styles.css */

/* Shop Styles */
.shop-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    font-family: 'Unbounded', sans-serif;
}

.tab-btn.active {
    color: var(--text-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
}

.shop-items {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.shop-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(30, 30, 48, 0.6);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.shop-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.shop-item-icon {
    font-size: 28px;
    margin-right: 15px;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123, 108, 246, 0.2);
    border-radius: 50%;
}

.shop-item-info {
    flex: 1;
}

.shop-item-info h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.shop-item-info p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.shop-item-info .requires {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
}

.shop-item-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Unbounded', sans-serif;
}

.shop-item-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.shop-item-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123, 108, 246, 0.4);
}

.shop-item-purchased {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 14px;
}

.shop-item.purchased {
    opacity: 0.7;
    border-color: #4CAF50;
}

/* Buttons Row */
.buttons-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 25px;
}

.buttons-row .cta-button {
    flex: 1;
    margin: 0;
}

.tap-effect.auto {
    background-color: rgba(0, 255, 0, 0.3);
}

/* Add this to your CSS */
.currency-display {
    display: flex;
    align-items: center;
    gap: 15px;
}

.currency-display > div {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(30, 30, 48, 0.7);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.currency-display i.fa-circle-nodes {
    color: #6ac6ff;
}