/* Cookie notice — tangensokna.ru, 19.11.2026 */
.tg-cookie{
  --ink:#1E242B;
  --muted:#5F6973;
  --navy:#2C3B4B;
  --red-btn:#DA141B;
  --paper:#FFFFFF;
  --line:#E6E0D6;
  --r-lg:24px;
  --shadow-lg:0 24px 60px -24px rgba(20,28,38,.35);
  box-sizing:border-box;
  position:fixed;
  z-index:50;
  transition:bottom .35s ease;
  left:auto;
  right:24px;
  bottom:24px;
  width:min(400px,calc(100vw - 48px));
  padding:18px 20px 16px;
  display:flex;
  flex-direction:column;
  gap:14px;
  background:var(--paper);
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-lg);
  font-family:Manrope,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:14.5px;
  line-height:1.45;
  letter-spacing:-.01em;
}
.tg-cookie[hidden]{display:none!important}
.tg-cookie *,.tg-cookie *::before,.tg-cookie *::after{box-sizing:border-box}
.tg-cookie__text{margin:0;color:var(--ink)}
.tg-cookie__actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.tg-cookie__link{
  color:var(--navy);
  font-weight:700;
  font-size:14px;
  text-decoration:underline;
  text-underline-offset:3px;
}
.tg-cookie__link:hover{color:var(--ink)}
.tg-cookie__ok{
  appearance:none;
  margin:0;
  border:0;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 20px;
  border-radius:999px;
  background:var(--navy);
  color:#fff;
  font:inherit;
  font-weight:700;
  font-size:15px;
  letter-spacing:-.01em;
  text-decoration:none;
  transition:background .2s ease,transform .2s ease;
}
.tg-cookie__ok:hover{background:#24323f}
.tg-cookie__ok:active{transform:translateY(1px)}
.tg-cookie__ok:focus-visible,
.tg-cookie__link:focus-visible{
  outline:2px solid var(--navy);
  outline-offset:3px;
}
.tg-cookie__ok:focus-visible{outline-color:#fff;box-shadow:0 0 0 5px var(--navy)}

@media (max-width:760px){
  .tg-cookie{
    left:10px;
    right:10px;
    width:auto;
    bottom:calc(10px + env(safe-area-inset-bottom,0px));
    padding:12px 14px 12px;
    border-radius:20px;
    font-size:14px;
    gap:10px;
  }
  /* Lift above the mobile call/measure bar when it is visible */
  body:has(.mbar):not(.at-top):not(.modal-open) .tg-cookie{
    bottom:calc(82px + env(safe-area-inset-bottom,0px));
  }
}

@media (prefers-reduced-motion:reduce){
  .tg-cookie,.tg-cookie__ok{transition:none}
}

@media (prefers-reduced-motion:no-preference){
  .tg-cookie:not([hidden]){
    animation:tg-cookie-in .35s ease both;
  }
}
@keyframes tg-cookie-in{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:none}
}
