/* ===== НАСТРОЙКИ РАЗМЕРОВ (МЕНЯЙ ЗДЕСЬ) ===== */
:root {
 --carousel-width: 1;
 --carousel-height: 700px;
 --recommend-width: 1;
 --recommend-height: 560px;
 --gap-between: 30px;
 --padding-block: 15px;
 --go-top-size: 50px;
 --go-top-bottom: 30px;
 --go-top-right: 30px;
}

/* ===== ОСНОВНЫЕ СТИЛИ ===== */
* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}
body {
 background: #f5f5f5;
 font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 15px;
}

/* ===== ШАПКА ===== */
.header {
 background: white;
 padding: 15px 0;
 border-bottom: 1px solid #eee;
 margin-bottom: 20px;
}
.clearfix { clear: both; }

/* ===== КАРУСЕЛЬ ===== */
.carousel {
 position: relative;
 overflow: hidden;
 border-radius: 12px;
 box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.slides {
 display: flex;
 transition: transform 0.5s ease;
}
.slide { min-width: 100%; }
.slide a { display: block; }
.slide img {
 width: auto;
 height: var(--carousel-height);
 max-width: 100%;
 max-height: var(--carousel-height);
 object-fit: contain;
 display: block;
 margin: 0 auto;
}
.carousel-btn {
 position: absolute;
 top: 50%;
 transform: translateY(-50%);
 background: rgba(0,0,0,0.5);
 color: white;
 border: none;
 padding: 10px 15px;
 cursor: pointer;
 border-radius: 50%;
 font-size: 18px;
 z-index: 10;
 transition: background .3s;
}
.carousel-btn:hover { background: rgba(0,0,0,0.8); }
.prev-btn { left: 10px; }
.next-btn { right: 10px; }
.dots {
 text-align: center;
 position: absolute;
 bottom: 10px;
 left: 0;
 right: 0;
}
.dot {
 display: inline-block;
 width: 10px;
 height: 10px;
 background: rgba(255,255,255,0.5);
 border-radius: 50%;
 margin: 0 3px;
 cursor: pointer;
}
.dot.active { background: white; }

/* ===== ДВЕ КОЛОНКИ (КАРУСЕЛЬ + РЕКОМЕНДУЕМ) ===== */
.carousel-wrapper {
 display: flex;
 gap: var(--gap-between);
 align-items: flex-start;
 margin: 20px 0;
}
.carousel-wrapper .carousel {
 flex: var(--carousel-width);
 max-width: 100%;
 margin: 0;
}

/* ===== БЛОК "РЕКОМЕНДУЕМ" ===== */
.recommend-block {
 flex: var(--recommend-width);
 background: white;
 border-radius: 12px;
 padding: var(--padding-block);
 box-shadow: 0 5px 15px rgba(0,0,0,0.1);
 text-align: center;
}
.recommend-title {
 font-size: 18px;
 color: #ff6b35;
 margin: 0 0 15px 0;
 padding-bottom: 10px;
 border-bottom: 2px solid #ff6b35;
 display: inline-block;
}
.recommend-product { margin-top: 10px; }
.recommend-product a { text-decoration: none; }
.recommend-product img {
 width: 100%;
 height: auto;
 max-height: var(--recommend-height);
 object-fit: contain;
 border-radius: 8px;
 margin-bottom: 10px;
}
.recommend-product .product-text {
 font-size: 14px;
 font-weight: 600;
 color: #333;
 padding: 8px 0;
}

/* ===== СЕТКА ТОВАРОВ ===== */
.products-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 25px;
 margin: 30px 0;
}
.product-card {
 background: white;
 border-radius: 12px;
 overflow: hidden;
 box-shadow: 0 4px 12px rgba(0,0,0,0.08);
 transition: transform .2s;
}
.product-card:hover { transform: translateY(-5px); }
.product-card a { display: block; }
.product-card img {
 width: 100%;
 height: auto;
 display: block;
}
.product-text {
 padding: 12px 15px;
 text-align: center;
 font-size: 15px;
 font-weight: 600;
 color: #333;
 background: white;
 border-top: 1px solid #f0f0f0;
}

/* ===== ПАГИНАЦИЯ ===== */
.pagination {
 text-align: center;
 margin: 20px 0 30px;
 padding: 15px 0;
 border-top: 1px solid #eee;
}
.pagination a {
 display: inline-block;
 background: #f0f0f0;
 color: #333;
 padding: 8px 16px;
 border-radius: 30px;
 text-decoration: none;
 margin: 0 5px;
 transition: background .3s, color .3s;
}
.pagination a:hover {
 background: #ff6b35;
 color: white;
}

/* ===== КНОПКА "НАВЕРХ" ===== */
.go-top {
 position: fixed;
 bottom: var(--go-top-bottom);
 right: var(--go-top-right);
 width: var(--go-top-size);
 height: var(--go-top-size);
 background: #ff6b35;
 color: white;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 cursor: pointer;
 opacity: 0;
 visibility: hidden;
 transition: opacity .3s, visibility .3s, background .3s, transform .3s;
 box-shadow: 0 2px 10px rgba(0,0,0,0.2);
 z-index: 999;
 border: none;
 font-size: 24px;
 font-family: Arial, sans-serif;
}
.go-top.show {
 opacity: 1;
 visibility: visible;
}
.go-top:hover {
 background: #e55a2b;
 transform: translateY(-3px);
}

/* ===== ПОДВАЛ ===== */
.site-footer {
 text-align: center;
 padding: 28px 20px;
 background: #f8f8f8;
 border-top: 1px solid #eee;
 margin-top: 30px;
}
.footer-line {
 display: flex;
 justify-content: space-between;
 align-items: center;
 flex-wrap: wrap;
 gap: 15px;
 max-width: 1200px;
 margin: 0 auto;
}
.copyright {
 color: #555;
 font-size: 18px;
 font-weight: 500;
}
.feedback-link {
 color: #ff6b35;
 text-decoration: none;
 font-size: 18px;
 font-weight: 600;
 transition: color .3s;
}
.feedback-link:hover {
 color: #e55a2b;
 text-decoration: underline;
}

/* ===== АДАПТАЦИЯ ПОД ТЕЛЕФОН ===== */
@media (max-width: 768px) {
 .products-grid {
 grid-template-columns: 1fr;
 gap: 20px;
 }
 .carousel-wrapper {
 flex-direction: column;
 }
 .carousel-wrapper .carousel,
 .recommend-block {
 width: 100%;
 }
 .go-top {
 bottom: 20px;
 right: 20px;
 width: 45px;
 height: 45px;
 font-size: 20px;
 }
 .pagination a {
 padding: 6px 12px;
 font-size: 14px;
 }
 .copyright, .feedback-link { font-size: 14px; }
 .site-footer { padding: 18px 15px; }
}
@media (max-width: 600px) {
 .footer-line {
 justify-content: center;
 text-align: center;
 flex-direction: column;
 }
}