:root {
    --primary-color: #0004ff; /* Темно-синій */
    --accent-color: #FF9900; /* Помаранчевий */
    --text-dark: #333333;
    --text-light: #f4f4f4;
    --background-dark: #0004ff; /* Дуже темно-синій для контрасту */
    --glass-background: rgba(255, 255, 255, 0.08); /* Напівпрозорий білий */
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--text-light); /* Світлий фон для більшості секцій */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 0.8em;
    font-weight: 700;
}

.section {
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #666;
    margin-bottom: 50px;
}

.text-center {
    text-align: center;
}

/* СТИЛЬ AIR GLASS для секцій */
.glass-section {
    background: var(--glass-background);
    backdrop-filter: blur(10px); /* Ефект розмитого скла */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: all 0.3s ease-in-out;
}

/* --- HEADER AND NAVIGATION (Modern Glass Look) --- */

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(14px);
    background: rgba(20, 20, 20, 0.6); /* темний прозорий фон */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

#header.scrolled {
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(18px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    height: 42px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* --- NAVIGATION --- */

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 35px;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.4px;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav ul li a:hover {
    color: var(--accent-color);
}

nav ul li a:hover::after {
    width: 100%;
}

/* --- PRIMARY BUTTON --- */

.btn-primary-small {
    background: linear-gradient(135deg, var(--accent-color), #ff9f43);
    color: #fff;
    padding: 10px 18px !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 159, 67, 0.3);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .header-content {
        padding: 14px 25px;
    }

    nav ul {
        gap: 20px;
    }
}
/* --- DROP DOWN MENU STYLES --- */

.dropdown-content {
    display: none;
    position: absolute;
    left: 50%; 
    transform: translateX(-50%);
    min-width: 600px; 
    top: 100%; 
    z-index: 101;
    padding: 20px;
    margin-top: 5px;
    
    /* СТИЛЬ AIR GLASS для Dropdown */
    background: rgba(0, 0, 0, 0.7); 
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dropdown:hover .dropdown-content {
    display: flex;
}

.dropdown-group {
    padding: 0 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
}

.dropdown-group:last-child {
    border-right: none;
}

.dropdown-group h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.dropdown-group a {
    display: block;
    color: var(--text-light);
    padding: 5px 0;
    font-size: 0.95em;
    font-weight: 300;
    transition: color 0.2s, padding-left 0.2s;
}

.dropdown-group a:hover {
    color: white;
    padding-left: 5px;
    background-color: transparent; 
}


.lang-switcher {
    margin-left: auto; /* Відсовує перемикач мови до краю */
    margin-right: 20px;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--text-light);
    padding: 5px 8px;
    margin: 0 2px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background-color 0.3s, border-color 0.3s;
}

.lang-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.burger-menu-btn {
    display: none; /* Приховано на десктопі */
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2em;
    cursor: pointer;
    z-index: 200;
    padding: 0;
}

/* Адаптація для мобільних */
@media (max-width: 768px) {
    .burger-menu-btn {
        display: block; /* Показано на мобільних */
    }
    
    /* Приховуємо десктопну навігацію за замовчуванням */
    #navMenu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--background-dark);
        z-index: 150;
        padding-top: 80px;
        overflow-y: auto;
    }
    
    #navMenu.active {
        display: block;
    }
    
    #navMenu ul {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    #navMenu ul li {
        margin: 15px 0;
    }

    /* Приховуємо Dropdown на мобільних, щоб він не конфліктував */
    .dropdown-content {
        display: none !important; 
    }
    .dropdown > a {
        font-weight: 700 !important;
    }
}


/* Общий стиль секции */
.dark-section-custom {
position: relative; /* для абсолютного позиціонування */
  background-color: #1500ff; /* насыщенный синий фон */
  color: rgb(255, 255, 0);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px;
}

/* Контейнер с текстом и картой */
.content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  gap: 0px;
}

/* Левая колонка */
.text-block {
  flex: 1;
}

.text-block h2 {
  font-size: 4rem;
  margin-bottom: 20px;
  color: white;
  line-height: 1.2;
}

/* ✅ Контейнер печати фиксированной высоты */
.typing-container {
  display: inline-flex;
  align-items: center;
  font-size: 4rem;
  font-weight: 600;
  height: 5rem;              /* фиксируем высоту, чтобы ничего не прыгало */
  line-height: 3rem;         /* выравниваем текст по центру */
  min-width: 10ch;           /* резервируем ширину под самые короткие слова */
  position: relative;
}

/* Текст */
#typing {
  display: inline-block;
  white-space: nowrap;
  vertical-align: middle;
}

/* Курсор */
.cursor {
  display: inline-block;
  width: 3px;
  height: 4rem;
  background-color: rgb(255, 255, 0);
  margin-left: 4px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* Правая колонка — изображение */
.image-block {
  position: absolute;
  top: 0;
  right: 0;
  height: 100vh;
  width: 50%; /* або бажаний відсоток ширини */
  overflow: hidden;
}

.image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center left; /* центрування картинки */
}

/* Адаптивность */
@media (max-width: 900px) {
  .content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .image-block {
    margin-top: 30px;
  }

  .text-block h2 {
    font-size: 1.8rem;
  }

  .typing-container {
    font-size: 2rem;
  }
}
.typing-btn-wrapper {
  margin-top: 30px;
  display: flex;
  flex-direction: column; /* вертикально */
  gap: 40px;
  align-items: flex-start; /* або center */
  width: max-content;       /* ширина обмежена по найбільшій кнопці */
}

.btn-calc,
.secondary-btn {
  padding: 15px 30px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-flex;
  justify-content: center;

  width: 100%; /* займає всю ширину контейнера */
  box-sizing: border-box;
}

/* Основна кнопка */
.btn-calc {
  background: #ffcc00;
  color: #1500ff;
  border: none;
}

/* Вторинна кнопка */
.secondary-btn {
  background: transparent;
  border: 2px solid #ffcc00;
  color: #ffcc00;
}

/* Hover */
.btn-calc:hover,
.secondary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}


/* --- HERO SECTION STYLES --- */

.hero-section {
    background-image: url('hero.webp'); 
    background-size: cover;
    background-position: center;
    height: 100vh; 
    display: flex;
    align-items: center;
    position: relative;
    color: var(--text-light);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.55); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 50px; 
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 0.4em;
    color: white; 
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 1.5em;
    font-weight: 300;
}

/* Стиль кнопки CTA */
.btn-primary {
    background-color: var(--accent-color);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #cc7a00; 
}

/* --- HERO STATS STYLES (New) --- */

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 40px;
}

.hero-main-content {
    max-width: 600px; /* Обмежимо ширину тексту */
}

.hero-stats {
    /* Використовуємо glass-card, щоб вони були напівпрозорими */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: fit-content;
    padding: 25px; 
}

.hero-stats .stat-item {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 15px;
}

.hero-stats .stat-item:nth-child(2n) {
    border-right: none; /* Прибираємо вертикальний роздільник в кінці рядка */
}

.stat-number {
    font-size: 2em;
    font-weight: 700;
    color: var(--accent-color); /* Помаранчевий для акценту */
    line-height: 1.2;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 0.9em;
    color: var(--text-light); /* Білий текст на темному склі */
}

/* Адаптація для мобільних пристроїв */
@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: 1fr; /* Всі цифри в один стовпчик */
        width: 100%;
    }
    .hero-stats .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 10px;
    }
    .hero-stats .stat-item:last-child {
        border-bottom: none;
    }
}
/* --- Адаптація для мобільних пристроїв --- */
@media (max-width: 900px) {
  /* Контейнер з текстом і картою стає колонкою */
  .content-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 20px;
  }

  /* Левая колонка — зменшення розміру заголовка */
  .text-block h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.3;
  }

  /* Контейнер печаті */
  .typing-container {
    font-size: 1.5rem;
    height: auto;
    line-height: 1.4;
    min-width: auto;
  }

  /* Кнопки */
  .typing-btn-wrapper {
    align-items: center;
    gap: 20px;
    width: 100%;
  }

  .btn-calc,
  .secondary-btn {
    width: 100%;
    font-size: 0.9rem;
    padding: 12px 25px;
  }

  /* Правая колонка — картинка під текстом */
  .image-block {
    position: relative;
    width: 100%;
    height: 250px; /* фіксована висота на мобільних */
    top: auto;
    right: auto;
  }

  .image-block img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    border-radius: 20px; /* робимо зображення кругліше */

  }
}

/* Ще більш маленькі екрани — телефони */
@media (max-width: 480px) {
  .text-block h2 {
    font-size: 1.5rem;
  }

  .typing-container {
    font-size: 1.2rem;
  }

  .btn-calc,
  .secondary-btn {
    font-size: 0.85rem;
    padding: 10px 20px;
  }

  .hero-content {
    margin: 20px;
  }

  .hero-main-content {
    max-width: 100%;
  }

  .hero-stats {
    gap: 15px;
    padding: 15px;
  }

  .stat-number {
    font-size: 1.5em;
  }

  .stat-text {
    font-size: 0.8em;
  }
}


/* --- SERVICES SECTION (Modern Glass 2025) --- */

.container-services {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.container-services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  background: radial-gradient(
    circle at top,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  filter: blur(60px);
  z-index: -1;
}

.container-services h2 {
  font-size: 2.4rem;
  color: #0004ff;
  margin-bottom: 60px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* simple entry animation */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 40px 0;
}

.glass-card {
  position: relative;
  background: #0004ff; /* Напівпрозорий синій фон для ефекту "скла" */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0));
  pointer-events: none;
  border-radius: inherit;
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.glass-card i {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--accent-color);
  transition: transform 0.4s ease, color 0.3s ease;
}

.glass-card:hover i {
  transform: rotate(5deg) scale(1.1);
  color: var(--primary-color);
}

.glass-card h3 {
  font-size: 1.6rem;
  color: var(--text-light);
  margin-bottom: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.glass-card p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  min-height: 90px;
}

.read-more {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
  display: inline-block;
}

.read-more:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}
/* --- CALCULATOR SECTION STYLES --- */

.dark-section {
    background-color: #0004ff; 
    color: var(--text-light);
    padding: 100px 0;
}

.dark-section h2 {
    color: white; 
    text-align: center;
}

.light-text {
    color: rgba(255, 255, 255, 0.7);
}

.calculator-form-container {
    max-width: 600px;
    margin: 40px auto 0;
    color: white; 
}

.calculator-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.btn-full-width {
    grid-column: 1 / 3; 
    margin-top: 10px;
}

.calculator-form label {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.95em;
    color: var(--text-light); 
}

.calculator-form input[type="text"],
.calculator-form input[type="tel"],
.calculator-form select {
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.4); 
    background-color: rgba(255, 255, 255, 0.15); 
    color: var(--text-light);
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.calculator-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.calculator-form input:focus,
.calculator-form select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.3);
}

.calculator-form select option {
    background: var(--background-dark); 
    color: var(--text-light);
}

/* --- ADVANTAGES SECTION STYLES --- */

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.advantage-item {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    transition: background-color 0.3s, border-color 0.3s;
}

.advantage-item:hover {
    background-color: #f8f8f8;
    border-color: var(--accent-color);
}

.advantage-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.advantage-number {
    font-size: 2.5em;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.advantage-text {
    color: #666;
    font-size: 1.1em;
}

/* --- CONTACT SECTION STYLES --- */

.contacts {
    padding: 100px 20px;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    color: #222;
}

.contacts-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contacts-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: start;
}

.contacts-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contacts-info li {
    margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
    max-height: 100px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
    outline: none;
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
    background: var(--accent-color-dark, #0056b3);
    transform: translateY(-2px);
}

/* --- Footer Styles --- */
footer {
    background-color: #1500ff;
    color: #fff;
    padding: 40px 20px 20px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-info,
.footer-contact,
.footer-menu {
    flex: 1;
    min-width: 200px;
}

/* Лого */
.logo-footer {
    max-width: 180px;
    margin-bottom: 15px;
}

/* Меню футера */
.footer-menu ul {
    display: flex;             /* горизонтально */
    justify-content: center;   /* по центру */
    flex-wrap: wrap;           /* перенос рядків при потребі */
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.footer-menu ul li {
    margin: 0 15px;           /* відстань між пунктами */
}

.footer-menu ul li a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-menu ul li a:hover {
    color: #ffffff;
}

/* Footer bottom */
.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
    font-size: 0.9rem;
}

/* --- Адаптація для мобільних --- */
@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-menu ul li {
        margin: 5px 10px; /* компактніше на мобільних */
    }
}
/* ========================================================================= */
/* --- АДАПТИВНІСТЬ (RESPONSIVENESS) --- */
/* ========================================================================= */

@media (max-width: 1050px) {
    /* Адаптація Dropdown */
    .dropdown-content {
        min-width: 100%;
        left: 0;
        transform: none;
        flex-direction: column;
        text-align: center;
        margin-top: 0;
    }
    .dropdown-group {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    .dropdown-group:last-child {
        border-bottom: none;
    }
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-map {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em;
    }

    .calculator-form {
        grid-template-columns: 1fr; 
    }
    .btn-full-width {
        grid-column: 1 / 2; 
    }
    
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
    .footer-info, .footer-links, .footer-contact {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    /* Приховуємо повну навігацію для мобільного (потрібен JS для гамбургера) */
    nav ul {
        display: none; 
    }
    .header-content {
        justify-content: center; /* Центруємо лише логотип */
    }
}

/* --- CTA AND FACTS SECTION STYLES --- */

.dark-section {
    background-color: var(--background-dark); 
    color: var(--text-light);
}

.dark-section h2 {
    color: white; 
    text-align: center;
}

.light-text {
    color: rgba(255, 255, 255, 0.7);
}

.cta-section {
    padding: 80px 0;
}

/* --- КАТЕГОРІЇ ВАНТАЖА (ОНОВЛЕНО) --- */

/* Використовуємо dark-section для фону, щоб скло виділялося */
#cargo-categories {
    background-color: #0004ff; 
    color: var(--text-light);
}

/* Контейнер для зображення та сітки характеристик */
.cargo-grid {
    display: grid;
    grid-template-columns: 1.2fr 2fr; 
    gap: 40px;
    align-items: center; 
    margin-top: 50px;
}

.daf-truck-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); 
    filter: brightness(0.9);
}

.cargo-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    margin-top: 0; 
}

/* СТИЛЬ AIR GLASS для карток категорій */
.dark-glass {
    /* Робимо скло світлішим і прозорішим для більш "повітряного" ефекту */
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(12px); /* Посилюємо розмиття */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Чіткіша біла рамка */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
    text-align: left;
    padding: 25px;
    border-radius: 15px; /* Залишаємо округлення */
}

.category-card:hover {
    transform: scale(1.03); /* Змінюємо ефект наведення на збільшення */
    box-shadow: 0 15px 30px rgba(255, 153, 0, 0.2); /* Тінь акцентним кольором */
    border-color: var(--accent-color);
}

.category-title {
    font-size: 3em; /* Трохи збільшуємо, щоб привернути увагу */
    font-weight: 800;
    color: **white**; /* Робимо вагу білим, щоб вона була чіткішою */
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Легка тінь для читабельності */
    line-height: 1;
    margin-bottom: 5px;
}

.category-subtitle {
    font-size: 1.1em;
    font-weight: 300;
    color: var(--accent-color); /* Використовуємо акцентний колір тут */
    margin-bottom: 20px;
}

.specs-list {
    list-style: none;
    padding-left: 0;
    font-size: 0.95em;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9); /* Чіткий білий текст */
}

.specs-list li::before {
    content: "•"; 
    color: var(--accent-color);
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}


/* --- Адаптивність (оновлення) --- */

@media (max-width: 992px) {
    .cargo-grid {
        grid-template-columns: 1fr; 
    }
    .cargo-image-col {
        order: 1; 
        margin-bottom: 30px;
        text-align: center;
    }
    .cargo-categories-grid {
        order: 2;
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 576px) {
    .cargo-categories-grid {
        grid-template-columns: 1fr; 
    }
}

/* --- INSURANCE SECTION STYLES --- */

#insurance {
    background-color: var(--text-light); /* Секція на світлому тлі */
}

.insurance-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Контент займає більше місця, ніж картинка */
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.insurance-title {
    color: var(--primary-color);
    margin-bottom: 25px;
}

.insurance-features {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.feature-item {
    flex: 1;
    min-width: 220px;
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-item .icon {
    width: 60px; /* ширина іконки */
    height: 60px; /* висота іконки */
    margin: 0 auto 15px;
}

.feature-item .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.feature-item p {
    font-size: 1rem;
    color: var(--text-light);
}
.insurance-extra-info {
    margin-top: 30px;
    font-size: 0.9em;
    color: #666;
    padding-top: 20px;
    border-top: 1px dashed rgba(0, 51, 102, 0.2);
}

.vers-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    /* Використовуємо glass-card для ефекту Air Glass на зображенні */
    padding: 10px; 
}

/* --- Адаптивність для секції страхування --- */
@media (max-width: 900px) {
    .insurance-grid {
        grid-template-columns: 1fr;
    }
    .insurance-image-col {
        order: -1; /* Зображення переходить нагору на мобільних */
        margin-bottom: 30px;
    }
}

/* --- PLATFORM SECTION STYLES --- */

/* Використовуємо вже існуючий світло-сірий фон для контрасту */
#platform {
    background-color: #e6e6e6; 
}

#platform h2, #platform p {
    color: var(--primary-color);
}

.platform-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.platform-feature {
    /* Використовуємо glass-card для Air Glass ефекту */
    padding: 30px;
    text-align: center;
}

.platform-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.platform-feature h4 {
    color: var(--primary-color);
    font-size: 1.2em;
    margin-bottom: 10px;
}

.platform-feature p {
    color: var(--text-dark);
    font-size: 0.95em;
}

/* Адаптивність */
@media (max-width: 900px) {
    .platform-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
@media (max-width: 576px) {
    .platform-features-grid {
        grid-template-columns: 1fr;
    }
}

/* --- WORKFLOW SECTION STYLES (РОЗДІЛЕНИЙ ДИЗАЙН) --- */

#workflow {
    padding: 0; /* Прибираємо внутрішній відступ, оскільки він буде у внутрішніх блоках */
    background-color: white; /* Забезпечуємо білий фон для всієї секції */
}

.workflow-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Дві колонки, ліва більша */
    min-height: 700px; /* Мінімальна висота для демонстрації фону */
    padding: 0;
    max-width: none; /* Дозволяємо сітці розтягнутися на всю ширину */
    margin: 0;
}

/* Ліва частина: Білий фон + відступи */
.workflow-steps {
    background-color: white;
    padding: 80px 40px 80px 100px; /* Збільшуємо відступи */
    color: var(--text-dark);
}

.workflow-steps h2 {
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 2em;
}

/* Права частина: Кутовий фон та зображення */
.workflow-visual {
    position: relative;
    overflow: hidden;
    background: var(--accent-color); /* Основний жовтий колір */
    
    /* Створення кутового градієнта 75 градусів */
    background: linear-gradient(75deg, white 0%, white 35%, var(--accent-color) 35%, var(--accent-color) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.go-truck-image {
    width: 90%;
    height: auto;
    max-width: 400px;
    position: relative;
    z-index: 2;
}

/* Стилі для списку кроків */
.step-list {
    list-style: none;
    padding-left: 0;
    counter-reset: workflow-counter; /* Ініціалізація лічильника */
}

.workflow-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    position: relative;
    padding-left: 50px;
}

/* Стилізація круглої іконки кроку */
.step-icon {
    counter-increment: workflow-counter;
    content: counter(workflow-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1em;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.workflow-item h4 {
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.workflow-item p {
    font-size: 0.95em;
    color: #555;
}

/* --- Адаптивність для секції процесу --- */
@media (max-width: 992px) {
    .workflow-grid {
        grid-template-columns: 1fr; /* На мобільних: один стовпчик */
        min-height: auto;
    }
    
    .workflow-visual {
        /* Прибираємо кутовий фон на мобільних, щоб він не виглядав дивно */
        background: var(--accent-color); 
        padding: 60px 20px;
    }
    
    .workflow-steps {
        padding: 40px 20px;
    }
}

/* --- INTERNATIONAL SECTION STYLES --- */

#international {
    background-color: var(--background-dark); 
}

.international-grid {
    display: grid;
    /* 3 колонки на великих екранах */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px;
    margin-top: 50px;
}

.country-card {
    text-align: center;
    padding: 30px 20px;
}

.flag-icon {
    font-size: 3.5em; /* Великий розмір для прапорів */
    display: block;
    margin-bottom: 10px;
}

.country-card h4 {
    color: white; 
    font-size: 1.3em;
    margin-bottom: 8px;
}

.country-card p {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.country-card p strong {
    color: var(--accent-color); /* Виділяємо час пошуку */
    font-weight: 700;
}

/* Адаптивність */
@media (max-width: 992px) {
    .international-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
@media (max-width: 576px) {
    .international-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== Модальне вікно (glass) ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* затемнений фон */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal.flex { display: flex; }
.modal.hidden { display: none; }

.modal-content {
  background: rgba(255, 255, 255, 0.15); /* прозорий фон */
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25); /* легка рамка */
  padding: 30px;
  max-width: 900px;
  width: 95%;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  color: #fff;
}

.modal-grid input,
.modal-grid select {
  width: 90%;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.modal-grid input::placeholder,
.modal-grid select::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.modal-grid input:focus,
.modal-grid select:focus {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px #ff9800;
}

/* Style for select dropdown */
.modal-grid select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.5em;
}

/* Ensure consistent styling for weight input */
#weight {
  margin-bottom: 0.5rem;
}

/* Adjust the weight value display */
#weightValue {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-left: 0.5rem;
}


.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(255,255,255,0.2);
  border: none;
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  padding: 4px 8px;
  color: #fff;
  transition: background 0.3s ease;
}
.modal-close:hover {
  background: rgba(255,255,255,0.35);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  color: #fff;
}
.price-table th,
.price-table td {
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px;
  text-align: left;
}
.price-table th {
  background: rgba(255,255,255,0.15);
  font-weight: 600;
}

.note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  margin-top: 5px;
}

.result {
  margin-top: auto; /* Прижимаем к низу */
  padding: 10px;
  border-radius: 8px;
}
/* --- DYNAMIC COUNTRIES SECTION STYLES --- */

#typing-countries {
    /* Використовуємо насичений синій колір для фону */
    background-color: #0004ff; 
    padding: 0px 0;
}

.dynamic-country-list {
    min-height: 80px; 
    /* Додаємо фінальний стиль для коректної роботи overflow */
    display: flex;
    justify-content: center;
    align-items: center;
}

#country-output {
    font-size: 3em; 
    font-weight: 800;
    color: var(--accent-color); 
    display: inline-block;
    padding-right: 5px; 
    
    /* Важливі властивості для ефекту друку: */
    border-right: 4px solid white; 
    animation: blink-caret 0.75s step-end infinite;
    white-space: nowrap;
    overflow: hidden; /* ✅ Зберігаємо overflow: hidden */
    max-width: 100%; /* ✅ Додаємо max-width для адаптивності контейнера */
}

/* Анімація курсору */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: white; }
}

/* Адаптація шрифту для мобільних */
@media (max-width: 768px) {
    #country-output {
        font-size: 2em;
        min-height: 40px;
    }
}

   /* --- About Section Modern Style --- */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

/* Ліва колонка з двома картками зверху і знизу */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Права колонка - одна картка вдвічі вища */
.right-column {
  display: flex;
  flex-direction: column;
}

/* Загальний стиль карток */
.details-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: 'Inter', sans-serif;
}

/* Hover ефект карток */
.details-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Висота правої колонки */
.right-column .activity-card {
  flex: 2; /* вдвічі більша за одну картку лівої колонки */
}

/* Ліва колонка: верхня і нижня картки по однаковій висоті */
.left-column .details-card {
  flex: 1;
}

/* Адаптив для мобільних */
@media(max-width: 992px){
  .details-grid {
    grid-template-columns: 1fr;
  }
  .right-column .activity-card {
    flex: none;
  }
  .left-column .details-card {
    flex: none;
  }
}

/* Заголовки карток */
.details-card h4 {
  font-size: 1.2rem;
  color: #1500ff;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Параграфи карток */
.details-card p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

/* Списки документів */
.details-card ul {
  list-style-type: disc;
  padding-left: 20px;
  color: #333;
}
.details-card ul li a {
  color: #1500ff; 
  text-decoration: none;
  transition: color 0.3s ease;
}
.details-card ul li a:hover {
  color: #ffcc00;
}

/* Кнопка "Скопіювати реквізити" */
.buttons-row button {
  padding: 12px 25px;
  margin-top: 20px;
  border: none;
  border-radius: 12px;
  background: #ffcc00;
  color: #1500ff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  justify-content: center; /* flexbox */
  text-align: center;      /* або text-align */
}
.buttons-row button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

   
/* --- FAQ Section --- */
.faq {
    padding: 80px 20px;
    background: linear-gradient(180deg, #f9f9f9 0%, #fff 100%);
}

.faq-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #222;
    position: relative;
}

.faq-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color, #ffcc00);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Accordion */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.accordion-header {
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    padding: 18px 20px;
    text-align: left;
    background: var(--accent-color, #ffcc00);
    color: #1500ff;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: #ffd633;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px; /* вертикальні відступи 0 */
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.accordion-item.active .accordion-content {
  padding: 20px; /* вертикальні відступи тільки при відкритті */
}


    @media(max-width:768px){ .contacts-container{grid-template-columns:1fr;} }
/* --- About Left --- */
.about-left {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-family: 'Inter', sans-serif;
}

.about-left h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1500ff;
  margin-bottom: 10px;
}

.about-left p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* Адаптив */
@media(max-width: 992px) {
  .about-left {
    margin-bottom: 20px;
  }
}
/* --- About Vision --- */
.about-vision h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1500ff;
  margin-top: 20px;
  margin-bottom: 10px;
}

.about-vision p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

   /* --- CONTACTS SECTION --- */
.contacts {
  background: url('bgcontcats.webp') no-repeat center center / cover;
  height: 100vh;         /* висота — на весь екран */
  width: 100%;           /* ширина — на весь екран */
  color: #fff;
  display: flex;
  align-items: center;   /* центрує контент по вертикалі */
  justify-content: center; /* центрує по горизонталі */
  position: relative;
}


.contacts-container {
  max-width: 1200px;
  margin: 0 auto;
}

.contacts-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 50px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

/* Інфо колонка */
.contacts-info {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}

.contacts-info h3 {
  color: #1500ff;
  margin-bottom: 20px;
}

.contacts-info a {
  color: #1500ff;
  text-decoration: none;
  transition: color 0.3s ease;
}
.contacts-info a:hover {
  color: #ffcc00;
}

/* Форма */
.contact-form {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form h3 {
  margin-bottom: 10px;
  color: #1500ff;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #1500ff;
  outline: none;
}

.btn-primary {
  background: #ffcc00;
  color: #1500ff;
  border: none;
  padding: 14px 25px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size:1rem;}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* --- Адаптив --- */
@media (max-width: 900px) {
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .contacts-info,
  .contact-form {
    padding: 30px;
  }

  .contacts-title {
    font-size: 1.8rem;
  }
}

/* Приховати на екранах до 900px */
@media (max-width: 900px) {
    .insurance-image-col {
        display: none;
    }
      .image-block {
        display: none;
    }
       .workflow-visual {
        display: none;
    }
         .buttons-row {
        justify-content: center; /* flexbox */
        text-align: center;      /* або text-align */
    }

}
