:root {
    --primary-color: #5d56f9;
    --primary-dark: #4b44e0;
    --accent-color: #ff6f61;
    --text-color: #333;
    --light-bg: #f9f9ff;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

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

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu ul {
    list-style: none;
    display: none; /* Hidden on mobile */
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Buttons */
.cta-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    max-width:230px;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.telegram-icon {
    width: 20px;
    height: 20px;
    filter: invert(100%);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7e78ff 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem 1.5rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    text-align: center;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
}

.primary-bg {
    background-color: var(--primary-color);
    color: var(--white);
}

.primary-bg .section-title,
.primary-bg .feature-card h3,
.primary-bg .feature-card p,
.primary-bg .icon-placeholder {
    color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.features-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr; /* Single column on mobile */
}

.feature-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.primary-bg .feature-card {
    background-color: rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.icon-placeholder {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Desktop and Tablet Styles */
@media (min-width: 768px) {
    .header-container {
        padding: 1rem 3rem;
    }
    
    .nav-menu ul {
        display: flex;
        gap: 2rem;
    }
    
    .hero-section {
        padding: 6rem 1.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background-color: var(--white); /* Или другой фон, если хотите */
}

.contact-content {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    align-items: flex-start;
}

.contact-info {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1rem;
    opacity: 0.85;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-dark);
}

.telegram-contact-link {
    display: inline-flex; /* Ensure icon and text align well */
    align-items: center;
    gap: 0.5rem;
}

.telegram-contact-link img {
    width: 18px;
    height: 18px;
    filter: invert(43%) sepia(79%) saturate(593%) hue-rotate(215deg) brightness(96%) contrast(98%); /* Primary color filter */
}

.telegram-contact-link:hover img {
     filter: invert(23%) sepia(71%) saturate(1995%) hue-rotate(215deg) brightness(93%) contrast(100%); /* Darker primary color filter */
}


.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(93, 86, 249, 0.2);
}

.contact-form .cta-button {
    width: 100%; /* Make button full width */
    justify-content: center; /* Center content */
}

/* Responsive adjustments for contact section */
@media (min-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr 1.5fr; /* Adjust column ratio for larger screens */
    }
    .contact-info {
        padding: 3rem;
    }
    .contact-form {
        padding: 3rem;
    }
    .contact-form .cta-button {
        width: auto; /* Revert to auto width for buttons on larger screens if desired */
        justify-content: center;
    }
}

/* Rules Section */
.rules-section {
    padding: 4rem 0;
    background-color: var(--white); /* Или другой подходящий фон */
}

.rules-section .section-title {
    margin-bottom: 2rem;
}

.rules-content {
    
    /*max-width: 800px;
    /*margin: 0 auto;
    /*background-color: var(--light-bg);
    /*padding: 2rem;
    /*border-radius: 12px;
    /*box-shadow: var(--shadow);
    */
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: left;
}

.rules-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.rules-content ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 1rem;
}

.rules-content li {
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
}

.rules-content strong {
    color: var(--primary-dark);
}

.rules-content p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Responsive adjustments for rules content */
@media (max-width: 767px) {
    .rules-content {
        padding: 1.5rem;
    }
    .rules-content h3 {
        font-size: 1.2rem;
    }
    .rules-content ul,
    .rules-content p {
        font-size: 0.9rem;
    }
}

