:root{
  --bg:#0f1118;
  --panel:#161a25;
  --line: rgba(255,255,255,.12);
  --text:#e9ecf6;
  --muted:#aeb6cf;

  --red1:#d9412c;
  --red2:#a92a1b;
  --gold:#d6b36a;

  --container: 1160px;
  --radius: 16px;
  --shadow: 0 14px 40px rgba(0,0,0,.40);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html,body{ overflow-x:hidden; } /* prevents horizontal scroll “каша” */
body{
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(255,255,255,.07), transparent 55%), var(--bg);
  color: var(--text);
  line-height: 1.45;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }

.p3-container{
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

/* Buttons */
.p3-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 900;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
  user-select:none;
}
.p3-btn:hover{ transform: translateY(-1px); filter: brightness(1.06); }
.p3-btn--primary{
  background: linear-gradient(180deg, rgba(217,65,44,.98), rgba(169,42,27,.98));
  border-color: rgba(217,65,44,.55);
}
.p3-btn--ghost{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
}

/* Header (mirror-like layout) */
.p3-topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, #171a24, #0f1118);
  border-bottom: 1px solid var(--line);
}
.p3-topbar__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.p3-brand{ display:flex; align-items:center; gap: 10px; }
.p3-brand__logo{ height: 34px; width:auto; }
.p3-brand__text{ font-weight: 950; letter-spacing:.3px; }
.p3-topbar__notice{
  color: rgba(255,255,255,.78);
  font-weight: 700;
  font-size: 13px;
  text-align:center;
  flex: 1;
  padding: 0 12px;
}
@media (max-width: 900px){
  .p3-topbar__notice{ display:none; }
}
.p3-topbar__actions{ display:flex; align-items:center; gap: 10px; }

/* Sections */
.p3-main{ padding: 14px 0 44px; min-height: 60vh; }

/* Slider */
.p3-hero{ padding: 16px 0 6px; }
.p3-slider{
  position: relative;
  overflow: hidden; /* key fix: prevents “slider expands block” */
  max-width: 100%;
}
.p3-slider__track{
  display:flex;
  transition: transform .45s ease;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce){
  .p3-slider__track{ transition:none; }
}
.p3-slide{ flex: 0 0 100%; min-width: 100%; }
.p3-slide__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 900px){
  .p3-slide__grid{ grid-template-columns: 1fr; }
}
.p3-promo{
  position: relative;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  min-height: 250px;
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
}
.p3-promo__bg{ position:absolute; inset:0; }
.p3-promo__img{ width:100%; height:100%; object-fit: cover; }
.p3-promo__fallback{
  width:100%; height:100%;
  background: radial-gradient(900px 420px at 25% 30%, rgba(255,255,255,.12), transparent 60%),
              linear-gradient(135deg, rgba(217,65,44,.30), rgba(214,179,106,.10));
}
.p3-promo__content{
  position: relative;
  z-index: 2;
  padding: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,.40);
  display:flex;
  flex-direction: column;
  gap: 8px;
}
.p3-promo__title{
  font-weight: 950;
  font-size: 34px;
  line-height: 1.05;
}
.p3-promo__subtitle{
  font-weight: 900;
  color: rgba(255,255,255,.92);
}
.p3-slider__controls{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  margin-top: 12px;
}
.p3-nav{
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  cursor:pointer;
  position: relative;
}
.p3-nav::before{
  content:"";
  position:absolute;
  inset:0;
  margin:auto;
  width: 10px; height: 10px;
  border-right: 2px solid rgba(255,255,255,.9);
  border-bottom: 2px solid rgba(255,255,255,.9);
  transform: rotate(135deg);
}
.p3-nav--next::before{ transform: rotate(-45deg); }
.p3-dots{
  display:flex;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
}
.p3-dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.35);
  cursor: pointer;
}
.p3-dot.is-active{ background: rgba(255,255,255,.95); }

/* Casino / demo slots block */
.p3-casino{ padding: 10px 0 6px; }
.p3-casino__head{ text-align:center; margin-bottom: 10px; }
.p3-h2{ margin: 0; font-weight: 950; font-size: clamp(20px, 2.8vw, 30px); }
.p3-sub{ margin: 6px 0 0; color: rgba(255,255,255,.75); font-weight: 700; }

.p3-tabs{
  display:flex;
  justify-content:center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 12px;
}
.p3-tab{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  cursor:pointer;
  font-weight: 900;
  color: rgba(255,255,255,.90);
}
.p3-tab:hover{ background: rgba(255,255,255,.09); }
.p3-tab.is-active{
  border-color: rgba(214,179,106,.40);
  background: rgba(214,179,106,.10);
}
.p3-tab__icon{ width: 18px; height: 18px; object-fit: contain; }

.p3-grid{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 1100px){ .p3-grid{ grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 780px){ .p3-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px){ .p3-grid{ grid-template-columns: repeat(2, 1fr); } }

.p3-slot{
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
}
.p3-slot__media{
  position: relative;
  aspect-ratio: 16 / 10;
  background: rgba(0,0,0,.22);
}
.p3-slot__img{ width:100%; height:100%; object-fit: cover; }
.p3-slot__fallback{
  width:100%; height:100%;
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.02));
}
.p3-slot__overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity: 0;
  background: rgba(0,0,0,.55);
  transition: opacity .14s ease;
}
.p3-slot:hover .p3-slot__overlay{ opacity: 1; }
.p3-slot__actions{ display:flex; gap: 10px; }
.p3-slot__title{
  padding: 10px 10px 12px;
  font-weight: 900;
  font-size: 14px;
  color: rgba(255,255,255,.92);
}
.p3-casino__footer{
  margin-top: 14px;
  display:flex;
  justify-content:center;
}

/* WYSIWYG block */
.p3-content{ padding: 18px 0 6px; }
.p3-wysiwyg :where(h1,h2,h3,h4){ margin: .8em 0 .4em; }
.p3-wysiwyg p{ margin: .6em 0; color: rgba(255,255,255,.90); }
.p3-wysiwyg ul, .p3-wysiwyg ol{ margin: .6em 0 .6em 1.2em; }
.p3-wysiwyg table{
  width:100%;
  border-collapse: collapse;
  margin: 10px 0;
  overflow:hidden;
  border-radius: 12px;
}
.p3-wysiwyg th, .p3-wysiwyg td{
  padding: 10px;
  border: 1px solid rgba(255,255,255,.12);
}
.p3-wysiwyg th{ background: rgba(255,255,255,.06); }
.p3-wysiwyg{ overflow-x:auto; } /* protects tables from breaking layout */

/* FAQ (accordion like “пример”) */
.p3-faq{ padding: 16px 0 14px; }
.p3-faq__item{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  overflow:hidden;
  margin: 10px 0;
}
.p3-faq__q{
  width:100%;
  text-align:left;
  padding: 14px 14px;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.92);
  font-weight: 950;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.p3-faq__q::after{
  content:"+";
  font-weight: 950;
  opacity: .8;
}
.p3-faq__item.is-open .p3-faq__q::after{ content:"–"; }
.p3-faq__a{
  display:none;
  padding: 0 14px 14px;
  color: rgba(255,255,255,.88);
}
.p3-faq__item.is-open .p3-faq__a{ display:block; }

/* Footer (russiangiant-like columns) */
.p3-footer{
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.12));
  margin-top: 18px;
}
.p3-footer__inner{ padding: 22px 0 18px; }
.p3-footer__grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 1000px){
  .p3-footer__grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .p3-footer__grid{ grid-template-columns: 1fr; }
}
.p3-footer__title{ font-weight: 950; margin: 0 0 10px; }
.p3-footer__text{ color: rgba(255,255,255,.75); font-size: 13px; }
.p3-footer__list{ list-style:none; padding:0; margin:0; display:grid; gap: 8px; }
.p3-footer__link{ color: rgba(255,255,255,.82); }
.p3-footer__link:hover{ text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); }
.p3-footer__logos{ display:flex; flex-wrap:wrap; gap: 10px; }
.p3-footer__logo{
  width: 84px; height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  display:flex; align-items:center; justify-content:center;
  padding: 6px;
}
.p3-footer__logoimg{ max-height:100%; width:auto; }
.p3-footer__logotext{ font-size: 12px; font-weight: 900; color: rgba(255,255,255,.8); }
.p3-footer__bottom{
  border-top: 1px solid rgba(255,255,255,.10);
  margin-top: 16px;
  padding-top: 12px;
  color: rgba(255,255,255,.70);
  font-size: 13px;
}

/* ===== PinUP3 tabsbar (tabs left + CTA right) ===== */
.p3-tabsbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin: 14px 0 12px;
}

.p3-tabsbar__tabs{
  display:flex;
  align-items:center;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 2px 0;
  flex: 1;
  scroll-behavior: smooth;
}
.p3-tabsbar__tabs::-webkit-scrollbar{ height: 6px; }
.p3-tabsbar__tabs::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.18); border-radius: 999px; }
.p3-tabsbar__tabs::-webkit-scrollbar-track{ background: rgba(255,255,255,.05); border-radius: 999px; }

.p3-tabsbar__cta{
  flex: 0 0 auto;
}

/* ensure tabs look like “icons+label” */
.p3-tab{
  flex: 0 0 auto;
}
.p3-tab__label{
  font-size: 12px;
  letter-spacing: .2px;
  text-transform: uppercase;
}

.p3-ico{
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,.82);
  opacity: .9;
}

/* Header tweaks (more mirror-like) */
.p3-topbar__actions .p3-btn{
  min-width: 120px;
}
.p3-topbar__notice{
  max-width: 560px;
}

/* Mobile: keep CTA below tabs */
@media (max-width: 760px){
  .p3-tabsbar{
    flex-direction: column;
    align-items: stretch;
  }
  .p3-tabsbar__cta{
    display:flex;
    justify-content:flex-end;
  }
}


.p3-btn--primary {
    width: fit-content;
    margin-top: auto;
}

.p3-promo__content {
    height: 100%;
}

.p3-promo__title {
	margin-top: 35px;
}