/* style.css */
:root {
    /* --primary-color: #1e3a8a; */
    --primary-color: #0073b8;
    --secondary-color: #3b82f6;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --accent-color: #06b6d4;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial';
  }
  
  body {
    background-color: white;
    color: var(--dark-color);
    line-height: 1.6;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* Шапка */
  header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
  }
  
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
  }
  
  .logo {
    display: flex;
    align-items: center;
  }

  @media (max-width:1070px) {
    .logo {
      width: 100%;
      justify-content: space-between;
    }
  }
  
  .logo i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 10px;
  }
  
  .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
  }
  
  nav ul {
    display: flex;
    list-style: none;
  }
  
  nav ul li {
    margin-left: 30px;
  }
  
  nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
  }
  
  nav ul li a:hover {
    color: var(--primary-color);
  }
  
  .phone {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
  }
  
  .phone i {
    margin-right: 5px;
  }
  
  /* Баннер */
  /* .banner {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  } */
  
  .banner {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: url('/img/bg1.jpg');
    background-position: top;
    background-size: cover;
  }

  @media (max-width:1070px) {
  .banner {
    background-size: auto;
    background-position-x: center;
  }
  }
  .water-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
  
  .water-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%233b82f6" fill-opacity="0.2" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,197.3C1248,203,1344,149,1392,122.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: 1000px 100px;
    animation: wave 10s linear infinite;
  }
  
  .water-wave:nth-child(2) {
    animation-duration: 15s;
    opacity: 0.5;
    background-position-y: 10px;
  }
  
  @keyframes wave {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-1000px);
    }
  }
  
  .banner-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: var(--dark-color);
  }
  
  .banner h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
  }
  
  .banner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
  }
  
  .btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    margin-right: 15px;
    margin-bottom: 10px;
  }
  
  .btn:hover {
    background-color: var(--secondary-color);
  }
  
  .btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
  }
  
  .btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
  }
  
  /* Секции */
  section {
    padding: 80px 0;
  }
  
  .section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
  }
  
  .section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }
  
  .section-title p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--dark-color);
  }
  
  /* Услуги */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }
  
  .service-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
  
  .service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
  }
  
  .service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
  }
  
  .service-card p {
    flex-grow: 1;
    margin-bottom: 20px;
  }
  
  .btn-service-details {
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto;
  }
  
  .btn-service-details:hover {
    background-color: var(--primary-color);
    color: white;
  }
  
  /* Преимущества */
  .advantages {
    background-color: #f8fafc;
  }
  
  .advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }
  
  .advantage-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
  }
  
  .advantage-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 20px;
    flex-shrink: 0;
  }
  
  .advantage-text h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
  }
  
  /* Схема работы */
  .process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    margin-top: 50px;
  }
  
  .process-steps::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--secondary-color);
    z-index: 1;
  }
  
  .step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 150px;
    margin-bottom: 30px;
  }
  
  .step-number {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 15px;
  }
  
  .step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
  }
  
/* Отзывы */
.testimonials {
    background-color: #f8fafc;
    padding: 80px 0;
    overflow: hidden;
  }
  
  .testimonials-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    overflow: hidden;
  }
  
  .testimonials-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 30px;
  }
  
  .testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex: 0 0 calc(31.333% - 20px);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    flex-grow: 1;
  }
  
  .testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.3;
    position: absolute;
    top: -20px;
    left: -10px;
    line-height: 1;
  }
  
  .testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto;
  }
  
  .author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    margin-right: 15px;
    flex-shrink: 0;
  }
  
  .author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark-color);
  }
  
  .author-info p {
    color: #666;
    font-size: 0.9rem;
  }
  
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }
  
  .carousel-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
  }
  
  .carousel-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: translateY(-50%);
  }
  
  .carousel-btn:disabled:hover {
    background-color: #ccc;
    transform: translateY(-50%);
  }
  
  .carousel-btn-prev {
    left: 0;
  }
  
  .carousel-btn-next {
    right: 0;
  }
  
  .carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
  }
  
  .carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
  }
  
  .carousel-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
  }
  
  /* Адаптивность для карусели */
  @media (max-width: 992px) {
    .testimonial-card {
      flex: 0 0 calc(50% - 15px);
    }
  }
  
  @media (max-width: 768px) {
    .testimonials-carousel {
      padding: 0 40px;
    }
    
    .testimonial-card {
      flex: 0 0 calc(100% - 20px);
      padding: 20px;
      min-height: 200px;
    }
    
    .carousel-btn {
      width: 40px;
      height: 40px;
      font-size: 1rem;
    }
  }
  
  @media (max-width: 480px) {
    .testimonials-carousel {
      padding: 0 20px;
    }
    
    .carousel-btn {
      width: 35px;
      height: 35px;
    }
  }
  
  /* Форма обратной связи */
  .contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
  }
  
  .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
  }
  
  .form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
  }
  
  /* Подвал */
  footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
  }
  
  .footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
  }
  
  .footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
  }
  
  .footer-column ul {
    list-style: none;
  }
  
  .footer-column ul li {
    margin-bottom: 10px;
  }
  
  .footer-column ul li a {
    color: #e0f2fe;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .footer-column ul li a:hover {
    color: white;
  }
  
  .contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
  }
  
  .contact-info i {
    margin-right: 10px;
    color: var(--accent-color);
  }
  
  .copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #e0f2fe;
  }
  
  /* Модальное окно */
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    overflow-y: auto;
  }
  
  .modal-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: modalFade 0.3s;
  }
  
  @keyframes modalFade {
    from {
      opacity: 0;
      transform: translateY(-50px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--dark-color);
    z-index: 10;
  }
  
  .modal-close:hover {
    color: var(--primary-color);
  }
  
  .modal-body {
    padding: 40px;
  }
  
  .service-details {
    display: none;
  }
  
  .service-details.active {
    display: block;
  }
  
  .service-details h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
  }
  
  .service-details-content {
    display: flex;
    gap: 30px;
  }
  
  .service-details-text {
    flex: 1;
  }
  
  .service-details-text h3 {
    color: var(--primary-color);
    margin: 20px 0 10px;
  }
  
  .service-details-text ul {
    margin-left: 20px;
    margin-bottom: 15px;
  }
  
  .service-details-text li {
    margin-bottom: 8px;
  }
  
  /* Адаптивность */
  @media (max-width: 768px) {
    .header-content {
      flex-direction: column;
      text-align: center;
    }
  
    nav ul {
      margin-top: 15px;
      justify-content: center;
      flex-wrap: wrap;
    }
  
    nav ul li {
      margin: 5px 10px;
    }
  
    .phone {
      margin-top: 15px;
    }
  
    .banner h1 {
      font-size: 2.2rem;
    }
  
    .process-steps::before {
      display: none;
    }
  
    .step {
      flex: 0 0 100%;
      margin-bottom: 30px;
    }
  
    .testimonial-card {
      min-width: calc(100% - 20px);
    }
  
    .carousel-btn {
      display: none;
    }
  
    .service-details-content {
      flex-direction: column;
    }
  }
  
  @media (max-width: 480px) {
    .container {
      padding: 0 15px;
    }
    
    .logo-text {
      font-size: 1.2rem;
    }
    
    .banner h1 {
      font-size: 1.8rem;
    }
    
    .section-title h2 {
      font-size: 1.8rem;
    }
    
    .service-card {
      padding: 20px;
    }
    
    .modal-body {
      padding: 20px;
    }
    
    .service-details h2 {
      font-size: 1.5rem;
    }
  }

  /* Мобильное меню */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn i {
  font-size: 1.8rem;
}

@media (max-width: 1070px) {
  .mobile-menu-btn {
      display: block;
  }

  nav {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background-color: white;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      display: none;
      z-index: 1000;
  }

  nav.active {
      display: block;
  }

  nav ul {
      flex-direction: column;
      padding: 20px 0;
      margin: 0;
  }

  nav ul li {
      margin: 0;
      text-align: center;
  }

  nav ul li a {
      display: block;
      padding: 15px 20px;
      border-bottom: 1px solid #f0f0f0;
  }

  nav ul li:last-child a {
      border-bottom: none;
  }

  .header-content {
      position: relative;
  }
}