/* === Загальні стилі === */
body { 
    padding-top: 151px; /* Замість 71px */
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f8f4ee;
    color: #01406e;
    background-attachment: fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
}

h1, h2, h4 {
    font-weight: 700;
    margin-bottom: 20px;
}
h1, h2, h3, h4, h5, h6, p, a, .nav-link, .contact-link {
  color: #01406e;
}

/* --- Header --- */
/* Загальні стилі */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #fff;
  color: #0A3D62;
  border-bottom: 1px solid #eee;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
  z-index: 999;
  transition: all 0.3s ease-in-out;
}

/* === Базові стилі для десктопу === */
.site-logo {
  max-height: 90px;
  height: auto;
  width: auto;
  transition: max-height 0.3s ease;
}

.shrink-header .site-logo {
  max-height: 80px;
  height: auto;
  width: auto;
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  z-index: 1000;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.main-header.shrink-header {
  padding: 10px 0;
}

.contact-link {
  color: #0A3D62;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.96rem;
}

/* === Збільшення розміру меню === */
.main-nav .nav-link {
  background-color: #01406e;
  color: white !important;
  font-size: 1rem; 
  padding: 6px 14px; 
  border-radius: 20px; 
  margin: 0 4px;
  transition: background-color 0.3s ease;
  display: inline-block;
  white-space: nowrap;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  background-color: #022e4e;
}


/* === Адаптація під планшети та телефони === */
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-logo {
    max-width: 80px;
    height: auto;
  }

  .contact-link {
    font-size: 0.875rem;
  }

  .main-header .btn {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}

/* === Адаптація під дуже малі телефони === */
@media (max-width: 480px) {
  .site-logo {
    max-height: 60px;
  }

  .contact-link {
     font-size: 0.75rem;
  }

  .main-header .btn {
    font-size: 0.8rem;
    padding: 5px 10px;
  }

  .main-header .text-end {
    text-align: left !important;
  }
}


.expanded-header .site-logo {
  height: 90px;
}

/* Зменшений хедер */
.shrink-header {
  padding: 10px 0;
}

/* Контакти */
.contact-link {
  color: #0A3D62;
  font-weight: 500;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}

.contact-link:hover {
  text-decoration: underline;
}


/* === Бургер === */
.burger {
  font-size: 28px;
  background: none;
  border: none;
  color: #0A3D62;
  cursor: pointer;
  padding: 5px 10px;
  z-index: 1001;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  padding: 10px 20px;
  gap: 10px;
}

.mobile-nav a {
  color: #0A3D62;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.mobile-nav.open {
  display: flex;
}
.main-nav .nav-link {
  background-color: #01406e;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.main-nav .nav-link:hover {
  background-color: #ffe043;
  box-shadow: 0 0 5px rgba(0,0,0,0.15);
}


/* Приховуємо на великих екранах */
@media (min-width: 768px) {
  .burger {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

/* === Блок Про нас === */
.about-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}



/* === Картки (Що ми пропонуємо, Тарифи) === */
#tariffs-and-form h2,
#order h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}
#about-tariffs-and-form .col-md-6 > h2 {
  display: flex;
  justify-content: center;
  text-align: center;
}

/* === Центрування заголовка форми "Залишити заявку" === */
#about-tariffs-and-form .common-card > h2 {
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
}

#contact-form button[type="submit"] {
  padding: 12px 24px;       /* збільшені внутрішні відступи */
  font-size: 1.1rem;        /* трохи більший текст */
}

#about-tariffs-and-form .row {
  align-items: stretch; /* вирівнює висоту обох колонок */
}

#about-tariffs-and-form .col-md-6 {
  display: flex;
  flex-direction: column;
}


#services {
  background-color: #f8faff;
}

.service-card {
  background-color: #e6f0ff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 87, 183, 0.07);
  transition: transform 0.2s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-3px);
}

.service-card h5 {
  color: #01406e;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.service-card p {
  color: #333;
  font-size: 0.95rem;
  margin-bottom: 0;
}
/* === Центрування заголовків секцій === */
#tariffs-and-form h2,
#order h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}


/* === Умови надання послуг — без фону === */
#terms-section, .terms-block {
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

/* === Кнопки === */
.btn-warning {
    background-color: #ffd700;
    border: none;
    color: #003366;
    padding: 12px 24px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1.1rem;
    min-width: 150px;
    text-align: center;
}

.btn-warning:hover {
    background-color: #ffcc00;
    transform: scale(1.05);
}

/* === Секції === */


section {
    padding: 50px 20px;
    scroll-margin-top: 151px;
    background-color: transparent; /* або прибрати взагалі */
    backdrop-filter: none;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
}

/* === Форма === */
#order form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

#order input, #order textarea {
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 12px;
    width: 100%;
    margin-bottom: 15px;
    font-size: 1rem;
}

#order button {
    background-color: #0057b7;
    border: none;
    padding: 12px;
    border-radius: 5px;
    color: white;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1.1rem;
    width: 100%;
}

#order button:hover {
    background-color: #00449e;
    transform: scale(1.05);
}

/* === Повідомлення про успіх === */
#successMessage {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #0057b7;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 10000;
}

/* === Футер === */
footer {
  background-color: #01406e; /* темний синій з логотипу */
  color: white !important;           /* білий текст */
  text-align: center;
  padding: 1rem 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

footer p,
footer a {
  color: white !important;
}

/* === Адаптивність === */
@media (max-width: 768px) {
    header {
        padding: 40px 15px 60px 15px;
        flex-direction: column;
        align-items: center;
        min-height: 100px;
    }

    header h1 {
        font-size: 2rem;
        padding-top: 0;
    }

    header p {
        font-size: 1rem;
    }

    .card {
        padding: 15px !important;
    }

    #order form {
        padding: 20px;
    }

    #order input, #order textarea {
        font-size: 0.9rem;
        padding: 10px;
    }

    #order button {
        font-size: 0.9rem;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 30px 10px 50px 10px;
        min-height: 100px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    header p {
        font-size: 0.9rem;
    }

    .card {
        padding: 12px !important;
    }

    #order input, #order textarea {
        font-size: 0.8rem;
        padding: 8px;
    }

    #order button {
        font-size: 0.9rem;
        padding: 10px;
    }
}

.accordion-item {
  margin-bottom: 15px;
  border: 1px solid #dbeeff;
  border-radius: 5px;
  background: #83daed;
  overflow: hidden;
}

.accordion-header {
  padding: 15px 20px;
  background: #dbeeff;
  cursor: pointer;
  font-weight: 600;
  color: #0057b7;
  display: flex;
  align-items: center;
}

.accordion-header .icon {
  margin-right: 10px;
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.accordion-body {
  display: none;
  padding: 15px 20px;
  background: #ffffff;
  border-top: 1px solid#c6e0ff;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.5;
}


/* Контейнер секції тарифів */
#tariffs {
    background: #f7f9fc; /* легкий фон */
    padding: 50px 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Заголовок секції */
#tariffs h2 {
    color: #003e7e;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

/* Карта з тарифами */
#tariffs .card {
    background-color: #fff;
    border-left: 6px solid #0057b7;
    border-radius: 10px;
    padding: 30px 40px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Ефект при наведенні */
#tariffs .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Список тарифів - прибираємо дефолтні стилі */
#tariffs ul.list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Кожен тариф - картка в списку */
#tariffs ul.list-unstyled li {
    background: #e7f0ff;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 87, 183, 0.15);
    transition: background-color 0.3s ease;
    cursor: default;
}

/* Ховер на тарифі */
#tariffs ul.list-unstyled li:hover {
    background-color: #d0e3ff;
}

/* Назва тарифу */
#tariffs ul.list-unstyled li strong:first-child {
    display: block;
    font-size: 1.2rem;
    color: #003e7e;
    margin-bottom: 8px;
}

/* Ціна тарифу */
#tariffs ul.list-unstyled li strong:last-child {
    display: inline-block;
    margin-top: 10px;
    font-size: 1.4rem;
    color: #0057b7;
    font-weight: 700;
}

/* Додатковий опис тарифу */
#tariffs ul.list-unstyled li br + strong {
    font-weight: 600;
    font-size: 1rem;
    color: #004a9f;
}

/* Блок типів оплати */
#tariffs h5 {
    color: #0057b7;
    margin-top: 35px;
    font-weight: 600;
    font-size: 1.3rem;
}

/* Список типів оплати */
#tariffs ul:nth-of-type(2) {
    margin-top: 15px;
    padding-left: 20px;
}

/* Пункти типів оплати */
#tariffs ul:nth-of-type(2) li {
    margin-bottom: 8px;
    font-size: 1rem;
    color: #333;
}

/* Адаптивність */
@media (max-width: 768px) {
    #tariffs .card {
        padding: 20px;
    }
    #tariffs ul.list-unstyled li {
        padding: 15px 20px;
    }
}

#tariffs-and-form .card {
  background: #fffde6;
  padding: 20px;
  border-radius: 8px;
  border-left: 5px solid #0057b7;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

#tariffs-and-form h2 {
  color: #0057b7;
  font-weight: 600;
}

@media (max-width: 768px) {
  #tariffs-and-form .row {
    flex-direction: column;
  }

  #tariffs-and-form .col-md-6 {
    width: 100%;
  }

  #tariffs-and-form .card {
    margin-bottom: 20px;
  }
}
.tariff-card {
  background-color: #e6f0ff; /* світло-блакитний фон */
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 87, 183, 0.08);
  transition: transform 0.2s ease;
}

.tariff-card:hover {
  transform: translateY(-2px);
}

.tariff-card h5 {
  color: #01406e;
  margin-bottom: 8px;
}

.tariff-card p {
  margin: 0;
  color: #333;
}

.tariff-card .price {
  font-weight: 700;
  font-size: 1.2rem;
  color: #01406e;
  margin-top: 8px;
}

#tariffs-and-form {
  scroll-margin-top: 100px; /* підлаштуйте під висоту вашого закріпленого хедера */
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-box {
  background: #01406e;
  border-radius: 20px;
  display: flex;
  max-width: 800px;
  width: 90%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
  border: 3px solid black; 
  
}
/* Ліва частина з фото */
.popup-img-block {
  flex: 1;
  background-color: #01406e;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 3px solid black; /* чорна межа між частинами */
 border-top-right-radius: 20px;
border-bottom-right-radius: 20px;
  overflow: hidden;
}

/* Зображення */
.popup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;

}

.popup-content {
  flex: 1;
  padding: 2rem 1.5rem 1.5rem;
  background-color: #01406e;
  color: white;
  position: relative;
  padding-top: 3rem;
}
.popup-content h3,
.popup-content p,
.popup-content label {
    color: #fff !important;
}

.popup-content input,
.popup-content textarea {
    color: #000 !important;         /* чорний текст для полів */
    background-color: #fff !important;  /* білий фон, якщо потрібно */
}

.popup-close {
  position: absolute;
  top: 0px;
  right: 1px;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 2;
}

.popup-content h3 {
  font-size: 1.2rem;
  font-weight: bold;
}

.popup-content p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.popup-content input {
  margin-bottom: 0.5rem;
  border-radius: 20px;
  padding: 10px 15px;
  border: none;
}
.popup-content .form-control {
  color: #000;
  background-color: #fff;
}


/* Початковий стан попапа (невидимий) */
.popup-container {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none; /* Щоб не ловив кліки, коли невидимий */
}

/* Коли активний */
.popup-container.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.success-toast {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #01406e;
  color: white;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}

.success-toast.show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 576px) {
  .success-toast {
    font-size: 0.9rem;
    padding: 10px 20px;
    max-width: 90%;
    text-align: center;
  }
}

/* === Секція типів оплат === */
#payment-types-section {
  background: none;
  padding: 60px 20px;
}

#payment-types-section h2 {
  font-size: 2rem;
  font-weight: bold;
  color: black; 
  margin-bottom: 2rem;
}

.payment-types-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  text-align: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.payment-types-wrapper .payment-option {
  flex: 1 1 220px;
}

.payment-types-wrapper img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 1rem;

  transition: transform 0.3s ease; /* плавний перехід */
}

.payment-types-wrapper img:hover {
  transform: scale(1.1); /* збільшення на 10% */
  cursor: pointer; /* змінює курсор, щоб було зрозуміло що можна натиснути */
}

.payment-types-wrapper p {
  font-size: 1.1rem;
  font-weight: 500;
  color: #01406e;
}

/* Мобільна адаптація */
@media (max-width: 768px) {
  .payment-types-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .payment-types-wrapper .payment-option {
    width: 100%;
  }

  .payment-types-wrapper img {
    width: 100px;
    height: 100px;
  }
}

@media (min-width: 768px) {
  #about-tariffs-and-form .row {
    display: flex;
    flex-wrap: nowrap;
  }

  #about-tariffs-and-form .col-md-6 {
    width: 50%;
  }
}

input.is-invalid, textarea.is-invalid {
  border: 1px solid red;
  background-color: #ffe6e6;
}

.error-message {
  font-size: 0.875rem;
  color: red;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .main-header .nav-link.btn-order {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .main-header .nav-link.btn-order {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
}

@media (hover: none) {
  .payment-types-wrapper img:active {
    transform: scale(1.1);
  }
}

@media (max-width: 768px) {
  .popup-box {
    transform: scale(0.8); /* зменшення розміру на ~20% */
  }

  .popup-content {
    padding: 1.5rem 1rem;
  }

  .popup-content h3 {
    font-size: 1rem;
  }

  .popup-content p {
    font-size: 0.85rem;
  }

  .popup-content input,
  .popup-content textarea {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  .popup-content button {
    font-size: 0.95rem;
    padding: 10px 16px;
  }

  .popup-img-block {
    display: none; /* приховати фото на дуже малих екранах, за бажанням */
  }
}

@media (max-width: 768px) {
  .gap-3 {
    gap: 10px !important;
  }

  .main-header .btn {
    padding: 6px 10px;
    font-size: 0.85rem;
    min-width: unset;
  }

  .contact-link {
    font-size: 0.75rem;
  }
}

.site-logo {
  transition: max-height 0.3s ease;
}

.shrink-header .site-logo {
  max-height: 60px;
}

