/* Основные стили */
:root {
    --primary: #5865F2;
    --secondary: #FFF;
    --accent: #FEE75C;
    --dark: #1e1f22;
    --darker: #111214;
    --light: #f2f3f5;
    --text: #dbdee1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background: var(--darker);
    line-height: 1.6;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px 0;
    z-index: 1000;
    background: rgba(30, 31, 34, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--light);
    font-family: 'Days One', sans-serif;
    font-size: 1.5rem;
    gap: 10px;
}

.nav-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    width: 100%;
}

.nav-login {
    background: var(--secondary);
    color: var(--darker);
    border: none;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(87, 242, 135, 0.4);
    background: #4ad475;
}

/* Исправления для мобильного меню */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    flex-direction: column;
    justify-content: space-between;
    height: 30px;
    width: 40px;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--light);
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Стили для мобильного меню из JS */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 9999;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-container {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.mobile-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-links {
    flex: 1;
    padding: 20px 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 16px;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #4CAF50;
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 18px;
}

.mobile-nav-link span {
    font-weight: 500;
}

.mobile-social-links {
    padding: 20px;
    border-top: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.mobile-social-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.mobile-social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.mobile-social-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.mobile-login-btn {
    margin: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    font-size: 16px;
}

.mobile-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

body.no-scroll {
    overflow: hidden;
}

.mobile-nav-link.active {
    background: rgba(76, 175, 80, 0.2) !important;
    border-left-color: #4CAF50 !important;
    color: #4CAF50 !important;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--primary);
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(88, 101, 242, 0.1);
    transform: translateY(-3px);
}

.section {
    padding: 100px 5%;
    position: relative;
}

.section h2 {
    font-family: 'Days One', sans-serif;
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
    color: var(--light);
}

.dark-section {
    background: rgba(0,0,0,0.2);
}

.footer {
    background: rgba(10, 10, 10, 0.9);
    padding: 80px 5% 30px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.footer-main {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-family: 'Days One', sans-serif;
    font-size: 1.5rem;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer p {
    opacity: 0.7;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.link-group h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--light);
}

.link-group a {
    display: block;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 15px;
    transition: all 0.3s;
    opacity: 0.7;
}

.link-group a:hover {
    color: var(--primary);
    opacity: 1;
    padding-left: 5px;
}

.link-group i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.5;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section {
    animation: fadeIn 0.8s ease-out forwards;
}

.order-container {
    padding-top: 100px;
}

.order-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(30, 31, 34, 0.8);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.order-form-container h2 {
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Days One', sans-serif;
    color: var(--light);
}

.order-form-container h2 i {
    margin-right: 15px;
    color: var(--primary);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--light);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 15px;
    background: rgba(20, 20, 22, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 25px;
    width: 25px;
    background: rgba(20, 20, 22, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    transition: all 0.3s;
}

.checkbox-label:hover input ~ .checkmark {
    border-color: var(--primary);
}

.checkbox-label input:checked ~ .checkmark {
    background: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid var(--darker);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 18px 45px;
    font-size: 1.2rem;
}

.order-steps {
    max-width: 1200px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    background: rgba(30, 31, 34, 0.8);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--darker);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Days One', sans-serif;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    font-weight: bold;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light);
}

.step-card p {
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .nav-links.mobile-visible {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--dark);
        padding: 20px;
        gap: 15px;
        z-index: 1000;
    }

    .nav-login {
        display: none;
    }

    .order-form-container {
        padding: 30px 20px;
    }

    .section h2 {
        font-size: 2rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-large, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }
    
    .nav-links {
        display: flex !important;
    }
    
    .nav-login {
        display: block !important;
    }
}