/* ----- ОБЩИЕ СБРОСЫ ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
  padding-top: 80px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- ШАПКА (фиксированная) ----- */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header .container {
  padding: 0;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 10px;
}

.logo {
  font-size: 24px;
  font-weight: 900;
  color: #0077b6;
  text-decoration: none;
  cursor: pointer;
}

.logo:hover {
  color: #005f8a;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 5px 0;
}

.nav a:hover {
  color: #0077b6;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 8px 0;
  z-index: 10;
}

.dropdown-menu a {
  display: block;
  padding: 8px 20px;
  color: #333;
  text-decoration: none;
  font-weight: 400;
  transition: 0.2s;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: #f0f7ff;
  color: #0077b6;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.header__phone {
  font-weight: 700;
  color: #333;
  font-size: 16px;
}

.stars {
  color: #0077b6;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.stars:hover {
  color: #005f8a;
}

.messenger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e0f0ff;
  color: #0077b6;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
  font-size: 16px;
}

.messenger-icon:hover {
  background: #0077b6;
  color: #fff;
}

/* ----- ГЕРОЙ (ЦЕНТР) ----- */
.hero {
  padding: 60px 0 80px;
  background: #f8fbff;
  text-align: center;
}

.hero__content {
  max-width: 800px;
  margin: 0 auto 40px;
}

.hero__content h1 {
  font-size: 48px;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.hero__image {
  max-width: 800px;
  margin: 0 auto;
}

.hero__image img {
  width: 100%;
  border-radius: 20px;
}

.about-company {
  padding: 60px 0;
  background: #fff;
}

.about-company h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 30px;
}

.about-text {
  max-width: 900px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

.about-text p {
  margin-bottom: 20px;
}

.services {
  padding: 60px 0;
  background: #f8fbff;
}

.services h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service__card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  text-align: center;
  transition: 0.3s;
}

.service__card:hover {
  transform: translateY(-5px);
}

.service__icon {
  background: #e0f0ff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 15px;
}

.service__card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.service__price {
  font-weight: 700;
  color: #0077b6;
  font-size: 18px;
  margin: 15px 0;
}

.discounts {
  padding: 60px 0;
  background: #fff;
}

.discounts h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
}

.discounts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.discount__card {
  background: #f0f7ff;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
}

.discount__title {
  font-size: 24px;
  font-weight: 700;
  color: #0077b6;
  margin-bottom: 10px;
}

.form-section {
  padding: 60px 0;
  background: #f8fbff;
  text-align: center;
}

.form-section h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.form-section form {
  max-width: 500px;
  margin: 30px auto 0;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 5px;
}

.form-group input {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid #ddd;
  border-radius: 30px;
  font-size: 16px;
  transition: 0.3s;
}

.form-group input:focus {
  border-color: #0077b6;
  outline: none;
}

.footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 40px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
}

.footer .logo {
  color: #fff;
}

.footer a {
  display: block;
  color: #aaa;
  text-decoration: none;
  margin: 8px 0;
}

.footer a:hover {
  color: #fff;
}

.footer h4 {
  color: #fff;
  margin-bottom: 15px;
}

.footer__bottom {
  border-top: 1px solid #333;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}

/* ----- АДАПТИВНОСТЬ ----- */
@media (max-width: 1024px) {
  .hero__content h1 {
    font-size: 36px;
  }
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 120px;
  }

  .header__inner {
    flex-direction: column;
    gap: 10px;
    padding: 0 10px;
  }

  .nav {
    justify-content: center;
    gap: 10px 15px;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 15px;
    min-width: auto;
  }

  .dropdown-menu a {
    white-space: normal;
  }

  .header__contacts {
    justify-content: center;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }
  .discounts__grid {
    grid-template-columns: 1fr;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__content h1 {
    font-size: 28px;
  }
  .hero__image img {
    height: auto;
  }
  .about-text {
    font-size: 16px;
    padding: 0 15px;
  }
}