:root {
  color-scheme: light;
  --paper: #f8f1e4;
  --white: #fffcf6;
  --ink: #231a17;
  --red: #9d2625;
  --red-deep: #742120;
  --quiet: #5f5149;
  --line: #ddcfc0;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.55 var(--sans); }
h1, h2, h3, p { margin: 0; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #b65134; outline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button:not(:disabled), summary { cursor: pointer; }
.shell { width: min(1272px, calc(100% - 76px)); margin-inline: auto; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px max(38px, calc((100% - 1272px) / 2)); background: var(--red-deep); color: #fff5e6; font-size: .85rem; }
.notice a, .faq p a { text-decoration: underline; text-underline-offset: 3px; }
.header { position: sticky; top: 0; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; gap: 5px; align-items: center; font-size: 1.48rem; font-weight: 950; letter-spacing: -.045em; }
.wordmark span { color: var(--red); font-size: 1.32rem; }
nav { display: flex; gap: clamp(14px, 4vw, 52px); font-weight: 650; font-size: .95rem; }
nav a:hover, footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 46px; padding: 10px 17px; border: 1px solid transparent; border-radius: 4px; font-size: .95rem; font-weight: 750; line-height: 1.24; }
.button:disabled { opacity: .62; }
.primary { background: var(--red); color: #fff8ed; }
.primary:hover { background: var(--red-deep); }
.secondary, .basket-button { border-color: var(--line); background: transparent; }
.secondary:hover, .basket-button:hover { background: #eee3d4; }
#basket-count { display: grid; place-items: center; min-width: 24px; height: 24px; padding-inline: 3px; border-radius: 50%; background: var(--red); color: #fff8ed; font-size: .8rem; }
.hero { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); gap: clamp(26px, 5vw, 74px); align-items: center; padding-block: 42px 54px; }
.hero img { height: auto; aspect-ratio: 1.18; object-fit: cover; border-radius: 48% 48% 5px 5px / 13% 13% 5px 5px; box-shadow: 10px 10px 0 #ebdac4; }
.hero h1, h2 { font-family: var(--serif); font-weight: 700; line-height: 1; letter-spacing: -.065em; }
.hero h1 { font-size: clamp(3.15rem, 6.45vw, 6.6rem); }
.hero h1 em { color: var(--red); font-weight: 500; }
.hero p { max-width: 460px; margin: 24px 0; color: var(--quiet); font-size: clamp(1.03rem, 1.35vw, 1.2rem); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.shop { padding-block: 45px 60px; background: var(--white); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
h2 { font-size: clamp(2.45rem, 5vw, 4.25rem); }
.search { display: grid; gap: 4px; width: min(100%, 310px); font-size: .9rem; font-weight: 700; }
input, select, textarea { min-height: 44px; width: 100%; padding: 8px 10px; border: 1px solid #a99b8c; border-radius: 4px; background: var(--white); font-size: 1rem; }
textarea { resize: vertical; }
.categories { display: flex; flex-wrap: wrap; gap: 7px; }
.categories button { flex: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 24px; background: transparent; font-size: .9rem; font-weight: 650; min-height: 40px; }
.categories button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.categories button:hover:not([aria-pressed="true"]) { border-color: var(--red); }
#catalog-status { margin: 13px 0; color: var(--quiet); font-size: .88rem; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.product { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; min-width: 0; }
.product img { height: auto; aspect-ratio: 1.29; object-fit: contain; background: #f1eadd; }
.product-copy { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 13px; }
.product h3 { font-size: 1.05rem; line-height: 1.25; }
.price { font-weight: 800; margin-top: auto; }
.product-add { background: #f1e1cb; color: #5d2524; width: 100%; }
.product-add:hover { background: #e9cfaf; }
.variant { font-size: .85rem; font-weight: 650; }
.more { display: flex; margin: 23px auto 0; }
.delivery { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 7vw, 115px); padding-block: 56px; align-items: start; }
.delivery p, .faq p { margin: 10px 0 16px; color: var(--quiet); }
.delivery ol { margin: 0; padding-left: 25px; }
.delivery li { border-bottom: 1px solid var(--line); padding: 10px 0 6px 9px; }
.delivery li::marker { color: var(--red); font-weight: 800; }
.faq { background: var(--white); border-top: 1px solid var(--line); }
.faq-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 7vw, 115px); padding-block: 51px; }
.faq h2 { max-width: 440px; }
details { padding-block: 12px; border-bottom: 1px solid var(--line); }
summary { font-weight: 700; }
footer { background: #2e1918; color: #fcf0df; padding-block: 36px; }
.footer { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 24px; }
.footer h2 { margin-bottom: 8px; font: 750 1rem/1.4 var(--sans); letter-spacing: normal; }
.footer p { margin: 5px 0; }
.footer div > a:not(.wordmark) { display: block; width: fit-content; margin-bottom: 4px; }
footer .wordmark span { color: #ffb88c; }
dialog { padding: 20px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; width: min(570px, calc(100% - 24px)); max-height: min(85dvh, 760px); }
dialog::backdrop { background: #251514bc; }
.basket-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.basket-head h2 { font-size: 2.25rem; }
.icon-button { border: 1px solid var(--line); border-radius: 50%; width: 44px; height: 44px; background: var(--white); font-size: 1.5rem; line-height: 1; }
#basket-items { list-style: none; margin: 12px 0; padding: 0; }
#basket-items li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.quantity-control { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.quantity-control .button { min-height: 40px; padding: 6px 12px; }
.outline { border-color: var(--line); background: var(--white); }
#basket-total { margin-bottom: 14px; font-weight: 800; }
#basket-form, #order-preview { display: grid; gap: 10px; }
#basket-form label { display: grid; gap: 4px; font-weight: 650; }
#basket-form label span { font-weight: 400; }
#order-preview { border-top: 1px solid var(--line); padding-top: 14px; }
#copy-status:empty { display: none; }
.policy-page { width: min(760px, calc(100% - 36px)); margin: 40px auto; }
.policy-page section { margin-top: 32px; }
.policy-page a { text-decoration: underline; }
@media (max-width: 900px) {
  .shell { width: calc(100% - 48px); }
  .notice { padding-inline: 24px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 105px; }
  .shell { width: calc(100% - 32px); }
  .notice { padding-inline: 16px; font-size: .75rem; }
  .header-inner { flex-wrap: wrap; padding-block: 9px; gap: 8px 12px; }
  .header nav { order: 3; width: 100%; justify-content: space-between; }
  .header .basket-button { min-height: 40px; }
  .hero, .delivery, .faq-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding-block: 24px 38px; }
  .hero h1 { font-size: clamp(2.85rem, 12vw, 5rem); }
  .hero img { aspect-ratio: 1.55; box-shadow: 5px 5px 0 #ebdac4; }
  .hero p { margin-block: 14px 16px; }
  .shop { padding-block: 26px 38px; }
  .section-head { flex-direction: column; align-items: start; gap: 12px; margin-bottom: 13px; }
  .search { width: 100%; }
  .categories { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .product-copy { padding: 9px; }
  .product h3 { font-size: .96rem; }
  .delivery, .faq-inner { padding-block: 34px; }
  .footer { grid-template-columns: 1fr; gap: 15px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.contact-copy { margin-block: 6px; color: inherit; }
.contact-copy:hover { background: #542e2b; }
#telegram-copy-status:empty, #copy-status:empty { display: none; }
#order-preview details p { margin-block: 8px; }
.contact-actions { display: grid; gap: 10px; margin-top: 14px; }
.contact-actions label { display: grid; gap: 4px; }
#contact-status:empty, #shop-copy-status:empty { display: none; }
.product-media { position: relative; }
.product-image-note {
  position: absolute;
  inset: auto 8px 8px auto;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--white);
  color: var(--quiet);
  font-size: .8rem;
}
