:root {
  --bg: #1F1F1F;
  --footer-bg: #101010;
  --footer-text: #FFFFFF;
  --accent: #BD0028;
  --font-stack: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}


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

html, body {
  height: 100%;
  background: var(--bg);
  font-family: var(--font-stack);
  color: #E6E6E6;
}

/* Контент */
.page-content {
  min-height: 2143px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  padding-top: 32px;
  transition: min-height 0.3s ease;
  padding-bottom: 120px;
}

/* Лого секція */
.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo {
  width: 146px;
  height: 146px;
  object-fit: contain;
}

.store-name {
  margin-top: 7px;
  font-weight: 700;
  font-size: 24px;
  color: #FFFFFF;
}

.store-description {
  margin-top: 7px;
  max-width: 366px;
  font-weight: 500;
  font-size: 16px;
  color: #E6E6E6;
  line-height: 1.5;
}

/* Соціальні іконки */
.social-icons {
  margin-top: 7px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.icon:hover img {
  opacity: 0.8;
}

/* Розділ "розташування наших магазинів" */
.location-frame {
  margin-top: 19px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.location-banner {
  width: 226px;
  height: 28px;
  background-color: var(--accent);
  color: #FFFFFF;
  font-family: "Amatic SC", cursive;
  font-weight: 700;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(2deg);
}

.location-title {
  margin-top: 4px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800; /* ExtraBold */
  font-size: 40px;
  color: #FFFFFF;
}

.decor {
  position: absolute;
  width: 42.5px;
  height: 38.75px;
  object-fit: contain;
  transform: translate(144.95px, 12.18px);
  overflow: visible;
  pointer-events: none;
}

/* Футер */
.site-footer {
  height: 60px;
  background: var(--footer-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255,255,255,0.02);
}

.footer-inner {
  font-weight: 700;
  font-size: 15px;
  color: var(--footer-text);
  text-align: center;
  user-select: none;
}

.buttons-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;           /* відстань між кнопками */
  margin-top: 16px;    /* відступ зверху від попереднього фрейму */
}

/* Кнопки */
.switch-btn {
  width: 89px;
  height: 46px;
  background-color: #3B3B3B;
  color: #FFFFFF;
  border: none;
  border-radius: 20px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;    /* bold */
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Ефект при наведенні */
.switch-btn:hover {
  background-color: #505050;
  transform: translateY(-1px);
}

/* При натисканні */
.switch-btn:active {
  transform: translateY(1px);
}


/* Зовнішній фрейм — відповідає за фон, заокруглення і фейд */
.locations-frame {
  position: relative;
  width: 356px;
  height: 46px;
  background-color: #3B3B3B;
  border-radius: 20px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  overflow: hidden; /* ховає все за межами рамки */
}

/* Сам скрол-контейнер */
.locations-scroll {
  flex: 1;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 11px;
  display: flex;
  align-items: center;
  scrollbar-width: none; /* Firefox */
}

/* приховує скролбар у Chrome, Safari, Edge */
.locations-scroll::-webkit-scrollbar {
  display: none;
}

/* Fade справа */
.locations-frame::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 16px;
  background: linear-gradient(to right, rgba(59, 59, 59, 0), #3B3B3B 80%);
  pointer-events: none;
}

/* Fade зліва (опціонально) — якщо хочеш, щоб з’являвся при прокрутці */
.locations-frame::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 16px;
  background: linear-gradient(to left, rgba(59, 59, 59, 0), #3B3B3B 80%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* JS-клас для активації fade зліва */
.locations-frame.scrolled::before {
  opacity: 1;
}

/* Список міст */
.locations-list {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* Окрема локація */
.location-item {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #FFFFFF;
  flex-shrink: 0;
  user-select: none;
  cursor: default;
}

/* Контейнер міста */
.city-frame {
  width: 365px;
  height: 203px;
  border-radius: 24px;
  position: relative;
  overflow: visible;
  display: flex;
  justify-content: center;
  margin-top: 24px;
  margin-bottom: 52px;
}

/* Фото локації */
.city-photo {
  width: 365px;
  height: 203px;
  border-radius: 24px;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.city-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}
/* Нижня "рамка" */
.city-info {
  position: absolute;
  top: 122px; /* відстань від верху основного контейнера */
  width: 365px;
  height: 126px;
  background-color: #3B3B3B;
  border-radius: 24px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 8px; /* відступ знизу */
  box-sizing: border-box;
  white-space: nowrap;
  z-index: 1;
}

/* Внутрішній блок з елементами */
.city-info-inner {
  width: 322px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Іконка */
.city-icon {
  width: 29px;
  height: 29px;
  object-fit: contain;
}

/* Текст і лінк */
.city-text,
.city-map {
  font-family: "Montserrat", sans-serif;
  font-weight: 600; /* semibold */
  font-size: 14px;
  color: #FFFFFF;
  user-select: none;
  cursor: default;
  text-decoration: none;
}

/* "Показати на карті" може виглядати як кнопка */
.city-map {
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.city-map:hover {
  opacity: 0.8;
}

/* Банер адреси поверх фото */
.city-label {
  position: absolute;
  top: -8px; 
  left: -8px;
  width: 137px;
  height: 28.5px;
  background-color: var(--accent); /* #BD0028 */
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-2deg);
  z-index: 3; /* поверх фото */
}

.city-label span {
  font-family: "Amatic SC", cursive;
  font-weight: 700;
  font-size: 24px;
  color: #FFFFFF;
  user-select: none;
}

.city-decor {
  position: absolute;
  right: -12px;
  bottom: -16px; /* відступ від нижнього краю */
  width: 42px; /* можна підлаштувати під фактичний розмір SVG */
  height: auto;
  object-fit: contain;
  z-index: 2; 
  pointer-events: none;
}

.city-info-inner a {
  /* Анімація появи для міста */
.city-frame {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.45s ease;
  pointer-events: none;
}
.city-frame.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


/* Кнопка "Список" / "Карта" активна */
.switch-btn.active {
  background-color: var(--accent);
  color: #fff;
  transition: background-color 0.3s ease;
}

  text-decoration: none;
  color: inherit;
}

.city-icon-link {
  display: flex;
  align-items: center;
}



.location-item {
  position: relative; /* Позиціонування для псевдоелемента */
  color: white; /* Білий текст */
  font-weight: 600; /* Легке виділення */
  padding: 4px 10px; /* Зменшені падінги */
  border-radius: 20px; /* Заокруглені краї, щоб виглядало як кнопка */
  transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Плавний перехід для фону та тіні */
}

.location-item.active {
  background-color: var(--accent); /* Фон із акцентним кольором */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Легка тінь для кнопки */
}






/* Кнопка "Список" / "Карта" активна */
.switch-btn.active {
  background-color: var(--accent);
  color: #fff;
  transition: background-color 0.3s ease;
}


.city-frame {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: 
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.city-frame.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}

/* необов’язково: плавне затемнення при зникненні */
.city-frame:not(.visible) {
  z-index: 1;
  transition-delay: 0s;
}

.map-container {
  height: 1000px;  /* Висота карти */
  width: 100%;    /* Ширина на всю доступну площу */
  margin-top: 16px; /* Відступ зверху */
}
