/* ====== Base / Theme ====== */
:root{
  --brand: #1d4268;
  --brand-dark: #0b1f3f;
  --brand-ink: #07152c;

  --accent: #ffd400;
  --success: #1fd180;
  --danger: #ff2c2c;

  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f2f6ff;

  --text: #0f172a;
  --muted: #64748b;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.18);
  --container: 1120px;

  --promo-h: 0px;
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Lock scroll when any modal/lightbox is open */
body.is-locked{ overflow: hidden; }

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

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

.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* ====== Top bar ====== */
.topbar{
  background: var(--brand);
  color: #eaf3ff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar__inner{
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: .5px;
}
.brand__logo{
  width: 150px;
  height: auto;
  display: block;
}

.topnav{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.topnav a{ opacity: .95; }
.topnav a:hover{ opacity: 1; }

.burger{
  display: none;
  margin-left: auto;
  width: 44px;
  height: 40px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.10);
  cursor: pointer;
}
.burger span{
  display:block;
  height:2px;
  margin: 7px 10px;
  background: #fff;
  border-radius: 99px;
}

/* ====== Hero ====== */
.hero{
  background:
    radial-gradient(900px 350px at 80% 20%, rgba(88, 170, 255, .35), transparent 60%),
    radial-gradient(700px 300px at 10% 60%, rgba(34,197,94,.18), transparent 55%),
    linear-gradient(180deg, var(--brand-ink) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 34px 0 28px;
}

.hero__inner{
  display: grid;
  grid-template-columns: 240px 1fr 260px;
  gap: 26px;
  align-items: center;
}

.app-card{
  display: grid;
  gap: 14px;
  justify-items: start;
}

.app-flag{
  width: 210px;
  height: 126px;
  border-radius: 18px;
  box-shadow: var(--shadow);  
  position: relative;
  overflow: hidden;
  background-image: url("../images/Philippines.svg");
  background-size: cover;
}
.app-flag::after{
  content: "1xBet";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 1000;
  font-size: 22px;
  letter-spacing: 2px;
  color: rgba(255,255,255,.95);
  text-shadow: 0 8px 30px rgba(0,0,0,.25);
  background:
    radial-gradient(circle at center, rgba(10,45,130,.95) 0 34%, transparent 36%);
}


.rating{
  display: inline-flex;
  gap: 6px;
  font-size: 22px;
  color: #ffb400;
}
.star{ filter: drop-shadow(0 6px 12px rgba(0,0,0,.25)); }

.hero-content h1{
  margin: 0 0 14px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: .2px;
}

.hero-content div.h1{
  margin: 0 0 14px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: .2px;
  font-weight: bold;
  unicode-bidi: isolate;
}

.cta-row{
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  border: 0;
  box-shadow: 0 12px 26px rgba(0,0,0,.20);
  transition: transform .08s ease, filter .12s ease;
  min-height: 48px;
}
.btn:hover{ filter: brightness(1.03); text-decoration: none; }
.btn:active{ transform: translateY(1px); }

.btn--yellow{
  background: var(--accent);
  color: #122043;
  min-width: 160px;
}
.btn--green{
  background: var(--success);
  color: #06211a;
  min-width: 220px;
}

.btn__icon{
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  color: rgba(0,0,0,.75);
  font-weight: 900;
}

.cta-stack{
  position: relative;
  display: inline-grid;
  gap: 10px;
  align-content: start;
  padding-top: 14px; /* space for floating badge */
}
.badge{
  width: fit-content;
  position: absolute;
  top: 5px;
  left: 59%;
  transform: translate(-50%, -55%);
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .3px;
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(0,0,0,.20);
  z-index: 999;
}
.badge:before{
      content: "";
    width: 0;
    height: 0;
    position: absolute;
    bottom: -5px;
    border-color: #ff151d transparent transparent;
    border-style: solid;
    border-width: 5px 6px 0 0;
    
}

.meta{
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.85);
}
.meta__age{
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  font-weight: 800;
}
.meta__link{ opacity: .9; }
.meta__link:hover{ opacity: 1; }

.platforms{
  justify-self: end;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.platform-icons{
  display: inline-flex;
  justify-content: center;
  gap: 12px;
}
.picon{
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  font-size: 20px;
}
.updated{
  color: rgba(255,255,255,.75);
  font-size: 14px;
}

/* ====== Quick navigation ====== */
.content{
  background: var(--surface);
  padding: 34px 0 46px;
}
.content h2{
  margin: 0 0 18px;
  font-size: 20px;
  letter-spacing: .7px;
  color: #111827;
}

span.h2{
  margin: 0 0 18px;
  font-size: 20px;
  letter-spacing: .7px;
  color: #111827;
  font-weight: 700;
}

.quick-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.quick-list{
  margin: 0;
  padding-left: 20px;
  color: #111827;
  font-size: 16px;
}
.quick-list li{
  margin: 10px 0;
  line-height: 1.35;
}
.quick-list a{ color: #1f2937; }
.quick-list a:hover{ color: #0b3d91; }

/* ====== Full-width Article section ====== */
.article-section{
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
  padding: 40px 0;
}
.article-section__inner{ width: 100%; }

.section-head{ margin-bottom: 18px; }
.section-title{
  margin: 0 0 6px;
  font-size: clamp(22px, 2.2vw, 35px);
  letter-spacing: .2px;
  color: #0b1220;
}
.section-subtitle{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 76ch;
}

.article-flow{
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.article-card,
.howto-card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(2, 8, 23, .08);
  overflow: hidden;
}

.article-card{ padding: 22px; }

.h3{
  margin: 18px 0 18px;
  font-size: 20px;
  color: #031331;
}
.article-card .h3:first-child{ margin-top: 0; }

.lead{
  margin: 0 0 14px;
  line-height: 1.6;
  color: #0b1220;
}
.pill{
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: 10px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .2px;
  color: var(--brand);
  background: rgba(29, 66, 104, .10);
  border: 1px solid rgba(29, 66, 104, .18);
}

article.article-card p{
  margin: 0 0 16px;
  line-height: 1.7;
  color: rgb(15 23 42);
  
}
.inline-note{
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 9px;
  background: rgba(255, 212, 0, .18);
  border: 1px solid rgba(255, 212, 0, .32);
  color: rgba(15, 23, 42, .92);
  font-weight: 700;
  font-size: 12.5px;
}

.list{
  margin: 0 0 16px;
  padding-left: 22px;
  line-height: 1.65;
  color:rgb(87 87 87);;
}
.list li{ margin: 8px 0; }
.list--ul li::marker,
.list--ol li::marker{
  color: #575757;
  font-weight: 700;
}

.table-wrap{
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
}

.data-table{
  width: 100%;
  border-collapse: collapse;
  /* для таблицы из 2 столбцов лучше не заставлять 540px */
  min-width: 0;
}

.data-table thead th{
  text-align: left;
  padding: 12px 14px;
  font-size: 13px;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: #eaf3ff;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
}

.data-table td{
  padding: 12px 14px;
  border-top: 1px solid rgba(15, 23, 42, .10);
  color: rgb(15 23 42);
  vertical-align: top;
  font-size: 17px;
}

/* ✅ Первый столбец: ширина + “воздух” справа */
.data-table thead th:first-child,
.data-table tbody td:first-child{
  min-width: 220px;     /* подгони под свой контент: 180–260px */
  width: 220px;         /* фиксируем, чтобы не сжимался */
  padding-right: 26px;  /* отступ между колонками */
  white-space: nowrap;  /* чтобы "Android version" не ломался */
}

.data-table tbody tr:nth-child(even){
  background: rgba(29, 66, 104, .04);
}



/* ====== How-to ====== */
.howto-card{ padding: 18px; }

.howto-head{
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, .10);
  margin-bottom: 14px;
}
.howto-title{
  margin: 0 0 6px;
  font-size: 20px;
  color: #0b1220;
}
.howto-subtitle{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.howto-steps{
  display: grid;
  gap: 14px;
}

.howto-steps p{
  margin: 0;
  padding: 0;
  line-height: 22px;
}

.howto-steps h2, .howto-steps h3{
  margin:0;
  padding:0;
}

.howto-step{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: #fff;
}
.howto-step__shot{
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .10);
  box-shadow: 0 14px 30px rgba(2, 8, 23, .10);
  cursor: zoom-in;
}
.howto-step__shot:hover{ text-decoration: none; }

.howto-step__shot img{
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
}
.howto-step__zoomhint{
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #0b1220;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(15, 23, 42, .10);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease;
}
.howto-step__shot:hover .howto-step__zoomhint{
  opacity: 1;
  transform: translateY(0);
}

.howto-step__head{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
}
.howto-step__num{
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 1000;
  color: #eaf3ff;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
}
.howto-step__title{
  margin: 0;
  font-size: 15px;
  letter-spacing: .2px;
  color: #012877;
}
.howto-step__text{
  margin: 0;
  line-height: 1.65;
  color: rgb(90 91 91);
  font-size: 17px;
}

/* ====== FAQ ====== */
.faq-section{
  background: var(--surface);
  padding: 56px 0;
}
.faq-grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.faq__item{
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  box-shadow: 0 10px 24px rgba(2, 8, 23, .06);
  overflow: hidden;
}
.faq__summary{
  list-style: none;
  display: grid;
  grid-template-columns: 40px 1fr 18px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}
.faq__summary::-webkit-details-marker{ display:none; }
.faq__icon{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 1000;
  color: var(--brand);
  background: rgba(29, 66, 104, .10);
  border: 1px solid rgba(29, 66, 104, .18);
}
.faq__question{
  font-weight: 600;
  letter-spacing: .2px;
  color: #2f5db5;
  font-size: 17.2px;;
}
.faq__chev{
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(15, 23, 42, .55);
  border-bottom: 2px solid rgba(15, 23, 42, .55);
  transform: rotate(45deg);
  transition: transform .16s ease;
  justify-self: end;
  margin-right: 4px;
}
.faq__content{
  padding: 0 16px 16px;
  color: rgb(15 23 42);
  line-height: 1.65;
}
.faq__item[open] .faq__chev{ transform: rotate(225deg); }

/* ====== Lightbox ====== */
.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 200;
}
.lightbox.is-open{ display: grid; }
.lightbox__overlay{
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 23, .75);
}
.lightbox__dialog{
  position: relative;
  width: min(980px, 100%);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  overflow: hidden;
}
.lightbox__close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: rgba(255,255,255,.92);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.lightbox__img{
  display: block;
  width: 100%;
  height: auto;
  max-height: 74vh;
  object-fit: contain;
  background: #0b1220;
}
.lightbox__caption{
  margin: 0;
  padding: 12px 14px;
  color: rgba(15, 23, 42, .86);
  line-height: 1.55;
}


/* ====== Modal (Newsletter) ====== */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 210;
}
.modal.is-open{ display: grid; }
.modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 23, .75);
}
.modal__dialog{
  position: relative;
  width: min(520px, 100%);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  padding: 18px;
}
.modal__close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: rgba(255,255,255,.92);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.modal__title{
  margin: 4px 0 8px;
  color: #0b1220;
  font-size: 20px;
}
.modal__text{
  margin: 0 0 14px;
  color: rgba(15, 23, 42, .86);
  line-height: 1.6;
}
.modal__ok{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 0;
  font-weight: 900;
  letter-spacing: .3px;
  cursor: pointer;
  background: var(--accent);
  color: #07152c;
}
.modal__ok:hover{ filter: brightness(1.03); }


/* ====== Footer ====== */
.footer{
  background: #0b1220;
  color: rgba(255,255,255,.86);
  padding: 42px 0 22px 0px;

}
.footer__grid{
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.35fr;
  grid-template-areas: "brand pages support newsletter";
  gap: 28px 22px;
  align-items: start;
}

.footer__col{ 
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col--brand{ grid-area: brand; }
.footer__col--pages{ grid-area: pages; }
.footer__col--support{ grid-area: support; }
.footer__col--newsletter{ grid-area: newsletter; }

.footer__brand{
  display: inline-flex;
  align-items: center;
  margin-bottom: 4px;
}

.footer__brand img{
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
}

.footer__logo{
  width: 44px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #eaf3ff;
  border: 2px solid rgba(255,255,255,.18);
  font-weight: 1000;
}
.footer__brandtext{
  font-weight: 900;
  letter-spacing: .4px;
  font-size: 18px;
  color: #fff;
}
.footer__text{
  margin: 0;
  color: rgba(255,255,255,.72);
  line-height: 1.5;
  max-width: 46ch;
}

.footer__note{
  margin: 0;
  color: rgba(255,255,255,.74);
  line-height: 1.55;
  font-size: 13px;
}
.footer__note strong{ color: #fff; }

/* Footer section titles (also supports legacy .h3 used inside footer) */
.footer__title,
.footer .h3{
  margin: 0;
  font-size: 13px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
  font-weight: 900;
}

.footer__title + .footer__links,
.footer .h3 + .footer__links{
  margin-top: 2px;
}

.footer__links{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  line-height: 1.35;
  font-size: 15px;
}
.footer__links a{ color: rgba(255,255,255,.78); }
.footer__links a:hover{ color: #fff; text-decoration: none; }

.subscribe{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 2px;
  align-items: center;
}
.subscribe input{
  min-width: 0;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: #fff;
  outline: none;
  min-height: 46px;
}
.subscribe input::placeholder{ color: rgba(255,255,255,.55); }
.subscribe button{
  padding: 12px 16px;
  border-radius: 12px;
  border: 0;
  font-weight: 900;
  letter-spacing: .3px;
  cursor: pointer;
  background: var(--accent);
  color: #07152c;
  min-height: 46px;
  white-space: nowrap;
}
.subscribe button:hover{ filter: brightness(1.03); }

.footer__hint{
  margin: 0;
  color: rgba(255,255,255,.6);
  font-size: 13px;
  line-height: 1.5;
}
.footer__bottom{
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 18px;
  flex-wrap: wrap;
}

.footer__legal{
  color: rgba(255,255,255,.6);
  line-height: 1.55;
  max-width: 70ch;
}

.footer__meta{
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer__meta a{ color: rgba(255,255,255,.7); }
.footer__meta a:hover{ color: #fff; text-decoration: none; }


span.picon img{
  width: 30px;
  height: 30px;
}







/* ===== Download button: moving sheen (no blinking) ===== */
.btn.btn--green.btn--download{
  position: relative;
  overflow: hidden;
  background-color: var(--success);
}

/* убираем затемнение на hover, чтобы блик был виден */
.btn.btn--green.btn--download:hover{
  filter: none;
}

/* движущийся "блик" */
.btn.btn--green.btn--download::before{
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    115deg,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,.18) 50%,
    rgba(255,255,255,0) 60%
  );
  transform: translateX(-60%) rotate(8deg);
  animation: downloadSheen 2.8s ease-in-out infinite;
  pointer-events: none;
}

/* лёгкое "дыхание" тени (очень мягко) */
.btn.btn--green.btn--download::after{
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
  opacity: 0;
  animation: downloadShadow 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes downloadSheen{
  0%   { transform: translateX(-70%) rotate(8deg); opacity: .25; }
  55%  { opacity: .55; }
  100% { transform: translateX(70%) rotate(8deg); opacity: .25; }
}

@keyframes downloadShadow{
  0%, 100% { opacity: 0; }
  50%      { opacity: .9; }
}

@media (prefers-reduced-motion: reduce){
  .btn.btn--green.btn--download::before,
  .btn.btn--green.btn--download::after{
    animation: none !important;
  }
}
















/* ====== Floating promo bar + Back to top ====== */
body.promo-on{ padding-bottom: var(--promo-h); }

.promo-float{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background: linear-gradient(180deg, #071a33 0%, #041225 100%);
  color: #eaf3ff;
  box-shadow: 0 -12px 40px rgba(0,0,0,.35);
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
}
.promo-float.is-visible{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.promo-float__inner{
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}

.promo-float__meta{
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.promo-float__logo{
  width: 120px;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.25));
}

.promo-float__rating{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2px;
  color: rgba(255,255,255,.9);
  white-space: nowrap;
}

.promo-float__star{
  color: #ffb400;
  font-size: 16px;
  line-height: 1;
}

.promo-float__text{
  flex: 1 1 auto;
  min-width: 160px;
}

.promo-float__title{
  font-weight: 900;
  letter-spacing: .8px;
  font-size: 14px;
  text-transform: uppercase;
}

.promo-float__desc{
  margin-top: 3px;
  font-size: 14px;
  color: rgba(255,255,255,.86);
}

.promo-float__cta{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  background: linear-gradient(180deg, #7fbf2f 0%, #5a9921 100%);
  color: #fff;
  font-weight: 900;
  letter-spacing: .4px;
  text-transform: uppercase;
  box-shadow: 0 14px 28px rgba(0,0,0,.24);
}
.promo-float__cta:hover{
  text-decoration: none;
  filter: brightness(1.04);
}

.promo-float__close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
}
.promo-float__close:hover{ background: rgba(255,255,255,.12); }

/* Back to top button */
.to-top{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 125;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.18);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(6px);
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
  color: #0b1220;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, background .12s ease;
}
.to-top.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top:hover{ background: rgba(255,255,255,.9); }

/* On desktop move "to top" above promo bar when it's visible */
body.promo-on .to-top{
  bottom: calc(var(--promo-h, 0px) + 18px);
}

/* ====== Responsive (media queries last) ====== */
@media (max-width: 980px){
  .hero__inner{
    grid-template-columns: 220px 1fr;
    grid-template-areas:
      "card content"
      "platform content";
  }
  .app-card{ grid-area: card; }
  .hero-content{ grid-area: content; }
  .platforms{ grid-area: platform; justify-self: start; text-align: left; align-items: flex-start; }
}

@media (max-width: 860px){
  .topnav{ display: none; }
  .burger{ display: inline-block; }
  .topnav.is-open{
    display: flex;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 64px;
    background: rgba(29, 66, 104, .98);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    padding: 14px;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow);
  }

  .footer__grid{
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand brand"
      "pages support"
      "newsletter newsletter";
    gap: 22px 18px;
  }
  .faq-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 700px){
  .hero{ padding: 26px 0 22px; }
  .hero__inner{
    grid-template-columns: 1fr;
    grid-template-areas:
      "card"
      "content"
      "platform";
  }
  .app-card{ justify-items: center; }
  .platforms{ justify-self: center; text-align: center; }

  /* CTA buttons: same width + centered like in the screenshot */
  .cta-row{
    gap: 20px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  .cta-stack{
    justify-items: center;
    width: 100%;
  }
  .btn--yellow,
  .btn--green{
    width: 280px;
    max-width: 100%;
    min-width: 0; /* override desktop min-width */
  }

  /* Badge stays centered above green button */
  .badge{ width: fit-content; text-align: center; }

  /* +18 and Terms in one centered line */
  .meta{
    justify-content: center;
    text-align: center;
    flex-wrap: nowrap;
    width: 100%;
  }
  .meta__link{ white-space: nowrap; }

  .quick-grid{
    display: block;
  }

   .quick-grid ol {
    margin-top: 0;
    margin-bottom: 0;
  }

  
  .howto-step{
    grid-template-columns: 1fr;
  }
  .howto-step__zoomhint{
    opacity: 1;
    transform: translateY(0);
  }
}


  .hero-content h1{ text-align: left; }
  .hero-content div.h1{ text-align: center; }

  /* Promo bar: mobile card layout */
  .promo-float{
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    border-radius: 18px;
  }
  .promo-float__inner{
    width: 100%;
    padding: 18px 16px 14px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .promo-float__meta{
    width: 100%;
    justify-content: center;
  }
  .promo-float__cta{
    width: 100%;
    height: 48px;
  }
  /* On mobile keep the button overlapping the banner (like in the screenshot) */
  body.promo-on .to-top{
    bottom: 18px;
  }

}


@media (max-width: 520px){
  /*.app-flag{ width: 100%; max-width: 320px; }*/
  .footer__grid{
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand brand"
      "pages support"
      "newsletter newsletter";
    gap: 22px 14px;
  }

  .brand__logo{ width: 130px; }
}

@media (max-width: 420px){
  .footer__grid{
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "pages"
      "support"
      "newsletter";
  }

  .subscribe{ grid-template-columns: 1fr; }
  .subscribe button{ width: 100%; }
}



