/* 1. НОРМАЛІЗАЦІЯ ТА БАЗОВІ СТИЛІ */

/*! normalize.css v8.0.1 | MIT License | Взято з github.com/necolas/normalize.css */
html { line-height: 1.15; -webkit-text-size-adjust: 100%; } /*! — Встановлює стандартну висоту рядка та запобігає автоматичній зміні розміру тексту в мобільних браузерах. */
body { margin: 0; } /*! — Прибирає зовнішні відступи тіла документа. */
main { display: block; } /*! — Гарантує, що тег <main> відображається як блоковий елемент у старих IE. */
h1 { font-size: 2em; margin: 0.67em 0; } /*! — Стандартизує розмір шрифту та відступи для заголовків першого рівня. */
hr { box-sizing: content-box; height: 0; overflow: visible; } /*! Групові елементи. — Коригує стилізацію горизонтальних ліній. */
pre { font-family: monospace, monospace; font-size: 1em; } /*! Групові елементи. — Виправляє проблему з успадкуванням шрифту в елементах <pre>. */
a { background-color: transparent; } /*! Текстові елементи. Прибирає сіре підсвічування посилань у IE 10.*/
abbr[title] { border-bottom: none; text-decoration: underline; text-decoration: underline dotted; } /*! — Покращує стилізацію абревіатур з атрибутом title. */
b, strong { font-weight: bolder; } /*! — Встановлює правильну жирність шрифту для елементів <b> і <strong>. */
code, kbd, samp { font-family: monospace, monospace; font-size: 1em; } /*! — Коригує розмір шрифту для кодових елементів. */
small { font-size: 80%; } /*! — Стандартизує розмір шрифту для тегу <small>. */
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } /*! — Запобігає впливу підрядкових і надрядкових символів на висоту рядка. */
sub { bottom: -0.25em; } /*! — Коригує положення підрядкових символів. */
sup { top: -0.5em; } /*! — Коригує положення надрядкових символів. */
img { border-style: none; } /*! Вбудовані елементи — Прибирає рамку навколо зображень при використанні в посиланнях. */
button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; } /*! — Стандартизує шрифти та відступи для елементів форм. */
button, input { overflow: visible; } /*!  — Показує переповнення тексту в елементах форм. */
button, select { text-transform: none; } /*! — Запобігає автоматичній зміні регістру тексту. */
button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; } /*! — Стандартизує вигляд кнопок. */
button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner { border-style: none; padding: 0; } /*! — Прибирає внутрішні рамки та відступи в Firefox. */
button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring { outline: 1px dotted ButtonText; } /*! — Відновлює фокусне обведення, яке було прибрано попереднім правилом. */
fieldset { padding: 0.35em 0.75em 0.625em; } /*! Інші елементи форм. — Встановлює стандартні відступи для <fieldset>. */
legend { box-sizing: border-box; color: inherit; display: table; max-width: 100%; padding: 0; white-space: normal; } /*! — Коригує проблеми з відображенням легенд. */
progress { vertical-align: baseline; } /*! — Виправляє вертикальне вирівнювання індикатора прогресу. */
textarea { overflow: auto; } /*! — Додає автоматичну смугу прокрутки для текстових областей. */
[type="checkbox"], [type="radio"] { box-sizing: border-box; padding: 0; } /*! — Виправляє розмір прапорців і перемикачів. */
[type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button { height: auto; } /*! Специфічні елементи. — Коригує вигляд кнопок збільшення/зменшення для числових полів. */
[type="search"] { -webkit-appearance: textfield; outline-offset: -2px; } /*! — Стандартизує пошукові поля. */
[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } /*! — Стандартизує пошукові поля. */
::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; } /*!  — Коригує вигляд кнопок завантаження файлів. */
details { display: block; } /*!  — Гарантує, що <details> відображається як блоковий елемент. */
summary { display: list-item; } /*! — Забезпечує коректне відображення <summary> як елемента списку. */
template { display: none; } /*!  — Приховує шаблонні елементи, які не повинні відображатися. */
[hidden] { display: none; } /*! — Переконується, що елементи з атрибутом hidden дійсно приховані. */
/*! Додаткові свої стилі  */
html.noscroll { position: fixed; width: 100%; overflow-y: scroll; } /* Стиль для блокування прокрутки в Chrome/Opera */
body.noscroll { overflow: hidden !important; } /* Гарантуємо, що скрол не з'являється в модальному режимі */
html.noscroll .header, html.noscroll .navbar.visible { padding-right: var(--scrollbar-width); } /* Застосовуємо компенсацію до фіксованих елементів */
* { margin: 0; padding: 0; box-sizing: border-box; } /* Скидання стилів, селектор * застосовує нульові відступи до абсолютно всіх елементів */
body { color: #fff; font-family: var(--font-primary); background-color: var(--background-light); } /* Основні стилі тіла документа */
body, .header, .navbar { transition: padding-right 0.3s ease; }
/* Стилі для стану відкритого меню */ body.menu-open { overflow: hidden; width: 100%; height: 100%; }
a { text-decoration: none; color: inherit; transition: var(--transition-standard); }
ul, ol, dl { margin: 0; padding: 0; list-style: none; } /* Скидання для списків */
table { border-collapse: collapse; border-spacing: 0; } /* Скидання для таблиць */
button { border: none; background: transparent; cursor: pointer; font-family: inherit; padding: 0; appearance: none; } /* Скидання для кнопок */
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; border: none; outline: none; appearance: none; background-color: transparent; } /* Скидання для форм і полів вводу */
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } /* Скидання для форм і полів вводу */
input[type=number] { -moz-appearance: textfield; } /* Скидання для форм і полів вводу */
::selection { background-color: rgba(84, 194, 192, 0.3); color: inherit; } /* Стилі для позначення виділеного тексту */
img, svg { display: block; max-width: 100%; height: auto; } /* Скидання для зображень */
:focus { outline: none; } /* Скидання для зображень */
:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; } /* Скидання стилів для фокусу елементів */

/* 2. ЗМІННІ ТА ЗАГАЛЬНІ ПРАВИЛА */
:root {
    /* Основна кольорова схема */
    --primary-color: #0c121e;  /* Колір у футері  */
    --accent-color: #54c2c0; /* для підкреслень у футері  */
    --button-up-to-top-color: #3A5E8C; /* для кнопки наверх */
    /* Колір тексту */
    --text-light: rgba(255, 255, 255, 0.8); /* для тексту у футері */
    --text-lighter: rgba(255, 255, 255, 0.7); /* для посилань у футері */ 
    /* Межі */
    --border-color: rgba(255, 255, 255, 0.2); /* для лінії перед секцією навігації у футері */
    --border-dark: #333;
    /* Шрифти */
    --font-primary: 'Open Sans', Arial, sans-serif; /* основний шрифт на сайті */
    /* Розміри контейнера */
    --container-xl: 1400px; --container-lg: 1140px; --container-md: 960px; --container-sm: 720px; --container-xs: 540px;
    --transition-standard: all 0.3s ease; /* Переходи - для анімацій наведення*/ 
    /* Burger menu - зміни */
    --burger-menu-bg: #102542; /* для фону меню */
    --burger-menu-text: #fff;  /* для тексту у меню */
    --burger-menu-primary: #53cae1; /* для активних станів у меню */
    --burger-menu-secondary: #35495e; /* фон вибору пункту */
    --burger-menu-transition: 0.3s; /* для тривалості переходів у меню */
    --scrollbar-width: 0px; /* використовується для компенсації ширини прокрутки */

    /* Оновлені змінні для шрифтів в :root - розмістити в блоці, де інші змінні */
    /* Типографічні змінні */
    --font-primary: 'Open Sans', Arial, sans-serif;
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;

    --background-light: #ffffff; /* Змінити на білий фон */
    --text-dark: #333333;        /* Додати змінну для темного тексту */
}

/* 3. СИСТЕМА СІТКИ ТА КОНТЕЙНЕРИ */
/* Система сітки та спеціальні контейнери для сайту */

/* container - Основний контейнер, який використовується для центрування та обмеження ширини вмісту сторінки */
.container { width: 100%; max-width: var(--container-xl); margin: 0 auto; padding: 0 15px; box-sizing: border-box; /* Щоб відступи враховувались в загальну ширину */ z-index: 2; position: relative; }
.container-fluid { width: 100%; padding-right: 0; padding-left: 0; box-sizing: border-box; } /* клас створює контейнер на всю ширину екрану */
.container-fluid .container { padding-right: 0; padding-left: 0; } /* селектор визначає поведінку контейнера всередині повноширинного контейнера */ 
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } /* Клас "візуально приховує" елемент */

/* 4. КОМПОНЕНТИ ШАПКИ (HEADER) */

/* Стиль header фіксує шапку сайту у верхній частині екрану */
.header { background-color: rgba(16, 37, 66, 1); backdrop-filter: saturate(180%) blur(30px); position: fixed; top: 0; left: 0; right: 0; height: 40px; z-index: 9999; }

/* Логотип Header-Footer */
.logo-header { height: 34px;  width: 34px;  margin: 1px 10px 7px 15px; display: flex; align-items: left; } /* Логотип у шапці */

/* Навігаційне меню - створює гнучкий контейнер на всю ширину для навігаційних елементів*/ 
.nav { width: 100%; max-width: var(--container-xl); margin: 0 auto; height: 100%; display: flex; justify-content: space-between; /* Створює дві групи: ліву і праву */ align-items: center; padding: 0 15px; }
/* Ліва частина з логотипом і основним меню */
.nav-left { display: flex; align-items: center; gap: 20px; /* Відстань між логотипом і першим пунктом меню */ }
/* Основний список навігації в середині */
.nav-list { flex-grow: 1; justify-content: flex-end; gap: 5px; display: flex; list-style: none; height: 100%; align-items: center; margin: 0 auto 0 0; /* Віджимає іконки вправо */ }
/* Права частина з іконками */
.nav-right { display: flex; align-items: center; gap: 10px; /* Відстань між іконками */ margin-left: 20px; /* Відступ від основних пунктів меню */ }

.nav-item { height: 100%; display: flex; align-items: center; position: relative; /* Для позиціонування випадаючого меню */ margin: 0 2px; }
.nav-item::after { content: ''; position: absolute; left: 0; top: 100%; width: 100%; height: 10px; /* Висота "моста" між меню та випадаючим списком */ background-color: transparent; /* Невидимий елемент */ z-index: 49; /* Трохи нижче, ніж у випадаючого меню */ }
.nav-item:hover::before { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 15px; /* Висота розширеної області */ z-index: 48; }
.nav-item:hover .dropdown, .nav-item:hover::before + .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-link { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: clamp(12px, 1vw, 14px); transition: color 0.3s ease; padding: 0 5px; /* Зменшені відступи */ height: 100%; display: flex; align-items: center; white-space: nowrap; position: relative; /* Додаємо для позиціонування псевдоелемента */}
.nav-link:hover { color: #fff; }
.nav-link::after { content: ''; position: absolute; bottom: -15px; left: 0; width: 100%; height: 0.8px; background-color: #fff; transform: scaleX(0); transition: transform 0.3s ease; }
.nav-link:hover::after { transform: scaleX(1); }

.fil0 { transition: fill 0.3s ease; /* Додаємо плавну анімацію */ }
/* При наведенні на батьківський елемент змінюємо колір */
.nav-link:hover .fil0 { fill: #F05D23; /* застосовуються до SVG-іконок у навігаційному меню */ }

/* Звичайна навігація */
.header .nav { width: 100%; display: flex; justify-content: space-between; align-items: center; } /* встановлює базове оформлення для навігаційного меню в шапці сайту */
.dropdown { position: absolute; top: 100%; left: 0; min-width: 200px; background-color: rgba(35, 61, 107, 0.9); box-shadow: 0 8px 16px rgba(31, 31, 31, 0.2); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.3s, visibility 0.3s, transform 0.3s; z-index: 50; margin-top: 15px; border-radius: 3px; } 
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); display: block; transition: opacity 0.2s, visibility 0s, transform 0.2s; }
.dropdown-item { display: block; color: rgba(255, 255, 255, 0.9); text-decoration: none; font-size: 14px; transition: background-color 0.3s; white-space: nowrap; padding: 8px 12px; }
.dropdown-item:hover { background-color: rgba(117, 152, 199, 0.2); }

/* Тултіпи */
.tooltip-wrapper { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.tooltip-wrapper-logo { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.tooltip { position: absolute; top: calc(100% + 5px); left: 50%; transform: translateX(-50%); background-color: rgba(0, 0, 0, 0.8); color: #fff; padding: 5px 10px; border-radius: 4px; font-size: 12px; white-space: nowrap; visibility: hidden; opacity: 0; transition: opacity 0.3s; z-index: 100; margin-top: 15px; }
.tooltip::before { content: ""; position: absolute; bottom: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: transparent transparent #333 transparent; }
.tooltip-wrapper:hover .tooltip { visibility: visible; opacity: 1; }

/* 5. КОМПОНЕНТИ СЛАЙДЕРА */
.slider-section { margin-top: -20px; background-color: #000000; color: #fff; position: relative; overflow: hidden; height: 700px; /* Нова фіксована висота */ min-height: 600px; width: 100%; z-index: 2; }
.slider { width: 100%; height: 100%; position: relative; }
/* Слайди */
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease-in-out; display: flex; flex-direction: column; justify-content: center; background-size: cover; background-position: center; background-repeat: no-repeat; padding-top: 60px; /* Додатковий відступ зверху для компенсації висоти шапки */ }
.slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(8, 20, 45, 0.7); z-index: 1; }
.slide.active { opacity: 1; }
.slide.dark-overlay::before { background-color: rgba(4, 18, 42, 0.1); }

/* Контент слайда */ 
.slide-content { position: relative; z-index: 2; max-width: 100%; width: 100%; margin: 0 auto; padding: 0 20px; /* Забезпечує відступи з боків на маленьких екранах */ text-align: center; }
.slide-title { font-family: var(--font-primary); font-size: 42px; /* Зменшено з 50px */ font-weight: 300; margin-bottom: 16px; /* Зменшено з 20px */ line-height: 1.2; }
.slide-description { font-family: var(--font-primary); font-size: 18px;  font-weight: 300; max-width: 550px; margin: 0 auto 30px auto; line-height: 1.4; }
.slide-btn { display: inline-block; border: 1.5px solid #fff; border-radius: 30px; padding: 12px 25px; color: #fff; font-family: var(--font-primary); font-size: 16px; font-weight: 400; transition: all 0.3s; }
.slide-btn:hover { background-color: rgba(84, 194, 192, 0.2); border: 1.5px solid #93DAE1; }
/* Контроли слайдера */ 
.slider-controls { position: absolute; bottom: 25px; display: flex; justify-content: center; width: 100%; z-index: 10; max-width: var(--container-xl); transform: translateX(-50%); padding: 0 15px; gap: 10px; left: 50%; /* Розміщуємо на 50% від лівого краю */ }
.slider-dot { width: 30px; height: 3px; background-color: rgba(255, 255, 255, 0.2); margin: 0 2px; cursor: pointer; display: block; /* Явно вказати відображення */ position: relative; z-index: 100; }

/* ПІДВАЛ САЙТУ (FOOTER) */
.footer { background-color: var(--primary-color); color: var(--text-light); padding: 60px 0 0; font-weight: 300; position: relative; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-lighter); text-decoration: none; font-size: 14px; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--accent-color); }

/* Стилі для бургер-меню */
.burger-toggle { position: relative; /* Change from fixed to relative */ z-index: 1001; background: none; border: none; color: var(--burger-menu-text); width: 20px; /* Make the same size as other icons */ height: 20px; /* Make the same size as other icons */ min-width: 20px; /* Фіксована мінімальна ширина */ min-height: 20px; /* Фіксована мінімальна висота */ display: flex; align-items: center; justify-content: center; cursor: pointer; margin-right: 10px; /* Add margin to create space between burger and icons */ padding: 0; overflow: visible; }

.burger-icon { position: relative; width: 18px; height: 16px; display: block; }
.burger-icon span { position: absolute; height: 2px; background-color: var(--burger-menu-text); border-radius: 2px; left: 0; right: auto; /* Убираем правую привязку */ transform-origin: center; transition: all var(--burger-menu-transition) ease; }
/* Точні позиції для ліній */ 
.burger-icon span:nth-child(1) { top: 0; width: 16px !important; /* Додаємо !important для пріоритету */ }
.burger-icon span:nth-child(2) { top: 7px; width: 12px !important; /* Додаємо !important для пріоритету */ }
.burger-icon span:nth-child(3) { top: 14px; width: 16px !important; /* Додаємо !important для пріоритету */ }
/* Стан при наведенні для бургер-меню - змінюємо довжину ліній */
.burger-toggle:hover .burger-icon:not(.active) span:nth-child(1) { width: 18px !important; }
.burger-toggle:hover .burger-icon:not(.active) span:nth-child(2) { width: 14px !important; }
/* Анімація для хрестика */
.burger-icon.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 16px !important; }
.burger-icon.active span:nth-child(2) { opacity: 0; width: 0 !important; }
.burger-icon.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 16px !important; }
/* Змінюємо ефект при наведенні на активному хрестику */
.burger-toggle:hover .burger-icon.active span:nth-child(1), .burger-toggle:hover .burger-icon.active span:nth-child(3) { background-color: var(--burger-menu-primary); }
/* Основне меню - тепер на повний екран */
.menu-container { position: fixed; top: -1px; border-top: 1px solid #242F40; left: 0; right: 0; bottom: 0; width: 100%; height: 100vh; background-color: #242F40; /* Updated background color */ display: flex; justify-content: center; align-items: flex-start; z-index: 1000; visibility: hidden; opacity: 0; transition: opacity var(--burger-menu-transition) ease, visibility var(--burger-menu-transition) ease; overflow-y: auto; max-height: 100vh; /* Обмежуємо висоту, щоб уникнути проблем з прокруткою */ transform: translateY(-1px); box-shadow: 0 -1px 0 #242F40;}
.menu-container.active { visibility: visible; opacity: 1; }
/* Внутрішнє меню - 50% ширини */
.main-menu { width: 70%; padding: 4rem 0 2rem; max-width: 550px; }
/* Стилі для пунктів меню */
.menu-section { margin-bottom: 1rem; border-bottom: 1px solid #2c2c2c; }
.menu-section:last-child { border-bottom: none; }
.menu-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1.5rem; cursor: pointer; transition: color 0.3s ease, background-color 0.3s ease; color: rgba(255, 255, 255, 0.8); /* Початковий колір тексту */ }
.menu-item:hover { background-color: rgba(255, 255, 255, 0.05); color: #fff; /* Світліший колір при наведенні */ }
.menu-item.has-submenu { color: rgba(255, 255, 255, 0.8); transition: color 0.3s ease, background-color 0.3s ease; }
.menu-item.has-submenu:hover { color: #fff; }
/* Стиль для заголовка меню в активному стані (коли підменю відкрите) */
.menu-item.has-submenu.active { color: #00A5B5; /* Колір акценту з ваших змінних (--burger-menu-primary) */ }
.expand-icon { font-size: 1.25rem; transition: transform var(--burger-menu-transition) ease; }
.menu-item.active .expand-icon { transform: rotate(45deg); }
/* Підменю */
.submenu { padding-left: 1rem; max-height: 0; overflow: hidden; transition: max-height var(--burger-menu-transition) ease; }
.submenu.active { max-height: 500px; /* Достатньо великий розмір для всіх пунктів */ }
.submenu-item { padding: 0.75rem 1.5rem; display: flex; align-items: center; color: rgba(255, 255, 255, 0.7); /* Трохи світліший колір */ transition: color 0.3s ease, background-color 0.3s ease; }
.submenu-item:hover { color: #fff; /* Білий колір при наведенні */ background-color: rgba(255, 255, 255, 0.05); }
.external-link-icon { margin-left: 0.5rem; font-size: 0.75rem; color: #777; }

.slider-dot.active { background-color: #00A5B5; }
.slider-nav { justify-content: flex-end; position: absolute; bottom: 16px; right: 0; display: flex; gap: 10px; z-index: 10; right: 0px; padding-right: 0px; }
.slider-nav button { background-color: transparent; border: none; color: #fff; font-size: 24px; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;     transition: background-color 0.3s; }
.slider-nav button:hover { background-color: rgba(255, 255, 255, 0.2); }

/* Прогрес-коло */
.progress-circle-container { position: absolute; left: 75px; bottom: 30px; width: 58px; height: 58px; z-index: 10; cursor: pointer; }
.progress-container { position: relative; width: 58px; height: 58px; }
.base-circle { position: absolute; width: 58px; height: 58px; border-radius: 50%; border: 4px solid #394258; box-sizing: border-box; }
.control-button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 24px; height: 24px; background: transparent; border: none; cursor: pointer; z-index: 10; padding: 0; display: flex; align-items: center; justify-content: center; }
.pause-icon, .play-icon { width: 100%; height: 100%; pointer-events: none; }
.play-icon { display: none; }

/* Стилі для футера */
.footer { background-color: var(--primary-color); color: var(--text-light); padding: 60px 0 0; font-weight: 300; position: relative; }
.footer-content { display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: space-between; margin-bottom: 40px; }
/* Логотип та опис секції */
.footer-section { flex: 1 1 200px; }

/* Створимо дві основні секції: для логотипу і для всіх інших колонок */
.logo-section { flex: 0 0 35%; margin-right: 20px; text-align: left; }

/* Створюємо контейнер для трьох колонок у футері */
.footer-columns-wrapper { flex: 0 0 60%; display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: space-between; gap: 20px; }

.links-section, .useful-links-section, .third-section, .fourth-section { flex: 1; min-width: 100px; padding: 0 5px; }

.footer-logo { display: inline-block; margin-bottom: 15px; }
.footer-desc { font-size: 14px; line-height: 1.6; margin-bottom: 20px; opacity: 0.8; }

/* Заголовки секцій */
.footer-heading { font-size: 18px; font-weight: 300; margin-bottom: 20px; position: relative; padding-bottom: 10px; letter-spacing: 0.5px; }
.footer-heading::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 1.5px; background-color: var(--accent-color); }

/* Посилання */
.footer-links { list-style: none; padding: 0; }

.footer-links li { margin-bottom: 10px; }

.footer-links a { color: var(--text-lighter); text-decoration: none; transition: color 0.3s ease, transform 0.3s ease; font-size: 14px; display: inline-block; position: relative; /* Примусове використання GPU-прискорення */ transform: translateZ(0); backface-visibility: hidden; }
.footer-links a:hover { color: var(--accent-color); transform: translateX(5px); }
.footer-links a::before { content: '›'; position: absolute; left: -15px; opacity: 0; transition: all 0.3s ease; }
.footer-links a:hover::before { opacity: 1; left: -10px; }

/* Нижній рядок футера */
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 20px 0; margin-top: 20px; }
.footer-bottom-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.copyright { font-size: 14px; opacity: 0.8; }
.footer-bottom-links { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.footer-bottom-links a { color: var(--text-lighter); text-decoration: none; transition: color 0.3s ease; }
.footer-bottom-links a:hover { color: var(--accent-color); }
.footer-bottom-links span { color: rgba(255, 255, 255, 0.3); }

/* Кнопка "наверх" з анімацією */
.back-to-top { position: fixed; bottom: 70px; right: 50px; width: 48px; height: 48px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.05); /* Світліший колір */ border: none; color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 100; opacity: 0; visibility: hidden; transition: all 0.3s ease, background-color 0.3s ease; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); overflow: hidden; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background-color: var(--button-up-to-top-color); /* Яскравіший колір при наведенні */ }
/* Контейнер для стрілок */
.arrow-container { position: relative; height: 20px; width: 20px; }
/* Спільні стилі для обох стрілок */
.arrow { position: absolute; top: 0; left: 0; width: 20px; height: 20px; color: white; /* Колір стрілки */ transition: transform 0.3s ease, opacity 0.3s ease; }
/* Перша стрілка (завжди видима) */
.arrow-1 { opacity: 1; transform: translateY(0); }
/* Друга стрілка (з'являється при наведенні) */
.arrow-2 { opacity: 0; transform: translateY(10px); }
/* Анімація при наведенні */
.back-to-top:hover .arrow-1 { transform: translateY(-8px); }
.back-to-top:hover .arrow-2 { opacity: 1; transform: translateY(0); }
/* Покращення доступності для відвіданих посилань */
.footer-links a:visited, .nav-link:visited { color: var(--text-lighter); }

/* Стилізація статусу активного меню для клавіатурної навігації */
.menu-item.has-submenu[aria-expanded="true"] { color: var(--burger-menu-primary); }

/* Переконуємося, що при наведенні на відвідане посилання колір буде accent-color */
.footer-links a:visited:hover { color: var(--accent-color); }

/* Стиль focus не змінюємо, але для певності переконуємося, що колір тексту також буде accent-color */
.footer-links a:focus { color: var(--accent-color); outline: 2px solid var(--accent-color); outline-offset: 2px; outline: none; }

/* Початково приховуємо інформаційний текст, який буде видимий тільки на планшетах */
.tablet-info-text { font-family: var(--font-primary); font-weight: 500; display: none; color: #fff; font-size: 14px; text-align: center; padding-bottom: 10px; margin: 0 auto; max-width: 90%; position: absolute; left: 50%; transform: translateX(-50%); z-index: 5; }

/* Стилі для адаптивних зображень */
.responsive-img { max-width: 100%; height: auto; display: block; }
/* Адаптивний контейнер відео */
.video-container { position: relative; padding-bottom: 56.25%; /* співвідношення сторін 16:9 */ height: 0; overflow: hidden; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }






/* Оновлені стилі слайдера */
.nav-link { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: clamp(12px, 1vw, 14px); transition: color 0.3s ease; padding: 0 5px; height: 100%; display: flex; align-items: center; white-space: nowrap; position: relative; font-weight: var(--font-regular); }
.menu-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1.5rem; cursor: pointer; transition: color 0.3s ease, background-color 0.3s ease; color: rgba(255, 255, 255, 0.8); font-size: 16px; font-weight: var(--font-regular); }
.submenu-item { padding: 0.75rem 1.5rem; display: flex; align-items: center; color: rgba(255, 255, 255, 0.7); transition: color 0.3s ease, background-color 0.3s ease; font-size: 14px; font-weight: var(--font-light); }


/* Більш тонкі лінії для екранів з високою щільністю пікселів */
@media screen and (min-resolution: 2dppx) {
    .nav-link::after { height: 1px; }
    .slider-dot { height: 2px; }
    .menu-section { border-bottom-width: 0.5px; }
  }
  
  /* Оптимізація відображення тексту для різних екранів */
  @media screen and (min-resolution: 2dppx) {
    body {
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      text-rendering: optimizeLegibility;
    }
  }




.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease-in-out; display: flex; flex-direction: column; justify-content: center; padding-top: 60px; overflow: hidden; /* Запобігає виходу зображень за межі контейнера */ }
.slide::before { z-index: 1; }
.slide.active { opacity: 1; }
/* Накладання темного шару */ 
.slide.dark-overlay::before { content: '';  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.slide picture { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.slide-background { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-content { position: relative; z-index: 2; /* Вище за overlay і зображення */ }

/* Добавлення світлого блоку сайту */
.light-section { background-color: #f5f7fa; color: #0c121e; padding: 60px 0; }
.light-section h2 { color: #102542; position: relative; margin-bottom: 30px; font-weight: var(--font-light); }
.light-section h2::after { content: ''; display: block; width: 60px; height: 2px; margin-top: 0.5rem; background-color: var(--accent-color); }
.light-section p { color: #333; font-weight: var(--font-regular); }
.light-section .lead { color: #3A5E8C; font-weight: var(--font-light); }
.light-section blockquote { border-left: 4px solid var(--accent-color); background-color: rgba(84, 194, 192, 0.1); }





/* Media.css - Start */

/* Точки переривання та контейнери */
:root {
  /* Breakpoints */
  --breakpoint-xs: 0;     
  --breakpoint-sm: 576px; 
  --breakpoint-md: 768px; 
  --breakpoint-lg: 992px; 
  --breakpoint-xl: 1200px;
  --breakpoint-xxl: 1400px;

  /* Контейнери */
  --container-xs: 540px;
  --container-sm: 720px;
  --container-md: 960px;
  --container-lg: 1140px;
  --container-xl: 1400px;
}

/* Базова структура футера - спільні стилі для всіх розмірів екрану */
.footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0 0;
  font-weight: 300;
  position: relative;
}

.footer-content {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.logo-section {
  flex: 0 0 35%;
  margin-right: 20px;
  text-align: left;
}

.footer-columns-wrapper {
  flex: 0 0 60%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 20px;
}

/* Базові стилі для колонок футера */
.links-section, .useful-links-section, .third-section, .fourth-section {
  flex: 0 0 calc(25% - 15px);
  min-width: 120px;
  padding: 0 5px;
}

/* Заголовки секцій */
.footer-heading {
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  letter-spacing: 0.5px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 1.5px;
  background-color: var(--accent-color);
}

/* Медіа-запити - від більшого до меншого екрану */

/* Extra Extra Large - Full HD та більше (1401px+) */
@media (min-width: 1401px) {
  .container { 
      max-width: var(--container-xl); 
      margin: 0 auto; 
      padding: 0 15px; 
  }
  .slide-title { font-size: 42px; }
  .slide-description { font-size: 18px; }
  .nav-right a[aria-label="About / Contact"], 
  .nav-right a[aria-label="Private Policy"] { 
      display: flex; 
      align-items: center; 
  }
  .dropdown-item { 
      padding: 7px 10px; 
      font-size: 14px; 
  }
  .nav { padding: 0 8px; }
  .nav-link { 
      font-size: 14px; 
      padding: 0 3px; 
  }
  .nav-menu li, .nav-item { margin: 0 3px; }
  .dropdown { min-width: 170px; }
  .nav-left { gap: 10px; }
  
  .footer-heading { font-size: 18px; }
  .footer-links a { font-size: 14px; }
  .footer-desc { font-size: 14px; }
  
  .slider-section { height: 700px; min-height: 600px; }
  .main-menu { width: 80%; max-width: 800px; }
  .burger-toggle { display: none; }
}

/* Large Desktops (1400px-1201px) */
@media (max-width: 1400px) and (min-width: 1201px) {
  .container { 
      max-width: var(--container-lg);  
      margin: 0 auto; 
      padding: 0 15px; 
  }
  .slide-title { font-size: 42px; }
  .slide-description { font-size: 17px; }
  .nav-right a[aria-label="About / Contact"], 
  .nav-right a[aria-label="Private Policy"] { 
      display: flex; 
      align-items: center; 
  }
  .dropdown-item { 
      padding: 7px 10px; 
      font-size: 13px; 
  }
  /* Специфічні налаштування для футера */
  .logo-section { margin-right: 20px; }
  .footer-columns-wrapper { gap: 15px; }
  .links-section, .useful-links-section, .third-section, .fourth-section { 
      min-width: 80px; 
  }
  .footer-heading { font-size: 17px; }
  .footer-links a { font-size: 13px; }
  .footer-desc { font-size: 13px; }

  .slider-section { height: 700px; min-height: 600px; }
  .main-menu { width: 85%; max-width: 600px; }
  .burger-toggle { display: none; }
}

/* Medium-Large Desktops (1200px - 993px) */
@media (max-width: 1200px) and (min-width: 993px) {
  .container { 
      max-width: var(--container-md); 
      margin: 0 auto; 
      padding: 0 15px; 
  }
  .slide-title { font-size: 40px; }
  .slide-description { font-size: 16px; }
  .nav-right a[aria-label="About / Contact"], 
  .nav-right a[aria-label="Private Policy"] { 
      display: flex; 
      align-items: center; 
  }
  .dropdown-item { 
      padding: 7px 10px; 
      font-size: 12px; 
  }
  /* Специфічні налаштування для футера */
  .logo-section { margin-right: 15px; }
  .footer-columns-wrapper { gap: 10px; }
  .links-section, .useful-links-section, .third-section, .fourth-section { 
      min-width: 60px; 
  }
  .footer-heading { font-size: 16px; }
  .footer-links a { font-size: 13px; }
  .footer-desc { font-size: 13px; }
  
  .slider-section { height: 700px; min-height: 600px; }
  .burger-toggle { display: none; }
}

/* Tablets (992px - 769px) */
@media (max-width: 992px) and (min-width: 769px) {
  .container { 
      max-width: var(--container-sm); 
      margin: 0 auto; 
      padding: 0 15px; 
  }
  .slide-title { font-size: 38px; }
  .slide-description { font-size: 15px; }
  .nav-list { display: none; }
  .tablet-info-text { 
      display: block; 
      margin-top: 10px; 
  }

  /* Футер для планшетів */
  .footer-content { flex-direction: column; }
  .logo-section { 
      flex: 0 0 100%; 
      margin-right: 0; 
      margin-bottom: 30px; 
      text-align: center; 
  }
  .footer-logo { 
      display: flex; 
      justify-content: center; 
  }
  .footer-columns-wrapper { 
      flex: 0 0 100%; 
      flex-wrap: nowrap !important; 
      gap: 15px; 
      justify-content: space-between; 
  }
  .links-section, .useful-links-section, .third-section, .fourth-section { 
      flex: 1 !important; 
      min-width: 0; 
  }
  .footer-links a { font-size: 12px; }
  .footer-heading { font-size: 15px; margin-bottom: 12px; }
  .footer-desc { font-size: 12px; }
 
  .tablet-info-text { 
      display: block; 
      margin-top: 10px;
      font-size: 13px;
      font-weight: var(--font-medium);
  }
  .slider-section { height: 700px; min-height: 600px; }
  .main-menu { width: 90%; max-width: 600px; }
  .nav-right a[aria-label="About / Contact"], .nav-right a[aria-label="Private Policy"] { opacity: 1; visibility: visible; }
}

/* Small Tablets (768px - 577px) */
@media (max-width: 768px) and (min-width: 577px) {
  .container { 
      max-width: var(--container-xs); 
      margin: 0 auto; 
      padding: 0 15px;  
  }
  .slide-title { font-size: 36px; }
  .slide-description { font-size: 14px; }
  .nav-list { display: none; }
  .tablet-info-text { 
      display: block; 
      font-size: 12px; 
      margin-top: 8px; 
  }
  
  /* Футер для малих планшетів */
  .footer-content { flex-direction: column; }
  .logo-section { 
      flex: 0 0 100%; 
      margin-right: 0; 
      margin-bottom: 30px; 
      text-align: center; 
  }
  .footer-logo { 
      display: flex; 
      justify-content: center; 
  }
  .footer-columns-wrapper { 
      flex: 0 0 100%; 
      display: flex; 
      flex-wrap: wrap; 
      gap: 20px; 
      justify-content: space-between; 
  }
  .links-section, .useful-links-section, .third-section, .fourth-section { 
      flex: 0 0 calc(50% - 10px); 
      margin-bottom: 20px; 
  }
  .footer-bottom-content { 
      flex-direction: column; 
      align-items: center; 
      gap: 10px; 
  }
  .copyright { text-align: center; }

  .footer-heading { font-size: 15px; margin-bottom: 12px; }
  .footer-links a { font-size: 12px; }
  .footer-desc { font-size: 12px; }
  
  .slider-section { height: 500px; min-height: 500px; }
  .main-menu { width: 95%; max-width: 600px; }
  .nav-right a[aria-label="About / Contact"], .nav-right a[aria-label="Private Policy"] { display: none; } /* Додатково - при потребі, можна збільшити відступ для бургер-меню на цих екранах */ .burger-toggle { margin-right: 0; }
  .slider-controls { bottom: 15px; }

}

/* Mobile (до 576px) */
@media (max-width: 576px) {
  .container { 
      max-width: var(--container-xs); 
      margin: 0 auto; 
      padding: 0 15px; 
  }
  .slide-title { font-size: 30px; }
  .slide-description { font-size: 13px; }
  .nav-list { display: none; }
  
  /* Футер для мобільних */
  .footer-columns-wrapper { display: none !important; }
  .logo-section { 
      flex: 0 0 100%; 
      margin-right: 0; 
      margin-bottom: 40px; 
      text-align: center; 
  }
  .footer-heading::after { 
      left: 50%; 
      transform: translateX(-50%); 
  }
  .footer-logo { 
      display: flex; 
      justify-content: center; 
      margin-bottom: 20px; 
  }
  .footer-content { margin-bottom: 20px; }
  .footer-bottom-content { 
      flex-direction: column; 
      align-items: center; 
      gap: 10px; 
  }
  .copyright { text-align: center; }

  .footer-heading { font-size: 16px; margin-bottom: 15px; }
  .footer-links a { font-size: 13px; }
  .footer-desc { font-size: 12px; }
  
  .tablet-info-text { 
      display: block; 
      font-size: 10px; 
      margin-top: 8px; 
  }
  .slider-section { height: 350px; min-height: 350px; }
  .main-menu { width: 95%; max-width: none; padding-left: 0; padding-right: 0; }
  .nav-right a[aria-label="About / Contact"], .nav-right a[aria-label="Private Policy"] { display: none; }
  .burger-toggle { margin-right: 30px; }
  .slide-btn { display: none; }
  .slider-controls { bottom: 10px; }
  .progress-circle-container { left: 15px; bottom: 25px; }

  #prevBtn svg, #nextBtn svg {
    display: none; /* Ховаємо SVG стрілки */
  }
  
  #prevBtn::after, #nextBtn::after {
    content: "‹";
    font-size: 28px;
    color: white;
    display: block;
    padding-bottom: 5px;
  }
  
  #nextBtn::after {
    content: "›"; /* Символ для правої стрілки */
    padding-bottom: 5px;
  }

}

@media (max-width: 359px) {
  
  .slide-title { font-size: 26px; }
  .slide-description { font-size: 12px; }
  /* Можливі додаткові коригування */
  .logo-header { width: 28px; height: 28px; }
  .footer-desc { font-size: 0.7rem; }
  .footer-heading { font-size: 15px; }
  .footer-links a { font-size: 12px; }
  
  .slider-section { height: 350px; min-height: 350px; }
  .main-menu { width: 100%; max-width: none; padding-left: 0; padding-right: 0; }
  .nav-right { margin-left: 5px; /* Зменшуємо відступ зліва */ margin-right: 10px; }
  .burger-toggle { margin-right: 5px; }
  .slide-btn { display: none; }
  .slider-controls { bottom: 10px; }

  .progress-circle-container { left: 15px; bottom: 25px; }

  #prevBtn svg, #nextBtn svg {
    display: none; /* Ховаємо SVG стрілки */
  }
  
  #prevBtn::after, #nextBtn::after {
    content: "‹"; /* Використовуємо HTML-символ стрілки */
    font-size: 28px;
    color: white;
    display: block;
  }
  
  #nextBtn::after {
    content: "›"; /* Символ для правої стрілки */
  }

}







/* Firefox-специфічні стилі */
@-moz-document url-prefix() {
  /* Базові стилі для Firefox */
  .footer-content { display: flex; }
  
  /* Великі екрани (1401px+) */
  @media (min-width: 1401px) {
      .logo-section { 
          width: 35%; 
          flex: 0 0 35%; 
      }
      .footer-columns-wrapper { 
          width: 60%; 
          flex: 0 0 60%; 
      }
      .links-section, .useful-links-section, .third-section, .fourth-section { 
          flex: 1 1 0%; 
          min-width: 80px; 
          width: calc(25% - 15px); 
      }
      .footer-desc { text-align: left; }
  }
  
  /* Large Desktops (1201px-1400px) */
  @media (max-width: 1400px) and (min-width: 1201px) {
      .logo-section { 
          width: 35%; 
          flex: 0 0 35%; 
      }
      .footer-columns-wrapper { 
          width: 60%; 
          flex: 0 0 60%; 
          display: flex; 
          flex-wrap: nowrap; 
          justify-content: space-between; 
      }
      .links-section, .useful-links-section, .third-section, .fourth-section { 
          flex: 1 1 0%; 
          min-width: 60px; 
          width: calc(25% - 15px); 
      }
      .footer-desc { text-align: left; }
  }
  
  /* Medium-Large Desktops (993px-1200px) */
  @media (max-width: 1200px) and (min-width: 993px) {
      .logo-section { 
          width: 35%; 
          flex: 0 0 35%; 
      }
      .footer-columns-wrapper { 
          width: 60%; 
          flex: 0 0 60%; 
          display: flex; 
          flex-wrap: nowrap; 
      }
      .links-section, .useful-links-section, .third-section, .fourth-section { 
          flex: 1 1 0%; 
          min-width: 60px; 
          width: calc(25% - 15px); 
      }
      .footer-desc { text-align: left; }
  }
  
  /* Tablets (769px-992px) */
  @media (max-width: 992px) and (min-width: 769px) {
      .footer-content { flex-direction: column; }
      .logo-section { 
          width: 100%; 
          flex: 0 0 100%; 
      }
      .footer-columns-wrapper { 
          width: 100%; 
          flex: 0 0 100%; 
          display: flex; 
          flex-wrap: nowrap; 
      }
      .links-section, .useful-links-section, .third-section, .fourth-section { 
          flex: 1 1 0%; 
          width: calc(25% - 15px); 
      }
      .footer-desc { text-align: center; }

      /* Зберіть усі важливі стилі для мобільної адаптації тут */
      .container .mfr-container {
        flex-direction: column !important;
      }
      
      .mfr-sidebar {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
        top: 0 !important;
        margin-bottom: 30px !important;
      }
      
      .mfr-content {
        flex: 0 0 100% !important;
        width: 100% !important;
      }
  }
  
  /* Small Tablets (577px-768px) */
  @media (max-width: 768px) and (min-width: 577px) {
      .footer-content { flex-direction: column; }
      .logo-section { 
          width: 100%; 
          flex: 0 0 100%; 
      }
      .footer-columns-wrapper { 
          width: 100%; 
          flex: 0 0 100%; 
          display: flex; 
          flex-wrap: wrap; 
          justify-content: space-between; 
      }
      .links-section, .useful-links-section, .third-section, .fourth-section { 
          width: calc(50% - 10px); 
          flex: 0 0 calc(50% - 10px); 
          min-width: 0; 
          margin-bottom: 20px; 
      }
      
      /* Керування порядком секцій */
      .links-section { order: 1; }
      .useful-links-section { order: 2; }
      .third-section { order: 3; }
      .fourth-section { order: 4; }
      .footer-desc { text-align: center; }

      .footer-heading { font-size: 16px; margin-bottom: 15px; }
      .footer-links a { font-size: 13px; }
      .footer-desc { font-size: 12px; }
      
      .tablet-info-text { 
          display: block; 
          font-size: 10px; 
          margin-top: 8px; 
      }
  }
  
  /* Mobile (до 576px) */
  @media (max-width: 576px) { 
      .footer-content { flex-direction: column; }
      .logo-section { 
          width: 100%; 
          flex: 0 0 100%; 
      }
      .links-section, .useful-links-section, .third-section, .fourth-section { 
          width: 100%; 
          flex: 0 0 100%; 
      }
      .footer-desc { text-align: center; }

      .slide-title { font-size: 26px; }
      .slide-description { font-size: 12px; }
      
      .footer-heading { font-size: 15px; }
      .footer-links a { font-size: 12px; }
      .footer-desc { font-size: 0.7rem; }
      
      .logo-header {
          width: 28px;
          height: 28px;
      }
  }
}

/* Media.css - End */











/* TYPOGRAPHY.CSS
 * Всі типографічні стилі сайту
 * Шрифт: Open Sans (300, 400, 500)
 * --------------------------------------- */

 :root {
  /* Типографічні змінні */
  --font-primary: 'Open Sans', Arial, sans-serif;
  
  /* Розміри заголовків для десктопу (більше 1200px) */
  --h1-size-xl: 3rem;         /* 48px */
  --h2-size-xl: 2.5rem;       /* 40px */
  --h3-size-xl: 2rem;         /* 32px */
  --h4-size-xl: 1.5rem;       /* 24px */
  --h5-size-xl: 1.25rem;      /* 20px */
  --h6-size-xl: 1.125rem;     /* 18px */
  
  /* Розміри заголовків для ноутбуків (992px-1200px) */
  --h1-size-lg: 2.75rem;      /* 44px */
  --h2-size-lg: 2.25rem;      /* 36px */
  --h3-size-lg: 1.875rem;     /* 30px */
  --h4-size-lg: 1.375rem;     /* 22px */
  --h5-size-lg: 1.125rem;     /* 18px */
  --h6-size-lg: 1rem;         /* 16px */
  
  /* Розміри заголовків для планшетів (768px-992px) */
  --h1-size-md: 2.5rem;       /* 40px */
  --h2-size-md: 2rem;         /* 32px */
  --h3-size-md: 1.75rem;      /* 28px */
  --h4-size-md: 1.25rem;      /* 20px */
  --h5-size-md: 1.125rem;     /* 18px */
  --h6-size-md: 1rem;         /* 16px */
  
  /* Розміри заголовків для малих планшетів (576px-768px) */
  --h1-size-sm: 2.25rem;      /* 36px */
  --h2-size-sm: 1.75rem;      /* 28px */
  --h3-size-sm: 1.5rem;       /* 24px */
  --h4-size-sm: 1.25rem;      /* 20px */
  --h5-size-sm: 1rem;         /* 16px */
  --h6-size-sm: 0.875rem;     /* 14px */
  
  /* Розміри заголовків для мобільних (до 576px) */
  --h1-size-xs: 2rem;         /* 32px */
  --h2-size-xs: 1.5rem;       /* 24px */
  --h3-size-xs: 1.375rem;     /* 22px */
  --h4-size-xs: 1.125rem;     /* 18px */
  --h5-size-xs: 1rem;         /* 16px */
  --h6-size-xs: 0.875rem;     /* 14px */
  
  /* Розміри тексту */
  --text-xl: 1.125rem;        /* 18px */
  --text-lg: 1rem;            /* 16px */
  --text-md: 0.9375rem;       /* 15px */
  --text-sm: 0.875rem;        /* 14px */
  --text-xs: 0.75rem;         /* 12px */
  
  /* Висота рядка */
  --line-height-tight: 1.2;   /* Для заголовків */
  --line-height-normal: 1.5;  /* Для основного тексту */
  --line-height-loose: 1.7;   /* Для покращення читабельності */
  
  /* Інтервали між літерами */
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;
  
  /* Інтервали між абзацами */
  --paragraph-spacing: 1.5rem;
  
  /* Жирність шрифту */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
}

/* Базові типографічні стилі */
body {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-regular);
  line-height: var(--line-height-normal);
  color: #fff;
}

/* Заголовки (h1-h6) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: var(--font-light);
  line-height: var(--line-height-tight);
}

h1 {
  font-size: var(--h1-size-xl);
  letter-spacing: var(--letter-spacing-tight);
}

h2 {
  font-size: var(--h2-size-xl);
  letter-spacing: var(--letter-spacing-tight);
}

h3 {
  font-size: var(--h3-size-xl);
  font-weight: var(--font-light);
}

h4 {
  font-size: var(--h4-size-xl);
  font-weight: var(--font-regular);
}

h5 {
  font-size: var(--h5-size-xl);
  font-weight: var(--font-regular);
}

h6 {
  font-size: var(--h6-size-xl);
  font-weight: var(--font-medium);
  letter-spacing: var(--letter-spacing-wide);
}

/* Абзаци та текстові стилі */
p {
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: var(--line-height-normal);
  font-weight: var(--font-regular); /* 400 - початкова вага для десктопу */
}

.lead {
  font-size: var(--text-xl);
  line-height: var(--line-height-loose);
  margin-bottom: 1.5rem;
  font-weight: var(--font-regular);
}

.small, small {
  font-size: var(--text-sm);
  line-height: var(--line-height-normal);
}

.caption {
  font-size: var(--text-xs);
  line-height: 1.4;
  letter-spacing: var(--letter-spacing-wide);
}

/* Додаткові текстові класи */
.text-light {
  font-weight: var(--font-light);
}

.text-regular {
  font-weight: var(--font-regular);
}

.text-medium {
  font-weight: var(--font-medium);
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
}

/* Типографічні блоки */
blockquote {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--accent-color);
  font-size: var(--text-xl);
  font-weight: var(--font-light);
  line-height: var(--line-height-loose);
  font-style: italic;
}

blockquote cite {
  display: block;
  margin-top: 1rem;
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: var(--font-regular);
  color: rgba(255, 255, 255, 0.7);
}

/* Списки */
ul, ol {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

ul li, ol li {
  margin-bottom: 0.5rem;
}

/* Інші типографічні елементи */
.section-heading {
  margin-bottom: 2rem;
  position: relative;
}

.section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  margin-top: 0.5rem;
  background-color: var(--accent-color);
}

.section-heading--center {
  text-align: center;
}

.section-heading--center::after {
  margin-left: auto;
  margin-right: auto;
}

/* Адаптивна типографіка для різних екранів */

/* Large Desktops (1201px-1400px) */
@media (max-width: 1400px) {
  h1 { font-size: var(--h1-size-lg); }
  h2 { font-size: var(--h2-size-lg); }
  h3 { font-size: var(--h3-size-lg); }
  h4 { font-size: var(--h4-size-lg); }
  h5 { font-size: var(--h5-size-lg); }
  h6 { font-size: var(--h6-size-lg); }
}

/* Medium-Large Desktops (993px-1200px) */
@media (max-width: 1200px) {
  h1 { font-size: var(--h1-size-lg); }
  h2 { font-size: var(--h2-size-lg); }
  h3 { font-size: var(--h3-size-lg); }
  h4 { font-size: var(--h4-size-lg); }
  h5 { font-size: var(--h5-size-lg); }
  h6 { font-size: var(--h6-size-lg); }
  
  blockquote {
    font-size: 1.375rem;
    padding: 0.875rem 1.25rem;
  }
}

/* Tablets (769px-992px) */
@media (max-width: 992px) {
  body {
    font-size: var(--text-md);
  }
  
  h1 { font-size: var(--h1-size-md); }
  h2 { font-size: var(--h2-size-md); }
  h3 { font-size: var(--h3-size-md); }
  h4 { font-size: var(--h4-size-md); }
  h5 { font-size: var(--h5-size-md); }
  h6 { font-size: var(--h6-size-md); }
  
  /* На планшетах трошки зменшуємо вагу тексту */
  p { 
    font-weight: var(--font-light); /* 300 - тонший */
    letter-spacing: 0.01em;
  }
  
  .lead {
    font-size: 1.125rem;
    font-weight: var(--font-light);
  }
  
  blockquote {
    font-size: 1.25rem;
    margin: 1.5rem 0;
  }
  
  .slide-title, .slide-description, 
  .footer-heading, .footer-links a, .footer-desc,
  .nav-link, .dropdown-item, .submenu-item {
    font-weight: var(--font-light);
  }
}

/* Small Tablets (577px-768px) */
@media (max-width: 768px) {
  h1 { font-size: var(--h1-size-sm); }
  h2 { font-size: var(--h2-size-sm); }
  h3 { font-size: var(--h3-size-sm); }
  h4 { font-size: var(--h4-size-sm); }
  h5 { font-size: var(--h5-size-sm); }
  h6 { font-size: var(--h6-size-sm); }
  
  /* На малих планшетах також використовуємо тонкий шрифт */
  p { 
    font-weight: var(--font-light); /* 300 - тонший */ 
    letter-spacing: 0.01em; /* Трошки збільшимо міжлітерний інтервал для кращої читабельності */
  }
  
  .lead {
    font-size: 1.0625rem;
    font-weight: var(--font-light);
  }
  
  .section-heading {
    margin-bottom: 1.5rem;
  }
  
  .section-heading::after {
    width: 50px;
  }
  
  .slide-title, .slide-description, 
  .footer-heading, .footer-links a, .footer-desc,
  .nav-link, .dropdown-item, .submenu-item, .menu-item {
    font-weight: var(--font-light);
    letter-spacing: 0.01em;
  }
}

/* Mobile (до 576px) */
@media (max-width: 576px) {
  body {
    font-size: var(--text-sm);
  }
  
  h1 { font-size: var(--h1-size-xs); }
  h2 { font-size: var(--h2-size-xs); }
  h3 { font-size: var(--h3-size-xs); }
  h4 { font-size: var(--h4-size-xs); }
  h5 { font-size: var(--h5-size-xs); }
  h6 { font-size: var(--h6-size-xs); }
  
  /* На мобільних використовуємо найтонший шрифт */
  p { 
    font-weight: var(--font-light); /* 300 - тонший */ 
    letter-spacing: 0.015em; /* Ще трошки збільшимо міжлітерний інтервал для кращої читабельності */
    line-height: 1.4; /* Зменшимо відстань між рядками для компактності */
  }
  
  .lead {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: var(--font-light);
    letter-spacing: 0.015em;
  }
  
  blockquote {
    font-size: 1.125rem;
    padding: 0.75rem 1rem;
    margin: 1.25rem 0;
    font-weight: var(--font-light);
  }
  
  .section-heading::after {
    width: 40px;
    margin-top: 0.375rem;
  }
  
  .slide-title { 
    font-weight: var(--font-light);
    letter-spacing: -0.01em;
  }

  .slide-description, 
  .footer-heading, .footer-links a, .footer-desc,
  .nav-link, .dropdown-item, .submenu-item, .menu-item,
  .copyright, .footer-bottom-links {
    font-weight: var(--font-light);
    letter-spacing: 0.015em;
  }

}

/* Додаткові адаптації для дуже малих екранів */
@media (max-width: 359px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }
  h5 { font-size: 0.9375rem; }
  h6 { font-size: 0.875rem; }
  
  /* Для найменших екранів максимально полегшуємо текст */
  p { 
    font-weight: var(--font-light); /* 300 - найтонший доступний */
    letter-spacing: 0.02em; /* Збільшений міжлітерний інтервал */
    line-height: 1.3; /* Компактніший інтерліньяж */
    font-size: 0.8rem; /* Додатково зменшуємо розмір тексту */
  }
  
  .lead {
    font-size: 0.9375rem;
    font-weight: var(--font-light);
    line-height: 1.3;
    letter-spacing: 0.02em;
  }
  
}

/* Стилі для контентних розділів сайту */
.content-section {
  margin-bottom: 3rem;
}

.content-section h2 {
  margin-bottom: 1.5rem;
}

.content-section p {
  margin-bottom: 1rem;
}

/* Спеціальні класи для керування відступами тексту */
.text-spacing-sm {
  margin-bottom: 0.5rem;
}

.text-spacing-md {
  margin-bottom: 1rem;
}

.text-spacing-lg {
  margin-bottom: 1.5rem;
}

.text-spacing-xl {
  margin-bottom: 2rem;
}

/* Класи для налаштування кольору тексту */
.text-primary {
  color: #fff;
}

.text-secondary {
  color: rgba(255, 255, 255, 0.8);
}

.text-muted {
  color: rgba(255, 255, 255, 0.6);
}

.text-accent {
  color: var(--accent-color);
}

/* TYPOGRAPHY.CSS - END  */



svg use {
  fill: white !important;
}

#logo-allbikes path,
.fil0 {
  fill: white !important;
  transition: fill 0.3s ease;
}

.nav-link:hover #logo-allbikes path,
.nav-link:hover .fil0 {
  fill: #F05D23 !important;
}

/* Додатковий стиль для виправлення на малих пристроях */
@media (max-width: 576px) {
  svg, svg use, svg path, .fil0 {
    fill: white !important;
  }
  
  /* При наведенні або активації повертаємо акцентний колір */
  .nav-link:hover svg use,
  .nav-link:hover svg path,
  .nav-link:hover .fil0 {
    fill: #F05D23 !important;
  }
}













/* Стилі для тексту "Close" біля бургер-іконки */
.close-text {
  position: absolute;
  left: -50px; /* Початково зсунуто вліво за межі кнопки */
  color: var(--burger-menu-text, #fff);
  font-size: 14px;
  font-weight: var(--font-medium, 500);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease, left 0.3s ease;
  transform: translateX(10px);
  cursor: pointer; /* Додаємо курсор-поінтер для вказівки, що це клікабельний елемент */
  white-space: nowrap; /* Запобігти перенесенню тексту */
  padding-bottom: 3px;
}

/* Видаляємо ефект наведення для неактивного стану */

/* Коли меню активне, показуємо текст "Close" */
.burger-toggle.active .close-text {
  opacity: 1;
  left: -40px;
  transform: translateX(0);
}

/* При наведенні на активну кнопку, змінюємо колір тексту */
.burger-toggle.active:hover .close-text {
  color: var(--burger-menu-primary, #00A5B5);
}





.htmx-indicator {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0,0,0,0.7);
  color: white;
  padding: 15px;
  border-radius: 5px;
  z-index: 1000;
}

.htmx-request .htmx-indicator {
  display: block;
}




.mfr-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 15px 0;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background-color: #f1f2f4;
  color: #858585;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.category-tag:hover {
  background-color: #e4e6e9;
  cursor: pointer;
}






/* Базові стилі для списків у картках компаній */
.mfr-info-section ul {
  list-style-type: none;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.mfr-info-section ul li {
  position: relative;
  margin-bottom: 0.75rem;
  line-height: 1.5;
  color: #333;
}

/* Створення стилізованих маркерів списку */
.mfr-info-section ul li::before {
  content: "•";
  position: absolute;
  left: -1.2rem;
  color: #000000; /* Можна замінити на колір, який відповідає вашій кольоровій схемі */
  font-weight: bold;
  font-size: 1.2em;
}

/* Стилі для тексту зі стилізацією */
.mfr-info-section ul li b,
.mfr-info-section ul li strong {
  font-weight: 600;
}

/* Стилі для останнього елемента списку, щоб видалити зайвий відступ знизу */
.mfr-info-section ul li:last-child {
  margin-bottom: 0;
}

/* Стилі для відступу після списку перед беджами */
.mfr-info-section .pillbadges_move {
  margin-top: 1.5rem;
}

/* Стилі для беджів/пігулок */
.badge.rounded-pill.bg-pillbadges {
  background-color: #f5f5f5;
  color: #333;
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  border-radius: 2rem;
  font-weight: 500;
  border: 1px solid #e0e0e0;
}

.badge.rounded-pill.bg-pillbadges:hover {
  background-color: #e9e9e9;
}







.mfr-clear-saved-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 10px 0;
}

.mfr-clear-saved-filters:hover {
  background-color: #e9ecef;
  color: #d32f2f;
}

.mfr-clear-saved-filters svg {
  transition: all 0.2s ease;
}

.mfr-clear-saved-filters:hover svg {
  stroke: #d32f2f;
}





/* Стиль для статистики виробників */
.manufacturers-stats {
  color: #102542;
  font-size: 0.9rem;
  margin-bottom: 20px;
  padding: 12px 15px;
  background-color: rgba(84, 194, 192, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(84, 194, 192, 0.2);
  font-weight: var(--font-medium);
  display: flex;
  align-items: center;
}

.manufacturers-stats::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent-color);
  border-radius: 50%;
  margin-right: 8px;
}



/* CSS для анімації іконки + */
.expand-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease, color 0.3s ease; 
  display: inline-block;
}

.expand-icon.active, 
.menu-item.active .expand-icon {
  transform: rotate(45deg); /* Обертаємо на 45 градусів для ефекту хрестика */
  color: #00A5B5; /* Змінюємо колір на акцентний */
}

/* Стилі для тексту "Close" біля бургер-іконки */
.close-text {
  position: absolute;
  left: -50px; /* Початково зсунуто вліво за межі кнопки */
  color: var(--burger-menu-text, #fff);
  font-size: 14px;
  font-weight: var(--font-medium, 500);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease, left 0.3s ease;
  transform: translateX(10px);
  cursor: pointer;
  white-space: nowrap;
  padding-bottom: 3px;
}

/* Коли меню активне, показуємо текст "Close" */
.burger-toggle.active .close-text {
  opacity: 1;
  left: -40px;
  transform: translateX(0);
}

/* При наведенні на активну кнопку, змінюємо колір тексту */
.burger-toggle.active:hover .close-text {
  color: var(--burger-menu-primary, #00A5B5);
}

/* CSS для анімації іконки + */
.expand-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease, color 0.3s ease; 
  display: inline-block;
}

.expand-icon.active, 
.menu-item.active .expand-icon {
  transform: rotate(45deg); /* Обертаємо на 45 градусів для ефекту хрестика */
  color: #00A5B5; /* Змінюємо колір на акцентний */
}