/* Общие стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Courier New", monospace;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Шапка */
.header {
  background: #222;
  color: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
/* Логотип */
.logo img {
  height: 50px;
  width: auto;
  margin-bottom:5px;
  border-radius:5px;
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  background: #333;
  height: 3px;
  border-radius: 2px;
}

/* На мобилке показываем бургер, прячем меню */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 15px;
    background: black;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 10px;
  }

  .nav a {
    margin: 10px 0;
    font-size: 16px;
  }

  .nav.active {
    display: flex;
  }
}

.logo {
  font-size: 20px;
  font-weight: bold;
}

.nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #fff;
}

.contacts a {
  margin-left: 15px;
  color: #fff;
  text-decoration: none;
}

/* Слайдер */
.slider {
  position: relative;
  width: 99%;
  overflow: hidden;
  margin:1%;
  border-radius:2%;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  width: 100%;
  height: 100%;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Подписи */
.caption {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 18px;
  text-align: center;
  max-width: 90%;
}

@media (max-width: 768px) {
  .caption {
    font-size: 14px;
    padding: 6px 10px;
  }
}

/* Высоты слайдера */
@media (min-width: 1025px) {
  .slider { height: 500px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .slider { height: 350px; }
}

@media (max-width: 768px) {
  .slider { height: 220px; }
}

.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.slider-controls span {
  cursor: pointer;
  font-size: 30px;
  color: #fff;
  padding: 10px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  transition: background 0.3s;
}

.slider-controls span:hover {
  background: rgba(0,0,0,0.7);
}

/* О компании */
.about {
  padding: 40px 0;
  background: #fff;
}

.about h2 {
  margin-bottom: 20px;
}

.about ul {
  margin-top: 10px;
  list-style: disc inside;
}

/* Отзывы */
.review-carousel {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  text-align: center;
}

.review {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  font-size: 1.2rem;
  line-height: 1.5;
  padding: 20px;
  box-sizing: border-box;
}

.review.active {
  opacity: 1;
}

.review-author {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #444;
  font-size: 1rem;
}

/* Стрелки по бокам */
.review-prev,
.review-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #333;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s;
}

.review-prev {
  left: 10px;
}

.review-next {
  right: 10px;
}

.review-prev:hover,
.review-next:hover {
  color: #f1c40f; /* желтый */
}
reviews h2 {
  text-align: center;
  margin-bottom: 20px;
}
/* Футер */
.footer {
  background: #222;
  color: #fff;
  padding: 20px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-info p {
  margin: 5px 0;
}

/* Кнопки */
.btn-up, .btn-call {
  position: fixed;
  bottom: 20px;
  padding: 12px 15px;
  font-size: 20px;
  border: none;
  border-radius: 50%;
  background: #222;
  color: #fff;
  cursor: pointer;
  display: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: all 0.3s ease-in-out;
}

.btn-up { right: 20px; }
.btn-call { right: 80px; text-decoration: none; text-align: center; }

.btn-up:hover,
.btn-call:hover {
  background: #ffcc00;
  color: #222;
}

/* Анимации */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav a:hover,
.contacts a:hover,
.footer-info p:hover {
  color: #ffcc00;
  transition: color 0.3s;
}

/* Адаптивность */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  .contacts { margin-top: 10px; }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
/* === Секция "Почему стоит заказать ремонт ворот у нас" === */

.why-us {
  background: #f8f9fa;
  padding: 80px 20px;
  text-align: center;
}

.why-us h2 {
  font-size: 2rem;
  color: #222;
  text-transform: uppercase;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

.why-us h2::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: #d4af37; /* жёлтый в цвет логотипа */
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.service {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 30px 20px;
  transition: all 0.3s ease;
  position: relative;
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.service i {
  font-size: 40px;
  color: #e30613; /* красный как у телефона */
  margin-bottom: 15px;
}

.service h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 10px;
}

.divider {
  width: 50px;
  height: 3px;
  background: #d4af37;
  margin: 0 auto 15px;
  border-radius: 2px;
}

.service p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.cta {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  max-width: 800px;
  margin: 0 auto;
}

.cta p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 10px;
}

.cta .contact {
  font-size: 1.1rem;
  color: #e30613;
  font-weight: bold;
}

.cta i {
  margin-right: 8px;
}

/* Fade-in эффект */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 768px) {
  .why-us {
    padding: 60px 10px;
  }

  .why-us h2 {
    font-size: 1.6rem;
  }

  .service {
    padding: 20px;
  }

  .cta {
    padding: 20px;
  }
}
