/* RESET (optional minimal version) */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.4;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* CONTAINERS & LAYOUT */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* HEADER */
.header {
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}
.header__email {
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 5px;
}
.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo {
  display: flex;
  flex-direction: column;
}
.header__contacts {
  display: flex;
  flex-direction: column;
}
.header__phone {
  font-weight: bold;
  color: #333;
  text-decoration: none;
  margin-bottom: 5px;
}
.header__hours {
  font-size: 0.9rem;
  color: #666;
}
.header__callback-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}
.header__callback-btn:hover {
  background: #333;
}

/* HERO SECTION */
.hero {
  background: #fafafa;
  padding: 40px 0;
  text-align: center;
}
.hero__title {
  font-size: 2rem;
  margin-bottom: 10px;
}
.hero__subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #666;
}
.hero__services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}
.hero__service {
  max-width: 200px;
  text-align: center;
}
.hero__service-icon {
  width: 50px;
  margin-bottom: 10px;
}
.hero__brands {
  position: relative;
  width: 100%;
  overflow: hidden;   /* Ensures logos only show inside the container */
  margin-top: 30px;   /* Optional spacing above the running line */
  /* You can define a fixed height if your logos have a uniform size */
  height: 80px;
}

/* The track containing the logos */
.hero__brands-track {
  display: inline-block;
  white-space: nowrap;           /* Keep logos in one continuous line */
  animation: marquee 12s linear infinite;  /* The scrolling animation */
}

/* Individual logo images in the track */
.hero__brands-track img {
  display: inline-block;
  vertical-align: middle;
  margin: 0 40px;  /* Spacing between logos */
  height: 100%;    /* Let each logo fill the container’s height */
}

/* Keyframes for continuous scrolling from right to left */
@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ADVANTAGES SECTION */
.advantages {
  padding: 40px 0;
  background: #fff;
}
.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 30px;
}
.advantages__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.advantages__item {
  text-align: center;
  padding: 15px;
  background: #f7f7f7;
  border-radius: 4px;
}
.advantages__item h3 {
  margin: 10px 0;
}

/* SERVICE BLOCKS */
.service-block {
  padding: 40px 0;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}
.service-block__container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.service-block__content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.service-block__image,
.service-block__info {
  flex: 1 1 300px;
}
.service-block__info h3 {
  margin-bottom: 5px;
}
.service-block__info p {
  margin-bottom: 15px;
}
.btn {
  background-color: #000;
  color: #fff;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 4px;
}
.btn:hover {
  background-color: #333;
}

/* INSTALLATION SECTION */
.installation {
  padding: 40px 0;
  background: #fff;
}
.installation__cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  margin-bottom: 30px;
}
.installation__card {
  padding: 20px;
  background: #fafafa;
  border-radius: 4px;
  text-align: center;
}
.installation__card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.installation__card p {
  margin-bottom: 5px;
  font-weight: bold;
}
.installation__what-included {
  margin-bottom: 20px;
}
.installation__what-included ol {
  margin-left: 20px;
  margin-top: 10px;
  list-style: decimal;
}

/* CONTACT US */
.contact-us {
  background: #f9f9f9;
  padding: 40px 0;
  text-align: center;
}
.contact-us__phone {
  display: inline-block;
  font-size: 1.2rem;
  margin: 15px 0;
  color: #333;
  text-decoration: none;
}
.contact-us__hours {
  color: #666;
  margin-bottom: 20px;
}

/* FOOTER */
.footer {
  background: #000;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}
.footer__container p,
.footer__container small {
  margin-bottom: 5px;
  font-size: 0.9rem;
}
.footer__email {
  color: #fff; /* or any color you like */
  text-decoration: none;
  margin-left: 10px;
}

/* MODAL */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}
.modal--open {
  opacity: 1;
  pointer-events: auto;
}
.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
}
.modal__content {
  position: relative;
  width: 90%;
  max-width: 400px;
  margin: 10% auto;
  background: #fff;
  padding: 20px;
  border-radius: 4px;
}
.modal__close {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
}
.modal__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.modal__form label {
  font-weight: bold;
  font-size: 0.9rem;
}
.modal__form input,
.modal__form textarea {
  width: 100%;
  padding: 8px;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.modal__form button {
  align-self: flex-start;
  margin-top: 10px;
}
.modal__policy {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
  .header__container {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__services {
    flex-direction: column;
  }
  .service-block__content {
    flex-direction: column;
  }
  .installation__cards {
    grid-template-columns: 1fr;
  }
}
.calculator-container {
  margin: 30px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  min-height: 300px;
}

.calculator-container object {
  border: none;
  display: block;
}
.btn-calculator {
  display: inline-block;
  background: #007bff; /* Основной синий цвет */
  color: white;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  
  /* Увеличенные вертикальные отступы */
  padding: 18px 35px; /* 18px сверху/снизу, 35px слева/справа */
  
  /* Внешние отступы */
  margin: 30px 0; /* 30px сверху и снизу */
  
  border-radius: 50px; /* Более скругленные углы */
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
  font-size: 18px;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-calculator:hover {
  background: #0069d9;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 123, 255, 0.4);
}

.btn-calculator:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

/* Анимация при наведении */
.btn-calculator::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-calculator:hover::after {
  width: 300px;
  height: 300px;
}