*,
*::before,
*::after {
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.page {
    height: 100%;
}

.page__body {
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    line-height: 1.55;
}

.main-header {
    height: 100%;
    background: #efefef url("../img/bg-header.jpg") no-repeat top center;
    background-size: cover;
}

.maskbox {
    height: 100%;
    width: 100%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.site-menu__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-menu__item {
    margin-right: 30px;
}

.site-menu__link {
    font-size: 16px;
    color: #ffffff;
    font-weight: 500;
}

.site-menu__link:hover,
.site-menu__link:focus {
    color: #bbbbbb;
}

.socials__list {
    display: flex;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    list-style: none;
}

.socials__item {
    margin-right: 10px;
}

.socials__link path:hover {
    fill: #bbbbbb;
}

.logo {
    text-align: center;
}

.page__heading {
    font-size: 72px;
    line-height: 1.17;
    padding: 24px 0 24px 0;
    margin: 25px 0 25px 0;
    letter-spacing: 1px;
    color: #fff;
}

.btn__join {
    display: inline-block;
    padding: 15px 40px;
    margin-bottom: 100px;
    text-align: center;
    color: #ffffff;
    background-color: #f5914f;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    text-transform: uppercase;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.btn__join:hover,
.btn__join:focus {
    background-color: #e66916;
}

.about {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 180px;
    padding-bottom: 180px;
}

.left-box {
    max-width: 580px;
    padding: 10px;
}

.section-title {
    font-size: 42px;
    line-height: 1.23;
    margin-bottom: 24px;
    color: #000000;
}

.left-box p {
    font-size: 16px;
    line-height: 1.55;
}

.right-box {
    display: grid;
    grid-template-columns: 218px 218px;
    gap: 10px;
}

.right-box img {
    width: 218px;
    height: 218px;
    object-fit: cover;
}

.activity {
    padding: 20px;
    padding-top: 150px;
    padding-bottom: 180px;
    background-color: #f5f5f5;
}

.activity .section-title {
    text-align: center;
    margin-bottom: 100px;
}

.activity__list {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.activity__item {
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.activity__item:hover,
.activity__item:focus {
    border: 3px solid #ffffff;
}

.activity__item img {
    margin-bottom: 50px;
}

.activity__item h3 {
    text-align: center;
}

.activity__item p {
    text-align: center;
    font-size: 14px;
}

.enter {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 150px;
    padding-bottom: 180px;
}

.enter .section-title {
    margin-bottom: 100px;
}

.enter__item {
    position: relative;
    padding-left: 90px;
    margin-bottom: 50px;
}

.enter__item:first-child::before {
    content: "";
    position: absolute;
    width: 66px;
    height: 66px;
    left: 0;
    top: 0;
    background: url("../img/enter-img-1.webp") no-repeat 0 0;
}

.enter__item:nth-child(2)::before {
    content: "";
    position: absolute;
    width: 66px;
    height: 66px;
    left: 0;
    top: 0;
    background: url("../img/enter-img-2.webp") no-repeat 0 0;
}

.enter__item:nth-child(3)::before {
    content: "";
    position: absolute;
    width: 66px;
    height: 66px;
    left: 0;
    top: 0;
    background: url("../img/enter-img-3.webp") no-repeat 0 0;
}

.enter-button {
    display: inline-block;
    background-color: #fc7c66;
    min-width: 150px;
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center;
    color: #ffffff;
    font-weight: bold;
    transition: all 0.5s ease;
}

.enter-button:hover,
.enter-button:focus {
    background-color: #fd4d2e;
}

.gallery {
    max-width: 100vw;
    height: 100vh;
    background: #bbbbbb url("../img/gallery-bg.jpg") no-repeat top center;
    background-size: cover;
}

.gallery .maskbox {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.gallery p {
    font-size: 24px;
}

.gallery .text-uppercase {
    text-transform: uppercase;
    font-size: 16px;
    margin: 0;
    margin-bottom: 60px;
}

.gallery .section-title {
    margin: 0;
    letter-spacing: .5px;
    color: #fff;
    font-size: 72px;
    line-height: 1.17;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.button-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
    flex-wrap: wrap;
}

.button-container a {
    background-color: #fc7c66;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    color: #ffffff;
    font-weight: bold;
    transition: all 0.5s ease;
}

.button-container a:hover,
.button-container a:focus {
    background-color: #f5482a;
}

.button-container small {
    font-size: 12px;
    font-weight: normal;
}

.main-footer {
    padding: 20px;
    padding-top: 100px;
    padding-bottom: 150px;
    background-color: #e2e2e2;
}

.main-footer__wrapper {
    max-width: 400px;
    margin: 0 auto;
}

.contacts {
    margin-bottom: 50px;
}

.contacts .section-title {
    text-align: center;
    font-size: 18px;
    text-transform: uppercase;
}

.contacts p {
    text-align: center;
}

.contacts a {
    color: #000000;
    font-size: 32px;
    font-weight: 700;
}

.contacts a:hover {
    color: #bbbbbb;
}

.socials-title {
    text-align: center;
    font-size: 16px;
    font-weight: 400;
}

.main-footer .socials__group {
    display: flex;
    justify-content: center;
}

.main-footer .socials__link {
    margin-right: 10px;
}

.main-footer .socials path {
    fill: #ffa500;
    transition: all 0.5s ease;
}

.socials svg:hover path {
    fill: #a86f04;
}

/* Payment page */

.wrapper-payment {
    max-width: 960px;
    padding: 0 5px;
    margin: 0 auto;
}

.wrapper-payment h1 {
    text-align: center;
}

.wrapper-payment table {
    margin: 0 auto;
    border: 1px solid #000000;
}

.wrapper-payment p {
    text-align: center;
}

.wrapper-payment td {
    border: 1px solid #000000;
    padding: 10px;
}

.qr-image {
    display: block;
    margin: 0 auto;
}

/* Gallery page */

.page-main h1 {
    text-align: center;
    color: tomato;
}

.wrapper-gallery {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
}

.gallery-item {
    min-width: 300px;
    max-width: 320px;
    height: auto;
    box-shadow: 
        1px 1px 3px 0 #bbbbbb,
        -1px -1px 3px 0 #bbbbbb;
    margin-bottom: 20px;
    background-color: #def3fa;
    transition: all 0.7s;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-year {
    color: #000000;
    text-align: center;
    font-size: 24px;
}

.gallery-item a {
    display: flex;
    justify-content: center;
    align-items: center;
}

.wrapper-gallery a {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
}

.gallery-item:not(.gallery-item-active) {
    display: none;
}

/* Media */

@media (max-width: 767px) {
    .site-menu__list {
        flex-direction: column;
    }

    .logo__img {
        width: 200px;
        height: 200px;
    }

    .page__heading {
        font-size: 38px;
        padding: 0;
    }

    .about {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .section-title {
        margin-top: 0;
        font-size: 40px;
    }

    .left-box {
        max-width: 100%;
        padding: 0;
    }

    .right-box {
        width: 100%;
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .right-box img {
        width: 100%;
        height: auto;
    }

    .activity {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .activity .section-title {
        text-align: left;
        font-size: 38px;
        margin-bottom: 30px;
    }

    .activity__list {
        justify-content: center;
    }

    .activity__item {
        margin-bottom: 20px;
    }

    .activity__item img {
        margin-bottom: 0;
    }

    .enter {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .enter .section-title {
        font-size: 40px;
        margin-bottom: 30px;
    }

    .enter__item h3 {
        font-size: 17px;
    }

    .gallery .text-uppercase {
        text-align: center;
        font-size: 23px;
    }

    .gallery .section-title {
        font-size: 40px;
        text-align: center;
    }

    .gallery p {
        text-align: center;
        font-size: 20px;
    }

    .main-footer {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .contacts a {
        font-size: 25px;
    }

    .wrapper-payment td {
        padding: 3px;
    }
}

@media (min-width: 768px) and (max-width: 1048px) {
    .logo__img {
        width: 200px;
        height: 200px;
    }
     
    .page__heading {
        padding: 0;
    }

    .about {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .left-box {
        max-width: 100%;
    }

    .left-box .section-title {
        margin: 0;
        margin-bottom: 30px;
    }

    .right-box {
        width: 100%;
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .right-box img {
        width: 100%;
        height: auto;
    }

    .activity {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .activity .section-title {
        text-align: left;
        margin: 0;
        margin-bottom: 30px;
    }

    .activity__list {
        justify-content: center;
    }

    .activity__item {
        padding-top: 20px;
    }

    .enter {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .enter .section-title {
        margin: 0;
        margin-bottom: 30px;
    }
}

