:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --ink: #19232c;
  --muted: #555d63;
  --line: #deded5;
  --orange: #f76241;
  --dark: #141f29;
  --mono: "Consolas", "Liberation Mono", monospace;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #a83c27; outline-offset: 4px; }
.wrap { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 5; top: 10px; left: 10px; background: white; padding: 12px; }

.site-header { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 10px; font-size: 28px; font-weight: 800; letter-spacing: -.07em; line-height: 1; }
.brand-dot, .accent { color: #db4d2e; }
.site-nav { display: flex; gap: 36px; align-items: center; font-size: 14px; font-weight: 600; }
.site-nav a { padding-block: 12px; color: #495059; }
.site-nav .nav-shop { color: var(--ink); }
.site-nav a:hover, .back-top:hover { color: #aa3923; }
.bag-button { justify-self: end; display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); background: #fffefa; color: var(--ink); border-radius: 7px; padding: 8px 10px; font-size: 14px; font-weight: 700; }
.bag-button:hover { border-color: #8a8e8e; }
.bag-button .icon { width: 17px; height: 17px; }
.bag-count { min-width: 21px; padding: 3px; border-radius: 4px; background: #eeeee7; text-align: center; font: 700 12px var(--mono); }

.hero { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 8px; overflow: hidden; min-height: 468px; padding: 48px 4.6%; border-radius: 18px; color: #fffdf6; background: var(--dark); isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(ellipse at 79% 45%, #31505a85, transparent 57%), linear-gradient(#b2d8e013 1px, transparent 1px), linear-gradient(90deg, #b2d8e013 1px, transparent 1px); background-size: auto, 29px 29px, 29px 29px; mask-image: linear-gradient(90deg, transparent 22%, black 73%); }
.hero-copy { position: relative; z-index: 1; }
.hero-label, .hero-index, .section-label, .product-format, .product-tag { font: 700 11px/1.4 var(--mono); letter-spacing: .11em; }
.hero-label { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; color: #d9e3e7; }
.hero-label span { width: 8px; height: 8px; background: var(--orange); border-radius: 50%; box-shadow: 0 0 0 3px #f762412f; }
.hero h1 { max-width: 560px; font-size: clamp(48px, 5.5vw, 81px); font-weight: 780; letter-spacing: -.073em; line-height: .99; }
.hero-line { display: block; }
.hero h1 em { font-style: normal; color: #ff825f; }
.hero p { max-width: 345px; margin-top: 22px; color: #d0d8da; font-size: 17px; line-height: 1.55; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 18px; min-height: 46px; padding: 10px 15px; border: 1px solid transparent; border-radius: 7px; font-size: 14px; font-weight: 750; transition: background-color .15s ease; }
.button-primary { color: #171d23; background: var(--orange); }
.button-primary:hover { background: #ff8b6d; }
.hero-button { margin-top: 26px; }
.hero :focus-visible { outline-color: white; }
.hero-visual { position: relative; }
.hero-visual img { display: block; width: 107%; height: auto; margin: -12px -3.5%; }
.hero-index { position: absolute; bottom: -22px; right: -6px; display: flex; align-items: center; gap: 9px; color: #b2c7ce; font-size: 9px; white-space: nowrap; }
.hero-index span { width: 20px; height: 1px; background: currentColor; }

.benefits { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px clamp(24px, 7vw, 103px); min-height: 68px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.benefits span { display: inline-flex; align-items: center; gap: 9px; color: #485156; font-size: 13px; font-weight: 650; }
.benefits .icon { color: #b8432b; width: 17px; height: 17px; }

.catalog, .how, .faq { scroll-margin-top: 20px; }
.catalog { padding-block: 46px 64px; }
.section-label { display: flex; align-items: center; gap: 9px; color: #535b5d; }
.section-label span { color: #a53621; border: 1px solid #e8c7bb; border-radius: 4px; padding: 2px 5px; background: #f9ebe2; }
.catalog-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin: 12px 0 24px; }
.catalog-heading h2, .how h2, .faq h2 { font-size: clamp(35px, 4.3vw, 58px); letter-spacing: -.066em; line-height: 1; font-weight: 780; }
.catalog-heading p { color: var(--muted); margin-top: 10px; line-height: 1.5; }
.search-box { display: flex; align-items: center; gap: 8px; width: min(239px, 100%); padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; background: #fffefa; color: #50595d; }
.search-box:focus-within { border-color: #a83c27; }
.search-box input { width: 100%; min-height: 23px; border: 0; color: var(--ink); background: transparent; outline: 0; font-size: 14px; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 17px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filters button { min-height: 39px; border: 1px solid var(--line); border-radius: 6px; padding: 7px 13px; background: #fffefa; color: #444f54; font-size: 13px; font-weight: 700; }
.filters button:hover { border-color: #818888; }
.filters button[aria-pressed="true"] { color: white; border-color: var(--ink); background: var(--ink); }
.results-count { color: var(--muted); font: 700 12px var(--mono); white-space: nowrap; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fffefa; }
.product-art { position: relative; overflow: hidden; background: #e7e7df; }
.product-art img { display: block; width: 100%; height: auto; aspect-ratio: 25 / 16; transition: transform .25s ease; }
.product:hover img { transform: scale(1.025); }
.product-tag { position: absolute; top: 12px; left: 12px; border-radius: 4px; padding: 4px 8px; color: var(--ink); background: #fffef2; font-size: 10px; text-transform: uppercase; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 17px; }
.product-format { color: #5a6568; margin-bottom: 5px; }
.product-body h3 { font-size: 23px; line-height: 1.15; letter-spacing: -.037em; }
.product-body p { flex: 1; margin: 7px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.product-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid #ebeae2; }
.price { font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.product-add { display: inline-flex; align-items: center; gap: 5px; min-height: 39px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #f8f7f2; font-size: 13px; font-weight: 750; }
.product-add:hover { border-color: #7f8989; }
.product-add.is-added { color: #30583b; background: #e8f0e4; border-color: #b8cbb8; }
.product-add .icon { width: 16px; height: 16px; }
.empty-state { grid-column: 1 / -1; padding: 45px 20px; border: 1px dashed #b6b8af; border-radius: 10px; text-align: center; color: var(--muted); }

.how { padding: 38px 4.6%; border-radius: 13px; background: #ebece4; }
.how h2, .faq h2 { margin-top: 14px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; list-style: none; margin: 30px 0 0; padding: 0; }
.steps li { border-top: 1px solid #c8ccc1; padding-top: 14px; }
.steps li > span { color: #a53621; font: 700 13px var(--mono); }
.steps h3 { margin-top: 9px; font-size: 19px; }
.steps p { color: var(--muted); margin-top: 5px; line-height: 1.5; font-size: 14px; }
.faq { display: grid; grid-template-columns: 1fr 1.35fr; gap: 24px; padding-block: 70px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; padding: 16px 0; font-weight: 750; }
.faq-list p { color: var(--muted); margin: 0 12px 18px; font-size: 14px; line-height: 1.55; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 84px; display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 16px; padding-block: 18px; }
.footer-inner p, .back-top { color: var(--muted); font-size: 13px; }
.footer-inner p span { margin-inline: 4px; }
.back-top { font-weight: 700; }

.bag-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(450px, 100%); max-width: 100%; height: 100%; max-height: 100%; padding: 24px; border: 0; border-left: 1px solid var(--line); background: var(--paper); color: var(--ink); overflow: auto; }
.bag-dialog::backdrop { background: #111c25a8; }
body:has(.bag-dialog[open]) { overflow: hidden; }
.drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.drawer-heading h2 { font-size: 31px; letter-spacing: -.05em; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fffefa; }
.bag-content { padding-top: 16px; }
.empty-bag { margin: 14px 0 22px; color: var(--muted); }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #38434c; }
.drawer-items { list-style: none; padding: 0; margin: 0; }
.drawer-items li { display: grid; grid-template-columns: 64px 1fr auto; align-items: start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer-items li > div { display: grid; gap: 5px; }
.drawer-items li > div:last-child { justify-items: end; }
.drawer-items img { border-radius: 4px; object-fit: cover; }
.drawer-items span { color: var(--muted); font: 12px var(--mono); }
.drawer-action { padding: 4px 0; border: 0; background: transparent; color: #97341f; font-size: 13px; text-decoration: underline; }
.drawer-checkout { padding-top: 20px; }
.drawer-total { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 18px; }
.drawer-note { color: var(--muted); font-size: 14px; margin-bottom: 12px; line-height: 1.5; }
.drawer-checkout .button { width: 100%; }

@media (max-width: 1024px) {
  .wrap { width: calc(100% - 56px); }
  .hero { min-height: 405px; }
  .hero h1 { font-size: clamp(42px, 6vw, 68px); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { min-height: 64px; grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 29px 6% 40px; }
  .hero h1 { font-size: clamp(40px, 9vw, 62px); }
  .hero-line { display: inline; }
  .hero-label { margin-bottom: 15px; }
  .hero p { margin-top: 14px; }
  .hero-button { margin-top: 17px; }
  .hero-visual { width: min(500px, 100%); margin: 6px auto 0; }
  .hero-index { bottom: -19px; right: 0; }
  .benefits { justify-content: start; gap: 9px 19px; }
  .catalog { padding-block: 35px 48px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .faq { grid-template-columns: 1fr; padding-block: 48px; }
}
@media (max-width: 475px) {
  .catalog-heading { align-items: start; flex-direction: column; gap: 14px; }
  .search-box { width: 100%; }
  .catalog-toolbar { align-items: start; flex-direction: column; }
  .product-grid, .steps { grid-template-columns: 1fr; }
  .how { padding: 28px 17px; }
  .footer-inner { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
