@import url('https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=swap');
html,body{
    margin: 0;
    padding: 0;
    background: url(/img/aden-land.jpg) top center no-repeat;
    background-size: cover;
    color: #fff;
    font-family: "Onest", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 18px;
    min-height: 100%;
}
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #BEBEBF;
    border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
    background: #FFCB00;
    cursor: move;
}
.wrapper{
    width: 1352px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
a{
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}
input, select{
    background: #474852;
    width: 300px;
    box-sizing: border-box;
    padding: 12px;
    font-weight: 400;
    font-sizing: 16px;
    font-family: "Onest", sans-serif;
    font-optical-sizing: auto;
    border: none;
    border-radius: 6px;
    width: 100%;
    height: 52px;
    transition: 0.3s;
    border: 2px solid #474852;
    color: #fff;
}
input::placeholder{
    color: #898e9c;
    opacity: 1;
}
input:hover{
    background: #393A40;
}
input:active{
    border: 2px solid #929293;
    background: #26272A;
    color: #fff;
}
input:focus{
    border: 2px solid #929293;
    background: #26272A;
    color: #fff;
}
button{
    cursor: pointer;
    transition: 0.3s;
}
header{
    height: 72px;
    display: flex;
    align-items: center;
}
.main-link{
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
}
.main-link svg{
    margin-right: 5px;
    transition: 0.3s;
}
header .main-link{
    margin-left: 8px;
}
.logo{
    margin-right: 24px;
}
.main-link:hover{
    color: #FFCB00;
}
svg path{
    transition: 0.3s;
}
.main-link:hover svg path{
    fill: #FFCB00!important;
}
.link-button{
    padding: 10px 16px;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 8px;
    font-size: 14px;
}
.link-button:hover{
    background: #474852;
}
.enter-area{
    margin-left: auto;
    display: flex;
    vertical-align: middle;
}
.enter-area .link-button{
    margin-left: 16px;
}
.gold-button{
    background: #FFCB00;
    color: #18181B;
    border: 1px solid #FFCB00;
}
.gold-button:hover{
    background: #FFDD2D;
}
.content{
    flex-grow: 1;
}
footer{
    height: 100px;
    box-sizing: border-box;
    padding: 20px 0;
    font-size: 11px;
    color: #6D6D6E;
}
.main-footer{
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}
.copyright{
    display: flex;
}
.main-footer a{
    margin-left: ;
}
.main-footer .main-link{
    font-size: 11px;
    display: inline-block;
    color: #BEBEBF;
    padding: 0px;
    margin-left: 10px;
}
.main-footer > div{
    margin-right: 24px;
}
.main-footer .main-link:hover{
    color: #FFCB00;
}
.first-footer{
    width: 200px;
    margin-right: 0px!important;
}
.tab-content{
    display: flex;          
    align-items: center;    
}
.tabs{
    width: 100%;
}
.tabs-container {
  width: 100%;
  margin: 20px auto;
}
.tabs-nav {
  display: flex;
  flex-wrap: wrap; 
  gap: 5px;
  position: relative;
  z-index: 2;
}
.tab-btn.active {
    position: relative;
    background: linear-gradient(180deg,rgba(47, 49, 54, 0.45) 0%, rgba(161, 141, 93, 0.45) 100%)!important;
    /*background: linear-gradient(180deg, rgba(47, 49, 54, 0.45) 0%, rgb(94 85 64) 100%) !important;*/
    color: white;
    /*background: linear-gradient(180deg, rgb(147 133 104) 0%, rgb(94 85 64) 100%) !important;;*/
    border:none;
    padding: 18px 26px 16px 26px;
}
.tab-btn.active .date-server{
    top: 7px;
    right: 7px;
}
.tab-btn.active:after{
    content: "";
    position: absolute;
    width: 100%;
    height: 5px;
    bottom:0px;
    lefT: 0px;
    background: #FFCB00;
}
.tabs-content {
  width: 100%;
}
.tab-panel {
  display: none;
  position: relative;
  min-height: 570px;
  position: relative;
  overflow: hidden;
  padding: 54px 40px;
  box-sizing: border-box;
  border-radius: 0  20px 20px 20px;
}
.tab-panel.active {
  display: block;
  animation: fadeIn 0.6s ease forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(10px); /* Необязательно: контент слегка приподнимется снизу вверх */
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.first-tab{
    background: url(/img/first-tab.png)top center no-repeat;
    background-size: cover;
}
.img-tab{
    position: absolute;
    bottom: -85px;
    right: 0px;
    height: 674px;
}
.tab-btn{
    display: block;
    cursor: pointer;
    height: 107px;
    width: 216px;
    border-radius: 12px 12px 0 0;
    border: 2px solid #2F3136;
    background: linear-gradient(180deg, rgba(47, 49, 54, 0.25) 0%, rgba(137, 142, 156, 0.075) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-sizing: border-box;
    text-align: left;
    padding: 16px 24px;
    color: #fff;
}
.tab-btn:hover{
    background: linear-gradient(180deg, rgba(47, 49, 54, 0.35) 0%, rgba(137, 142, 156, 0.35) 100%);
}
.type-server{
    margin-top:5px;
    font-size: 40px;
    font-weight: 600;
}
.name-server{
    font-size: 18px;
    color: #FFE996;
    display: flex;
    align-items: center;
}
.date-server{
	position: absolute;
    top: 5px;
    right: 5px;
    color: #FFE996;
    font-size: 12px;
}
.new-serv{
    background: #FF5227;
    padding: 4px 8px;
    border-radius: 6px;
    color: #fff;
    font-size: 11px;
    margin-left: 8px;
    margin-top: -3px;
}
.name-tab{
   font-size: 55px; 
   font-weight: 600;
   margin: 40px 0;
   text-transform: uppercase;
   position: relative;
   z-index: 3;
}
.main-text-tab{
    color: #D3D3D4;
    font-size: 22px;
    max-width: 750px;
    font-weight: 400;
    line-height: 160%;
    position: relative;
    z-index: 2;
}
.bottom-button{
    margin-top: 50px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}
.bottom-button .link-button{
    width: 230px;
    height: 60px;
    padding:0px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: 12px;
}
.bottom-button .gold-button{
    margin-right: 30px;
    width: 230px;
    height: 60px;
}
.second-tab{
    background: url(/img/second-tab.png)top center no-repeat;
    background-size: cover;
}
.second-tab .img-tab {
    right: -50px;
    height: 650px;
}
.third-tab{
    background: url(/img/third-tab.png)top center no-repeat;
    background-size: cover;
}
.third-tab .img-tab {
    position: absolute;
    bottom: -326px;
    right: -10px;
    height: 855px;
}
.fourth-tab{
    background: url(/img/fourth-tab.png)top center no-repeat;
    background-size: cover;
}
.fourth-tab .img-tab {
    position: absolute;
    bottom: -44px;
    right: -40px;
    height: 730px;
}
.main-form{
    width: 500px;
    max-width: 500px;
    margin: 0 auto;
    background: #2F3136;
    border-radius: 12px;
    color: #fff;
}
.header-form{
    padding: 24px;
    font-size: 24px;
    font-weight: 600;
    border-bottom: 1px solid #474852;
}
.content-form{
    padding: 24px;
}
.footer-form{
    padding: 24px;
    border-top: 1px solid #474852;
    flex-wrap: wrap;
}
.row-form{
    margin: 24px 0;
}
.link-row{
    display: flex;
    align-items: center;
    font-size: 16px;
    margin-top: 24px;
}
.text-link{
    color: #FFCB00;
    margin-left: auto;
    transition: 0.3s;
}
.text-link:hover{
    color: #FFDD2D;
}
.link-row input{
    width: 20px;
    height: 20px;
    padding: 0;
    margin-right: 10px;
    border-radius: 6px;
    cursor: pointer;
    background: transparent!important;
    border:2px solid #ccc;
}
.custom-checkbox {
  /* Отключаем стандартный стиль браузера */
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #898e9c;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  background-color: transparent; 
  
  /* Чтобы галочка внутри появлялась плавно */
  transition: all 0.2s ease;
  position: relative;
}
.custom-checkbox:hover{
    background: #393A40!important;
}
/* Стили при состоянии "выбрано" (Checked) */
.custom-checkbox:checked {
  border-color: #fff; 
  background-color: #ffffff!important;
  color: #000;
}

/* Рисуем галочку внутри через псевдоэлемент, которая видна только при :checked */
.custom-checkbox:checked::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 4px;
  height: 8px;
  border: 3px solid #000;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.checkbox-label{
    display: flex;
    align-items: center;
}
.error{
    color: #FF4837;
    font-size: 14px;
    margin-top: 6px;
}
.error-input{
    border: 2px solid #FF4837;
}
.password-wrapper {
  position: relative; /* Задайте нужную вам ширину */
}
.password-wrapper2 {
  position: relative; /* Задайте нужную вам ширину */
}

/* Кнопка переключения (глазик) */
.password-toggle-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #898e9c; /* Серый цвет иконки по умолчанию */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.password-toggle-btn:hover {
  color: #fff; /* Подсветка при наведении */
}

.password-toggle-btn2 {
  position: absolute;
  top: 14px;
  right: 16px;
  
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #898e9c; /* Серый цвет иконки по умолчанию */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.password-toggle-btn2:hover {
  color: #fff; /* Подсветка при наведении */
}

/* МАГИЯ СКРЫТИЯ/ПОКАЗА ИКОНОК */

/* По умолчанию прячем закрытый глаз */
.password-wrapper .icon-eye-closed {
  display: none;
}

/* Когда активен режим "Показать пароль": */
.password-wrapper.show-password .icon-eye-open {
  display: none; /* Прячем открытый глаз */
}

.password-wrapper.show-password .icon-eye-closed {
  display: block; /* Показываем закрытый глаз */
}

.password-wrapper2 .icon-eye-closed2 {
  display: none;
}

/* Когда активен режим "Показать пароль": */
.password-wrapper2.show-password .icon-eye-open2 {
  display: none; /* Прячем открытый глаз */
}

.password-wrapper2.show-password .icon-eye-closed2 {
  display: block; /* Показываем закрытый глаз */
}
.footer-form{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-form .link-button{
    width: 45%;
    text-align: center;
    height: 48px;
    box-sizing: border-box;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
button.link-button{
    background: transparent;
}
button.gold-button{
    background: #FFCB00;
    color: #18181B;
}
.footer-form .gold-button{
    font-size: 16px;
    font-weight: 600;
}
.custom-select {
  /* 1. Сбрасываем стандартный внешний вид и стрелку браузера */
  -webkit-appearance: none;
  cursor: pointer;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='#898e9c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M19 9l-7 7-7-7'/></svg>");
  background-repeat: no-repeat;
  /* Позиционируем стрелку: по центру вертикально и с отступом 20px справа */
  background-position: right 20px center; 
  /* Задаем размер стрелки */
  background-size: 18px;
}
.select-container {
  position: relative;
}
.real-select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  cursor: pointer;
  color: #fff;
  line-height: 300%;
  padding-bottom: 0px;
}

/* Стилизуем отдельную стрелочку */
.arrow-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #9ca3af;
  border-bottom: 2px solid #9ca3af;
  /* Центрируем и разворачиваем вниз */
  transform: translateY(-70%) rotate(45deg); 
  pointer-events: none; /* Чтобы клик проходил сквозь стрелку в сам селект */
  transition: transform 0.2s ease;
}

/* Класс, который будет добавлять JS при клике */
.select-container.is-open .arrow-icon {
  transform: translateY(-30%) rotate(225deg); /* Переворот */
}
.flex-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.flex-row .select-container{
    width: 140px;
}
.flex-row .input-flex{
    width: 300px;
}
.your-login{
    font-size: 14px;
    padding-top: 8px;
    color: #BEBEBF;
}
.name-select{
    position: absolute;
    top: 4px;
    left: 14px;
    font-size: 12px;
    border-radius: 8px;
    color: #898e9c;
}
.footer-text-btn{
    width: 100%;
    font-size: 14px;
    margin-bottom: 24px;
    color: #BEBEBF;
    display: flex;
    align-items: start;
    justify-content: space-between;
}
.footer-text-btn img{
    margin-right: 15px;
}
.title-page{
    font-size: 55px;
    font-weight: 600;
    width: 100%;
}
.steps{
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
}
.step{
    width: 32%;
    background: #2F3136;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}
.w-100{
    width: 100%;
}
.footer-step{
    margin-top: auto;
    background: #393A40;
    padding: 24px;
    border-radius: 0 0 12px 12px;
}
.title-step{
    padding: 24px;
    display: flex;
    align-items: center;
}
.number-step{
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #393A40;
    border-radius: 3px;
    margin-right: 12px;
}
.name-step{
    font-size: 24px;
}
.content-step{
    color: #BEBEBF;
    padding: 0 24px 24px 24px;
}
.row-btn .link-button{
    display: block;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    padding: 14px 16px;
}
.first-row{
    margin-bottom: 12px;
}
.white-btn{
    background: #fff;
    color: #18181B;
}
.white-btn:hover{
    background: #D3D3D4;
    color: #18181B;
    border-color: #D3D3D4;
}
.flex-row-btn{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.flex-row-btn .link-button{
    max-width: 31%;
    width: 31%;
    box-sizing: border-box;
}
.footer-step .footer-text-btn{
    margin: 0px;
}
.content-step .row-btn{
    margin-top: 24px;
}
.content-step .row-btn .grey-btn{
    background: #393A40;
    border-color: #393A40;
}
.content-step .row-btn .grey-btn:hover{
    background: #474852;
}
.content-page{
    font-size: 16px;
    max-height: calc(100vh - 500px);
    overflow: auto;
}
.header-server{
    text-align: center;
    background: url(/img/server-bg2.png) bottom left no-repeat;
    background-size: 100% auto;
    padding: 24px 0 40px 0;
}
.header-server .white-logo{
    height: 40px;
}
.name-server-small{
    font-size: 32px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}
.name-server-small .new-serv{
    margin-left: 16px;
}
.name-server-big{
    font-size: 64px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 8px 0 16px 0;
}
.text-server-grey{
    color: #BEBEBF;
    font-size: 22px;
    line-height: 140%;
}
.header-server .bottom-button{
    justify-content: center;
}
.gift-area{
    width: 500px;
    margin: 30px auto;
    background: #26272A;
    background: linear-gradient(90deg,rgba(38, 39, 42, 1) 0%, rgba(255, 82, 39, 1) 100%);
    border-radius: 16px;
    padding: 12px 24px;
    box-sizing: border-box;
}
.gift-flex{
    display: flex;
    align-items: center;
    justify-content: center;
}
.server-gift-img{
    margin-right: 8px;
}
.bar{
    font-size: 16px;
    text-align: left;
}
.bg-bar{
    margin-top: 6px;
    width: 240px;
    height: 16px;
    border-radius: 6px;
    background: rgba(255,255,255,0.2);
    margin-right: 40px;
}
.server-timer{
    font-size: 26px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}
.server-timer span{
    margin: 0 3px;
}
.progress-fill {
  height: 100%;
  border-radius: 6px;
  
  /* Используем обычный linear-gradient + background-size для бесконечного повторения */
  background-image: linear-gradient(
   -45deg,
    #e0a57c 0%,
    #e0a57c 16.66%,
    #c88454 16.66%,
    #c88454 50%,
    #e0a57c 50%,
    #e0a57c 66.66%,
    #c88454 66.66%,
    #c88454 100%
  );
  background-size: 30px 30px; /* Размер шага полосок */
  
  /* Подключаем анимацию */
  animation: move-stripes 2s linear infinite;
}

/* Двигаем фон по горизонтали */
@keyframes move-stripes {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 30px 0px; /* Должно совпадать с шириной в background-size */
  }
}

.stream{
    margin: 40px auto;
    background: #26272A;
    border-radius: 12px;
    padding: 16px;
}
.all-streams{
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(calc((100% - (12px * 3)) / 4), 1fr));
}
.block-stream iframe{
    width: 100%;
    height: auto;
    min-height: 180px;
}
.slider-container {
  width: 100%;
  border-radius: 16px;
  box-sizing: border-box;
  position: relative;
}

.swiper {
  width: 100%;
  height: auto;
}

/* Сетка внутри слайда */
.slide-content {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Текст слева, картинка справа */
  gap: 40px;
  min-height: 380px;
}

.slide-text {
  color: #ffffff;
}

.slide-text h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.slide-text h3 {
  font-size: 18px;
  color: #a0a5b5;
  margin-bottom: 24px;
}

.slide-text p {
  font-size: 16px;
  line-height: 1.6;
  color: #cfd4e2;
}

.slide-image img {
  width: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

/* ========================================== */
/* СТИЛИЗАЦИЯ ПОЛОСЫ ПЕРЕКЛЮЧЕНИЯ (SCROLLBAR) */
/* ========================================== */

/* 1. Общая серая дорожка */
.swiper-scrollbar.swiper-scrollbar-horizontal {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: 120px; /* Делаем её аккуратной и короткой, как на скрине */
  height: 4px;  /* Тонкая линия */
  background: rgba(255, 255, 255, 0.15); /* Полупрозрачный серый цвет */
  border-radius: 2px;
}

/* 2. Активный белый ползунок */
.swiper-scrollbar-drag {
  background: #ffffff !important; /* Ярко-белый ползунок */
  border-radius: 2px;
}
.swiper-pagination.swiper-pagination-custom {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

/* Создаем белый ползунок с помощью псевдоэлемента ::after */
.swiper-pagination.swiper-pagination-custom::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  /* Берем ширину из JavaScript, который мы настроили выше */
  width: var(--slider-progress, 25%); 
  background: #ffffff;
  border-radius: 2px;
  /* Плавное изменение ширины при смене слайда */
  transition: width 0.4s ease-in-out;
}
.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background: #fff!important;
    border-radius: 2px!important;
}
.swiper-pagination-progressbar{
    position: relative!important;
    width: 100px!important;
    background: #474852!important;
    border-radius: 2px!important;
}
.swiper-slide{
    background: url(/img/slider-bg1.jpg)left center;
    background-size: cover;
    padding:40px;
    box-sizing: border-box;
    border-radius: 12px;
    min-height: 450px;
}
.slide-image{
    display: flex;
    align-items: center;
    justify-content: center;
}
.slide-image img{
    max-height: 350px;
    border-radius: 12px;
}
.title-slide{
    font-size: 40px;
}
.title-small-slide{
    color: #D3D3D4;
    font-size: 24px;
    margin-top: 16px;
}
.content-slide{
    color: #BEBEBF;
    font-size: 18px;
    margin-top: 32px;
}
.title-slide{
    padding-top: 24px;
}
.swiper-pagination{
    margin: 24px auto 0 auto;
}
.server-middle-title{
    font-size: 24px;
    font-weight: 500;
    margin: 40px auto;
}
.bento-grid {
  display: grid;
  /* Создаем 3 равные колонки */
  grid-template-columns: repeat(3, 1fr); 
  /* Задаем фиксированную базовую высоту строки сетки */
  grid-auto-rows: 160px; 
  /* Отступы между блоками строго 12px, как вы настраивали ранее */
  gap: 12px; 
}

/* 2. Общие стили для всех карточек (с фоном из Figma) */
.grid-item {
  background-color: #1e2026; /* Тот самый темный фон Gray/1200 */
  border-radius: 16px;
  padding: 24px;
  color: #ffffff;
  box-sizing: border-box;
  
  /* Если захотите вставить фоновую картинку с 5% прозрачности (как на image_a4d22b.png): */
  background-image: linear-gradient(rgba(255,255,255,0.05), rgba(255,255,255,0.05)), url('your-bg.jpg');
  background-size: cover;
  background-position: center;
}

/* 3. Управление размерами отдельных блоков */

/* Блок, который должен быть высоким (занимает 2 строки в высоту) */
.grid-item.high-block {
  grid-row: span 2; 
}

/* Блок, который должен быть широким (занимает 2 колонки в ширину) */
.grid-item.wide-block {
  grid-column: span 2;
}

/* Оформление текста внутри карточек */
.cards{
    column-count:3;
    column-gap:24px;
}
.scene{
    perspective: 1000px;
    transition: transform 2s ease-in-out; /* <--- Время вращения (1 сек) */
  
    /* Убеждаемся, что блок изначально стоит ровно */
    transform: rotateY(0deg);
}
.card{
    break-inside:avoid;
    margin-bottom:24px;
    border-radius:20px;
    overflow:hidden;
    background: url(/img/big-card.png) center center;
    background-size: cover;
    position:relative;
    padding: 24px;
    box-sizing: border-box;
    cursor: pointer;
    transition: 0.4s;
}
.small{
    /*background: url(../img/small-card.png) center center;*/
    /*background-size: cover;*/
}
.card.small{
    height: 180px;
}
.card.medium{
    height: 260px;
}
.card.large{
    height: 400px;
}
.dop-title{
    font-size: 16px;
    font-weight: 600;
}
.card-title{
    font-size: 24px;
    color: #FFCB00;
    margin-top: 8px;
	opacity:0;
	transition: 0.1s;
}
.card-title-front{
    color: #FFCB00;
	opacity:1;
	width: 100%; 
    transform: scaleX(-1);
    position: absolute;
    top: 50%;
    margin-top: -15px;
    font-size: 30px;
    text-align: center;
	transition: 0.3s ease 0.2s;
}
.card-conten{
    font-size: 16px;
    margin-top: 16px;
    opacity: 0;
    transition: 0.3s;
}
.card::before {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.4); /* затемнение */
    z-index: 1;
    transition: 0.3s;
}
.content-card{
	transform: scaleX(-1);
}
.card:hover::before{
    background: rgba(0, 0, 0, 0);
}
.scene:hover .card-conten{
    opacity: 1;
	transition: 0.3s ease 0.2s;
}
.scene:hover .card-title{
	opacity:1;
	transition: 0.3s ease 0.2s;
}
.scene:hover .card-title-front{
	opacity:0;
	transition: 0s;
}
.scene:hover .card {
  transform: rotateY(180deg);
}
.doit{
    padding: 80px;
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    background: url(/img/doit.png) center center;
    background-size: cover;
    margin: 20px auto;
    border-radius: 12px;
}
.doit-title{
    font-size: 40px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 12px;
}
.doit-text{
    font-size: 24px;
    color: #D3D3D4;
}
.doit .gold-button{
    width: 234px;
    height: 64px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.gift-title{
    font-size: 40px;
    text-align: center;
}
.gifts{
    margin: 40px 0;
}
.col-gift img{
    height: 100px;
    margin-bottom:16px;
}
.flex-gift{
    display: flex;
    align-items: start;
    justify-content: space-between;
}
.col-gift{
    text-align: center;
    margin: 32px 0 24px 0;
}
.name-gift{
    margin-bottom: 24px;
    color: #D3D3D4;
}
.col-gift .gold-button {
    padding: 8px 24px;
}
.media-menu{
    display: none;
}
.media-enter{
    display: none;
}
.popup-menu, .popup-enter{
    position: fixed;
    width: 100%;
    height: 100vh;
    background: rgba(30,30,32,0.6);
    z-index:999;
    display: none;
}
.nav-menu{
    position: absolute;
    bottom:0;
    width: 100%;
    background: rgba(24, 24, 27, 1);
    border-radius: 12px 12px 0 0;
    padding: 24px;
    box-sizing: border-box;
}
.main-nav-menu{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.nav-line{
    background: rgba(238, 238, 238, 1);
    border-radius: 4px;
    height: 4px;
    width: 36px;
    position: absolute;
    top: 4px;
    left: calc(50% - 18px);
}
.media-nav-link{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 8px;
    font-size: 14px;
}
.media-nav-link:hover{
    color: #FFCB00;
}
.media-nav-link:focus{
    color: #FFCB00;
}
.grey-line-menu{
    background: rgba(57, 58, 64, 1);
    width: 100%;
    height: 1px;
}
.exit-link{
    justify-content: start;
}
.exit-link svg{
    margin-right: 16px;
}





.all-cards{
    column-count: 3;
    column-gap: 24px;
}
.all-cards .large{
    width: 435px;
    height: 300px;
}
.all-cards .small{
    height: 180px;
    width: 435px;
}
.all-cards .medium{
    height: 260px;
    width: 435px;
}
.flip-card {
    background-color: transparent;
    perspective: 1000px; 
    cursor: pointer;
    border-radius: 12px;
    margin-bottom: 24px;
}
/* --- Внутренний контейнер, который вращается --- */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  /* Важно: сохраняет 3D-расположение дочерних элементов */
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  border-radius: 12px;
  break-inside:avoid;
}

/* --- МАГИЯ: Вращение при наведении --- */
.flip-card:hover .flip-card-inner {
  /* Поворачиваем вокруг вертикальной оси (Y) на 180 градусов */
  transform: rotateY(180deg);
}

/* --- Общие стили для обеих сторон --- */
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  /* Скрывает оборотную сторону элемента, когда он повернут спиной */
  backface-visibility: hidden; 
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  padding: 24px;
  box-sizing: border-box;
}

/* --- Стили для Лицевой стороны --- */
.flip-card-front {
    background: url(/img/big-card.png) center center;
    background-size: cover;
}
.flip-card-front::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4); /* затемнение */
    z-index: 1;
    transition: 0.3s;
}
.flip-card-front h3 {
  margin: 0;
  font-size: 24px;
}

/* --- Стили для Оборотной стороны (со скрытым текстом) --- */
.flip-card-back {
  background: url(/img/big-card.png) center center;
  background-size: cover;
  transform: rotateY(180deg); 
}
.flip-card-back .card-conten{
    opacity: 1;
}
.flip-card-back h3 {
  margin-top: 0;
  color: #764ba2;
}
.flip-card-back p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
.small .flip-card-back {
  background: url(/img/small-card.png) center center;
  background-size: cover;
  transform: rotateY(180deg); 
}
.small .flip-card-front{
  background: url(/img/small-card.png) center center;
  background-size: cover;
}
.center{
    text-align: center;
}
.gold{
    color: #FFCB00;
}
.ver{
    text-transform: uppercase;
}

/* Контейнер таймера */
#countdown-widget {
    position: absolute;
    top: 84px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px;
    border-radius: 16px;
}

/* Один блок */
#countdown-widget .time-block {
    width: 82px;
    padding: 10px 8px;
    text-align: center;
    border-radius: 12px;
    border: 2px solid #2F3136;
    background: linear-gradient(180deg, rgba(47, 49, 54, 0.25) 0%, rgba(137, 142, 156, 0.075) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: 0 auto;
}

/* Цифры */
#countdown-widget .time-block span {
    display: block;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    color: #ffcb00;
}

/* Подписи */
#countdown-widget .time-block small {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
}
.timer-title {
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

/* Планшеты */
@media (max-width: 992px) {
    #countdown-widget .time-block {
        width: 75px;
    }

    #countdown-widget .time-block span {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    #countdown-widget {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        width: 400px;
        margin: 0 auto 20px auto;
    }
    .timer-title{
        margin-bottom: 0px;
    }
    #countdown-widget .time-block {
        width: 62px;
        padding: 8px 6px;
    }

    #countdown-widget .time-block span {
        font-size: 20px;
    }

    #countdown-widget .time-block small {
        font-size: 9px;
        letter-spacing: 0.5px;
    }
}
.lang-switcher {
  position: relative;
  display: flex;
  vertical-align: middle;
  justify-content: center;
  margin-top: 1px;
}

/* Кнопка */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 9px 12px;
  border-radius: 12px;
  background: transparent;          /* тёмный фон */
  border: none;    /* мягкая граница */
  color: #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.lang-btn:hover {
  background: transparent;
}

/* Флаг */
.lang-btn img {
  width: 18px;
  height: 14px;
  border-radius: 2px;
}

/* Меню */
.lang-menu {
    display: none;
    position: absolute;
    top: 120%;
    right: -50%;
    min-width: 161px;
    background: rgba(26, 26, 29, 1);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    z-index: 10000;
}

/* Пункты */
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  color: #d1d5db;
  text-decoration: none;
  transition: 0.2s ease;
  font-size: 14px;
}

.lang-menu a:hover {
  background: #474852;
  color: #ffffff;
}

/* Флаги в меню */
.lang-menu img {
  width: 18px;
  height: 14px;
  border-radius: 2px;
}

/* открыть */
.lang-switcher.open .lang-menu {
  display: block;
  animation: fadeIn 0.15s ease-out;
}

/* лёгкая анимация */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1024px) {
  .lang-btn {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 14px;
  }

  .lang-menu {
    min-width: 170px;
  }

  .lang-menu a {
    padding: 10px;
    font-size: 14px;
  }
}
@media (max-width: 768px) {
  .lang-btn {
    padding: 8px 10px;
    gap: 6px;
    font-size: 13px;
  }

  .lang-btn img {
    width: 16px;
    height: 12px;
  }

  .lang-menu {
    right: 0;
    left: auto;
    min-width: 160px;
    border-radius: 12px;
  }

  .lang-menu a {
    padding: 10px;
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .lang-switcher {
    position: static; /* чтобы не вылезал за экран */
  }

  .lang-menu {
    position: absolute;
    top: 60px;        /* под шапкой */
    right: 10px;
    left: 10px;
    border-radius: 14px;
  }

  .lang-btn {
    font-size: 12px;
    padding: 7px 9px;
  }

  .lang-menu a {
    font-size: 13px;
  }
}
.lang-btn svg{
    margin-right: 0!important;
    margin-top:-2px;
    stroke: currentColor;
    color: #fff;
    stroke-width: 1;
    transition: color 0.3s ease;
}
.lang-btn:hover svg{
    color: #FFCB00!important;
}
/*.tab-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 160px;
    pointer-events: none;
    z-index:2;
    background: linear-gradient(0deg, rgba(47, 49, 54, 0.0) 0%, rgb(94 85 64) 100%);
}*/
.tab-btn:focus-visible {
    outline: none!important;
    outline-offset: 0px;
}
.slide-image iframe{
    width: 500px;
    height: 260px;
}

