@font-face {
    font-family: 'Monocraft';
    src: url('../fonts/Monocraft.otf') format('opentype'); /* Исправлено */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto_bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto_regular.ttf') format('truetype');

    font-weight: 400;
    font-style: normal;
}

/* 2. Переменные для удобства (цвета, размеры) */
:root {
    --main-bg-color: #151437; /* Темно-фиолетовый фон */
    --primary-color: #FFC844; /* Яркий желтоватый цвет для акцентов */
    --text-color: #ffffff; /* Основной цвет текста */
    --color-black: #000000; /* Черный цвет */
    --heading-color: #ffb100; /* Цвет заголовков (если нужен чуть другой акцент) */
    --btn-hover-color: #d9a530; /* Цвет кнопки при наведении */
    --border-color: #FFD87A; /* Цвет кнопки при наведении */
    --navbar-bg: rgba(26, 25, 69, 1); /* Фон шапки */
    --border-bg: #1A1945; /* Фон ячейки */
    --bg-card: #201F56; /* Фон card */
    --bg-custom: #151437; /* Фон card */
    --border-bg-black: #00000033; /* Затемнения ячейки */
    --violet: #7B5CD5; /* Фиолетовый */
    --violet-hover: #9470FF; /* Фиолетовый */
    --bg-image-1: #50E678;
    --bg-image-2: #fff;
    --bg-image-3: #9470FF;
    --bg-image-4: #201F56;
    --error: #FF4747;
}

html {
    scroll-behavior: smooth;
}

/* 3. Общие стили для документа */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    background-color: var(--main-bg-color);
    color: var(--text-color);
}

.loading-icon {
    width: 192px;
    height: 192px;
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* 4. Стили навигации (Navbar) */
.navbar {
    background-color: var(--navbar-bg) !important;
}

#star-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;

}

#city1,
#city2,
#city3,
#city4,
#city5,
#city6,
#city7 {
    pointer-events: none;
}

.main-img {
    position: absolute;
    bottom: -16px;
    left: 38%;
    transform: translateX(-50%);
    z-index: 200;
    width: 200px;
    height: auto;
}

.monocraft {
    font-family: 'Monocraft', sans-serif;
    color: var(--primary-color);
    font-size: 32px;
}

@media (min-width: 1200px) {
    .monocraft {
        font-size: 64px;
    }
}

.roboto-bold {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.roboto-regular {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-color) !important;
}

/* Обычные ссылки меню */
.nav-link {
    color: var(--text-color) !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-color) !important;
    text-decoration: none;
}

/* Кнопка "Написать нам" в меню */
.navbar .btn-primary {
    background-color: var(--violet);
    border-color: var(--violet);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    border-radius: 5px;
}

.navbar .btn-outline-primary {
    background: none;
    border: 3px solid var(--violet);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    border-radius: 5px;
}

@media (min-width: 992px) {
    #navbarNav {
        display: none !important;
    }
}

.navbar .btn-primary:hover, .navbar .btn-outline-primary:hover {
    background-color: var(--violet-hover);
    border-color: var(--violet-hover);
}

.hover-element {
    color: var(--heading-color);
    cursor: pointer;
    /*transition: filter 0.2s ease;*/
}

.hover-element:hover {
    filter: brightness(0.9);
}

.cell-desc-row {
    background-color: var(--primary-color);
    /*background-size: contain;*/
    /*backdrop-filter: ;*/
    color: var(--color-black);
    font-family: 'Roboto', sans-serif;
    font-weight: 700;

    /*width: fit-content !important;*/
    /*display: inline-block;*/
    /*width: fit-content;*/
    /*max-height: fit-content;*/
    /*min-width: max-content;*/
    /*max-width: 100%;*/
}

.cell-background {
    background-color: var(--primary-color);
    border-radius: .3rem;
}

/* 5. Hero-секция (первый блок) */
section {
    position: relative;
    padding: 4rem 0; /* Можно настроить отступы */
    background: var(--main-bg-color);
    overflow: hidden; /* Если будет фоновое изображение или декоративные элементы */
}

/* 6. Изображение кота (пример, если нужно дополнительно стилизовать) */
.hero img.img-fluid {
    max-width: 20%;
    height: auto;
    position: absolute;
    box-snap: block-end;
    z-index: 100;
}

/* 7. Адаптивность (пример, если хотим менять размер заголовка на маленьких экранах) */
@media (max-width: 768px) {
    section.hero h1 {
        font-size: 2rem;
    }

    section.hero p.lead {
        font-size: 1rem;
    }

    section.gamification h1 {
        font-size: 2.125rem;
    }

    section.gamification p.lead {
        font-size: 1rem;
    }
}

/* game-Секция (Второй блок)*/

section.game .btn.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-size: 1.125rem;
    color: white;
    padding: 0.75rem 7rem;
}

section.game .btn.btn-primary:hover {
    background-color: var(--btn-hover-color);
    border-color: var(--btn-hover-color);
}

section.game .img-button2 {
    position: relative;
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background: var(--violet);
    border: 4px solid white;
    border-radius: 4px;
    margin-right: 10px;
    vertical-align: sub;
}

section.game .img-button {
    position: relative;
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background: var(--violet);
    border: 4px solid white;
    border-radius: 4px;
    margin-right: 10px;
    vertical-align: sub;
}

section.feedback .custom-checkbox {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background: white;
    border: 1px solid var(--violet);
    border-radius: 4px;
    margin-right: 10px;
    vertical-align: sub;
}

/*    8. gamification-Секция (Третий блок)*/
section.gamification {
    position: relative;
    padding: 4rem 0;
    background: url("../images/bg/stars2.png") repeat center center;
    background-size: calc(60% + 40vw);
    overflow: hidden;
}

section.gamification .header {
    font-weight: 500;
    line-height: 112px;
    letter-spacing: 20px;
}

section.gamification p.lead.leadPlus {
    color: var(--primary-color);
}

section.gamification p.lead {
    font-size: 2rem;
    max-width: 700px;
    margin-bottom: 2rem;
    line-height: 56px;
}


section.gamification h1 {
    color: var(--heading-color);
}

section.gamification h1.display-3 {
    display: flex;
    flex-wrap: wrap; /* Разрешаем перенос строк */
    gap: 10px; /* Отступ между словами */
}

section.gamification h1.display-3 span:nth-child(3) {
    flex-basis: 100%;
    mso-highlight: var(--heading-color);
}

section.gamification .container {
    position: relative;
    z-index: 2; /* Чтобы контент был выше псевдоэлемента */
}

.highlight-text {
    text-shadow: 0 0 20px var(--heading-color);
}

.highlight {
    box-shadow: 0 0 20px var(--heading-color);
}

.uppercase {
    text-transform: uppercase;
}

.custom-border {
    position: relative;
    padding: 25px;
    overflow: visible;
}

.custom-border::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    background-color: var(--bg-custom);
    z-index: -1;
}

.custom-border-left::before {
    left: -1000px;
    right: 0;
    clip-path: polygon(0% 0%, 98% 0%, 100% 50%, 98% 100%, 0% 100%);
}

.custom-border-right::before {
    left: 0;
    right: -1000px;
    clip-path: polygon(2% 0%, 100% 0%, 100% 100%, 2% 100%, 0 50%);
}


/* 8. benefit-Секция (Четвертый блок)*/

.benefit {
    width: 100%;
    height: auto;
    background: url('../images/bg/clouds.png') repeat center center;
    background-size: cover;
    overflow: hidden;
}

.main {
    z-index: 150;
    overflow: visible;
}


@keyframes parallax {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -4296px 0;
    }
}


.card {
    margin: 20px;
    width: 140px;
    height: 190px;
    background-color: var(--primary-color);
    align-items: center;
    border: 3px solid var(--border-color);
    border-radius: 3px;
    /*rotate: -10deg;*/
}

.card img {
    margin-top: -37px;
    position: absolute;
    width: 120%;
    z-index: 2;
    flex-basis: fit-content;
}

.card-bg {
    width: 100%;
    height: 85px;
    background-color: var(--bg-card);
    box-shadow: inset 0 0 0 3px var(--bg-card);
}

.card p {
    margin-top: 5px;
    width: 100%;
    height: 85px;
    font-size: 12px;
    color: var(--bg-card);

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card:hover {
    z-index: 9999;
    /*rotate: 0deg;*/
}

/*    9. development-Секция (Пятый блок)*/


.development p.lead {
    font-size: 24px;
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 24px;
}

.development p.lead2 {
    font-size: 20px;
    /*margin-bottom: 2rem;*/
    /*font-weight: 400;*/
    line-height: 24px;
}

.development h1.lead {
    font-size: 60px;
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 70px;
    color: var(--primary-color);
}

.development p {
    font-size: 16px;
    line-height: 18px;
    font-weight: 400;
    color: var(--text-color);
}

/* 10. about-us-Секция (Шестой блок)*/

section.about-us .text {
    font-size: 20px;
    font-family: 'Roboto', sans-serif;
}

section.about-us .lead {
    font-size: 24px;
    font-weight: 700 !important;
    color: var(--primary-color);
}

/* 11. team-Секция (Седьмой блок)*/

.container-phone {
    margin: auto;

    width: 300px;
    height: 600px;
    border-color: black;
    border-style: solid;
    border-width: 16px;
    border-bottom-width: 0;
    border-radius: 36px 36px 0 0;

    background: #7B5CD5;

    position: relative;
}

.container-phone::before {
    content: '';
    display: block;
    width: 130px;
    height: 30px;
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translate(-50%, -50%);
    background: black;
    border-radius: 0 0 20px 20px;
}

.container-phone .content-phone {
    width: 100%;
    height: 30%;
    position: absolute;
    /*background-color: white;*/
    flex-wrap: wrap-reverse;
}

.container-phone .content-phone .text {
    font-size: 45px;
    margin-top: 0;
}

/* 12. feedback-Секция (Восьмой блок)*/

section.feedback input,
section.feedback textarea {
    display: block;
    padding: 10px;
    /*vertical-align: top;*/
    /*resize: vertical;*/
    box-sizing: border-box;
    font-size: 14px;
    outline: none;
    border: none;
}


section.feedback textarea.comment {
    height: 164px;
}

section.feedback .holder {
    margin-right: -20px;
    font-size: 12px;
}

input[type="checkbox"] {
    display: none;
}

.custom-checkbox {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 2px solid var(--violet);
    border-radius: 5px;
    position: relative;
    cursor: pointer;
    box-sizing: border-box;
}

.custom-checkbox::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 14px;
    border: solid white;
    border-width: 0 2px 2px 0;
    border-radius: 2px;
    transform: translate(-50%, -60%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s;
}

input[type="checkbox"]:checked + .custom-checkbox {
    background-color: var(--violet);
}

input[type="checkbox"]:checked + .custom-checkbox::after {
    opacity: 1;
}

section.feedback .errorMessage {
    color: var(--error);
    font-size: 0.900rem;
}

section.feedback .real-checkbox {
    width: 0;
    height: 0;
    opacity: 0;
    position: absolute;
    z-index: -1;
}

section.feedback .real-checkbox:checked + .custom-checkbox::before {
    transform: translate(-50%, -50%) scale(1);
}

section.feedback .real-checkbox:focus + .custom-checkbox {
    box-shadow: 0 0 0 1px var(--violet);
}

section.feedback .pointer {
    color: var(--primary-color);
}

section.feedback .pointer:hover {
    cursor: pointer;
    color: var(--heading-color);
}

section.feedback input:focus::placeholder,
section.feedback textarea:focus::placeholder {
    color: white;
}


.rounded-4 {
    border-radius: .4rem !important
}

.rounded-5 {
    border-radius: .5rem !important
}

.rounded-6 {
    border-radius: .6rem !important
}

.rounded-7 {
    border-radius: .7rem !important
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.swiper {
    width: 120%;
    height: 600px;
    vertical-align: center;
    padding: 40px 0;
}


.swiper-slide {
    max-width: 220px;
    min-height: 320px;
    min-width: 220px;
    max-height: 320px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px;
    background-color: var(--primary-color);
    align-items: center;
    box-shadow: inset 0 0 0 3px var(--violet);
    /*rotate: -10deg;*/
    cursor: pointer;
}

.swiper-slide-mobile {
    max-width: 175px;
    min-height: 230px;
    min-width: 175px;
    max-height: 230px;
}

.swiper-slide-mobile:hover {
    z-index: 10 !important;
    /*rotate: -10deg !important;*/
}


.swiper-card-title {
    color: var(--color-black);
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.swiper-card-text {
    color: var(--color-black);
    margin-top: 10px;
    font-size: 14px;
    padding: 0 10px;
    text-align: center;
}

.swiper-slide:hover {
    z-index: 999;
    rotate: 0deg;
}

.swiper-slide img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    padding: 10px;
    border: 3px solid var(--violet);
}

.swiper-slide-mobile-img {
    width: 110px !important;
    height: 110px !important;
}


.team {
    width: 100%;
    height: auto;
    background-image: url('../images/bg/bg-team.png');
    background-size: auto;
    background-position: top;
}

.team-phone {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 27%;
    background-image: url('../images/bg/phone-solo.png');
    /*background-size: 100%;*/
    background-position: bottom,center;
    background-repeat: no-repeat;
    background-size: contain;
}

.bg-icon {
    background: var(--violet);
    border: 3px solid var(--violet);
    border-radius: 3px;

}

.bg-icon img {
    width: 24px;
    height: 24px;
    object-fit: cover;
}

.play-game {
    background: var(--violet) !important;
    z-index: 0 !important;
}

.play-bg {
    background: url('../images/bg/play.png') no-repeat center;
    background-size: 80%;
}

.fs-7 {
    font-size: 14px;
}

.fs-8 {
    font-size: 11px;
}

.modal-content {
    background: var(--bg-image-4);
    border-radius: 16px;
    color: #fff;
    text-align: center;
}

.modal-header {
    border-bottom: none;
    justify-content: center;
}

.modal-title {
    font-family: 'Monocraft', sans-serif;
    font-size: 24px;
}

.modal-footer {
    border-top: none;
    justify-content: center;
}

.btn-close-custom {
    background-color: var(--heading-color);
/ color: black !important;
    border: none;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    border-radius: 8px;
}

.animate-step {
    position: absolute;
}

.animate-step .sprite-container {
    position: absolute;
}

.mirrored {
    transform: scaleX(-1);
}

.star {
    z-index: -200;
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    will-change: transform, opacity;
    pointer-events: none;
}

@keyframes blink {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.color_text_yellow {
    color: var(--primary-color);
}

.copy-mail {
    position: relative;
    overflow: visible !important;
    display: inline-flex;
    align-items: center;
}

/* Бейдж "Скопировано!" — появляется ПОД ссылкой */
.copied-msg {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: var(--btn-hover-color);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 9999;
}

.copied-msg.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.mt-0-5 {
    margin-top: 2px;
}
