/* =====================================================================
                            H E A D E R
   ===================================================================== */
.header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999 !important;
  background: #fff;
  --header-height: 56px;
  height: var(--header-height);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
  transform: translateY(0);
}

.header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header.hidden {
  transform: translateY(-100%);
}

.header__container {
  display: flex;
  align-items: center;
  height: var(--header-height);
  padding: 0 0.75rem;
  gap: 1rem;
  box-sizing: border-box;
}

.header .logo img {
  margin-right: auto;
  height: 3rem;
  width: auto;
  object-fit: contain;
  display: block;
}

.header__links {
  display: none;
}

/* ================== СЕРЫЕ ЛИНИИ ================== */
.header__top--separator {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  margin: 0;
  border: none;
  background: rgba(0, 0, 0, 0.25);
}

.burger__separator {
  border: none;
  border-top: 1px solid rgb(var(--black) / 0.25);
  margin: 0 calc(-1 * var(--padding-x));
  width: calc(100% + var(--padding-x) * 2);
}

@media (max-width: 480px) {
  .burger__separator {
    margin: 0;
    width: 100%;
  }
}

/* ================== КОНТЕЙНЕР ДЛЯ КНОПОК СПРАВА ================== */
.header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ================== ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ ================== */
.lang__switcher .lang__btn,
.lang__switcher .lang__btn .lang__code,
.lang__switcher .lang__menu li {
  line-height: 1.4;
}

/* Lang button: hard reset for all interaction states */
.lang__switcher .lang__btn,
.lang__switcher .lang__btn:hover,
.lang__switcher .lang__btn:active,
.lang__switcher .lang__btn:focus,
.lang__switcher .lang__btn:focus-visible {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.lang__switcher .lang__btn {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding: 0;
  padding-right: 1.125rem;
}

.lang__switcher .lang__btn img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  display: block;
  background: transparent !important;
  background-color: transparent !important;
  mix-blend-mode: normal;
}

/* Убираем белый фон у SVG флагов */
.lang__switcher .lang__btn img[src$=".svg"] {
  background: transparent !important;
  background-color: transparent !important;
}

/* Убираем белый фон у SVG элементов внутри изображений */
.lang__switcher .lang__btn img svg {
  background: transparent !important;
  background-color: transparent !important;
}

/* Скрываем rect элементы с белым фоном, которые не являются частью флага */
.lang__switcher .lang__btn img svg rect[fill="white"],
.lang__switcher .lang__btn img svg rect[fill="#fff"],
.lang__switcher .lang__btn img svg rect[fill="#ffffff"],
.lang__switcher .lang__btn img svg rect[fill="White"] {
  display: none;
}

.lang__switcher .lang__btn .lang__code {
  text-transform: none;
}

.lang__switcher .lang__btn::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transition: transform 0.15s ease;
  pointer-events: none;
}

.lang__switcher .lang__btn.active::after {
  transform: translateY(-50%) rotate(-135deg);
}

.lang__switcher .lang__menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0.375rem;
  list-style: none;
  padding: 0.25rem 0;
  margin: 0;
  min-width: 7rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
  display: none;
}

.lang__switcher .lang__menu.show {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.lang__switcher .lang__menu li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

.lang__switcher .lang__menu li:hover {
  background: #f2f2f2;
}

.lang__switcher .lang__menu img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  display: block;
}

.desktop__lang {
  display: none;
}

/* Показываем переключатель языка на десктопе */
@media (min-width: 768px) {
  .desktop__lang {
    display: block;
  }
  /* Языки всегда видны на всех устройствах */
  .mobile__lang {
    display: block;
  }
}

/* Стили для переключателя языка в бургер-меню */
.burger__section--language {
  padding: 1.5rem var(--padding-x);
}

.burger__language {
  margin-top: 1rem;
}

/* Стили для чекбоксов языков */
.lang__checkboxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.lang__checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  width: 100%;
}

.lang__checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.lang__checkbox-custom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5em 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  transition: all 0.2s ease;
  width: 100%;
  justify-content: center;
  position: relative;
}

.lang__checkbox-label:hover .lang__checkbox-custom {
  border-color: #d32f2f;
  background: #fff;
}

.lang__checkbox-label:active .lang__checkbox-custom,
.lang__checkbox-input:focus + .lang__checkbox-custom {
  border-color: #d32f2f;
  background: #fff;
}

.lang__checkbox-label:active .lang__checkbox-custom .lang__checkbox-text {
  color: #333;
}

.lang__checkbox-input:checked + .lang__checkbox-custom {
  border-color: #d32f2f;
  background: #fff;
  color: #333;
}

.lang__checkbox-input:checked + .lang__checkbox-custom .lang__checkbox-text {
  color: #333 !important;
}

.lang__checkbox-label.active .lang__checkbox-custom {
  border-color: #d32f2f;
  background: #fff;
  color: #333;
}

.lang__checkbox-label.active .lang__checkbox-custom .lang__checkbox-text {
  color: #333 !important;
}

.lang__checkbox-custom::after {
  display: none;
}

.lang__checkbox-custom img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.lang__checkbox-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.lang__checkbox-input:checked + .lang__checkbox-custom .lang__checkbox-text,
.lang__checkbox-label.active .lang__checkbox-custom .lang__checkbox-text {
  color: #333 !important;
}

/* Адаптивность для чекбоксов */
@media (max-width: 480px) {
  .lang__checkboxes {
    grid-template-columns: 1fr;
  }
}

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

/* ================== Кнопка Поиск ================== */
.search__wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search__toggle {
  color: rgba(0, 0, 0, 0.8);
  background: none !important;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  box-shadow: none !important;
  width: auto;
  height: auto;
}

.search__toggle:hover {
  transform: scale(1.02);
}

.search__toggle svg {
  color: rgba(0, 0, 0, 0.8) !important;
  stroke: currentColor !important;
  transition: transform 0.2s ease;
}

.search__toggle:hover svg {
  transform: scale(1.02);
}

.search__toggle svg * {
  color: rgba(0, 0, 0, 0.8) !important;
  stroke: currentColor !important;
}

.search__form {
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0.375rem;
  padding: 0.375rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  width: 242px;
  min-width: 242px;
  max-width: 242px;
}

.search__wrapper.active .search__form {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.search__input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  outline: none;
  padding: 0.375rem 0.5rem;
  font-size: 0.875rem;
  background: #fff;
  transition: border-color 0.2s ease;
  height: 28px;
  line-height: 1.2;
  min-width: 0;
  width: auto;
}

.search__input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.search__submit {
  background-color: #dc3545;
  color: #fff;
  border: none;
  border-radius: 0.25rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
  height: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search__submit:hover {
  background-color: #c82333;
  transform: translateY(-1px);
}

.search__submit:active {
  transform: translateY(0);
}

/* Search Results Dropdown */
.search__results {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  width: 100%;
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0.375rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  margin-top: 0.5rem;
}

.search__results.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.search__result-item {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease;
}

.search__result-item:last-child {
  border-bottom: none;
}

.search__result-item:hover {
  background-color: #f8f8f8;
}

.search__result-item.search__result-empty {
  color: #666;
  font-style: italic;
  cursor: default;
}

.search__result-item.search__result-empty:hover {
  background-color: transparent;
}

.search__result-title {
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
  color: #000;
}

.search__result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #666;
}

.search__result-kind {
  font-weight: 500;
  color: #333;
}

.search__result-location {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search__result-price {
  font-weight: 600;
  color: #000;
}

@media (max-width: 768px) {
  .search__results {
    width: calc(100vw - 2rem);
    right: -1rem;
    max-width: 320px;
  }
}

/* =====================================================================
              СОВРЕМЕННОЕ БУРГЕР-МЕНЮ - ПОЛНЫЙ РЕФАКТОРИНГ
   ===================================================================== */

/* Анимированная иконка бургера */
.burger {
  position: relative;
  width: 22px;
  height: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2001;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.burger:hover {
  transform: scale(1.1);
}

.burger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

.burger.active .burger__line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
  background: #991b1b;
}

.burger.active .burger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger.active .burger__line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
  background: #991b1b;
}

/* Backdrop с blur эффектом */
.burger__backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
  z-index: 1999;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.burger__backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Бургер-меню - стеклянный эффект */
.burger__menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 1350px;
  height: 100vh;
  margin: 0 auto;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(248, 249, 250, 0.98) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.95);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.burger__menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

/* Курсор по умолчанию для всех элементов внутри бургер-меню */
.burger__menu,
.burger__menu * {
  cursor: default !important;
}

@media (min-width: 1200px) {
  .burger__menu {
    left: 50%;
    transform: translateX(-50%) scale(0.95);
  }

  .burger__menu.open {
    transform: translateX(-50%) scale(1);
  }
}

/* Заголовок с градиентом */
.burger__header {
  padding: 2rem 2.5rem;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.85) 50%,
    rgba(0, 0, 0, 0.9) 100%
  );
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.burger__header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 70%
  );
  animation: burgerRotate 20s linear infinite;
}

@keyframes burgerRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.burger__header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.burger__logo-wrapper {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.burger__logo {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.burger__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

/* Скроллируемый контент */
.burger__scrollable {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2rem 2.5rem;
  scrollbar-width: thin;
  scrollbar-color: #991b1b rgba(0, 0, 0, 0.1);
}

.burger__scrollable::-webkit-scrollbar {
  width: 8px;
}

.burger__scrollable::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.burger__scrollable::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #991b1b 0%, rgba(153, 27, 27, 0.8) 100%);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.burger__scrollable::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(153, 27, 27, 0.9) 0%, #991b1b 100%);
}

/* Секции */
.burger__section {
  margin-bottom: 3rem;
  animation: fadeInUp 0.6s ease both;
  opacity: 0;
}

.burger__section:nth-of-type(1) {
  animation-delay: 0.2s;
}
.burger__section:nth-of-type(2) {
  animation-delay: 0.3s;
}
.burger__section:nth-of-type(3) {
  animation-delay: 0.4s;
}
.burger__section:nth-of-type(4) {
  animation-delay: 0.5s;
}

.burger__menu.open .burger__section {
  opacity: 1;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.burger__section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  color: rgb(var(--black) / 0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 1rem;
}

.burger__section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #991b1b 0%, transparent 100%);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(153, 27, 27, 0.2);
}

.burger__section-icon {
  width: 20px;
  height: 20px;
  color: rgb(var(--black) / 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.burger__section-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

@keyframes burgerBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Grid разделов недвижимости */
.burger__properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.burger__property-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  text-decoration: none;
  color: rgb(var(--black) / 0.9);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.burger__property-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.burger__property-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 1);
}

.burger__property-card:hover::before {
  opacity: 1;
}

.burger__property-icon {
  width: 64px;
  height: 64px;
  background: rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  z-index: 1;
}

.burger__property-card:hover .burger__property-icon {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.burger__property-icon img,
.burger__property-icon picture {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.burger__property-icon picture {
  display: flex;
  align-items: center;
  justify-content: center;
}

.burger__property-icon picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.burger__property-card:hover .burger__property-icon img {
  transform: scale(1.05);
}

.burger__property-label {
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.burger__property-card:hover .burger__property-label {
  color: rgb(var(--black));
}

.burger__property-arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.25rem;
  color: rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-10px);
}

.burger__property-card:hover .burger__property-arrow {
  opacity: 1;
  transform: translateX(0);
  color: rgba(0, 0, 0, 0.8);
}

/* Новый дизайн блока Servicii (карточки в сетке) */
.burger__services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.burger__service-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  background: rgba(0, 0, 0, 0.05);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  text-decoration: none;
  color: rgb(var(--black) / 0.9);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
}

.burger__service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.burger__service-card:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  color: rgb(var(--black));
}

.burger__service-card:hover::before {
  left: 100%;
}

.burger__service-label {
  position: relative;
  z-index: 1;
}

/* Навигация (список услуг) - старый стиль, оставляем для совместимости */
.burger__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.burger__nav li {
  margin-bottom: 0.75rem;
  animation: slideInRight 0.5s ease both;
  opacity: 0;
}

.burger__menu.open .burger__nav li {
  opacity: 1;
}

.burger__nav li:nth-child(1) {
  animation-delay: 0.15s;
}
.burger__nav li:nth-child(2) {
  animation-delay: 0.2s;
}
.burger__nav li:nth-child(3) {
  animation-delay: 0.25s;
}
.burger__nav li:nth-child(4) {
  animation-delay: 0.3s;
}
.burger__nav li:nth-child(5) {
  animation-delay: 0.35s;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.burger__nav a {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  color: rgb(var(--black) / 0.8);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  background: linear-gradient(90deg, transparent 0%, transparent 100%);
  border-left: 4px solid transparent;
}

.burger__nav a::before {
  content: "→";
  position: absolute;
  left: 0.75rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  color: rgba(0, 0, 0, 0.8);
  font-weight: bold;
}

.burger__nav a:hover {
  background: rgba(0, 0, 0, 0.08);
  color: rgb(var(--black));
  transform: translateX(8px);
  border-left-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.burger__nav a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.burger__nav a.active {
  background: rgba(0, 0, 0, 0.12);
  color: rgb(var(--black));
  font-weight: 600;
  border-left-color: rgba(0, 0, 0, 0.4);
}

/* Контакты */
.burger__contacts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.burger__contacts .contacts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}

/* Адаптивная сетка для контактов */
@media (min-width: 414px) {
  .burger__contacts .contacts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 600px) {
  .burger__contacts .contacts {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .burger__contacts .contacts {
    grid-template-columns: repeat(4, 1fr);
  }
}

.burger__contacts .contactbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
  background: rgba(0, 0, 0, 0.05);
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  text-decoration: none;
  color: rgb(var(--black) / 0.8);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-size: 0.8125rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.burger__contacts .contactbtn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.burger__contacts .contactbtn:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: rgb(var(--black));
}

.burger__contacts .contactbtn:hover::before {
  left: 100%;
}

/* Блокировка скролла body */
body.burger-menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Адаптивность */
@media (max-width: 767px) {
  .burger__menu {
    max-width: 100%;
  }

  .burger__header {
    padding: 1.5rem 1.5rem;
  }

  .burger__title {
    font-size: 1.5rem;
  }

  .burger__scrollable {
    padding: 1.5rem;
  }

  .burger__properties-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .burger__property-card {
    padding: 1.25rem 1rem;
  }

  .burger__property-icon {
    width: 56px;
    height: 56px;
  }

  .burger__property-icon img,
  .burger__property-icon picture {
    width: 36px;
    height: 36px;
  }

  .burger__services-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .burger__service-card {
    padding: 1rem;
    font-size: 0.875rem;
  }

  .header__links {
    display: none; /* Скрываем на мобильных */
  }
}

/* Оптимизация для экранов от 320px */
@media (max-width: 480px) {
  .header__container {
    padding: 0 var(--padding-x);
  }

  .burger__header {
    padding: 1rem var(--padding-x);
  }

  .burger__title {
    font-size: 1.25rem;
  }

  .burger__scrollable {
    padding: 1rem var(--padding-x);
  }

  .burger__properties-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .burger__property-card {
    padding: 1rem 0.75rem;
  }

  .burger__property-icon {
    width: 48px;
    height: 48px;
  }

  .burger__property-icon img,
  .burger__property-icon picture {
    width: 32px;
    height: 32px;
  }

  .burger__service-card {
    padding: 0.75rem;
    font-size: 0.8125rem;
  }

  #footer.footer {
    padding: 1.5rem var(--padding-x);
  }
}

/* Очень маленькие экраны (320px) */
@media (max-width: 360px) {
  .burger__header {
    padding: 0.75rem var(--padding-x);
  }

  .burger__title {
    font-size: 1.125rem;
  }

  .burger__scrollable {
    padding: 0.75rem var(--padding-x);
  }

  .burger__property-card {
    padding: 0.75rem 0.5rem;
  }

  #footer.footer {
    padding: 1rem var(--padding-x);
    font-size: 0.8125rem;
  }
}

@media (min-width: 768px) {
  .burger {
    display: flex; /* Всегда показываем бургер */
  }
}

@media (max-width: 1199px) {
  .header__links {
    display: none; /* Скрываем до 1200px */
  }
}

@media (min-width: 1200px) {
  .header__links {
    display: block; /* Показываем header__links на десктопе от 1200px */
  }
}

/* =====================================================================
                            F O O T E R - ТЕМНЫЙ ГРАДИЕНТНЫЙ ДИЗАЙН
   ===================================================================== */

#footer.footer {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.85) 50%,
    rgba(0, 0, 0, 0.9) 100%
  );
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#footer.footer::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 70%
  );
  animation: footerRotate 25s linear infinite;
  pointer-events: none;
}

@keyframes footerRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Темный градиентный header */
.footer__header {
  padding: 1rem 2rem 0.75rem;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.98) 0%,
    rgba(0, 0, 0, 0.92) 50%,
    rgba(0, 0, 0, 0.95) 100%
  );
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__header::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: footerRotate 20s linear infinite;
}

.footer__header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
  max-width: 84.375rem;
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

.footer__logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer__logo-wrapper:hover {
  transform: scale(1.05);
}

.footer__logo-link {
  display: block;
  transition: transform 0.3s ease;
}

.footer__logo-link:hover {
  transform: scale(1.05);
}

.footer__logo-img {
  width: auto;
  height: 40px;
  display: block;
}

.footer__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

/* Основной контент */
.footer__content {
  position: relative;
  z-index: 1;
  padding: 1rem 0 0.5rem;
}

.footer__container {
  max-width: 84.375rem;
  width: 100%;
  margin-inline: auto;
  padding: 0 var(--padding-x);
  box-sizing: border-box;
}

/* Верхняя секция с описанием и формой */
.footer__top-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease both;
}

/* Описание */
.footer__description-section {
  margin-bottom: 0;
}

.footer__description {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  max-width: 600px;
}

/* Секция формы запроса звонка */
.footer__callback-form-section {
  animation: fadeInUp 0.6s ease 0.1s both;
}

.footer__form-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Форма запроса звонка */
.footer__callback-form {
  display: grid;
  gap: 0.75rem;
}

.footer__form-row {
  width: 100%;
}

.footer__callback-form input {
  width: 100%;
  height: 2.5rem;
  padding: 0 1rem;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.footer__callback-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer__callback-form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.footer__callback-form input:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.footer__form-submit {
  width: 100%;
  height: 2.5rem;
  padding: 0 1.5rem;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.footer__form-submit:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.footer__form-submit:active {
  transform: translateY(0);
}

.footer__form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Заголовки секций */
.footer__section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer__section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #dc2626 0%, transparent 100%);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.footer__section-icon {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer__section-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

/* Секция услуг */
.footer__services-section {
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.footer__services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.footer__services-grid .footer__service-card {
  width: 100%;
}

.footer__services-grid--extra {
  margin-bottom: 0;
}

.footer__service-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  min-height: 44px;
  height: 44px;
  box-sizing: border-box;
}

.footer__service-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.footer__service-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.footer__service-card:hover::before {
  opacity: 1;
}

.footer__service-card--small {
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
  min-height: 44px;
  height: 44px;
  box-sizing: border-box;
}

.footer__service-label {
  font-weight: 600;
  font-size: 0.8125rem;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer__service-card--small .footer__service-label {
  font-size: 0.75rem;
}

.footer__service-arrow {
  position: relative;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-10px);
  z-index: 1;
}

.footer__service-card:hover .footer__service-arrow {
  opacity: 1;
  transform: translateX(0);
  color: rgba(255, 255, 255, 0.9);
}

/* Секция подписки */
.footer__subscribe-section {
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.footer__subscribe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
  transition: background 0.3s ease;
}

.footer__subscribe-btn:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.footer__subscribe-icon {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

/* Секция контактов */
.footer__contacts-section {
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease 0.4s both;
}

#footer.footer .footer__contacts-section .contacts {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin: 0;
  width: 100%;
}

#footer.footer .footer__contacts-section .contactbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.875rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-size: 0.75rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  width: auto;
  height: auto;
  text-indent: 0;
  white-space: normal;
}

#footer.footer .footer__contacts-section .contactbtn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

#footer.footer .footer__contacts-section .contactbtn:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

#footer.footer .footer__contacts-section .contactbtn:hover::before {
  left: 100%;
}

#footer.footer .footer__contacts-section .contactbtn i,
#footer.footer .footer__contacts-section .contactbtn svg {
  width: 24px;
  height: 24px;
  font-size: 24px;
  line-height: 1;
  margin: 0;
  position: static;
  transform: none;
  color: #ffffff;
  fill: #ffffff;
  opacity: 1;
  filter: none;
}

#footer.footer .footer__contacts-section .contactbtn svg path,
#footer.footer .footer__contacts-section .contactbtn svg circle,
#footer.footer .footer__contacts-section .contactbtn svg rect {
  fill: #ffffff;
  stroke: #ffffff;
}

#footer.footer .footer__contacts-section .contactbtn:hover i,
#footer.footer .footer__contacts-section .contactbtn:hover svg {
  color: #ffffff;
  fill: #ffffff;
  opacity: 1;
}

/* Копирайт */
.footer__bottom {
  position: relative;
  z-index: 1;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0.75rem;
}

.footer__copyright {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
