:root {
    --primary: #FFA500;
    --primary-dark: #FF8C00;
    --secondary: #111111;
    --dark: #0A0A0A;
    --light: #FFFFFF;
    --gray: #333333;
    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --gradient-primary: linear-gradient(135deg, #FFA500, #FF8C00);
    --gradient-dark: linear-gradient(135deg, #111111, #0A0A0A);
    --hex-width: 200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--dark);
    color: var(--text-primary);
    line-height: 1.6;
}

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

/* Общие стили */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitletar {
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 0rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--light);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--light);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 165, 0, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
}

.nav .btn {
    margin-left: auto;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0;
    background: var(--dark);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 165, 0, 0.1) 0%, transparent 50%);
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 3s ease-in-out infinite alternate;
    text-align: center;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(255, 165, 0, 0.2),
                     0 0 20px rgba(255, 165, 0, 0.1),
                     0 0 30px rgba(255, 165, 0, 0.1);
    }
    to {
        text-shadow: 0 0 20px rgba(255, 165, 0, 0.3),
                     0 0 30px rgba(255, 165, 0, 0.2),
                     0 0 40px rgba(255, 165, 0, 0.1);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
    align-items: center;
}

.hero-features {
    display: flex;
    gap: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.feature i {
    color: var(--primary);
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.hexagon-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hexagon {
    position: absolute;
    width: 100px;
    height: 115px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.08;
}

.hexagon:nth-child(1) {
    top: 20%;
    left: 10%;
    transform: rotate(-30deg);
}

.hexagon:nth-child(2) {
    top: 40%;
    left: 15%;
    transform: rotate(-30deg) scale(1.2);
}

.hexagon:nth-child(3) {
    top: 60%;
    left: 8%;
    transform: rotate(-30deg) scale(0.8);
}

.hexagon:nth-child(4) {
    top: 20%;
    right: 10%;
    transform: rotate(30deg);
}

.hexagon:nth-child(5) {
    top: 40%;
    right: 15%;
    transform: rotate(30deg) scale(1.2);
}

.hexagon:nth-child(6) {
    top: 60%;
    right: 8%;
    transform: rotate(30deg) scale(0.8);
}

/* Games Section */
.games {
    padding: 100px 0;
    background: var(--dark);
    text-align: center;
}

.games-slider {
    max-width: 1200px;
    margin: 40px auto;
}

.games-track {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.game-item {
    flex: 0 0 160px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.game-item:hover {
    transform: scale(1.1);
}

.game-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 5px 15px rgba(255, 184, 0, 0.3));
}

.game-item h3 {
    color: var(--light);
    font-size: 1.2rem;
    margin: 0;
}

@media (max-width: 1200px) {
    .games-track {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .games {
        padding: 60px 0;
    }

    .games-track {
        gap: 20px;
        flex-wrap: wrap;
    }

    .game-item {
        flex: 0 0 120px;
    }
    
    .game-item img {
        width: 80px;
        height: 80px;
    }

    .game-item h3 {
        font-size: 1rem;
    }
}

/* Advantages Section */
.advantages {
    padding: 100px 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.advantages-hexgrid {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 4rem;
    position: relative;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.hex-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    position: relative;
    margin: 0;
    width: 100%;
}

/* Смещение нижнего ряда */
.hex-row.shifted {
    transform: translateX(125px);
    margin-top: -60px;
}

.hex-item {
    width: 220px;
    height: 250px;
    position: relative;
    transition: transform 0.3s ease;
}

.hex-content {
    width: 100%;
    height: 100%;
    position: relative;
    background: var(--secondary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
}

.hex-content i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    transition: transform 0.3s ease;
}

.hex-item:hover i {
    transform: scale(1.2);
    color: var(--light);
}

.hex-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.hex-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Стили для статистики */
.hex-item.stat .hex-content {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
}

.hex-item.stat:hover .hex-content {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Pricing Section */
.prices {
    padding: 100px 0;
    background: var(--secondary);
    position: relative;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.price-card {
    background: var(--secondary);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 165, 0, 0.1);
    transition: all 0.3s ease;
}

.price-cardmax {
    background: var(--secondary);
    border-radius: 20px;
    padding: 2rem;
    align-items: center;
    border: 1px solid rgba(255, 165, 0, 0.1);
    transition: all 0.3s ease;
}

.price-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.1);
}

.price-header {
    margin-bottom: 2rem;
}

.price-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.price-features li {
    margin: 1rem 0;
    color: var(--text-secondary);
}

.price-features i {
    color: var(--primary);
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .price-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.contact-item {
    text-align: center;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-form {
    background: var(--secondary);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 165, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--dark);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.1);
}

.form-group.focused input, .form-group.focused textarea {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.1);
}

/* Footer */
.footer {
    background: var(--secondary);
    padding: 80px 0 20px;
    border-top: 1px solid rgba(255, 165, 0, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-info {
    max-width: 300px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255, 165, 0, 0.3));
}

.footer-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 165, 0, 0.1);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-image {
        display: none;
    }
    
    .hero-content {
        margin: 0 auto;
        text-align: center;
    }
    
    .hero-buttons,
    .hero-features {
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav .btn {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-info {
        max-width: 100%;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .price-card.featured {
        transform: none;
    }
    
    .price-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 480px) {
    .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .game-card,
    .advantage-card,
    .price-card {
        padding: 1.5rem;
    }
}

/* Support Section */
.support {
    padding: 100px 0;
    background: var(--dark);
    position: relative;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.support-card {
    background: var(--secondary);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid rgba(255, 165, 0, 0.1);
    transition: all 0.3s ease;
}

.support-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.1);
}

.support-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.support-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.support-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.support-card .btn {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .support-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .support-grid {
        grid-template-columns: 1fr;
    }
}

/* Стили для таблицы тарифов */
.pricing-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 2rem;
    border-radius: 20px;
    background: var(--secondary);
    padding: 1px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    background: var(--secondary);
}

.pricing-table th,
.pricing-table td {
    padding: 1.5rem;
    border: 1px solid rgba(255, 165, 0, 0.1);
}

.pricing-table th {
    background: var(--dark);
    font-weight: 600;
}

.pricing-table td:first-child {
    text-align: left;
    font-weight: 500;
    background: var(--dark);
}

.pricing-table tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.2);
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.plan-price {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
}

.pricing-table i.fas.fa-check {
    color: var(--primary);
    font-size: 1.2rem;
}

.pricing-table-footer td {
    border: none;
    padding-top: 2rem;
}

.pricing-table .btn {
    min-width: 120px;
}

/* Анимация при наведении */
.pricing-table tr:hover {
    background: rgba(255, 165, 0, 0.05);
}

/* Адаптивность */
@media (max-width: 768px) {
    .pricing-table th,
    .pricing-table td {
        padding: 1rem;
    }

    .plan-name {
        font-size: 1.2rem;
    }

    .plan-price {
        font-size: 1rem;
    }
}

/* Анимации появления элементов */
.animate-prepare {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Эффект свечения для кнопок */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    top: var(--y, 0);
    left: var(--x, 0);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.btn:hover::after {
    opacity: 0.15;
}

/* Частицы фона */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    left: var(--x);
    top: var(--y);
    opacity: 0.1;
    animation: float 20s infinite linear;
    animation-delay: var(--delay);
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        opacity: 0.3;
    }
    50% {
        transform: translateY(-100vh) rotate(180deg);
        opacity: 0.1;
    }
    75% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-200vh) rotate(360deg);
        opacity: 0.1;
    }
}

/* Улучшенная анимация для карточек */
.game-card, .price-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.game-card > *, .price-card > * {
    transform: translateZ(20px);
}

/* Анимация навигации */
.header {
    transition: transform 0.3s ease;
}

.header.scroll-down {
    transform: translateY(-100%);
}

.header.scroll-up {
    transform: translateY(0);
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Улучшенные эффекты форм */
.form-group {
    position: relative;
}

.form-group input, .form-group textarea {
    background: var(--dark);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.form-group.focused input, .form-group.focused textarea {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.1);
}

/* Анимация кнопки отправки формы */
.contact-form button {
    position: relative;
    overflow: hidden;
}

.contact-form button.success {
    background: #28a745;
    border-color: #28a745;
}

.contact-form button i {
    margin-right: 5px;
}

/* Улучшенные эффекты наведения */
.advantage-card, .game-card, .price-card {
    position: relative;
}

.advantage-card::before, .game-card::before, .price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), 
                rgba(255, 165, 0, 0.1) 0%, 
                transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    border-radius: inherit;
}

.advantage-card:hover::before, .game-card:hover::before, .price-card:hover::before {
    opacity: 1;
}

/* Эффект волны для кнопок */
.btn:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .hexagon {
        width: 60px;
        height: 69px;
    }
    
    .hexagon-left, .hexagon-right {
        gap: 20px;
        padding-top: 60px;
    }
}

/* Убираем выделение ссылок */
a {
    text-decoration: none;
    color: inherit;
    outline: none;
}

a:focus {
    outline: none;
}
