:root {
  --color-base: #2c463b;
  --color-light: #ffffff;
  --color-secondary: #eaedf0;
  --color-accent: #f98f1d;
  --container-width: 1200px;
}

/* === ГЛОБАЛЬНЫЙ ФИКС ГОРИЗОНТАЛЬНОГО СКРОЛЛА === */
*, *::before, *::after {
  box-sizing: border-box; /* Базовая математика CSS: паддинги и бордеры считаются внутрь ширины, а не наружу */
}

html, body {
  max-width: 100%;
  overflow-x: clip; /* КРИТИЧНО: используем clip, а не hidden, чтобы не сломать position: sticky у шапки */
}

/* Защита от выпирания векторной графики и медиа на узких экранах */
img, svg, video {
  max-width: 100%;
  height: auto;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background-color: var(--color-light);
  color: var(--color-base);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- ШАПКА И ЛОГОТИП --- */
.header-main {
  background-color: var(--color-base);
  color: var(--color-light);
  padding:3px 0; /* Компактная высота шапки */
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-main .logo {
  display: flex; 
  margin-left: -46px; /* Сдвиг логотипа левее */
}

.header-main .logo img {
  width: 210px; 
  height: auto; 
  display: block; /* Убирает системный отступ снизу у картинок */
}

/* --- НАВИГАЦИЯ (ПРЕМИАЛЬНЫЙ СТИЛЬ) --- */
.nav-main ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 36px; /* Увеличили "воздух" между пунктами для премиальности */
}

.nav-main a {
  position: relative;
  color: var(--color-light);
  text-decoration: none;
  font-size: 0.95rem; 
  font-weight: 500;
  letter-spacing: 0.5px; /* Профессиональный типографский трекинг */
  padding: 8px 0; /* Расширяем физическую зону клика для удобства */
  transition: opacity 0.3s ease, color 0.3s ease;
}

/* Скрытая акцентная линия для анимации */
.nav-main a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0; /* Прижимаем линию к нижнему краю padding-зоны */
  width: 0; /* Изначально линии нет */
  height: 2px;
  background-color: #f98f1d; /* Фирменный оранжевый акцент */
  /* Дорогая кривая Безье: резкий старт и очень плавное торможение в конце */
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
}

/* Эксклюзивный эффект фокуса: при наведении на блок меню, затемняем ВСЕ ссылки */
.nav-main:hover a {
  opacity: 0.4;
}

/* Но та ссылка, на которую навели курсор, возвращает 100% яркость */
.nav-main a:hover {
  opacity: 1;
}

/* И у нее вырастает подчеркивание */
.nav-main a:hover::after {
  width: 100%;
}

/* --- ХЛЕБНЫЕ КРОШКИ (ЭКСПЕРТНАЯ ТИПОГРАФИКА) --- */
.breadcrumbs-wrapper {
  background-color: #f5f7f7; /* Утвержденный светлый фон */
  padding: 12px 0; /* Делаем полосу чуть тоньше для элегантности */
  border-bottom: 1px solid rgba(0, 0, 0, 0.04); /* Едва уловимая линия отбивки от основного контента */
}

/* Основной контейнер крошек */
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.85rem; 
  font-weight: 400; /* Убрали жирность (с 500 на 400), теперь шрифт классический Regular */
  color: #8b9591; 
}

/* Типографское тире после каждого пункта, кроме последнего */
.breadcrumbs li:not(:last-child)::after {
  content: '—'; /* Заменили слэш на тире */
  margin: 0 10px; 
  color: #c4ccca; 
  font-weight: 400;
}

/* Стили для ссылок (предыдущие страницы) */
.breadcrumbs a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Подсветка ссылки при наведении */
.breadcrumbs a:hover {
  color: #f98f1d; /* Фирменный оранжевый акцент */
}

/* Текущая страница (последний пункт) */
.breadcrumbs li:last-child {
  color: var(--color-base); /* Уверенный темно-зеленый цвет для текущего раздела */
  pointer-events: none; /* Отключаем кликбельность для текущей страницы */
}

.hero-section {
  padding: 60px 0;
  background-color: var(--color-secondary);
}

.hero-title {
  margin: 0;
  font-size: 2.5rem;
}

/* --- ЭТАЛОННЫЙ ДВОЙНОЙ ФУТЕР --- */
.footer-wrapper {
  width: 100%;
  margin-top: auto; 
}

/* 1. Верхний светлый футер */
.footer-top {
  background-color: #f4f0e8;
  color: var(--color-base);
  padding: 80px 0; /* Просторные отступы для премиальности */
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

/* Заголовки колонок */
.footer-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px; /* Усиленный трекинг для дорогого вида */
  font-weight: 700;
  margin: 0 0 24px 0;
  color: var(--color-base);
  opacity: 0.4; /* Сильно приглушаем для контраста с основным текстом */
}

/* Списки ссылок и контактов */
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0 0 48px 0; 
}

.footer-list:last-child {
  margin-bottom: 0;
}

.footer-list li {
  margin-bottom: 16px; 
}

.footer-list li:last-child {
  margin-bottom: 0;
}

/* Ссылки: добавляем flex для иконок и анимацию сдвига */
.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 12px; /* Воздух между иконкой и текстом */
  font-size: 0.95rem;
  color: var(--color-base);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-list a:hover {
  color: var(--color-accent); 
  transform: translateX(4px); /* Премиальное смещение текста вправо при наведении */
}

/* Стили векторных иконок (почта, телефон, соцсети) */
.footer-icon {
  width: 18px;
  height: 18px;
  stroke: var(--color-base); /* Цвет линии */
  stroke-width: 1.5; /* Тонкая, изящная линия (не грубая 2px) */
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.5; /* Изначально иконки полупрозрачные */
  transition: all 0.3s ease;
}

/* При наведении иконка загорается фирменным оранжевым */
.footer-list a:hover .footer-icon {
  stroke: var(--color-accent);
  opacity: 1;
}

/* Расписание */
.footer-schedule {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-schedule li {
  font-size: 0.95rem;
  color: var(--color-base);
  font-weight: 400; 
  margin-bottom: 10px;
}

/* 2. Логотипы платежных систем (Картинки) */
.payment-systems {
  display: flex;
  flex-direction: column; 
  align-items: flex-start; 
  gap: 20px; 
}

.payment-icon {
  height: 24px; /* Универсальная высота для всех картинок */
  width: auto;
  object-fit: contain; /* Защищает картинки от сплющивания */
  opacity: 0.5; /* Приглушаем яркость */
  filter: grayscale(100%); /* Делаем картинки стильно-серыми */
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
}

/* Эффект взаимодействия */
.payment-systems:hover .payment-icon {
  opacity: 0.15; /* Остальные тускнеют */
}

.payment-systems .payment-icon:hover {
  opacity: 1; /* Выделенная становится яркой */
  filter: grayscale(0%); /* Возвращаем картинке ее родные цвета! */
  transform: translateX(4px); /* Сдвиг вправо */
}

/* 3. Нижний темный футер */
.footer-bottom {
  background-color: var(--color-base);
  color: var(--color-light);
  padding: 24px 0; 
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  opacity: 0.6; /* Приглушаем копирайт, чтобы не бил по глазам */
}

/* === АДАПТИВНОСТЬ ФУТЕРА === */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
  }
}

@media (max-width: 576px) {
  .footer-top {
    padding: 50px 0; 
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

/* --- ПРАВАЯ ЧАСТЬ ШАПКИ (МЕНЮ + ИКОНКИ) --- */
.header-right {
  display: flex;
  flex-direction: row; 
  align-items: center; 
  gap: 32px; /* Расстояние между меню и блоком иконок */
}

/* Контейнер для группировки корзины и кабинета */
.header-icons {
  display: flex;
  align-items: center;
  gap: 16px; /* Аккуратное расстояние между самими иконками */
}

/* Общие стили для SVG-иконок */
.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-light); 
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.header-icon svg {
  stroke: var(--color-light); 
}

.header-icon:hover {
  opacity: 0.7; 
}

/* Адаптив: корректировка отступов для мобильных экранов */
@media (max-width: 768px) {
  .header-right {
    gap: 16px;
  }
  .header-icons {
    gap: 12px;
  }
}

/* --- ВСПЛЫВАЮЩИЕ ПОДСКАЗКИ (ТУЛТИПЫ) ДЛЯ ИКОНОК --- */
.header-icon {
  position: relative; /* Создаем точку отсчета для абсолютного позиционирования подсказок */
}

/* Сам прямоугольник с текстом */
.header-icon::after {
  content: attr(aria-label); /* Берем текст прямо из HTML атрибута */
  position: absolute;
  top: 100%; /* Опускаем под иконку */
  left: 50%;
  transform: translateX(-50%) translateY(10px); /* Смещаем по центру и чуть вниз для анимации */
  background-color: var(--color-light); /* Белый фон */
  color: var(--color-base); /* Темно-зеленый текст */
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap; /* Запрещаем тексту переноситься на новые строки */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Мягкая тень для объема */
  pointer-events: none; /* Чтобы подсказка не перекрывала клики */
  
  /* Начальное скрытое состояние */
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 10;
}

/* Треугольник (стрелочка) над подсказкой */
.header-icon::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px); /* Сдвигаем вниз, чтобы треугольник прилип к прямоугольнику */
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent var(--color-light) transparent; /* Рисуем белый треугольник, смотрящий вверх */
  pointer-events: none;
  
  /* Начальное скрытое состояние */
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 10;
}

/* Анимация появления при наведении курсора */
.header-icon:hover::after,
.header-icon:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(16px); /* Плавное движение вниз до финальной точки (текст) */
}

.header-icon:hover::before {
  transform: translateX(-50%) translateY(4px); /* Финальная точка для треугольника */
}

/* На мобильных экранах (где нет мышки) подсказки лучше отключать */
@media (max-width: 768px) {
  .header-icon::after,
  .header-icon::before {
    display: none;
  }
}

/* --- КОРРЕКТИРОВКА ТУЛТИПА ДЛЯ КРАЙНЕЙ ПРАВОЙ ИКОНКИ (КАБИНЕТ) --- */

/* Сдвигаем только текстовый прямоугольник влево */
.header-icons .header-icon:last-child::after {
  left: auto; /* Отключаем базовое центрирование слева */
  right: -10px; /* Жестко привязываем правый край подсказки */
  transform: translateY(10px); /* Убираем смещение по оси X, оставляем только Y */
}

/* Корректируем анимацию наведения для смещенного прямоугольника */
.header-icons .header-icon:last-child:hover::after {
  transform: translateY(16px); /* Анимация движения только вниз */
}

/* --- ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ --- */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 8px; /* Небольшой визуальный отрыв от иконок */
}

/* Кнопка текущего языка */
.lang-current {
  background: none;
  border: none;
  color: var(--color-light);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px; /* Расстояние между текстом и стрелочкой */
  padding: 8px 0;
  transition: opacity 0.2s ease;
}

.lang-current:hover {
  opacity: 0.7;
}

/* Плавный поворот стрелочки при открытии меню */
.lang-switcher:hover .lang-arrow,
.lang-switcher:focus-within .lang-arrow {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.lang-arrow {
  transition: transform 0.3s ease;
}

/* Выпадающий список */
.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0; /* Выравниваем по правому краю кнопки */
  margin-top: 4px;
  background-color: rgba(255, 255, 255, 0.9); /* Полупрозрачный светлый фон */
  border-radius: 6px; /* Чуть увеличили внешнее скругление для эстетики */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 80px;
  text-align: center;
  padding: 4px; /* ВАЖНО: это создает ту самую красивую белую рамку-ободок */
  
  /* Начальное скрытое состояние */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 20;
}

/* Открытие меню при наведении или клике (фокусе) */
.lang-switcher:hover .lang-dropdown,
.lang-switcher:focus-within .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Ссылки внутри меню */
.lang-dropdown a {
  display: block;
  padding: 6px 12px; /* Слегка уменьшили, чтобы компенсировать padding контейнера */
  color: var(--color-base); /* Темно-зеленый текст */
  text-decoration: none;
  font-weight: 500;
  border-radius: 4px; /* ВАЖНО: аккуратно скругляем внутреннюю кнопку */
  transition: all 0.2s ease;
}

/* Фирменный ховер: фон становится темно-зеленым, текст - белым */
.lang-dropdown a:hover {
  background-color: var(--color-base);
  color: var(--color-light);
}

/* --- КНОПКА МОБИЛЬНОГО МЕНЮ (ГАМБУРГЕР) --- */
.mobile-menu-toggle {
  display: none; /* Скрыто на десктопе */
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  gap: 7px; /* Расстояние между линиями */
  flex-direction: column;
  justify-content: center;
  align-items: flex-end; /* Линии прижаты вправо */
  z-index: 100;
}

.mobile-menu-toggle span {
  display: block;
  width: 40px;      /* Твоя новая ширина */
  height: 2px;    /* Твоя новая толщина */
  background-color: var(--color-light);
  border-radius: 1px;
  transition: all 0.3s ease;
}

/* --- АДАПТИВНОСТЬ (МОБИЛЬНЫЕ УСТРОЙСТВА) --- */
@media (max-width: 768px) {
  /* 1. Увеличиваем высоту шапки */
  .header-main {
    padding: 16px 0;
  }

  /* 2. Смещаем логотип вправо */
  .header-main .logo {
    margin-left: 0; 
  }

/* Твой размер логотипа для мобильных */
  .header-main .logo img {
    width: 186px; 
  }

  /* Показываем гамбургер и прячем десктопное меню */
  .mobile-menu-toggle {
    display: flex; 
    margin-right: -12px;
  }
  
  .header-right {
    display: none; 
  }
}

/* --- МОБИЛЬНОЕ МЕНЮ (ПОЛНОЭКРАННОЕ С ТЕМНО-ЗЕЛЕНЫМ ФОНОМ) --- */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-base); /* Фирменный темно-зеленый фон */
  z-index: 99; /* Ниже гамбургера (100), но выше всего остального */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  /* Начальное состояние (скрыто, сдвинуто вверх) */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Плавный кинематографичный въезд */
}

/* Состояние открытого меню */
.mobile-menu-overlay.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Ссылки внутри мобильного меню */
.mobile-menu-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-menu-nav li {
  margin-bottom: 24px;
  
  /* Эффект последовательного появления пунктов (каскад) */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Когда меню активно, пункты плавно появляются */
.mobile-menu-overlay.is-active .mobile-menu-nav li {
  opacity: 1;
  transform: translateY(0);
}

/* Задержки для создания каскада (первый пункт сразу, второй чуть позже и т.д.) */
.mobile-menu-overlay.is-active .mobile-menu-nav li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.is-active .mobile-menu-nav li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-overlay.is-active .mobile-menu-nav li:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-overlay.is-active .mobile-menu-nav li:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu-overlay.is-active .mobile-menu-nav li:nth-child(5) { transition-delay: 0.5s; }
.mobile-menu-overlay.is-active .mobile-menu-nav li:nth-child(6) { transition-delay: 0.6s; }

.mobile-menu-nav a {
  color: var(--color-light);
  text-decoration: none;
  font-size: 1.5rem; /* Крупный читабельный шрифт */
  font-weight: 500;
  letter-spacing: 1px;
  position: relative;
}

/* Оранжевое подчеркивание при нажатии/наведении */
.mobile-menu-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

.mobile-menu-nav a:hover::after,
.mobile-menu-nav a:active::after {
  width: 100%;
}

/* Блок с иконками (язык, кабинет, корзина) в мобильном меню */
.mobile-menu-actions {
  margin-top: 40px;
  display: flex;
  gap: 32px;
  align-items: center;
  
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease 0.7s, transform 0.4s ease 0.7s; /* Появляется самым последним */
}

.mobile-menu-overlay.is-active .mobile-menu-actions {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-actions .header-icon {
  width: 32px;
  height: 32px;
}

.mobile-menu-actions .lang-switcher {
  margin-left: 0;
}

/* Анимация превращения гамбургера в крестик (X) */
.mobile-menu-toggle.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.mobile-menu-toggle.is-active span:nth-child(2) {
  opacity: 0; /* Средняя линия исчезает */
}
.mobile-menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* --- СКРЫТИЕ ЭЛЕМЕНТОВ ПРИ ПРОКРУТКЕ --- */
body.menu-open {
  overflow: hidden; /* Запрет прокрутки страницы, когда меню открыто */
}

/* --- ПУЛЬСИРУЮЩИЙ ИНДИКАТОР "ОНЛАЙН" ДЛЯ КАТАЛОГА --- */

/* Создаем саму красную точку */
.nav-main a[href="https://store.starway.com.ua/"]::before,
.nav-main a[href="https://store.starway.com.ua/ru"]::before,
.mobile-menu-nav a[href="https://store.starway.com.ua/"]::before,
.mobile-menu-nav a[href="https://store.starway.com.ua/ru"]::before {
  content: '';
  position: absolute;
  top: 4px;       /* Поднимаем над текстом */
  right: -14px;   /* Выносим вправо за пределы слова */
  width: 6px;     /* Компактный размер для десктопа */
  height: 6px;
  background-color: #ff3b30; /* Классический сигнальный красный (Apple Red) */
  border-radius: 50%;
  animation: pulse-online 2s infinite; /* Бесконечный цикл 2 секунды */
  pointer-events: none; /* Чтобы точка не мешала кликать на ссылку */
}

/* Для мобильного меню (где шрифт крупнее) немного увеличиваем точку и корректируем позицию */
.mobile-menu-nav a[href="https://store.starway.com.ua/"]::before {
  top: 2px;
  right: -18px;
  width: 8px;
  height: 8px;
}

/* Анимация "радара" (расширяющаяся затухающая тень) */
@keyframes pulse-online {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(255, 59, 48, 0); /* Волна расходится на 8px и растворяется */
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
  }
}

/* --- СТРАНИЦА "О КОМПАНИИ" --- */

.page-content {
  background-color: var(--color-light); /* Белый фон от крошек до футера */
  padding: 60px 0 80px; /* Просторные отступы */
}

/* Сетка контента: текст слева, карточка оборудования справа */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

.page-title {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 2.5rem;
  color: var(--color-base);
  line-height: 1.2;
}

.lead-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-base);
  margin-bottom: 24px;
  line-height: 1.6;
}

.about-main-text h2 {
  font-size: 1.8rem;
  margin: 40px 0 20px;
  color: var(--color-base);
}

.about-main-text p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: #4a5551; /* Чуть смягченный цвет для легкого чтения больших массивов текста */
}

/* Списки с кастомными буллитами */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.6;
  color: #4a5551;
}

/* Оранжевые квадратные буллиты в стиле техно-логики */
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
}

.feature-list strong {
  color: var(--color-base);
}

/* Карточка технического парка справа (эффект парения) */
.tech-park-card {
  background-color: #f5f7f7; /* Светло-серый фон для выделения */
  padding: 40px 32px;
  border-radius: 8px;
  border: 1px solid var(--color-accent); /* Тонкая фирменная рамка со всех сторон */
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26); /* Мягкая глубокая тень для иллюзии парения */
}

.tech-park-card h3 {
  margin-top: 0;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.tech-park-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  color: #4a5551;
}

.tech-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-list li {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tech-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr; /* На планшетах и телефонах колонки выстраиваются друг под другом */
    gap: 40px;
  }
}

/* --- АКТИВНЫЙ ПУНКТ МЕНЮ (ТЕКУЩАЯ СТРАНИЦА) --- */
.nav-main a.active::after,
.nav-main a[aria-current="page"]::after,
.mobile-menu-nav a.active::after,
.mobile-menu-nav a[aria-current="page"]::after {
  width: 100%;
}

/* Опционально: фиксируем яркость текста для активного пункта, чтобы он не затухал при ховере на другие пункты */
.nav-main:hover a.active {
  opacity: 1 !important;
}

/* --- ФИКСИРОВАННАЯ ШАПКА (STICKY HEADER) --- */
.header-main {
  position: sticky;
  top: 0;
  z-index: 1000; /* Гарантирует, что шапка всегда поверх любого контента и модальных окон */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45); /* Легкая тень для визуального отделения при скролле */
}

/* Убираем стандартную рамку/обводку браузера при клике на логотип */
.header-main .logo,
.header-main .logo:focus,
.header-main .logo:active {
  outline: none;
  border: none;
  box-shadow: none;
}

/* --- 1. МИКРО-ИНДИКАТОРЫ ДЛЯ НАВИГАЦИИ (Серое -> Оранжевое) --- */
.footer-list.nav-links a {
  position: relative;
  padding-left: 14px; /* Создаем место для кружка слева от текста */
}

.footer-list.nav-links a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px; /* Элегантный, крошечный размер */
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-base);
  opacity: 0.25; /* Благородный приглушенный цвет в состоянии покоя */
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* При наведении: кружок загорается оранжевым и чуть увеличивается */
.footer-list.nav-links a:hover::before {
  background-color: var(--color-accent);
  opacity: 1;
  transform: translateY(-50%) scale(1.5); /* Микро-анимация масштаба */
}

/* --- 2. СТАТУСНЫЕ МАРКЕРЫ ДЛЯ ГРАФИКА РАБОТЫ (Зеленый / Красный) --- */
.footer-schedule li {
  position: relative;
  padding-left: 16px;
}

.footer-schedule li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px; /* Чуть крупнее, чем у навигации, для заметности */
  height: 6px;
  border-radius: 50%;
}

/* Первый пункт (Рабочие дни) - Apple Green */
.footer-schedule li:nth-child(1)::before {
  background-color: #34c759;
  box-shadow: 0 0 8px rgba(52, 199, 89, 0.4); /* Легкое свечение */
}

/* Второй пункт (Выходные) - Apple Red */
.footer-schedule li:nth-child(2)::before {
  background-color: #ff3b30;
}

/* --- Изображение в боковой колонке (Страница О компании) --- */
.sidebar-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--color-secondary); /* Тонкая рамка цвета(#eaedf0) */
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26); /* Тень в точности как у карточки технопарка */
  margin-bottom: 32px; 
  display: block; 
  object-fit: cover; 
}

/* ==========================================================================
   ГЛАВНАЯ СТРАНИЦА (HOME)
   ========================================================================== */

/* Убираем отступы сверху для главной страницы, чтобы слайдер был вплотную к шапке */
.home-page {
  padding-top: 0;
}

/* Общие глобальные классы */
.section-padding {
  padding: 80px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.section-title {
  margin: 0;
  font-size: 2.2rem;
  color: var(--color-base);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.link-more:hover {
  opacity: 0.7;
}

/* --- КНОПКИ --- */
.btn-primary {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-light);
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: #e07d12; /* Чуть более темный оранжевый при наведении */
  transform: translateY(-2px); /* Легкое поднятие кнопки */
}

/* =======================================
   БЛОК 1: ПРЕМІАЛЬНИЙ СТЕК (СТИЛІ КАРТОК)
   ======================================= */
.premium-stack-section {
  position: relative;
  width: 100%;
}

.stack-card {
  position: sticky;
  top: 60px; /* Відступ під фіксовану шапку */
  width: 100%;
  aspect-ratio: 1440 / 560;
  overflow: hidden;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: block; /* Залізобетонне скидання залишкових flex-стилів */
}

.stack-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.stack-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =======================================
   ЭТАЛОННАЯ КНОПКА (GLASSMORPHISM)
   ======================================= */
.premium-cta {
  position: absolute;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 8px 8px 24px;
  
  /* Ефект матового скла */
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  
  /* Типографіка та захист форми */
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap; /* 🔥 КРИТИЧНО: Забороняє тексту ламати кнопку */
  width: max-content;  /* Захист від розтягування контейнером */
  height: max-content; /* Захист від розтягування контейнером */
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Ефект заливки кольором */
.premium-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 1;
  border-radius: 50px;
}

/* Позиционирование текста и кружка */
.cta-text, .cta-circle {
  position: relative;
  z-index: 2;
}

/* =======================================
   ПРЕМІАЛЬНЕ ПІДКРЕСЛЕННЯ ТЕКСТУ
   ======================================= */
.cta-text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px; /* Відступ лінії від літер вниз */
  width: 100%;
  height: 2px; /* Елегантна товщина */
  background-color: var(--color-accent); /* Наш фірмовий помаранчевий */
  border-radius: 2px; /* М'які краї лінії */
  transition: background-color 0.4s ease;
}

/* При наведенні (коли кнопка стає помаранчевою), лінія стає білою */
.premium-cta:hover .cta-text::after {
  background-color: #fff;
}

.cta-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: background 0.4s ease, color 0.4s ease;
}

.cta-circle svg {
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- ХОВЕР-ЭФФЕКТЫ --- */
.premium-cta:hover {
  border-color: transparent;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.premium-cta:hover::before {
  transform: scaleX(1);
}

.premium-cta:hover .cta-circle {
  background: #fff;
  color: var(--color-accent);
}

.premium-cta:hover .cta-circle svg {
  transform: translate(2px, -2px);
}



/* =======================================
   ПУЛЬТ УПРАВЛЕНИЯ ПОЗИЦИЯМИ 
   ======================================= */
/* 
  ДЕСКТОП (1440x560). 
  Завжди скидай протилежні координати (auto), щоб кнопку не розірвало!
*/
.pos-slide-1 { bottom: 15%; right: 10%; top: auto; left: auto; } 
.pos-slide-2 { top: 60%; left: 45%; bottom: auto; right: auto; }      
.pos-slide-3 { bottom: 25%; right: 50%; top: auto; left: auto; }
.pos-slide-4 { top: 50%; right: 7%; bottom: auto; left: auto; }

/* МОБИЛЬНЫЙ (390x420) */
@media (max-width: 768px) {
  .stack-card {
    top: 70px;
    aspect-ratio: 390 / 420;
  }

  /* 🔥 ПОВНИЙ СКИДАННЯ десктопних координат для всіх 4 кнопок */
  .pos-slide-1, .pos-slide-2, .pos-slide-3, .pos-slide-4 { 
    top: auto !important; 
    bottom: 6% !important; 
    left: 50% !important; 
    right: auto !important;
    transform: translateX(-50%) !important; /* Ідеальне центрування */
  }
  
  .premium-cta {
    padding: 6px 6px 6px 20px;
    font-size: 0.75rem;
    gap: 12px;
  }
  
  .cta-circle {
    width: 32px;
    height: 32px;
  }
}

/* =======================================
   БЛОК 2: КАТАЛОГ (8 іконок)
   ======================================= */
.home-catalog {
  background-color: #fcfcfc; /* Дуже м'який фон для контрасту з білими картками */
}

/* ЗАГОЛОВКИ СЕКЦІЙ */
.section-header.center {
  text-align: center;
  margin-bottom: 48px; /* Дамо трохи більше "повітря" між заголовком і картками */
  width: 100%;
}

.section-header.center .section-title {
  display: inline-block;
  margin: 0 auto;
}

/* Сітка: 4 колонки на ПК */
.catalog-grid-8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Дизайн самої картки */
.cat-icon-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Контейнер для SVG-іконки */
.cat-icon-wrap {
  width: 90px;  /* Було 64px, стало 90px */
  height: 90px; /* Було 64px, стало 90px */
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.cat-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Типографіка назви розділу */
.cat-title {
  color: var(--color-base, #2C463B);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  transition: color 0.3s ease;
}

/* --- ХОВЕР ЕФЕКТИ --- */
.cat-icon-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-base); /* Фірмовий темно-зелений StarWay */
  /* М'яке помаранчеве свічення (використовуємо RGBA для прозорості) */
  box-shadow: 0 16px 40px rgba(44, 70, 59, 0.15); 
}

.cat-icon-card:hover .cat-icon-wrap {
  transform: scale(1.1); 
}

.cat-icon-card:hover .cat-title {
  color: var(--color-accent); /* Фірмовий помаранчевий StarWay */
}

/* =======================================
   АДАПТИВНІСТЬ ДЛЯ СІТКИ
   ======================================= */
/* Планшети (до 1024px): 3 колонки, останні вирівняються самі */
@media (max-width: 1024px) {
  .catalog-grid-8 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Великі телефони (до 768px) */
@media (max-width: 768px) {
  .catalog-grid-8 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .cat-icon-card {
    padding: 24px 12px;
  }
  .cat-icon-wrap {
    width: 64px; /* Було 48px, стало 64px */
    height: 64px;
    margin-bottom: 16px;
  }
  .cat-title {
    font-size: 0.95rem;
  }
}

/* Маленькі телефони (до 480px) */
@media (max-width: 480px) {
  .cat-icon-card {
    padding: 20px 10px;
    border-radius: 12px;
  }
  .cat-title {
    font-size: 0.85rem;
  }
}

/* Маленькі телефони (до 480px): 2 колонки, але ще компактніше */
@media (max-width: 480px) {
  .cat-icon-card {
    padding: 20px 10px;
    border-radius: 12px;
  }
  .cat-title {
    font-size: 0.85rem;
  }
}

/* Оптична компенсація для іконки стікерів */
img[src*="stic_nakl.svg"] {
  transform: scale(1.5); /* 1.25 означає збільшення на 25%. Можеш міняти на 1.3, 1.4 тощо */
}

/* =======================================
   БЛОК 3: ПОПУЛЯРНІ ТОВАРИ (ЕКСКЛЮЗИВ)
   ======================================= */
.popular-products {
  background-color: #fcfcfc; /* Дуже м'який фон сайту */
}

/* Сітка */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* --- САМА КАРТКА --- */
.portfolio-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* Ідеальний квадрат 800x800 */
  border-radius: 16px;
  overflow: hidden;
  display: block; /* Посилання працює як контейнер */
  background: #fff;
  text-decoration: none;
  
  /* Відриваємо картинку від фону сайту */
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transform: translateZ(0); /* Згладжування анімації */
}

/* Сама фотографія */
.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- ГРАДІЄНТНІ МАСКИ ДЛЯ ЧИТАБЕЛЬНОСТІ --- */
/* Верхня маска (завжди включена для тексту) */
.portfolio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
  pointer-events: none; /* Щоб клік проходив крізь маску */
}

/* Нижня маска (з'являється при наведенні для кнопки) */
.portfolio-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

/* --- ТЕКСТ ЗВЕРХУ --- */
.portfolio-title {
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  margin: 0;
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); /* Подвійний захист читабельності */
  transition: transform 0.5s ease;
}

/* --- КНОПКА ЗНИЗУ (ПОМАРАНЧЕВА) --- */
.btn-portfolio-hover {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 24px); /* Опущена вниз початково */
  opacity: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  
  /* Жодного оливкового! Тільки фірмовий акцент */
  background: var(--color-accent); 
  border-radius: 50px;
  white-space: nowrap;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.4); /* Гарне помаранчеве свічення */
}

/* =======================================
   ЕФЕКТИ ПРИ НАВЕДЕННІ (HOVER)
   ======================================= */
.portfolio-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12); /* Тінь стає глибшою */
}

.portfolio-card:hover img {
  transform: scale(1.08); /* Картинка повільно наближається */
}

.portfolio-card:hover::after {
  opacity: 1; /* З'являється нижній градієнт */
}

.portfolio-card:hover .portfolio-title {
  transform: translateY(-4px); /* Назва ледь піднімається вгору */
}

.portfolio-card:hover .btn-portfolio-hover {
  opacity: 1;
  transform: translate(-50%, 0); /* Кнопка виїжджає знизу на своє місце */
}

/* --- ІКОНКА КАЛЬКУЛЯТОРА (СХОВАНА НА ПК) --- */
.mobile-calc-icon {
  display: none;
}

/* =======================================
   АДАПТИВНІСТЬ ДЛЯ БЛОКУ ПОРТФОЛІО
   ======================================= */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  /* Ховаємо величезну текстову кнопку та чорний нижній градієнт */
  .btn-portfolio-hover {
    display: none !important;
  }
  .portfolio-card::after {
    display: none !important;
  }
  
  /* Трохи зменшуємо шрифт на мобільному */
  .portfolio-title {
    font-size: 1.15rem;
    top: 20px;
    left: 20px;
    right: 20px;
  }

  /* Показуємо іконку калькулятора */
  .mobile-calc-icon {
    display: flex;
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    
    /* Преміальний дизайн кружка: білий мат із легкою прозорістю */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    z-index: 3;
    
    /* Фірмовий помаранчевий колір іконки */
    color: var(--color-accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); /* Елегантна тінь */
  }

  .mobile-calc-icon svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* =======================================
   БЛОК 4: ПРОЦЕС ЗАМОВЛЕННЯ
   ======================================= */
.order-process {
  background-color: #ffffff;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.section-title.text-left {
  text-align: left;
  margin-bottom: 40px;
}

/* --- ВЕРТИКАЛЬНИЙ ТАЙМЛАЙН (TECH-LOGIC) --- */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
  position: relative;
}

/* Тонка лінія, що з'єднує кроки */
.process-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 20px;
  left: 17px; /* Центруємо лінію під цифрами */
  width: 2px;
  background: rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  z-index: 2;
}

/* Кружечки з цифрами */
.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 2px solid var(--color-base, #2C463B);
  color: var(--color-base, #2C463B);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
}

/* Анімація при наведенні на крок */
.process-step:hover .step-number {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.step-text {
  font-size: 1.1rem;
  line-height: 1.4;
  color: #333333;
  padding-top: 6px;
}

/* --- ПРИМІТКА ЗІ ЗІРОЧКОЮ --- */
.process-note {
  font-size: 0.9rem;
  color: #666666;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 40px;
  padding-left: 20px;
  border-left: 2px solid var(--color-accent); /* Легкий помаранчевий акцент збоку */
}

/* --- ІНТЕРАКТИВНА МІНІ-КАРТКА (TECH-LOGIC STYLE) --- */
.action-minicard.tech-style {
  box-sizing: border-box; /* ВАЖЛИВО: Виправляє горизонтальний скрол на телефонах! */
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px; /* Більш строгі, "технічні" кути */
  padding: 14px 16px 14px 20px;
  text-decoration: none;
  max-width: 420px;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* Мікро-сітка на фоні (з'являється при наведенні) */
.action-minicard.tech-style::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.tech-content {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* Пульсуючий індикатор "Система онлайн" */
.live-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-accent);
  animation: pulseTech 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseTech {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(255, 107, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

.minicard-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-base, #2C463B);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

/* Кнопка-стрілка (строгий інтерфейс) */
.tech-arrow {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-base, #2C463B);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.tech-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

/* --- ХОВЕР АНІМАЦІЇ --- */
.action-minicard.tech-style:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.12);
  transform: translateY(-2px);
}

.action-minicard.tech-style:hover::before {
  opacity: 1; /* Проявляємо інженерну сітку */
}

.action-minicard.tech-style:hover .tech-arrow {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.action-minicard.tech-style:hover .tech-arrow svg {
  transform: translateX(4px); /* Стрілка робить технічний зсув */
}

/* --- КОНТЕЙНЕР ДЛЯ GIF --- */
.media-container {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #fcfcfc;
}

.media-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* =======================================
   АДАПТИВНІСТЬ
   ======================================= */
@media (max-width: 992px) {
  /* Перетворюємо сітку на гнучкий контейнер для сортування */
  .process-grid {
    display: flex;
    flex-direction: column;
    gap: 0; 
  }
  
  /* "Розчиняємо" оболонку лівої колонки, щоб її елементи стали самостійними */
  .process-content {
    display: contents;
  }
  
  /* 1. Заголовок йде ПЕРШИМ */
  .section-title.text-left {
    order: 1;
    text-align: center;
    margin-bottom: 32px;
  }
  
  /* 2. Анімація (GIF) йде ДРУГОЮ (одразу під заголовком) */
  .process-media {
    order: 2;
    margin-bottom: 40px;
    width: 100%;
  }
  
  /* 3. Таймлайн (Кроки) йде ТРЕТІМ */
  .process-timeline {
    order: 3;
    margin-bottom: 24px;
  }
  
  /* 4. Примітка зі зірочкою йде ЧЕТВЕРТОЮ */
  .process-note {
    order: 4;
    margin-bottom: 40px;
  }
  
  /* 5. Інтерактивна міні-картка йде ОСТАННЬОЮ */
  .action-minicard.tech-style {
    order: 5;
    margin: 0 auto;
  }
}

/* Мобільний фікс для ширини картки */
@media (max-width: 480px) {
  .action-minicard.tech-style {
    padding: 12px 14px;
    max-width: 100%; /* Тепер завдяки box-sizing не вилізе за краї */
  }
  
  .minicard-text {
    font-size: 0.85rem; /* Трохи менше для компактності на мобільному */
  }
  
  .tech-arrow {
    width: 36px;
    height: 36px;
  }
}

/* =======================================
   БЛОК 5: INSTAGRAM FEED
   ======================================= */
.instagram-section {
  background-color: #fcfcfc;
}

/* Примусово вибудовуємо заголовок і підзаголовок у колонку по центру */
.instagram-section .section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  margin-bottom: 40px; /* Загальний відступ до віджета */
}

/* Скидаємо глобальні відступи заголовка, щоб підзаголовок стояв щільно */
.instagram-section .section-title {
  margin-bottom: 12px !important; 
}

/* Акуратний підзаголовок */
.section-subtitle {
  font-size: 1.1rem;
  color: #666666;
  margin: 0; /* Прибрали мінусовий відступ */
  max-width: 700px; /* Щоб текст гарно переносився на 2 рядки, якщо він довгий */
}

/* Обгортка з фіксованою мін-висотою проти CLS скачків */
.insta-widget-wrapper {
  width: 100%;
  min-height: 250px; 
  display: block;
}

/* Адаптивність */
@media (max-width: 480px) {
  .section-subtitle {
    font-size: 0.95rem;
    padding: 0 10px;
  }
  
  .insta-widget-wrapper {
    min-height: 150px; 
  }
}

/* =======================================
   БЛОК 6: ВІДГУКИ КЛІЄНТІВ
   ======================================= */
.reviews-section {
  background-color: #ffffff; /* Повертаємося до чисто білого фону */
}

/* Сітка: 3 колонки на ПК */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- КАРТКА ВІДГУКУ (Tech-Logic) --- */
.review-card {
  box-sizing: border-box;
  background: #fcfcfc;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.review-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px); /* Легке підняття при наведенні */
}

/* Зірки рейтингу */
.review-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.review-stars svg {
  width: 20px;
  height: 20px;
  fill: var(--color-accent); /* Тільки фірмовий помаранчевий */
}

/* Текст відгуку */
.review-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444444;
  margin-bottom: 28px;
  font-style: italic;
  flex-grow: 1; /* Виштовхує ім'я автора в самий низ, вирівнюючи картки */
}

/* Ім'я автора з технологічною лінією */
.review-author {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-base, #2C463B);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Декоративна оранжева лінія перед ім'ям */
.review-author::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-accent);
}

/* =======================================
   АДАПТИВНІСТЬ ДЛЯ ВІДГУКІВ
   ======================================= */
@media (max-width: 992px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшеті */
  }
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr; /* 1 колонка на мобільному */
    gap: 20px;
  }
  
  .review-card {
    padding: 24px 20px;
  }
  
  .review-text {
    font-size: 1rem;
  }
}

/* =======================================
   БЛОК 7: ПАРТНЕРИ
   ======================================= */
.partners-section {
  background-color: #fcfcfc;
  border-top: 1px solid rgba(0, 0, 0, 0.03); /* Легке відділення від білого блоку відгуків */
}

/* Сітка для логотипів (4 в ряд на ПК) */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: center;
}

/* Контейнер логотипа (тепер без посилання) */
.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  height: 120px;
  transition: all 0.4s ease;
  cursor: default; /* Курсор залишиться звичайною стрілкою, щоб люди не намагалися клікнути */
}

.partner-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Робимо логотипи сірими та напівпрозорими */
  filter: grayscale(100%) opacity(0.5);
  transition: all 0.4s ease;
}

/* Ефекти при наведенні (Tech-Logic) */
.partner-card:hover {
  border-color: var(--color-accent); /* Фірмовий помаранчевий */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transform: translateY(-3px);
}

.partner-card:hover img {
  /* Повертаємо оригінальні кольори */
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

/* =======================================
   АДАПТИВНІСТЬ ДЛЯ ПАРТНЕРІВ
   ======================================= */
@media (max-width: 992px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 в ряд на планшеті */
  }
}

@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 в ряд на телефонах */
    gap: 16px;
  }
  
  .partner-card {
    padding: 16px;
    height: 90px;
  }
  
  /* На мобільних краще одразу показувати кольорові логотипи (бо немає hover) */
  .partner-card img {
    filter: grayscale(0%) opacity(0.8);
  }
}

/* =======================================
   БЛОК 8: ОСТАННІ НОВИНИ
   ======================================= */
.news-section {
  background-color: #ffffff; /* Повертаємося на білий фон */
}

/* Сітка: 3 новини в ряд */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Картка новини */
.news-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
}

.news-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

/* Картинка */
.news-image-wrap {
  width: 100%;
  aspect-ratio: 5 / 4; /* Більш високий формат для 800x640 */
  overflow: hidden;
  display: block;
}

.news-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.news-card:hover .news-image-wrap img {
  transform: scale(1.08); /* Плавний зум при наведенні */
}

/* Контентна частина */
.news-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Дата - технічний стиль */
.news-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

/* Заголовок новини */
.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px 0;
}

.news-title a {
  color: var(--color-base, #2C463B);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-card:hover .news-title a {
  color: var(--color-accent); /* При наведенні заголовок стає помаранчевим */
}

/* Короткий текст */
.news-excerpt {
  font-size: 0.95rem;
  color: #666666;
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1; /* Притискає кнопку "Читати далі" до низу, якщо тексти різної довжини */
}

/* Посилання "Читати далі" */
.news-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-base, #2C463B);
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.news-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.news-link:hover {
  color: var(--color-accent);
}

.news-card:hover .news-link svg {
  transform: translateX(6px); /* Стрілка технічно від'їжджає вправо */
  color: var(--color-accent);
}

/* =======================================
   АДАПТИВНІСТЬ ДЛЯ НОВИН
   ======================================= */
@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .news-content {
    padding: 20px;
  }
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-dev {
  color: rgba(255, 255, 255, 0.6); /* Світло-сірий колір, щоб текст не виділявся */
  font-size: 0.9rem;
}

.footer-dev a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-dev a:hover {
  color: var(--color-accent); /* При наведенні підсвічується твоїм фірмовим оранжевим */
}

/* Идеальное скрытие элемента для SEO и Screen Readers без пенализации от Google */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   КАТАЛОГ HUB & SPOKE (ПРЕМИАЛЬНЫЙ ДИЗАЙН С БЛИКАМИ И ЦЕНТРОВКОЙ)
   ========================================================================== */

.catalog-page .page-title {
  margin: 0;
  font-size: 2.2rem;
  color: var(--color-base);
}

/* 1. Глобальная сетка дашборда */
.catalog-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  grid-auto-flow: dense;
}

/* Карточка "Полиграфия" занимает 2 колонки */
.dash-card.span-2 {
  grid-column: span 2;
}

/* 2. Базовая карточка */
.dash-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--color-base);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s ease;
}

/* Фон и многослойный градиент */
/* 1. Бронебойное растягивание картинки (вместо inset: 0) */
.dash-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Картинка внутри (остается без изменений, просто для уверенности) */
.dash-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

/* 2. Облегченный градиент: было 90% темноты, стало 60% наверху и 15% внизу */
.dash-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(44, 70, 59, 0.8) 0%, rgba(44, 70, 59, 0.4) 100%);
  z-index: 2;
  transition: opacity 0.4s ease;
}

/* 3. При наведении (Hover): градиент чуть густеет, чтобы текст стал контрастнее, но не прячет фото */
.dash-card:hover::before {
  background: linear-gradient(to bottom, rgba(44, 70, 59, 0.9) 0%, rgba(44, 70, 59, 0.5) 100%);
}

/* Контентный слой */
.dash-content {
  position: relative;
  z-index: 3;
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

/* Шапка: Иконка + Заголовок */
.dash-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.dash-icon {
  width: 48px;
  height: 48px;
  background-color: #ffffff;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.dash-title {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.2;
}

/* Глобальная ссылка карточки */
.dash-title a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.dash-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1; 
}

/* 3. КАРТОЧКИ БЕЗ ПОДРАЗДЕЛОВ (.no-sub) */
/* Описание уходит вниз */
.dash-card.no-sub .dash-footer-text {
  margin-top: auto;
  padding-right: 56px; /* Место под стрелку */
}

.dash-card.no-sub .dash-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Техническая стрелка по центру правого края */
.dash-card.no-sub .tech-arrow {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 2; /* Над ссылкой */
}

.dash-card.no-sub .tech-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

/* Анимация стрелки */
.dash-card.no-sub:hover .tech-arrow {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-50%) translateX(6px);
}

/* 4. КАРТОЧКИ С ПОДРАЗДЕЛЕНИЯМИ (Глянцевые квадраты) */
.dash-body {
  flex-grow: 1;
}

.dash-grid-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  position: relative;
  z-index: 5; /* Выше глобальной ссылки */
}

.dash-grid-links a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  overflow: hidden; 
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.dash-grid-links a span {
  position: relative;
  z-index: 2;
}

/* Блик (Glass-Glint) */
.dash-grid-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  z-index: 1;
}

.dash-grid-links a:hover::before {
  animation: glass-glint 0.7s forwards;
}

@keyframes glass-glint {
  0% { left: -150%; }
  100% { left: 200%; }
}

.dash-grid-links a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-accent);
  box-shadow: 0 8px 24px rgba(249, 143, 29, 0.25);
  color: var(--color-accent);
  transform: translateY(-4px);
}

/* 5. HOVER-ЭФФЕКТЫ ДЛЯ ВСЕЙ КАРТОЧКИ */
.dash-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(44, 70, 59, 0.2);
}

.dash-card:hover .dash-bg img {
  transform: scale(1.05);
}

.dash-card:hover::before {
  background: linear-gradient(to bottom, rgba(44, 70, 59, 0.95) 0%, rgba(44, 70, 59, 0.6) 100%);
}

.dash-card:hover .dash-title a {
  color: var(--color-accent);
}

.dash-card:hover .dash-icon {
  background-color: var(--color-accent);
  transform: scale(1.1);
}

/* 6. АДАПТИВНОСТЬ */
@media (max-width: 1024px) {
  .catalog-dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .catalog-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .dash-card.span-2 {
    grid-column: span 1;
  }

  .dash-content {
    padding: 24px;
  }

  .dash-title {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   HUB LEVEL 2: PREMIUM HIGH-TECH 2.0 (Фірмовий Темно-Зелений та Оранжевий)
   ЗАХИСТ ВІД ГОРИЗОНТАЛЬНОГО СКРОЛУ НА МОБІЛЬНИХ
   ========================================================================== */
:root {
  --tech-dark: #2c463b;   /* Фірмовий темно-зелений */
  --tech-accent: #f98f1d; /* Фірмовий оранжевий */
  --tech-gray: #f4f1eb;   /* Сірий фон для товарів */
}

/* Обнуление паддингов и Жесткая защита от горизонтального скролла */
.premium-hub-page {
  padding: 0;
  width: 100%;
  overflow-x: hidden; 
}
.premium-hub-page *, .premium-hub-page *::before, .premium-hub-page *::after {
  box-sizing: border-box;
}

/* Обертки для управления фоном */
.hub-wrapper-white {
  background-color: #ffffff;
  padding: 60px 0;
  width: 100%;
}
.hub-wrapper-gray {
  background-color: var(--tech-gray);
  padding: 60px 0;
  border-top: 1px solid rgba(44, 70, 59, 0.06);
  border-bottom: 1px solid rgba(44, 70, 59, 0.06);
  width: 100%;
}
.bottom-seo-padding {
  padding: 80px 0;
}

/* Изолированный SEO Блок */
.premium-seo-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  margin-bottom: 50px;
}
.premium-seo-intro .page-title {
  color: var(--tech-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}
.premium-seo-intro .lead-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #3d4d45;
  max-width: 850px;
  margin: 0;
}

/* HIGH-TECH НАВИГАЦИЯ (Сетка узлов) */
.tech-anchor-nav {
  margin-bottom: 20px;
}
.tech-anchor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.nav-node {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  background-color: var(--tech-dark);
  border: 1px solid rgba(249, 143, 29, 0.3);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.2s ease-out;
  z-index: 1;
}
.nav-node img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: grayscale(100%);
  transition: opacity 0.3s ease-out, filter 0.3s ease-out;
  z-index: -1;
}
.nav-node .node-title {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 0 10px;
  position: relative;
  z-index: 2;
}
.node-glare {
  position: absolute;
  top: 0; left: -150%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-25deg);
  z-index: 0;
}
.nav-node:hover {
  border-color: var(--tech-accent);
  box-shadow: 0 4px 15px rgba(249, 143, 29, 0.4);
  transform: translateY(-2px);
}
.nav-node:hover img {
  opacity: 0.5;
  filter: grayscale(0%);
}
.nav-node:hover .node-glare {
  animation: sweep 0.8s ease-in-out;
}

/* СЕТКА ТОВАРОВ */
.tech-category {
  margin-bottom: 70px;
  scroll-margin-top: 100px;
}
.tech-category:last-child {
  margin-bottom: 0;
}
.tech-heading {
  font-size: 1.6rem;
  color: var(--tech-dark);
  text-transform: uppercase;
  border-left: 4px solid var(--tech-accent);
  padding-left: 16px;
  margin-bottom: 24px;
}
.tech-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* HIGH-TECH КАРТОЧКА */
a.tech-card, 
a.tech-card:visited, 
a.tech-card:hover, 
a.tech-card:active {
  position: relative;
  display: block;
  text-decoration: none !important;
  color: inherit !important;
  background: #ffffff;
  border: 1px solid rgba(44, 70, 59, 0.08);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease-out, border-color 0.25s ease-out;
}
.tech-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 2;
}
.tech-card:hover {
  border-color: var(--tech-accent);
  box-shadow: 0 12px 28px rgba(44, 70, 59, 0.1);
  transform: translateY(-4px);
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  transform: skewX(-20deg);
  z-index: 3;
  pointer-events: none;
}
.tech-card:hover::before {
  animation: sweep 0.8s ease-in-out;
}

/* Квадратне зображення (1:1) */
.tech-img-box {
  width: 100%;
  aspect-ratio: 1 / 1; 
  overflow: hidden;
  background-color: #f9f9f9;
  border-bottom: 1px solid rgba(44, 70, 59, 0.06);
}
.tech-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tech-card:hover .tech-img-box img {
  transform: scale(1.06);
}

/* Інформаційний блок */
.tech-info {
  padding: 20px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.tech-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tech-dark);
  margin: 0 0 8px 0;
  line-height: 1.2;
  transition: color 0.25s ease-out;
}
.tech-card:hover .tech-title {
  color: var(--tech-accent); 
}
.tech-features {
  font-size: 0.85rem;
  color: #4a5a51;
  line-height: 1.4;
  margin: 0 0 24px 0;
  flex-grow: 1;
}

/* ІНТЕРАКТИВНИЙ БЛОК ДІЇ (Капсула-стрілочка) */
.tech-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end; 
  height: 32px;
  background: rgba(44, 70, 59, 0.06); 
  border-radius: 16px;
  padding: 0 8px; 
  margin-top: auto;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.action-text {
  max-width: 0; 
  opacity: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--tech-dark); 
  transition: color 0.3s ease, transform 0.3s ease;
}

.action-icon svg {
  width: 100%;
  height: 100%;
}

/* Анімація капсули при наведенні на картку */
.tech-card:hover .tech-action {
  background: var(--tech-accent); 
  padding: 0 14px 0 12px; 
  box-shadow: 0 4px 12px rgba(249, 143, 29, 0.25);
}

.tech-card:hover .action-text {
  max-width: 120px; 
  opacity: 1;
  margin-right: 6px; 
}

.tech-card:hover .action-icon {
  color: #ffffff; 
  transform: translateX(2px);
}

/* Нижний SEO Текст */
.seo-bottom-content h2 {
  font-size: 1.8rem;
  color: var(--tech-dark);
  margin-bottom: 20px;
}
.seo-bottom-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #3d4d45;
  margin-bottom: 16px;
}

/* Ключевой кадр для бликов */
@keyframes sweep {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* ==========================================================================
   АДАПТИВНОСТЬ (МОБИЛЬНЫЕ УСТРОЙСТВА И ПЛАНШЕТЫ)
   ========================================================================== */
@media (max-width: 768px) {
  .hub-wrapper-white, .hub-wrapper-gray, .bottom-seo-padding {
    padding: 40px 0;
  }
  .premium-seo-intro .page-title {
    font-size: 1.5rem; /* Уменьшаем заголовок, чтобы не рвал экран */
    word-wrap: break-word;
  }
  .tech-anchor-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
  }
  .nav-node .node-title {
    font-size: 0.8rem;
  }
  .tech-products-grid {
    /* Более гибкая сетка для мобильных, чтобы избежать выпирания карточек */
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 12px;
  }
  .tech-info {
    /* Уменьшаем внутренние отступы на мобилках */
    padding: 16px 12px 12px 12px;
  }
  .tech-category {
    margin-bottom: 50px;
    scroll-margin-top: 80px;
  }
  .seo-bottom-content h2 {
    font-size: 1.5rem;
  }
}

/* Защитный брейкпоинт для самых узких экранов (ширина < 380px) */
@media (max-width: 380px) {
  .tech-anchor-grid {
    grid-template-columns: 1fr; /* Принудительно 1 колонка для навигации */
  }
  .tech-products-grid {
    grid-template-columns: 1fr; /* Принудительно 1 колонка для товаров */
  }
  .tech-action {
    /* На микро-экранах делаем капсулу в статике чуть компактнее */
    padding: 0 6px;
  }
}

/* ==========================================================================
   СЕМАНТИЧНІ ЕЛЕМЕНТИ СТАТЕЙ (ТАБЛИЦІ, ФІГУРИ)
   ========================================================================== */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  overflow: hidden;
}

.article-table th {
  background-color: var(--color-base);
  color: var(--color-light);
  padding: 16px;
  text-align: left;
  font-weight: 600;
}

.article-table td {
  padding: 16px;
  border-bottom: 1px solid var(--color-secondary);
  color: #4a5551;
}

.article-table tr:last-child td {
  border-bottom: none;
}

.article-figure {
  margin: 32px 0;
  width: 100%;
}

.article-figure img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  display: block;
}

.article-figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: #8b9591;
  margin-top: 12px;
  font-style: italic;
}

/* ==========================================================================
   ДАТА ПУБЛІКАЦІЇ СТАТТІ
   ========================================================================== */
.news-date {
  display: block;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

/* Кнопка по центру всередині сайдбар-карток */
.tech-park-card .btn-primary {
  display: block;
  text-align: center;
}

/* Базові стилі для зображень у статтях */
.article-figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  display: block;
}

/* Окремі стилі для відео з урахуванням пропорцій */
.article-figure video {
  width: 100%;
  height: auto; /* КРИТИЧНО: дозволяє відео пропорційно зменшуватися */
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  display: block;
  object-fit: cover; /* Прибирає можливі чорні смуги по краях */
}

/* Бронебійне обмеження ширини для десктопа */
@media (min-width: 993px) {
  .about-main-text .article-figure {
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Обмеження ширини зображень та відео в лівій колонці (десктоп) */
@media (min-width: 993px) {
  .about-main-text .article-figure {
    max-width: 75%; /* Зменшує розмір до 75% від ширини текстової колонки */
    margin-left: auto;
    margin-right: auto; /* Центрує медіаконтент відносно тексту */
  }
}

/* ==========================================================================
   НОВИННИЙ ХАБ ТА КАРТКИ СТАТЕЙ (STAR WAY PREMIUM BRANDING)
   ========================================================================== */

/* Вступна секція хаба */
.hub-header {
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(44, 70, 59, 0.15);
  padding-bottom: 32px;
}

.hub-header .page-title {
  color: #2c463b;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hub-header .lead-text {
  max-width: 820px;
  color: #2c463b;
  font-size: 1.125rem;
  line-height: 1.65;
  margin-bottom: 36px;
  opacity: 0.9;
}

/* Сегментний перемикач років */
.hub-filter-bar {
  display: inline-flex;
  gap: 8px;
  background: #e8e4dc;
  padding: 6px;
  border-radius: 40px;
  border: 1px solid rgba(44, 70, 59, 0.2);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.hub-filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #2c463b;
  padding: 10px 24px;
  border-radius: 30px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.hub-filter-btn:hover {
  background: #f98f1d;
  color: #ffffff;
  border-color: #f98f1d;
}

.hub-filter-btn.active {
  background: #2c463b;
  color: #ffffff;
  border-color: #2c463b;
  box-shadow: 0 4px 12px rgba(44, 70, 59, 0.3);
  position: relative;
}

.hub-filter-btn.active::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #d4af37;
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: middle;
}

/* Сітка карток */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 80px;
}

@media (max-width: 1100px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (max-width: 680px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Преміальна картка статті */
.news-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(44, 70, 59, 0.12);
  box-shadow: 0 4px 20px rgba(44, 70, 59, 0.06);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.35s ease;
}

.news-card.is-hidden {
  display: none;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(44, 70, 59, 0.15);
  border-color: #d4af37;
}

/* Медіаконтейнер із затемненням під бейдж */
.news-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: #2c463b;
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover .news-card-img {
  transform: scale(1.06);
}

.news-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44, 70, 59, 0.6) 0%, rgba(44, 70, 59, 0) 40%);
  pointer-events: none;
}

/* Бейдж категорії */
.news-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: #2c463b;
  color: #d4af37;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Тіло картки */
.news-card-body {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Дата публікації */
.news-card-date {
  font-size: 0.85rem;
  font-weight: 800;
  color: #f98f1d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-card-date::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f98f1d;
}

/* Заголовок статті */
.news-card-title {
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.news-card-title a {
  color: #2c463b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-card:hover .news-card-title a {
  color: #f98f1d;
}

/* Текст анонсу */
.news-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #2c463b;
  opacity: 0.85;
  margin-bottom: 28px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Кнопка "Читати статтю" */
.news-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #f4f1eb;
  border: 1px solid rgba(44, 70, 59, 0.2);
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #2c463b;
  text-decoration: none;
  margin-top: auto;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card-link svg {
  stroke: #2c463b;
  transition: transform 0.25s ease, stroke 0.25s ease;
}

/* Помаранчевий стан кнопки при наведенні на картку або кнопку */
.news-card-link:hover,
.news-card:hover .news-card-link {
  background: #f98f1d;
  border-color: #f98f1d;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(249, 143, 29, 0.3);
}

.news-card-link:hover svg,
.news-card:hover .news-card-link svg {
  stroke: #ffffff;
  transform: translateX(4px);
}

/* Преміальне посилання до всіх новин (Головна сторінка) */
.news-hub-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 800;
  color: #2c463b;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  position: relative;
  padding: 8px 12px;
}

.news-hub-link svg {
  stroke: #2c463b;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.3s ease;
}

/* Преміальна анімація при наведенні */
.news-hub-link:hover {
  color: #f98f1d;
}

.news-hub-link:hover svg {
  stroke: #f98f1d;
  transform: translateX(6px);
}

/* ==========================================================================
   СТОРІНКА КОНТАКТІВ (HIGH-TECH 2.0)
   ========================================================================== */

.contacts-header {
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(44, 70, 59, 0.15);
  padding-bottom: 32px;
}

.contacts-header .page-title {
  color: #2c463b;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.contacts-header .lead-text {
  max-width: 820px;
  color: #2c463b;
  font-size: 1.125rem;
  line-height: 1.65;
  opacity: 0.9;
}

/* Сітка контактів: 2 колонки */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 64px;
}

@media (max-width: 992px) {
  .contacts-grid {
    grid-template-columns: 1fr;
  }
}

/* Ліва колонка: Інформація */
.contacts-info-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  border: 1px solid rgba(44, 70, 59, 0.12);
  box-shadow: 0 8px 32px rgba(44, 70, 59, 0.05);
  font-style: normal;
}

.contact-block {
  margin-bottom: 32px;
}

.contact-block:last-child {
  margin-bottom: 0;
}

.contact-heading {
  font-size: 1.1rem;
  font-weight: 800;
  color: #2c463b;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(44, 70, 59, 0.08);
  padding-bottom: 8px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 16px;
}

.contact-list li:last-child {
  margin-bottom: 0;
}

.contact-link,
.contact-static {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 1.05rem;
  color: #2c463b;
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.25s ease;
}

.contact-link:hover {
  color: #f98f1d;
}

.contact-link svg,
.contact-static svg {
  flex-shrink: 0;
  stroke: #d4af37;
  margin-top: 2px;
}

/* Соціальні бейджі */
.social-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #f4f1eb;
  border: 1px solid rgba(44, 70, 59, 0.15);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #2c463b;
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-badge svg {
  stroke: #2c463b;
  transition: stroke 0.25s ease;
}

.social-badge:hover {
  background: #2c463b;
  border-color: #2c463b;
  color: #ffffff;
  transform: translateY(-2px);
}

.social-badge:hover svg {
  stroke: #f98f1d;
}

/* Права колонка: Форма зворотного зв'язку */
.contacts-form-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  border: 1px solid rgba(44, 70, 59, 0.12);
  box-shadow: 0 8px 32px rgba(44, 70, 59, 0.05);
}

.form-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #2c463b;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #2c463b;
  margin-bottom: 8px;
}

.form-label .required {
  color: #f98f1d;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: #2c463b;
  background: #fdfdfd;
  border: 1px solid rgba(44, 70, 59, 0.2);
  border-radius: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-control::placeholder {
  color: rgba(44, 70, 59, 0.4);
}

.form-control:focus {
  border-color: #f98f1d;
  box-shadow: 0 0 0 3px rgba(249, 143, 29, 0.15);
  background: #ffffff;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* High-Tech кнопка відправки форми */
.form-submit-btn {
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  background: #2c463b; /* Базовий преміальний зелений */
  border: none; /* Жодних грубих рамок */
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(44, 70, 59, 0.2);
}

.form-submit-btn:hover {
  background: #f98f1d; /* Фірмовий помаранчевий при наведенні */
  box-shadow: 0 6px 20px rgba(249, 143, 29, 0.4);
  transform: translateY(-2px);
}

/* Анімація періодичного відблиску (Shine effect) */
.form-submit-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-25deg);
  animation: hightech-shine 4s infinite cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes hightech-shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

.form-disclaimer {
  margin-top: 16px;
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  line-height: 1.5;
}

.form-disclaimer a {
  color: #2c463b;
  text-decoration: underline;
}

.form-disclaimer a:hover {
  color: #f98f1d;
}

/* Блок з картою */
.map-wrapper {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(44, 70, 59, 0.12);
  box-shadow: 0 8px 32px rgba(44, 70, 59, 0.05);
  margin-bottom: 40px;
}

/* ==========================================================================
   TOAST NOTIFICATION (ПОПАП ВІДПРАВКИ ФОРМИ)
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 110px;
  right: 32px;
  background: #ffffff;
  border-left: 4px solid #2c463b; /* Базовий колір */
  box-shadow: 0 10px 40px rgba(44, 70, 59, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  width: calc(100% - 64px);
  max-width: 400px;
  z-index: 9999;
  transform: translateY(150%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.4s ease, 
              visibility 0.5s;
}

/* Активний стан попапу */
.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Статус: Успіх (фірмовий помаранчевий) */
.toast-notification.success {
  border-left-color: #f98f1d;
}
.toast-notification.success .toast-icon svg {
  stroke: #f98f1d;
}

/* Статус: Помилка (червоний) */
.toast-notification.error {
  border-left-color: #d32f2f;
}
.toast-notification.error .toast-icon svg {
  stroke: #d32f2f;
}

.toast-icon svg {
  width: 26px;
  height: 26px;
  margin-top: 2px;
}

.toast-icon .hidden {
  display: none;
}

.toast-content h4 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: #2c463b;
  font-weight: 800;
}

.toast-content p {
  margin: 0;
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.45;
}

.toast-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #aaaaaa;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  transition: color 0.2s ease;
}

.toast-close:hover {
  color: #f98f1d;
}

/* Адаптив під смартфони */
@media (max-width: 576px) {
  .toast-notification {
    bottom: 24px;
    right: 50%;
    transform: translate(50%, 150%);
    width: calc(100% - 48px);
  }
  .toast-notification.show {
    transform: translate(50%, 0);
  }
}

/* ==========================================================================
   ПАРЯЧА КНОПКА TELEGRAM (3D HIGH-TECH GLASS)
   ========================================================================== */
.hightech-tg-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9995;
  text-decoration: none;
  border-radius: 50px;
  opacity: 0.85; /* Елегантна напівпрозорість до наведення */
  box-shadow: 0 10px 25px rgba(255, 149, 0, 0.3); 
  animation: tg-pulse-glow 3s infinite cubic-bezier(0.16, 1, 0.3, 1);
  /* Додано плавний перехід для opacity */
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.tg-btn-body {
  display: flex;
  align-items: center;
  /* Змістили точки градієнта (75% та 90%), щоб темний край був помітним у круглому стані */
  background: linear-gradient(135deg, #ff9500 45%, #00c875 75%, #2c463b 90%);
  padding: 16px;
  border-radius: 50px;
  border: none;
  box-shadow: 
    inset 2px 2px 8px rgba(255, 255, 255, 0.6), 
    inset -2px -4px 8px rgba(0, 0, 0, 0.25); /* Трохи посилили тінь знизу для об'єму */
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.tg-btn-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  stroke: #ffffff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tg-btn-text {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-left: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Effect: Повна непрозорість та м'яке розширення */
.hightech-tg-btn:hover {
  animation: none;
  opacity: 1; /* Кнопка стає повністю щільною */
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(255, 149, 0, 0.45);
}

.hightech-tg-btn:hover .tg-btn-body {
  padding: 16px 26px 16px 20px;
}

.hightech-tg-btn:hover .tg-btn-icon {
  transform: scale(1.05) translateX(2px) translateY(-2px);
}

.hightech-tg-btn:hover .tg-btn-text {
  max-width: 260px;
  opacity: 1;
  padding-left: 14px;
}

/* Анімація пульсації */
@keyframes tg-pulse-glow {
  0% { box-shadow: 0 10px 25px rgba(255, 149, 0, 0.3), 0 0 0 0 rgba(255, 149, 0, 0.6); }
  70% { box-shadow: 0 10px 25px rgba(255, 149, 0, 0.3), 0 0 0 20px rgba(255, 149, 0, 0); }
  100% { box-shadow: 0 10px 25px rgba(255, 149, 0, 0.3), 0 0 0 0 rgba(255, 149, 0, 0); }
}

/* Адаптив під смартфони */
@media (max-width: 576px) {
  .hightech-tg-btn {
    bottom: 24px;
    right: 24px;
  }
}

