:root {
    --site-primary: #125a75;
    --site-accent: #f29e38;
    --site-bg: #f3f6f7;
    --site-ink: #18232c;
    --site-muted: #66727c;
    --site-border: #dce3e6;
}

* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--site-ink); background: var(--site-bg); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--site-primary); }
.site-header { position: relative; z-index: 20; height: 74px; border-bottom: 1px solid rgba(0,0,0,.08); background: #fff; }
.site-header-inner { display: flex; height: 74px; align-items: center; justify-content: space-between; gap: 20px; }
.site-brand { display: flex; min-width: 0; align-items: center; gap: 11px; color: var(--site-ink); text-decoration: none; }
.site-brand img { width: auto; max-width: 156px; height: 44px; object-fit: contain; }
.site-brand-mark { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 7px; color: #fff; background: var(--site-primary); }
.site-brand-mark svg { width: 22px; height: 22px; }
.site-brand-mark i { font-size: 24px; line-height: 1; }
.site-brand strong, .site-brand small { display: block; }
.site-brand strong { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.site-brand small { overflow: hidden; max-width: 420px; color: var(--site-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.header-catalog-link { display: inline-flex; align-items: center; gap: 8px; color: var(--site-ink); font-size: 14px; font-weight: 650; text-decoration: none; }
.header-catalog-link svg { width: 18px; height: 18px; }

.site-hero { position: relative; min-height: 430px; overflow: hidden; color: #fff; background: var(--site-primary); }
.site-hero.has-image { background-image: var(--hero-image); background-position: center; background-size: cover; }
.hero-shade { position: absolute; inset: 0; background: rgba(16, 30, 39, .58); }
.site-hero:not(.has-image) .hero-shade { background: rgba(0, 0, 0, .08); }
.hero-inner { position: relative; z-index: 1; display: flex; min-height: 430px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.hero-copy { width: min(760px, 100%); }
.hero-kicker { margin-bottom: 13px; color: #fff; font-size: 13px; font-weight: 750; text-transform: uppercase; }
.hero-copy h1 { max-width: 760px; margin: 0; font-size: clamp(38px, 6vw, 66px); font-weight: 790; line-height: 1.03; }
.hero-copy > p { max-width: 680px; margin: 20px 0 0; color: rgba(255,255,255,.9); font-size: 18px; line-height: 1.6; }
.catalog-search { display: grid; width: min(620px, 100%); min-height: 58px; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; margin-top: 30px; padding: 5px 6px 5px 18px; border: 1px solid rgba(255,255,255,.55); border-radius: 7px; background: #fff; box-shadow: 0 12px 34px rgba(0,0,0,.14); }
.catalog-search svg { width: 20px; height: 20px; color: var(--site-muted); }
.catalog-search input { min-width: 0; border: 0; outline: 0; color: var(--site-ink); font-size: 15px; }
.catalog-search button { height: 46px; padding: 0 24px; border: 0; border-radius: 5px; color: #18232c; background: var(--site-accent); font-weight: 750; }

.catalog-section { padding: 52px 0 76px; }
.catalog-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.catalog-kicker { color: var(--site-primary); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.catalog-heading h2 { margin: 4px 0 0; font-size: 30px; font-weight: 760; }
.catalog-count { color: var(--site-muted); font-size: 13px; }
.category-tabs { display: flex; gap: 8px; margin: 0 0 24px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.category-tabs a { flex: 0 0 auto; padding: 8px 14px; border: 1px solid var(--site-border); border-radius: 5px; color: var(--site-muted); background: #fff; font-size: 13px; font-weight: 650; text-decoration: none; }
.category-tabs a:hover, .category-tabs a.active { border-color: var(--site-primary); color: #fff; background: var(--site-primary); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.catalog-card { display: flex; min-width: 0; overflow: hidden; flex-direction: column; border: 1px solid var(--site-border); border-radius: 7px; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.catalog-card:hover { transform: translateY(-3px); box-shadow: 0 15px 32px rgba(30,45,54,.10); }
.card-image { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: #e5eaec; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.catalog-card:hover .card-image img { transform: scale(1.025); }
.image-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: #829099; background: #e5eaec; }
.image-placeholder svg { width: 34px; height: 34px; }
.offer-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 9px; border-radius: 4px; color: #252017; background: var(--site-accent); font-size: 11px; font-weight: 800; }
.offer-badge.expired { color: #fff; background: #a33b3b; }
.card-image .offer-badge { position: absolute; top: 12px; left: 12px; }
.card-body-main { flex: 1; padding: 18px 18px 14px; }
.card-topline { display: flex; min-height: 19px; align-items: center; justify-content: space-between; gap: 12px; color: var(--site-primary); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.rating { display: inline-flex; align-items: center; gap: 4px; color: #8c651b; }
.rating svg { width: 14px; height: 14px; fill: var(--site-accent); stroke: var(--site-accent); }
.catalog-card h3 { margin: 10px 0 8px; font-size: 19px; line-height: 1.3; }
.catalog-card h3 a { color: var(--site-ink); text-decoration: none; }
.catalog-card p { display: -webkit-box; overflow: hidden; margin: 10px 0 0; color: var(--site-muted); font-size: 14px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.item-location, .item-meta span { display: inline-flex; align-items: center; gap: 5px; color: var(--site-muted); font-size: 12px; }
.item-location svg, .item-meta svg { width: 14px; height: 14px; }
.card-footer-main { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--site-border); }
.old-price { display: block; color: #8c959d; font-size: 12px; text-decoration: line-through; }
.price { display: block; font-size: 17px; font-weight: 780; }
.card-action { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 6px; color: #fff; background: var(--site-primary); }
.card-action:hover { color: #fff; filter: brightness(.92); }
.card-action.disabled { cursor: not-allowed; color: #7a858d; background: #e0e5e7; }
.card-action svg { width: 19px; height: 19px; }
.promo-box { margin-top: 16px; padding: 12px; border: 1px dashed color-mix(in srgb, var(--site-primary) 55%, #fff); border-radius: 6px; background: color-mix(in srgb, var(--site-primary) 6%, #fff); }
.promo-box.expired { border-color: #d1b7b7; background: #f7f2f2; }
.promo-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--site-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.promo-box.expired .promo-heading { color: #934848; }
.promo-copy-row { display: flex; min-width: 0; align-items: center; gap: 8px; }
.promo-copy-row code { min-width: 0; flex: 1; overflow-wrap: anywhere; color: var(--site-ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 16px; font-weight: 800; }
.promo-copy-button { display: inline-flex; min-height: 38px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 7px; padding: 7px 11px; border: 0; border-radius: 5px; color: #fff; background: var(--site-primary); font-size: 12px; font-weight: 750; }
.promo-copy-button:hover { filter: brightness(.92); }
.promo-copy-button:disabled { cursor: not-allowed; color: #7a858d; background: #dce2e4; filter: none; }
.promo-copy-button.copied { color: #173a30; background: #bfe3d6; }
.promo-copy-button svg { width: 16px; height: 16px; }
.promo-copy-button.icon-only { width: 38px; padding: 7px; }
.promo-box-detail { margin: 24px 0 2px; padding: 16px; }
.promo-box-detail .promo-copy-row code { font-size: 22px; }
.catalog-empty { padding: 70px 20px; border: 1px dashed #c9d2d6; border-radius: 7px; text-align: center; background: #fff; }
.catalog-empty svg { width: 38px; height: 38px; color: var(--site-primary); }
.catalog-empty h3 { margin: 15px 0 6px; font-size: 21px; }
.catalog-empty p { color: var(--site-muted); }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); gap: 42px; align-items: start; }
.detail-media { overflow: hidden; aspect-ratio: 4/3; border-radius: 7px; background: #e5eaec; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-content { padding: 10px 0; }
.detail-content h1 { margin: 0 0 15px; font-size: 42px; font-weight: 780; line-height: 1.08; }
.item-meta { display: flex; flex-wrap: wrap; gap: 18px; }
.detail-lead { color: #3e4c56; font-size: 18px; line-height: 1.6; }
.detail-description { color: var(--site-muted); line-height: 1.75; }
.detail-action { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--site-border); }
.btn-offer { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 9px; padding: 11px 20px; border-radius: 6px; color: #fff; background: var(--site-primary); font-weight: 750; text-decoration: none; }
.btn-offer:hover { color: #fff; filter: brightness(.92); }
.btn-offer.disabled { cursor: not-allowed; color: #7a858d; background: #e0e5e7; filter: none; }
.btn-offer svg { width: 18px; height: 18px; }
.site-footer { padding: 34px 0; color: #cdd7d7; background: #182b2a; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.site-footer strong { color: #fff; }
.site-footer p { margin: 7px 0 0; font-size: 13px; }
.affiliate-note { max-width: 520px; text-align: right; }

@media (max-width: 991.98px) {
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-layout { grid-template-columns: 1fr; gap: 28px; }
    .detail-media { max-height: 560px; }
}

@media (max-width: 575.98px) {
    .site-header, .site-header-inner { height: 66px; }
    .site-brand small { display: none; }
    .header-catalog-link span { display: none; }
    .site-hero, .hero-inner { min-height: 430px; }
    .hero-copy h1 { font-size: 38px; }
    .hero-copy > p { font-size: 16px; }
    .catalog-search { grid-template-columns: 20px 1fr; padding: 10px 12px; }
    .catalog-search button { grid-column: 1 / -1; width: 100%; }
    .catalog-section { padding: 38px 0 56px; }
    .catalog-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
    .catalog-heading h2 { font-size: 25px; }
    .catalog-grid { grid-template-columns: 1fr; }
    .detail-content h1 { font-size: 32px; }
    .detail-action { align-items: stretch; flex-direction: column; }
    .footer-inner { flex-direction: column; gap: 18px; }
    .affiliate-note { text-align: left; }
}
