:root {
    --yellow: #ffd400;
    --red: #ed1c24;
    --navy: #071d33;
    --ink: #0b1d33;
    --muted: #637083;
    --line: #e9edf2;
    --soft: #f6f8fb;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--white);
}

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

img {
    display: block;
    max-width: 100%;
}

.wrap {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.test-banner {
    position: relative;
    z-index: 80;
    overflow: hidden;
    background: linear-gradient(90deg, #fff1a6 0%, #ffd400 34%, #ffe676 68%, #fff1a6 100%);
    color: #7a1515;
    border-top: 1px solid #f6c600;
    border-bottom: 2px solid #e11d25;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
    box-shadow: 0 4px 16px rgba(7, 29, 51, .08);
}

.test-banner__viewport {
    overflow: hidden;
    width: 100%;
}

.test-banner__track {
    width: max-content;
    min-width: 200%;
    display: flex;
    align-items: center;
    gap: 42px;
    padding: 14px 0;
    white-space: nowrap;
    will-change: transform;
    animation: testBannerScroll 24s linear infinite;
}

.test-banner__track span {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 26px;
}

.test-banner__track span::before {
    content: "!";
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: #e11d25;
    color: #fff;
    font-size: 16px;
    line-height: 1;
}

.test-banner:hover .test-banner__track {
    animation-play-state: paused;
}

@keyframes testBannerScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .test-banner__track {
        width: auto;
        min-width: 100%;
        justify-content: center;
        animation: none;
        white-space: normal;
        text-align: center;
    }

    .test-banner__track span:not(:first-child) {
        display: none;
    }
}

.topbar {
    background: var(--yellow);
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}

.topbar__inner {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-header {
    background: #fff;
    box-shadow: 0 8px 30px rgba(8, 29, 54, .08);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav {
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand img {
    width: 250px;
    height: 82px;
    object-fit: contain;
}

.menu {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.menu a {
    padding: 46px 0 34px;
    border-bottom: 3px solid transparent;
}

.menu a.active,
.menu a:hover {
    color: var(--red);
    border-color: var(--red);
}

.menu-account {
    display: none;
}

.account-link {
    border: 1px solid var(--red);
    color: var(--red);
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    white-space: nowrap;
}

.account-link.active-account {
    background: var(--red);
    color: #fff;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--navy);
}

.hero {
    min-height: 470px;
    position: relative;
    overflow: hidden;
    background: var(--soft);
}

.hero__slide {
    display: none;
    position: relative;
    min-height: 470px;
}

.hero__slide.is-active {
    display: block;
}

.hero.is-ready .hero__slide {
    display: block;
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(18px);
    transition: opacity .55s ease, transform .55s ease;
}

.hero.is-ready .hero__slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.hero__blur {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(12px);
    opacity: .18;
    transform: scale(1.04);
}

.hero__content {
    position: relative;
    min-height: 470px;
    display: grid;
    grid-template-columns: .9fr 1.2fr;
    align-items: center;
    gap: 44px;
}

.hero__copy h1 {
    margin: 0 0 18px;
    max-width: 520px;
    font-size: 46px;
    line-height: 1.05;
    color: var(--navy);
}

.hero__copy h1::first-line {
    color: var(--navy);
}

.hero__copy p {
    max-width: 430px;
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
}

.hero__media img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: center;
}

.hero__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    display: flex;
    justify-content: center;
    gap: 18px;
}

.hero__dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #7d8793;
}

.hero__dots button.is-active {
    background: var(--red);
}

.benefits {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.benefits__grid {
    min-height: 132px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.benefit {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-content: center;
    column-gap: 18px;
    padding: 24px 26px;
    border-right: 1px solid var(--line);
}

.benefit:last-child {
    border-right: 0;
}

.benefit__icon {
    grid-row: span 2;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--yellow);
    color: var(--navy);
    font-size: 28px;
    font-weight: 900;
}

.benefit strong {
    font-size: 16px;
    line-height: 1.25;
}

.benefit p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.products-section {
    padding: 46px 0 34px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.page-hero {
    background:
        linear-gradient(120deg, rgba(255, 212, 0, .26), rgba(255, 255, 255, .82) 45%, rgba(237, 28, 36, .08)),
        #f8fafc;
    border-bottom: 1px solid var(--line);
}

.page-hero__inner {
    min-height: 210px;
    display: grid;
    align-content: center;
    padding: 36px 0;
}

.page-hero span,
.about-copy span,
.info-card span,
.offer-card span {
    display: block;
    margin-bottom: 12px;
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.page-hero h1 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 40px;
    line-height: 1.08;
}

.page-hero p {
    max-width: 720px;
    margin: 0;
    color: #475569;
    font-size: 17px;
    line-height: 1.65;
}

.catalog-section,
.content-section {
    padding: 42px 0 52px;
    background: #fff;
}

.products-section h2,
.about-copy h2 {
    margin: 0;
    text-align: center;
    color: var(--navy);
    font-size: 26px;
}

.section-mark {
    width: 34px;
    height: 3px;
    margin: 12px auto 28px;
    background: var(--red);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.catalog-grid {
    grid-template-columns: repeat(4, 1fr);
}

.product-card {
    min-height: 280px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(8, 29, 54, .06);
    display: flex;
    flex-direction: column;
}

.product-card__image {
    height: 120px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}

.product-card__image img {
    max-height: 110px;
    object-fit: contain;
}

.product-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.3;
}

.product-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.product-card__bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-card__bottom strong {
    color: var(--red);
    font-size: 18px;
}

.product-card__bottom button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--red);
    color: var(--red);
    background: #fff;
    border-radius: 7px;
    font-size: 22px;
    line-height: 1;
}

.empty-state {
    min-height: 160px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    padding: 26px;
}

.empty-state strong {
    color: var(--navy);
    font-size: 20px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

.service-list {
    display: grid;
    gap: 16px;
}

.service-card,
.info-card,
.offer-card,
.contact-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(8, 29, 54, .06);
}

.service-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 18px;
    padding: 22px;
}

.service-card > span {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--yellow);
    color: var(--navy);
    font-size: 26px;
    font-weight: 900;
}

.service-card h2,
.info-card h2,
.offer-card h2,
.contact-panel h2 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 22px;
}

.service-card p,
.info-card p,
.offer-card p,
.contact-panel p {
    margin: 6px 0 0;
    color: #475569;
    line-height: 1.6;
}

.info-grid,
.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.info-card,
.offer-card {
    padding: 22px;
}

.offer-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 16px;
}

.offer-card__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 14px;
}

.offer-card__price del {
    color: var(--muted);
}

.offer-card__price strong {
    color: var(--red);
    font-size: 22px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
    align-items: start;
}

.contact-panel {
    padding: 24px;
}

.contact-panel--muted {
    background: #f8fafc;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.contact-form .span-2 {
    grid-column: span 2;
}

.contact-form label {
    display: grid;
    gap: 6px;
    color: #1f334a;
    font-size: 13px;
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #b9c6d4;
    border-radius: 7px;
    padding: 11px 13px;
    font: inherit;
    color: var(--ink);
    background: #f8fafc;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 0;
    border-color: var(--red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(237, 28, 36, .12);
}

.contact-form button {
    min-height: 46px;
    border: 0;
    border-radius: 7px;
    background: var(--red);
    color: #fff;
    font-weight: 900;
}

.about-section {
    padding: 42px 0 36px;
}

.about-stack {
    display: grid;
    gap: 34px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.12fr;
    gap: 44px;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
}

.about-copy h2 {
    text-align: left;
}

.about-copy p {
    color: #36465a;
    line-height: 1.65;
}

.about-copy ul {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.about-copy li {
    margin: 10px 0;
    padding-left: 28px;
    position: relative;
    font-weight: 700;
    font-size: 14px;
}

.about-copy li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
}

.store-card {
    background: #f4f6f9;
    border-radius: 8px;
    padding: 30px;
}

.store-units {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.store-card__icon {
    display: block;
    color: var(--red);
    font-size: 40px;
    margin-bottom: 12px;
}

.store-card strong {
    display: block;
    margin-bottom: 18px;
    font-size: 18px;
}

.store-card p {
    margin: 8px 0;
    color: #334155;
    font-size: 14px;
}

.store-card a {
    display: inline-block;
    margin-top: 22px;
    border: 1px solid var(--red);
    color: var(--red);
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 800;
    font-size: 13px;
}

.newsletter {
    background: var(--yellow);
    padding: 26px 0;
}

.account-page {
    min-height: 620px;
    padding: 42px 0 56px;
    background:
        linear-gradient(180deg, rgba(255, 212, 0, .13), rgba(255, 255, 255, 0) 260px),
        #f6f8fb;
}

.account-shell {
    display: grid;
    gap: 18px;
}

.account-intro,
.account-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

.account-intro {
    display: block;
    max-width: 760px;
}

.account-intro span,
.account-header span,
.account-card span {
    display: block;
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.account-intro h1,
.account-header h1 {
    margin: 8px 0 10px;
    color: var(--navy);
    font-size: 34px;
    line-height: 1.1;
}

.account-intro p,
.account-header p,
.account-card p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.account-header > a {
    border: 1px solid var(--red);
    color: var(--red);
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 900;
}

.account-alert {
    padding: 13px 16px;
    border: 1px solid #fecdd3;
    border-radius: 8px;
    background: #fff1f2;
    color: #991b1b;
    font-weight: 700;
}

.account-alert--success {
    border-color: #bbf7d0;
    background: #ecfdf3;
    color: #14532d;
}

.account-forms {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 18px;
    align-items: start;
}

.account-box,
.account-card {
    background: #fff;
    border: 1px solid #d9e1eb;
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(8, 29, 54, .08);
}

.account-box {
    padding: 24px;
}

.account-box h2,
.account-card h2 {
    margin: 0 0 18px;
    color: var(--navy);
    font-size: 22px;
}

.account-box form {
    display: grid;
    gap: 14px;
}

.customer-register-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-register-form .span-2 {
    grid-column: span 2;
}

.account-box label {
    display: grid;
    gap: 6px;
    color: #1f334a;
    font-size: 13px;
    font-weight: 800;
}

.account-box input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #b9c6d4;
    border-radius: 7px;
    padding: 11px 13px;
    font: inherit;
    color: var(--ink);
    background: #f8fafc;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.account-box input:focus {
    outline: 0;
    border-color: var(--red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(237, 28, 36, .12);
}

.account-box button {
    min-height: 46px;
    border: 0;
    border-radius: 7px;
    background: var(--red);
    color: #fff;
    font-weight: 900;
}

.account-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.account-card {
    padding: 22px;
}

.account-card h2 {
    margin-top: 8px;
}

.newsletter__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.newsletter strong {
    display: block;
    font-size: 21px;
    margin-bottom: 6px;
}

.newsletter p {
    margin: 0;
}

.newsletter form {
    display: flex;
    gap: 8px;
    width: min(470px, 100%);
}

.newsletter input {
    flex: 1;
    min-width: 0;
    border: 0;
    border-radius: 7px;
    padding: 17px 18px;
    font-size: 15px;
}

.newsletter button {
    border: 0;
    border-radius: 7px;
    background: var(--red);
    color: #fff;
    padding: 0 28px;
    font-weight: 900;
}

.footer {
    background: var(--navy);
    color: #d7e0eb;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 54px;
    padding: 44px 0 34px;
}

.footer h3 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
}

.footer p,
.footer a {
    display: block;
    margin: 0 0 12px;
    line-height: 1.6;
    font-size: 14px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 18px 0 22px;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 980px) {
    .topbar__inner,
    .newsletter__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 0;
    }

    .nav {
        min-height: 86px;
        gap: 14px;
    }

    .brand img {
        width: 190px;
        height: 62px;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .menu {
        display: none;
        position: absolute;
        left: 20px;
        right: 20px;
        top: 86px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 12px;
        box-shadow: 0 18px 36px rgba(8, 29, 54, .14);
    }

    .menu.is-open {
        display: grid;
    }

    .menu a {
        padding: 12px;
    }

    .menu-account {
        display: block;
    }

    .account-link {
        display: none;
    }

    .hero__content,
    .about-grid,
    .footer__grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .benefits__grid,
    .product-grid,
    .catalog-grid,
    .info-grid,
    .offer-grid,
    .account-forms,
    .account-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }

    .account-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .wrap {
        width: min(100% - 24px, 1120px);
    }

    .test-banner {
        font-size: 13px;
    }

    .test-banner__track {
        gap: 22px;
        padding: 12px 0;
        animation-duration: 18s;
    }

    .test-banner__track span {
        padding: 0 14px;
    }

    .hero__copy h1 {
        font-size: 34px;
    }

    .page-hero h1 {
        font-size: 32px;
    }

    .hero__content {
        gap: 20px;
        padding: 28px 0 56px;
    }

    .hero__media img {
        height: 230px;
    }

    .benefits__grid,
    .product-grid,
    .catalog-grid,
    .info-grid,
    .offer-grid,
    .contact-form,
    .account-forms,
    .account-dashboard,
    .customer-register-form {
        grid-template-columns: 1fr;
    }

    .customer-register-form .span-2 {
        grid-column: auto;
    }

    .contact-form .span-2 {
        grid-column: auto;
    }

    .benefit {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .newsletter form {
        flex-direction: column;
    }

    .newsletter button {
        min-height: 50px;
    }
}
