:root { color-scheme: light; }

* { box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
}


@media (min-width: 981px){
  .lr-header{ position: sticky; top: 0; }
}


/* ВАЖНО: не задаём font-family тут — это делает tokens.css */

a { color: inherit; }

/* Контейнер — используем токены */
.lr-container,
.container{
  max-width: var(--lr-container);
  margin: 0 auto;
  padding: 0 var(--lr-gutter);
}

/* Базовая структура страниц */
.lr-main { padding: 26px 0; display: block; }
.lr-muted { opacity: .75; }

/* Базовая защита от "растянутых" картинок */
img { max-width: 100%; height: auto; }

/* Если где-то в блоках используются фоновые/обложки */
.hero-slide-bg,
.ui-gallery img,
.ui-image img,
.hero-card__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Cookie consent */
.cookie-consent{
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-consent[hidden]{
  display: none !important;
}

.cookie-consent__inner{
  width: min(100%, 760px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  color: var(--lr-cookie-text, #24201d);
  background: var(--lr-cookie-bg, rgba(255, 255, 255, .96));
  border: 1px solid var(--lr-cookie-border, rgba(36, 32, 29, .12));
  border-radius: 22px;
  box-shadow: 0 18px 55px rgba(36, 32, 29, .16);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}

.cookie-consent__text{
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.cookie-consent__link{
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__link:hover{
  opacity: .75;
}

.cookie-consent__actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.cookie-consent__btn{
  appearance: none;
  border: 0;
  cursor: pointer;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--lr-cookie-btn-text, #ffffff);
  background: var(--lr-cookie-btn-bg, #24201d);
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.cookie-consent__btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(36, 32, 29, .18);
}

.cookie-consent__btn:active{
  transform: translateY(0);
  opacity: .85;
}

.cookie-consent__btn:focus-visible,
.cookie-consent__link:focus-visible{
  outline: 2px solid var(--lr-cookie-focus, #24201d);
  outline-offset: 3px;
}

@media (max-width: 640px){
  .cookie-consent{
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-consent__inner{
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
  }

  .cookie-consent__text{
    font-size: 13px;
  }

  .cookie-consent__actions,
  .cookie-consent__btn{
    width: 100%;
  }
}
