/* ===== CSS variables (из админки) ===== */
:root{
  /* Основные цвета (дефолтные значения, переопределяются в app.blade.php) */
  --primary-color:#FFD700;
  --secondary-color:#DC2626;
  --nav-bg:#1F2937;
  --body-bg:#111827;
  --footer-bg:#1F2937;
  --text-color:#FFFFFF;
  --link-color:var(--primary-color);
  --link-hover:var(--secondary-color);
  --promo-bg:linear-gradient(to right,var(--secondary-color),var(--primary-color));
  --promo-text:#fff;
  --promo-code-bg:#fff;
  --promo-code-text:var(--secondary-color);

  /* Новые расширенные переменные */
  --hero-h1-color:#FFD700;
  --hero-description-color:#FFFFFF;
  --nav-button-1-color:#FFD700;
  --nav-button-1-hover:#DC2626;
  --nav-button-2-color:#DC2626;
  --nav-button-2-hover:#FFD700;
  --hero-button-1-color:#FFD700;
  --hero-button-2-color:#DC2626;
  --content-headings-color:#FFD700;
  --content-text-color:#FFFFFF;
  --footer-text-color:#FFFFFF;
  --footer-lines-color:#FFD700;
}

/* ===== Overflow Fix ===== */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ===== Reset / Base ===== */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:Arial,sans-serif;
  background:var(--body-bg);
  color:var(--content-text-color);
  line-height:1.6;
  overflow-x:hidden;
}

html, body{
  max-width:100%;
}

.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
}

/* ===== Buttons ===== */
.btn{
  padding:12px 24px;
  border:none;
  border-radius:50px;
  font-weight:700;
  text-decoration:none;
  display:inline-block;
  transition:.3s;
  cursor:pointer;
  font-size:14px;
  min-width:120px;
  text-align:center;
  white-space:nowrap;
}

.btn-primary, .nav-btn-1{
  background:var(--nav-button-1-color);
  color:var(--body-bg);
}

.btn-primary:hover, .nav-btn-1:hover{
  background:var(--nav-button-1-hover);
  transform:scale(1.05);
}

.btn-secondary, .nav-btn-2{
  background:var(--nav-button-2-color);
  color:var(--text-color);
}

.btn-secondary:hover, .nav-btn-2:hover{
  background:var(--nav-button-2-hover);
  color:var(--body-bg);
  transform:scale(1.05);
}

/* Кнопки Hero */
.hero-buttons{
  display:flex;
  gap:15px;
  justify-content:center;
  margin-bottom:30px;
  flex-wrap:wrap;
}

.hero-btn-1{
  background:var(--hero-button-1-color);
  color:var(--body-bg);
}

.hero-btn-1:hover{
  background:var(--nav-button-1-hover);
  transform:scale(1.05);
}

.hero-btn-2{
  background:var(--hero-button-2-color);
  color:var(--text-color);
}

.hero-btn-2:hover{
  background:var(--nav-button-2-hover);
  color:var(--body-bg);
  transform:scale(1.05);
}

/* ===== Promo bar ===== */
.promo-bar{
  background:var(--promo-bg);
  color:var(--promo-text);
  padding:10px;
  text-align:center;
  font-weight:700;
  font-size:14px;
}

.promo-code{
  background:var(--promo-code-bg);
  color:var(--promo-code-text);
  padding:5px 10px;
  border-radius:5px;
  font-weight:700;
  margin:0 5px;
}

/* ===== Header / Nav ===== */
.nav{
  background:var(--nav-bg);
  position:sticky;
  top:0;
  z-index:100;
  box-shadow:0 2px 10px rgba(0,0,0,.3);
}

.nav-container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  height:70px;
}

.nav-logo a{
  display:flex;
  align-items:center;
  text-decoration:none;
  color:inherit;
}

.logo-img{
  height:40px;
  margin-right:15px;
}

.logo-icon{
  font-size:2rem;
  margin-right:15px;
}

.logo-text{
  color:var(--hero-h1-color);
  font-weight:700;
  font-size:1.5rem;
}

.nav-menu{
  display:flex;
  list-style:none;
  gap:30px;
}

.nav-link{
  color:var(--content-text-color);
  text-decoration:none;
  font-weight:500;
  transition:.3s;
}

.nav-link:hover{
  color:var(--link-hover);
}

.nav-buttons{
  display:flex;
  gap:15px;
}

/* Бургер меню */
.burger-menu{
  display:none;
  flex-direction:column;
  cursor:pointer;
  gap:4px;
  padding:8px;
  z-index:1001;
}

.burger-line{
  width:25px;
  height:3px;
  background:var(--content-text-color);
  transition:.3s;
  border-radius:2px;
}

.burger-menu.active .burger-line:nth-child(1){
  transform:rotate(45deg) translate(6px, 6px);
}

.burger-menu.active .burger-line:nth-child(2){
  opacity:0;
}

.burger-menu.active .burger-line:nth-child(3){
  transform:rotate(-45deg) translate(6px, -6px);
}

/* Боковое меню */
.side-menu{
  position:fixed;
  top:0;
  right:-100%;
  width:280px;
  height:100vh;
  background:var(--nav-bg);
  transition:right .3s ease;
  z-index:1000;
  padding:80px 0 20px;
  box-shadow:-5px 0 15px rgba(0,0,0,.3);
}

.side-menu.active{
  right:0;
}

.side-menu ul{
  list-style:none;
  padding:0;
  margin:0;
}

.side-menu li{
  border-bottom:1px solid rgba(255,255,255,.1);
}

.side-menu .nav-link{
  display:block;
  padding:15px 25px;
  color:var(--content-text-color);
  text-decoration:none;
  font-weight:500;
  transition:.3s;
}

.side-menu .nav-link:hover{
  background:rgba(255,255,255,.1);
  color:var(--hero-h1-color);
}

.menu-close{
  position:absolute;
  top:15px;
  right:15px;
  width:50px;
  height:50px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:rgba(255,255,255,.1);
  transition:.3s;
}

.menu-close:hover{
  background:rgba(255,255,255,.2);
  transform:scale(1.1);
}

.menu-close span{
  color:var(--hero-h1-color);
  font-size:30px;
  font-weight:300;
  line-height:1;
}

/* Overlay */
.menu-overlay{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,.5);
  opacity:0;
  visibility:hidden;
  transition:.3s;
  z-index:999;
}

.menu-overlay.active{
  opacity:1;
  visibility:visible;
}

/* ===== Main ===== */
main{
  min-height:100vh;
}

/* ===== Hero ===== */
.hero-section{
  background:linear-gradient(135deg,var(--nav-bg),var(--body-bg));
  padding:100px 0;
  text-align:center;
}

.hero-title{
  font-size:3.5rem;
  margin-bottom:20px;
  color:var(--hero-h1-color);
  font-weight:700;
}

.hero-description{
  font-size:1.25rem;
  margin-bottom:40px;
  color:var(--hero-description-color);
  max-width:600px;
  margin-left:auto;
  margin-right:auto;
}

/* ===== Content ===== */
.content-section{
  padding:60px 0;
}

.content-section h2{
  font-size:2.5rem;
  margin-bottom:30px;
  color:var(--content-headings-color);
}

.content-section h3{
  font-size:1.8rem;
  margin-bottom:20px;
  color:var(--content-headings-color);
}

.content-section p{
  font-size:1.1rem;
  line-height:1.8;
  margin-bottom:20px;
  color:var(--content-text-color);
}

.content-section ul,
.content-section ol{
  margin-bottom:20px;
  padding-left:30px;
  color:var(--content-text-color);
}

.content-section li{
  margin-bottom:8px;
  line-height:1.6;
}

.content-section a{
  color:var(--link-color);
  text-decoration:underline;
}

.content-section a:hover{
  color:var(--link-hover);
}

.content-section img{
  max-width:100%;
  height:auto;
  margin:20px 0;
  border-radius:10px;
}

.raw-html img{
  max-width:100%;
  height:auto;
}

.raw-html table{
  width:100%;
  border-collapse:collapse;
}

.raw-html iframe{
  max-width:100%;
}

/* ===== Hero License & Promo Blocks ===== */
.hero-license-block{
  margin-top:24px;
  padding:12px 20px;
  border-radius:8px;
  background:rgba(31,41,55,0.8);
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,0.1);
  max-width:600px;
  margin-left:auto;
  margin-right:auto;
}

.license-items{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:24px;
  flex-wrap:wrap;
}

.license-item{
  color:var(--content-text-color);
  font-size:13px;
  font-weight:500;
  opacity:0.9;
  white-space:nowrap;
}

.hero-promo-block{
  margin-top:24px;
  background:linear-gradient(135deg, rgba(139,69,199,0.5) 0%, rgba(59,130,246,0.5) 100%);
  border-radius:12px;
  padding:16px;
  max-width:500px;
  margin-left:auto;
  margin-right:auto;
  border:1px solid rgba(139,69,199,0.3);
  box-shadow:0 8px 32px rgba(0,0,0,0.2);
  backdrop-filter:blur(10px);
}

.promo-content{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.promo-left{
  text-align:center;
}

.promo-title{
  color:rgba(209,213,219,1);
  font-size:14px;
  margin-bottom:8px;
}

.promo-code-wrapper{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
}

.promo-code{
  background:linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  font-weight:700;
  font-size:20px;
}

.copy-btn{
  background:linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  border:none;
  color:#fff;
  padding:6px 12px;
  border-radius:8px;
  cursor:pointer;
  font-size:12px;
  font-weight:500;
  transition:all 0.3s ease;
  display:flex;
  align-items:center;
  gap:4px;
  box-shadow:0 2px 8px rgba(37,99,235,0.3);
}

.copy-btn:hover{
  background:linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(37,99,235,0.4);
}

.promo-bonus{
  background:rgba(139,69,199,0.3);
  padding:10px 16px;
  border-radius:8px;
  border:1px solid rgba(168,85,247,0.3);
  color:#fff;
  font-size:14px;
  font-weight:600;
  white-space:nowrap;
  display:flex;
  align-items:center;
  gap:8px;
}

/* Мобильные стили для новых блоков */
@media(max-width:768px){
  .hero-license-block{
    margin-top:20px;
    padding:10px 16px;
  }
  
  .license-items{
    gap:16px;
  }
  
  .license-item{
    font-size:12px;
    white-space:normal;
    text-align:center;
  }
  
  .hero-promo-block{
    margin-top:20px;
    padding:16px;
  }
  
  .promo-content{
    flex-direction:column;
    gap:12px;
    text-align:center;
  }
  
  .promo-code{
    font-size:18px;
  }
  
  .promo-bonus{
    font-size:13px;
    justify-content:center;
    white-space:normal;
  }
}

/* ===== Tables ===== */
table{
  width:100%;
  max-width:100%;
  border-collapse:collapse;
  margin:20px 0;
  background:var(--body-bg);
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 2px 8px rgba(0,0,0,.2);
  word-wrap:break-word;
}

thead{
  background:var(--content-headings-color);
}

thead th{
  background:var(--content-headings-color);
  color:var(--body-bg);
  font-weight:700;
  padding:12px 15px;
  text-align:left;
  border-bottom:2px solid var(--secondary-color);
  overflow-wrap:break-word;
  word-break:break-word;
  min-width:120px;
}

tbody tr{
  border-bottom:1px solid rgba(255,255,255,.1);
}

tbody tr:nth-child(even){
  background:rgba(255,255,255,.05);
}

tbody tr:hover{
  background:rgba(255,255,255,.1);
}

tbody td{
  padding:12px 15px;
  color:var(--content-text-color);
  border-bottom:1px solid rgba(255,255,255,.1);
  overflow-wrap:break-word;
  word-break:break-word;
  hyphens:auto;
  min-width:120px;
}

/* ===== Footer ===== */
.footer{
  background:var(--footer-bg);
  padding:24px 0 0;
  border-top:2px solid var(--footer-lines-color);
}

.footer .container,
.footer-strip .container,
.footer-bottom{
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
}

.footer-container{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  column-gap:40px;
  row-gap:30px;
  align-items:start;
  justify-items:start;
  margin:24px 0;
}

.footer-section h3{
  color:var(--footer-lines-color);
  margin-bottom:15px;
  font-size:1.2rem;
}

.footer-section p,
.footer-section li{
  color:var(--footer-text-color);
  font-size:14px;
  margin-bottom:8px;
}

.footer-section ul{
  list-style:none;
}

.footer-section a{
  color:var(--footer-text-color);
  text-decoration:none;
  transition:.3s;
}

.footer-section a:hover{
  color:var(--link-hover);
}

.footer .logo-img{
  max-width:160px;
  height:auto;
  display:block;
}

.footer-bottom{
  border-top:2px solid var(--footer-lines-color);
  padding:14px 0;
  text-align:center;
  font-size:12px;
  color:var(--footer-text-color);
  margin-top:20px;
}

.social-icons{
  display:flex;
  gap:12px;
  margin-top:10px;
  justify-content:flex-start;
}

.social-icons img{
  width:24px;
  height:24px;
  transition:all .3s;
  filter:brightness(0) invert(1);
}

.social-icons a:hover img{
  transform:scale(1.1);
  filter:brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(45deg);
}

.footer-strip{
  border-bottom:1px solid var(--footer-lines-color);
  padding:12px 0;
  margin:0;
}

.footer-pay-strip{
  border-top:1px solid var(--footer-lines-color);
  padding:12px 0;
  margin:0;
}

.strip-icons{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
}

.strip-icons img{
  height:24px;
  width:auto;
  display:block;
  filter:brightness(0) invert(1);
  transition:opacity .2s;
}

.strip-icons img:hover,
.strip-icons a:hover img{
  opacity:.85;
}

.strip-icons a{
  display:inline-block;
  transition:transform .2s;
}

.strip-icons a:hover{
  transform:scale(1.05);
}

.strip-icons--pay img{
  height:28px;
}

/* ===== RESPONSIVE STYLES ===== */
@media(max-width:768px){
  /* Container */
  .container{
    padding:0 15px;
  }

  /* Buttons */
  .btn{
    padding:10px 20px;
    font-size:12px;
    min-width:100px;
  }

  /* Navigation */
  .nav-container{
    flex-direction:column;
    height:auto;
    padding:15px;
  }
  
  .nav-logo{
    order:1;
    margin-bottom:15px;
  }
  
  .nav-logo a{
    justify-content:center;
  }
  
  .logo-img{
    margin-right:0;
    height:35px;
  }
  
  .logo-text{
    display:none;
  }
  
  .nav-buttons{
    order:2;
    gap:10px;
    margin-bottom:15px;
  }
  
  .burger-menu{
    display:flex;
    order:3;
    position:absolute;
    top:15px;
    right:15px;
  }
  
  .nav-menu{
    display:none;
  }

  /* Hero */
  .hero-section{
    padding:60px 0;
    min-height:50vh;
    background-size:cover !important;
    background-position:center !important;
  }
  
  .hero-title{
    font-size:2rem;
    line-height:1.2;
  }
  
  .hero-description{
    font-size:1rem;
    margin-bottom:30px;
  }

  /* Content */
  .content-section{
    padding:40px 0;
  }
  
  .content-section h2{
    font-size:2rem;
  }

  /* Image + Text блоки */
  .it-row{
    flex-direction:column !important;
    gap:0 !important;
  }
  
  .it-img{
    flex:0 0 auto !important; 
    width:100% !important;
    max-width:100% !important;
    margin-bottom:20px !important;
  }
  
  .it-img img{
    width:100% !important;
    height:auto !important;
    max-width:100% !important;
    object-fit:cover;
  }
  
  .it-text{
    width:100% !important;
  }

/* Tables */
table{
  font-size:14px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  display:block;
  width:100%;
}

table thead,
table tbody{
  display:table;
  width:100%;
}

thead th,
tbody td{
  padding:8px 10px;
  word-wrap:break-word;
  overflow-wrap:break-word;
  max-width:200px;
}
  
  .table-responsive{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  /* Footer */
  .footer .container,
  .footer-strip .container,
  .footer-bottom{
    padding:0 15px;
  }
  
  .footer-container{
    grid-template-columns:1fr;
    gap:25px;
    margin:20px 0;
  }
  
  /* Первая секция - логотип + соцсети строго по центру */
  .footer-section:first-child{
    text-align:center !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    width:100% !important;
  }
  
  .footer .logo-img{
    margin:0 auto 15px !important;
    max-width:140px;
    display:block !important;
    text-align:center !important;
  }
  
  .footer .logo-text{
    display:none !important;
  }
  
  .social-icons{
    justify-content:center;
    gap:16px;
    margin-top:15px;
  }
  
  .social-icons img{
    width:32px;
    height:32px;
    filter:brightness(0) invert(1);
  }
  
  .footer-strip,
  .footer-pay-strip{
    padding:16px 0;
  }
  
  /* Меню и документы - в 2 колонки */
  .footer-section h3{
    text-align:center;
    margin-bottom:15px;
  }
  
  .footer-section ul{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px 12px;
    justify-items:center;
    max-width:300px;
    margin:0 auto;
  }
  
  .footer-section li{
    margin-bottom:0;
    width:100%;
  }
  
  .footer-section .nav-link{
    font-size:13px;
    padding:8px 12px;
    display:block;
    border-radius:20px;
    transition:.3s;
    background:rgba(255,255,255,.05);
    text-align:center;
    width:100%;
    box-sizing:border-box;
  }
  
  .footer-section .nav-link:hover{
    background:rgba(255,255,255,.15);
    color:var(--footer-lines-color);
    transform:translateY(-2px);
  }
  
  .strip-icons img{
    height:20px;
  }
  
  .strip-icons--pay img{
    height:22px;
  }
}

/* Очень маленькие экраны - стекинг таблиц */
@media(max-width:480px){
  table.stack-mobile,
  table.stack-mobile thead,
  table.stack-mobile tbody,
  table.stack-mobile th,
  table.stack-mobile td,
  table.stack-mobile tr{
    display:block;
  }
  
  table.stack-mobile thead tr{
    position:absolute;
    top:-9999px;
    left:-9999px;
  }
  
  table.stack-mobile tr{
    border:1px solid var(--footer-lines-color);
    margin-bottom:10px;
    padding:10px;
    border-radius:8px;
    background:rgba(255,255,255,.05);
  }
  
  table.stack-mobile td{
    border:none;
    position:relative;
    padding-left:25%;
    text-align:right;
    white-space:normal;
    word-wrap:break-word;
  }
  
  table.stack-mobile td:before{
    content:attr(data-label);
    position:absolute;
    left:10px;
    width:20%;
    text-align:left;
    font-weight:700;
    color:var(--content-headings-color);
  }
}