body {
    margin: 0;
    font-family: 'Russo One', sans-serif;
    background-color: #0d0d0d;
    color: #fff;
    scroll-behavior: smooth;
}

header#hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

header#hero .overlay {
    background: rgba(0, 0, 0, 0.7);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.btn {
    background-color: #e60023;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #ff0033;
}

.card img,
.project img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.swiper {
    width: 100%;
    padding: 20px 0;
}
.swiper-slide {
    display: flex;
    justify-content: center;
    cursor: grab;
}

/* Логотип */
.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}
.logo img {
    height: 100px;
}

/* Заголовки секций */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-header h2 {
    font-family: 'Russo One', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff;
}
.divider {
    width: 80px;
    height: 4px;
    background: rgba(255, 0, 0, 0.7); /* Красная с прозрачностью */
    margin: 0 auto;
    border-radius: 2px;
}

/* Адаптация для тёмного фона */
body {
    background-color: #000;
    color: #fff;
}

#contact {
    text-align: center;
}

#contact .contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}


.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn.order-btn {
    background: linear-gradient(45deg, #1e9600, #6ecc3a); /* Зелёный градиент */
    border-radius: 5px; /* Как у основной кнопки */
    box-shadow: none; /* Убираем тень */
}

.btn.order-btn:hover {
    background: linear-gradient(45deg, #6ecc3a, #1e9600); /* Инвертируем градиент */
    transform: none; /* Убираем трансформацию */
}

/* Стили для отзывов */
.testimonial {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.client-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 30px;
    flex-shrink: 0;
    border: 3px solid #e60023;
}

.client-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -20px;
    left: -15px;
    font-size: 60px;
    color: rgba(230, 0, 35, 0.2);
    font-family: serif;
    line-height: 1;
}

.testimonial p {
    font-style: italic;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    position: relative;
}

.client-info h4 {
    margin: 0;
    color: #fff;
    font-size: 18px;
}

.client-position {
    color: #aaa;
    font-size: 14px;
    display: block;
    margin-top: 5px;
}


#about {
    padding: 80px 20px;
    background: #0d0d0d;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.about-photo {
    flex: 1;
    text-align: center;
}

.about-photo img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #e60023;
    box-shadow: 0 5px 20px rgba(230, 0, 35, 0.5);
}

.about-text {
    flex: 2;
    max-width: 600px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #ddd;
}



/* Halloween Overrides */
.halloween-body {
    background: linear-gradient(180deg, #000 0%, #1a0000 50%, #330000 100%); /* Тёмный градиент с красным для horror */
    overflow-x: hidden;
}

.halloween-overlay img:not(.pumpkin-bottom-left):not(.pumpkin-bottom-right) {
    display: none; /* Если что-то осталось */
}

/* Паутина: статичная, в углах секций (не fixed) */
.web-top-left {
    position: absolute;
    top: 0;
    left: 0; /* Левый угол hero (возле логотипа) */
    width: 200px;
    height: auto;
    opacity: 0.5;
    animation: sway 10s ease-in-out infinite;
    z-index: 4; /* Под логотипом/текстом */
    /* Fallback: если PNG не грузится */
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.web-top-right {
    position: absolute;
    top: 0;
    right: 0; /* Правый угол #story (сверху "Привет из тени...") */
    width: 200px;
    height: auto;
    opacity: 0.5;
    animation: sway 10s ease-in-out infinite;
    transform: scaleX(-1); /* Зеркало для симметрии */
    z-index: 4;
    /* Fallback: то же */
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}


}


.web-top-left { 
    top: 10%; 
    left: 5%; 
}


.web-top-right { 
    top: 10%; 
    right: 5%; 
    transform: scaleX(-1); 
}


/* Провода */

.wires-header {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5%);
    width: 100vw; /* Растягиваем на весь экран */
    height: 100px; /* Узкая высота - настрой это значение! */
    opacity: 0.25;
    animation: flicker 3s linear infinite;
    z-index: 6;
    margin-top: -20px;
}

.wires-header img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Растягивает картинку, заполняя весь блок */
    /* или object-fit: cover; если нужно обрезать лишнее */
}

/* #story: relative для паутины/проводов */
#story {
    position: relative;
}

.pumpkin-bottom-left, .pumpkin-bottom-right {
    position: fixed; /* Fixed относительно viewport (не absolute в overlay) */
    bottom: 10%;
    width: 100px; /* Увеличил с 80px для заметности */
    height: auto;
    opacity: 0.7; /* Ярче, чем 0.6 */
    animation: bounce 2s ease-in-out infinite;
    z-index: 10; /* Выше всего (логотип 10, но тыквы не перекрывают клики) */
    pointer-events: none; /* Не мешают кликам */
}


.pumpkin-bottom-left { 
    left: 10%; 
}

.pumpkin-bottom-right { 
    right: 10%; 
}


#hero-halloween {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.overlay-halloween {
    background: rgba(0, 0, 0, 0.8); /* Темнее, чем .overlay */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.ai-container {
    max-width: 800px;
    padding: 20px;
}

.ai-title {
    font-size: 3rem;
    color: #ff6600; /* Оранжевый для тыкв/Halloween */
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

.ai-subtitle {
    font-size: 1.2rem;
    color: #ffcc00;
    margin-bottom: 30px;
}

.halloween-btn {
    background: linear-gradient(45deg, #ff6600, #cc0000); /* Тыквенный градиент, как order-btn но оранжевый */
    border: 1px solid #ff6600;
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.3);
}

.halloween-btn:hover {
    background: linear-gradient(45deg, #cc0000, #ff6600);
    box-shadow: 0 0 25px rgba(255, 102, 0, 0.6);
}

.halloween-order {
    background: linear-gradient(45deg, #1e9600, #6ecc3a); /* Зелёный как в index.html */
}

.halloween-header h2 {
    color: #ff6600;
    text-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

.halloween-divider {
    background: rgba(255, 102, 0, 0.7); /* Оранжевый divider */
}

.story-container {
    max-width: 1100px; /* Как .about-container */
    margin: 0 auto;
    padding: 80px 20px;
    background: #0d0d0d; /* Как #about */
}

.story-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
}

.story-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #ddd;
}

.pumpkin-footer {
    text-align: center;
    margin-top: 40px;
}

.pumpkin-animate {
    animation: rotate 4s linear infinite;
}

/* Анимации (CSS для паутины/проводов/тыкв) */
@keyframes sway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(5deg); }
}

@keyframes flicker {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Glitch для ИИ (horror-эффект) */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.3s infinite;
    color: #ff0000;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.3s infinite;
    color: #00ff00;
    z-index: -2;
}

@keyframes glitch-1 {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes glitch-2 {
    0% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
    100% { transform: translate(0); }
}


/* Адаптивность для мобильных */
@media (max-width: 768px) {
	.pumpkin-bottom-left, .pumpkin-bottom-right {
        width: 60px;
        bottom: 5%; /* Ближе к футеру на малом экране */
        opacity: 0.6;
    }
	
    .testimonial {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .client-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .quote-icon {
        left: 50%;
        transform: translateX(-50%);
        top: -40px;
    }
	.ai-title { font-size: 2rem; }
    .story-text { padding: 20px; text-align: center; }
    .web-top-left, .web-top-right { width: 100px; }
	
	.about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-photo img {
        width: 200px;
        height: 200px;
    }
	
	
}