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

body {
    font-family: 'TildaSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    min-height: 100vh;
}

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

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

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

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #667eea;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

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

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 1rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #667eea;
    padding-left: 2rem;
}

.dropdown-menu a::after {
    display: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(231, 76, 60, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    }
}

.contact-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.contact-btn:hover::before {
    left: 100%;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.5);
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    animation: none;
}

.contact-btn:active {
    transform: translateY(-1px);
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 2rem;
    text-align: center;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: #667eea;
}

.footer-accordion {
    color: #ccc;
}

.footer-accordion summary {
    margin-bottom: 1rem;
    color: #667eea;
    font-size: 1.17em;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.footer-accordion summary::-webkit-details-marker {
    display: none;
}

.footer-accordion summary::after {
    content: '+';
    display: inline-block;
    margin-left: 8px;
    color: #ccc;
    font-weight: 700;
}

.footer-accordion[open] summary::after {
    content: '−';
}

.footer-accordion-content {
    padding-top: 0.25rem;
}

.footer-section p, .footer-section a {
    color: #ccc;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
}

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

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 2rem;
    color: #999;
}

.footer-bottom a {
    display: inline-block;
    margin-top: 0.75rem;
    color: #ccc;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #667eea;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .contact-btn {
        padding: 12px 20px;
        font-size: 1rem;
        margin-left: auto;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
/* MAX Button Styles */
.max-button-container {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.btn-max {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #0052CC 0%, #0066FF 50%, #0080FF 100%);
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.4);
}

.btn-max:hover {
    background: linear-gradient(135deg, #0047B2 0%, #005CE6 50%, #0073E6 100%);
    box-shadow: 0 6px 20px rgba(0, 82, 204, 0.6);
    transform: translateY(-2px);
}

.btn-max:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 82, 204, 0.4);
}

.btn-telegram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #0088cc 0%, #00a0e0 100%);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
}

.btn-telegram:hover {
    background: linear-gradient(135deg, #0077b3 0%, #0088cc 100%);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.6);
    transform: translateY(-2px);
}

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

.cookie-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 760px;
    margin: 0 auto;
    padding: 16px 18px;
    color: #222;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    text-align: left;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner p {
    margin: 0;
}

.cookie-banner a {
    color: #0052cc;
    text-decoration: underline;
}

.cookie-banner button {
    flex: 0 0 auto;
    padding: 10px 18px;
    color: #fff;
    font: inherit;
    font-weight: 700;
    background: #0052cc;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.cookie-banner button:hover {
    background: #003f9e;
}

@media (max-width: 640px) {
    .cookie-banner {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-banner button {
        width: 100%;
    }
}
