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

html,
body {
    height: 100%;
}

body {
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    background-color: whitesmoke;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

a.regonly {
    color: #7fdda7;
}

a.regonly:hover {
    color: #68cdfd;
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content {
    width: 1184px;
    margin: 0 auto;
    padding: 2rem 0;
    flex: 1;
}

header {
    background: #015792;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-image {
    height: 256px;
    background-image: url('/img/top.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.header-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.header-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    color: white;
    animation: fadeIn 1.5s ease-in-out;
}

.header-overlay h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: whitesmoke;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-overlay .subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    max-width: 800px;
}

.header-overlay .tagline {
    font-size: 1.2rem;
    font-weight: 300;
    font-style: italic;
}

.header-overlay img {
    margin-right: 40px;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: whitesmoke;
    padding: 0.8rem 2rem;
    width: 100%;
}

.header-nav .content {
    justify-content: space-between;
    align-items: center;
    padding: 0;
    display: flex;
}

.header-buttons {
    display: flex;
    gap: 15px;
    justify-self: end;
    width: auto;
    align-items: center;
}

.header-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.telegram-txt {
    color: #000;
    transition: all 0.3s ease-in-out;
}

.telegram-link {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.telegram-link:hover .telegram-txt {
    color: #68cdfd;
}

.telegram-link:hover .telegram-icon {
    transform: scale(1.1);
}

.telegram-icon {
    height: 32px;
    margin-right: 10px;
    transition: all 0.3s ease-in-out;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 174px;
    height: 40px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    background: #7fdda7;
    color: #000000;
    border: 0px solid #000000;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    padding: 0 20px;
}

.btn:hover {
    background: #68cdfd;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn.pulse {
    animation: pulse 2s infinite;
}

#main-content-container {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-wrapper {
    position: relative;
    z-index: 3;
    padding: 20px;
    text-align: center;
    color: #ffffff;
}

.content-wrapper h1 {
    margin-bottom: 40px;
}

.main-content {
    display: flex;
    gap: 30px 80px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

main.content h1 {
    text-align: center;
    margin-bottom: 0rem;
}

.main-content a:hover .service-icon {
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
}

.status-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    max-width: 600px;
    width: 100%;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #f6c109;
}

.status-card p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(8, 205, 253, 0.3);
    border-radius: 50%;
    border-top-color: #f6c109;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 1.5rem;
}

#video-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

#video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#video-box-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.service-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.service-icon {
    display: block;
    margin: 0 auto 10px auto;
    max-width: 150px;
    height: auto;
}

.service-name {
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
}

.faded {
    display: none;
}

#login_wrap {
    display: block;
}

#restore_wrap {
    display: none;
}

.form_wrap h2,
#registration h3 {
    text-align: center;
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #000000;
}

.form_wrap .form_input,
#registration .form_input,
#registration select {
    width: 100%;
    border: 2px solid #555;
    border-radius: 8px;
    background: whitesmoke;
    color: #000000;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    outline: none;
    height: auto;
}

.form_wrap .form_input {
    padding: 8px 15px;
}

#registration .form_input,
#registration select {
    padding: 10px 15px;
}

.form_wrap .form_input:focus,
#registration .form_input:focus,
#registration select:focus,
#registration .jq-selectbox.focused .jq-selectbox__select {
    border-color: #68cdfd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form_wrap .form_input.field_error,
#registration .form_input.ot_field_required,
#registration select.ot_field_required,
#registration .jq-selectbox.ot_field_required .jq-selectbox__select {
    border-color: #dc3545 !important;
}

.form_wrap .form_actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.form_wrap .form_submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    background: #7fdda7;
    color: #000000;
    border: 0px solid #000000;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.form_wrap .form_submit:hover {
    background: #68cdfd;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.form_wrap .page_show {
    font-size: 0.9rem;
    color: #015792;
    transition: color 0.3s ease;
}

.form_wrap .page_show:hover {
    color: #68cdfd;
}

.form_wrap .form_error {
    margin-top: 8px;
    margin-bottom: 15px;
    color: #dc3545;
    font-size: 0.9rem;
    min-height: 1.4em;
}

.form_wrap a.orlink {
    color: #015792;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form_wrap a.orlink:hover {
    color: #68cdfd;
}

.form_wrap div.bottom_txt {
    font-size: 0.9rem;
    color: #000000;
    text-align: center;
    margin-top: 24px;
}

#login {
    border-radius: 20px;
    padding: 30px 20px;
    max-width: 578px;
    width: 90%;
    color: #000000;
    background: whitesmoke;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-left: auto;
    margin-right: auto;
}

#login .form_group {
    margin-bottom: 10px;
}

#registration {
    max-width: 650px;
    margin: 40px auto;
    padding: 30px 40px;
    background: whitesmoke;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #000000;
}

#registration .form_group {
    margin-bottom: 20px;
}

#registration .form_group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #000000;
}

#registration .form_group label.pl_20 {
    padding-left: 0;
}

#registration .form_group label .asterisk {
    color: #dc3545;
    font-weight: bold;
    margin-left: 3px;
}

#registration select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
}

#registration .jq-selectbox__select {
    width: 100% !important;
    padding: 10px 15px !important;
    border: 2px solid #555 !important;
    border-radius: 8px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    height: auto !important;
    box-shadow: none !important;
}

#registration .jq-selectbox__trigger {
    border-left: none !important;
}

#registration .jq-selectbox__trigger-arrow {
    border-top-color: #000000 !important;
    top: 50% !important;
    transform: translateY(-50%);
    right: 15px !important;
}

#registration .form_group input[type="checkbox"]#register_agree+.jq-checkbox {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #555;
    border-radius: 4px;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    box-shadow: none;
    vertical-align: middle;
}

#registration .form_group input[type="checkbox"]#register_agree+.jq-checkbox .jq-checkbox__div {
    background-color: #68cdfd;
    width: 10px;
    height: 10px;
    margin: 3px;
    border-radius: 2px;
}

#registration .form_group input[type="checkbox"]#register_agree:focus+.jq-checkbox {
    outline: none;
    box-shadow: none;
}

#registration .form_group label:has(+ input[type="checkbox"]#register_agree) {
    display: inline-block;
    margin-bottom: 0;
    vertical-align: middle;
    font-weight: normal;
    font-size: 0.9rem;
}

#registration .form_group label a {
    color: #015792;
    text-decoration: underline;
}

#registration .form_group label a:hover {
    color: #68cdfd;
}

#registration #register_submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 45px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    background: #7fdda7;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    padding: 0 25px;
    margin-top: 15px;
}

#registration #register_submit:hover {
    background: #68cdfd;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#registration #register_submit:disabled {
    background: #555;
    color: whitesmoke;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#registration .form_group:has(> #register_submit) {
    text-align: center;
}

#registration .bottom_txt a {
    color: #015792;
    transition: color 0.3s ease;
}

#registration .bottom_txt a:hover {
    color: #68cdfd;
}

.flash-message-success {
    padding: 15px;
    margin: 20px auto;
    max-width: 600px;
    background-color: whitesmoke;
    color: #015792;
    transition: opacity 0.5s ease-out;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #68cdfd;
    font-size: 20px;
    border-radius: 20px;
}

button[data-fancybox-close] {
    display: none !important;
}

#dialog-message {
    background-color: whitesmoke;
    color: #fff;
    padding: 30px 40px;
    border-radius: 15px;
    max-width: 550px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    border: 2px solid #dc3545;
}

#dialog-message h2 {
    color: #dc3545;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

#dialog-message p {
    color: #000000;
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.6;
}

#dialog-message p:last-child {
    margin-bottom: 0;
}

#dialog-message strong.c_red {
    color: #dc3545;
    font-weight: bold;
}

#dialog-message.dialog-success h2 {
    color: #2471a3;
}

#dialog-message.dialog-success {
    border: 2px solid #68cdfd;
}

#dialog-message.dialog-success .dialog-button-wrapper {
    text-align: center;
    margin-top: 20px;
}

#dialog-message.dialog-success .btn-success-dialog {
    display: inline-block;
    padding: 10px 20px;
    background-color: #7fdda7;
    color: #000000;
    text-decoration: none;
    border-radius: 20px;
}

#dialog-message.dialog-success .btn-success-dialog:hover {
    background-color: #68cdfd;
}

.credits-display {
    display: flex;
    align-items: center;
    margin-right: 10px;
    color: #000000;
    font-weight: 500;
    gap: 0px;
}

.credit-icon {
    width: 30px;
    height: 30px;
    margin-right: 5px;
    vertical-align: middle;
    font-size: 18px;
    position: relative;
    top: 4px;
}

.credit-count {
    font-size: 16px;
    vertical-align: middle;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-window {
    visibility: hidden;
    width: 260px;
    background-color: #7fdda7;
    color: #052a34;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    position: absolute;
    z-index: 100;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
    pointer-events: none;
    border: 2px solid whitesmoke;
}

.credits-display .tooltip .tooltip-window {
    width: 160px;
}

.tooltip:hover .tooltip-window {
    visibility: visible;
    opacity: 1;
}

.tooltip img {
    filter: drop-shadow(4px 8px 8px rgba(1, 21, 41, .8));
}

footer {
    background: #015792;
    color: #fff;
    padding: 1.5rem 20px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-c {
    color: #fff;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    transition: all 0.3s ease-in-out;
}

.footer-links a:hover {
    color: #68cdfd;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(127, 221, 167, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(246, 193, 9, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(246, 193, 9, 0);
    }
}

@media screen and (max-width: 1200px) {
    .content {
        width: 100%;
        padding: 2rem 40px;
    }
    .header-nav .content {
        width: 100%;
        padding: 0 40px;
    }
}

@media screen and (max-width: 768px) {
    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .temp-warning-message {
        order: 3;
        width: 100%;
        margin: 10px 0 0 0;
    }
}

@media screen and (max-width: 767px) {
    .content {
        padding: 2rem 20px;
    }
    .header-nav {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 15px;
        padding: 0.8rem 20px;
    }
    
    .header-nav {
        flex-direction: row;
        flex-wrap: wrap; 
        align-items: center;
        justify-content: center; 
        gap: 15px;
        padding: 0.8rem 20px;
    }
    .telegram-txt {
        display: none;
    }
    .header-image {
        height: 215px;
    }
    .header-overlay h1 {
        font-size: 2.0rem;
    }
    .header-overlay .subtitle {
        font-size: 0.8rem;
    }
    .header-overlay img {
        width: 110px;
        margin-right: 15px;
    }
    .btn {
        width: 100%;
    }
    footer {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    #login {
        max-width: 100%;
        width: auto;
        margin-left: 20px;
        margin-right: 20px;
        padding: 30px;
    }
    #registration {
        padding: 20px;
    }
    .form_wrap .form_group {
        margin-bottom: 20px;
    }
    .form_wrap .form_actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    .form_wrap .page_show {
        text-align: center;
        margin-left: 0;
    }
    .form_wrap .form_submit {
        width: 100%;
    }
    .header-buttons {
        width: auto;
        justify-content: flex-start;
        margin-top: 0;
        align-items: center;
        gap: 15px;
        flex-wrap: nowrap;
    }
    .telegram-link {
        margin-bottom: 0;
        align-self: unset;
        flex-shrink: 0;
    }
    .credits-display {
        display: flex;
        align-items: center;
        margin-right: 0;
        flex-shrink: 0;
    }
    #registration #register_submit {
        width: 100%;
    }
    .header-buttons .btn:not(#login_btn) {
        display: inline-flex;
        width: auto;
        min-width: unset;
        height: 40px;
        padding: 0 20px;
        text-indent: 0;
        background-image: none;
    }
    .temp-warning-message {
        color: red;
        font-family: Manrope, sans-serif;
        text-align: center;
        margin: 0 15px;
    }
}