/* ============================================================
   Cookie-consent — общий модуль для всех страниц yulyessa.ru.
   Самодостаточный: свой шрифт, свои цвета, ничего не наследует.
   ============================================================ */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/v9/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/v9/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: min(420px, calc(100vw - 32px));
  padding: 17px 19px 18px;
  border: 1px solid rgba(235, 214, 174, 0.18);
  border-radius: 18px;
  background: rgba(11, 9, 18, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  color: rgba(244, 237, 227, 0.74);
  font-family: "Onest", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

@supports (backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px)) {
  .cookie-consent {
    background: rgba(11, 9, 18, 0.82);
  }
}

.cookie-consent-text {
  margin: 0;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px 14px;
}

.cookie-consent button {
  margin: 0;
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 560;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.cookie-consent-accept {
  border: 1px solid #d6ab5d;
  background: #d6ab5d;
  color: #100d18;
}

.cookie-consent-accept:hover {
  background: #f0d391;
  border-color: #f0d391;
}

.cookie-consent-link {
  color: rgba(244, 237, 227, 0.55);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 180ms ease;
}

.cookie-consent-link:hover {
  color: #f5f0e8;
}

.cookie-consent :focus-visible {
  outline: 2px solid #f1cf83;
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    gap: 11px;
    padding: 14px 15px 15px;
    border-radius: 16px;
    font-size: 12.5px;
  }

  .cookie-consent button {
    padding: 9px 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cookie-consent {
    animation: cookie-consent-in 320ms ease-out both;
  }

  @keyframes cookie-consent-in {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
  }
}
