/* Cookie toast — Figma Group 114
   85:4213 @1920; 193:33901 @1300; 193:33906 @900; 193:33911 @420; 161:16355 @360 */

.cookies-main {
  width: 1920px;
  min-height: 582.5px; /* frame 687 − header 104.5 */
  margin: 0;
  padding: 0;
  background: #fff;
}

/* Live cookies policy: do not use blog absolute artboard (articles-bc / articles-title).
   Title slot is 103px «Блог» — overlaps CMS body. Flow like info/privacy. */
body.cookies-page .cookies-main {
  width: 100%;
  min-height: 0;
  position: relative;
  margin: 0 auto;
  box-sizing: border-box;
}

body.cookies-page .articles-bc {
  position: static !important;
  left: auto !important;
  top: auto !important;
  z-index: auto;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  width: auto;
  max-width: calc(100% - 161px);
  height: auto;
  min-height: 36px;
  margin: 35px 0 0 161px;
}

body.cookies-page .articles-title {
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  max-width: calc(100% - 320px);
  height: auto !important;
  margin: 32px 0 0 160px;
}

body.cookies-page .cookies-content.dentins-info-body {
  position: relative;
  z-index: 1;
}

@media (max-width: 1300px) and (min-width: 1000px) {
  body.cookies-page .articles-bc {
    margin: 22px 0 0 19px;
    max-width: calc(100% - 19px);
  }

  body.cookies-page .articles-title {
    margin: 32px 0 0 19px;
    max-width: calc(100% - 38px);
  }
}

@media (max-width: 999px) and (min-width: 700px) {
  body.cookies-page .articles-bc {
    margin: 20px 0 0 40px;
    max-width: calc(100% - 40px);
  }

  body.cookies-page .articles-title {
    margin: 28px 0 0 40px;
    max-width: calc(100% - 80px);
    font-size: 28px;
  }
}

@media (max-width: 699px) {
  body.cookies-page .articles-bc {
    margin: 16px 0 0 20px;
    max-width: calc(100% - 20px);
  }

  body.cookies-page .articles-title {
    margin: 24px 0 0 20px;
    max-width: calc(100% - 40px);
    font-size: 24px;
  }
}

/* —— Live site: fixed, centered (Figma bottom offsets) —— */
.cookie-toast {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 48px;
  top: auto;
  z-index: 10050;
  box-sizing: border-box;
  width: 535px;
  height: 96px;
  margin: 0;
  padding: 24px 47px 24px 24px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #262626;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  transform: translateX(-50%);
}

.cookie-toast.is-hidden {
  display: none !important;
}

.cookie-toast__text {
  margin: 0;
  width: 446px;
  max-width: 100%;
  color: #262626;
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
}

.cookie-toast__text a {
  color: #4882ec; /* Figma styleOverride on «Политикой…» */
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: normal;
}

.cookie-toast__text a:hover,
.cookie-toast__text a:focus {
  color: #4882ec;
}

.cookie-toast__br {
  display: none;
}

.cookie-toast__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 12px;
  height: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  appearance: none;
}

.cookie-toast__close::before,
.cookie-toast__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1px;
  background: #262626;
}

.cookie-toast__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.cookie-toast__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Kill legacy dark bar (.cookie-notification) if class still present */
.cookie-toast.cookie-notification {
  left: 50%;
  right: auto;
  bottom: 48px;
  width: 535px;
  height: 96px;
  padding: 24px 47px 24px 24px;
  background: #fff;
  color: #262626;
}

.cookie-toast .cookie-notification__info {
  padding: 0;
  font-size: inherit;
  color: inherit;
}

.cookie-toast .cookie-notification__btn {
  height: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  font-weight: inherit;
}

/* —— Live viewport breakpoints —— */
@media (max-width: 1300px) and (min-width: 1000px) {
  .cookie-toast,
  .cookie-toast.cookie-notification {
    bottom: 21px;
  }
}

@media (max-width: 999px) and (min-width: 700px) {
  .cookie-toast,
  .cookie-toast.cookie-notification {
    bottom: 19px;
  }
}

@media (max-width: 699px) and (min-width: 361px) {
  .cookie-toast,
  .cookie-toast.cookie-notification {
    bottom: 14px;
    width: 325px;
    height: 83px;
    padding: 16px 35px 16px 16px;
  }

  .cookie-toast__text {
    width: 266px;
    font-size: 12px;
    line-height: 1.4;
  }

  .cookie-toast__br {
    display: inline;
  }

  .cookie-toast__close {
    top: 16px;
    right: 16px;
  }
}

@media (max-width: 360px) {
  .cookie-toast,
  .cookie-toast.cookie-notification {
    bottom: 20px;
    width: 325px;
    height: 83px;
    padding: 16px 35px 16px 16px;
  }

  .cookie-toast__text {
    width: 266px;
    font-size: 12px;
    line-height: 1.4;
  }

  .cookie-toast__br {
    display: inline;
  }

  .cookie-toast__close {
    top: 16px;
    right: 16px;
  }
}

/* —— Artboard preview (cookies-preview / locked BP) —— */
html.articles-bp-1300 .cookies-main,
body.articles-bp-1300 .cookies-main {
  width: 1300px;
  min-height: 404px;
}

html.articles-bp-900 .cookies-main,
body.articles-bp-900 .cookies-main {
  width: 900px;
  min-height: 329px;
}

html.articles-bp-420 .cookies-main,
body.articles-bp-420 .cookies-main {
  width: 420px;
  min-height: 492px;
}

html.articles-bp-360 .cookies-main,
body.articles-bp-360 .cookies-main {
  width: 360px;
  min-height: 613px;
}

html.articles-bp-1920 .articles-artboard .cookie-toast,
body.articles-bp-1920 .articles-artboard .cookie-toast {
  position: absolute;
  left: 693px;
  top: 543px;
  bottom: auto;
  transform: none;
}

html.articles-bp-1300 .articles-artboard .cookie-toast,
body.articles-bp-1300 .articles-artboard .cookie-toast {
  position: absolute;
  left: 382px;
  top: 391px;
  bottom: auto;
  transform: none;
}

html.articles-bp-900 .articles-artboard .cookie-toast,
body.articles-bp-900 .articles-artboard .cookie-toast {
  position: absolute;
  left: 182px;
  top: 318px;
  bottom: auto;
  transform: none;
}

html.articles-bp-420 .articles-artboard .cookie-toast,
body.articles-bp-420 .articles-artboard .cookie-toast {
  position: absolute;
  left: 48px;
  top: 469px;
  bottom: auto;
  transform: none;
  width: 325px;
  height: 83px;
  padding: 16px 35px 16px 16px;
}

html.articles-bp-420 .articles-artboard .cookie-toast__text,
body.articles-bp-420 .articles-artboard .cookie-toast__text {
  width: 266px;
  font-size: 12px;
  line-height: 1.4;
}

html.articles-bp-420 .articles-artboard .cookie-toast__br,
body.articles-bp-420 .articles-artboard .cookie-toast__br {
  display: inline;
}

html.articles-bp-420 .articles-artboard .cookie-toast__close,
body.articles-bp-420 .articles-artboard .cookie-toast__close {
  top: 16px;
  right: 16px;
}

html.articles-bp-360 .articles-artboard .cookie-toast,
body.articles-bp-360 .articles-artboard .cookie-toast {
  position: absolute;
  left: 16px;
  top: 584px;
  bottom: auto;
  transform: none;
  width: 325px;
  height: 83px;
  padding: 16px 35px 16px 16px;
}

html.articles-bp-360 .articles-artboard .cookie-toast__text,
body.articles-bp-360 .articles-artboard .cookie-toast__text {
  width: 266px;
  font-size: 12px;
  line-height: 1.4;
}

html.articles-bp-360 .articles-artboard .cookie-toast__br,
body.articles-bp-360 .articles-artboard .cookie-toast__br {
  display: inline;
}

html.articles-bp-360 .articles-artboard .cookie-toast__close,
body.articles-bp-360 .articles-artboard .cookie-toast__close {
  top: 16px;
  right: 16px;
}
