@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Kameron:wght@400..700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


a {
    text-decoration: none;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #12111C;
}

button {
    outline: none;
    border: none;
}

body {
    font-family: "Kameron", serif;
    font-family: 'Inter', sans-serif;
}

.page__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
}


.logo {
    color: #76C4DA;
    font-size: 25px;
    margin: 1px 0 0 0;
    font-weight: bold;
}

.profile__button {
    border-radius: 100%;
    width: 40px;
    height: 40px;

}

.profile__photo {
    width: 40px;
    height: 40px;
}

.container {
    width: 100%;
    max-width: 576px;
    margin: 0 auto;
    padding: 31px 15px;
}

.ads {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.ads__text {
    background-color: #2E313D;
    font-size: clamp(25px, 2vw, 8px);
    color: #fff;
    border-radius: 6px;
    padding: 14px 0;
    width: 100%;
    text-align: center;
    white-space: normal;
    /* разрешает перенос строк */
    word-wrap: break-word;
    /* перенос длинных слов */
    overflow-wrap: anywhere;
}

.ads__controls {

    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 15px;
}

.ads__scrolling {
    width: 8px;
    height: 8px;
    border-radius: 100%;
}


.case-section {
  width: 100%;
  padding: 0 15px; /* фиксированные отступы по краям */
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}

.section-title {
  font-size: 26px;
  color: #76c6e5;
  font-weight: 700;
  margin-bottom: 40px;
  margin-top: 40px;
  text-align: center; /* теперь строго по центру */
}

/* === Сетка кейсов === */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 120px); /* кейсы фиксированы */
  justify-content: space-between; /* тянем промежуток между ними */
  column-gap: 10px; /* отступ между кейсами */
  row-gap: 20px;
  box-sizing: border-box;
  width: 100%;
}

.case {
  width: 90px; /* фиксированная ширина */
  text-align: center;
  transition: transform 0.2s ease;
}

.case:hover {
  transform: scale(1.05);
}

.case__photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto; /* центрирует саму картинку */
}

.case__name {
  color: white;
  font-weight: 600;
  font-size: 14px;
  margin-top: 6px;
  text-align: center; /* центрирует текст */
}


.case__price {
  background-color: #2f3a2e;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex; /* чтобы ширина под контент */
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
  cursor: pointer;
}

.case {
  width: 120px;
  text-align: center; /* всё строго по центру */
  transition: transform 0.2s ease;
}





/* 🔹 Управляем видимостью рекламных блоков */
.ads__text {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  position: absolute;
  width: 100%;
}

.ads__text.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

/* 🔹 Активный кружок */
.ads__scrolling.active {
  background-color: #76C4DA !important;
}

/*Стайлы для кейса */

.case__photo__main {
    width: 250px;
    height: 250px;
    display: block;
    margin: 23px auto 0; /* <-- вот ключевой момент */
}

.case__tittle__name {
    font-size: 36px;
    color: #fff;
    margin-top: 12px;
    text-align: center;
}

.case__open {
    font-size: 24px;
    background-color: #2F3A2E;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    padding: 5px 34px;
    display: block;
    margin: 0 auto 0;
    margin-top: 31px;
}

.case__subtittle {
    font-size: 24px;
    text-align: center;
    color: #fff;
    margin-top: 44px;
}


.case__item[data-rarity="common"] { background: #3A3A3A; }
.case__item[data-rarity="rare"] { background: #0573CD; }
.case__item[data-rarity="epic"] { background: #790CB9; }
.case__item[data-rarity="legendary"] { background: #E4169F; }
.case__item[data-rarity="super-legendary"] { background: #EE0B2A; }
.case__item[data-rarity="gold"] { background: #FFD900; }

.case__items {
    display: grid;
    grid-template-columns: repeat(2, 110px); /* 2 предмета в строку */
    gap: 10px; /* отступ между ними */
    justify-content: center; /* центрируем всю сетку по экрану */
    margin-top: 31px;
    padding: 0 45px; /* отступы от краёв */
}

.case__item {
    width: 110px;
    height: 110px;
    border-radius: 5px;
    color: #fff;
    font-size: 20px;
    display: flex;
    flex-direction: column;      /* выстраиваем элементы сверху вниз */
    justify-content: center;     /* по вертикали */
    align-items: center;         /* по горизонтали */
    text-align: center;
}

.case__item__photo {
    width: 80px;
    height: 80px;
}




@media (min-width: 470px) {
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 120px); /* кейсы фиксированы */
  justify-content: space-between; /* тянем промежуток между ними */
  column-gap: 10px; /* отступ между кейсами */
  row-gap: 20px;
  box-sizing: border-box;
  width: 100%;

  
}
.case-section {
  width: 100%;
  padding: 0px 15px; /* фиксированные отступы по краям */
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}

.section-title {
  font-size: 26px;
  color: #76c6e5;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 40px;
  text-align: center; /* теперь строго по центру */
}

.case {
  width: 120px; /* фиксированная ширина */
  text-align: center;
  transition: transform 0.2s ease;
}

.case:hover {
  transform: scale(1.05);
}

.case__photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto; /* центрирует саму картинку */
}

.case__name {
  color: white;
  font-weight: 600;
  font-size: 14px;
  margin-top: 6px;
  text-align: center; /* центрирует текст */
}


.case__price {
  background-color: #2f3a2e;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex; /* чтобы ширина под контент */
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
  cursor: pointer;
}


}

@media (min-width: 576px) {


.case-section {
  width: 100%;
  padding: 0px 0px; /* фиксированные отступы по краям */
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}

.section-title {
  font-size: 28px;
  color: #76c6e5;
  font-weight: 700;
  margin-top: 50px;
  margin-bottom: 50px;
  text-align: center; /* теперь строго по центру */
}


    .logo {
        font-size: 35px;
    }

    .profile__button {
        height: 50px;
        width: 50px;
    }

    .profile__photo {
        height: 50px;
        width: 50px;
    }

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 160px); /* кейсы фиксированы */
  justify-content: space-between; /* тянем промежуток между ними */
  column-gap: 18px; /* отступ между кейсами */
  row-gap: 60px;
  box-sizing: border-box;
  width: 100%;

  
}

.case {
    width: 160px;
    text-align: center; /* всё строго по центру */
    transition: transform 0.2s ease;
}


.case__photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto; /* центрирует саму картинку */
}

    .container {
        width: 100%;
        max-width: 768px;
        margin: 0 auto;
        padding: 45px 30px;


    }

    .ads__controls {

        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 15px;
    }

    .ads__scrolling {
        width: 10px;
        height: 10px;
        border-radius: 100%;
    }

    .case__name {
    color: white;
    font-weight: 600;
    font-size: 18px;
    margin-top: 6px;
    text-align: center; /* центрирует текст */
    }

    
.case__price {
  background-color: #2f3a2e;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 16px;
  font-weight: 500;
  display: inline-flex; /* чтобы ширина под контент */
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
  cursor: pointer;
}

.case__photo__main {
    width: 500px;
    height: 500px;
    display: block;
    margin: 36px auto 0; /* <-- вот ключевой момент */
}

.case__tittle__name {
    font-size: 52px;
    color: #fff;
    margin-top: 12px;
    text-align: center;
}

.case__open {
    font-size: 34px;
    background-color: #2F3A2E;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    padding: 5px 34px;
    display: block;
    margin: 0 auto 0;
    margin-top: 31px;
}

.case__subtittle {
    font-size: 34px;
    text-align: center;
    color: #fff;
    margin-top: 120px;
}



.case__items {
    display: grid;
    grid-template-columns: repeat(3, 130px); /* 2 предмета в строку */
    gap: 10px; /* отступ между ними */
    justify-content: center; /* центрируем всю сетку по экрану */
    margin-top: 31px;
    padding: 0 45px; /* отступы от краёв */
}

.case__item {
    width: 130px;
    height: 130px;
    border-radius: 5px;
    color: #fff;
    font-size: 20px;
    display: flex;
    flex-direction: column;      /* выстраиваем элементы сверху вниз */
    justify-content: center;     /* по вертикали */
    align-items: center;         /* по горизонтали */
    text-align: center;
}

.case__item__photo {
    width: 100px;
    height: 100px;
}


}


@media (min-width: 768px) {
    .ads__text {
        margin-top: 60px;
    }

    .logo {
        font-size: 45px;
    }

    .case__name {
        font-size: 28px;
    }

    .case__price {
        font-size: 26px;
    }

    .profile__button {
        height: 50px;
        width: 50px;
    }

    .profile__photo {
        height: 50px;
        width: 50px;
    }



    .section-title {
  font-size: 36px;
  color: #76c6e5;
  font-weight: 700;
  margin-top: 50px;
  margin-bottom: 50px;
  text-align: center; /* теперь строго по центру */
}


.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 210px); /* кейсы фиксированы */
  justify-content: space-between; /* тянем промежуток между ними */
  column-gap: 50px; /* отступ между кейсами */
  row-gap: 80px;
  box-sizing: border-box;
  width: 100%;

  
}

    .case {
        color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 210px;
    }


    .case__photo {
        display: block;
        width: 210px;
        height: 210px;
        object-fit: cover;
    }

    .container {
        width: 100%;
        max-width: 992px;
        margin: 0 auto;
        padding: 31px 15px;


    }

    .case__name {
        margin-top: 15px;
    }

    .case__price {
        margin-top: 15px;
    }

    .ads__controls {

        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 15px;
    }

    .ads__scrolling {
        width: 10px;
        height: 10px;
        border-radius: 100%;
    }


    .case__photo__main {
    width: 600px;
    height: 600px;
    display: block;
    margin: 34px auto 0; /* <-- вот ключевой момент */
}

.case__tittle__name {
    font-size: 62px;
    color: #fff;
    margin-top: 12px;
    text-align: center;
}

.case__open {
    font-size: 44px;
    background-color: #2F3A2E;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    padding: 5px 34px;
    display: block;
    margin: 0 auto 0;
    margin-top: 31px;
}

.case__subtittle {
    font-size: 44px;
    text-align: center;
    color: #fff;
    margin-top: 120px;
}



.case__items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;    /* центрируем по горизонтали */
    gap: 10px;                  /* отступ между элементами */
    max-width: calc(4 * 150px + 6 * 10px); /* 7 в ряд с учётом gap */
    margin: 0 auto;             /* центрируем всю сетку */
    margin-top: 31px;
}


.case__item {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    color: #fff;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.case__item__photo {
    width: 120px;
    height: 120px;
}


}





@media (min-width: 992px) {
    .logo {
        font-size: 40px;
    }

    .case__name {
        font-size: 32px;
    }

    .case__price {
        font-size: 30px;
    }

    .profile__button {
        height: 50px;
        width: 50px;
    }

    .profile__photo {
        height: 50px;
        width: 50px;
    }

.case__items {
    display: grid;
    grid-template-columns: repeat(auto-fill, 150px);
    gap: 10px;
    justify-content: center;
    justify-item: center;
    margin: 0 auto;
    margin-top: 20px;
}


    .section-title {
  font-size: 40px;
  color: #76c6e5;
  font-weight: 700;
  margin-top: 70px;
  margin-bottom: 70px;
  text-align: center; /* теперь строго по центру */
}

    .case {
        color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 200px;
    }


    .case__photo {
        display: block;
        width: 200px;
        height: 200px;
        object-fit: cover;
    }

    .container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 31px 50px;


    }

    .ads__controls {

        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
    }

    .ads__scrolling {
        width: 14px;
        height: 14px;
        border-radius: 100%;
    }
 .case__photo__main {
    width: 600px;
    height: 600px;
    display: block;
    margin: 34px auto 0; /* <-- вот ключевой момент */
}

.case__tittle__name {
    font-size: 62px;
    color: #fff;
    margin-top: 12px;
    text-align: center;
}

.case__open {
    font-size: 44px;
    background-color: #2F3A2E;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    padding: 5px 34px;
    display: block;
    margin: 0 auto 0;
    margin-top: 31px;
}

.case__subtittle {
    font-size: 44px;
    text-align: center;
    color: #fff;
    margin-top: 120px;
}



.case__items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;    /* центрируем по горизонтали */
    gap: 10px;                  /* отступ между элементами */
    max-width: calc(5 * 150px + 6 * 10px); /* 7 в ряд с учётом gap */
    margin: 0 auto;             /* центрируем всю сетку */
    margin-top: 31px;
}


.case__item {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    color: #fff;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.case__item__photo {
    width: 120px;
    height: 120px;
}


}

@media (min-width: 1200px) {
    .logo {
        font-size: 50px;
    }

    .case__name {
        font-size: 32px;
    }

    .case__price {
        font-size: 30px;
        margin-top: 15px;
    }

    .profile__button {
        height: 60px;
        width: 60px;
    }

    .profile__photo {
        height: 60px;
        width: 60px;
    }

    .section-title {
  font-size: 42px;
  color: #76c6e5;
  font-weight: 700;
  margin-top: 70px;
  margin-bottom: 70px;
  text-align: center; /* теперь строго по центру */
}


.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 220px); /* кейсы фиксированы */
  justify-content: space-between; /* тянем промежуток между ними */
  column-gap: 44px; /* отступ между кейсами */
  row-gap: 110px;
  box-sizing: border-box;
  width: 100%;

  
}

    .case {
        color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 220px;
    }

    .case__name {
        margin-top: 15px;
    }


    .case__photo {
        display: block;
        width: 220px;
        height: 220px;
        object-fit: cover;
    }

    .container {
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
        padding: 31px 50px;


    }

    .ads__controls {

        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
    }

    .ads__scrolling {
        width: 14px;
        height: 14px;
        border-radius: 100%;
    }



.case__tittle__name {
    font-size: 62px;
    color: #fff;
    margin-top: 12px;
    text-align: center;
}

.case__open {
    font-size: 44px;
    background-color: #2F3A2E;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    padding: 5px 34px;
    display: block;
    margin: 0 auto 0;
    margin-top: 31px;
}

.case__subtittle {
    font-size: 44px;
    text-align: center;
    color: #fff;
    margin-top: 120px;
}



.case__items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;    /* центрируем по горизонтали */
    gap: 10px;                  /* отступ между элементами */
    max-width: calc(6 * 150px + 6 * 10px); /* 7 в ряд с учётом gap */
    margin: 0 auto;             /* центрируем всю сетку */
    margin-top: 31px;
}


.case__item {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    color: #fff;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.case__item__photo {
    width: 120px;
    height: 120px;
}

}

@media (min-width: 1400px) {
    .logo {
        font-size: 50px;
    }

    .case__name {
        font-size: 32px;
    }

    .case__price {
        font-size: 30px;
        margin-top: 15px;
    }

    .profile__button {
        height: 60px;
        width: 60px;
    }

    .profile__photo {
        height: 60px;
        width: 60px;
    }

    .section-title {
  font-size: 44px;
  color: #76c6e5;
  font-weight: 700;
  margin-top: 100px;
  margin-bottom: 100px;
  text-align: center; /* теперь строго по центру */
}


.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 250px); /* кейсы фиксированы */
  justify-content: space-between; /* тянем промежуток между ними */
  column-gap: 44px; /* отступ между кейсами */
  row-gap: 100px;
  box-sizing: border-box;
  width: 100%;

  
}

    .case {
        color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 250px;
    }

    .case__name {
        margin-top: 15px;
    }


    .case__photo {
        display: block;
        width: 250px;
        height: 250px;
        object-fit: cover;
    }

    .container {
        width: 100%;
        max-width: 1920px;
        margin: 0 auto;
        padding: 31px 50px;


    }

    .ads__controls {

        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
    }

    .ads__scrolling {
        width: 14px;
        height: 14px;
        border-radius: 100%;
    }


.case__photo__main {
    width: 600px;
    height: 600px;
    display: block;
    margin: 34px auto 0;
}

.case__tittle__name {
    font-size: 62px;
    color: #fff;
    margin-top: 12px;
    text-align: center;
}

.case__open {
    font-size: 44px;
    background-color: #2F3A2E;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    padding: 5px 34px;
    display: block;
    margin: 31px auto 0;
}

.case__subtittle {
    font-size: 44px;
    text-align: center;
    color: #fff;
    margin-top: 120px;
}

/* === Центрированный GRID с отступом 10px === */
.case__items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;    /* центрируем по горизонтали */
    gap: 10px;                  /* отступ между элементами */
    max-width: calc(7 * 150px + 6 * 10px); /* 7 в ряд с учётом gap */
    margin: 0 auto;             /* центрируем всю сетку */
    margin-top: 31px;
}


.case__item {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    color: #fff;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.case__item__photo {
    width: 120px;
    height: 120px;
    margin-bottom: 5px;
}





}

}
