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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #fed7aa 0%, #fef3c7 50%, #fecaca 100%);
    min-height: 100vh;
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    /* margin-left: 2%;
    margin-right: 2%; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-toggle {
  display: none;
  top: 1rem;
  right: 1rem;
  width: 30px;
  height: 25px;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 1001;
}

/* Стилизуем гамбургер */
.hamburger,
.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  background-color: #92400e;
  height: 3px;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
}

.hamburger {
  width: 100%;
  height: 3px;
}

.hamburger::before,
.hamburger::after {
  position: absolute;
  width: 100%;
  left: 0;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
    font-weight: 800;
    color: #c2410c;
    text-decoration: none;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ea580c, #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

.logo-icon::before {
    content: '';
    width: 20px;
    height: 18px;
    background: #fed7aa;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: absolute;
    top: 8px;
    left: 8px;
}

.logo-icon::after {
    content: '';
    width: 15px;
    height: 15px;
    background: #fed7aa;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: absolute;
    top: 8px;
    right: 8px;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: #92400e;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-menu a:hover {
    color: #c2410c;
    transform: translateY(-2px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #ea580c, #dc2626);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.8rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 0.95rem;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.9);
    color: #c2410c;
    border: 2px solid #ea580c;
}

.btn-outline:hover {
    background: #ea580c;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(234, 88, 12, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #ea580c, #dc2626);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(234, 88, 12, 0.5);
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(234, 88, 12, 0.1) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    color: #c2410c;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 2px solid rgba(234, 88, 12, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.3); }
    70% { box-shadow: 0 0 0 10px rgba(234, 88, 12, 0); }
    100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    color: #451a03;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

.hero .highlight {
    background: linear-gradient(135deg, #ea580c, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero p {
    font-size: 1.4rem;
    color: #92400e;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #c2410c;
    border: 2px solid rgba(234, 88, 12, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #ea580c;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Stats Section */
.stats {
    padding: 40px 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    /* margin: 0 20px; */
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
/* 
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
} */

.stat-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: #c2410c;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #92400e;
    font-weight: 600;
}

/* Features Section */
/* .features {
    padding: 100px 0;
} */

.features h2 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    color: #451a03;
    margin-bottom: 1rem;
}

.features-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #92400e;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid, .stats-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(1, 1fr); /* по умолчанию 1 карточка */
}

@media (min-width: 600px) {
    .features-grid, .stats-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 карточки */
    }
}

@media (min-width: 1000px) {
    .features-grid{
        grid-template-columns: repeat(2, 1fr); /* 4 карточки */
    }
    .stats-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 карточки */
    }
}

.feature-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ea580c, #dc2626);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ea580c, #dc2626);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #451a03;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #92400e;
    line-height: 1.6;
    font-weight: 500;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.1), rgba(220, 38, 38, 0.1));
    border-radius: 30px;
    margin-top: 2%;
    /* margin: 0 20px; */
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #451a03;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.3rem;
    color: #92400e;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 60px 0 30px;
    margin-top: 100px;
}

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

.footer-section h3 {
    color: #fed7aa;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fed7aa;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(234, 88, 12, 0.1);
    position: relative;
}

.modal-header h2 {
    color: #451a03;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    text-align: center;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #92400e;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(234, 88, 12, 0.1);
}

.close:hover {
    color: #ea580c;
    background: rgba(234, 88, 12, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.5rem 2rem;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(234, 88, 12, 0.1);
}

.modal-footer p {
    color: #92400e;
    margin: 0;
}

.modal-footer a {
    color: #ea580c;
    text-decoration: none;
    font-weight: 600;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Telegram авторизация */
.telegram-auth {
    text-align: center;
    margin-bottom: 1.5rem;
}

.btn-telegram {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #0088cc, #229ED9);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

.btn-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
}

.auth-description {
    color: #92400e;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Разделитель */
.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(234, 88, 12, 0.2);
}

.auth-divider span {
    background: rgba(255, 255, 255, 0.95);
    color: #92400e;
    padding: 0 1rem;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Формы */
/* .auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
} */
/* 
.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(234, 88, 12, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    color: #451a03;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ea580c;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.form-group input::placeholder {
    color: #a78bfa;
} */

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    user-select: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.password-toggle:hover {
    opacity: 1;
}

.form-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #92400e;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(234, 88, 12, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-container input:checked + .checkmark {
    background: #ea580c;
    border-color: #ea580c;
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.forgot-password, .terms-link {
    color: #ea580c;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover, .terms-link:hover {
    text-decoration: underline;
}

.full-width {
    width: 100%;
    margin-top: 0.5rem;
}

/* Адаптивность */
@media (max-width: 640px) {
    .hero{
        padding: 80px 0 40px;
    }

    .container {
        max-width: 95%;
        padding: 0 1rem;
    }

    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
        max-height: calc(100vh - 2rem);
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-options {
        text-align: left;
    }
    
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav{
        padding: 15px;
    }

    .nav-menu {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* .stats {
        margin: 0 10px;
    } */
/*     
    .cta {
        margin: 0 10px;
    } */

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 1rem;
        position: fixed;
        top: 72px; /* или высота хедера */
        background-color: #fed7aa;
        left: 0;     /* Сдвигаем в левый край */
        width: 100vw; /* Ширина экрана */
        padding: 1rem;
        box-shadow: -2px 0 6px rgba(0,0,0,0.15);
        height: calc(100vh - 60px);
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-menu a {
        display: block;       /* чтобы занимали всю ширину */
        width: 100%;          /* растягиваются на весь контейнер */
        padding: 0.8rem 1rem; /* немного больше кликабельной зоны */
        box-sizing: border-box;
        font-size: 1.3rem;  
        line-height: 3rem; 
    }

    /* Когда меню открыто — показываем */
    .nav-menu.active {
        display: flex;
    }
}

/* Уведомления */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 3000;
    max-width: 400px;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateX(450px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.notification.success {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.notification.error {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-icon {
    font-size: 1.2rem;
}

.notification-text {
    font-weight: 600;
}

@media (max-width: 480px) {
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-150px);
    }
    
    .notification.show {
        transform: translateY(0);
    }

    body {
        font-size: 14px; /* чуть меньше базового шрифта */
    }

    .header .nav-menu {
        gap: 1rem; /* меньше расстояния между пунктами меню */
        font-size: 0.85rem;
    }

    .hero h1 {
        font-size: 2.5rem; /* уменьшаем крупный заголовок */
        padding: 0 10px;
    }

    .hero p {
        font-size: 1rem;
        max-width: 90%;
        margin: 0 auto 2rem;
        line-height: 1.4;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 10px;
    }

    .btn-hero {
        width: 100%; /* кнопки на всю ширину */
        padding: 0.75rem 0;
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr; /* 1 колонка */
        gap: 1.5rem;
        padding: 0 10px;
    }

    .feature-card {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .cta {
        padding: 50px 10px;
    }

    .cta h2 {
        font-size: 2rem;
    }
    .auth-buttons  .btn-primary
    {
        display: none;
    }
}