:root{
  --bg: #f8fafc;
  --bg2:#eef2ff;
  --surface:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --line:#e2e8f0;
  --shadow: 0 18px 45px rgba(15,23,42,.08);
  --shadow2: 0 10px 24px rgba(15,23,42,.10);
  --radius: 18px;
  --radius2: 24px;
  --container: 1280px;

  --padY: clamp(22px, 3.2vw, 56px);
  --gap: clamp(12px, 2vw, 26px);

  --primary:#2563eb;
  --primary2:#1d4ed8;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, #e0e7ff 0%, rgba(224,231,255,0) 55%),
              radial-gradient(900px 520px at 90% 10%, #dbeafe 0%, rgba(219,234,254,0) 55%),
              var(--bg);
  color:var(--text);
}

img{ max-width:100%; display:block; height:auto; }
a{ color:inherit; text-decoration:none; }
.container{
  width:min(var(--container), calc(100% - 32px));
  margin-inline:auto;
}
button.to-top{
    display: inline-flex;
    justify-content: center;
    align-items: anchor-center;
}
.section{ padding: var(--padY) 0; }
.section-alt{ background: linear-gradient(180deg, rgba(238,242,255,.55), rgba(238,242,255,0)); }

.section-head{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom: clamp(14px, 2.4vw, 22px);
}
.section-head h2{ margin:0; font-size: clamp(22px, 2.2vw, 34px); letter-spacing:-.02em; }
.lead{ margin:0; color:var(--muted); font-size: clamp(15px, 1.3vw, 18px); line-height:1.6; }

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(248,250,252,.78);
  backdrop-filter: blur(12px);
  border-bottom:1px solid rgba(226,232,240,.8);
}
.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 12px 0;
}

.brand img{ width:300px; height:100px; object-fit:contain; }

.main-nav{
  display:flex;
  gap: 14px;
  align-items:center;
  flex-wrap:wrap;
}
.main-nav a{
  color:var(--muted);
  font-weight:600;
  font-size:14px;
  padding:10px 10px;
  border-radius:12px;
}
.main-nav a:hover{ color:var(--text); background: rgba(37,99,235,.08); }

.header-actions{
  display:flex;
  align-items:center;
  gap:12px;
}

.cta-play{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:44px;
  padding:0 16px;
  border-radius:14px;
  color:#fff;
  background: linear-gradient(180deg, var(--primary), var(--primary2));
  box-shadow: 0 12px 30px rgba(37,99,235,.28);
  font-weight:800;
  white-space:nowrap;
  cursor: pointer;
}
.cta-play:hover{ filter: brightness(1.03); }

.lang-switch{ position:relative; }
.lang-btn{
  height:44px;
  padding:0 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.85);
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  cursor:pointer;
}
.lang-menu{
  position:absolute;
  right:0;
  top: calc(100% + 8px);
  width: 210px;
  background: var(--surface);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow: var(--shadow2);
  padding:8px;
  display:none;
}
.lang-menu button{
  width:100%;
  text-align:left;
  padding:10px 10px;
  border-radius:12px;
  border:none;
  background:transparent;
  cursor:pointer;
  font-weight:600;
  color:var(--text);
}
.lang-menu button:hover{ background: rgba(37,99,235,.08); }

.nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.85);
  cursor:pointer;
  padding:10px;
}
.nav-toggle span{
  display:block;
  height:2px;
  background: var(--text);
  border-radius:2px;
}
.nav-toggle span + span{ margin-top:6px; }

.mobile-nav{
  border-top:1px solid rgba(226,232,240,.8);
  padding: 10px 0 14px;
}
.mobile-nav a{
  display:block;
  padding:12px 16px;
  color:var(--muted);
  font-weight:700;
}
.mobile-nav a:hover{ background: rgba(37,99,235,.08); color:var(--text); }

.intro-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items:stretch;
}
.intro-media{
  margin:0;
  border-radius: var(--radius2);
  overflow:hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  border:1px solid rgba(226,232,240,.9);
}
.intro-media img{ width:100%; height:100%; object-fit:cover; aspect-ratio: 1 / 1; }

.intro-card{
  border-radius: var(--radius2);
  background: rgba(255,255,255,.92);
  border:1px solid rgba(226,232,240,.9);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2vw, 22px);
  display:flex;
  flex-direction:column;
  gap: 14px;
}
.kicker{
  font-weight:800;
  color: #1e40af;
  background: rgba(37,99,235,.10);
  border:1px solid rgba(37,99,235,.18);
  padding:8px 12px;
  border-radius:999px;
  width: fit-content;
  font-size: 13px;
}
.intro-card h2{ margin:0; font-size: clamp(20px, 2.1vw, 30px); letter-spacing:-.02em; }

.table-wrap{
  border-radius: 16px;
  overflow:hidden;
  border:1px solid rgba(226,232,240,.9);
  background: #fff;
}
.facts{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
}
.facts th, .facts td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(226,232,240,.9);
  vertical-align:top;
}
.facts th{
  width: 40%;
  color: var(--muted);
  font-weight:800;
  background: rgba(248,250,252,.6);
}
.facts tr:last-child th, .facts tr:last-child td{ border-bottom:none; }

.intro-actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:44px;
  padding:0 16px;
  border-radius:14px;
  font-weight:800;
  border:1px solid transparent;
  cursor:pointer;
  user-select:none;
}
.btn-primary{
  background: linear-gradient(180deg, var(--primary), var(--primary2));
  color:#fff;
  box-shadow: 0 12px 30px rgba(37,99,235,.24);
}
.btn-primary:hover{ filter:brightness(1.03); }
.btn-ghost{
  background: rgba(255,255,255,.9);
  border-color: rgba(226,232,240,.95);
  color: var(--text);
}
.btn-ghost:hover{ background: rgba(37,99,235,.08); border-color: rgba(37,99,235,.22); }
.btn-wide{ width:75%; margin-inline:auto; }

.mini-callout{
  color: var(--muted);
  line-height:1.6;
  background: rgba(15,23,42,.03);
  border:1px dashed rgba(15,23,42,.14);
  padding: 12px 12px;
  border-radius: 16px;
}

/* Demo frame */
.game-frame{
  border-radius: var(--radius2);
  overflow:hidden;
  border:1px solid rgba(226,232,240,.9);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.game-frame-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom:1px solid rgba(226,232,240,.9);
  background: rgba(248,250,252,.8);
}
.dots{ display:flex; gap:6px; }
.dots span{ width:10px; height:10px; border-radius:50%; background: rgba(15,23,42,.18); }
.frame-title{ font-weight:900; letter-spacing:-.02em; }
.frame-actions{ display:flex; align-items:center; gap:10px; }
.frame-link{
  font-weight:800;
  color: var(--primary2);
  padding:8px 10px;
  border-radius:12px;
}
.frame-link:hover{ background: rgba(37,99,235,.08); }
.frame-btn{
  height:38px;
  padding: 0 12px;
  border-radius:12px;
  border:1px solid rgba(226,232,240,.95);
  background: rgba(255,255,255,.9);
  cursor:pointer;
  font-weight:900;
}
.frame-btn:hover{ background: rgba(37,99,235,.08); border-color: rgba(37,99,235,.22); }

.game-frame-body{
  aspect-ratio: 16 / 9;
  width:100%;
  min-height: 520px;
  background: #0b1220;
}
.game-frame-body iframe{
  width:100%;
  height:100%;
  border:0;
}

/* Casinos */
.casino-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.casino-card{
  border-radius: var(--radius2);
  background: rgba(255,255,255,.92);
  border:1px solid rgba(226,232,240,.9);
  box-shadow: var(--shadow);
  padding: 16px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.casino-logo{
  width:100%;
  height:auto;
  border-radius:16px;
  border:1px solid rgba(226,232,240,.9);
  background: rgba(248,250,252,.7);
  padding: 10px;
}
.casino-card h3{ margin:0; font-size:18px; letter-spacing:-.02em; }
.bonus{
  border-radius:16px;
  border:1px solid rgba(226,232,240,.9);
  background: rgba(248,250,252,.7);
  padding: 12px;
}
.bonus-title{ font-weight:900; }
.bonus-text{ color: var(--muted); line-height:1.55; margin-top:6px; }

/* Rating stars */
.rating{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.stars{
  --starSize: 18px;
  --rating: 4.5;
  position:relative;
  width: calc(var(--starSize) * 5);
  height: var(--starSize);
  background:
    linear-gradient(90deg, #f59e0b 0 0) left/0% 100% no-repeat,
    linear-gradient(90deg, rgba(148,163,184,.35) 0 0) left/100% 100% no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='18' viewBox='0 0 90 18'%3E%3Cg fill='black'%3E%3Cpath d='M9 0l2.6 5.7 6.4.5-4.8 4.1 1.5 6.2L9 13.8 3.3 16.5l1.5-6.2L0 6.2l6.4-.5z'/%3E%3Cpath transform='translate(18 0)' d='M9 0l2.6 5.7 6.4.5-4.8 4.1 1.5 6.2L9 13.8 3.3 16.5l1.5-6.2L0 6.2l6.4-.5z'/%3E%3Cpath transform='translate(36 0)' d='M9 0l2.6 5.7 6.4.5-4.8 4.1 1.5 6.2L9 13.8 3.3 16.5l1.5-6.2L0 6.2l6.4-.5z'/%3E%3Cpath transform='translate(54 0)' d='M9 0l2.6 5.7 6.4.5-4.8 4.1 1.5 6.2L9 13.8 3.3 16.5l1.5-6.2L0 6.2l6.4-.5z'/%3E%3Cpath transform='translate(72 0)' d='M9 0l2.6 5.7 6.4.5-4.8 4.1 1.5 6.2L9 13.8 3.3 16.5l1.5-6.2L0 6.2l6.4-.5z'/%3E%3C/g%3E%3C/svg%3E") center/100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='18' viewBox='0 0 90 18'%3E%3Cg fill='black'%3E%3Cpath d='M9 0l2.6 5.7 6.4.5-4.8 4.1 1.5 6.2L9 13.8 3.3 16.5l1.5-6.2L0 6.2l6.4-.5z'/%3E%3Cpath transform='translate(18 0)' d='M9 0l2.6 5.7 6.4.5-4.8 4.1 1.5 6.2L9 13.8 3.3 16.5l1.5-6.2L0 6.2l6.4-.5z'/%3E%3Cpath transform='translate(36 0)' d='M9 0l2.6 5.7 6.4.5-4.8 4.1 1.5 6.2L9 13.8 3.3 16.5l1.5-6.2L0 6.2l6.4-.5z'/%3E%3Cpath transform='translate(54 0)' d='M9 0l2.6 5.7 6.4.5-4.8 4.1 1.5 6.2L9 13.8 3.3 16.5l1.5-6.2L0 6.2l6.4-.5z'/%3E%3Cpath transform='translate(72 0)' d='M9 0l2.6 5.7 6.4.5-4.8 4.1 1.5 6.2L9 13.8 3.3 16.5l1.5-6.2L0 6.2l6.4-.5z'/%3E%3C/g%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.rating-meta{ color: var(--muted); font-weight:800; }
.rating-num{ color: var(--text); }

/* Content */
.content{
  width:100%;
  max-width: 100%;
  line-height:1.75;
}
.content h1{
  margin:0 0 12px;
  font-size: clamp(26px, 2.7vw, 40px);
  letter-spacing:-.03em;
}
.content p{ margin: 0 0 12px; color: var(--text); }
.content p + p{ margin-top: 10px; }

.review-grid{
  display:grid;
  grid-template-columns: 1.4fr .6fr;
  gap: var(--gap);
  align-items:start;
  margin-top: 18px;
}
.review-body h3{ margin: 18px 0 8px; letter-spacing:-.02em; }
.bullets{ margin: 10px 0 0 20px; color: var(--text); }
.bullets li{ margin: 8px 0; line-height:1.6; }
.author-note{
  margin-top: 16px;
  border-radius: var(--radius2);
  background: rgba(37,99,235,.08);
  border:1px solid rgba(37,99,235,.18);
  padding: 14px 14px;
}
.author-note-badge{
  display:inline-flex;
  font-weight:900;
  color:#1e40af;
  margin-bottom:8px;
}

.side-card{
  position:sticky;
  top: 92px;
  border-radius: var(--radius2);
  background: rgba(255,255,255,.92);
  border:1px solid rgba(226,232,240,.9);
  box-shadow: var(--shadow);
  padding: 16px;
}
.side-card h4{ margin:0 0 8px; letter-spacing:-.02em; }
.checklist{ margin: 0 0 12px 18px; color: var(--text); }
.checklist li{ margin: 8px 0; color: var(--muted); }

/* Slider */
.slider{
  position:relative;
  border-radius: var(--radius2);
  border:1px solid rgba(226,232,240,.9);
  background: rgba(255,255,255,.85);
  box-shadow: var(--shadow);
  overflow:hidden;
  padding: 14px 54px;
}
.slider-track{
  display:flex;
  gap: 12px;
  overflow:auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar{ display:none; }
.slide{
  border:none;
  background:transparent;
  padding:0;
  cursor:pointer;
  scroll-snap-align:center;
  flex: 0 0 clamp(240px, 28vw, 420px);
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(226,232,240,.9);
}
.slide img{ width:100%; height:100%; object-fit:cover; aspect-ratio: 16/9; }

.slider-btn{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:40px;
  height:40px;
  border-radius: 14px;
  border:1px solid rgba(226,232,240,.95);
  background: rgba(255,255,255,.95);
  cursor:pointer;
  font-size: 22px;
  font-weight:900;
}
.slider-btn:hover{ background: rgba(37,99,235,.08); border-color: rgba(37,99,235,.22); }
.slider-btn.prev{ left:10px; }
.slider-btn.next{ right:10px; }

/* Gameplay */
.gameplay-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items:stretch;
}
.video-shell{
  border-radius: var(--radius2);
  border:1px solid rgba(226,232,240,.9);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.video-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 12px;
  background: rgba(248,250,252,.85);
  border-bottom:1px solid rgba(226,232,240,.9);
}
.pill{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(37,99,235,.22);
  background: rgba(37,99,235,.08);
  font-weight:900;
  color:#1e40af;
}
.muted{ color: var(--muted); font-weight:600; font-size: 13px; }
.video-placeholder{
  flex:1;
  min-height: 360px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 14px;
  padding: 18px;
  background:
    radial-gradient(900px 420px at 30% 0%, rgba(37,99,235,.18), rgba(37,99,235,0) 55%),
    radial-gradient(900px 420px at 90% 20%, rgba(2,132,199,.14), rgba(2,132,199,0) 60%),
    rgba(15,23,42,.03);
}
.play-badge{
  width:54px;
  height:54px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(180deg, var(--primary), var(--primary2));
  color:#fff;
  font-weight:900;
  box-shadow: 0 12px 30px rgba(37,99,235,.25);
}
.video-text strong{ display:block; }
.video-text span{ display:block; color: var(--muted); margin-top:6px; line-height:1.5; }

.howto{
  border-radius: var(--radius2);
  border:1px solid rgba(226,232,240,.9);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
    flex-direction: column;
}
.try-btn{
    margin: auto;
    width: 100%;
    text-align: center;
}
.howto h3{ margin: 0 0 10px; letter-spacing:-.02em; }
.steps{
  margin: 0 0 0 18px;
  padding: 0;
}
.steps li{ margin: 10px 0; line-height: 1.65; color: var(--text); }
.steps strong{ color: var(--text); }
.disclaimer{
  margin-top: 14px;
  border-radius: 16px;
  border:1px solid rgba(244,63,94,.22);
  background: rgba(244,63,94,.06);
  padding: 12px;
  color: #881337;
  font-weight:700;
}

/* Responsible */
.responsible{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: var(--gap);
  padding: 18px;
  border-radius: var(--radius2);
  border:1px solid rgba(226,232,240,.9);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}

/* Accordion */
.accordion{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.acc-item{
  border-radius: var(--radius2);
  border:1px solid rgba(226,232,240,.9);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.acc-q{
  width:100%;
  text-align:left;
  border:none;
  background: transparent;
  padding: 14px 14px;
  font-weight:900;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.acc-q::after{
  content:"+";
  font-weight:900;
  color: var(--primary2);
}
.acc-q[aria-expanded="true"]::after{ content:"–"; }
.acc-a{
  padding: 0 14px 14px;
  color: var(--muted);
  line-height:1.65;
}

/* Footer */
.site-footer{
  padding: var(--padY) 0 18px;
  background: rgba(15,23,42,.03);
  border-top:1px solid rgba(226,232,240,.9);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--gap);
  align-items:start;
}
.footer-brand p{
  margin: 10px 0 0;
  color: var(--muted);
  line-height:1.65;
}
.footer-col h4{ margin: 0 0 10px; letter-spacing:-.02em; }
.footer-col a{
  display:block;
  padding: 8px 0;
  color: var(--muted);
  font-weight:700;
}
.footer-col a:hover{ color: var(--text); }
.footer-small{ display:block; color: var(--muted); margin-top: 8px; }

.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  border-top:1px solid rgba(226,232,240,.9);
  margin-top: 18px;
  padding-top: 14px;
  color: var(--muted);
  font-weight:700;
}

/* To top */
.to-top{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border:1px solid rgba(226,232,240,.95);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow2);
  cursor:pointer;
  font-size: 18px;
  font-weight:900;
  display:none;
}
.to-top:hover{ background: rgba(37,99,235,.08); border-color: rgba(37,99,235,.22); }

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  background: rgba(15,23,42,.72);
  display:none;               /* ВАЖНО: по умолчанию скрыт */
  align-items:center;
  justify-content:center;
  padding: 16px;
  z-index: 100;
}
.lightbox.is-open{ display:flex; }   /* показываем только по классу */

.lightbox[hidden]{ display:none !important; } /* на всякий случай */
.lightbox img{
  max-width:min(1100px, 96vw);
  max-height: 86vh;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.18);
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
  background: #0b1220;
}
.lb-close{
  position:absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color:#fff;
  cursor:pointer;
  font-size: 24px;
  font-weight:900;
}

/* Responsive */
@media (max-width: 1024px){
  .main-nav{ display:none; }
  .nav-toggle{ display:inline-flex; flex-direction:column; justify-content:center; }
  .intro-grid{ grid-template-columns: 1fr; }
  .casino-grid{ grid-template-columns: 1fr; }
  .review-grid{ grid-template-columns: 1fr; }
  .side-card{ position: static; }
  .gameplay-grid{ grid-template-columns: 1fr; }
  .game-frame-body{ min-height: 520px; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px){
  .brand img{ width: 220px; height: auto; }
  .btn-wide{ width: 100%; }
  .footer-grid{ grid-template-columns: 1fr; }
}
.video-stage{
  position: relative;
  border-radius: var(--radius2);
  overflow: hidden;
  border: 1px solid rgba(226,232,240,.9);
  background: #0b1220;
  box-shadow: var(--shadow);
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 520px; /* опционально, чтобы не было слишком широко */
  margin: 0 auto;
}

.video-poster{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

.video-play{
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(37,99,235,.92);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(37,99,235,.30);
}

.video-play:hover{ filter: brightness(1.05); }
.video-play:focus{ outline: none; box-shadow: 0 0 0 4px rgba(37,99,235,.25), 0 18px 45px rgba(37,99,235,.30); }

.video-embed{
  position: absolute;
  inset: 0;
}

.video-embed iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* Responsible Gaming (polished) */
.rg-card{
  border-radius: var(--radius2);
  border: 1px solid rgba(226,232,240,.9);
  background:
    radial-gradient(900px 520px at 15% -10%, rgba(37,99,235,.18), rgba(37,99,235,0) 55%),
    radial-gradient(900px 520px at 95% 20%, rgba(2,132,199,.14), rgba(2,132,199,0) 60%),
    rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: var(--gap);
  padding: clamp(16px, 2.2vw, 22px);
  align-items: stretch;
}

.rg-left{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rg-badge{
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,.18);
  background: rgba(37,99,235,.08);
  color: #1e40af;
  font-weight: 900;
  font-size: 13px;
}

.rg-icon{
  width: 28px;
  height: 28px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,.12);
}

.rg-title{
  margin: 0;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -.02em;
}

.rg-lead{
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: clamp(15px, 1.2vw, 17px);
}

.rg-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

.rg-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.rg-list li{
  position: relative;
  padding-left: 30px;
  color: rgba(15,23,42,.90);
  line-height: 1.6;
}

.rg-list li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.18);
  color: #166534;
  font-weight: 1000;
}

.rg-note{
  border-radius: 18px;
  border: 1px dashed rgba(15,23,42,.16);
  background: rgba(15,23,42,.03);
  padding: 12px;
  color: rgba(15,23,42,.82);
  line-height: 1.55;
}

.rg-note-title{
  font-weight: 1000;
  margin-bottom: 6px;
}

.rg-right{
  border-radius: 22px;
  border: 1px solid rgba(37,99,235,.18);
  background:
    radial-gradient(700px 360px at 50% -10%, rgba(37,99,235,.22), rgba(37,99,235,0) 55%),
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,250,252,.9));
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;        /* центр по горизонтали */
  justify-content: center;    /* центр по вертикали */
  text-align: center;         /* центр текста */
  gap: 10px;
  box-shadow: 0 14px 30px rgba(37,99,235,.10);
}

.rg-right-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,.22);
  background: rgba(37,99,235,.10);
  color: #1e40af;
  font-weight: 1000;
  font-size: 12px;
  letter-spacing: .02em;
}

.rg-right-title{
  font-weight: 1000;
  letter-spacing: -.02em;
  font-size: 18px;
  margin-top: 2px;
}

.rg-right-text{
  color: var(--muted);
  font-weight: 600;
  line-height: 1.55;
  font-size: 13px;
  max-width: 26ch;
}

.rg-cta{
  width: 100%;
  max-width: 280px;
  height: 46px;
  border-radius: 16px;
}

.rg-foot{
  color: rgba(71,85,105,.92);
  font-size: 12px;
  font-weight: 900;
  opacity: .95;
}
/* Footer (polished card layout) */
.site-footer{
  padding: var(--padY) 0;
  background: transparent;
}

.footer-card{
  border-radius: var(--radius2);
  border: 1px solid rgba(226,232,240,.9);
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(37,99,235,.16), rgba(37,99,235,0) 55%),
    radial-gradient(900px 520px at 92% 20%, rgba(2,132,199,.12), rgba(2,132,199,0) 60%),
    rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--gap);
  padding: clamp(16px, 2.2vw, 22px);
  align-items: start;
}

.footer-brand img{
  width: 300px;
  height: 100px;
  object-fit: contain;
}

.footer-text{
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 600;
}

.footer-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.footer-badge{
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,.18);
  background: rgba(37,99,235,.08);
  color: #1e40af;
  font-weight: 1000;
  font-size: 12px;
  letter-spacing: .01em;
}

.footer-badge-warn{
  border-color: rgba(244,63,94,.22);
  background: rgba(244,63,94,.08);
  color: #9f1239;
}

.footer-col h4{
  margin: 0 0 10px;
  letter-spacing: -.02em;
  font-weight: 1000;
}

.footer-col a{
  display: block;
  padding: 8px 0;
  color: rgba(71,85,105,.95);
  font-weight: 800;
  border-radius: 0;         /* без “пилюльности” */
  background: transparent;  /* без подсветки */
}

.footer-col a:hover{
  background: transparent;  /* убрали заливку */
  padding-left: 0;          /* убрали сдвиг */
  color: var(--primary2);   /* спокойная смена цвета */
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-col a:focus{
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}


.footer-small{
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 600;
}

.footer-note{
  margin-top: 12px;
  border-radius: 16px;
  border: 1px dashed rgba(15,23,42,.16);
  background: rgba(15,23,42,.03);
  padding: 12px;
  color: rgba(15,23,42,.80);
  line-height: 1.55;
  font-weight: 650;
}

.footer-cta{
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: min(260px, 100%);
  padding: 0 14px;
  border-radius: 16px;
  font-weight: 1000;
  color: #fff;
  background: linear-gradient(180deg, var(--primary), var(--primary2));
  box-shadow: 0 12px 30px rgba(37,99,235,.22);
}

.footer-cta:hover{ filter: brightness(1.03); }

.footer-bottom{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 2.2vw, 22px);
  border-top: 1px solid rgba(226,232,240,.9);
  background: rgba(248,250,252,.65);
  color: rgba(71,85,105,.95);
  font-weight: 800;
  font-size: 13px;
}

.footer-bottom-sep{
  opacity: .7;
}

/* Responsive footer */
@media (max-width: 1024px){
  .footer-grid{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px){
  .footer-grid{
    grid-template-columns: 1fr;
  }
  .footer-brand img{
    width: 220px;
    height: auto;
  }
  .footer-bottom{
    justify-content: flex-start;
  }
  .rg-card{
      display: flex;
    flex-direction: column;
  }
  .footer-brand img{
      margin: auto;
  }
}
/* Mobile: language menu centered on screen */
@media (max-width: 640px){
  .lang-menu{
    position: fixed;                 /* фиксируем к viewport */
    left: 50% !important;
    right: auto !important;
    top: 72px;                       /* ниже хедера; при желании подстрой */
    transform: translateX(-50%);
    width: min(320px, calc(100vw - 24px));
    max-height: calc(100vh - 120px); /* чтобы не уходило вниз */
    overflow: auto;

    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15,23,42,.22);
    z-index: 999;                    /* поверх хедера */
  }
}
@media (max-width: 640px){
  .lang-menu{
    top: calc(72px + env(safe-area-inset-top));
  }
}
