/* Кастомный скроллбар */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #14381F; /* темно-зеленый фон под скроллом */
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: #FF7C1E; /* оранжевый цвет ползунка */
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e16915; /* чуть темнее при наведении */
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #FF7C1E #14381F;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
    font-family: sans-serif;
    overflow-y: auto;
    overflow-x: hidden;
}

.main-wrapper {
    display: flex;
    width: 100vw;
    height: 100vh;
    min-height: 1080px;
}

.left-side {
    position: relative;
    flex: 1;
    min-width: 806px;
    width: 100%;
    background: url("../img/orange.webp") repeat;
    overflow: hidden;
}

.left-side::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/line.webp") no-repeat center center;
    pointer-events: none;
}

.rg-logo {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 60px;
}

.card-grid {
    position: relative;
    width: 100%;
    height: 100%;
    top: 10px;
    z-index: 1;
}

.card-tab-wrapper {
    display: none;
}

.popup {
    display: none;
}
/* Общий стиль карточек */
.card {
    position: absolute;
}

/* Флип-карточка (только .c1 пока) */
.card.c1 {
    width: 224px;
    height: 240px;
    perspective: 1000px;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-back,
.card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-back {
    width: 160px;
    height: 210px;
    background-color: #fff;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
    font-family: 'Oswald', sans-serif;
    transform-origin: center center;
    margin: 0 auto;
    /* центрируем */
    top: 30px;
    position: relative;
    border-radius: 8px;
}

/* Масштабирование задней стороны при hover */
.card:hover .card-inner {
    transform: rotateY(180deg);
}

/* ИМЯ И ФАМИЛИЯ */
.player-name .first-name {
    font-size: 12px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    margin-top: -3px;
}

.player-name .last-name {
    font-size: 22px;
    font-weight: 700;
    color: #D35220;
    text-transform: uppercase;
    margin-top: -7px;
}

/* ИНФОРМАЦИЯ */
.player-info {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 6px;
    border-radius: 4px;
    background-color: #EFEFEF;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.info-row .label {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #79849B;
}

.info-row .value {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #000;
    display: flex;
    align-items: center;
}

.flag {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    display: inline-block;
}

/* КНОПКА */
.choose-btn {
    margin-top: 7px;
    padding: 6px 0;
    height: 32px;
    width: 100%;
    background-color: #FF7C1E;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    transition: background 0.3s;
}

.choose-btn:hover {
    background-color: #e16915;
}

/* Остальные карточки (пока статичные) */
.card:not(.c1) {
    width: 224px;
    height: 240px;
}

/* Позиции остальных карточек */
.c2 {
    top: 270px;
    left: 41%;
    transform: translateX(-50%);
}
.c3 {
    top: 270px;
    left: 59%;
    transform: translateX(-50%);
}

.c4 {
    top: 515px;
    left: 32%;
    transform: translateX(-50%);
}
.c5 {
    top: 515px;
    left: 50%;
    transform: translateX(-50%);
}
.c6 {
    top: 515px;
    left: 68%;
    transform: translateX(-50%);
}

.c7 {
    top: 760px;
    left: 22%;
    transform: translateX(-50%);
}
.c8 {
    top: 760px;
    left: 40%;
    transform: translateX(-50%);
}
.c9 {
    top: 760px;
    left: 58%;
    transform: translateX(-50%);
}
.c10 {
    top: 760px;
    left: 76%;
    transform: translateX(-50%);
}

.divider {
    width: 44px;
    background: white;
    flex-shrink: 0;
}

.right-side {
    width: 100%;
    max-width: 768px;
    min-width: 590px;
    background: url("../img/green.webp") repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.right-content {
    width: 100%;
    max-width: 768px;
    padding: 40px 40px 0;
    box-sizing: border-box;
    text-align: center;
}

/* Верхний блок с логотипом и языками */
.header-block {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
}

/* Центрируем логотип */
.logo-centered {
    width: 150px;
    display: block;
    margin: 0 auto;
}

/* Языковая панель закреплена в правом верхнем углу */
.lang-panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 10px;
}

/* Заголовок */
.main-title {
    font-family: 'Oswald', sans-serif;
    font-size: 60px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    line-height: 69px;
    text-shadow: 3px 3px 0 #000000;
    margin-bottom: 20px;
}

/* Подзаголовок */
.subtitle {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 400;
    color: white;
    text-transform: uppercase;
    line-height: 40px;
    text-shadow: 3px 3px 0 #000000;
    margin-bottom: 30px;
}

.subtitle-tab {
    display: none;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: white;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 #000;
    position: relative;
    z-index: 2;
    margin-top: 90px;
    margin-bottom: 10px;
}

/* Форма */
.reg-form {
    width: 100%;
    display: flex;
    margin-bottom: 40px;
    justify-content: center;
}

/* Картинка после формы */
.welcome-img {
    width: 490px;
    max-width: 100%;
    height: auto;
}

.welcome-img-mob {
    display: none;
}


.popup-mobile {
  display: none;
}
@media (max-width: 1720px) {

    .card.c1 {
        width: 198px;
        height: 211px;
    }
    .card:not(.c1) {
        width: 198px;
        height: 211px;
    }
    .player-name .last-name {
        font-size: 16px;
    }
    .info-row .value {
        font-size: 12px;
    }
    .card-back {
        width: 150px;
        height: 182px;
    }

    .c2 {
        top: 245px;
        left: 39%;
        transform: translateX(-50%);
    }
    .c3 {
        top: 245px;
        left: 61%;
        transform: translateX(-50%);
    }

    .c4 {
        top: 460px;
        left: 28%;
        transform: translateX(-50%);
    }
    .c5 {
        top: 460px;
        left: 50%;
        transform: translateX(-50%);
    }
    .c6 {
        top: 460px;
        left: 72%;
        transform: translateX(-50%);
    }

    .c7 {
        top: 680px;
        left: 17%;
        transform: translateX(-50%);
    }
    .c8 {
        top: 680px;
        left: 39%;
        transform: translateX(-50%);
    }
    .c9 {
        top: 680px;
        left: 61%;
        transform: translateX(-50%);
    }
    .c10 {
        top: 680px;
        left: 83%;
        transform: translateX(-50%);
    }

    .main-wrapper {
        min-height: 100vh;
        height: auto;
    }

}

@media (max-width: 1640px) {
    .logo-centered {
        width: 125px;
    }
    .main-title {
        font-size: 40px;
        line-height: 52px;
        margin-bottom: 10px;
    }
    .subtitle {
        font-size: 24px;
        line-height: 40px;
        margin-bottom: 8px;
    }
    .reg-form {
        margin-bottom: 25px;
    }
}

@media (max-width: 1440px) {
    .left-side {
        width: 100%;
        min-width: 608px;
    }
    .card.c1 {
        width: 158px;
        height: 169px;
    }
    .card:not(.c1) {
        width: 158px;
        height: 169px;
    }
    .card-back {
        width: 113px;
        height: 149px;
        padding: 4px;
        border-radius: 3px;
        top: 22px;
    }
    .player-name .first-name {
        font-size: 10px;
    }
    .player-name .last-name {
        font-size: 14px;
    }
    .info-row .label {
        font-size: 10px;
    }
    .info-row .value {
        font-size: 10px;
    }
    .player-info {
        padding: 4px;
        border-radius: 4px;
    }
    .choose-btn {
        height: 24px;
        font-size: 10px;
        margin-top: 4px;
        padding: 2px 0;
    }

    .right-content {
        padding: 20px 24px 0;
        max-width: 100%;
    }
    .divider {
        width: 20px;
    }
    .right-side {
        min-width: 396px;
        max-width: 480px;
    }
    .logo-centered {
        width: 100px;
    }
    .main-title {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 10px;
    }
    .subtitle {
        font-size: 24px;
        line-height: 32px;
        margin-bottom: 8px;
    }

    .c2 {
        top: 200px;
        left: 39%;
        transform: translateX(-50%);
    }
    .c3 {
        top: 200px;
        left: 61%;
        transform: translateX(-50%);
    }

    .c4 {
        top: 372px;
        left: 28%;
        transform: translateX(-50%);
    }
    .c5 {
        top: 372px;
        left: 50%;
        transform: translateX(-50%);
    }
    .c6 {
        top: 372px;
        left: 72%;
        transform: translateX(-50%);
    }

    .c7 {
        top: 544px;
        left: 17%;
        transform: translateX(-50%);
    }
    .c8 {
        top: 544px;
        left: 39%;
        transform: translateX(-50%);
    }
    .c9 {
        top: 544px;
        left: 61%;
        transform: translateX(-50%);
    }
    .c10 {
        top: 544px;
        left: 83%;
        transform: translateX(-50%);
    }

    .main-wrapper {
        min-height: 100vh;
        height: auto;
    }

}

@media (max-width: 1280px) {
    .divider {
        display: none;
    }

    .main-wrapper {
        display: flex;
        width: 100vw;
        height: auto;
        min-height: 1080px;
        flex-direction: column;
    }

    .left-side {
        width: 100%;
        min-width: 100vw;
        height: 376px;
        max-height: 376px;
    }

    .right-side {
        width: 100%;
        min-width: 100vw;
        min-height: 720px;
        height: 77vh;

    }

    .card-grid {
        display: none;
    }

    .card-tab-wrapper {
        display: flex;
        overflow-x: auto;
        gap: 0;
        padding: 20px;
        margin-top: -20px;
        scroll-snap-type: x mandatory;
    }

    .card-tab-wrapper {
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* Internet Explorer 10+ */
    }

    .card-tab-wrapper::-webkit-scrollbar {
        display: none;
        /* Safari and Chrome */
    }

    .card-tab {
        flex: 0 0 auto;
        scroll-snap-align: start;
        width: 200px;
        cursor: pointer;
        margin-right: -32px;
        z-index: 2;
    }

    .card-tab img {
        width: 100%;
        border-radius: 12px;
    }

    .popup {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        z-index: 999;
        justify-content: center;
        align-items: center;
    }

    .popup-content {
        position: relative;
        border-radius: 12px;
        padding: 20px;
        max-width: 768px;
        width: 90%;
    }

    .popup-close {
        position: absolute;
        top: 76px;
        left: 622px;
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        z-index: 2;
    }

    .popup-close img {
        width: 32px;
        height: 32px;
        display: block;
    }

    #popup-bg {
        width: 100%;
        border-radius: 12px;
        margin-bottom: 10px;
    }

    .popup-info {
        font-family: 'Oswald', sans-serif;
        text-align: left;
        padding: 10px;
    }

    .popup-name {
        font-size: 24px;
        font-weight: 700;
        color: #D35220;
        text-transform: uppercase;
        margin-bottom: 12px;
    }

    .popup-data {
        background-color: #EFEFEF;
        padding: 10px;
        border-radius: 6px;
        margin-bottom: 12px;
    }

    .popup-item {
        display: flex;
        justify-content: space-between;
        margin-bottom: 6px;
        font-size: 14px;
    }

    .popup-item .label {
        color: #79849B;
        font-weight: 400;
    }

    .popup-item .value {
        font-weight: 600;
        color: #000;
        display: flex;
        align-items: center;
    }

    .popup-item .flag {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }

    .popup-image-wrapper {
        position: relative;
        width: 704px;
        margin-left: -55px;
    }

    .popup-name-overlay {
        position: absolute;
        top: 48px;
        left: 392px;
        text-align: left;
        font-family: 'Oswald', sans-serif;
    }

    .popup-name-overlay .first-name {
        font-size: 24px;
        font-weight: 700;
        color: #000;
        text-transform: uppercase;
        margin-bottom: 0;
    }

    .popup-name-overlay .last-name {
        font-size: 44px;
        font-weight: 700;
        color: #D35220;
        text-transform: uppercase;
        margin-top: -15px;
    }

    .popup-overlay-info {
        position: absolute;
        bottom: 110px;
        right: 15px;
        background-color: #EFEFEF;
        padding: 10px 12px;
        border-radius: 8px;
        width: 296px;
        height: 229px;
        font-family: 'Oswald', sans-serif;
    }

    .popup-overlay-info .popup-item {
        display: flex;
        justify-content: space-between;
        margin-bottom: 6px;
        font-size: 24px;
    }

    .popup-overlay-info .label {
        color: #79849B;
        font-weight: 400;
    }

    .popup-overlay-info .value {
        font-weight: 600;
        color: #000;
        display: flex;
        align-items: center;
    }

    .popup-overlay-info .flag {
        width: 16px;
        height: 16px;
        margin-right: 5px;
    }

    .choose-btn-overlay {
        position: absolute;
        bottom: 30px;
        right: 15px;
        width: 296px;
        height: 64px;
        background-color: #FF7C1E;
        border: none;
        color: white;
        font-family: 'Oswald', sans-serif;
        font-size: 24px;
        font-weight: 600;
        padding: 6px 20px;
        border-radius: 6px;
        cursor: pointer;
    }

    .choose-btn-overlay:hover {
        background-color: #e16915;
    }

    .rg-logo {
        position: absolute;
        top: 24px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        z-index: 2;
    }

    .lang-panel {
        position: absolute;
        top: -380px;
        right: 0;
        display: flex;
        gap: 10px;
    }
    .left-side::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(181,52,2,0.5) 0%, rgba(211,82,32,0.5) 33.29%), url("../img/line.webp") no-repeat center center, url("../img/noise.png") repeat;
        background-size: cover, 100%, auto;
        /* <== увеличим line.webp до 120% */
        pointer-events: none;
        z-index: 1;
    }

    .subtitle {
        display: none;
    }

    .subtitle-tab {
        display: block;
        font-size: 18px;
        margin-top: 95px;
        margin-bottom: 4px;
    }

    .logo-centered {
        width: 125px;
    }

    .header-block {
        position: relative;
        width: 100%;
        margin-bottom: 20px;
        margin-top: 14px;
    }
}

@media (max-width: 767px) {
    .popup-mobile {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        z-index: 999;
        justify-content: center;
        align-items: center;
    }

    .popup-mobile-content {
        background: #fff;
        border-radius: 12px;
        padding: 12px;
        width: 294px;
        height: 311px;
        position: relative;
        font-family: 'Oswald', sans-serif;
    }

    .popup-close-mobile {
        position: absolute;
        top: 12px;
        right: 12px;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .popup-name {
        margin-top: -5px;
        margin-bottom: 15px;
        text-align: left;
    }

    .popup-name .first-name {
        font-size: 20px;
        color: #000;
        font-weight: 700;
        text-transform: uppercase;
    }

    .popup-name .last-name {
        font-size: 32px;
        margin-top: -10px;
        color: #D35220;
        font-weight: 700;
        text-transform: uppercase;
    }

    .popup-data {
        background-color: #EFEFEF;
        padding: 10px;
        border-radius: 6px;
        margin-bottom: 12px;
        margin-top: -15px;
    }

    .popup-item {
        display: flex;
        justify-content: space-between;
        margin-bottom: 6px;
        font-size: 16px;
    }

    .popup-item .label {
        color: #79849B;
        font-weight: 400;
    }

    .popup-item .value {
        font-weight: 600;
        color: #000;
        display: flex;
        align-items: center;
    }

    .popup-item .flag {
        width: 28px;
        height: 28px;
        margin-right: 6px;
    }

    .choose-btn-overlay {
        width: 270px;
        height: 40px;
        background-color: #FF7C1E;
        border: none;
        right: auto;
        color: white;
        font-family: 'Oswald', sans-serif;
        font-size: 20px;
        margin-bottom: -15px;
        font-weight: 600;
        border-radius: 6px;
        cursor: pointer;
    }

    .choose-btn-overlay:hover {
        background-color: #e16915;
    }

    .welcome-img-mob {
        display: block;
        max-width: 480px;
        width: 100%;
        height: auto;
    }
    .welcome-img {
        display: none;
    }

    .main-title {
        font-size: 30px;
        line-height: 39px;
        margin-bottom: 16px;
        margin-top: 10px;
    }

    .logo-centered {
        width: 100px;
    }

    .right-content {
        padding: 0 16px;
        max-width: 420px;
    }

    .header-block {
        position: relative;
        width: 100%;
        margin-bottom: 24px;
        margin-top: 16px;
    }

    .right-side {
        width: 100%;
        min-width: 100vw;
        min-height: 732px;
        height: 77vh;
    }

    .lang-panel {
        position: absolute;
        top: -350px;
        right: 0;
        display: flex;
        gap: 10px;
    }

}
