:root {
    --bs-font-sans-serif: 'Roboto Flex', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --magelan-blue: #0053ce;
    --magelan-dark: #0a1f44;
}

body {
    font-family: 'Roboto Flex', 'Segoe UI', Tahoma, sans-serif;
    background-color: #f4f6fb;
    color: #1b2a4e;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

/* .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
} */

.common-shell {
    max-width: 1140px;
}

.main-banner-placeholder {
    border-radius: 1rem;
    background: #e3ecff;
    padding: 2rem;
    text-align: center;
    color: #0a1f44;
}

/* Header */
.common-header {
    background-color: #1B609B;
    color: #fff;
}

.common-nav-grid {
    width: 100%;
}

.common-nav-grid__services {
    flex-grow: 1;
}

.common-nav-grid__actions {
    display: flex;
    justify-content: flex-end;
}

.common-nav-grid__actions .common-header__actions {
    width: 100%;
}

.common-header .navbar {
    padding: 0;
}

.common-header .navbar-brand img {
    height: 33px;
}

.common-header__phone {
    color: #fff;
    letter-spacing: 0.5px;
    font-size: 18px;
    margin-right: 20px;
}

.common-header .nav-link {
    cursor: pointer;
    color: #fff;
    letter-spacing: 0.5px;
    font-size: 15px;
}

.common-header .nav-link:hover {
    opacity: 0.8;
}

.common-header .dropdown-menu {
    background: #00274c;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.common-header .dropdown-item {
    color: #fff;
    padding: 0.45rem var(--bs-dropdown-item-padding-x) !important;

}

.common-header .dropdown-item:hover {
    background: transparent;
    opacity: 0.8;
}

.common-header__actions .btn {
    white-space: nowrap;
}

.common-header__actions--auth {
    display: flex;
    align-items: center;
    gap: 24px;
}

.common-header__actions--auth a {
    color: #fff;
}

.common-header__action {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.common-header__action-label {
    font-size: 15px;
    text-transform: none;
}

.common-header__action-value {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
}

.common-header__action--favorites {
    flex-direction: row;
    align-items: center;
}

.common-header__action-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.common-header__action--favorites .common-header__action-value {
    font-size: 15px;
    color: #fff;
    font-weight: 300;
}

.common-header__action-meta {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

.common-header__action-icon img{
    width: 24px;
    margin-top: -2px;
}

.common-header__profile {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: right;
    color: #fff;
}

.common-header__profile-text {
    font-size: 15px;
    font-weight: 400;
    line-height: normal;
}

.common-header__profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: #1B609B;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    line-height: 2;
    justify-content: center;
    font-size: 15px;
    text-transform: uppercase;
}

.common-header__profile-avatar--image {
    overflow: hidden;
    padding: 0;
}

.common-header__profile-avatar--image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.common-header__actions--auth a:hover,
.common-header__profile:hover {
    opacity: 0.8;
}

.common-header__link {
    color: #ffe600;
}

.common-header__link:hover {
    opacity: 0.8;
}

.common-header__login {
    background: #1B609B;
    color: #fff;
    padding: 8px 26px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.navbar-toggler {
    border-radius: 999px;
    height: 45px;
}
.navbar-toggler-icon {
    width: 1em !important;
}
/* Footer */
.common-footer {
    background-color: #1B609B;
    color: #fff;
}

.common-footer a {
    color: rgba(255,255,255,0.8);
}

.common-footer .footer-links a {
    display: block;
    margin-bottom: 0.35rem;
}
.common-footer .footer-links a:hover {
    color: #fff;
}

.service-lead-form {
    position: relative;
}

.service-lead-form input[type="text"],
.service-lead-form input[type="email"],
.service-lead-form input[type="tel"],
.service-lead-form textarea {
    width: 100%;
    border: 1px solid #d7e4ff;
    border-radius: 10px;
    background: #f8faff;
    padding: 7px 16px 7px 16px;
    font-size: 16px;
    color: #0b2242;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    appearance: none;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.service-lead-form textarea {
    resize: vertical;
}

.service-lead-form input[type="text"]::placeholder,
.service-lead-form input[type="email"]::placeholder,
.service-lead-form input[type="tel"]::placeholder,
.service-lead-form textarea::placeholder {
    color: #9fb2d4;
}

.service-lead-form input[type="text"]:hover,
.service-lead-form input[type="email"]:hover,
.service-lead-form input[type="tel"]:hover,
.service-lead-form textarea:hover {
    border-color: #9bc0ff;
}

.service-lead-form input[type="text"]:focus,
.service-lead-form input[type="email"]:focus,
.service-lead-form input[type="tel"]:focus,
.service-lead-form textarea:focus {
    border-color: #2d7bff;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 123, 255, 0.18);
}

.service-lead-form__input--error {
    border-color: #f04438 !important;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.2) !important;
}

.service-lead-form__status {
    min-height: 1.2em;
    margin-top: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    transition: color 0.2s ease;
}

.service-lead-form__status[data-state="success"] {
    color: #9ef199;
}

.service-lead-form__status[data-state="error"] {
    color: #ffdede;
}

.service-lead-form--loading [type="submit"] {
    opacity: 0.7;
    pointer-events: none;
}

.service-lead-form--hidden {
    display: none !important;
}

.service-lead-form__success {
    padding: 32px;
    border-radius: 32px;
    text-align: center;
.service-lead-form__success-holder {
    width: 100%;
}

    background: #fff;
    border: 1px solid #e2ebff;
    box-shadow: 0 30px 80px rgba(24, 46, 94, 0.1);
}

.service-lead-form__success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.service-lead-form__success-title {
    font-size: 24px;
    font-weight: 600;
    color: #0b1f41;
    margin-bottom: 8px;
}

.service-lead-form__success-text {
    color: #2d3f62;
    font-size: 16px;
    margin-bottom: 12px;
}

.service-lead-form__success-subtext {
    color: #4d6087;
    font-size: 16px;
    margin-bottom: 0;
}

.service-lead-form__success-phone {
    color: #2d7bff;
    font-weight: 600;
}

/* Misc */
.navbar-toggler {
    border-color: rgba(255,255,255,0.4);
}

.dropdown-menu {
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(10,31,68,0.15);
}

.dropdown-toggle::after {
    position: relative;
    top: 2px;
    left: -5px;
}

@media (min-width: 992px) {
    .common-nav-grid {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
    }

    .common-nav-grid__actions .common-header__actions {
        width: auto;
    }
}

@media (max-width: 991.98px) {
    .common-header .navbar > .common-shell {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 12px;
        row-gap: 12px;
    }

    .navbar-collapse {
        width: 100%;
        grid-column: 1 / -1;
    }

    .dropdown-toggle::after {
        display: none;
    }

    .common-header__phone {
        text-align: center;
        font-size: 16px;
        margin: 0;
        min-width: 0;
    }

    .common-header .navbar-toggler {
        justify-self: end;
    }

    .common-nav-grid {
        display: grid;
        grid-template-columns: 3fr 2fr;
        gap: 18px;
        padding: 24px;
    }

    .common-nav-grid__services .nav-link {
        color: rgba(255,255,255,0.6);
        font-size: 16px;
        letter-spacing: 1px;
        cursor: default;
        pointer-events: none;
    }

    .common-nav-grid__services .nav-item > a.nav-link {
        display: block;
        width: 100%;
        pointer-events: auto;
        color: #fff;
        padding: 0 0 10px 0;
        font-size: 18px;
        letter-spacing: normal;
    }

    .common-nav-grid__services .nav-item > a.nav-link:hover {
        color: #ffe600;
    }

    .common-nav-grid__services .dropdown-menu {
        display: block;
        position: static;
        transform: none !important;
        float: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .common-nav-grid__services .dropdown-item {
        display: block;
        width: 100%;
        white-space: normal;
        word-break: break-word;
        padding: 10px 0 !important;
        font-size: 18px;
    }

    .common-nav-grid__actions {
        align-items: flex-start;
        gap: 16px;
    }

    .common-nav-grid__actions .common-header__actions {
        align-items: flex-end;
        gap: 12px;
    }

    .common-header__actions--auth {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 18px;
        gap: 18px;
    }

    .common-header__action,
    .common-header__action--favorites,
    .common-header__profile,
    .common-header__action-stack {
        width: 100%;
    }

    .common-header__action--favorites {
        flex-direction: row;
        justify-content: space-between;
    }

    .common-header__profile {
        margin-left: 0;
        justify-content: space-between;
    }

    .common-nav-grid__actions .common-header__link {
        font-size: 18px;
    }

    .common-nav-grid__actions .common-header__login {
        text-align: center;
        background: transparent;
        border-color: rgba(255,255,255,0.6);
    }

    .common-nav-grid__actions .btn,
    .common-nav-grid__actions .common-header__login {
        border-radius: 28px;
    }

    .common-nav-grid__actions .btn {
        width: 100%;
    }
}
@media (max-width: 891.98px) {
    .common-nav-grid__actions .common-header__link {
        font-size: 15px;
    }
}

.breadcrumb-item a {
    font-style: normal;
    font-weight: 500;
    font-size: 13px;
    line-height: 15px;
    color: #516A8E;
}

.bg-light {
    background-color: #F0F3F9;
}

.card-body {
    padding-left: 30px;
    padding-right: 30px;
}

/* Common hero card */
.common-hero-card {
    --hero-head-width: 65%;
    --hero-title-width: 120%;
    --hero-image-width: min(420px, 48%);
    --hero-offer-width: 60%;
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 40px;
    min-height: 380px;
    background: linear-gradient(270deg, #C1E7FB, #A0C9F5);
}

.common-hero-card--head-wide {
    --hero-head-width: 75%;
}

.common-hero-card--title-wider {
    --hero-title-width: 140%;
}

.common-hero-card--image-wider {
    --hero-image-width: min(420px, 55%);
}

.common-hero-card--offer-narrow {
    --hero-offer-width: 50%;
}

.common-hero-card__head {
    max-width: 420px;
    width: var(--hero-head-width);
}

.common-hero-card__image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: var(--hero-image-width);
    max-width: 100%;
    height: auto;
    z-index: 2;
    pointer-events: none;
}

.common-hero-card__eyebrow {
    font-size: 18px;
    font-weight: 600;
    color: #0055a7;
    margin: 0 0 12px;
}

.common-hero-card__title {
    font-size: 42px;
    line-height: 45px;
    margin: 0 0 16px;
    color: #0a1f44;
    font-weight: 600;
    width: var(--hero-title-width);
}

.common-hero-card__text {
    font-size: 17px;
    line-height: 1.5;
    margin: 0 0 20px;
    color: #4d5f7a;
}

.common-hero-offer {
    max-width: 420px;
    width: var(--hero-offer-width);
    margin-top: 32px;
    border-radius: 20px;
    padding: 22px 24px 26px;
    background: rgba(33, 89, 136, 0.7);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.common-hero-offer__text {
    margin: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 300;
}

.common-hero-offer__old {
    text-decoration: line-through;
    opacity: 0.8;
}

.common-hero-offer__new {
    font-weight: 700;
}

.common-hero-offer__btn {
    align-self: flex-start;
    padding: 12px 28px;
    position: relative;
    z-index: 3;
}

.common-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 14px 20px;
    font-weight: 500;
    text-decoration: none;
    background: #fff;
    border: none;
    cursor: pointer;
    color: #000;
}

.btn {
    --bs-btn-padding-x: 20px;
    --bs-btn-padding-y: 0;
    --bs-btn-border-radius: 40px;
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    height: 45px;
    font-size: 15px;
    line-height: 20px;
    font-weight: 500;
}

.btn-primary {
    --bs-btn-bg: #0069E3;
    --bs-btn-border-color: #0069E3;
    --bs-btn-hover-bg: #0076FF;
    --bs-btn-hover-border-color: #0076FF;
    --bs-btn-active-bg: #0069E3;
    --bs-btn-active-border-color: #0069E3;
    color: #fff;
}

.btn-secondary {
    --bs-btn-color: #0069E3;
    --bs-btn-bg: #E6F1FC;
    --bs-btn-border-color: #E6F1FC;
    --bs-btn-hover-color: #0069E3;
    --bs-btn-hover-bg: #E2F0FF;
    --bs-btn-hover-border-color: #E2F0FF;
    --bs-btn-active-color: #0069E3;
    --bs-btn-active-bg: #E9F3FF;
    --bs-btn-active-border-color: #E9F3FF;
    color: #0069E3;
}

.btn-light {
    --bs-btn-color: #020618;
    --bs-btn-bg: #FFFFFF;
    --bs-btn-border-color: #E2E8F0;
    --bs-btn-hover-color: #020618;
    --bs-btn-hover-bg: #EAF1F7;
    --bs-btn-hover-border-color: #94A3B8;
    --bs-btn-active-color: #020618;
    --bs-btn-active-bg: #DCE6F2;
    --bs-btn-active-border-color: #7C8BA5;
    box-sizing: border-box;
    color: #020618;
}

.btn-white {
    --bs-btn-color: #0069E3;
    --bs-btn-bg: #FFFFFF;
    --bs-btn-border-color: #E2E8F0;
    --bs-btn-hover-color: #020618;
    --bs-btn-hover-bg: #EAF1F7;
    --bs-btn-hover-border-color: #94A3B8;
    --bs-btn-active-color: #020618;
    --bs-btn-active-bg: #DCE6F2;
    --bs-btn-active-border-color: #7C8BA5;
    box-sizing: border-box;
    color: #0069E3;
    font-weight: 500;
}