@media (max-width: 400px) {
  .header__soc {
    display: flex;
  }
  .cosiness-social {
    column-gap: 10px;
  }
  .cosiness-social a {
    margin-left: 0 !important;
  }
  .cosiness-social a svg {
    max-width: 30px;
  }
  .content span {
    display: none;
  }
}

.br-separator {
  display: none;
}

/* "500 грн./день" — не розривати рядок по слешу */
.hero__description span {
  white-space: nowrap;
}

/* Off-canvas mobile menu — panel + nav polish */
.sd-offcanvas-menu {
  box-shadow: -18px 0 40px rgba(22, 44, 33, 0.14);
}

.sd-offcanvas-menu__logo {
  border-bottom: 1px solid #eef2ef;
  padding-bottom: 1rem;
}

.sd-offcanvas-menu__head {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b8577;
  border-bottom: 1px solid #eef2ef;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Content flows naturally now (city switcher → nav list → socials),
   instead of the previous fixed-percentage grid that overlapped items. */
.sd-offcanvas-menu__nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
}

.sd-mobile-menu {
  height: auto;
  padding: 6px 25px 8px 30px;
  flex: 0 0 auto;
}

.sd-mobile-menu li {
  margin-bottom: 0 !important;
}

.sd-mobile-menu li:not(:last-child) {
  border-bottom: 1px solid #eef2ef;
}

.sd-mobile-menu a,
.sd-mobile-menu span {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-size: 16px;
  font-weight: 600;
  color: #16281f;
  transition: color 0.2s ease;
}

.sd-mobile-menu a:hover,
.sd-mobile-menu a:focus-visible,
.sd-mobile-menu li.current-menu-item > a {
  color: #1f9b58;
}

.socials__mobile {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 18px 25px 28px 30px;
  border-top: 1px solid #eef2ef;
}

.socials__mobile .cosiness-social {
  justify-content: flex-start;
}

.socials__mobile .header__lang {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding: 0;
}

.socials__mobile .header__lang ul li a {
  height: 34px;
  line-height: 34px;
  min-width: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px rgba(22, 44, 33, 0.14);
}

.socials__mobile .header__lang ul li a:hover,
.socials__mobile .header__lang ul li a:focus-visible {
  background: #3ec07a;
  color: #fff;
  outline: none;
}

/* City switcher — dropdown */
.header__city {
  position: relative;
}

.header__city-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 0;
  border-radius: 100px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.header__city-toggle:hover,
.header__city-toggle:focus-visible {
  background: #3ec07a;
  color: #fff;
  outline: none;
}

.header__city.is-open .header__city-toggle {
  background: #3ec07a;
  color: #fff;
}

.header__city-toggle-icon {
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.header__city.is-open .header__city-toggle-icon {
  transform: rotate(180deg);
}

.header__city-list {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 200;
  min-width: 100%;
  padding: 6px;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #dceadf;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(22, 44, 33, 0.16);
}

.header__city.is-open .header__city-list {
  display: block;
}

.header__city-item a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.2;
  color: #1f5a3a;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.header__city-item a:hover,
.header__city-item a:focus-visible {
  background: #eef7f1;
  outline: none;
}

.header__city-item.is-active a {
  background: #2eba71;
  color: #fff;
}

@media (max-width: 767px) {
  .header__city {
    display: none;
  }
}

/* Push the desktop-nav → burger switch from 1200px to 1400px. */
@media (max-width: 1400px) {
  .header__menu {
    display: none !important;
  }

  .sd-offcanvas-menu {
    display: flex;
  }
}

@media (max-width: 1400px) {
  .ad-burger {
    display: block !important;
  }
}

/* City switcher — mobile off-canvas menu */
.sd-offcanvas-menu .header__city {
  display: block;
  background: #fff;
  padding: 4px 25px 16px 30px;
}

.sd-offcanvas-menu .header__city-toggle {
  width: 100%;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f4f7f5;
  color: #000;
  font-size: 16px;
}

.sd-offcanvas-menu .header__city-toggle:hover,
.sd-offcanvas-menu .header__city-toggle:focus-visible,
.sd-offcanvas-menu .header__city.is-open .header__city-toggle {
  background: #3ec07a;
  color: #fff;
}

.sd-offcanvas-menu .header__city-list {
  left: 0;
  right: 0;
  min-width: auto;
  width: 100%;
  padding: 4px;
}

/* Language switcher — mobile off-canvas menu (positioned in .socials__mobile row) */
.sd-offcanvas-menu .header__lang {
  display: block;
}

.city-popup {
  position: fixed;
  left: 24px;
  bottom: 90px;
  z-index: 900;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-10px);
  transition: transform 0.28s ease, opacity 0.28s ease, bottom 0.32s ease;
}

.city-popup__card {
  width: min(300px, calc(100vw - 48px));
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(22, 44, 33, 0.28);
  border: 1px solid #dceadf;
  background: #fff;
}

.city-popup__header {
  position: relative;
  background: linear-gradient(150deg, #36bf78 0%, #25a55f 100%);
  color: #fff;
  padding: 12px 42px 10px 14px;
}

.city-popup__body {
  padding: 10px 14px 12px;
  background-color: #fff;
  background-image: linear-gradient(rgba(17, 135, 71, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 135, 71, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
}

.city-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.95;
}

.city-popup__close:hover,
.city-popup__close:focus-visible {
  background: rgba(255, 255, 255, 0.34);
  opacity: 1;
  transform: scale(1.06);
  outline: none;
}

.city-popup__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.92;
  font-weight: 700;
}

.city-popup__title {
  font-size: 20px;
  line-height: 1.05;
  margin: 3px 0 0;
  font-weight: 700;
}

.city-popup__address {
  color: #1f5a3a;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 8px;
}

.city-popup__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.city-popup__actions .dp-button {
  min-height: 34px;
  border-radius: 10px;
  padding: 7px 10px;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.1;
  width: 100%;
  justify-content: center;
  text-align: center;
  transition: box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.city-popup__actions .dp-button--rounded {
  background: #2eba71;
  color: #fff;
}

.city-popup__actions .dp-button--target {
  background: #1f9b58;
  color: #fff;
}

.city-popup__actions .dp-button--rounded:hover,
.city-popup__actions .dp-button--rounded:focus-visible {
  background: #28ad66;
  box-shadow: 0 10px 22px rgba(31, 155, 88, 0.24);
  color: #fff;
  outline: none;
}

.city-popup__actions .dp-button--target:hover,
.city-popup__actions .dp-button--target:focus-visible {
  background: #168647;
  box-shadow: 0 10px 22px rgba(22, 134, 71, 0.2);
  outline: none;
}

.city-popup.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.city-popup.is-raised {
  bottom: 210px;
}

@media (max-width: 390px) {
  .br-separator {
    display: block;
  }
}

@media (max-width: 768px) {
  .city-popup {
    left: 14px;
    bottom: 90px;
  }

  .city-popup.is-raised {
    bottom: 210px;
  }

  .city-popup__card {
    width: min(270px, calc(100vw - 28px));
    border-radius: 12px;
  }

  .city-popup__header {
    padding: 10px 38px 8px 12px;
  }

  .city-popup__body {
    padding: 8px 12px 10px;
  }

  .city-popup__title {
    font-size: 17px;
  }

  .city-popup__address {
    font-size: 13px;
  }

  .city-popup__actions .dp-button {
    min-height: 30px;
    font-size: 13px;
    padding: 6px 10px;
  }
}
