@import "solana.fonts.css";

/* ==================== VARIABLES ==================== */
:root {
    --solana-font-body: 'Cairo', 'Gilroy', sans-serif;
    --solana-font-display: 'Gilroy', sans-serif;
    --solana-font-heading: 'Cairo', sans-serif;
    --solana-font-logo: 'Soyuz Grotesk', sans-serif;

    --solana-color-black: #000;
    --solana-color-white: #fff;
    --solana-color-text: #222;
    --solana-color-text-dark: #1e1d4c;
    --solana-color-text-muted: rgba(0, 0, 0, 0.6);
    --solana-color-text-light: rgba(0, 0, 0, 0.8);

    --solana-color-bg: #fff;
    --solana-color-bg-gray: #f2f2f2;
    --solana-color-bg-card: #f6f6f6;
    --solana-color-bg-hero: #f1f1f1;

    --solana-color-slider-fill: #3c3c3c;
    --solana-color-slider-track: rgba(131, 131, 131, 0.5);

    --solana-color-footer-bg: #000;
    --solana-color-footer-text: #fff;
    --solana-color-footer-muted: rgba(255, 255, 255, 0.7);

    --solana-radius-form: 42px;
    --solana-radius-card: 32px;
    --solana-radius-step: 28px;
    --solana-radius-btn: 12px;
    --solana-radius-section: 30px;

    --solana-color-black-hover: #333;
}

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

body {
    font-family: var(--solana-font-body);
    background-color: var(--solana-color-bg);
    color: var(--solana-color-text);
}

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

.container {
    width: 100%;
    max-width: 1280px;
    padding-right: 20px;
    padding-left: 20px;
    margin-right: auto;
    margin-left: auto;
}

.hide {
    display: none;
}

/* ==================== HEADER ==================== */
.header {
    position: absolute;
    z-index: 10;
    width: 100%;
    left: 0;
    top: 0;
    padding: 20px 0;
    background-color: transparent;
}

.main-header {
    background-color: transparent;
}

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

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #000;
}

.header-logo__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-logo__text {
    font-family: var(--solana-font-logo);
    font-weight: 700;
    font-size: 38px;
    line-height: 1;
    color: #000;
}

.header__contacts {
    text-align: center;
    color: #000;
    font-size: 19px;
    font-family: var(--solana-font-heading);
}

.header__contacts-tel {
    color: #000;
    font-weight: 500;
    font-size: 19px;
    font-family: var(--solana-font-heading);
}

.header__contacts-sub {
    color: var(--solana-color-text-muted);
    font-size: 15px;
    font-weight: 400;
}

.header__auth {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 119px;
    height: 45px;
    background-color: transparent;
    border: 1.5px solid #000;
    border-radius: 8px;
    color: #000;
    font-weight: 500;
    font-size: 21px;
    font-family: var(--solana-font-heading);
    transition: background-color 0.2s;
}

.header__auth:hover {
    background-color: #f5f5f5;
    color: #000;
}

.header__auth:focus-visible,
.footer__docs-item:focus-visible,
.footer__top-contact-group a:focus-visible,
.cookie-banner__button:focus-visible,
.footer__read-more:focus-visible,
.pdf-modal__close:focus-visible {
    outline: 2px solid var(--solana-color-black);
    outline-offset: 2px;
}


.header__phone-mobile {
    display: none;
}

@media (max-width: 991px) {
    .header__contacts {
        display: none;
    }

    .header-logo {
        display: flex;
    }

    .header-logo__icon svg {
        width: 25px;
        height: 26px;
    }

    .header-logo__text {
        font-size: 28px;
    }

    .header__phone-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header__auth {
        width: 60px;
        height: 31px;
        font-size: 14px;
        border-radius: 3px;
    }
}

/* ==================== FOOTER ==================== */
.footer {
    margin-top: 0;
    padding-bottom: 40px;
}

.footer__top {
    background-color: var(--solana-color-footer-bg);
    border-radius: 22px;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer__top-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.footer__top-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer__top-logo-text {
    font-family: var(--solana-font-logo);
    font-weight: 700;
    font-size: 48px;
    color: #fff;
    line-height: 1;
}

.footer__top-contacts {
    display: flex;
    gap: 50px;
}

.footer__top-contacts-label {
    font-family: var(--solana-font-heading);
    font-weight: 300;
    font-size: 15px;
    color: var(--solana-color-footer-text);
    width: 100%;
}

.footer__top-contacts-label--mobile {
    display: none;
}

.footer__top-contact-group {
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}

.footer__top-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    flex-shrink: 0;
    color: var(--solana-color-footer-text);
}

.footer__top-contact-group a {
    color: #fff;
    font-family: var(--solana-font-heading);
    font-weight: 500;
    font-size: 17px;
}


.footer__top-schedule {
    color: #fff;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer__top-schedule-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    flex-shrink: 0;
    color: var(--solana-color-footer-text);
}

.footer__top-schedule-title {
    font-family: var(--solana-font-heading);
    font-weight: 500;
    font-size: 17px;
}

.footer__top-schedule-sub {
    font-family: var(--solana-font-heading);
    font-weight: 300;
    font-size: 15px;
    color: var(--solana-color-footer-muted);
}

.footer__docs {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0;
}

.footer__docs-item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
    color: var(--solana-color-black);
    font-size: 12px;
    line-height: 1.5;
}

.footer__docs-item::before {
    content: "";
    display: block;
    width: 17px;
    height: 17px;
    min-width: 17px;
    background-image: url("data:image/svg+xml,%3Csvg width='17' height='17' viewBox='0 0 17 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8.5' cy='8.5' r='8.5' fill='%23E4E4E4'/%3E%3Cpath d='M12.7672 7.8461V6.75635C12.7672 6.39524 12.4744 6.10251 12.1133 6.10251H9.16483C9.00271 6.10251 8.84637 6.04228 8.72615 5.93351L8.13616 5.39971C8.01594 5.29094 7.8596 5.23071 7.69748 5.23071H5.23075C4.86964 5.23071 4.5769 5.52345 4.5769 5.88456V11.1153C4.5769 11.4764 4.86964 11.7692 5.23075 11.7692H5.65871C5.85948 11.7692 6.02225 11.6064 6.02225 11.4056C6.02225 11.3579 6.03166 11.3106 6.04995 11.2664L7.30035 8.24959C7.40159 8.00534 7.63997 7.8461 7.90437 7.8461H12.793C13.248 7.8461 13.5638 8.29912 13.4066 8.72598L12.443 11.3414C12.3483 11.5984 12.1034 11.7692 11.8295 11.7692H5.54047' stroke='%23565656' stroke-width='0.653846' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 1px;
    flex-shrink: 0;
}

.footer__content:not(:last-child) {
    margin-bottom: 20px;
}

.footer__content,
.footer__content * {
    font-size: 12px;
    color: rgba(0, 0, 0, .5);
    line-height: 1.5;
}

.footer__content a {
    color: rgba(0, 0, 0, .5) !important;
    text-decoration: underline;
}

.footer__top-contact-group a:hover {
    opacity: 0.8;
}

.footer__docs-item:hover {
    color: #555;
}

.footer__content a:hover {
    color: rgba(0, 0, 0, .7) !important;
}

.footer__read-more {
    font-family: var(--solana-font-display);
    font-weight: 500;
    font-size: 12px;
    color: var(--solana-color-text-muted);
    cursor: pointer;
    margin-top: 5px;
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
}


@media (max-width: 991px) {
    .footer {
        padding-bottom: 20px;
    }

    .footer__top {
        flex-direction: column;
        gap: 16px;
        padding: 20px 15px;
        align-items: flex-start;
        border-radius: 16px;
        margin-bottom: 20px;
    }

    .footer__top-logo-text {
        font-size: 32px;
    }

    .footer__top-contacts {
        flex-wrap: wrap;
        gap: 8px 30px;
    }

    .footer__top-contacts-label--desktop {
        display: none;
    }

    .footer__top-contacts-label--mobile {
        display: block;
        width: 100%;
    }

    .footer__top-contact-group a {
        font-size: 15px;
    }

    .footer__top-contacts-label {
        font-size: 13px;
    }

    .footer__top-contact-group .label {
        font-size: 13px;
    }

    .footer__top-schedule-title {
        font-size: 15px;
    }

    .footer__top-schedule-sub {
        font-size: 13px;
        color: var(--solana-color-footer-text);
    }

    .footer__docs {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    .footer__docs-item {
        font-size: 11px;
    }

    .footer__content,
    .footer__content * {
        font-size: 11px;
    }
}

/* ==================== MODALS ==================== */
.info-modal {
    border-radius: 25px;
}

.sms-modal {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    align-content: center;
}

.sms-modal p {
    font-size: 22px;
    font-weight: 500;
    text-align: center;
}

.sms-modal .form-phone {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 24px;
}

.sms-modal .form-phone .phone_info {
    position: relative;
    top: unset;
    left: unset;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
}

.sms-modal .form-phone .error_text {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: red;
    margin-top: 10px;
}

.sms-modal .sms-code-inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.sms-modal .sms-code-inputs .sms-digit-input {
    height: 60px;
    background-color: rgba(234, 234, 234, 1);
    border-radius: 13px;
    border: none;
    outline: none;
    font-size: 40px;
    width: 60px;
    text-align: center;
}

.sms-modal .-error .sms-digit-input {
    background-color: rgba(255, 223, 223, 1);
    border: 1px solid rgba(255, 0, 0, 1);
}

.sms-modal .sms-repeat {
    margin-top: 13px;
    color: rgba(0, 0, 0, 0.6);
    font-size: 16px;
    font-weight: 400;
    text-align: center;
}

.sms-modal .btn {
    justify-self: center;
    align-self: center;
    background-color: #000;
    width: 210px;
    height: 60px;
    border-radius: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    margin-top: 24px;
}

/* ==================== ALERTS ==================== */
.alert {
    margin: 40px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: 500;
}

.alert-danger {
    color: #FF0000;
}

.alert-warning {
    color: #FF0000;
}

.alert-success {
    color: #25DE63;
}

.error_text {
    color: red;
}

/* mobile menu removed — not in design */

/* ==================== PDF MODAL ==================== */
.pdf-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.pdf-modal__content {
    margin: 5% auto;
    width: 80%;
    max-width: 1200px;
    height: 85%;
    max-height: 800px;
    background-color: var(--solana-color-bg);
    padding: 20px;
    position: relative;
    border-radius: 8px;
    cursor: default;
}

.pdf-modal__close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--solana-color-black);
    line-height: 1;
    padding: 5px;
}

.pdf-modal__container {
    width: 100%;
    height: calc(100% - 10px);
}

@media (max-width: 991px) {
    .pdf-modal__content {
        width: 95%;
        height: 90%;
        margin: 2% auto;
        padding: 15px;
    }
}

/* ==================== COOKIE BANNER ==================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f5f5f5;
    z-index: 9999;
    padding: 15px 0;
}

.cookie-banner__content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-banner__txt {
    font-size: 13px;
    color: #666;
}

.cookie-banner__link {
    color: #000;
}

.cookie-banner__button {
    background: #000;
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}
