/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* Header Styles */
  .header {
    background: #3498db;
    color: white;
    padding: 1rem 0;
    place-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
  }
  
  .nav-list {
    display: none;
    list-style: none;
    gap: 2rem;
  }
  
  .nav-list a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .nav-list a:hover {
    color: #3498db;
  }
  
  .burger {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
  }
  
  .burger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
  }
  
  /* Hero Section */
  .hero {
    display: flex;
    background-image: 
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("/static/images/back/back2.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    color: white;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh;
  }
  
  .hero::before {
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
  }
  
  /* Button Styles */
  .btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
  }
  
  .btn-primary {
    background: #3498db;
    color: white;
  }
  
  .btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
  }
  
  .btn-secondary {
    background: white;
    color: #000000;
  }
  
  .btn-secondary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
  }
  
  /* Services Section */
  .services {
    padding: 60px 0;
    background: #f8f9fa;
  }
  
  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
  }
  
  .service-card:hover {
    transform: translateY(-5px);
  }
  
  .service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  
  .service-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
  }
  
  /* Advantages Section */
  .advantages {
    padding: 60px 0;
  }
  
  .advantages-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
  }
  
  .advantages h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
  }
  
  .advantages-list {
    list-style: none;
    margin-top: 2rem;
  }
  
  .advantages-list li {
    padding: 0.5rem 0;
    color: #27ae60;
    font-weight: 500;
  }
  
  .advantages-image img {
    width: 100%;
    border-radius: 10px;
  }
  
  /* Section Titles */
  .section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
  }
  
  .section-title.white {
    color: white;
  }
  
  .section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: #666;
  }
  
  .section-subtitle.white {
    color: rgba(255, 255, 255, 0.9);
  }
  
  /* Team Section */
  .team {
    padding: 60px 0;
    background: #f8f9fa;
  }
  
  .team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .team-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
  }
  
  .team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .team-card h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
  }
  
  /* Works Section */
  .works {
    padding: 60px 0;
  }
  
  .works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .work-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .work-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
  }
  
  .work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s;
  }
  
  .work-item:hover .work-overlay {
    transform: translateY(0);
  }
  
  .work-item:hover img {
    transform: scale(1.1);
  }
  
  /* Reviews Section */
  .reviews {
    padding: 60px 20px;
    background: #f8f9fa;
    box-sizing: border-box;
  }
  
  .reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .review-text {
    position: relative;
    line-height: 1.5;
    max-height: 9em; /* ограничение по высоте для 6 строчек */
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-bottom: 0.5rem;
  }
  
  .review-text.expanded {
    max-height: 1000px; /* A large value to show all content */
  }
  
  .review-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgb(0 0 0 / 0.1);
    height: 100%; /* чтобы карточки выравнивались по высоте */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .read-more-btn {
    display: none; /* скрываем по умолчанию */
    touch-action: manipulation;
    width: 100%;
    text-align: right;
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    padding: 0;
    font-size: 0.9em;
    font-weight: bold;
    user-select: none;
  }
  
  .review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
  }
  
  .review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
  }
  
  .review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .review-rating {
    color: #f39c12;
    font-size: 1.2rem;
  }
  
/* Contact Form Section - мобильные базовые стили */
.contact-form {
  padding: 40px 15px;
  background-color: #2980b9;
  color: white;
}

.form {
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 0 10px;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  transition: background 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: white;
}

/* Нижняя часть формы - галочка и кнопка (мобильная версия, вертикально) */
.form-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 1.2rem;
}

.agreement-label {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.95rem;
  color: #e0f7fa;
  user-select: none;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.agreement-label:hover,
.agreement-label:focus-within {
  color: #a0e7ff;
}

.agreement-label input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2.5px solid #a0e7ff;
  border-radius: 6px;
  background-color: transparent;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.agreement-label input[type="checkbox"]:checked {
  background-color: #00bcd4;
  border-color: #00bcd4;
}

.agreement-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 8px;
  width: 5px;
  height: 11px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.agreement-label a {
  color: #81d4fa;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.agreement-label a:hover,
.agreement-label a:focus {
  color: #4fc3f7;
  text-decoration: none;
}


.btn-secondary {
  background-color: #1abc9c;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.btn-secondary:hover {
  background-color: #16a085;
}
  /* FAQ Section */
  .faq {
    padding: 60px 0;
  }
  
  .faq-list {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
  }
  
  .faq-question {
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
  }
  
  .faq-answer.active {
    max-height: 200px;
    padding-bottom: 1rem;
  }
  
  .faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
  }
  
  .faq-item.active .faq-icon {
    transform: rotate(45deg);
  }
  
  /* Footer */
  .footer {
    background: #19242e;
    color: white;
    padding-top: 40px;
  }
  
  .footer-content {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .footer-info {
    flex: 1 1 45%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column; /* элементы списка вертикально */
    gap: 10px; /* вертикальные отступы между элементами */
  }

  .footer-info a, .footer-info span, .footer-info p {
    display: block;
    margin-bottom: 0.5rem;
    cursor: pointer; /* указатель при наведении и клике */
    color: white; /* сделаем цвет текста белым, как остальные */
    text-decoration: none;
    font-size: 1rem;
  }

  .footer-map {
    flex: 1 1 45%;
    box-sizing: border-box;
  }

  .social-icons {
    margin-top: 1rem;
    display: flex;
    gap: 15px;
  }
  
  .social-icons a {
    color: white;
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .footer-info a:hover,
  .footer-info span:hover,
  .footer-info p:hover {
    color: #3498db; /* подсветка при наведении */
  }
  
  .footer-section h4 {
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: 1rem;
    color: #3498db;
  }
  
  .footer-section p {
    margin-bottom: 0.5rem;
  }
  
  .map-placeholder {
    width: 100%;       /* ширина по ширине родителя */
    max-width: 570px;  /* максимальная ширина для десктопа */
    height: auto;
    border-radius: 10px;
    overflow: hidden;
  }
  
  .map-placeholder iframe {
    width: 100%;       /* iframe заполняет контейнер по ширине */
    height: 254px;     /* фиксированная высота для отображения */
    border: none;
  }

  .footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
  }
  
  /* Mobile Navigation */
  .nav.active .nav-list {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #92bfec;
    padding: 1rem;
  }

  /*swiper*/
  .swiper-container {
    width: 100%;
    height: auto;
    padding-bottom: 40px; /* Space for pagination */
}
  .swiper-slide {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 1rem;
      box-sizing: border-box;
  }

/* Custom Swiper navigation buttons */
.swiper-button-prev, .swiper-button-next {
    color: #3498db;
    top: 50%;
    transform: translateY(-50%);
}
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 2rem;
}

/* Custom Swiper pagination dots */
.swiper-pagination-bullet {
    background: #3498db;
    opacity: 0.5;
}
.swiper-pagination-bullet-active {
    opacity: 1;
}
  
  /* Tablet Styles */
  @media (min-width: 768px) {
    .hero-title {
      font-size: 3rem;
    }
  
    .services-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .team-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .works-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .reviews-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .advantages-content {
      grid-template-columns: 1fr 1fr;
    }

    .swiper-button-prev, .swiper-button-next {
      display: none;
    }

    .form {
      max-width: 500px;
    }
  
    .form-bottom {
      flex-direction: row;
      justify-content: center;
      align-items: center;
      gap: 15px;
    }
  
    .btn-secondary {
      width: auto;
    }
  }
  
  /* Desktop Styles */
  @media (min-width: 1024px) {
    .burger {
      display: none;
    }
  
    .nav-list {
      display: flex;
    }
    .hero-title {
      font-size: 3.5rem;
    }
  
    .services-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  
    .team-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  
    .works-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  /* Animations */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .fade-in {
    animation: fadeInUp 0.6s ease-out;
  }
  
  /* Smooth scrolling */
  html {
    scroll-behavior: smooth;
  }
  