 body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
.header {
    position: fixed; /* Фиксируем шапку */
    top: 0;
    left: 0;
    width: 100%;
        background: linear-gradient(135deg, 
  #FF6A00,   /* яркий оранжевый */
  #1E90FF,   /* фиолетово-синий */
  #00008B    /* мягкий светло-бежевый */
);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 1px 50px;
    z-index: 1000; /* Чтобы шапка была поверх других элементов */
    transition: background 0.3s;
}
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #214af2;
    text-decoration: none;
}
.logo img {
    height: 80px;
    width: auto;
}

html {
    scroll-behavior: smooth;
}


.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav a:hover {
    color: #0900b0; /* Синий цвет при наведении */
}

.contact1 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact1 span {
    font-weight: bold;
}

.contact1 a {
    background: #FF7F50	;
    color: black;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.contact1 a:hover {
    background: #ffffff;
}
/* Общие стили для мобильных устройств */
@media screen and (max-width: 768px) {
    /* Уменьшаем размер шрифта и изменяем отступы для мобильных устройств */
    .header {
        padding: 10px 20px;
    }

    .logo {
        font-size: 24px;
    }

    .logo img {
        height: 60px;
    }

    .nav {
        flex-direction: column; /* Меняем расположение навигации на вертикальное */
        gap: 10px;
        text-align: center;
    }

    .nav a {
        font-size: 14px;
    }

    .contact1 {
        flex-direction: column; /* Контакты идут вертикально */
        align-items: center;
    }

    .contact1 a {
        padding: 6px 10px;
    }
}

/* Для экранов до 480px (смартфоны) */
@media screen and (max-width: 480px) {
    .header {
        padding: 5px 15px;
    }

    .logo {
        font-size: 20px;
    }

    .logo img {
        height: 50px;
    }

    .nav {
        gap: 8px;
    }

    .nav a {
        font-size: 12px;
    }

    .contact1 a {
        padding: 5px 8px;
    }
}


/* Секция о компании */
#about {
    background-image: url('background1.jpeg'); /* Заменить на реальный путь */
    background-size: cover;
    background-position: center;
    padding: 100px 30px;
    position: relative;
    color: white;
  }
  
  .about-container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .about-text {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
  }
  
  .about-text h1 {
    font-size: 30px;
    margin-bottom: 20px;
  }
  
  .about-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 12px;
  }
  
  .btn-request {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 16px;
    background-color: #FF7F50;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .btn-request:hover {
    background-color: rgb(194, 169, 125);
  }
  
  /* Анимация появления текста */
  @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-100px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .slide-in-left {
    animation: slideInLeft 1.5s ease-out forwards;
  }
  
  /* Модальное окно */
  .modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 30px;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  .modal-content {
    background-color: #fff;
    margin: 60px auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    animation: slideDown 0.3s ease;
  }
  
  @keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  
  .modal-header {
    background-color: #FF7F50;
    padding: 20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    text-align: center;
  }
  
  .modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
  }
  
  .close {
    color: #fff;
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .modal-form {
    padding: 25px 20px 30px;
    display: flex;
    flex-direction: column;
  }
  
  .modal-form label {
	color: black;
    margin-top: 15px;
    font-weight: 500;
  }
  
  .modal-form input {
    margin-top: 10px;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
  }
  
  .modal-form button[type="submit"] {
    margin-top: 25px;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    background-color: black;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }
  
  .modal-form button:hover {
    background-color: #333;
  }
  


/* Стили для секции "Преимущества" */
#advantages {
	background: rgb(144, 144, 144);
    padding: 60px 20px;
    text-align: center;
  }
  
  .section-title {
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
  }
  
  .advantages-container {
    display: flex;
    justify-content: center;
  }
  
  .advantages-left {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 столбца */
    gap: 60px;
    max-width: 1200px;
    width: 100%;
  }
  
  .advantage {
	background-color: rgba(255, 255, 255, 0.699);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
  }
  
  .advantage:hover {
    transform: translateY(-5px);
  }
  

  .advantage img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }
  
  .advantage p {
    font-size: 16px;
    color: #000000;
    text-align: center;
  }

  /* Адаптивные стили */
  @media (max-width: 992px) {
    .advantages-left {
      grid-template-columns: repeat(2, 1fr); /* 2 колонки */
    }
  }
  
  @media (max-width: 600px) {
    .advantages-left {
      grid-template-columns: 1fr; /* 1 колонка */
    }
  }
  


/* Стили для секции "Услуги" */
#services {
    background: url('background.jpeg');
    padding: 80px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.section-title1 {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Контейнер карточек */
.services {
    display: grid;
	grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    width: 100%;
	margin: 0 auto; 
}

/* Стили для каждой карточки */
.service-card {
    width: 100%;
    background: rgba(0, 0, 0, 0.499);
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: #333;
    transition: slideInLeft 1.5s ease-out forwards;;
    transform: translateX(100px); /* Начальная позиция справа */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.service-card p {
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.5;
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Анимация появления карточек */
.service-card:nth-child(1) {
    animation: slideInLeft 1.5s ease-out forwards;
}

.service-card:nth-child(2) {
    animation: slideInLeft 1.5s ease-out forwards;
}

.service-card:nth-child(3) {
    animation: slideInLeft 1.5s ease-out forwards;
}

 @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-100px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .slide-in-left {
    animation: slideInLeft 1.5s ease-out forwards;
  }

/* Медиазапрос для мобильных устройств */
@media (max-width: 768px) {
    .service-card {
        width: 100%;
        margin-bottom: 20px;
    }

    .services {
        flex-direction: column;
        align-items: center;
    }
}





.title-container {
    text-align: center;
    margin-bottom: 20px;
}
.slider-container {
    width: 80%;
    margin: auto;
    overflow-x: auto; /* Включает горизонтальный скролл */
    white-space: nowrap;
    display: flex;
    gap: 80px;
    padding-bottom: 10px; /* Чтобы убрать возможное скрытие */
    cursor: grab;
    scroll-behavior: smooth;
}
.slider-container::-webkit-scrollbar {
    display: none; /* Скрываем скроллбар */
}
.slide {
    display: inline-block;
    width: 200px;
    flex-shrink: 0;
    cursor: pointer;
    user-select: none;
}
.slide img {
    width: 100%;
    height: auto;
}



#contacts {
    background: linear-gradient(135deg, 
  #FF6A00,   /* яркий оранжевый */
  #1E90FF,   /* фиолетово-синий */
  #00008B    /* мягкий светло-бежевый */
);

    color: white;
    padding: 40px 10%;
    position: relative;
}

#contacts::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Затемнение фона */
}

.contacts-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    z-index: 2;
}

.contacts-left {
    width: 30%;
}

.contacts-left .logo {
    width: 125px;
    margin-bottom: 15px;
}

.social-icons a img {
    width: 30px;
    margin-right: 10px;
    transition: transform 0.3s;
}

.social-icons a img:hover {
    transform: scale(1.1);
}

.contacts-middle, .contacts-right {
    width: 30%;
}

.contacts-middle h3, .contacts-right h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.contacts-middle ul {
    list-style: none;
    padding: 0;
}

.contacts-middle ul li {
    margin-bottom: 5px;
}

.contacts-middle ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.contacts-middle ul li a:hover {
    color: #214af2; /* Золотистый оттенок при наведении */
}

.contacts-right p {
    margin: 5px 0;
}

.contacts-right a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.contacts-right a:hover {
    color: #214af2;
}



.reviews-section {
    padding: 60px 20px;
    overflow: hidden;
    background-color: #f9f9f9;
    position: relative;
  }

  .section-title {
    text-align: center;
    margin-bottom: 30px;
    color: #000000;
  }

  .reviews-wrapper {
    position: relative;
  }

  .reviews-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    scrollbar-width: none;
  }

  .reviews-scroll::-webkit-scrollbar {
    display: none;
  }

  .review-card {
    flex: 0 0 auto;
    width: 280px;
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
  }

  .review-card:hover {
    transform: translateY(-5px);
  }

  .review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
  }

  .review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #ddd;
  }

  .review-author {
    font-weight: bold;
    color: #222;
  }

  .review-text {
    font-style: italic;
    color: #555;
    line-height: 1.4;
  }

  .scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    border: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
  }

  .scroll-button:hover {
    background-color: #eee;
  }

  .scroll-left {
    left: 0;
  }

  .scroll-right {
    right: 0;
  }




@media (max-width: 480px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  .logo {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .nav {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .contact1 {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 5px;
  }

  .about-text h1 {
    font-size: 24px;
  }

  .about-text p {
    font-size: 16px;
  }

  .section-title,
  .section-title1 {
    font-size: 24px;
  }

  .advantages-left {
    grid-template-columns: 1fr;
  }

  .contacts-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contacts-left, .contacts-middle, .contacts-right {
    width: 100%;
    margin-bottom: 20px;
  }

  .service-card {
    width: 100%;
  }

  .review-card {
    width: 90%;
  }
}



/* Стили для страницы */
header0 {
    text-align: center;
    padding: 20px;
    background-color: #2a3d66;
    color: black;
}

h1 {
    margin: 0;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10s0px;
    padding: 20px;
}

.gallery-item {
    width: 300px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
}

.gallery-item p {
    padding: 10px;
    margin: 0;
    background-color: #f9f9f9;
    font-size: 14px;
    color: #555;
}