body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.header {
    background-image: url('images/ballony001.png'); #f0f0f0; /* Светло-серый фон */
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Размещает элементы по краям */
}

.headerbutton {
    display: flex;
    margin-left: auto; /* Отодвигает кнопки вправо */
}

.button {
    margin-left: 30px; /* Отступ между кнопками */
}

.button a {
    text-decoration: none;
    color: #0016dbce; /* Черный цвет текста */
    transition: background-color 0.3s, color 0.3s;
    font-size: 20px; /* Увеличиваем размер текста */
}

.button a:hover {
    color: #0084ff; /* Цвет текста при наведении */
}

#pic1 {
    position: relative; /* Позволяет позиционировать дочерние элементы относительно этого блока */
}

.textpic1 {
    position: absolute; /* Позволяет разместить текст поверх изображения */
    top: 50%; /* Центрирует текст по вертикали */
    left: 50%; /* Центрирует текст по горизонтали */
    transform: translate(-50%, -50%); /* Сдвигает текст в центр */
    color: white; /* Цвет текста */
    text-align: center; /* Выравнивание текста по центру */
    padding: 20px; /* Отступы вокруг текста */
    background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный фон для лучшей читаемости */
    border-radius: 10px; /* Скругление углов фона */
}

.titlediv h1 {
    font-size: 57px; /* Размер заголовка */
    margin: 0; /* Убираем отступы */
    font-weight: bold; /* Жирный шрифт */
}

.textpic1 p {
    font-size: 30px; /* Размер шрифта */
    color: white; /* Белый цвет текста */
    line-height: 1.5; /* Межстрочный интервал для лучшей читаемости */
    margin: 10px 0; /* Отступы сверху и снизу */
    padding: 10px; /* Отступы внутри элемента */
    border-radius: 8px; /* Скругление углов фона */
    max-width: 1000px; /* Максимальная ширина текста */
    text-align: center; /* Центрирование текста */
}


* {
    box-sizing: border-box; /* Учитываем границы и отступы в ширине элементов */
}

.footer {
    background-color: rgba(0, 0, 0, 0.041); /* Полупрозрачный фон для лучшей читаемости */
    padding: 20px 0; /* Отступы внутри футера: 20px сверху и снизу */
    max-width: 100%; /* Максимальная ширина на всю страницу */
    font-size: 20px; /* Размер текста */
    overflow: hidden; /* Скрываем переполнение, если оно есть */
}

.footer .row {
    display: flex; /* Используем flexbox для выравнивания */
    justify-content: center; /* Центрируем содержимое по горизонтали */
    align-items: center; /* Центрируем содержимое по вертикали */
    flex-wrap: wrap; /* Позволяем колонкам переноситься на новую строку при необходимости */
    width: 100%; /* Ширина строки на всю ширину контейнера */
}

.footer p {
    margin: 0; /* Убираем отступы */
    color: #000000; /* Цвет текста */
}

/* Горизонтальная линия */
.divider {
    border: 1px solid rgba(0, 0, 0, 0.1); /* Цвет и стиль линии */
    margin: 20px 0; /* Отступы вокруг линии */
    width: 100%; /* Ширина линии */
}

/* Контейнер для логотипа */
.logo-container {
    display: flex; /* Используем flexbox для центрации */
    justify-content: center; /* Центрируем логотип */
    align-items: center; /* Центрируем по вертикали */
    padding: 20px 0; /* Отступы вокруг логотипа */
}

.custom-address h5 {
    margin-bottom: 10px; /* Отступ снизу для заголовка */
    color: #000000; /* Цвет заголовка */
}

.custom-address a {
    color: #007bff; /* Цвет ссылок */
    text-decoration: none; /* Убираем подчеркивание */
}

.custom-address a:hover {
    text-decoration: underline; /* Подчеркивание при наведении */
}

.custom-address {
    text-align: center; /* Центрируем текст в адресе */
}


  #aboutUs {
    position: relative; /* Позволяет позиционировать дочерние элементы относительно этого блока */
    height: 900px; /* Высота блока */
    background-color: white; /* Белый фон */
}

.textAboutUs {
    position: absolute; /* Позволяет разместить текст поверх фона */
    top: 50%; /* Центрирует текст по вертикали */
    left: 50%; /* Центрирует текст по горизонтали */
    transform: translate(-50%, -50%); /* Сдвигает текст в центр */
    color: #0516acce; /* Черный цвет текста */
    text-align: center; /* Выравнивание текста по центру */
    padding: 20px; /* Отступы вокруг текста */
    background-color: rgba(255, 255, 255, 0.8); /* Полупрозрачный фон для лучшей читаемости */
    border-radius: 10px; /* Скругление углов фона */
}

.titleAboutUs h1 {
    font-size: 57px; /* Размер заголовка */
    margin: 0; /* Убираем отступы */
    font-weight: bold; /* Жирный шрифт */
}

.textAboutUs p {
    font-size: 30px; /* Размер шрифта */
    color: #0516acce; /* Черный цвет текста */
    line-height: 1.5; /* Межстрочный интервал для лучшей читаемости */
    margin: 10px 0; /* Отступы сверху и снизу */
    padding: 10px; /* Отступы внутри элемента */
    border-radius: 8px; /* Скругление углов фона */
    max-width: 1000px; /* Максимальная ширина текста */
    text-align: center; /* Центрирование текста */

}

#aboutUs1 {
    position: relative; /* Позволяет позиционировать дочерние элементы относительно этого блока */
    height: 900px; /* Высота блока */
    background-color: rgba(0, 0, 0, 0.041); /* Полупрозрачный фон для лучшей читаемости */
    display: flex; /* Используем flexbox для центрирования */
    justify-content: center; /* Центрируем по горизонтали */
    align-items: center; /* Центрируем по вертикали */
}

#startWorking {
    display: flex; /* Используем flexbox для размещения изображения и текста рядом */
    align-items: center; /* Центрируем элементы по вертикали */
    padding: 20px; /* Отступы вокруг блока */
    border-radius: 10px; /* Скругление углов блока */

}

.leftImage {
    width: 500px; /* Фиксированная ширина изображения */
    height: 500px; /* Фиксированная высота изображения */
    object-fit: cover; /* Сохранение пропорций изображения */
    border-radius: 10px; /* Скругление углов изображения */
    margin-right: 20px; /* Отступ справа от изображения */
}

.infoBox {
    width: 500px; /* Фиксированная ширина информационного блока */
    height: 500px; /* Фиксированная высота информационного блока */
    background-color: #0516acce; /* Светло-голубой фон */
    border-radius: 10px; /* Скругление углов информационного блока */
    padding: 30px 25px; /* Отступы внутри блока */
    box-sizing: border-box; /* Учитываем отступы и границы в ширине и высоте */
    display: flex; /* Используем flexbox для размещения элементов внутри */
    flex-direction: column; /* Вертикальное направление */
    justify-content: space-between; /* Распределение пространства между элементами */
    color: #ffffff; /* Темно-синий цвет текста */
}

/* Заголовок */
.infoBox h2 {
    font-size: 36px; /* Размер заголовка */
    margin: 0 0 15px 0; /* Отступы для заголовка */
}

/* Параграф */
.infoBox p {
    font-size: 20px; /* Размер текста */
    line-height: 1.5; /* Межстрочный интервал */
    margin: 0; /* Убираем отступы */
    flex-grow: 1; /* Занимает оставшееся пространство */
}

/* Кнопка */
.callButton {
    background-color: #ffffff; /* Цвет фона кнопки */
    color: #0516acce; /* Цвет текста кнопки */
    border: none; /* Убираем границу */
    border-radius: 5px; /* Скругление углов кнопки */
    padding: 12px 20px; /* Отступы внутри кнопки */
    font-size: 18px; /* Размер текста кнопки */
    cursor: pointer; /* Указатель при наведении */
    transition: background-color 0.3s, color 0.3s, border 0.3s; /* Плавный переход */
}

.callButton:hover {
    background-color: #0516ac00; /* Светло-голубой фон */
    border: 2px solid white; /* Белая граница */
    color: white; /* Белый цвет текста */
}




.yslygi {
    text-align: center; /* Выравнивание по центру */
    margin-bottom: 40px; /* Отступ снизу */
    margin-top: 40px;
    
}

.yslygi h2 {
    color: #0516acce; /* Цвет заголовка */
    font-size: 40px; /* Размер шрифта */
    margin: 0; /* Убираем отступы */

}

.services {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px; /* Расстояние между элементами */
}

.service-item {
    width: calc(50% - 15px); /* 2 колонки с отступами */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

.service-item h3 {
    color: #0516acce; /* Цвет заголовка h3 */
    font-size: 25px; /* Размер заголовка */
    margin: 0 0 15px;
    text-decoration: none; /* Убираем подчеркивание */
}

.service-item p {
    margin: 0;
    color: #555;
    font-size: 18px;
    line-height: 1.4;
}

/* Адаптив для мобильных */
@media (max-width: 600px) {
    .service-item {
        width: 100%;
    }
}


.services-row {
    display: flex; /* Используем flexbox для горизонтального расположения */
    justify-content: space-around; /* Распределяем элементы равномерно */
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


.service-item1 {
    width: calc(50% - 15px); /* 2 колонки с отступами */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-item1 img {
    object-fit: contain;
    margin-bottom: 15px;
}

.service-item1 h3 {
    color: #0516acce; /* Цвет заголовка h3 */
    font-size: 25px; /* Размер заголовка */
    margin: 0 0 15px;
    text-decoration: none; /* Убираем подчеркивание */
}

.service-item1 p {
    margin: 0;
    color: #555;
    font-size: 18px;
    line-height: 1.4;
}

/* Модальное окно */
.modal {
    display: none; /* скрыто по умолчанию */
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    overflow: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  /* Блок с содержимым */
  .modal-content {
    background: #fff;
    margin: 3% auto;
    padding: 25px 30px 30px 30px;
    border-radius: 12px;
    width: 1130px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    position: relative;
  }
  
  /* Заголовок */
  .modal-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 22px;
    color: #222;
    text-align: center;
  }
  
  /* Кнопка закрытия */
  .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  .close:hover {
    color: #000;
  }
  
  /* Контейнер вкладок */
  .tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 8px;
    max-height: 130px;
    overflow-y: auto;
    margin-bottom: 20px;
  }
  
  /* Кнопки вкладок */
  .tab-buttons button.tablinks {
    background: #f5f5f5;
    border: 1.5px solid transparent;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    transition:
      background-color 0.25s ease,
      border-color 0.25s ease,
      color 0.25s ease;
    user-select: none;
    white-space: nowrap;
  }
  .tab-buttons button.tablinks:hover {
    background-color: #e0e0e0;
  }
  .tab-buttons button.tablinks.active {
    background-color: #007bff;
    border-color: #0056b3;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 8px rgba(0,123,255,0.5);
  }
  
  /* Контент вкладок */
  .tabcontent {
    display: none;
    animation: fadeIn 0.3s ease forwards;
    color: #333;
    line-height: 1.5;
    text-align: center;
  }
  .tabcontent h5 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    color: #007bff;
    text-align: center;
  }
  
  /* Плавное появление */
  @keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
  }
  
  .styled-table {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-width: 600px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 1130px;
  }
  
  .styled-table thead tr {
    background-color: #007bff;
    color: #ffffff;
    text-align: left;
    font-weight: 600;
  }
  
  .styled-table th, 
  .styled-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    vertical-align: middle;
  }
  
  .styled-table tbody tr {
    background-color: #f9f9f9;
  }
  
  .styled-table tbody tr:nth-of-type(even) {
    background-color: #e9f0ff;
  }
  
  .styled-table tbody tr:hover {
    background-color: #d0dfff;
    cursor: default;
  }
  
  .styled-table tbody tr td:first-child {
    font-weight: 600;
    color: #333;
    text-align: center;
    width: 40px;
  }
  
  .styled-table tbody tr td:last-child {
    text-align: center;
    width: 80px;
  }
  
  /* Для длинных названий - перенос слов */
  .styled-table td {
    word-break: break-word;
  }
  
  #priceButton {
    background: linear-gradient(135deg, #42A5F5, #1E88E5);
    border: none;
    color: white;
    padding: 10px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(66, 165, 245, 0.4);
    
  }
  
  #priceButton:hover {
    background: linear-gradient(135deg, #1E88E5, #1565C0);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(66, 165, 245, 0.6);
  }
  
  #priceButton:active {
    transform: translateY(0);
    box-shadow: 0 3px 6px rgba(66, 165, 245, 0.3);
  }
  
  .yslygi {
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #666; /* серый цвет текста */
  }
  

  
  .categories {
    display: flex;
    flex-direction: row-reverse; /* справа налево */
    gap: 25px;
    justify-content: flex-start;
  }
  
  .category-item {
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 20px;
    width: 300px;
    height: 300px; /* фиксированная высота = ширине */
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    color: #666;
    box-sizing: border-box; /* чтобы padding учитывался внутри размеров */
    flex-shrink: 0;
    flex-direction: row-reverse; /* чтобы картинка была справа */
  }
  
  .category-item:hover {
    background-color: #e0f0ff;
    box-shadow: 0 4px 14px rgba(0, 123, 255, 0.3);
    color: #0056b3;
  }
  
  .category-item:hover h3 {
    color: #0056b3;
  }
  
  .category-item:hover p {
    color: #004080;
  }
  
  .category-item .text-content {
    flex: 1;
    overflow: auto; /* если текста много — появится скролл */
  }
  
  .category-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: inherit;
  }
  
  .category-item p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.3;
    color: inherit;
  }
  
  .category-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    user-select: none;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  @media (max-width: 600px) {
  body {
    font-size: 16px; /* чуть меньше шрифт для мобильных */
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 10px;
    background-position: center;
    background-size: cover;
  }

  .headerbutton {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
    justify-content: space-around;
  }

  .button {
    margin-left: 0;
    font-size: 18px;
  }

  .button a {
    font-size: 18px;
  }

  #pic1, #aboutUs, #aboutUs1 {
    height: auto; /* убрать фиксированную высоту */
    padding: 20px 10px;
  }

  .textpic1, .textAboutUs {
    position: static;
    transform: none;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 8px;
    max-width: 100%;
    margin: 0 auto 20px auto;
    text-align: center;
  }

  .titlediv h1, .titleAboutUs h1 {
    font-size: 32px;
  }

  .textpic1 p, .textAboutUs p {
    font-size: 18px;
    max-width: 100%;
    padding: 10px 5px;
  }

  #startWorking {
    flex-direction: column;
    padding: 15px 10px;
  }

  .leftImage, .infoBox {
    width: 100%;
    height: auto;
    margin: 0 0 15px 0;
  }

  .infoBox {
    padding: 20px 15px;
  }

  .infoBox h2 {
    font-size: 28px;
  }

  .infoBox p {
    font-size: 16px;
  }

  .callButton {
    width: 100%;
    font-size: 16px;
    padding: 12px 0;
  }

  .yslygi {
    margin: 20px 15px;
  }

  .yslygi h2 {
    font-size: 28px;
  }

  .services {
    flex-direction: column;
    padding: 10px 15px;
    gap: 20px;
  }

  .service-item, .service-item1 {
    width: 100%;
  }

  .service-item h3, .service-item1 h3 {
    font-size: 20px;
  }

  .service-item p, .service-item1 p {
    font-size: 16px;
  }

  .services-row {
    flex-direction: column;
    padding: 10px 15px;
  }

  .modal-content {
    width: 90%;
    max-height: 90vh;
    padding: 20px;
  }

  .styled-table {
    font-size: 13px;
    min-width: auto;
    width: 100%;
    max-width: 100%;
  }

  /* Категории */
  .categories {
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
  }

  .category-item {
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
  }

  .category-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
  }

  .category-item .text-content {
    overflow: visible;
  }

  #priceButton {
    width: 100%;
    font-size: 1rem;
    padding: 12px 0;
  }
}


@media (max-width: 600px) {
  /* Для .categories */
  .categories {
    flex-direction: column;       /* Переключаем на вертикальный стэк */
    gap: 15px;                    /* Уменьшаем расстояние между элементами */
    justify-content: center;      /* Центрируем по основной оси */
    align-items: center;          /* Центрируем по поперечной оси */
    padding: 0 10px;              /* Добавляем небольшой горизонтальный отступ */
  }

  .category-item {
    width: 100%;                  /* Занимает всю ширину контейнера */
    height: auto;                 /* Высота подстраивается под содержимое */
    flex-direction: column;       /* Картинка над текстом */
    align-items: center;          /* Центрируем содержимое */
    text-align: center;           /* Текст по центру */
    padding: 15px 10px;           /* Отступы внутри */
  }

  .category-item img {
    width: 80px;                  /* Немного увеличиваем размер для мобильных */
    height: 80px;
    margin-bottom: 10px;          /* Отступ под картинкой */
  }

  .category-item .text-content {
    overflow: visible;            /* Убираем скролл, если был */
  }

  /* Для .services-row */
  .services-row {
    flex-direction: column;       /* Вертикальный стэк вместо горизонтального */
    padding: 10px 15px;           /* Отступы по бокам */
    gap: 20px;                   /* Расстояние между элементами */
    align-items: center;          /* Центрируем элементы */
  }
}
