/* Сброс */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    cursor: url('chicken-leg.png'), auto;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* КНОПКИ (добавил — у тебя их не было) */
.btn {
    display: inline-block;
    background: #e67e22;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background: #cf711f;
}

.btn-small {
    display: inline-block;
    padding: 8px 16px;
    background: #e67e22;
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Шапка */
.site-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.main-nav a:hover {
    color: #e67e22;
}

/* Секции */
section {
    padding: 60px 0;
}

/* ===== СЛАЙДЕР ===== */
.hero-banner {
    overflow: hidden;
}

.slider {
    position: relative;
    height: 500px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: 0.6s;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.slide .container {
    position: relative;
    z-index: 2;
}

/* стрелки */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

/* ===== КАРТОЧКИ ===== */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0,0,0,0.06);
    transition: 0.3s;
}

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

.card-image {
    height: 200px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card h3 {
    padding: 15px 20px 5px;
    font-size: 1.3rem;
}

.card p {
    padding: 0 20px 15px;
    color: #666;
}

.card .btn-small {
    margin: 0 20px 20px;
}

/* ===== БЛОК КАРТИНКА-ТЕКСТ ===== */
/* ===== БЛОК КАРТИНКА-ТЕКСТ ===== */
.image-text {
    display: flex;
    align-items: center; /* Центрируем фото и текст по вертикали */
    gap: 50px;
    margin-bottom: 40px; /* Отступ между секциями */
}

.image-block {
    width: 100%;
    max-width: 450px; /* Уменьшили максимальную ширину */
    height: 450px;    /* Уменьшили высоту до 450px (было 800) */
    overflow: hidden;
    flex-shrink: 0;   /* Чтобы блок не сжимался слишком сильно */
}

.image-block img {
    width: 100%;      /* Картинка занимает всю ширину блока */
    height: 100%;     /* Картинка занимает всю высоту блока */
    object-fit: cover; /* Важно: обрезает лишнее, сохраняя пропорции */
    border-radius: 10px;
    display: block;
}

.text-block h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.text-block p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Адаптив для мобильных (чтобы на телефоне было совсем компактно) */
@media (max-width: 768px) {
    .image-block {
        max-width: 100%;
        height: 300px; /* На телефоне высота поменьше */
        margin-bottom: 20px;
    }
    
    .image-text {
        flex-direction: column;
        gap: 30px;
    }
    
    /* Класс reverse на мобильном тоже должен быть колонкой, но порядок можно менять если нужно */
    .image-text-section.reverse .image-text {
        flex-direction: column; 
    }
}

/* ===== СЕКЦИЯ ОТЗЫВОВ (НОВЫЕ СТИЛИ) ===== */
.reviews-section {
    background: #f5f5f5;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.reviews-section h2 {
    margin-bottom: 40px;
    color: #2c3e50;
    font-size: 2rem;
}

.reviews-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 0 50px; /* Отступы для стрелок */
}

.review-item {
    display: none; /* Скрыты по умолчанию */
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    animation: fadeIn 0.5s ease-in-out;
    max-height: 70vh; /* Ограничение высоты для длинных отзывов */
    overflow-y: auto; /* Прокрутка внутри карточки */
    text-align: left; /* Текст выровнен по левому краю для удобства чтения */
}

.review-item.active {
    display: block; /* Показываем активный */
}

/* Скроллбар для длинных отзывов */
.review-item::-webkit-scrollbar {
    width: 8px;
}
.review-item::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.review-item::-webkit-scrollbar-thumb {
    background: #e67e22;
    border-radius: 4px;
}

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

.review-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #e67e22;
    background-color: #eee;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.review-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    white-space: pre-wrap; /* Сохраняет абзацы */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.review-author {
    font-weight: bold;
    font-size: 1.3rem;
    color: #2c3e50;
    margin-top: 20px;
    display: block;
    text-align: center;
}

/* Кнопки навигации */
.review-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #e67e22;
    border: none;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.review-nav-btn:hover {
    background: #cf711f;
    transform: translateY(-50%) scale(1.1);
}

.review-nav-btn.prev { left: 0; }
.review-nav-btn.next { right: 0; }

/* Адаптив для мобильных */
@media (max-width: 600px) {
    .review-nav-btn {
        display: none; /* Скрываем стрелки на телефонах */
    }
    .reviews-slider-container {
        padding: 0;
    }
    .review-item {
        padding: 25px;
        max-height: none;
        overflow-y: visible;
    }
}
/* ===== ФУТЕР ===== */
.site-footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px;
}
.about-page h1 {
    text-align: center;
    margin-bottom: 40px;
}

/* чередование блоков */
.image-text-section.reverse .image-text {
    flex-direction: row-reverse;
}

/* список */
.text-block ul {
    list-style: none;
}

.text-block li {
    margin-bottom: 10px;
}
.falling-chicken {
    position: fixed;
    top: -100px;
    width: 60px;
    pointer-events: none;
    z-index: 9999;

    animation: fallChicken linear forwards;
}

@keyframes fallChicken {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 1;
    }
}
/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .image-text {
        flex-direction: column;
    }

}