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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #07111f;
    background: #ffffff;
}

body.menu-open {
    overflow: hidden;
}

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

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.icon,
.action-icon,
.newsletter-icon,
.pro-dropdown svg,
.account-dropdown svg {
    display: inline-block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon {
    width: 20px;
    height: 20px;
}

.action-icon {
    width: 27px;
    height: 27px;
}

.newsletter-icon {
    width: 54px;
    height: 54px;
}

/* HEADER */

.site-header {
    position: relative;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e8eef5;
    box-shadow: 0 8px 24px rgba(0, 17, 79, 0.04);
}

.topbar {
    min-height: 42px;
    padding: 0 8%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #00114f 0%, #000b2f 100%);
    color: #ffffff;
}

.topbar > div {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.topbar .icon {
    width: 26px;
    height: 26px;
    color: #ffffff;
}

.topbar strong {
    display: block;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.15;
    font-weight: 900;
    text-transform: uppercase;
}

.topbar span {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    line-height: 1.15;
    font-weight: 600;
}

.header-main {
    min-height: 94px;
    padding: 0 8%;
    display: grid;
    grid-template-columns: 260px minmax(280px, 1fr) auto;
    align-items: center;
    gap: 34px;
    background: #ffffff;
}

.logo {
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.logo-image {
    width: 190px;
    height: auto;
    max-height: 72px;
    object-fit: contain;
    flex-shrink: 0;
}

.search-bar {
    display: flex;
    height: 52px;
    width: 100%;
}

.search-bar input {
    width: 100%;
    min-width: 0;
    padding: 0 20px;
    border: 1px solid #d8e2ee;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    outline: none;
    background: #ffffff;
    color: #07111f;
    font-size: 15px;
}

.search-bar input::placeholder {
    color: #7c8bab;
}

.search-bar input:focus {
    border-color: #005baa;
}

.search-bar button {
    width: 62px;
    border: 0;
    border-radius: 0 8px 8px 0;
    background: #00114f;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar button:hover {
    background: #0044d8;
}

.header-actions {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    color: #00114f;
    font-size: 13px;
    font-weight: 800;
}

.header-action-link,
.pro-menu-button {
    min-width: 76px;
    min-height: 66px;
    padding: 9px 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: #00114f;
    font-size: 13px;
    font-weight: 900;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.header-action-link:hover,
.pro-menu-button:hover {
    color: #0044d8;
    background: #f3f7ff;
    transform: translateY(-1px);
}

.pro-menu-button {
    min-width: 96px;
    background: #eef4ff;
    color: #0034be;
}

.cart-icon-wrap {
    position: relative;
    display: inline-flex;
}

.cart-count {
    position: absolute;
    top: -9px;
    right: -11px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #0054ff;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ACCOUNT DROPDOWN */

.account-menu,
.pro-menu {
    position: relative;
}

.account-dropdown,
.pro-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    border: 1px solid #dce5f5;
    border-radius: 12px;
    background: #ffffff;
    color: #00114f;
    box-shadow: 0 24px 60px rgba(0, 17, 79, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.2s ease;
    z-index: 1200;
}

.account-dropdown {
    width: 260px;
    padding: 18px;
}

.account-dropdown::before,
.pro-dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 44px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-left: 1px solid #dce5f5;
    border-top: 1px solid #dce5f5;
    transform: rotate(45deg);
}

.account-menu:hover .account-dropdown,
.account-menu:focus-within .account-dropdown,
.pro-menu:hover .pro-dropdown,
.pro-menu:focus-within .pro-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-dropdown a,
.pro-dropdown a {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: #00114f;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;
    transition: color 0.2s ease, transform 0.2s ease;
}

.account-dropdown a:last-child,
.pro-dropdown a:last-child {
    margin-bottom: 0;
}

.account-dropdown a:hover,
.pro-dropdown a:hover {
    color: #0044d8;
    transform: translateX(3px);
}

.account-dropdown svg,
.pro-dropdown svg {
    width: 22px;
    height: 22px;
    color: #0034be;
}

/* PRO DROPDOWN */

.pro-dropdown {
    width: 360px;
    padding: 24px;
}

.pro-dropdown h4 {
    margin-bottom: 18px;
    color: #00114f;
    font-size: 14px;
    font-weight: 950;
    text-transform: uppercase;
}

.pro-dropdown-links {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dce5f5;
}

/* NAV */

.main-nav {
    height: 54px;
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 54px;
    border-top: 1px solid #edf2f7;
    color: #07111f;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    background: #ffffff;
}

.main-nav a {
    position: relative;
    transition: color 0.2s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -18px;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: #0054ff;
    transition: width 0.2s ease;
}

.main-nav a:hover,
.main-nav a:first-child {
    color: #0054ff;
}

.main-nav a:hover::after,
.main-nav a:first-child::after {
    width: 100%;
}

/* BURGER */

.burger-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid #d8e2ee;
    border-radius: 10px;
    background: #ffffff;
    color: #07111f;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.burger-button span {
    width: 22px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

body.menu-open .burger-button span:nth-child(2) {
    opacity: 0;
}

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

.mobile-menu {
    display: none;
}

/* NEWSLETTER */

.newsletter {
    padding: 34px 8%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    align-items: center;
    gap: 32px;
    background: linear-gradient(135deg, #003f77, #001b2e);
    color: #ffffff;
}

.newsletter-title {
    display: flex;
    align-items: center;
    gap: 18px;
}

.newsletter-icon {
    flex-shrink: 0;
    color: #ffffff;
}

.newsletter h3 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 6px;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.5;
}

.newsletter form {
    display: flex;
    height: 48px;
}

.newsletter input {
    width: 100%;
    min-width: 0;
    padding: 0 18px;
    border: 0;
    border-radius: 8px 0 0 8px;
    outline: none;
    color: #07111f;
}

.newsletter button {
    padding: 0 28px;
    border: 0;
    border-radius: 0 8px 8px 0;
    background: #0071ce;
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.newsletter button:hover {
    background: #005baa;
}

/* FOOTER */

.site-footer {
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 91, 170, 0.22), transparent 34%),
        linear-gradient(135deg, #001b2e 0%, #000b14 100%);
    color: #ffffff;
}

.footer-inner {
    width: 100%;
    padding: 58px 8% 46px;
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) repeat(4, minmax(150px, 1fr));
    gap: clamp(26px, 3vw, 54px);
    align-items: start;
}

.footer-brand {
    max-width: 360px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
}

.footer-logo .logo-image {
    width: 150px;
    max-height: 80px;
    object-fit: contain;
}

.footer-brand p,
.footer-inner p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.75;
}

.footer-brand p {
    max-width: 310px;
}

.footer-inner h4 {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.footer-inner h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: #0071ce;
}

.footer-inner a {
    width: fit-content;
    display: block;
    margin-bottom: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.45;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-inner a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.social-icons {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-icons a:hover {
    background: rgba(0, 113, 206, 0.25);
    border-color: rgba(255, 255, 255, 0.42);
    transform: translateY(-2px);
}

.footer-contact {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: start;
    gap: 10px;
    margin-top: 11px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.55;
}

.footer-contact .icon {
    flex-shrink: 0;
    margin-top: 1px;
    color: #0071ce;
}

.payment-icons {
    display: grid;
    grid-template-columns: repeat(2, minmax(76px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.payment-icons span {
    min-height: 40px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #ffffff;
    color: #002447;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.footer-bottom {
    padding: 18px 8%;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.58);
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
}

/* RESPONSIVE */

@media (max-width: 1380px) {
    .topbar {
        min-height: 38px;
        padding: 0 5%;
        gap: 18px;
    }

    .topbar > div {
        grid-template-columns: 24px 1fr;
        gap: 8px;
    }

    .topbar .icon {
        width: 22px;
        height: 22px;
    }

    .topbar strong {
        font-size: 11px;
    }

    .topbar span {
        font-size: 10px;
    }

    .header-main {
        min-height: 86px;
        padding: 0 5%;
        grid-template-columns: 220px minmax(220px, 1fr) auto;
        gap: 22px;
    }

    .logo-image {
        width: 160px;
    }

    .header-actions {
        gap: 10px;
    }

    .header-action-link,
    .pro-menu-button {
        min-width: 68px;
        min-height: 58px;
        font-size: 12px;
    }

    .main-nav {
        padding: 0 5%;
        gap: 42px;
    }

    .footer-inner {
        grid-template-columns: 1.4fr repeat(2, minmax(180px, 1fr));
        gap: 38px;
    }

    .footer-brand {
        grid-row: span 2;
    }
}

@media (max-width: 1120px) {
    .topbar {
        display: none;
    }

    .header-main {
        min-height: 76px;
        padding: 14px 6%;
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 16px;
    }

    .logo {
        justify-content: flex-start;
        margin: 0;
    }

    .logo-image {
        width: 135px;
        max-height: 58px;
    }

    .burger-button {
        display: flex;
        order: 3;
    }

    .search-bar {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: 100%;
        margin: 0;
        display: none;
    }

    body.menu-open .search-bar {
        display: flex;
    }

    .header-actions {
        grid-column: 2;
        justify-content: flex-end;
        gap: 12px;
    }

    .header-action-link,
    .pro-menu-button {
        min-width: auto;
        min-height: 44px;
        padding: 0;
        background: transparent;
        font-size: 12px;
    }

    .pro-menu-button span,
    .header-action-link span:not(.cart-icon-wrap) {
        display: none;
    }

    .account-dropdown,
    .pro-dropdown {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu {
        position: fixed;
        inset: 76px 0 0 0;
        z-index: 900;
        display: block;
        padding: 24px 6%;
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid #e8eef5;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
    }

    body.menu-open .mobile-menu {
        transform: translateX(0);
    }

    .mobile-menu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 0;
        border-bottom: 1px solid #edf2f7;
        color: #07111f;
        font-size: 16px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .newsletter {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 30px 6%;
    }

    .footer-inner {
        padding: 46px 6% 38px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 42px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        grid-row: auto;
        max-width: 100%;
        padding-bottom: 8px;
    }

    .footer-brand p {
        max-width: 620px;
    }
}

@media (max-width: 720px) {
    .header-main {
        grid-template-columns: auto 1fr auto;
    }

    .header-actions {
        gap: 10px;
    }

    .action-icon {
        width: 24px;
        height: 24px;
    }

    .newsletter-title {
        align-items: flex-start;
    }

    .newsletter-icon {
        width: 42px;
        height: 42px;
    }

    .newsletter h3 {
        font-size: 21px;
    }

    .newsletter form {
        height: auto;
        flex-direction: column;
        gap: 10px;
    }

    .newsletter input,
    .newsletter button {
        height: 48px;
        width: 100%;
        border-radius: 8px;
    }

    .footer-inner {
        padding: 42px 6% 34px;
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
        width: 100%;
    }

    .footer-brand p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-inner h4 {
        margin-bottom: 14px;
        text-align: center;
    }

    .footer-inner h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-inner a {
        width: 100%;
        margin-bottom: 9px;
        text-align: center;
    }

    .footer-inner a:hover {
        transform: none;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-contact {
        width: fit-content;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .payment-icons {
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .payment-icons span {
        width: 100%;
    }

    .footer-bottom {
        padding: 16px 6%;
    }
}

@media (max-width: 480px) {
    .header-main {
        padding: 12px 5%;
    }

    .logo-image {
        width: 115px;
    }

    .burger-button {
        width: 40px;
        height: 40px;
    }

    .cart-count {
        top: -8px;
        right: -9px;
    }

    .mobile-menu {
        inset: 68px 0 0 0;
        padding: 20px 5%;
    }

    .newsletter {
        padding: 26px 5%;
    }

    .newsletter-title {
        display: grid;
        text-align: center;
        justify-items: center;
    }

    .footer-inner {
        padding: 38px 5% 30px;
        gap: 24px;
    }

    .footer-logo .logo-image {
        width: 130px;
    }

    .footer-inner h4 {
        font-size: 13px;
    }

    .footer-brand p,
    .footer-inner p,
    .footer-inner a,
    .footer-contact {
        font-size: 13px;
    }

    .payment-icons {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .payment-icons span {
        min-height: 38px;
        font-size: 11px;
        border-radius: 8px;
    }

    .footer-bottom {
        padding: 15px 5%;
        font-size: 12px;
    }
}