/* ====== БАЗОВЫЕ СТИЛИ ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Courier New", monospace;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

h1, h2, h3 {
  font-weight: 700;
  margin-bottom: 15px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ====== ШАПКА ====== */
.header {
  width: 100%;
  padding: 10px 0;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  transition: background 0.3s;
}

.header.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.3s;
}

.header.scrolled .nav a {
  color: #333;
}

.nav a:hover {
  color: #ffcc00;
}

.contacts {
  display: flex;
  gap: 15px;
  align-items: center;
}

.contacts .phone {
  color: red;
  font-weight: 700;
}

.contacts a i {
  font-size: 1.2rem;
  color: #25d366; /* WhatsApp */
}

.contacts a[href*="telegram"] i {
  color: #0088cc; /* Telegram */
}

/* ===== Бургер ===== */
.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  .nav a {
    color: #333;
  }
  .nav.active {
    display: flex;
  }
  .burger {
    display: flex;
  }
}

/* ====== СЛАЙДЕР ====== */
.slider {
  position: relative;
  overflow: hidden;
  margin-top: 70px;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1.2rem;
}

.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.slider-controls span {
  cursor: pointer;
  font-size: 2rem;
  color: #fff;
  padding: 10px;
  user-select: none;
}

/* ====== УСЛУГИ ====== */
.services {
  padding: 60px 0;
  background: #f5f5f5;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.service {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.service:hover {
  transform: translateY(-5px);
}

.service i {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #ffcc00;
}

.divider {
  width: 40px;
  height: 3px;
  background: #ffcc00;
  margin: 10px auto;
  border-radius: 2px;
}

/* ====== О КОМПАНИИ ====== */
.about {
  padding: 60px 0;
}

.about p {
  margin-bottom: 15px;
}

/* ====== ОТЗЫВЫ ====== */
.reviews {
  padding: 60px 0;
  background: #f5f5f5;
}

.reviews h2 {
  text-align: center;
  margin-bottom: 20px;
}

.review-carousel {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.review {
  display: none;
  font-style: italic;
}

.review.active {
  display: block;
}

.review-author {
  display: block;
  margin-top: 10px;
  font-weight: 600;
}

.review-prev,
.review-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  color: #333;
}

.review-prev {
  left: -40px;
}
.review-next {
  right: -40px;
}

/* ====== ФУТЕР ====== */
.footer {
  background: #222;
  color: #fff;
  padding: 30px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-info p {
  margin-bottom: 8px;
}

.footer .logo img {
  height: 40px;
}

/* ====== КНОПКИ ====== */
.btn-up,
.btn-call {
  position: fixed;
  bottom: 20px;
  background: #ffcc00;
  border: none;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background 0.3s;
  z-index: 999;
}

.btn-up {
  right: 70px;
}

.btn-call {
  right: 20px;
}

.btn-up:hover,
.btn-call:hover {
  background: #e6b800;
}

/* ====== АНИМАЦИИ ====== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-in-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== ВИТРИНА МАГАЗИНА ====== */
.shop {
  padding: 60px 0;
}

.shop h1 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #222;
}

.categories {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.categories a {
  background: #f5f5f5;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 1rem;
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid #ddd;
}

.categories a:hover,
.categories a.active {
  background: #ffcc00;
  color: #000;
}

.product-category {
  margin-bottom: 60px;
}

.product-category h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.8rem;
  color: #111;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.product-card img {
  max-width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 15px;
}

.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #222;
}

.product-card p {
  font-size: 0.9rem;
  color: #555;
  flex-grow: 1;
  margin-bottom: 15px;
}

.product-card .btn {
  display: inline-block;
  background: #ffcc00;
  color: #000;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}

.product-card .btn:hover {
  background: #e6b800;
}

/* ===== Адаптив для магазина ===== */
@media (max-width: 768px) {
  .categories {
    flex-direction: column;
    align-items: center;
  }
  .categories a {
    width: 100%;
    text-align: center;
  }
}
