@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Чтобы отступы не взрывали ширину блоков */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 19px;
    font-weight: 400;
    color: #FFF;
    background: #000000;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.Fon{
    background: linear-gradient(90deg,rgba(0, 0, 0, 1) 0%, rgba(26, 14, 1, 1) 100%);
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1400px; /* Ограничиваем макс ширину на ПК */
    width: 100%;       /* Тянется на мобилках */
    margin: 0 auto;
    padding: 0 20px;   /* Безопасные отступы по бокам */
}

header {
    padding: 50px 0;
}

header .logo {
    text-transform: uppercase;
    font-size: 29px;
    font-weight: 800;
}

header nav {
    float: right;
    width: 50%;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
}

header nav ul li {
    display: inline-block;
}

header nav ul li a {
    color: #FFF
}

header nav ul li:not(.active):not(.btn) a:hover {
    border-bottom: 5px solid #D66F00;
    border-radius: 5px;
}

header nav ul li.btn a {
    background: #D66F00;
    padding: 9px 17px;
    border-radius: 5px;
    transition: all 500ms ease;
}

header nav ul li.btn a:hover {
    background: #d63200;
}

header nav ul li.active::after {
    content: '';
    display: block;
    width: 30px;
    height: 5px;
    background: #D66F00;
    border-radius: 10px;
    position: relative;
    top: 4px;
    left: -15px;
}

.hero {
    padding-bottom: 100px;
    position: relative;
}

.hero--info {
    width: 500px;
    padding-top: 70px;
}

.hero--info h2 {
    color: #a15300d8;
    font-size: 22px;
    font-weight: 600;
}

.hero--info h1 {
    font-size: 40px;
    font-weight: 600;
}

.hero--info p {
    font-weight: 500;
    line-height: 170%;
    margin: 30px 0;
}

.hero--info .btn,
.hero-about .info .btn {
    font-size: 17px;
    background: #D66F00;
    color: #FFF;
     border-radius: 50px;
     padding: 15px 30px;
     border: 0;
     transition: all 500ms ease;
}

.hero--info .btn:hover,
.hero-about .info .btn:hover {
    cursor: pointer;
    transform: scale(1.1);
}

.hero img {
    max-width: 30%;
    position: absolute;
    top: 30px;
    right: 300px;
    border-radius: 50px;
}
.trending h3 {
    font-weight: 600;
    font-size: 31px;
}

.trending .see-all, .projects .see-all {
    color: #FFF;
    background: #000000ad;
    font-size: 17px;
    font-weight: 600;
    border-radius: 5px;
    padding: 12px 23px;
    float: right;
    display: block;
    transition: 500ms ease;
}

.trending .see-all:hover, .projects .see-all:hover {
    transform: scale(1.1);
}

.trending .games,
.trending .games1  {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    width: 100%;
    padding: 50px 0;
}

.trending .games1 {
    margin: 20px 0;
}

.trending .games span {
    display: block;
    text-align: center;
    font-weight: 600;
    margin-top: 10px;
}

.trending .games1 span {
    display: block;
    text-align: center;
    font-weight: 600;
    margin-top: 10px;
}

.trending .games img {
    width: 250px;
    border-radius: 15px;
}

.trending .games1 img {
    width: 250px;
    border-radius: 15px;
}

.big-text {
    padding: 20px 0 0 0;
    font-size: 35px;
    font-weight: 600;
    text-align: center;
    width: 800px;
    bottom: 20px;
}

.banner {
    padding: 80px;
}

.banner h3 {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 30px;
}

.banner p {
    line-height: 170%;
    margin-bottom: 30px;
    width: 550px;
}

.banner img {
    width: 100%;
    margin-bottom: 30px;
    justify-content: space-between;
    border-radius: 50px;
}

.features {
    background: url('../img/fon2.svg') no-repeat center center fixed;
    background-size: cover;
    padding: 80px 0;
}

.features h3,
.features p {
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.features h3 {
    font-size: 40px;
    color: #00000054;
}

.features .info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.features .info .block {
    text-align: center;
    width: 17%;
    margin: 30px 2%;
    
}
.fruets  {
    width: 40%;
    border-radius: 200px;
}

.Rot {
    transform: rotate(90deg);
    width: 15%
}

.Row {
    transform: rotate(180deg);
    width: 15%;
}

.Arrow  {
    width: 15%;
}

.features .info p {
    color: #414141;
}

.features p {
    color: #414141;
}

.projects {
    padding: 100px 0;
}

.projects h3 {
    font-size: 30px;
    text-align: center;
}

.projects p {
    margin: 40px 0;
    text-align: center;
}

.projects .tg {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
}

.projects .st {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
}

.projects .see-all {
    float: none;
    width: max-content; 
    padding: 12px 30px; 
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
}

.email {
    padding-bottom: 120px;
}

.email h3 {
    margin-top: 60px;
    font-size: 30px;
}

.email .block {
    background: #414141;
    margin-top: 30px;
    border-radius: 10px;
    padding: 40px 3%;
    width: 94%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.email .block h4 {
    font-size: 30px;
    font-weight: 500;
}

.email .block p {
    width: 500px; 
}

.email .block form {
    position: relative;
    width: 100%;
    max-width: 420px; /* Ширина белого поля */
}

/* Настраиваем белое поле */
.email .block input {
    background: #FFF;
    outline: none;
    border: 0;
    border-radius: 5px;
    width: 100%; /* Растягиваем на всю форму */
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: #000;
    padding: 20px 150px 20px 30px; 
}

.email .block input::placeholder {
    color: #414141;
}

/* Настраиваем кнопку и "приклеиваем" ее внутрь поля */
.email .block button  {
    background: #D66F00;
    padding: 13px 20px;
    border-radius: 5px;
    border: 0;
    cursor: pointer;
    color: #FFF;
    transition: all 500ms ease;
    position: absolute;
    right: 7px; /* Отступ от правого края белого поля */
    top: 50%; /* Сдвигаем на середину */
    transform: translateY(-50%); /* Выравниваем ровно по вертикали */
    z-index: 2;
}

.email .block button:hover {
    background: #d63200;
}

.hero-about {
    position: relative;
}

.hero-about .info {
    padding: 107px 0;
    width: 500px;
}

.hero-about .info h1 {
    margin-bottom: 15px;
    font-size: 30px;
}

.hero-about .info .btn {
    margin-top: 50px;
    display: inline-block;
}

.hero-about  img {
    position: absolute;
    right: 300px;
    top: 30px;
    border-radius: 50px;
    max-width: 30%;
}

.work {
    padding: 80px 0;
}

.work h2 {
    font-size: 25px;
    margin-bottom: 40px;
}

.work .blocks {
    display: flex;
    justify-content: space-between;
}

.work .blocks .block {
    width: 28%;
    border-radius: 10px;
    padding: 50px 35px;
    background: #1c140f;
}

.work .blocks .block h3 {
    font-size: 20px;
    margin: 20px 0;
}

.work .blocks .block .badge {
    border-radius: 7px;
    padding: 10px 20px;
}

.work .blocks .block .badge.purple {
    background: #560F67;
}

.work .blocks .block .badge.brown {
    background: #31190d;
}

.work .blocks .block .badge.green {
    background: #192a1d;
}

.hero-contacts h1 {
    text-align: center;
    font-size: 33px;
    margin-top: 70px;
    margin-bottom: 30px;
}

.hero-contacts p {
    text-align: center;
}

.hero-contacts img {
    width: 70%;
    margin: 80px 15%;
    border-radius: 50px;
}

.feedback,
.feedback1 {
    padding: 70px 0;
    background: #1c140f;
}

.feedback1 {
    margin-top: 40px;
}

.feedback h2 {
    text-align: center;
    font-weight: 500;
    font-size: 30px;
}

.feedback1 h2 {
    text-align: center;
    font-weight: 500;
    font-size: 30px;
}

.feedback p {
    text-align: center;
    margin-top: 10px;
}

.feedback1 p {
    text-align: center;
    margin-top: 10px;
}

.feedback form {
    margin: 0 auto;
    margin-top: 55px;
    margin-bottom: 80px;
    width: 600px;
}

.feedback1 form {
    margin: 0 auto;
    margin-top: 55px;
    margin-bottom: 80px;
    width: 600px;
}

.feedback form .inline {
    display: flex;
    justify-content: space-between;
}

.feedback1 form .inline {
    display: flex;
    justify-content: space-between;
}

.feedback form .inline>div {
    width: 50%;
}

.feedback1 form .inline>div {
    width: 50%;
}

.feedback form label {
    color: #4f4f4f;
    font-size: 14px;
}

.feedback1 form label {
    color: #4f4f4f;
    font-size: 14px;
}

.feedback form input,
.feedback form textarea {
    background: #2c2420;
    border-radius: 10px;
    border: 0.6px solid #cecece;
    display: block;
    width: 90%;
    padding: 15px 10px;
    outline: none;
    margin-top: 7px;
    margin-bottom: 20px;
}

.feedback1 form input,
.feedback1 form textarea {
    background: #2c2420;
    border-radius: 10px;
    border: 0.6px solid #cecece;
    display: block;
    width: 90%;
    padding: 15px 10px;
    outline: none;
    margin-top: 7px;
    margin-bottom: 20px;
}

.feedback form .one-line {
    width: 96%;
}

.feedback1form .one-line {
    width: 96%;
}

.feedback form .two-line {
    width: 96%;
    font-size: 15px;
}

.feedback1 form .two-line {
    width: 96%;
    font-size: 15px;
}

.feedback form textarea {
    resize: none;
    height: 200px;
}

.feedback1 form textarea {
    resize: none;
    height: 200px;
}

.feedback form button {
    background: #D66F00;
    border-radius: 5px;
    border: 0;
    float: right;
    cursor: pointer;
    color: #FFF;
    padding: 15px 30px;
    transition: all 500ms ease;
    font-weight: 500;
    font-size: 15px;
    margin-right: 25px;
}

.feedback1 form button {
    background: #D66F00;
    border-radius: 5px;
    border: 0;
    float: right;
    cursor: pointer;
    color: #FFF;
    padding: 15px 30px;
    transition: all 500ms ease;
    font-weight: 500;
    font-size: 15px;
    margin-right: 25px;
}

.feedback form button:hover {
    background-color: #d63200;
}

.feedback1 form button:hover {
    background-color: #d63200;
}

footer {
    background: #000000;
    padding: 50px 10px 0 0;
}

footer .blocks {
    display: flex;
    justify-content: space-between;
}

footer .blocks .logo {
    text-transform: uppercase;
    font-size: 29px;
    font-weight: 800;
}

footer .blocks p {
    width: 300px;
    margin: 15px 0;
    font-size: 17px;
    font-weight: 400;
}

footer .blocks h4 {
    font-weight: 500;
    font-size: 20px;
}

footer .blocks ul li {
    margin-left: 20px;
    margin-top: 7px;
    opacity: 0.5;
}

footer hr {
    margin: 30px 0;
    border: 0;
    height: 0.6px;
    background: #414141;
}

footer > p {
    text-align: center;
}



/* Мобильная версия*/
@media (max-width: 768px) {
    
    /* Шапка сайта */
    header nav {
        float: none;
        width: 100%;
        margin-top: 20px;
    }
    header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    header nav ul li.active::after {
        display: none;
    }

    /* Блок Hero */
    .hero {
        display: flex;
        flex-direction: column-reverse;
        padding-bottom: 50px;
    }
    .hero--info {
        width: 100%;
        text-align: center;
        padding-top: 30px;
    }
    .hero img {
        position: static;
        max-width: 70%;
        margin: 0 auto;
        display: block;
        margin-top: 50px;
    }

    /* Секция со стикерами */
    .trending h3 {
        margin-top: 20px;
    }
    .trending .games {
        grid-template-columns: repeat(2, 1fr); /* На телефоне будет по 2 картинки в ряд */
        gap: 15px;
    }
    .trending .games img {
        width: 100%;
        max-width: 260px;
    }

    /* Текст и Баннер */
    .big-text {
        width: 100%;
        font-size: 26px;
    }
    .banner {
        padding: 40px 15px;
        text-align: center;
    }
    .banner p {
        width: 100%;
    }

    /* Блок пейзажей */
    .features .info .block {
        width: 45%;
        margin: 15px 2%;
    }
    .Arrow, .Rot, .Row {
        display: none; /* Прячем стрелочки на мобилках, чтобы не ломали сетку */
    }

    /* Форма рассылки */
    
    .email {
        padding-bottom: 40px;
    }
    .email .block {
        flex-direction: column;
        text-align: center;
        padding: 30px 15px;
    }

    .email .block p {
        margin-bottom: 10px;
    }

    .email .block form {
        margin-top: 25px;
        max-width: 100%; /* На телефоне форма займет всю ширину */
    }

    .email .block p {
        width: 100%; 
    }

    /* Секция Команда (index2.html) */
    .hero-about {
        display: flex;
        flex-direction: column-reverse;
        padding-bottom: 50px;
    }
    .hero-about .info {
        width: 100%;
        text-align: center;
        padding: 50px 0;
    }
    .hero-about img {
        position: static;
        max-width: 70%;
        margin: 0 auto;
        display: block;
        margin-top: 50px;
    }
    .work .blocks {
        flex-direction: column;
        gap: 20px;
    }
    .work .blocks .block {
        width: 100%;
    }

    /* Секция Финал и форма (index3.html) */
    .hero-contacts img {
        width: 100%;
        margin: 40px 0;
    }
    .feedback form {
        width: 100%;
    }
    .feedback form .inline {
        flex-direction: column;
    }
    .feedback form .inline > div {
        width: 100%;
    }
    .feedback form .one-line, 
    .feedback form .two-line {
        width: 100%;
    }

    .feedback1 form {
        width: 100%;
    }
    .feedback1 form .inline {
        flex-direction: column;
    }
    .feedback1 form .inline > div {
        width: 100%;
    }
    .feedback1 form .one-line, 
    .feedback1 form .two-line {
        width: 100%;
    }

    .feedback1 form button {
        margin-right: 0;
    }

    .feedback form button {
        margin-right: 0;
    }



    /* Подвал сайта */
    footer .blocks {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    footer .blocks .contacts p {
    text-align: center;
    }
    footer .blocks p {
        margin: 15px auto;
    }
    footer .blocks ul li {
        margin-left: 0;
        list-style: none;
    }
}