:root {
    --ink: #101624;
    --muted: #687184;
    --line: #e7ebf1;
    --surface: #fff;
    --surface-soft: #f6f8fb;
    --navy: #061427;
    --navy-2: #0a2138;
    --green: #29c96f;
    --green-dark: #079767;
    --blue: #4054dc;
    --orange: #ff9f2e;
    --shadow: 0 18px 45px rgba(17, 29, 49, .12);
    --radius: 8px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    background: #edf1f6;
}

body {
    display: flex;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: #edf1f6;
    flex-direction: column;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

img,
svg {
    display: block;
}

a {
    color: inherit;
}

.icon-sprite {
    display: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(210px, 280px) 1fr;
    gap: 22px;
    align-items: center;
    width: min(var(--max), 100%);
    margin: 14px auto 0;
    padding: 17px 28px;
    color: #fff;
    background: rgba(5, 15, 31, .97);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}

.brand {
    text-decoration: none;
}

.brand-name {
    display: block;
    font-size: 29px;
    line-height: 1;
    font-weight: 850;
}

.brand-name span {
    color: var(--green);
}

.brand-claim {
    display: block;
    margin-top: 7px;
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
    font-weight: 650;
}

.primary-nav {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.primary-nav a {
    display: inline-flex;
    min-width: 78px;
    min-height: 54px;
    padding: 7px 10px;
    color: rgba(255, 255, 255, .78);
    align-items: center;
    border-radius: var(--radius);
    flex-direction: column;
    font-size: 12px;
    font-weight: 750;
    gap: 5px;
    justify-content: center;
    text-decoration: none;
}

.primary-nav a.active,
.primary-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.primary-nav svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.site-main {
    width: min(var(--max), 100%);
    margin: 0 auto;
    padding: 0 44px 48px;
    background: var(--surface);
    border-right: 1px solid #dde3ea;
    border-left: 1px solid #dde3ea;
    flex: 1 0 auto;
}

.hero {
    position: relative;
    display: grid;
    min-height: 410px;
    margin: 0 -45px;
    padding: 42px 76px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 80% 40%, rgba(37, 88, 131, .72), transparent 33%),
        linear-gradient(145deg, var(--navy), var(--navy-2) 56%, #06101f);
    align-items: center;
    gap: 30px;
    grid-template-columns: minmax(0, .95fr) minmax(300px, .8fr);
}

.hero-copy,
.hero-media {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 14px;
    color: #b8f7cf;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 900;
    line-height: 1.08;
}

.hero h1 span,
.page-hero h1 span {
    color: var(--green);
}

.hero-text,
.page-hero > p:last-child {
    max-width: 590px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .76);
    font-size: 17px;
    font-weight: 650;
}

.hero-media img {
    width: min(100%, 560px);
    margin-left: auto;
}

.hero-search,
.deal-search {
    margin-top: 28px;
}

.search-row {
    display: grid;
    max-width: 640px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: var(--radius);
    box-shadow: 0 18px 35px rgba(0, 0, 0, .22);
    grid-template-columns: 1fr auto;
}

.search-row input {
    width: 100%;
    min-width: 0;
    height: 62px;
    padding: 0 22px;
    color: var(--ink);
    background: #fff;
    border: 0;
    font: inherit;
    font-weight: 700;
    outline: none;
}

.search-row button {
    display: inline-flex;
    width: 62px;
    height: 62px;
    color: #fff;
    background: linear-gradient(135deg, #43dc72, #11a66f);
    border: 0;
    align-items: center;
    cursor: pointer;
    justify-content: center;
}

.search-row button svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

.trust-rail {
    display: grid;
    margin: 0 -45px 28px;
    color: #fff;
    background: #102844;
    grid-template-columns: repeat(4, 1fr);
}

.trust-item {
    display: flex;
    min-height: 92px;
    padding: 20px 26px;
    background: rgba(19, 48, 78, .76);
    border-right: 1px solid rgba(255, 255, 255, .08);
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
}

.trust-item:hover {
    background: #173d62;
}

.trust-item strong {
    font-size: 14px;
}

.trust-item span {
    margin-top: 3px;
    color: rgba(255, 255, 255, .66);
    font-size: 13px;
}

.section-block,
.page-shell,
.article-shell {
    padding: 30px 0 12px;
}

.section-block .section-block {
    padding-top: 0;
}

.section-heading {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
    gap: 18px;
    justify-content: space-between;
}

.section-heading h2,
.newsletter h2,
.article-shell h1 {
    margin: 0;
    color: var(--ink);
    font-size: 27px;
    font-weight: 900;
    line-height: 1.18;
}

.section-heading a,
.back a,
.clear-link {
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.card-grid,
.deal-grid,
.coupon-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card,
.deal-card,
.coupon-card,
.info-panel {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(25, 37, 55, .07);
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-card a {
    text-decoration: none;
}

.card-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #eef4f8, #d9e8f0);
    aspect-ratio: 1.55;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    color: #0f3a56;
    background:
        radial-gradient(circle at 72% 30%, rgba(41, 201, 111, .2), transparent 30%),
        linear-gradient(145deg, #f7fbff, #dbe8f0);
    font-size: 56px;
    font-weight: 900;
    place-items: center;
}

.badge,
.tag {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding: 5px 9px;
    color: #fff;
    background: var(--green-dark);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.card-media .badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

.card-body {
    display: flex;
    padding: 16px;
    flex: 1;
    flex-direction: column;
    gap: 10px;
}

.card-body h2,
.card-body h3,
.deal-card h3,
.coupon-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.32;
}

.meta {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.excerpt,
.deal-card p,
.coupon-card p,
.page-body {
    color: #3f4858;
}

.excerpt {
    margin: 0;
    font-size: 14px;
}

.deal-card,
.coupon-card {
    display: flex;
    padding: 16px;
    flex-direction: column;
}

.deal-card > img {
    width: calc(100% + 32px);
    margin: -16px -16px 16px;
    object-fit: cover;
    aspect-ratio: 1.65;
}

.deal-card .card-action,
.coupon-card .card-action {
    margin-top: auto;
}

.price {
    display: flex;
    margin: 14px 0;
    color: var(--ink);
    align-items: baseline;
    flex-wrap: wrap;
    font-size: 18px;
    font-weight: 950;
    gap: 9px;
}

.price del {
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
}

.button-link,
.newsletter button {
    display: inline-flex;
    min-height: 42px;
    padding: 0 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    border: 0;
    border-radius: 7px;
    align-items: center;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    justify-content: center;
    text-decoration: none;
}

.category-list {
    display: flex;
    margin: 24px 0 30px;
    padding: 2px 0 8px;
    overflow-x: auto;
    gap: 12px;
}

.category-list a {
    display: inline-flex;
    min-width: 126px;
    min-height: 94px;
    padding: 13px 14px;
    color: var(--ink);
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    flex: 0 0 auto;
    flex-direction: column;
    font-size: 14px;
    font-weight: 850;
    justify-content: center;
    text-decoration: none;
}

.category-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 8px;
    padding: 5px;
    color: var(--green-dark);
    border: 2px solid currentColor;
    border-radius: var(--radius);
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.category-list a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--green-dark), #0b7d92);
    border-color: transparent;
}

.category-list span {
    opacity: .7;
    font-size: 12px;
}

.promo-grid {
    display: grid;
    margin-top: 34px;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.promo-card {
    min-height: 200px;
    padding: 28px;
    overflow: hidden;
    background: #f1f6f8;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.promo-card h2,
.promo-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.2;
}

.promo-card > p {
    max-width: 380px;
    font-weight: 700;
}

.promo-news {
    display: grid;
    color: #fff;
    background:
        radial-gradient(circle at 86% 24%, rgba(255, 255, 255, .18), transparent 18%),
        linear-gradient(135deg, #2a43c3, #4856e6);
    align-items: center;
    gap: 24px;
    grid-column: 1 / -1;
    grid-template-columns: .8fr 1.2fr;
}

.promo-news > div > p {
    color: rgba(255, 255, 255, .78);
}

.promo-alarm {
    background: linear-gradient(135deg, #ebfbf7, #cdf4eb);
}

.promo-advice {
    background: linear-gradient(135deg, #fff6e7, #ffe8bd);
}

.newsletter form {
    display: grid;
    align-items: end;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.newsletter-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.newsletter label {
    display: grid;
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    font-weight: 850;
    gap: 5px;
}

.newsletter input,
.newsletter select {
    width: 100%;
    min-height: 45px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
    border: 0;
    border-radius: 7px;
    font: inherit;
}

.notice {
    padding: 10px 12px;
    background: #ffebe9;
    border-radius: 7px;
    color: #82071e;
    font-size: 14px;
    font-weight: 800;
    grid-column: 1 / -1;
}

.page-hero {
    margin: 0 -45px 30px;
    padding: 64px 76px;
    color: #fff;
    background:
        radial-gradient(circle at 84% 34%, rgba(41, 201, 111, .25), transparent 24%),
        linear-gradient(145deg, var(--navy), var(--navy-2));
}

.page-hero .eyebrow {
    margin-bottom: 14px;
}

.clear-link {
    color: #b8f7cf;
}

.blog-layout,
.article-layout {
    display: grid;
    align-items: start;
    gap: 34px;
    grid-template-columns: minmax(0, 1fr) 290px;
}

.side-panel {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 18px;
}

.info-panel {
    padding: 22px;
    background: var(--surface-soft);
}

.info-panel h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.info-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.coupon-code {
    display: inline-flex;
    width: fit-content;
    padding: 9px 12px;
    color: #06583e;
    background: #dff8e8;
    border: 1px dashed #27bd76;
    border-radius: 7px;
    font-weight: 950;
}

.article-shell {
    max-width: 780px;
}

.article-shell h1 {
    font-size: clamp(34px, 4vw, 54px);
}

.cover {
    width: 100%;
    max-height: 460px;
    margin: 26px 0;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cover.visual-fallback {
    min-height: 320px;
}

.article-content {
    color: #273142;
    font-size: 18px;
}

.article-content img,
.page-body img {
    max-width: 100%;
    height: auto;
}

.page-body {
    max-width: 820px;
    font-size: 17px;
}

.empty-state {
    padding: 34px;
    color: var(--muted);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 750;
}

.pagination {
    display: flex;
    margin: 32px 0 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
    list-style: none;
}

.pagination li a {
    display: grid;
    min-width: 38px;
    min-height: 38px;
    padding: 8px 11px;
    color: var(--green-dark);
    border: 1px solid var(--line);
    border-radius: 7px;
    font-size: 13px;
    font-weight: 900;
    place-items: center;
    text-decoration: none;
}

.pagination li.active a {
    color: #fff;
    background: var(--green-dark);
}

.pagination li.disabled a {
    color: #a7afbd;
    pointer-events: none;
}

.site-footer {
    width: min(var(--max), 100%);
    margin: 0 auto 14px;
    padding: 28px 44px;
    color: #fff;
    background: var(--navy);
}

.site-footer > div {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: space-between;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.site-footer nav a {
    color: rgba(255, 255, 255, .76);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

@media (max-width: 1020px) {
    .site-header {
        margin: 0;
        border-radius: 0;
    }

    .site-main {
        padding-right: 22px;
        padding-left: 22px;
        border: 0;
    }

    .hero,
    .page-hero,
    .trust-rail {
        margin-right: -22px;
        margin-left: -22px;
    }

    .hero,
    .page-hero {
        padding-right: 32px;
        padding-left: 32px;
    }

    .hero {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .hero-media img {
        max-width: 440px;
        margin: 0 auto;
    }

    .trust-rail {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-grid,
    .deal-grid,
    .coupon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-layout,
    .article-layout,
    .promo-news {
        grid-template-columns: 1fr;
    }

    .side-panel {
        position: static;
    }
}

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

    .primary-nav {
        overflow-x: auto;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .site-header,
    .site-footer {
        padding: 16px;
    }

    .brand-name {
        font-size: 25px;
    }

    .site-main {
        padding-right: 16px;
        padding-left: 16px;
    }

    .hero,
    .page-hero,
    .trust-rail {
        margin-right: -16px;
        margin-left: -16px;
    }

    .hero,
    .page-hero {
        padding: 34px 18px;
    }

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

    .search-row input,
    .search-row button {
        height: 54px;
    }

    .search-row button {
        width: 54px;
    }

    .trust-rail,
    .promo-grid,
    .card-grid,
    .deal-grid,
    .coupon-grid,
    .newsletter form {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .site-footer > div {
        align-items: flex-start;
        flex-direction: column;
    }

    .promo-card {
        padding: 20px;
    }
}
