:root {
  font-family: Arial, "Helvetica Neue", sans-serif;
  color: #242321;
  background: #fffcf8;
  --accent: #ee1635;
  --accent-dark: #ca102b;
  --line: #eeece8;
  --muted: #88857e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 95% 50%, #fff0f1 0, transparent 50%), radial-gradient(ellipse at 0 0, #fcf6e9 0, transparent 45%), #fffefd;
  min-height: 100vh;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--accent-dark); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #d77827; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.topbar { position: sticky; top: 0; z-index: 10; background: #fffdf9ed; backdrop-filter: blur(16px); }
.header-inner { max-width: 1920px; margin: auto; display: grid; grid-template-columns: 320px minmax(280px, 660px) auto; justify-content: space-between; align-items: center; gap: 28px; padding: 22px 3.5% 18px; }
.identity, .search-group, .header-inner nav { background: #fff; border: 1px solid #faf8f4; box-shadow: 0 6px 25px #64573e07; border-radius: 40px; min-height: 68px; }
.identity { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px; gap: 20px; }
.brand { font-size: 31px; letter-spacing: -1.4px; font-weight: 700; color: var(--accent); text-decoration: none; white-space: nowrap; }
.brand>span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: white; font-size: 31px; vertical-align: middle; margin-right: 4px; }
.city { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: #77736d; white-space: nowrap; }
.city svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.search-group { display: flex; align-items: center; gap: 18px; padding: 7px 16px 7px 7px; min-width: 0; }
.catalog-label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px 15px; min-height: 52px; border: 1px solid #d9d8d5; border-radius: 28px; background: #f0efed; color: #343431; font-size: 10px; }
.catalog-label svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.search { display: flex; align-items: center; gap: 10px; background: #f6f5f4; border: 1px solid #eeecea; box-shadow: inset 0 1px 3px #00000003; border-radius: 30px; padding: 0 14px; min-width: 0; flex: 1; }
.search>span { font-size: 24px; color: #797873; }
.search input { min-width: 0; width: 100%; border: 0; background: none; padding: 10px 0; font-size: 13px; }
.header-inner nav { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 8px 22px; }
.plain-button { border: 0; background: none; color: #6f6b65; font-size: 11px; padding: 6px 0; }
#how-button { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.nav-icon { font-size: 24px; line-height: 1; }
.list-button { display: flex; align-items: center; justify-content: center; gap: 7px; background: var(--accent); color: white; border: 0; border-radius: 25px; padding: 11px 14px; font-size: 12px; white-space: nowrap; }
.list-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.layout { max-width: 1920px; margin: auto; padding: 10px 3.5% 28px; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 30px; align-items: start; }
.filters { background: #ffffffdc; border: 1px solid #faf8f2; padding: 22px 20px; border-radius: 28px; box-shadow: 0 8px 30px #655a4207; }
.filter-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 3px 20px; }
.filter-heading h2 { margin: 0; font-size: 15px; font-weight: 500; color: #737069; }
.filter-section { border: 1px solid #f0efea; background: #fff; border-radius: 20px; margin-bottom: 11px; }
.filter-section summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 11px 12px; cursor: pointer; font-size: 13px; }
.filter-section summary::-webkit-details-marker { display: none; }
.filter-section summary:after { content: '⌄'; margin-left: auto; display: grid; place-items: center; background: #f7f6f3; color: #8c8981; width: 25px; height: 25px; flex-shrink: 0; border-radius: 50%; }
.filter-section[open] summary:after { content: '⌃'; }
.filter-section summary small, .filter-promo small { display: block; color: var(--muted); font-size: 10px; margin-top: 6px; line-height: 1.3; }
.filter-icon { width: 33px; height: 38px; display: grid; place-items: center; flex-shrink: 0; border-radius: 10px; background: #f6eee0; color: #bf8b69; font-size: 25px; text-shadow: 1px 2px #e7d3ba; }
.filter-section:nth-of-type(2) .filter-icon { background: #fff0ec; color: #e08775; }
.filter-section:nth-of-type(3) .filter-icon { background: #f0f3e8; color: #91a477; }
fieldset { border: 0; padding: 0 16px 10px; margin: 0; }
fieldset>label { display: flex; align-items: center; gap: 7px; font-size: 12px; margin: 12px 0; color: #65615b; }
input[type=radio] { accent-color: var(--accent); }
.price-inputs { display: flex; gap: 10px; }
.price-inputs label { width: 50%; font-size: 11px; color: var(--muted); }
input[type=number] { width: 100%; border: 1px solid #e6e3dc; background: #fffefa; padding: 10px; border-radius: 10px; font-size: 12px; margin-top: 7px; }
.cashback-filter { display: block; padding: 0 16px 16px; font-size: 12px; }
.filter-promo { display: flex; align-items: center; gap: 10px; background: #fff8f7; border: 1px solid #ffb5bd; border-radius: 20px; padding: 12px; font-size: 12px; margin-bottom: 14px; }
.filter-promo small { color: var(--accent); }
.filter-promo strong { margin-left: auto; color: white; background: var(--accent); border-radius: 20px; padding: 5px 7px; font-size: 11px; }
.reset-button { border: 1px solid #e8e4de; background: white; color: #6f6a61; border-radius: 22px; padding: 10px 16px; font-size: 12px; }
.filters>.reset-button { width: 100%; }
.sidebar-note { font-size: 11px; line-height: 1.8; color: var(--muted); border-top: 1px solid #f4f1eb; padding-top: 17px; margin-top: 18px; }
.sidebar-note strong { font-weight: 500; color: #666057; }
h1 { font-size: 29px; font-weight: 500; letter-spacing: -.8px; margin: 0 0 9px; }
.intro { color: #6f6a62; font-size: 12px; margin: 0 0 7px; line-height: 1.5; }
.demo-line { font-size: 10px; color: #a09a91; margin: 0 0 20px; }
.category-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 1px 1px 8px; scrollbar-width: thin; scrollbar-color: #e1dad1 transparent; }
.category-tabs button { border: 1px solid #f0eeea; background: #ffffffde; color: #35322d; border-radius: 28px; padding: 4px 13px 4px 4px; display: flex; align-items: center; gap: 7px; white-space: nowrap; flex-shrink: 0; font-size: 12px; }
.category-tabs button[aria-pressed=true] { border-color: #f4aab3; background: #fff5f4; color: #b81e32; }
.category-thumb { display: grid; place-items: center; width: 34px; height: 34px; background: #f5efe3; border-radius: 50%; overflow: hidden; }
.category-thumb img { width: 37px; height: 37px; object-fit: contain; transform: rotate(-12deg) scale(1.05); }
.all-categories { color: #c89c70; font-size: 22px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 15px 0 22px; }
.catalog-toolbar p { color: #858079; font-size: 12px; margin: 0; }
.sort-label { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #8e877f; }
select { border: 1px solid #eeebe4; background: #ffffffc9; border-radius: 22px; color: #686158; padding: 9px 12px; font-size: 11px; max-width: 175px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { background: #ffffffd9; border: 1px solid #efedeb; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.product-visual { height: 210px; position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #faf3e9 0, #fffaf800 70%); }
.product-visual img { width: 100%; height: 100%; object-fit: contain; padding: 23px 12px 5px; }
.product-visual:after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 20%, #fff9 46%, transparent 72%); opacity: 0; }
.badge { position: absolute; top: 11px; left: 11px; z-index: 1; border: 1px solid #c7dac0; background: #fffffff0; border-radius: 14px; color: #518345; font-size: 10px; font-weight: 400; padding: 2px 7px; }
.badge:before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #61a652; margin-right: 5px; vertical-align: 1px; }
.product-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: end; align-items: center; padding: 11px 14px 12px; flex: 1; gap: 7px 5px; }
.product-info h2 { order: 1; grid-column: 1/-1; font-size: 13px; font-weight: 400; line-height: 1.45; min-height: 38px; margin: 0; }
.volume { color: #99938a; font-size: 11px; margin: 0; }
.product-info .volume { order: 2; grid-column: 1/-1; margin-bottom: 3px; }
.price { order: 3; font-size: 18px; font-weight: 500; letter-spacing: -.3px; margin: 0; }
.price span { font-size: 16px; }
.details-button { background: var(--accent); color: white; border: 0; border-radius: 24px; padding: 11px 16px; font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; width: 100%; }
.product-info>.details-button { order: 4; font-size: 10px; padding: 0; background: transparent; color: #8d756e; min-height: 32px; gap: 6px; }
.product-info>.details-button span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--accent); color: white; font-size: 24px; font-weight: 300; }
.details-button:hover { background: var(--accent-dark); }
.product-info>.details-button:hover { background: transparent; color: var(--accent); }
.product-info>.details-button:hover span { background: var(--accent-dark); }
.cashback { order: 5; grid-column: 1/-1; justify-self: start; color: #d05460; background: #fff1ef; border: 1px solid #f6c6c9; border-radius: 18px; font-size: 12px; font-weight: 500; padding: 3px 7px; margin: 2px 0; }
.cashback span { font-size: 10px; color: #9b827e; font-weight: 400; }
.product-card:focus-within { border-color: #f3a3ad; box-shadow: 0 0 0 1px #f3a3ad; }
.empty-state { text-align: center; border: 1px dashed #e1d8cc; border-radius: 22px; background: white; padding: 45px 20px; }
.empty-state h2 { font-size: 22px; font-weight: 500; }
.empty-state p { font-size: 13px; color: var(--muted); }
.empty-state button { width: auto; margin: 20px auto 0; }
.greeting { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; overflow-wrap: anywhere; }
.greeting p { margin: 0; }
.greeting a { font-size: 11px; }
.demo-note { font-size: 11px; color: var(--muted); line-height: 1.7; }
footer { max-width: 1920px; margin: auto; border-top: 1px solid var(--line); padding: 22px 3.5%; display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--muted); }
.eyebrow { color: var(--accent); font-size: 10px; letter-spacing: 1.5px; }
dialog { border: 1px solid #f2e8e3; border-radius: 26px; width: calc(100% - 32px); max-width: 510px; max-height: 90dvh; padding: 0; color: #34302b; background: #fffefd; box-shadow: 0 25px 100px #48302426; }
dialog::backdrop { background: #3b302c73; backdrop-filter: blur(3px); }
.dialog-content { padding: 26px; }
dialog h2 { font-size: 25px; font-weight: 500; margin: 12px 0; }
dialog p { line-height: 1.6; }
#offer-description { font-size: 13px; }
.offer-image { width: 100%; height: 180px; object-fit: contain; background: #fcf7ef; border-radius: 18px; display: block; margin-bottom: 20px; }
dl>div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; font-size: 13px; }
dd { margin: 0; font-weight: 600; white-space: nowrap; }
.total { border-top: 1px solid var(--line); color: var(--accent-dark); font-size: 16px; }
dialog form { margin-top: 20px; }
.steps { padding-left: 24px; margin-top: 25px; }
.steps li { margin: 20px 0; padding-left: 7px; }
.steps li::marker { color: var(--accent); font-weight: 700; }
.steps strong { font-size: 15px; }
.steps p { color: var(--muted); font-size: 13px; margin: 7px 0; }
.mobile-only { display: none; }
body:has(dialog[open]) { overflow: hidden; }
@media (min-width: 1550px) {
  .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
  .layout { gap: 32px; grid-template-columns: 365px minmax(0, 1fr); }
  .header-inner { grid-template-columns: 335px minmax(350px, 670px) auto; }
  .product-visual { height: 220px; }
}
@media (max-width: 1150px) {
  .header-inner { grid-template-columns: 245px minmax(200px, 1fr) auto; gap: 14px; padding-left: 22px; padding-right: 22px; }
  .identity { padding: 12px 15px; gap: 12px; }
  .brand { font-size: 26px; }
  .header-inner nav { gap: 12px; padding: 8px 12px; }
  .list-button { padding: 10px; }
  .layout { grid-template-columns: 245px minmax(0, 1fr); gap: 22px; padding-left: 22px; padding-right: 22px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .product-visual { height: 185px; }
  .product-info { padding: 10px; }
  .product-info>.details-button { font-size: 0; }
  .product-info>.details-button span { font-size: 24px; }
  .catalog-label { padding: 4px 10px; }
}
@media (max-width: 800px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 16px; }
  .identity { min-height: 54px; padding: 8px 12px; }
  .brand { font-size: 25px; }
  .brand>span { width: 29px; height: 29px; font-size: 25px; }
  .city { font-size: 9px; gap: 2px; }
  .city svg { width: 16px; height: 16px; }
  .header-inner nav { min-height: 54px; padding: 7px 10px; gap: 10px; }
  .header-inner .plain-button { font-size: 9px; max-width: 65px; }
  .nav-icon { font-size: 19px; }
  .list-button { font-size: 10px; gap: 5px; padding: 9px; }
  .list-button svg { width: 12px; height: 12px; }
  .search-group { grid-column: 1/-1; grid-row: 2; min-height: 50px; padding: 5px 8px; gap: 10px; }
  .catalog-label { min-height: 38px; padding: 3px 10px; flex-direction: row; font-size: 10px; gap: 5px; }
  .catalog-label svg { width: 17px; height: 17px; }
  .search input { padding: 9px 0; font-size: 12px; }
  .layout { display: block; padding: 16px; }
  .filters { display: none; margin-bottom: 22px; }
  .filters.is-open { display: block; }
  .mobile-only { display: inline-block; }
  h1 { font-size: 26px; }
  .intro { font-size: 12px; }
  .demo-line { font-size: 9px; margin-bottom: 17px; }
  .category-tabs { margin-right: -16px; }
  .category-tabs button { font-size: 11px; }
  .catalog-toolbar { flex-wrap: wrap; margin: 12px 0 18px; gap: 8px; }
  .catalog-toolbar p { font-size: 10px; }
  .reset-button { font-size: 11px; padding: 9px 11px; }
  .sort-label { font-size: 0; margin-left: auto; }
  .sort-label select { font-size: 10px; max-width: 142px; padding: 9px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-visual { height: 180px; }
  .product-info h2 { font-size: 12px; min-height: 35px; }
  .product-info>.details-button { font-size: 0; }
  .product-info>.details-button span { font-size: 24px; }
  .price { font-size: 18px; }
  footer { padding: 22px 16px; flex-wrap: wrap; }
}
@media (max-width: 450px) {
  .identity { flex-direction: column; align-items: flex-start; gap: 3px; padding: 8px 12px; }
  .city { flex-direction: row; gap: 3px; margin-left: 3px; }
  .city svg { width: 12px; height: 12px; }
  .header-inner nav { gap: 8px; }
  .list-button { padding: 9px 8px; }
  .list-button svg { display: none; }
}
@media (max-width: 380px) {
  .header-inner { padding: 10px 12px; gap: 8px; }
  .brand { font-size: 23px; }
  .brand>span { width: 26px; height: 26px; font-size: 22px; }
  .identity { padding: 8px 10px; }
  .header-inner nav { gap: 7px; padding: 7px 8px; }
  .layout { padding: 14px 12px; }
  .category-tabs { margin-right: -12px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-visual { height: 220px; }
  .product-info { padding: 14px; }
  .product-info h2 { min-height: 0; font-size: 14px; }
  .product-info>.details-button { font-size: 11px; }
}
@media (prefers-reduced-motion: no-preference) {
  .product-card { transition: transform 225ms, border-color 225ms, box-shadow 225ms; }
  .product-visual img { transition: transform 225ms; }
  .product-visual:after { transition: opacity 225ms; }
  .cashback { transition: background 225ms; }
  .product-card:active { transform: translateY(-2px); }
  @media (hover: hover) {
    .product-card:hover { transform: translateY(-5px); border-color: #fb9da9; box-shadow: 0 8px 24px #c76d7010; }
    .product-card:hover .product-visual img { transform: scale(1.045); }
    .product-card:hover .product-visual:after { opacity: .65; }
    .product-card:hover .cashback { background: #ffe0e0; }
  }
}
@media (min-width:381px) and (max-width:1150px) {
  .product-info>.details-button { font-size: 9px; gap: 4px; }
  .product-info>.details-button span { width: 28px; height: 28px; font-size: 22px; }
}
