@font-face {
  font-family: 'Roboto Slab';
  src: url('../font/RobotoSlab-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Slab';
  src: url('../font/RobotoSlab-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Base: скорость и читаемость --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: #050B14;
  -webkit-font-smoothing: antialiased;
}

/* Шрифты: текст виден до загрузки (fallback) */
h1, h2, h3, h4 {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 8px;
  color: #AFC8EB;
}

p {
  margin: 0 0 16px;
  color:#88ADE1;
}

li {
  color: #d7e4f5;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: #F5E8D6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

#main img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  margin: 20px auto;
}

/* --- Контейнер: 12-колоночная логика --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, #050B14 33.09%, #142d50 100%);
  border-bottom: 1px solid #142D50;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/header-pattern.webp");
  background-size: 75px auto;
  background-repeat: repeat;
  opacity: 0.25;
  pointer-events: none;
}

.header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.footer__logo {
  padding-bottom: 15px;
  max-width: 190px;
}

.header__logo img,
.footer__logo img {
  max-width: 190px;
  width: 100%;
}

.header__nav {
  display: none;
}


.header__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}

.header__link {
  color: #AFC8EB;
  font-weight: 500;
}

.header__link:hover {
  color: #F5E8D6;
}

.header__cta-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__cta {
  background:radial-gradient(105.67% 76.25% at 49.44% 0%, #177199 0%, #0D1C32 75.53%, #08111E 100%) padding-box,
   linear-gradient(180deg, rgba(245, 232, 214, 0.5) 0%, rgba(233, 204, 163, 0) 53.39%, #DEB377 100%) border-box;
  border: 1px solid transparent;
  border-radius: 30px;
  box-shadow: 0px 1px 0px 0px rgba(99, 191, 232, 0.4) inset;
  color: #D7E4F5;
  padding: 7px 20px 10px;
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 15px;
}

.header__cta:hover {
background: radial-gradient(105.67% 76.25% at 49.44% 0%, #177199 0%, #0D1C32 75.53%, #08111E 100%) padding-box,
linear-gradient(0deg, rgba(245, 232, 214, 0.5) 0%, rgba(233, 204, 163, 0) 53.39%, #DEB377 100%) border-box
}

.header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffebd1;
  border-radius: 1px;
}
.header__logo{
  display: flex;
  align-items: center;
}
@media (min-width: 768px) {
  .header__nav {
    display: block;
  }
  .header__burger {
    display: none;
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  color: #D7E4F5;
  max-width: 1200px;
  margin: 30px auto;
  border-radius: 16px;
  border: 1px solid #142D50;
  overflow: hidden;
}

.hero__banner {
  width: 100%;
  min-height: 350px;
  background: url("../img/banner.webp") no-repeat center top;
  background-size: cover;
  border-radius: 16px 16px 0 0;
}

.hero__bar {
  position: relative;
  background: linear-gradient(0deg, #050B14 33.09%, #142d50 100%);
  border-bottom: 1px solid #142D50;
  border-radius: 0 0 16px 16px;
}

.hero__bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/header-pattern.webp");
  background-size: 75px auto;
  background-repeat: repeat;
  opacity: 0.2;
  pointer-events: none;
}

.hero__bar-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 20px;
  flex-wrap: wrap;
}

.hero__offer {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__bonus {
  margin: 0;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 35px;
  color: #D7E4F5;
  line-height: 1.3;
}

.hero__subheading {
  margin: 0;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

.hero__cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.hero__opted {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.hero__opted::before {
  content: "✓ ";
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 32px;
  background: url("../img/banner-btn.webp") no-repeat center;
  background-size: 100% 100%;
  background-color: transparent;
  color: #ffffff;
  font-family: 'Roboto Slab', 'Arial Black', sans-serif;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.hero__btn:hover {
  opacity: 0.92;
  transform: scale(1.02);
  text-decoration: dashed;
}

.hero__opt-out {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}

.hero__opt-out:hover {
  color: #ffffff;
}

@media (max-width: 640px) {
  .hero__bar-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .hero__cta-block {
    align-items: center;
  }
}

/* --- Custom button (3 segments + border) — для использования вне hero --- */
.custom-button {
  display: inline-flex;
  align-items: stretch;
  text-decoration: none;
  height: 80px;
  cursor: pointer;
  transition: transform 0.2s;
  border: 10px solid transparent;
  border-image: url("../img/border-image-lg.webp") 12 20 12 20 stretch;
  border-image-slice: 12 20 12 20;
  box-sizing: border-box;
  background-clip: padding-box;
}

.custom-button:hover {
  transform: scale(1.05);
}

.btn-left {
  width: 40px;
  background: url("../img/primary-bg-start.png") no-repeat center left;
  background-size: contain;
  flex-shrink: 0;
}

.btn-center {
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("../img/primary-bg-center.png") repeat-x center;
  background-size: auto 100%;
  color: #fff;
  font-family: 'Roboto Slab', 'Arial Black', sans-serif;
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  padding: 0 16px;
  white-space: nowrap;
}

.btn-right {
  width: 40px;
  background: url("../img/primary-bg-end.png") no-repeat center right;
  background-size: contain;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .custom-button {
    height: 56px;
  }
  .btn-left,
  .btn-right {
    width: 28px;
  }
  .btn-center {
    font-size: 14px;
    padding: 0 8px;
  }
}

/* --- Footer --- */
.footer {
  padding: 40px 0 24px;
  background: linear-gradient(180deg, #050B14 33.09%, #142d50 100%);
  border-bottom: 1px solid #142D50;
  color: #ffffff;
}

.footer a {
  color: rgba(255, 255, 255, 0.9);
}

.footer a:hover {
  color: #ffffff;
}

.footer__disclaimer {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__18 {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 8px;
  color: #ffffff;
}

.footer__disclaimer-text {
  font-size: 13px;
  opacity: 0.85;
  margin: 0 0 8px;
  max-width: 448px;
}

.footer__responsible {
  font-size: 13px;
  text-decoration: underline;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer__logo {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 20px;
  display: block;
  margin-bottom: 4px;
}

.footer__tagline {
  font-size: 14px;
  opacity: 0.8;
  margin: 0;
}

.footer__nav ul,
.footer__social ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__nav a,
.footer__social a {
  text-decoration: none;
}

.footer__nav a:hover,
.footer__social a:hover {
  text-decoration: underline;
}

.footer__social-label {
  font-size: 14px;
  opacity: 0.8;
  display: block;
  margin-bottom: 8px;
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__legal {
  font-size: 13px;
  opacity: 0.8;
  margin: 0;
}

#main ol,
#main ul {
  background: linear-gradient(180deg, #193864 -22.92%, #0F223C 84.37%);
  border-radius: 16px;
  padding: 20px 35px;
}

li::marker {
  color: #F5E8D6;
}

.hero__bar-inner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background-image: url(../img/separator.svg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}


 .lexical-table-container {
   width: 100%;
   overflow-x: auto;
   -webkit-overflow-scrolling: touch;
   margin: 20px 0;
   border: 1px solid #193864;
   background: #0A1728;
 }

.lexical-table {
  min-width: 600px;
  width: 100%;
  border-collapse: collapse;
}

.lexical-table-container::-webkit-scrollbar {
  height: 6px;
}
.lexical-table-container::-webkit-scrollbar-track {
  background: #193864;
}
.lexical-table-container::-webkit-scrollbar-thumb {
  background: #193864;
  border-radius: 10px;
}
.lexical-table-container::-webkit-scrollbar-thumb:hover {
  background: #193864;
}

.lexical-table td {
  white-space: nowrap;
  min-width: 150px;
  border: 1px solid #142d50!important;
}


@media (min-width: 640px) {
  .footer__top {
    grid-template-columns: 1fr auto auto;
  }
}



@media (max-width: 767px) {
  .content .container{
    padding-left: 0;
    padding-right: 0;
  }
  .hero{
    margin: 60px 0 15px;
  }
  #main{
    padding: 0 10px;
  }

  .header__cta-wrap:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(../img/header-pattern.webp);
    background-size: 75px auto;
    background-repeat: repeat;
    opacity: 0.25;
    pointer-events: none;
  }
  .header__cta-wrap {
    position: absolute;
    top: 55px;
    left: 0;
    width: 100%;
    padding:10px 0;
    box-sizing: border-box;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 5px;
    background: linear-gradient(0deg, #050B14 33.09%, #142d50 100%);
  }
  .header__cta{
    font-size: 14px;
    font-weight: 700;
    padding: 7px 20px 10px 20px;
    word-break: break-word;
    text-transform: uppercase;
    z-index: 1;
  }
  .header__nav.is-open {
    display: block;
    position: absolute;
    top: 115px;
    left: 0;
    right: 0;
    background: #0d1c32;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 20px;
  }

  .hero__bonus{
    font-size: 26px;

  }
  .header__nav.is-open .header__menu {
    flex-direction: column;
    gap: 8px;
  }
  .header__nav.is-open .header__menu a {
    display: block;
    padding: 8px 0;
  }

  .hero__banner {
    width: 100%;
    min-height: 250px;
    background: url(../img/mobile-banner.webp) no-repeat top center;
    background-size: cover;
    border-radius: 16px 16px 0 0;
  }
}
@media (max-width: 1200px){
  #main{
    padding: 0 20px;
  }
}

/* --- Slots Block Styles --- */
.slots-wrapper {
  margin: 30px 0;
}
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  align-items: start;
}
.slot-card {
  text-align: center;
  border-radius: 8px;
  transition: transform 0.2s ease, background 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.slot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  border-radius: 8px;
  transition: background 0.2s;
  z-index: 1;
}
.slot-image {
  border-radius: 6px;
  overflow: hidden;
}
.slot-image img {
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
  padding: 0;
}
.slot-name {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  width: calc(100% - 16px);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  background: #450C88;
  color: #FFFFFF;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 2;
}
.slot-card:hover .slot-name{
  opacity: 1;
}
.slot-card:hover::before {
  background: rgba(0, 0, 0, 0.6);
  opacity: 1;
}
@media (max-width: 600px) {
  .slots-grid {
    gap: 10px;
  }
  .slot-name {
    font-size: 12px;
  }
}
