/* SDWSKi GDPR — баннер на всю ширину экрана с выбором языка.
   Селекторы через #id и !important, чтобы стили темы их не перебивали. */
#sdwski-cc{margin:0 !important;--bg:#fff;--tx:#16171a;--mu:#5f6368;--ln:rgba(0,0,0,.14);--bt:#000;--bt-tx:#fff;--soft:rgba(0,0,0,.05);
	position:fixed !important;z-index:2147483647 !important;left:0 !important;right:0 !important;bottom:0 !important;top:auto !important;
	width:100% !important;max-width:none !important;max-height:92vh;overflow:auto;box-sizing:border-box;
	padding:clamp(18px,2.4vw,32px) clamp(18px,4vw,64px) calc(clamp(18px,2.4vw,32px) + env(safe-area-inset-bottom,0px)) !important;
	border:0 !important;border-top:1px solid var(--ln) !important;border-radius:0 !important;background:var(--bg);color:var(--tx);
	box-shadow:0 -10px 40px -20px rgba(0,0,0,.35);
	font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif !important;
	font-size:15px !important;line-height:1.5 !important;letter-spacing:0 !important;text-align:left !important;
	animation:sdwski-cc-in .4s cubic-bezier(.2,.8,.2,1) both}
@keyframes sdwski-cc-in{from{transform:translateY(100%);opacity:.6}to{transform:none;opacity:1}}
#sdwski-cc[hidden],.sdwski-cc-fab[hidden],#sdwski-cc [hidden],#sdwski-cc .sdwski-cc__panel[hidden],#sdwski-cc .sdwski-cc__btn[hidden]{display:none !important}
#sdwski-cc[data-theme=dark],.sdwski-cc-fab[data-theme=dark]{--bg:#16171a;--tx:#f5f5f7;--mu:#a1a1a6;--ln:rgba(255,255,255,.18);--bt:#f5f5f7;--bt-tx:#000;--soft:rgba(255,255,255,.08)}
#sdwski-cc *{box-sizing:border-box;font-family:inherit !important;letter-spacing:0 !important;margin:0}

/* Сетка: заголовок | язык, текст | кнопки, панель на всю ширину */
#sdwski-cc .sdwski-cc__inner{display:grid !important;grid-template-columns:minmax(0,1fr) auto;column-gap:clamp(24px,5vw,80px);row-gap:10px;
	grid-template-areas:"title lang" "text btns" "panel panel";align-items:center;width:100%;margin:0 !important;padding:0 !important}
#sdwski-cc .sdwski-cc__title{grid-area:title;margin:0 !important;font-size:clamp(18px,1.6vw,22px) !important;line-height:1.2 !important;font-weight:700 !important;color:var(--tx) !important}
#sdwski-cc .sdwski-cc__text{grid-area:text;max-width:78ch;margin:0 !important;font-size:15px !important;line-height:1.55 !important;font-weight:400 !important;color:var(--mu) !important}
#sdwski-cc .sdwski-cc__text a{color:var(--tx) !important;font-size:inherit !important;font-weight:600;text-decoration:underline;text-underline-offset:3px}

/* Выбор языка внутри баннера */
#sdwski-cc .sdwski-cc__lang{grid-area:lang;justify-self:end;display:inline-flex !important;gap:2px;padding:3px;border:1px solid var(--ln);border-radius:999px;background:var(--soft)}
#sdwski-cc .sdwski-cc__lbtn{min-width:46px;height:34px !important;min-height:0 !important;padding:0 12px !important;border:0 !important;border-radius:999px !important;background:transparent !important;color:var(--tx) !important;
	font-size:13px !important;font-weight:600 !important;line-height:1 !important;cursor:pointer;text-transform:none !important;box-shadow:none !important;transition:background .2s,color .2s}
#sdwski-cc .sdwski-cc__lbtn:hover{background:var(--ln) !important}
#sdwski-cc .sdwski-cc__lbtn[aria-pressed=true]{background:var(--bt) !important;color:var(--bt-tx) !important;cursor:default}

/* Категории cookie: колонки на всю ширину, разделены линиями */
#sdwski-cc .sdwski-cc__panel{grid-area:panel;display:grid !important;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:0 clamp(20px,3vw,48px);margin-top:12px !important}
#sdwski-cc .sdwski-cc__row{display:flex !important;align-items:flex-start;justify-content:space-between;gap:14px;padding:14px 0 !important;border-top:1px solid var(--ln);cursor:pointer}
#sdwski-cc .sdwski-cc__rowtxt{display:flex;flex-direction:column;gap:3px;color:var(--tx)}
#sdwski-cc .sdwski-cc__rowtxt strong{font-size:15px !important;line-height:1.3 !important;font-weight:700 !important}
#sdwski-cc .sdwski-cc__rowtxt small{color:var(--mu);font-size:13px !important;line-height:1.45 !important}
#sdwski-cc .sdwski-cc__always{flex:none;margin-top:2px;font-size:12.5px !important;font-weight:600;color:var(--mu);white-space:nowrap}
#sdwski-cc .sdwski-cc__sw{flex:none;appearance:none;-webkit-appearance:none;position:relative;width:42px !important;height:24px !important;min-width:42px;border-radius:999px;background:var(--ln);border:0 !important;cursor:pointer;transition:background .2s}
#sdwski-cc .sdwski-cc__sw::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:var(--bg);box-shadow:0 1px 3px rgba(0,0,0,.35);transition:transform .2s}
#sdwski-cc .sdwski-cc__sw:checked{background:var(--bt)}
#sdwski-cc .sdwski-cc__sw:checked::after{transform:translateX(18px)}

/* рамка фокуса только при навигации с клавиатуры (Tab), а не при открытии баннера */
#sdwski-cc .sdwski-cc__btn:focus:not(:focus-visible),#sdwski-cc .sdwski-cc__sw:focus:not(:focus-visible),#sdwski-cc .sdwski-cc__lbtn:focus:not(:focus-visible){outline:none}
#sdwski-cc .sdwski-cc__sw:focus-visible,#sdwski-cc .sdwski-cc__btn:focus-visible,#sdwski-cc .sdwski-cc__lbtn:focus-visible{outline:2px solid #0071e3;outline-offset:2px}

/* Кнопки. «Отклонить» и «Принять» визуально равнозначны (требование регуляторов ЕС) */
#sdwski-cc .sdwski-cc__btns{grid-area:btns;display:flex !important;flex-wrap:nowrap;gap:10px;margin:0 !important;justify-self:end}
#sdwski-cc .sdwski-cc__btn{flex:0 0 auto;min-width:150px;height:46px !important;min-height:0 !important;padding:0 22px !important;border-radius:999px !important;border:1.5px solid var(--bt) !important;background:var(--bt) !important;color:var(--bt-tx) !important;
	font-size:15px !important;font-weight:600 !important;line-height:1 !important;cursor:pointer;white-space:nowrap;text-transform:none !important;box-shadow:none !important;transition:opacity .2s}
#sdwski-cc .sdwski-cc__btn:hover{opacity:.85}
#sdwski-cc .sdwski-cc__btn--ghost{background:transparent !important;color:var(--tx) !important;border-color:var(--ln) !important}

/* Плавающая кнопка «Настройки cookie» */
.sdwski-cc-fab{margin:0 !important;position:fixed !important;z-index:2147483646 !important;top:auto !important;left:auto !important;right:16px !important;bottom:16px !important;display:flex;align-items:center;justify-content:center;width:36px !important;height:36px !important;padding:0 !important;border-radius:50% !important;
	border:1px solid var(--ln,rgba(0,0,0,.14)) !important;background:var(--bg,#fff) !important;color:var(--tx,#1d1d1f) !important;cursor:pointer;box-shadow:0 6px 20px -8px rgba(0,0,0,.35);--bg:#fff;--tx:#1d1d1f;--ln:rgba(0,0,0,.14)}
.sdwski-cc-fab[data-theme=dark]{--bg:#16171a;--tx:#f5f5f7;--ln:rgba(255,255,255,.18)}
.sdwski-cc-fab svg{width:18px;height:18px}
.sdwski-cc-fab:hover{opacity:.85}

/* Планшеты и телефоны: всё в одну колонку */
@media (max-width:860px){
	#sdwski-cc .sdwski-cc__inner{grid-template-columns:minmax(0,1fr);grid-template-areas:"title" "lang" "text" "panel" "btns";row-gap:12px}
	#sdwski-cc .sdwski-cc__lang{justify-self:stretch;display:flex !important}
	#sdwski-cc .sdwski-cc__lbtn{flex:1 1 0;min-width:0}
	#sdwski-cc .sdwski-cc__btns{justify-self:stretch;flex-wrap:wrap;margin-top:4px !important}
	#sdwski-cc .sdwski-cc__btn{flex:1 1 calc(50% - 5px);min-width:0;height:48px !important;padding:0 12px !important}
	#sdwski-cc .sdwski-cc__btn--ghost,#sdwski-cc .sdwski-cc__btn[data-cc=save]{flex-basis:100%}
	#sdwski-cc .sdwski-cc__panel{grid-template-columns:minmax(0,1fr);margin-top:0 !important}
	.sdwski-cc-fab{top:auto !important;left:auto !important;right:12px !important;bottom:calc(12px + env(safe-area-inset-bottom,0px)) !important}
}
@media (max-width:480px){
	#sdwski-cc{font-size:14px !important;max-height:94vh}
	#sdwski-cc .sdwski-cc__text{font-size:14px !important}
}
@media (prefers-reduced-motion:reduce){#sdwski-cc,#sdwski-cc *{transition:none !important;animation:none !important}}
.sdwski-legal-links a{color:inherit;text-decoration:underline;text-underline-offset:2px}
