/* About */

.about {
    background-color: #d8d8d8;
    display: flex;
}

.about__info {
    padding: 50px 20px 30px;
    display: flex;
    flex-direction: column;
}

@media screen and (max-width: 840px) {
    .about__info {
        width: 100%;
        padding: 30px 20px;
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }
}

@media screen and (max-width: 550px) {
    .about__info {
        flex-direction: column;
    }
}

.info__title {
    width: 100%;
    margin: 0 0 20px;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.22;
}

.info__description {
    margin-bottom: 30px;
    align-self: start;
}

@media screen and (max-width: 840px) {
    .info__description {
        width: 100%;
        margin: 0;
        align-self: auto;
    }
}

.button-place-description {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
    border: none;
    border-radius: 5px;
    width: 200px;
    height: 70px;
    box-sizing: border-box;
    padding: 0 20px;
    color: #333;
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.25));
    cursor: pointer;
    -webkit-transition: background-color 0.1s ease-in;
    -moz-transition: background-color 0.1s ease-in;
    -o-transition: background-color 0.1s ease-in;
    transition: background-color 0.1s ease-in;
    align-self: end;
}

@media screen and (max-width: 840px) {
    .button-place-description {
        align-self: auto;
    }
}

@media screen and (max-width: 660px) {
    .callback-button_place_description {
        display: none;
    }
}

.book-game-button {
    display: none;
    color: #fff;
    background-color: #3ec850;
    -webkit-transition: background-color 0.2s ease-in-out;
    -moz-transition: background-color 0.2s ease-in-out;
    -o-transition: background-color 0.2s ease-in-out;
    transition: background-color 0.2s ease-in-out;
}

.book-game-button:hover {
    background-color: #49b557;
}

@media screen and (max-width: 660px) {
    .book-game-button {
        display: flex;
    }
}

.slider {
    max-width: 460px;
    max-height: 300px;
}

.slider a {
    display: block;
    width: 100%;
}

@media screen and (max-width: 840px) {
    .slider {
        display: none;
    }
}


/* Game */

.game {
    background-color: #fff;
    text-align: center;
    padding: 50px 20px 70px;
}

@media screen and (max-width: 660px) {
    .game {
        padding: 30px 20px 50px;
    }
}


.game__title {
    margin: 0 0 20px;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.22;
}

.game__subtitle {
    margin: 0;
}

.cards {
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, auto));
    justify-content: center;
    row-gap: 15px;
    column-gap: 30px;
}

.card {
    min-height: 320px;
    margin: 0 auto;
    width: 280px;
    background-color: #d8d8d8;
    border-radius: 10px;
    padding: 30px 7px 10px;
    -webkit-transition: margin 0.3s ease-in;
    -moz-transition: margin 0.3s ease-in;
    -o-transition: margin 0.3s ease-in;
    transition: margin 0.3s ease-in;
    box-sizing: border-box;
}

.card__image {
    -webkit-transition: filter 0.5s ease-in-out;
    -moz-transition: filter 0.5s ease-in-out;
    -o-transition: filter 0.5s ease-in-out;
    transition: filter 0.5s ease-in-out;
}

.card:hover .card__image {
    filter: hue-rotate(180deg);
}

.card__title-link {
    text-decoration: none;
}

.card:hover {
    margin: -6px auto 6px;
}

.card__title {
    color: #000;
    margin: 30px 0 15px;
    -webkit-transition: color 0.4s ease-in-out;
    -moz-transition: color 0.4s ease-in-out;
    -o-transition: color 0.4s ease-in-out;
    transition: color 0.4s ease-in-out;
}

.card__title:hover {
    color: #3064ca;
}

.card__description {
    color: #777;
}

.card__image {
    background-size: contain;
    background-repeat: no-repeat;
    margin: auto;
    width: 198px;
    height: 128px;
}

/* News */

.info {
    background-color: #d8d8d8;
    display: flex;
    padding: 40px;
    gap: 40px;
}

@media screen and (max-width: 840px) {
    .info {
        flex-direction: column;
        gap: 30px;
    }
}

.info__contacts {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
    flex-wrap: wrap;
}

@media screen and (max-width: 840px) {
    .info__contacts {
        flex-direction: row;
        border-top: 2px solid #7d7d7d;
        padding-top: 20px;
    }
}

.contact {
    width: 220px;
}

.news {
    list-style: none;
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.news__item {
    display: flex;
    gap: 20px;
    align-items: center;
}

@media screen and (max-width: 500px) {
    .news {
        gap: 30px;
    }
}

@media screen and (max-width: 500px) {
    .news__item {
        display: grid;
        justify-items: center;
    }
}

@media screen and (max-width: 500px) {
    .news__text {
        text-align: center;
    }
}

.news__overflow-block {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    overflow: hidden;
}

.news__image {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    -webkit-transition: transform 0.5s ease-in-out;
    -moz-transition: transform 0.5s ease-in-out;
    -o-transition: transform 0.5s ease-in-out;
    transition: transform 0.5s ease-in-out;
}

.news__image:hover {
    transform: scale(1.05);
}

.news__title {
    text-decoration: none;
    display: inline-block;
    margin: 0 0 15px;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.22;
    color: #000;
    -webkit-transition: color 0.4s ease-in-out;
    -moz-transition: color 0.4s ease-in-out;
    -o-transition: color 0.4s ease-in-out;
    transition: color 0.4s ease-in-out;
}

.news__title:hover {
    color: #3064ca;
}

.news__description {
    margin: 0;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.22;
    text-overflow: ellipsis;
}

.link {
    color: #3064ca;
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

.link:hover {
    opacity: 0.7;
}

.contact__title {
    margin: 0 0 10px;
}

.contact__address {
    margin: 0;
}

.contact__phone {
    display: inline-block;
    margin-top: 12px;
}

.contact__link-map {
    display: inline-block;
    margin-top: 12px;
}


/* Slider */

.slider {
    width: 460px;
    overflow: hidden;
    height: 300px;
    align-self: center;
    flex-shrink: 0;
}

.slider-img {
    width: 100%;

    max-height: 300px;
    display: block;
}

