/* Сховати атрибуцію OpenStreetMap */
    .ol-attribution {
      display: none !important;
    }
    
    /* Відключаємо прокрутку головної сторінки */
    html, body {
      margin: 0;
      padding: 0;
      height: 100%;
      overflow: hidden;
      font-family: 'Montserrat', sans-serif;
      background: linear-gradient(135deg, #ffffff, #d0e8ff);
      color: #002050;
      transition: background 0.5s, color 0.5s;
    }

    /* Логотип на головній сторінці */
    #mainLogo {
      position: fixed;
      top: 5px;
      right: 10px;
      z-index: 10000;
    }
    #mainLogo img {
      width: 40px;
      height: auto;
      border-radius: 50%;
      object-fit: cover;
      background: transparent;
    }
    
    /* Іконки месенджерів у лівому куті */
    #socialIcons {
      position: fixed;
      top: 10px;
      left: 15px;
      z-index: 10000;
      display: flex;
      gap: 10px;
    }
    #socialIcons img {
      width: 30px;
      height: auto;
      filter: invert(38%) sepia(100%) saturate(5000%) hue-rotate(180deg) brightness(85%) contrast(105%);
    }
    
    /* Блок з номерами телефонів */
    #phoneNumbers {
      position: fixed;
      top: 10px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 10000;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    #phoneNumbers a {
      margin: 2px 0;
      text-decoration: none;
      color: #002050;
      font-weight: bold;
      font-size: 0.8rem;
    }
    
    /* Екран завантаження */
    .loader {
      position: fixed;
      top: 0; left: 0;
      width: 100vw;
      height: 100vh;
      background: linear-gradient(135deg, #f0f9ff, #d0e8ff);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 99999;
      text-align: center;
    }
    .loader-logo-wrap {
      position: relative;
      width: 200px;
      height: 200px;
    }
    .loader-logo-wrap::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: 100%;
      height: 100%;
      transform: translate(-50%, -50%);
      border: 2px solid rgba(0, 96, 160, 0.2);
      border-top: 2px solid #0060a0;
      border-radius: 50%;
      animation: ringSpin 2s linear infinite;
    }
    @keyframes ringSpin {
      0%   { transform: translate(-50%, -50%) rotate(0deg); }
      100% { transform: translate(-50%, -50%) rotate(360deg); }
    }
    .loader-logo-wrap img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 50%;
      z-index: 1;
      box-shadow: 0 0 20px #80d0ff;
    }
    /* Текст під завантажувачем – трохи опущений і світліший */
    .loader p {
      margin-top: 20px;
      font-weight: 700;
      color: #4F6D8F;
    }
    
    /* Основний контейнер – спочатку прихований, щоб не було видно головного меню до завантаження */
    .container {
      display: none;
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      min-height: 100vh;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      padding: 120px 20px 20px 20px;
      box-sizing: border-box;
      text-align: center;
    }
    .animate {
      animation: fadeInUp 0.8s ease forwards;
    }
    @keyframes fadeInUp {
      from { transform: translateY(20px); opacity: 0; }
      to   { transform: translateY(0);     opacity: 1; }
    }
    
    /* Заголовок та опис */
    #title {
      font-size: 2rem;
      margin-bottom: 10px;
      font-weight: 700;
    }
    #mainImage {
      display: block;
      margin: 20px auto;
      max-width: 250px;
      width: 100%;
      height: auto;
    }
    /* Змінено: "вигребних" → "вигрібних" */
    #description {
      font-size: 1rem;
      line-height: 1.4;
      max-width: 700px;
      margin: 0 10px;
    }
    #boldLine {
      font-weight: 700;
      font-size: 1rem;
      margin: 10px 20px 0 20px;
    }
    
    /* Кнопки головного меню */
    .buttons {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 15px;
      margin-top: 20px;
      width: 100%;
      max-width: 300px;
    }
    .btn {
      width: 100%;
      padding: 12px 20px;
      font-weight: 700;
      font-size: 1.1rem;
      text-decoration: none;
      text-align: center;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      color: #fff;
      background: #0060a0;
      cursor: pointer;
      border-radius: 5px;
      border: none;
      display: inline-flex; 
      align-items: center; 
      justify-content: center;
    }
    .btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 0 5px #0060a0, 0 0 10px #0060a0;
    }
    .btn:active {
      transform: scale(0.95);
      box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    }
    #btnOrder {
      box-shadow: 0 0 5px 1px #90EE90;
    }
    
    #servicesSlider .btn { margin-top:auto;padding:0 10px;max-height: 40px; margin-bottom:15px;font-size: 1rem; }
    #servicesSliderContainer { padding-bottom:0; }

    /* Стилізація модальних вікон */
    .modal-overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100vw; 
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 99998;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.5s ease;
      background: rgba(0, 0, 0, 0.7);
    }
    .modal-overlay.active {
      opacity: 1;
      pointer-events: auto;
    }
    .modal {
      position: relative;
      padding: 20px;
      border-radius: 8px;
      max-width: 300px;
      min-height: 400px;
      width: 90%;
      transform: translateY(-20px);
      opacity: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
      text-align: left;
      transition: transform 0.5s ease, opacity 0.5s ease;
      background: linear-gradient(135deg, #ffffff, #d0e8ff);
      color: #002050;
      border: 2px solid #0060a0;
      box-shadow: 0 0 5px #0060a0, 0 0 10px #0060a0;
      max-height: 80vh;
      overflow-y: auto;
    }
    .modal.active {
      transform: translateY(0);
      opacity: 1;
    }
    .modal .modal-close {
      position: absolute;
      top: 10px;
      right: 10px;
      cursor: pointer;
      font-size: 2rem;
      line-height: 1;
      color: #002050;
    }
    
    /* Про нас */
    #modalAbout {
      max-width: 320px;
      text-align: center;
    }
    
    /* Слайдер (Послуги) */
    .slider-container {
      position: relative;
      overflow: hidden;
      width: 100%;
      margin-top: 10px;
      min-height: 300px;
      padding-bottom: 40px;
    }
    .slider {
      display: flex;
      transition: transform 0.3s ease;
      height: 100%;
    }
    .service-card {
      flex: 0 0 100%;
      margin: 0;
      border-radius: 6px;
      padding: 15px;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      min-height: 550px;
      margin-top: 30px;
    }
    .service-card h3 {
      margin: 0 0 10px 0;
      font-weight: 700;
    }
    .service-card img {
      max-width: 100%;
      height: auto;
      margin: 10px 0;
      border-radius: 4px;
    }
    .service-card p {
      font-size: 0.95rem;
      margin: 2px 5px;
      text-align: justify;
      line-height: 1.2;
    }
    
    /* Кнопки "Оберіть послугу" (Крок 1) */
    #orderServicesButtons {
      padding-left: 10px;
    }
    #orderServicesButtons .btn {
      display: inline-flex;
      align-items: center;
      justify-content: flex-start;
      width: 100%;
      min-height: 60px;
      margin-bottom: 10px;
      white-space: nowrap;
    }
    
    /* Кнопки вибору областей (Крок 2) */
    #regionButtons {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      width: 100%;
      max-width: 320px;
      margin: 0 auto;
    }
    #regionButtons .btn {
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 0.85rem;
      text-align: center;
      white-space: nowrap;
      min-height: 35px;
      padding: 6px 8px;
    }
    
    /* Додаткові стилі для Кроку 1.5 */
    #orderStep1_5_tubes, #orderStep1_5_capacity {
      display: none; 
      text-align: center; 
      width: 100%;
      box-sizing: border-box;
      margin-top: 50px;
    }
    
    /* Збільшені стилі для range-інпутів */
    input[type="range"].big {
      -webkit-appearance: none;
      appearance: none;
      width: 80%;
      margin: 0 auto;
      height: 12px;
      border-radius: 4px;
      background: #ccc;
      outline: none;
      cursor: pointer;
    }
    input[type="range"].big:focus {
      outline: none;
    }
    input[type="range"].big::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 24px; 
      height: 24px; 
      border-radius: 50%;
      background: #0060a0;
      border: none;
      cursor: pointer;
      box-shadow: none;
    }
    input[type="range"].big::-moz-range-thumb {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: #0060a0;
      border: none;
      cursor: pointer;
    }

    /* Стилі для блоку з картою */
    #olMap {
      width: 100%;
      height: 300px;
      border-radius: 8px;
      margin-top: 10px;
    }

    /* Збільшений input для адреси з зеленою рамкою */
    #addressInput {
      width: 90%;
      padding: 10px;
      font-size: 1.1rem;
      border: 1px solid green;
    }

    /* Окно для вводу імені та номера телефону – збільшені поля з зеленим тонким контуром */
    .modal-user-data input {
      width: 90%;
      padding: 10px;
      font-size: 1.1rem;
      border: 1px solid green;
      margin: 10px auto;
      text-align: center;
      display: block;
    }
    
    /* Окно для вводу імені та номера телефону (піднято трохи вище) */
    .modal-overlay#modalOverlayUserData {
      /* Піднімаємо вікно модального вводу */
      align-items: flex-start;
      padding-top: 50px;
    }
    .modal-user-data {
      position: relative;
      padding: 20px;
      border-radius: 8px;
      max-width: 300px;
      width: 90%;
      min-height: 400px;
      transform: translateY(-20px);
      opacity: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
      text-align: left;
      transition: transform 0.5s ease, opacity 0.5s ease;
      background: linear-gradient(135deg, #ffffff, #d0e8ff);
      color: #002050;
      border: 2px solid #0060a0;
      box-shadow: 0 0 5px #0060a0, 0 0 10px #0060a0;
      max-height: 80vh;
      overflow-y: auto;
    }
    .modal-user-data.active {
      transform: translateY(0);
      opacity: 1;
    }
    
    /* Нове модальне вікно для "Мої замовлення" */
    #modalMyOrders {
      max-width: 320px;
      text-align: center;
    }
    
    /* Медіа-запити для адаптивності */
    @media (max-width: 600px) {
      #title { font-size: 1.5rem; }
      #description { font-size: 0.9rem; }
      .btn { font-size: 1rem; padding: 10px; }
      .container { padding: 120px 10px 10px 10px; }
      #orderStep1 {
        align-items: center;
        text-align: center;
      }
      #orderServicesButtons .btn span {
        flex: unset;
        text-align: center !important;
        margin: 0 auto;
      }
    }