/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Отступ сверху для якорей, учитывая высоту шапки */
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #FFFFFF;
    background-color: #0F172A;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

p {
    margin-bottom: 1rem;
}

a {
    color: #F59E0B;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #10B981;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== UTILITY CLASSES ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* Целевые якоря - корректировка позиции */
section[id]:before { 
    content: "";
    display: block;
    height: 100px; /* Регулировка высоты в зависимости от высоты шапки */
    margin: -100px 0 0; 
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #F59E0B, #10B981);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #10B981, #F59E0B);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #FFFFFF;
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(15, 23, 42, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 1px;
}

/* Выравнивание текста в шапке на одном уровне */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center; /* Добавлено для выравнивания элементов по центру */
}

.main-nav li {
    display: flex;
    align-items: center;
    height: 100%;
}

.main-nav a {
    color: #FFFFFF;
    font-weight: 600;
    position: relative;
}

.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #F59E0B, #10B981);
    transition: width 0.3s ease;
}

.main-nav a:not(.btn):hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
}

.menu-icon {
    width: 30px;
    height: 22px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #FFFFFF;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-close span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-close span:nth-child(2) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    padding: 20px 0;
}

.mobile-nav ul {
    flex-direction: column;
    gap: 15px;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7)), url('../img/GUxayX.jpg') no-repeat center center;
    background-size: cover;
    z-index: -1;
    animation: hero-zoom 20s infinite alternate;
}

@keyframes hero-zoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Изменения для центрирования текста в первом блоке без рамочек */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
    animation: fadeIn 1s ease;
    background-color: transparent; /* Убираем фон */
    border-radius: 0; /* Убираем рамки */
    box-shadow: none; /* Убираем тень */
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #94A3B8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: #1E293B;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: perspective(800px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.about-image:hover {
    transform: perspective(800px) rotateY(0);
}

/* ===== BENEFITS SECTION ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    background-color: #1E293B;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.benefit-icon {
    margin-bottom: 20px;
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: #1E293B;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.service-card {
    background-color: #0F172A;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-image {
    margin: 0 auto 30px;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

/* ===== PROCESS SECTION ===== */
.process-steps {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 35px;
    width: 4px;
    background: linear-gradient(to bottom, #F59E0B, #10B981);
}

.process-step {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #F59E0B, #10B981);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 30px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.step-content {
    padding: 20px 30px;
    background-color: #1E293B;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: #1E293B;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: #0F172A;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    margin-bottom: 20px;
    position: relative;
    padding: 20px 0;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: rgba(245, 158, 11, 0.2);
    position: absolute;
    top: -20px;
    left: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    color: #94A3B8;
    font-size: 0.875rem;
    margin: 0;
}

/* ===== FAQ SECTION ===== */
.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #1E293B;
}

.faq-toggle {
    display: none;
}

.faq-question {
    display: block;
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-toggle:checked + .faq-question {
    background-color: #2D3748;
}

.faq-toggle:checked + .faq-question::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-toggle:checked ~ .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px;
}

/* ===== ORDER FORM SECTION ===== */
.order-form {
    background-color: #1E293B;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #0F172A;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="text"],
input[type="tel"],
select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid #334155;
    background-color: #1E293B;
    color: #FFFFFF;
    font-size: 1rem;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23F59E0B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #F59E0B;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
    font-size: 0.9rem;
}

.submit-group {
    margin-top: 30px;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: #0B1222;
    padding: 60px 0 30px;
}

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

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-info p {
    color: #94A3B8;
}

.footer-contact h3,
.footer-links h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

address {
    font-style: normal;
    color: #94A3B8;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #94A3B8;
}

/* ===== COOKIE POPUP ===== */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1E293B;
    padding: 20px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
    animation: slideUp 0.5s forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .about-grid,
    .cookie-content {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding: 30px 20px;
    }
    
    .testimonials-grid,
    .benefits-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps::before {
        left: 25px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .about-grid,
    .services-grid,
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 1s ease;
}

.slide-up {
    animation: slideUp 0.5s forwards;
}

.slide-in-left {
    animation: slideInLeft 1s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Theme Colors */
.text-primary {
    color: #F59E0B;
}

.text-secondary {
    color: #10B981;
}

.bg-primary {
    background-color: #F59E0B;
}

.bg-secondary {
    background-color: #10B981;
}