* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
}

/* Общие стили для заблокированных игр */
.game.locked {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.thumb {
  position: relative;
  display: inline-block;
}

.game.locked img {
  opacity: 0.7; /* слегка затемнённое изображение */
  transition: opacity 0.3s ease;
}

.locked .thumb::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  background: url("img/zamok.svg") no-repeat center/contain;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.locked:hover .thumb::before {
  opacity: 1; /* показываем замок */
}

.locked:hover .thumb img {
  opacity: 0.5; /* затемнение */
}



header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    position: fixed;
    z-index: 900;
    width: 100%;
}

#glavnTYK a{
    color: #FFF145;
}

.filterByCategory.active-category p {
  color: #b3f4ff !important;
  transition: color 0.3s;
}

#perKabBut {
    z-index: 100;
    margin-top: -1rem;
    display: block;
    position: absolute;
    width: 16rem;
    margin-left: -17rem;
    margin-top: -1.5rem;
    padding: 0.8rem 0.1rem;
    text-align: center;
}

.logo img {
    height: 60px;
    margin-left: 20px;
    margin-bottom: -15px;
}
header nav {
    display: flex;
    width: 60vw;
    justify-content: flex-end;
    margin-right: 3rem;
}
header nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 60px;
}
header nav li{
    box-sizing: border-box;
}
header nav a {
    text-decoration: none;
    /* text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.2); */
    color: #474747;
    font-weight: 900;
    display: flex;
    padding: 1rem;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    gap: 0.6rem;
    font-size: 1.2rem;
}
header nav li:hover a {
    text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.15);
}
header nav li > a.menugames:after{
    content: " ";  
    background: url(img/oui_arrow-up_black.png) no-repeat center center;
    width: 1rem;
    height: 1rem;
    display: block;
    
}

header nav li:hover{
    /*border: 5px;
    border-color: #53B5C5;
    background-color: #E5F4F7;
    border-radius: 5px;*/
}

header nav img {
    margin-left: 10px;
}

.register-btn {
    background-color: #FFF145;
    border: none;
    color: #474747;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    padding: 13px 60px;
    border-radius: 50px;
    cursor: pointer;
    margin-right: 20px;
    font-size: 1.15rem;
    text-decoration: none;
}

.register-btn:hover {
    background-color: #FFDA18;
}

.dropdown {
    float: left;
    overflow: hidden;
  }

.dropdown .dropbtn {
    font-family: 'Nunito', sans-serif;
    text-decoration: none;
    /* text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.2); */
    color: #474747;
    font-size: 1.2rem;
    font-weight: 900;
    display: flex;
    padding: 1rem;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    gap: 1px;
    border: none;
    /* font-size: 1rem; */
    background-color: #fff;
}
  
  
.dropdown:hover .dropbtn {
    /* border: 2px solid #53B5C5; */
    display: flex;
    /* border-radius: 0.5rem; */
    /* background: #E5F4F7; */
    box-sizing: border-box;
    /* padding: calc(1rem - 4px); */
    gap: 1px;
    font-size: 1.2rem;
}

#dropdown-content-ssulkaup {
    background-color: #fff;
    color: #373737;
    border: none;
    border-radius: 5rem;
    font-weight: 800;
    font-size: 1.2rem;
    text-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
}
#dropdown-content-ssulkadown{
    background-color: #fff;
    color: #373737;
    border: none;
    border-radius: 5rem;
    font-weight: 800;
    font-size: 1.2rem;
    text-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
}

#dropdown-content-ssulkaup:hover{
    display: block;
    background-color: #E5F4F6;
    border-radius: 0.5rem 0.5rem 0rem 0rem;
    font-size: 1.2rem;
    text-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
}
#dropdown-content-ssulkadown:hover{
    display: block;
    background-color: #E5F4F6;
    border-radius: 0rem 0rem 0.5rem 0.5rem;
    font-size: 1.2rem;
    text-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
}
#dropdown-content-ssulkabet{
    background-color: #fff;
    color: #373737;
    border: none;
    border-radius: 5rem;
    font-weight: 800;
    font-size: 1.2rem;
    text-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
}
#dropdown-content-ssulkabet:hover{
    display: block;
    background-color: #E5F4F6;
    border-radius: 0rem 0rem 0rem 0rem;
    font-size: 1.2rem;
    text-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    /* border: 2px solid #53B5C5; */
    border-radius: 0.5rem;
    font-size: 1.2rem;
}
  
  .dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-shadow: none;
    text-align: left;
    font-size: 1.2rem;
    text-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
  }
  
  .dropdown-content a:hover {
    background-color: #E5F4F6;
    font-size: 1.2rem;
    text-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
  }
  
  .dropdown:hover .dropdown-content {
    display: block;
  }

/* Стили для кнопки-гамбургера */
.hamburger {
    display: none; /* по умолчанию скрыта */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: 20px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #474747;
    margin: 4px 0;
}



@media (max-width: 1350px) {
  /* Стили для гамбургера остаются, добавляем позиционирование и z-index */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-right: 10px;
    margin-top: 30px;
    position: relative; /* или fixed, если нужно */
    z-index: 1100;      /* значение выше, чем у меню */
  }
  .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #474747;
    margin: 3px 0;
  }
  
  /* Меню задаем фиксированное позиционирование с меньшим z-index */
  header > nav {
    order: 2;
    display: none;  /* по умолчанию скрыто */
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;       /* ширина бокового меню */
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    padding-top: 70px;  /* отступ сверху, чтобы не перекрывать header */
    z-index: 1000;      /* ниже, чем у гамбургера */
  }
  
  /* Остальные стили остаются */
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }
  header > .hamburger { order: 0; }
  header > .logo { order: 1; }
  header > form { order: 3; }
  
  .logo img {
    height: 60px;
    margin-left: 90px;
    margin-bottom: 8px;
    margin-top: -45px;
    z-index: 1100;
  }
  
  .dropdown:hover .dropdown-content {
        display: block;
        width: 100%;
        margin-left: -31px;
    }

    .dropdown-content a {
        float: none;
        color: black;
        padding: 12px 10px 12px 46px;
        text-decoration: none;
        display: block;
        text-shadow: none;
        text-align: left;
        font-size: 1.2rem;
        text-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
    }
}

.hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 30px 0px 0px 50px;
    background-color: #53B5C5;
    color: #fff;
}

.hero-text {
    max-width: 90%;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 880;
    text-align: left;
    margin-top: -150px;
}

.access-btn-hero {
    font-family: 'Nunito', sans-serif;
    background-color: #FFF145;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.3rem;
    margin-top: 40px;
}

.access-btn-hero:hover{
    background-color: #FFDA18;
}

.hero-image img {
    margin-top: -35px;
    margin-right: 0px;
}


main {
    padding: 20px;
    margin-bottom: 1300px;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    margin-left: 30px;
    margin-top: 7rem;
}

body::-webkit-scrollbar {
    width: 15px; /* Ширина всего элемента навигации */
}
  
body::-webkit-scrollbar-track {
    background: #fff; /* Цвет дорожки */
}
  
body::-webkit-scrollbar-thumb {
    background-color: #53B5C5; /* Цвет бегунка */
    border-radius: 20px; /* Округление бегунка */
    border: 0.1px solid #4fadbc; /* Оформление границ бегунка */
}

.cards_slide {
    display: flex;
    background-color: #53B5C5;
    width: 17rem;
    height: 6rem;
    border-radius: 1rem;
    padding: 0.5rem;
}

.slide img {
    /* max-width: 100%; */
    /* border-radius: 8px; */
    /* width: 7rem; */
    height: 4rem;
    margin-top: 0.5rem;
}

.game-h h2 {
    display: block;
    margin-left: 30px;
    font-size: 18px;
    font-weight: 800;
    margin-top: 70px;
    margin-bottom: 20px;
    color: #474747;
}

.breadcrumb a {
    color: #8B96A5;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 400;
    font-size: 1rem;
}

.breadcrumb a:hover {
    color: #8B96A5;
}

.slider {
    margin-bottom: 20px;
}


  
.slider::-webkit-scrollbar-track {
    background: #fff; /* Цвет дорожки */
}
  
.slider::-webkit-scrollbar-thumb {
    background-color: #53B5C5; /* Цвет бегунка */
    border-radius: 20px; /* Округление бегунка */
    border: 0.1px solid #4fadbc; /* Оформление границ бегунка */
}

.slider-track {
    display: flex;
    gap: 10px;
}

.category {
    flex: 0 0 auto;
    scroll-snap-align: start;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    background-color: #fff;
    transition: box-shadow 0.3s;
    width: 200px;
    height: 140px;
    margin-bottom: 12px;
}

.category img {
    width: 100%;
    height: auto;
}

.category p {
    padding: 10px;
    background-color: #f8f8f8;
}

.category:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.filter-section {
    margin-bottom: 20px;
    width: 30%;
}

.filters {
    display: flex;
    justify-content: space-between;
}

.acor-container {
    margin: 0px 0px 20px 30px;
    width: 360px;
}
.acor-container .acor-body {
    font-family: 'Nunito', sans-serif;
    width: calc(100% - 40px);
    margin: 0 auto;
    height: 0;
    color: rgba(0, 0, 0, 0);
    line-height: 18px;
    padding: 0 30px;
    box-sizing: border-box;
    transition: color 0.5s, padding 0.5s;
    overflow: hidden;
    font-family: Verdana, sans-serif; 
    font-size: 16px;
}
.acor-container .acor-body p {
    margin: 0 0 0 0;
}
.acor-container label {
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    background-color: #53B5C5;
    display: block;
    padding: 15px 20px;
    width: 100%;
    color: #ffffff;
    font-weight: 300;
    box-sizing: border-box;
    z-index: 100;
    font-size: 18px;
    margin: 0 0 5px;
    transition: color .35s;
    font-weight: 800;
    border-radius: 6px;
}



.acor-body p:hover{
    background-color: #b6dbe2;
}

.acor-body p {
    padding: 15px 15px 15px 15px;
}

.acor-container label:hover {
    font-family: 'Nunito', sans-serif;
    color: #FFF;
    font-weight: 800;
}
.acor-container input{
    display: none;
}
.acor-container label:before {
    content: '\276F';
    float: right;
}
.acor-container input:checked + label {
    font-family: 'Nunito', sans-serif;
    background-color: #53B5C5;
    color: #FFF;
}
.acor-container input:checked + label:before {
    transition: transform .35s;
    transform: rotate(90deg);
}
.acor-container input:checked + label + .acor-body {
    height: auto;
    margin-top: -5px;
    color: #474747;
    font-family: 'Nunito', sans-serif;
    padding: 20px 5px 20px;
    background-color: #fff;
    width: 360px;
    font-size: 17px;
    font-weight: 800;
}

/* Общий контейнер для фильтров */
.filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

/* Сами элементы фильтра (диагнозы, возраст) */
.filter-option {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    /* padding: 15px 16px; */
    /* background-color: #E0F5F9; */
    color: #333;
    border-radius: 5px;
    /* border: 2px solid #53B5C5; */
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}



/* Активное состояние при выборе */
.filter-option.active {
    background-color: #b6dbe2;
    color: #000;
    border-color: #e3f7fb;
    font-weight: bold;
}

.slider-container {
    display: block;
    position: relative;
    overflow: hidden;
    margin: 0px 30px;
    height: 12rem;
}

.slider {
    display: flex;
    gap: 10px; /* Расстояние между слайдами */
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 0 0 calc(20% - 10px); /* Размер слайда */
    box-sizing: border-box;
    padding: 10px;
    text-align: center;
}

.slide a {
    text-decoration: none;
}

.cards_slide p {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.5rem;
    text-align: left;
    margin-top: 1rem;
    margin-left: 0.5rem;
}

.cards_slide p:hover {
    color: #b3f4ff;
}



/* Адаптивность */
@media (max-width: 1200px) {
    .slide {
        flex: 0 0 calc(33.33% - 10px); /* Три слайда */
    }
}

@media (max-width: 768px) {
    .slide {
        flex: 0 0 calc(50% - 10px); /* Два слайда */
    }
}

@media (max-width: 480px) {
    .slide {
        flex: 0 0 calc(100% - 10px); /* Один слайд */
    }
}

#bigkard {
    margin-top: 1.7rem;
    margin-left: 0.3rem;
}



.prev {
    margin: 0 10px;
    cursor: pointer;
    background-color: #fff;
    border: solid 2px #53B5C5;
    border-radius: 5rem;
    color: #53B5C5;
    padding: 0.55rem 1.05rem;
    font-size: 1.2rem;
}

#bigkardBig{
    margin-top: 0.3rem;
}

#bigkardNo {
    margin-left: 0.1rem;
    margin-top: 1.6rem;
}

#bigkardYes{
    margin-left: 1rem;
    margin-top: 1.6rem;
}

.next {
    margin: 0 10px;
    cursor: pointer;
    background-color: #fff;
    border: solid 2px #53B5C5;
    border-radius: 5rem;
    color: #53B5C5;
    padding: 0.55rem 1.05rem;
    font-size: 1.2rem;
    margin-left: 0.5rem;
}

.prev:hover {
    background-color: #53B5C5;
    border: solid 2px #53B5C5;
    border-radius: 5rem;
    color: #fff;
}

.next:hover {
   background-color: #53B5C5;
    border: solid 2px #53B5C5;
    border-radius: 5rem;
    color: #fff;
}


.games-grid {
    display: grid;
    width: 80%;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    height: 4rem;
}

.game-block {
    display: flex;
    margin-left: 30px;
}

.game {
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    background-color: #E9F6F8;
    transition: box-shadow 0.3s;
    height: 21rem;
    position: relative;
    padding-bottom: 3rem;
}

.game img {
    width: 100%;
    height: auto;
}

.game p {
    padding: 10px;
    /* background-color: #f8f8f8; */
    margin-bottom: 2rem;
    font-weight: 700;
    color: #2c6068;
}

.game:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: #53B5C5;
    color: #fff;
    padding: 1rem 1rem 2rem 1rem;
    font-weight: 600;
    text-align: center;
    margin-top: -10px;
    /* margin-bottom: 2rem; */
}

.play-button {
    padding: 0.7rem 3.9rem;
    font-size: 1.2rem;
    border-radius: 1.5rem;
    text-decoration: none;
    background-color: #53B5C5;
    color: #fff;
    font-weight: 800;
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.play-button:hover {
    background-color: #4aa0ad;
}

.cloud-footer-content{
    background-color: #fff;
}

.cloud-footer-content img {
    width: 100%;
    margin-top: 3500px;
}

.footer-logo img {
    display: block;
    text-align: left;
    margin-left: 60px;
    margin-top: 35px;
}

footer nav ul {
    padding: 20px;
    display: flex;
    justify-content: right;
    gap: 2rem;
    list-style: none;
    margin-right: 60px;
    margin-top: -70px;
}

footer nav a {
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    font-size: 1.3rem;
}

.video-logo {
    display: block;
    background-color: #53B5C5;
    color: #fff;
    width: 25%;
    font-size: 2rem;
    font-weight: 900;
    padding: 0.5rem 2.3rem;
    border-radius: 1rem 1rem 0rem 0rem;
}

footer nav li:hover a{
    text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.15);
    color: #fff580;
}

footer nav li > a.menugames:after{
    content: " ";  
    background: url(img/oui_arrow-up_black.png) no-repeat center center;
    width: 1rem;
    height: 1rem;
    display: block;
    
}

footer p {
    margin-top: 3rem;
    color: #fff;
    text-align: center;
}

.arrow-footer img {
    display: flex;
    margin-left: 4.5rem;
    margin-top: -16px;
    margin-bottom: 30px;
}

@media (max-width: 1580px) {

    .cloud-footer-content img {
        width: 100%;
        margin-top: 6500px;
    }

}

@media (max-width: 1330px) {
.filter-section {
    margin-bottom: 20px;
    width: 40%;
}


}

@media (max-width: 1300px) {
   .menu-toggle {
        display: inline-block; /* Показать бутерброд-меню */
        position: absolute;
        top: 10px;
        left: 10px;
    }

    nav {
        display: none;
    }
    
    #navfoot{
        display: block;
    }

}

@media (max-width: 1030px) {
.acor-container {
    margin: 0px 0px 20px 30px;
    width: 330px;
}
.acor-container input:checked + label + .acor-body {
    height: auto;
    margin-top: -5px;
    color: #474747;
    font-family: 'Nunito', sans-serif;
    padding: 20px 5px 20px;
    background-color: #fff;
    width: 330px;
    font-size: 17px;
    font-weight: 800;
}
} 

@media (max-width: 1120px) {

    .cloud-footer-content img {
        width: 100%;
        margin-top: 10900px;
    }

}

@media (max-width: 950px) {
    .filter-section {
        margin-bottom: 20px;
        width: 60%;
    }
} 

@media (max-width: 925px) {
    footer nav a {
        color: #ffffff;
        font-weight: 800;
        text-decoration: none;
        font-size: 1.1rem;
    }
} 

@media (max-width: 850px) {

    .cloud-footer-content img {
        width: 100%;
        margin-top: 26900px;
    }
    .game{
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    background-color: #E9F6F8;
    transition: box-shadow 0.3s;
    height: 24rem;
    position: relative;
    padding-bottom: 3rem;
}

}

@media (max-width: 835px) {
    
    footer nav ul {
        padding: 20px;
        display: flex;
        justify-content: right;
        align-items: end;
        flex-direction: column;
        gap: 1rem;
        list-style: none;
        /* margin-right: 60px; */
        margin-top: -70px;
    }

    footer nav a {
        color: #ffffff;
        font-weight: 800;
        text-decoration: none;
        font-size: 1.3rem;
    }
    
} 


@media (max-width: 670px) {
.acor-container {
        margin: 0px 0px 20px 30px;
        width: 260px;
    }
        .acor-container input:checked + label + .acor-body {
        height: auto;
        margin-top: -5px;
        color: #474747;
        font-family: 'Nunito', sans-serif;
        padding: 20px 5px 20px;
        background-color: #fff;
        width: 260px;
        font-size: 17px;
        font-weight: 800;
    }
}

@media (max-width: 610px) {
    .register-btn {
        background-color: #FFF145;
        border: none;
        color: #474747;
        font-family: 'Nunito', sans-serif;
        font-weight: 900;
        padding: 13px 20px;
        border-radius: 50px;
        cursor: pointer;
        margin-right: 20px;
        font-size: 1.15rem;
    }
}



@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .filters {
        flex-direction: column;
    }

    .filter {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .filter:last-child {
        margin-bottom: 0;
    }
}


@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .filters {
        flex-direction: column;
    }

    .filter {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .filter:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 580px) {
        .acor-container {
        margin: 0px 0px 20px 30px;
        width: 210px;
    }
    .acor-container input:checked + label + .acor-body {
        height: auto;
        margin-top: -5px;
        color: #474747;
        font-family: 'Nunito', sans-serif;
        padding: 20px 5px 20px;
        background-color: #fff;
        width: 210px;
        font-size: 17px;
        font-weight: 800;
    }
}

@media (max-width: 515px) {
        .acor-container {
        margin: 0px 0px 20px 30px;
        width: 195px;
    }
    .acor-container input:checked + label + .acor-body {
        height: auto;
        margin-top: -5px;
        color: #474747;
        font-family: 'Nunito', sans-serif;
        padding: 20px 5px 20px;
        background-color: #fff;
        width: 195px;
        font-size: 17px;
        font-weight: 800;
    }
}