:root {
  --font-family: "Inter", sans-serif;
  --second-family: "Gagalin", sans-serif;
}

/* Сбросы */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
     overflow-x: hidden;
}
/* Gagalin */
@font-face {
  font-family: 'Gagalin';
  src: url('../fonts/Gagalin-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Inter — все веса в одном семействе */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


a {
    text-decoration: none !important;
}
li{
    list-style: none;
}
button{
    display: block;
    outline: none;
    border: none;
}
body{
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    width: 100%;
    height: 100vh;
}
body.active{
    overflow: hidden !important;
}
.container {
    max-width: 1790px;
    width: 100%;
    margin: 0 auto;
    padding: 0px 20px;
}


/* header */
.header {
    padding: 20px;
}
.menu{
    border-radius: 15px;
    max-width: 1770px;
    width: 100%;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    background: #000;
    padding: 0 85px;
}
.menu__items {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.menu__link{
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    display: block;
    position: relative;
}
.menu__link::after{
    content: '';
    display: block;
    position: absolute;
    width: 0%;
    height: 3px;
    background-color: #fff;
    bottom: -5px;
    transition: all 0.5s;
}
.menu__link:hover::after {
    width: 100%;
    transition: all 0.5s;
}

/* horror */
.offer{
    margin-top: 50vh;
}
.offer__text{
    display: flex;
    align-items: center;
}
.offer__title{
    font-family: var(--second-family);
    font-weight: 400;
    font-size: clamp(48px, 7vw, 150px);
    color: #fff;
    margin: 0;
    animation: glitch 1s infinite;
    text-transform: uppercase;
}
.offer__subtitle{
    display: flex;
    flex-direction: column;
    margin-top: 25px;
    margin-left: 20px;
}
.offer__adv{
    font-family: var(--second-family);
    font-weight: 400;
    font-size: clamp(24px, 3.2vw, 50px);
    color: #fff;
    text-transform: uppercase;
    font-weight:400;
}
.offer__short{
    font-size: clamp(12px, 2.4vw, 18px);
    font-weight: bold;
    width: 100%;
    max-width: 460px;
}
.offer__buttons{
    margin-top: 42px;
    display: flex;
    justify-content: space-between;
}
.offer__btn{
    border-radius: 15px;
    max-width: 868px;
    height: 69px;
    width: 48%;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 20px;
    color: #fff;
    overflow: hidden;
}
.offer__img-btn{
    width: 40px;
    height: 40px;
}
.offer__btn_steam{
    background: url('../img//buttons-fon/steam.png');
    background-repeat: no-repeat;
    background-size: inherit;
    background-color: #3F8C1B;
    transition: all 0.5s;
}
.offer__span-steam{
    margin-left: 14px;
}
.offer__btn_steam:hover {
    padding: 0 1.5%;
    background-color: #4CAF1F;
    box-shadow: 0 8px 20px rgba(63, 140, 27, 0.6);
    transition: all 0.5s;
}
.offer__btn_kit{
    background: url('../img/buttons-fon/kit.png');
    background-repeat: no-repeat;
    background-size: inherit;
    background-color: #4727FA;
    transition: all 0.5s;
}
.offer__btn_kit:hover {
    padding: 0 1.5%;
    box-shadow: 0 8px 20px rgba(87, 63, 255, 0.6);
    transition: all 0.5s;
}
.burger-menu {
  width: 40px;
  height: 40px;
  position: fixed;
  cursor: pointer;
  display: none;
  z-index: 12;
  top: 30px;
  right: 30px;
}

.burger-menu span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}
.burger-menu span:nth-child(1) { top: 0; }
.burger-menu span:nth-child(2) { top: 9px; }
.burger-menu span:nth-child(3) { top: 18px; }

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.burger-menu.active span:nth-child(2) {
  opacity: 0;
}
.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}
.overlay{
    display: none;
    position: absolute;
    top:0px;
    left: 0px;
    width: 100%;
    height: 100vh;
    background-color: #000000db;
    z-index: 10;
}
.overlay.active{
    display: block;
}
/* Дублируем текст через псевдоэлементы */
.offer__title::before,
.offer__title::after {
    content: attr(data-text); /* возьмём текст из атрибута */
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    overflow: hidden;
    color: white;
    background: transparent;
}

.offer__title::before {
    left: 2px;
    text-shadow: -2px 0 red;
    animation: glitchTop 1s infinite linear alternate-reverse;
}

.offer__title::after {
    left: -2px;
    text-shadow: -2px 0 blue;
    animation: glitchBottom 1s infinite linear alternate-reverse;
}
.offer.active{
    opacity: 0;
}

/* Основная анимация */
@keyframes glitch {
    0% { transform: none; }
    20% { transform: skew(0.5deg); }
    40% { transform: translate(-2px, 2px); }
    60% { transform: skew(-0.5deg); }
    80% { transform: translate(2px, -1px); }
    100% { transform: none; }
}

/* Верхний слой */
@keyframes glitchTop {
    0% { clip-path: inset(0 0 80% 0); transform: translate(-2px, -2px); }
    20% { clip-path: inset(0 0 70% 0); transform: translate(2px, -1px); }
    40% { clip-path: inset(0 0 60% 0); transform: translate(-1px, 1px); }
    60% { clip-path: inset(0 0 50% 0); transform: translate(1px, -2px); }
    80% { clip-path: inset(0 0 40% 0); transform: translate(-2px, 2px); }
    100% { clip-path: inset(0 0 80% 0); transform: translate(0, 0); }
}

/* Нижний слой */
@keyframes glitchBottom {
    0% { clip-path: inset(80% 0 0 0); transform: translate(2px, 2px); }
    20% { clip-path: inset(70% 0 0 0); transform: translate(-2px, 1px); }
    40% { clip-path: inset(60% 0 0 0); transform: translate(1px, -1px); }
    60% { clip-path: inset(50% 0 0 0); transform: translate(-1px, 2px); }
    80% { clip-path: inset(40% 0 0 0); transform: translate(2px, -2px); }
    100% { clip-path: inset(80% 0 0 0); transform: translate(0, 0); }
}


@media screen and (min-width:1441px) {
    body{
        background: url('../img/background-main.webp');
        background-repeat: no-repeat;
        background-size: cover;
        background-position-x: center;
    }
}

@media screen and (max-width:1440px) {
    body{
        background: url('../img/background-1440.webp');
        background-repeat: no-repeat;
        background-size: cover;
        background-position-x: center;
    }
    .offer__btn{
        max-width: 662px;
    }
    .offer__title{
        font-size: clamp(48px, 7vw, 115px);
    }
    .offer__adv{
        font-size: clamp(24px, 3vw, 50px);
    }
}
@media screen and (max-width:1110px) {
    .menu{
        max-width:970px;
        padding: 0 20px;
    }
}
@media screen and (max-width:1135px) {
   .offer__text{
        flex-direction: column;
    }
    .offer__title{
        width: 100%;
        text-align: center;
        font-size: clamp(48px, 8vw, 115px);
    }
    .offer__subtitle{
        margin: 0;
        margin-top: 20px;
        text-align: center;
    }
    .offer__short{
        width: 100%;
        margin-top: 10px;
        max-width: max-content;
    }
}
@media screen and (max-width:992px) {
    
    body{
        background: url('../img/background-1024.webp');
        background-repeat: no-repeat;
        background-size: cover;
        background-position-x: center;
    }
    .header{
        position: relative;
        padding: 0;
        height: 80px;
    }
    .menu{
        padding: 0px 0 0 0;
        display: block;
        max-width: initial;
        width: 100%;
        height: 100vh;
        z-index: 11;
        position: absolute;
        right: -100%;
        top: 0px;
        transition: all 0.5s;
        overflow-x: hidden;
}
    .menu__items{
        flex-direction: column;
        height:100vh;
        align-items: center;
        justify-content: space-evenly;
        background: url('../img/background-menu.webp');
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }
    .burger-menu{
        display: block;
        background-color: transparent;
    }
    .menu.active {
        right: 0;
    }
}
@media screen and (max-width:768px) {
    body{
        background: url('../img/background-768.webp');
        background-repeat: no-repeat;
        background-size: cover;
        background-position-x: center;
    }
    .offer {
        margin-top: 40vh;
    }
    .offer__text{
        flex-direction: column;
    }
    .offer__title{
        font-size: 50px;
    }
    .offer__adv{
        font-size: 30px;
    }
}
@media screen and (max-width:576px) {
    .offer {
        margin-top: 30vh;
    }
   .offer__buttons{
    margin-top: 20px;
    flex-direction: column;
   }
   .offer__btn {
    width: 100%;
   }
   .offer__btn:first-child{
    margin-bottom: 20px;
   }
}

@media screen and (max-width:480px) {

   body{
        background: url('../img/background-420.webp');
        background-repeat: no-repeat;
        background-size: cover;
        background-position-x: center;
         overflow-x: hidden;
    }
    .offer{
        margin-top: 10vh;
    }
    .offer__title{
        font-size: clamp(50px, 15vw, 100px);
        line-height: 115%;
    }
    .offer__adv{
        margin-top: 5vh;
        font-size: clamp(20px, 6vw, 30px);
    }
    .offer__buttons{
        margin-top: 10vh;
    }
}
