@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400..900&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');

:root {
    --text-color: #313131;
    --heading-font-family: "Merriweather", serif;
    --paragraph-font-family: "Golos Text", sans-serif;
    --logo-color: #595653;
    --dark-bt-color: #1F1F1F;
    --yellow-btn-color: #FBCE51;
    --grey-color: #D6D6D6;
    --blue-color: #3057A2;
    --red-color: #F54932;
    --footer-bg: #E9DED4;
    --border-color: #D0D0D0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font: inherit;
    text-decoration: none;
    font-feature-settings: 'pnum' on, 'lnum' on;
}

html {
    font-size: 62.5%;
}

html:focus-within {
    scroll-behavior: smooth;
}

section,
footer {
    width: 100%;
    display: flex;
    place-content: center;
}

.container {
    max-width: 136.6rem;
    height: 100%;
    padding: 3.2rem 7.2rem;
}

.title {
    font-family: var(--heading-font-family);
    font-weight: 400;
    text-transform: uppercase;
    color: var(--text-color);
}

.paragraph {
    color: var(--text-color);
    font-family: var(--paragraph-font-family);
    font-weight: 500;
    font-size: 2rem;
    line-height: 120%;
}

.title-h1 {
    font-size: 6rem;
    line-height: 110%;
}

.title-h2 {
    font-size: 5.4rem;
    line-height: 120%;
}

.title-h3 {
    font-size: 3.6rem;
    line-height: 135%;
}

.title-h6 {
    font-size: 2.2rem;
    line-height: 110%;
}

.text-dark {
    color: var(--text-color);
}

.text-white {
    color: white;
}

.text-blue {
    color: var(--blue-color);
}

.text-bold {
    font-weight: 700;
}

.opacity-60 {
    opacity: 60%;
}

/* ============== Hero section ============== */
.hero__wrapper {
    width: 100%;
    height: 70rem;
    background: var(--footer-bg);
    position: relative;
    z-index: 0;
    display: flex;
    place-content: center;
}

.hero__blend {
    width: 100%;
    height: 100%;
    mix-blend-mode: color-burn;
    background-image: url(assets/hero-concrete-bg.webp);
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
}

.hero__bg-img {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 0;
    bottom: 0;
    background-image: url(assets/city-circle-bg.webp);
    background-size: 162.37rem 100%;
    background-repeat: no-repeat;
    background-position: 46%;
}

.hero__container {
    width: 100%;
    padding: 2.6rem 7.2rem;
    position: absolute;
    top: 0;
    z-index: 20;
}

.hero__logo {
    display: flex;
    width: 24.5rem;
    height: 3.6rem;
    margin-bottom: 6.2rem;
}

.hero__content {
    width: 54.2rem;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.text-start {
    text-align: start;
}

.text-center {
    text-align: center;
}

.text-end {
    text-align: end;
}

.hero__paragraph {
    margin: 2.4rem 0 3.8rem 0;
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 130%;
}

.hero__buttons {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
}

.button {
    width: 26.3rem;
    height: 7.2rem;
    border: none;
    border-radius: 6.6rem;
    padding: 2.0rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.button--dark {
    background-color: var(--dark-bt-color);
}

.button--dark:hover {
    background-color: var(--yellow-btn-color);
}

.button--light {
    background-color: transparent;
    border: 0.2rem solid var(--dark-bt-color);
}

.button--light:hover {
    background-color: var(--dark-bt-color);
}

.button--light:hover .text-dark {
    color: white;
}

.button-text {
    width: 16.5rem;
    font-size: 1.6rem;
    line-height: 130%;
    text-align: center;
    flex: 0 0 auto;
}

/* ============== Running__line section ============== */
.running-line {
    position: relative;
}

.running-line__content-wrap {
    height: 6rem;
    background-color: var(--red-color);
}

.running-line__content {
    width: auto;
    padding: 1.8rem 1.2rem;
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.running-line__dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background-color: white;
    flex: 0 0 auto;
}

/* ============== Poster section ============== */
.poster__container {
    position: relative;
}

.poster__titles-margin {
    margin: 7.5rem 0 7.4rem 0;
}

.poster__titles-wrapper {
    width: 100%;
}

.poster__title {
    width: 62%;
}

.title__text-red {
    color: var(--red-color);
}

.poster__title__img {
    position: absolute;
    right: 7.2rem;
    top: 8rem;
    width: 39.4rem;
    height: 25rem;
}

.image {
    width: 100%;
    display: block;
    object-fit: cover;
}

.about-tournament {
    width: 100%;
    display: flex;
    gap: 4.6rem;
    align-items: center;
    margin-bottom: 13.6rem;
}

.about-tournament__img {
    width: 47.4rem;
    height: auto;
}

.chess-player-image {
    transform: scale(1.12, 1.12);
}

.about-tournament__content {
    width: 70.4rem;
    height: 52.7rem;
    padding-top: 1rem;
}

.about-tournament__table {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 0;
}

.table-wrap {
    margin: 6rem 0 4.7rem 0;
}

.table__item {
    padding: 1.5rem 0;
}

.table__item--left {
    font-weight: 400;
    opacity: 70%;
    border-bottom: 0.2rem solid var(--border-color);
}

.table__item--rignt {
    font-weight: 600;
    border-bottom: 0.2rem solid var(--border-color);
    padding-left: 1.5rem;
    border-left: 0.2rem solid var(--border-color);
}

.table__item:nth-child(1),
.table__item:nth-child(2) {
    padding-top: 0;
}

.table__item:nth-child(n+9) {
    border-bottom: none;
    padding-bottom: 0;
}

.table__item-last-error-line {
    text-decoration: var(--red-color) line-through;
    margin-right: 0.6rem;
}

.about-tournament__link {
    font-weight: 400;
}

/* ============== Stages-transform section ============== */
.stages-transform__titles-wrapper {
    position: relative;
}

.stages-transform__link {
    width: 28rem;
    display: flex;
    flex-wrap: wrap;
    position: absolute;
    left: 30.1rem;
    top: 7.2rem;
    font-weight: 400;
}

.stages-transform__img {
    width: 37.7rem;
    position: absolute;
    right: -5rem;
    bottom: -41rem;
    z-index: 10;
    transform: rotate(-15deg);
}

.stages-transform__grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 5.4rem;
    gap: 2rem;
}

.grid__item {
    padding: 2rem;
    display: flex;
    position: relative;
}

.grid__item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(assets/stage-bg.webp);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.8;
}

.grid__item-number {
    width: 3.6rem;
    height: 3.6rem;
    flex: 0 0 auto;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-right: 1.6rem;
}

.grid__item-paragraph {
    font-size: 2rem;
    font-weight: 500;
    position: relative;
}

.stage-transform__slide {
    display: flex;
    gap: 2rem;
}

.stage-transform__slide:nth-child(1) {
    grid-column: 1 / span 2;
    grid-row: 1;
}

.stage-transform__slide:nth-child(2) {
    grid-column: 3;
    grid-row: 1 / span 2;
}

.stage-transform__slide:nth-child(3) {
    grid-column: 1 / span 2;
    grid-row: 2;
}

.stage-transform__slide:nth-child(5) {
    grid-column: 2 / span 2;
    grid-row: 3;
}

.stage-transform__slide:nth-child(4),
.stage-transform__slide:nth-child(5) {
    background-color: #D9D9D9;
}

.stage-transform__slide:nth-child(1)>.grid__item,
.stage-transform__slide:nth-child(3)>.grid__item {
    width: 50%;
}

.stage-transform__slide:nth-child(5)>.grid__item {
    padding-right: 29rem;
}

.stages-transform__slider-pagination-wrapper {
    display: none;
}

/* ============== Partisipants section ============== */
.participants__container {
    margin: 13.6rem 0 9rem 0;
}

.partisipants__slider {
    padding-bottom: 2rem;
    position: relative;
}

.partisipants__slider__pagination-wrapper {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: end;
    transform: translateY(-5rem);
    margin-right: 0.5rem;
}

.slider__btn-slide-prev,
.slider__btn-slide-next {
    cursor: pointer;
    transform: scale(1.22);
}

.slider__btn-slide-prev:hover>svg circle,
.slider__btn-slide-next:hover>svg circle {
    fill: var(--yellow-btn-color);
}

.slider__btn-slide-prev.disabled>svg circle,
.slider__btn-slide-next.disabled>svg circle {
    fill: var(--grey-color);
}

.slider__number-wrap {
    display: flex;
    gap: 0.2rem;
}

.slider__number {
    color: var(--text-color);
    font-family: var(--paragraph-font-family);
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 120%;
}

.partisipants__slider-view {
    width: 100%;
    overflow: hidden;
}

.partisipants__slider-wrapper {
    display: flex;
    position: relative;
    left: 0;
    transition: all 0.5s ease;
    padding-top: 2rem;
}

.partisipants__slider-slide {
    width: calc(39.4rem + 2rem);
    padding-right: 2rem;
    height: 46.2rem;
    flex: 0 0 auto;
}

.slide__card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slide__card-title {
    font-weight: 600;
    font-size: 2.4rem;
    line-height: 120%;
    font-family: var(--paragraph-font-family);
    text-transform: capitalize;
    color: var(--text-color);
    margin-top: 2rem;
}

.slide__card-img {
    width: 32rem;
    height: 32rem;
    margin-bottom: 1rem;
}

.slide__card-paragraph {
    font-weight: 400;
    opacity: 60%;
    margin: 0.3rem 0 2rem 0;
}

.button--blue {
    width: 11.3rem !important;
    height: 3.5rem !important;
    background-color: transparent;
    border: 0.1rem solid var(--blue-color);
    border-radius: 6.2rem;
    padding: 1.2rem;
    color: var(--blue-color);
    font-family: var(--paragraph-font-family);
    font-size: 1.6rem;
    line-height: 120%;
}

.button--blue:hover {
    color: white;
    background-color: var(--blue-color);
}

/* ============== Footer section ============== */
footer {
    height: 15rem;
    background-color: var(--footer-bg);
}

.footer__paragraph {
    opacity: 60%;
    font-size: 1.6rem !important;
    font-weight: 400;
    margin-top: 0.9rem;
}

/* ============== Media query ============== */

@media screen and (max-width: 576px) {

    .container,
    .hero__container {
        max-width: 37.5rem;
        padding: 1.8rem 2rem;
    }

    .title-h1,
    .title-h2 {
        font-size: 3.6rem;
        line-height: 110%;
    }

    .title-h3 {
        font-size: 2.8rem;
        width: 33.5rem;
    }

    .title-h6 {
        font-size: 1.6rem;
    }

    .paragraph {
        font-size: 1.8rem;
    }

    .hero__wrapper {
        height: 75.5rem;
    }

    .hero__logo {
        height: 3.2rem;
        margin-bottom: 4rem;
    }

    .hero__content {
        justify-content: start;
    }

    .hero__titles-wrapper {
        margin-top: 0;
    }

    .hero__paragraph {
        text-align: start;
        margin: 2.4rem 0 3.2rem 0;
    }

    .button {
        width: 33.5rem;
        height: 4.7rem;
        padding: 1.8rem 2rem;
    }

    .button-text,
    .hero__content {
        width: 100%;
    }

    .button--light {
        border: none;
        background-color: white;
        opacity: 90%;
    }

    .hero__bg-img {
        background-image: url(assets/city-circle-bg-mobile.webp);
        background-position: bottom;
        background-size: contain;
        bottom: -3.8rem;
    }

    .running-line__content-wrap {
        height: 3.8rem;
        position: relative;
        top: 2rem;
        z-index: 25;
    }

    .running-line__content {
        padding: 1.2rem 1rem;
    }

    .poster__titles-wrapper {
        width: 33.5rem;
        margin: 5rem 0 4.5rem 0;
    }

    .poster__title__img {
        width: 33.5rem;
        height: 21.2rem;
        margin: 2.5rem 0;
        position: unset;
    }

    .about-tournament {
        flex-direction: column;
        gap: 0;
    }

    .about-tournament__content {
        width: 33.5rem;
    }

    .about-tournament__img {
        width: 33.5rem;
        height: 40.2rem;
    }

    .about-tournament__link {
        font-size: 1.8rem;
    }

    .about-tournament__table {
        width: 100%;
        margin: 4.4rem 0 4rem 0;
        display: flex;
        flex-wrap: wrap;
    }

    .table__item {
        width: 100%;
        padding: 1.4rem 0 1.5rem 0;
        font-size: 2rem;
        line-height: 120%;
    }

    .table__item--left {
        font-weight: 400;
        opacity: 70%;
        border-bottom: none;
    }

    .table__item--rignt {
        font-weight: 600;
        border-bottom: 0.2rem solid var(--border-color);
        padding-left: 0;
        padding-top: 0;
        border-left: none;
    }

    .table__item:nth-child(7) {
        width: 47%;
        border-bottom: 0.2rem solid var(--border-color);
    }

    .table__item:nth-child(8) {
        width: 52%;
        padding-top: 1.4rem;
    }

    .table__item:nth-child(9) {
        border-bottom: none;
        margin-bottom: 1.4rem;
    }

    .stages-transform__container {
        margin-top: 18rem;
    }

    .stages-transform__link {
        width: 100%;
        top: 13.4rem;
        line-height: 120%;
        font-size: 1.8rem;
        font-weight: 400;
        left: 0;
        flex: 0 0 auto;
    }

    .stages-transform__img {
        width: 31.9rem;
        top: 23.5rem;
        right: 0;
        transform: rotate(-18.73deg);
    }

    .stages-transform__slider {
        overflow: hidden;
    }

    .slider__btn-slide-prev,
    .slider__btn-slide-next {
        transform: scale(1);
    }

    .stages-transform__grid-wrapper {
        display: flex;
        margin-top: 21rem;
        gap: 0;
        position: relative;
        left: 0;
        transition: all 0.5s ease;
    }

    .grid__item,
    .stage-transform__slide:nth-child(1)>.grid__item,
    .stage-transform__slide:nth-child(3)>.grid__item {
        width: 33.5rem !important;
        height: auto;
        flex: 0 0 auto;
        background-image: none;
        padding: 0;
    }

    .stage-transform__slide:nth-child(5)>.grid__item {
        padding-right: 0;
    }

    .stage-transform__slide {
        width: 33.5rem;
        height: 30rem;
        gap: 2.8rem;
        padding: 6rem 2rem 0 2rem;
        margin-bottom: 2rem;
        flex-direction: column;
        position: relative;
    }

    .stage-transform__slide::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url(assets/stage-bg.webp);
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        opacity: 0.8;
    }

    .grid__item::before {
        background-image: none;
    }

    .grid__item:nth-child(7) {
        padding-right: 0;
    }

    .grid__item-paragraph {
        font-size: 1.8rem;
        line-height: 120%;
        width: 23.9rem;
    }

    .stages-transform__slider-pagination-wrapper {
        display: flex;
        gap: 1.5rem;
        align-items: center;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .stage-transform__slide:nth-child(4),
    .stage-transform__slide:nth-child(5) {
        background-color: transparent;
    }

    .stages-slider-dots-pagination {
        display: flex;
        gap: 0.6rem;
    }

    .stages-slider-dot {
        width: 1rem;
        height: 1rem;
        border-radius: 50%;
        background-color: #D9D9D9;
    }

    .active {
        background-color: var(--text-color);
    }

    .participants__container {
        margin: 8.4rem 0 10rem 0;
    }

    .partisipants__slider {
        transform: translateY(-1.6rem);
    }

    .partisipants__slider__pagination-wrapper {
        transform: translateY(48.8rem);
        justify-content: center;
    }

    .partisipants__slider-wrapper {
        gap: 0;
    }

    .partisipants__slider-slide {
        width: 33.5rem;
        height: 39rem;
        padding-right: 0;
    }

    .slide__card-img {
        width: 24.4rem;
        height: 24.4rem;
        margin-bottom: 2.6rem;
    }

    .slide__card-title {
        margin-top: 0;
    }

    .slide__card-paragraph {
        margin: 1rem 0 2rem 0;
    }

    footer {
        width: 100%;
        height: auto;
        padding: 3rem 0 6rem 0;
    }
}