
body {
  font-family: Arial, sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
  /* background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 35%, #1a1a1a 100%); */
  background-image: url('icons/techno_background_optimized.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #ddd;
}
html, body {
  font-family: Arial, sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
  background-image: url('icons/techno_background_optimized.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #ddd;
}

.wrapper {
  min-height: calc(100vh - 40px); /* 40px — высота футера */
}
#banner-block {
  text-align: center;
  margin-bottom: 0px;
}

#banner-block a {
  display: block;
  max-width: 100%;
  text-align: center;
}

#banner-block img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 0px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

#top-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 4px 20px;
  background: linear-gradient(to bottom, #2f2f2f, #4c4c4c);
  color: #eee;
  gap: 10px;
}

.lang-block {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.actions-block {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 1px 0 1px 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.actions a {
  flex: 1 1 160px;         
  max-width: 220px;        
  min-width: 110px;       
  margin: 5px;
  padding: 4px 8px;
  font-size: 15px;
  border-radius: 5px;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background-color: #e0e0e0;
  color: #222;
  border: 1px solid #ccc; 
  transition: transform 0.2s ease;  
}

.actions a:hover {
  background-color: #e0e0e0;
  color: #000;
  transform: scale(1.04); 
}

.lang-selector ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
}
.lang-selector li {
  cursor: pointer;
  display: flex;
  align-items: center;
  background: #fff;
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-weight: bold;
}
.lang-selector li:hover {
  background-color: #007bff;
  color: white;
}
.lang-selector img {
  height: 20px;
  width: auto;
}

#filter-block {
  width: 95%;
  max-width: 1180px;
  margin: 2px auto 4px auto;
  padding: 12px;
  text-align: center;
  border: 0px dashed red;
  box-sizing: border-box;
}
#filter-block select,
#filter-block button {
  width: 22%;
  min-width: 120px;
  margin: 4px;
  padding: 6px 8px;
  font-size: 16px;
  border-radius: 5px;
  border: 2px solid #007bff;
  box-sizing: border-box;
  background-color: #e0e0e0;
  color: #222;
}
#filter-block h2 {
  margin: 8px 0 8px 0; 
  font-size: 18px;     
}

#info-fullkey {
  width: 80%;
  max-width: 1055px;
  margin: 10px auto;
  padding: 20px;
  background-color: #e9f7ef;
  border: 2px dashed green;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  color: #155724;
  text-align: center;
  box-sizing: border-box;
}

#results {
  width: 90%;
  max-width: 1100px;
  margin: 10px auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border: 0px dashed blue;
  box-sizing: border-box;
}

.product-card {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  color: #222; 
}

.product-card a {
  color: #222;
  text-decoration: none;
}

.product-card a:hover {
  color: #007bff;
  text-decoration: underline;
}

.product-card img {
  max-width: 100%;
  height: auto;
}
.product-card .price {
  font-weight: bold;
  color: #28a745;
  margin-top: 5px;
}

#no-results {
  width: 80%;
  max-width: 1035px;
  margin: 20px auto;
  padding: 20px;
  background-color: #f8d7da;
  border: 2px dashed orange;
  border-radius: 8px;
  text-align: center;
  color: #721c24;
  font-size: 18px;
  font-weight: bold;
  box-sizing: border-box;
}
#no-results::before {
  content: "😢 ";
}

#selected-info {
  display: none !important;
}

.icon {
  width: 26px;
  height: 26px;
  vertical-align: middle;
  margin-right: 6px;
}

#welcome-block {
  width: 90%;
  max-width: 1100px;
  margin: 30px auto 6px auto;
  padding: 0;
  box-sizing: border-box;
  border: none;
}

.welcome-message {
  font-family: "Open Sans", "Arial", "Helvetica", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: #e0e0e0;
  color: #222;
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: justify;
  text-indent: 2em;
  width: 100%;
  box-sizing: border-box;
}

.language-dropdown {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.language-dropdown select {
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}

.site-footer {
  height: 40px;	
  text-align: center;
  font-size: 13px;
  color: #666;
  padding: 10px 0;
  background: linear-gradient(to bottom, #2f2f2f, #4c4c4c);
  color: #eee;
  border-top: none; 
  margin-top: 10px;
}


/* ======================== */
/* 📱 Мобильная адаптация */
/* ======================== */
@media (max-width: 768px) {

  /* ❌ Скрыть баннер */
  #banner-block {
    display: none !important;
  }

  /* ✅ Фильтр вертикально */
  #filter-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  #filter-block select,
  #filter-block button {
    width: 100% !important;
    max-width: 320px;
    margin: 8px auto;
    font-size: 16px;
  }

  #filter-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  /* ❗Показываем ТОЛЬКО дом, звонок и WhatsApp */
  .actions a:not(.home-btn):not(.call-btn):not(.whatsapp-btn) {
    display: none !important;
  }

  /* Внешний вид трёх круглых кнопок */
  .home-btn,
  .call-btn,
  .whatsapp-btn {
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 8px 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    font-size: 0;
    text-decoration: none;
    color: inherit;

    flex: none !important;
    width: 60px !important;
    height: 30px !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .home-btn .icon,
  .call-btn .icon,
  .whatsapp-btn .icon {
    width: 28px;
    height: 28px;
    margin: 0;
  }

  /* Подписи к кнопкам на мобиле не нужны */
  .call-btn .btn-label,
  .whatsapp-btn .btn-label {
    display: none !important;
  }

  /* 2 карточки в ряд */
  #results {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .product-card {
    font-size: 14px;
    padding: 6px;
  }

  /* Сжатый текст приветствия + кнопка "Lasīt vairāk" */
  #welcome-content {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  #welcome-content.expanded {
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  #welcome-toggle-wrapper {
    display: flex;
    justify-content: center;
  }

  #welcome-toggle {
    display: inline-block;
    margin: 10px auto 16px;
    background-color: #007bff;
    color: white;
    font-size: 14px;
    padding: 8px 18px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: center;
  }

  #welcome-toggle:hover {
    background-color: #0056b3;
  }

  /* Baltik Auto в мобильной версии прячем */
  #mobile-brand-title {
    display: none !important;
  }
}

/* На десктопе кнопка "Lasīt vairāk" не показывается */
@media (min-width: 769px) {
  #welcome-toggle {
    display: none !important;
  }
}


.hamburger {
  display: none;
  position: absolute;
  top: 15px;
  right: 10px;
  font-size: 26px;
  cursor: pointer;
  z-index: 1001;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 260px;
  height: 100%;
  background-color: #000;;
  box-shadow: -2px 0 5px rgba(0,0,0,0.2);
  z-index: 1002;
  transition: right 0.3s ease-in-out;
  padding: 20px 15px;
}
.mobile-menu.open {
  display: block;
  right: 0;
}
.mobile-menu .menu-btn {
  display: flex;
  align-items: center;
  padding: 12px 0;
  font-size: 16px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}
.mobile-menu .menu-btn img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1000;
}
.mobile-menu-overlay.active {
  display: block;
}
@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .action-btn.map-btn,
  .action-btn.shop-btn,
  .action-btn.reviews-btn,
  .action-btn.insta-btn,
  .action-btn.fb-btn {
    display: none !important;
  }
}

.mobile-menu {
  max-height: 320px;
  overflow-y: auto;
  border-radius: 0 0 12px 0;
}

.mobile-menu .menu-btn {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 10px 14px;
  font-size: 16px;
  color: #000;
  text-decoration: none;
  transition: background 0.2s ease;
}

.mobile-menu .menu-btn:hover {
  background: #e0e0e0;
}
#static-seo-block [lang] {
  display: none;
  margin: 20px auto;
  max-width: 1000px;
  padding: 0 15px;
  font-size: 16px;
  line-height: 1.6;
}
#static-seo-block h1 {
  font-size: 24px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 10px;
}
#static-seo-block p {
  margin-top: 0;
}
/* по умолчанию иконку «домой» можно скрыть на десктопе */
.home-btn {
  display: none;
}

/* в мобильной версии показываем и ставим влево */
@media (max-width: 768px) {
  #top-buttons .actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .home-btn {
    display: inline-flex;
    margin-right: auto;      /* выталкиваем её в самый левый край */
  }
}
/* === Фикс верхних кнопок в мобильной версии === */
@media (max-width: 768px) {

  /* Сама верхняя полоска чуть компактнее */
  #top-buttons {
    padding: 4px 6px;
  }

  /* Контейнер с кнопками — по центру, в одну линию */
  #top-buttons .actions {
    display: flex;
    align-items: center;
    justify-content: center;   /* можно поменять на space-between, если захочешь растянуть */
    gap: 8px;
  }

  /* Дом, звонок, WhatsApp — одинаковые, ровные */
  .home-btn,
  .call-btn,
  .whatsapp-btn {
    margin: 0;                 /* убираем кривые внешние отступы */
    width: 52px !important;
    height: 32px !important;
    border-radius: 6px;        /* можно вернуть кружки: 50% */
    box-shadow: none;
    background-color: #e0e0e0;
  }

  .home-btn .icon,
  .call-btn .icon,
  .whatsapp-btn .icon {
    width: 24px;
    height: 24px;
    margin: 0;
  }

  /* Бургер чуть подравняем по вертикали */
  .hamburger {
    top: 10px;
    right: 8px;
  }
}

