.mc-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--mc-line);
    transition: box-shadow 0.3s var(--mc-ease);
    animation: mc-header-in 0.7s var(--mc-ease) both;
}

body.admin-bar .mc-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .mc-header {
        top: 46px;
    }
}

@media (max-width: 600px) {
    body.admin-bar .mc-header {
        top: 0;
    }
}

.mc-header.is-scrolled {
    box-shadow: 0 6px 24px rgba(10, 11, 20, 0.08);
}

.mc-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--mc-header-h);
}

.mc-logo {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    line-height: 1;
    text-decoration: none;
}

.mc-logo__name {
    font-family: var(--mc-font-head);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--mc-black);
}

.mc-logo__name span {
    color: var(--mc-primary);
}

.mc-logo__tag {
    display: none;
    margin-top: 7px;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--mc-muted);
}

.mc-nav {
    display: flex;
    flex: 1;
    justify-content: center;
}

.mc-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.5vw, 26px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.mc-nav__link {
    position: relative;
    display: block;
    padding: 8px 0;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-decoration: none;
    color: var(--mc-ink);
    transition: color 0.25s var(--mc-ease);
}

.mc-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 2px;
    background: var(--mc-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--mc-ease);
}

.mc-nav__link:hover,
.mc-nav__link.is-active {
    color: var(--mc-primary);
}

.mc-nav__link:hover::after,
.mc-nav__link.is-active::after {
    transform: scaleX(1);
}

.mc-nav__mobile {
    display: none;
}

.mc-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.mc-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: var(--mc-radius);
    background: transparent;
    font-size: 15px;
    color: var(--mc-ink);
    cursor: pointer;
    transition: background 0.25s var(--mc-ease), color 0.25s var(--mc-ease);
}

.mc-icon-btn:hover,
.is-search .mc-icon-btn#mc-search-toggle {
    background: rgba(14, 24, 162, 0.08);
    color: var(--mc-primary);
}

.mc-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.mc-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform 0.35s var(--mc-ease), opacity 0.2s;
}

.is-open .mc-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.is-open .mc-burger span:nth-child(2) {
    opacity: 0;
}

.is-open .mc-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mc-search {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--mc-white);
    border-bottom: 1px solid var(--mc-line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--mc-ease), transform 0.3s var(--mc-ease), visibility 0s 0.3s;
}

.is-search .mc-search {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}

.mc-search__form {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
}

.mc-search__form i {
    color: var(--mc-primary);
}

.mc-search__input {
    flex: 1;
    min-width: 0;
    padding: 10px 0;
    border: 0;
    border-bottom: 2px solid var(--mc-line);
    outline: 0;
    background: transparent;
    font-family: var(--mc-font-head);
    font-size: 22px;
    color: var(--mc-ink);
    transition: border-color 0.3s var(--mc-ease);
}

.mc-search__input:focus {
    border-bottom-color: var(--mc-primary);
}

.mc-search__input::placeholder {
    color: #9a9eb0;
}

@media (min-width: 1360px) {
    .mc-logo__tag {
        display: block;
    }
}

@media (max-width: 1199.98px) {
    .mc-burger {
        display: inline-flex;
    }

    .mc-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: block;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        background: var(--mc-white);
        border-bottom: 1px solid var(--mc-line);
        transition: max-height 0.45s var(--mc-ease), visibility 0s 0.45s;
    }

    .is-open .mc-nav {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        visibility: visible;
        transition-delay: 0s;
    }

    .mc-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 24px 0;
    }

    .mc-nav__link {
        padding: 16px 0;
        border-bottom: 1px solid var(--mc-line);
        font-size: 15px;
    }

    .mc-nav__link::after {
        display: none;
    }

    .mc-nav__mobile {
        display: block;
        padding: 22px 24px 28px;
    }

    .mc-nav__mobile .mc-btn {
        width: 100%;
    }
}

@media (max-width: 639.98px) {
    .mc-header__cta {
        display: none;
    }

    .mc-logo__name {
        font-size: 20px;
    }
}

@keyframes mc-header-in {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

/*////////////////////////////////////////////////  */
/* Footer styles */

.mc-footer {
    position: relative;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.7);
    background: linear-gradient(160deg, #0b1060 0%, #070a3a 30%, var(--mc-black) 70%, #05060d 100%);
}

.mc-footer__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mc-footer__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 85% 0%, #000 5%, transparent 65%);
    mask-image: radial-gradient(ellipse at 85% 0%, #000 5%, transparent 65%);
}

.mc-footer__orb {
    position: absolute;
    top: -220px;
    right: -140px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: var(--mc-primary);
    filter: blur(130px);
    opacity: 0.35;
}

.mc-footer__inner {
    position: relative;
    padding-top: clamp(32px, 3.5vw, 44px);
}

.mc-footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: clamp(24px, 3vw, 32px);
}

.mc-footer__logo {
    display: inline-block;
    line-height: 1;
    text-decoration: none;
}

.mc-footer__logo-name {
    font-family: var(--mc-font-head);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--mc-white);
}

.mc-footer__logo-name span {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    color: #9a9eb0;
}

.mc-footer__tag {
    margin: 14px 0 0;
    max-width: 240px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
}

.mc-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.mc-footer__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--mc-radius);
    font-size: 14px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    transition: background 0.25s var(--mc-ease), border-color 0.25s var(--mc-ease), color 0.25s var(--mc-ease);
}

.mc-footer__socials a:hover {
    border-color: var(--mc-white);
    background: var(--mc-white);
    color: var(--mc-primary);
}

.mc-footer__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
}

.mc-footer__title {
    margin: 0 0 12px;
    font-family: var(--mc-font-body);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mc-white);
}

.mc-footer__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mc-footer__list a,
.mc-footer__legal a {
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.66);
    transition: color 0.25s var(--mc-ease);
}

.mc-footer__list a:hover,
.mc-footer__legal a:hover {
    color: var(--mc-white);
}

.mc-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding: 14px 0 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mc-footer__copy {
    margin: 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.55);
}

.mc-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mc-footer__legal li + li::before {
    content: "·";
    margin: 0 12px;
    color: rgba(255, 255, 255, 0.35);
}

.mc-footer__legal a {
    font-size: 12.5px;
}

@media (min-width: 768px) {
    .mc-footer__nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .mc-footer__top {
        grid-template-columns: 270px minmax(0, 1fr);
        gap: 48px;
    }

    .mc-footer__nav {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 28px 20px;
    }
}

/* ////////////// end footer ////////////////////////// */