@font-face {
    font-family: "SF";
    src: url(/fonts/SFProDisplay-Regular.woff);
}
@font-face {
   font-family: "SF";
   src: url("../../fonts/SFProDisplay-Regular.woff");
   font-weight: 700;
}
* {
    margin: 0;
    padding: 0;

    scrollbar-width: thin;
    scrollbar-color: #2D272D #0B090B;
}


body {
    background: #0B090B;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

.wrapper {
    width: 100%;
    margin: 0 auto;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    font-family: "SF";
    font-weight: 500;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 50px; 
    background: #0B090BF2;
    border-bottom: 1px solid #121618;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

.logo img {
    height: auto;
    max-width: 100%;
}

.nav {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: space-between;
    max-width: 100%;
}

.header-center {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    margin: 0 15px;
}

.header-center-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #687894;
    background: #111111;
    border: 2px solid #151515;
    border-radius: 13px;
    padding: 13px 23px; 
    transition: all 0.4s ease;
    white-space: nowrap;
}

.header-btn:hover {
    color: #fff;
    transform: scale(97%);
    background: #151515;
}

.header-btn:hover .header-btn-icon {
    color: #27CA8E;
}

.header-btn-icon {
    color: #687894;
    margin-right: 15px;
    transition: color 0.3s ease;
    width: 20px;
    height: 20px;
}

.header-free {
    color: #FFB932;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-right-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.header-tech-btn,
.header-auth-btn {
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}

.header-tech-btn {
    font-weight: 400;
    padding: 13px 23px;
    color: #7793A1;
    border: 2px solid #0B090BF2;
    border-radius: 13px;
    transition: all 0.3s ease;
}

.header-tech-btn:hover {
    background: #111111;
    border: 2px solid #151515;
    color: #27CA8E;
    transform: scale(97%);
}

.header-auth-btn {
    font-weight: 700;
    padding: 13px 23px;
    color: #fff;
    background: linear-gradient(90deg, rgb(8, 187, 166) 0%, rgba(15,158,84,1) 100%);
    border-radius: 13px;
    border: 2px solid #0B090BF2;
    transition: all 0.3s ease;
}

.header-auth-btn:hover {
    transform: scale(97%);
}

.burger-menu {
    display: none; 
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
    position: absolute;
    top: 27px;
    right: 30px;
}

.burger-line {
    width: 100%;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 15px;
}

.burger-menu.open .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.open .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.open .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -80%;
    width: 70%;
    height: 100vh;
    background: #0B090BF2;
    backdrop-filter: blur(5px);
    border-left: 2px solid #151515;
    z-index: 1000;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.open {
    right: 0;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-list {
    list-style: none;
    margin-left: 25px;
    padding: 0;
    margin-top: 80px; 
}

.mobile-menu-link {
    color: #687894;
    text-decoration: none;
    font-size: 18px;
    margin: 15px 0;
    display: block;
    transition: color 0.3s ease;
}

.mobile-menu-link:hover {
    color: #27CA8E;
}

.main {
    background-image: url(/images/bg-reg.png);
    height: 90vh;
    background-position: center;
    background-size: cover; 
    background-repeat: no-repeat; 
}

.reg-container {
    position: relative;
    top: 175px;
    display: flex;
    flex-direction: column;  /* Элементы будут идти сверху вниз */
    align-items: center;     /* Выравнивание по центру (горизонтально) */
    justify-content: center; /* Выравнивание по центру (вертикально) */
}
.reg-panel {
    width: 710px;
    height: 300px;
    padding: 40px;
    padding-top: 50px;
    background: #141114;
    border-radius: 23px;
}

.reg-explanation {
    width: 790px;
    height: 107px;

    margin-top: 30px;

    background: #0DA3661A;
    border-radius: 20px;
}
.explanation-header {
    margin: 0;
    padding: 0;
    color: #27CA8E;

    font-family: "SF";
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;

    margin-bottom: 5px;
}

.explanation-lower {
    margin: 0;
    padding: 0;
    color: #fff;

    font-family: "SF";
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
}



.reg-explanation img {
    width: 65px;
    height: 65px;
    padding: 18px;
}

.reg-title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reg-title {
    font-family: "SF";
    font-weight: 700;
    font-size: 32px;
    color: #fff;
}

.reg-subtitle {
    font-family: "SF";
    font-weight: 400;
    font-size: 15px;
    color: #7793A1;
    display: flex;
    align-items: center;
}

.link-auth {
    position: relative;
    color: #65FFEA;
    margin-left: 5px;
    transition: 500ms;
}

.link-auth::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -2px;
    width: 0; 
    height: 2px; 
    background-color: #65FFEA; 
    transition: width 0.3s ease; 
}

.link-auth:hover::after {
    width: 100%;
}

.reg-btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 60px;
}

.telegram-btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;

    transition: 400ms;
}

.reg-btn-telegram {
    width: 100%;
    padding: 25px 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 16px 16px 0 0;

    border: none;
    background: #2884F9;
    cursor: pointer;
    color: #fff;
    transition: 400ms;
}

.reg-btn-text {
    flex: none;
}

.recommend-tag {
    width: 99.9%;
    background: #f63e3e;
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    padding: 4px 0;
    border-radius: 0 0 20px 20px;

    font-family: "SF";
    font-weight: 700;
}



.telegram-btn-wrapper:hover {
    color: #2884F9;
    transform: scale(99%);
}


.reg-btn {
    width: 100%;
    padding: 25px 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 16px;
    border: none;
    background: #2884F9;
    cursor: pointer;
    color: #fff;
    transition: 400ms;
}

.reg-btn:hover {
    background: rgba(40, 132, 249, .1);
    color: #2884F9;
    transform: scale(99%);
}

.reg-btn:hover .reg-btn-icon {
    color: #2884F9;
    transform: translateX(50%);
}

.reg-btn-icon {
    color: #fff;
    transition: 400ms;
}

#telegram-btn {
    background: #1B92D1;
    margin-top: 25px;
    transition: 400ms;
}

#telegram-btn:hover {
    background: rgba(27, 146, 209, .1);
    color: #1B92D1;
    /*transform: scale(99%);*/
}

#telegram-btn:hover .reg-btn-icon {
    transform: translateX(50%);
    color: #1B92D1;
}

.reg-btn-text {
    font-size: 16px;
    font-weight: 500;
}

.footer {
    position: relative;
    padding: 70px;
    padding-top: 20px;
    background: #0B090B;
    margin-top: auto;
}

.footer-logo {
    width: 222px;
    height: auto;
}

.footer-nav-container {
    display: flex;
    position: absolute;
    top: 20px;
    right: 0;
}

.footer-nav {
    font-family: "SF";
    font-weight: 400;
    display: flex;
    flex-direction: column;
    margin-right: 90px;
    line-height: 40px;
}

.footer-title {
    font-weight: 500;
    color: #fff;
}

.footer-btn {
    color: #86939E;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-btn::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0; 
    height: 2px; 
    background-color: #27CA8E; 
    transition: width 0.5s ease; 
}

.footer-btn:hover {
    color: #fff;
}

.footer-btn:hover::after {
    width: 100%;
}

.footer-right {
    font-family: "SF";
    font-weight: 400;
    color: #86939E;
    margin-top: 45px;
}

.footer-social-container {
    display: flex;
    align-items: center;
    margin-top: 35px;
}

.footer-social-btn {
    transition: 400ms;
    margin-right: 20px;
    color: #27CA8E;
}

.footer-social-btn:hover {
    color: #fff;
    transform: scale(115%);
}

@media (max-width: 800px) {
    .reg-panel {
        background: none;
        padding: 15px;
    }

    .link-auth:hover::after {
        width: 0;
    }
}

@media (max-width: 580px) {
    .reg-container {
        top: 30px;
    }

    .reg-title-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: static;
    }

    .reg-title {
        margin-bottom: 15px;
    }
}

@media (max-width: 520px) {
    .reg-btn {
        padding: 25px 40px;
    }

    .reg-btn-text {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .reg-btn {
        padding: 25px 25px;
    }
}



/* Адаптация footer и header */
@media (max-width: 1460px) {
    .burger-menu {
        display: flex;
    }

    .header-center,
    .header-right {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }
}

@media (max-width: 1065px) {
    .footer-nav-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
    }

    .footer-nav-container > *:nth-child(1),
    .footer-nav-container > *:nth-child(2) {
        grid-row: 1;
    }

    .footer-nav-container > *:nth-child(3) {
        grid-column: span 2;
        grid-row: 2;
    }
}

@media (max-width: 780px) {
    .footer {
        background: #000;
    }

    .footer-nav-container {
        position: static;
        margin-top: 55px;
    }

    .footer-nav {
        margin-right: 75px;
    }
}

@media (max-width: 440px) {
    .logo {
        width: 200px;
        height: auto;
    }

    .footer {
        padding: 30px;
    }
}