:root {
    /* Цвета */
    --color-primary: #006fc4;
    --color-primary-light: #4199c5;
    --color-success: #00b884;
    --color-accent: #5c6ada;
    --color-text: #3e3e3e;
    --color-text-dark: #000000;
    --color-text-light: #647faa;
    --color-bg-light: #f9f9f9;
    --color-bg-very-light: #eff2f5;
    --color-border: #d4d4d4;
    --color-shadow-light: rgba(0, 0, 0, 0.05);

    /* Шрифты */
    --font-main: "Inter", system-ui, -apple-system, sans-serif;
    --font-comfortaa: "Comfortaa", sans-serif;
    --font-raleway: "Raleway", sans-serif;
    --font-helvetica: "Helvetica", sans-serif;

    /* Размеры */
    --container-max: 1615px;
    --border-radius: 10px;
    --shadow-sm: 0 4px 16px var(--color-shadow-light);
    --shadow-md: 10px 10px 21px #f5f5f8, -10px -10px 10px #f8f8f8;
}


/*
@font-face {
    font-family: Comfortaa;
    font-style: normal;
    src: url("Comfortaa.ttf");
}*/

/*___________header___________*/

header {
    position: fixed;
    top: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    transition: 0.5s;
    user-select: none;
    justify-content: space-between;
    z-index: 10;
    background: white;

    height: 70px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
    border: none;
    padding: 0 5% 0 6%;
}

header nav {
    display: flex;
    align-items: center;
}

header nav:first-child > div {
    align-items: center;
    display: none;
}

.notMainHeader {

}

.notMainHeader span {
    color: #647faa;
    font-size: 20px;
    font-weight: bold;
}

.logo {
    margin-top: 5px;
    width: 190px;
    height: auto;
}

.headerButtonContainer {
    position: absolute;
    left: 50%;
    top: 35px;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 35px;
    font-family: "Comfortaa";
}

@media (max-width: 767px) {
    .headerButtonContainer {
        display: none;
/*        left: unset;
        right: 3%;
        transform: translateY(-50%);
        gap: 20px;*/
    }
}


.navButton {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 25px;
    line-height: 2em;
    background-color: white;
    cursor: pointer;
    transition: color 0.35s ease, text-shadow 0.35s ease;
    color: #647faa;
}

.navButton > a {
    font-size: 16px;
    padding: 10px 16px;
    border: none;
    color: #647faa;
    text-decoration: none;
}

.navButton:hover {
    color: #647faa;                 /* основной оттенок */

    text-shadow:
            0 0 4px rgba(178, 195, 222, 0.6),   /* мягкое свечение текста */
            0 0 12px rgba(178, 195, 222, 0.4);   /* второе кольцо для глубины */
}


.angleButton {
    position: relative;
    box-sizing: border-box;
    height: 30px;
    line-height: 2em;
    text-align: center;
    background-color: white;
    margin-left: 35px;
}

.angleButton > a {
    padding: 10px;
    border: none;
    border-radius: 6px;
    color: #647faa;
    text-decoration: none;
}

.angleButton::after, .angleButton::before {
    content: " ";
    z-index: -1;
    display: block;
    position: absolute;
    width: 10px;
    height: 10px;
    background: #c8daf5;
    transition: all .9s ease;
}
.angleButton::before {
    top: -2px;
    right: -2px;
}
.angleButton::after {
    bottom: -2px;
    left: -2px;
}
.angleButton:hover::after,
.angleButton:hover::before {
    width: calc(100% + 4px);
    height: calc(100% + 4px);
}



/*___________buttons______________*/

input {
    font-family: "Comfortaa";
}

.coolPopup {
    display: none;
    position: fixed;
    top: 10%;
    left: 50%;
    flex-direction: column;
    width: 450px;
    box-sizing: border-box;
    padding: 2.4rem 2.6rem;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
            0 20px 40px rgba(0,0,0,0.08),
            0 8px 20px rgba(0,0,0,0.06),
            inset 0 1px 0 rgba(255,255,255,0.7);
    color: #0f172a;

    font-size: 15px;
    line-height: 1.3;
    z-index: 10;
}

.coolPopup * {
    box-sizing: inherit;
    font-family: system-ui, -apple-system, sans-serif;
}

.coolPopup .closeButton {
    position: absolute;
    top: 12px;
    right: 12px;
    cursor: pointer;

}

.closeButton svg {
    opacity:0.4;
}

.closeButton:hover {
    transform: scale(1.1);
    opacity: 1;
    transition: 1s;
}

.coolPopup .closeButton:hover {
    transform: scale(1.3);
}

#regGuestForm {
    top: 20%;
    left: 10%;
    padding: 35px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.guestPopuptext {
    color: black;
    margin-bottom: 15px;
    font-size: 16px;
}

.mobile-only {
    display: none;
}

.mobile-icon {
    width: 22px;
    height: auto;
    margin-right: 8px;
    vertical-align: middle;
}

@media (max-width: 767px) {
    .mobile-only {
        display: block;
        margin-top: 15px;
        color: #911d1d;
    }
}

.coolButton {
    width: calc(100% - 30px);
    margin-left: 15px;

    padding: 12px 50px;
    background: linear-gradient(90deg, #5c6ada, #7382fd);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: "Comfortaa";
    cursor: pointer;
    transition: all 0.3s ease;
}

.longButton {
    width: 100%;
    margin-left:0;
    padding: 12px 15px;
}

.coolButtonContainer {
    display: flex;
    justify-content: center;
}

.form-group {
    position: relative;
    margin-bottom: 1.6rem;
}


.form-group input {
    width: 100%;
    padding: 1rem 1.3rem;
    border: 1px solid rgba(148,163,184,0.4);
    border-radius: 12px;
    background: rgba(255,255,255,0.45);
    font-size: 1rem;
    color: #0f172a;
    transition: all 0.25s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(255,255,255,0.75);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.form-group input::placeholder {
    color: transparent;
}

.form-group label {
    position: absolute;
    left: 1.3rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: -0.55rem;
    left: 1rem;
    font-size: 0.74rem;
    color: #6366f1;
    background: rgba(255,255,255,0.9);
    padding: 0 6px;
    border-radius: 6px;
}

.actung {
    color: #b92b2b;
    margin-top: 10px;
    margin-left: 70px;
}

#regInUsernameError {
    color: red;
}

.red {
    font-size: 15px;
    color: #b92b2b;
    margin-bottom: 15px;
    margin-top: 10px;
}

.yandex-auth-btn-block {
    width: 100%;
    padding: 0.95rem;
    background: rgba(255,255,255,0.5);
    color: black;
    border: 1px solid rgba(148,163,184,0.5);
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
}

.yandex-auth-btn-block img{
    max-height: 20px;
    max-width: 20px;
}

.google-auth-btn-block {
    width: 100%;
    padding: 0.95rem;
    background: rgba(255,255,255,0.5);
    color: #6789c9;
    border: 1px solid rgba(148,163,184,0.5);
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
}

.yandex-auth-btn-block:hover,
.google-auth-btn-block:hover {
    background: rgba(255,255,255,0.75);
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.google-auth-btn-block svg {
    width: 20px;
    height: 20px;
}

.or-wrapper {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.or-line-left {
    flex: 1;
    height: 1px;
    background: linear-gradient(
            to right,
            transparent 0%,
            transparent 30px,
            #b5c8e3 70px,
            #b5c8e3 100%
    );
}

.or-line-right {
    flex: 1;
    height: 1px;
    background: linear-gradient(
            to right,
            #b5c8e3 0%,
            #b5c8e3 calc(100% - 70px),
            transparent calc(100% - 30px),
            transparent 100%
    );
}

.or-text {
    background: rgba(255,255,255,0.65);
    white-space: nowrap;
    text-shadow:
            6px  0 12px white,
            -6px  0 12px white;
}


.footer-divider {
    height: 1px;
    margin: 0.5rem 0 0.5rem;
    background: linear-gradient(
            to right,
            transparent 0%,
            rgba(148,163,184,0.45) 15%,
            rgba(148,163,184,0.45) 85%,
            transparent 100%
    );
}

.footer-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.4;
}

.footer-terms input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: #6366f1;
}

.footer-terms a {
    color: #6366f1;
    text-decoration: none;
}

.password-reset-email {
    color: #475569;
    font-size: 16px;
    margin-bottom: 20px
}

/*_________footer______*/

footer {
    width: 100%;
    background: #142339;
    /*#1f2937;*/
    color: white;
    text-align: center;
    margin-top: auto;           /* ← прижимает к низу, если контента мало */
    padding: 1.6rem 0 1.6rem;
    z-index:1
}

.footerLogoNav {
    display: flex;
    padding: 0 5% 0;
}

.footer-two-row {
    display: flex;
    flex-direction: column;
    width: max-content;
    flex: 1;
    align-items: center;
}

.footer-menu {
    display: flex;
/*    -ms-flex-wrap: wrap;
    flex-wrap: wrap;*/
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 0 60px;
    margin-left: 10%

}

.footer-menu__link {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #b4b4b4;
    white-space: nowrap;
    text-decoration: none
}

.footer-menu__link:hover {
    text-decoration: underline
}

@media only screen and (max-width: 1365px) {
    .footer-menu {
        gap: 0 51px
    }
}

@media only screen and (max-width: 1023px) {
    .footer-menu {
        gap: 0 20px;
        margin-left: 3%
    }
}

@media only screen and (max-width: 767px) {
    .footer-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px 20px;
        max-width: 800px;
        justify-content: space-evenly;
        align-items: center;
        margin: 15px auto 0;
    }
}

.footer-menu li::marker {
    color: #646363;
}

.footer_scroll {
    z-index: 1;
}

.copyright {
    text-align: center;
    border-top: 1px solid #26345b;
    margin-top: 20px;
    padding-top: 20px;
    font-size: 15px;
    color: #b4b4b4;
    line-height: 1.4;
}

/*_________cookie______*/
#cookie-banner {
    position: fixed;
    font-size: 16px;
    width: max-content;
    max-width: 90%;
    bottom: 20px;
    right: 20px;
    padding: 25px;
    text-align: center;
    z-index: 9999;

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
            0 20px 40px rgba(0,0,0,0.08),
            0 8px 20px rgba(0,0,0,0.06),
            inset 0 1px 0 rgba(255,255,255,0.7);
    font-family: system-ui, -apple-system, sans-serif;

    transition: all 0.4s ease;   /* запасной вариант плавности */
    transform-origin: right bottom;

    /* Анимация, привязанная к скроллу */
    animation: grow linear forwards;
    animation-timeline: scroll();           /* ← вот это главное */
    animation-range: 0px 600px;             /* от 0 до 600px скролла */
}

@keyframes grow {
    to {
        opacity: 1;
        transform: scale(1.15);               /* или больше, например 1.3 */
        padding: 30px;
        font-size: 1rem;
        right: 40px;
        box-shadow: 0 -12px 40px rgba(0,0,0,0.5);
    }
}

#cookie-banner button {
    border: none;
    margin-top: 10px;
    font-size: 17px;
    background: none;
    color: #304ee7;
    margin-left: 20px;
}

#cookie-banner button:hover {
    text-decoration: underline;
    text-decoration-color: #304ee7;
}

/* ====================== DROPDOWN ====================== */

/*это только в main*/
.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;                   /* "мостик" 10–15 px */
    background: transparent;
    z-index: 9;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    color: #647faa;
    padding: 0.75rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 6px;
    overflow: hidden;
    z-index: 10;
    top: calc(100% + 4px);
    left: 0;
    padding-top: 8px;
}

.dropdown:hover .dropdown-content,
.dropdown:hover::after {
    display: block;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
}

.dropdown-content a:hover {
    background-color: #f5f7fa;
    color: #0066cc;
}

.arrow-resource {
    color: #647faa;
    filter: brightness(0) saturate(100%) invert(45%) sepia(18%) saturate(1243%) hue-rotate(186deg) brightness(92%) contrast(87%);
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    width: 14px;
    height: 12px;
    transform: rotate(180deg);
}

.dropdown:hover .arrow-resource {
    transform: rotate(0deg);
}

.dropdown:hover .arrow-resource {
    transform: rotate(0deg);
}

/* Мобильная адаптация (пример) */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        border-top: 1px solid #eee;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/* Анимация появления (опционально, но красиво) - кажется не используется*/
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0);   }
}

/* ====================== BUTTONS ====================== */
/*
.link-button {
    color: white;
    display: inline-block;
    font-family: "Inter";
    font-size: 17px;
    border-radius: 5px;
    padding: 8px 15px;
    text-decoration: none;
    outline: 0;
}*/

.buttonAlreadySignedRus {
    background: linear-gradient(90deg, var(--color-accent), #7382fd);
    color: #fff;
    border: 1px solid transparent;
}

.signHover {
    display: none;
}

.buttonAlreadySignedRus:hover .signDefault {
    display: none;
}

.buttonAlreadySignedRus:hover .signHover {
    display: inline;
}

.moveToApp {
    margin-right: 15px;
    transition: 0.2s;

    outline: none;
    border: 1px solid #bad2dd;
    padding: 6px 14px;
    background-color: white;
    font-size: 16px;
    color: #4199c5;
    border-radius: 8px;
    font-weight: bold;
    font-family: "Comfortaa";
    cursor: pointer;
}

.moveToApp img {
    max-height: 22px;
    max-width: 22px;
}


.link-button {
    display: inline-block;
    font-family: "Comfortaa";
    font-size: 16px;
    border-radius: 5px;
    padding: 8px 15px;
    text-decoration: none;
    outline: 0;
    transition: all 0.3s ease;
    width: max-content;
}

.link-button--create {
    background-color: var(--color-success);
    border: 1px solid var(--color-success);
    color: #fff;
}

.link-button--create:hover {
    background-color: transparent;
    color: var(--color-success);
}

.link-button--sign {
    background: linear-gradient(90deg, var(--color-accent), #7382fd);
    color: #fff;
    border: 1px solid transparent;
}

.link-button--sign:hover {
    background: #ffffff;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.link-button--login {
    background-color: #ffffff;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.link-button--login:hover {
    background-color: var(--color-primary);
    color: #fff;
}

@media (max-width: 1365px) {
    .link-button { font-size: 15px; padding: 15px 15px; }
}

@media (max-width: 767px) {
    .link-button { padding: 4px 7px; }
}

.imgProfile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.imgProfile div {
    color: #1a60aa;
}

.imgProfile img {
    margin-top: 2px;
    max-height: 16px;
    max-width: 16px;
}

.confirmHead {
    display: flex;
    font-family: "Comfortaa";
    font-weight: bold;
    font-size: 18px;
    justify-content: center;
    margin-bottom: 5px;
}

.enterNums {
    margin-top: 10px;
    margin-left: 10px;
    width: 80px;
    font-size: 17px;
    letter-spacing: 0.05em;
    padding: 10px;
}