:root {
  color-scheme: light;
  --paper:#f7f3e9; --linen:#ece3d7; --ink:#523e32; --muted:#6e5543;
  --title:#795c47; --accent:#6c3536; --line:#d8cabb; --light:#fdfaf3;
  --serif:'Cormorant Garamond',Georgia,serif; --sans:Jost,Arial,sans-serif;
  font:16px/1.5 var(--sans); color:var(--ink); background:var(--paper);
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
a { color:inherit; }
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
img { display:block; width:100%; height:auto; }
.frame { width:min(1100px,calc(100% - 96px)); margin-inline:auto; }
.masthead { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; min-height:127px; border-bottom:1px solid var(--line); }
.mast-link { font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; text-decoration:none; width:fit-content; color:var(--muted); }
.mast-link:last-child { justify-self:end; }
.mast-link:hover,.footer-admin:hover { color:var(--accent); text-decoration:underline; }
.brand { color:var(--title); display:flex; flex-direction:column; align-items:center; text-decoration:none; width:fit-content; margin-inline:auto; }
.brand img { object-fit:contain; width:42px; height:36px; margin-bottom:3px; }
.masthead .mast-wordmark { width:clamp(206px,34vw,290px); max-width:100%; height:auto; margin:0; mix-blend-mode:darken; }
.wordmark { font:500 2.55rem/.98 var(--serif); letter-spacing:.25em; padding-left:.25em; }
.brand-caption,.eyebrow { font-size:.66rem; font-weight:500; line-height:1.55; letter-spacing:.17em; text-transform:uppercase; }
.brand-caption { margin-top:8px; }
h1,h2,h3 { margin:0; font-family:var(--serif); font-weight:500; color:var(--title); }
h1 { font-size:clamp(3rem,6.05vw,5.3rem); font-style:italic; line-height:.91; }
h2 { font-size:clamp(2.8rem,5.5vw,4.25rem); line-height:.89; }
em { font-weight:inherit; }
.intro { text-align:center; padding-top:27px; }
.intro .eyebrow { margin:12px 0 22px; color:var(--muted); }
.eyebrow span { padding-inline:5px; }
.hero-photo { display:block; overflow:hidden; background:var(--linen); }
.hero-photo img { aspect-ratio:2.55; object-fit:cover; object-position:center 55%; }
.intro-copy { padding:32px 0 23px; }
.intro-copy p,.order p { color:var(--muted); margin:15px 0 0; }
.catalog { scroll-margin-top:15px; }
.catalog-toolbar { position:relative; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:center; margin-bottom:23px; }
.filters { display:flex; align-items:center; justify-content:center; gap:9px; }
.filters button { color:var(--muted); background:none; border:0; border-bottom:2px solid transparent; min-height:42px; padding:4px 12px; font-size:.94rem; }
.filters button[aria-pressed=true] { color:var(--accent); border-bottom-color:var(--accent); }
.filters button:hover { color:var(--accent); }
.catalog-count { position:absolute; right:0; font-size:.75rem; color:var(--muted); }
.product-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:28px 20px; }
.product { min-width:0; }
.product button { border:0; padding:0; width:100%; background:none; color:inherit; text-align:center; display:block; }
.product-image,.modal-image { display:grid; position:relative; place-items:center; background:#eee6db; overflow:hidden; aspect-ratio:1; }
.product-image img,.modal-image img { width:100%; height:100%; object-fit:contain; transition:transform .24s ease; }
.product-image img { padding:8%; }
.product button:hover .product-image img { transform:scale(1.045); }
.product-actions { position:absolute; bottom:9px; right:9px; background:var(--light); border:1px solid #ffffff73; display:grid; place-items:center; width:31px; height:31px; font:1.3rem var(--serif); }
.product h3 { font-size:1.59rem; line-height:1.02; margin:11px 0 5px; overflow-wrap:anywhere; }
.product p { margin:0; color:var(--muted); font-size:.83rem; }
.empty { text-align:center; margin:40px 0; }
.detail { margin-top:62px; text-align:center; }
.detail img { aspect-ratio:2.69; object-fit:cover; }
.detail h2 { font-size:clamp(2.5rem,5vw,4rem); margin-top:19px; }
.detail p { color:var(--muted); margin:9px 0 0; }
.editorial { margin:45px 0 0; display:grid; grid-template-columns:1.2fr 1fr; background:var(--linen); }
.editorial img { height:100%; max-height:415px; object-fit:cover; aspect-ratio:1.55; }
.editorial-copy { padding:37px clamp(24px,5vw,67px); align-self:center; }
.editorial-copy h2 { font-size:clamp(2.65rem,4.6vw,4rem); }
.editorial-copy p:last-child { margin-bottom:0; }
.order { text-align:center; padding:60px 0; }
.order details { border:1px solid var(--line); max-width:480px; padding:12px 16px; margin:23px auto 0; }
.order summary { cursor:pointer; }
.order-write { margin-top:19px; min-width:155px; }
.order details p { margin:9px 0 4px; }
.footer { border-top:1px solid var(--line); text-align:center; padding:23px 0 30px; }
.footer .footer-wordmark { width:150px; max-width:100%; height:auto; margin:0; mix-blend-mode:darken; }
.footer p,.footer-admin { font-size:.83rem; color:var(--muted); }
.footer-heart { color:inherit; }
.footer-socials { display:flex; justify-content:center; gap:8px; margin:10px 0 0; padding:0; list-style:none; color:var(--muted); }
.footer-socials span { display:grid; place-items:center; width:38px; height:38px; border:1px solid var(--line); border-radius:6px; }
.footer-socials svg { width:20px; height:20px; }
.footer-admin { text-underline-offset:4px; }

.product-dialog,.contact-dialog { border:1px solid var(--line); padding:0; max-height:calc(100dvh - 36px); color:var(--ink); background:var(--paper); }
.product-dialog { width:min(900px,calc(100% - 36px)); }
.product-dialog::backdrop { background:#34251db5; }
.contact-dialog { width:min(475px,calc(100% - 30px)); box-shadow:0 18px 60px #30201738; }
.contact-dialog::backdrop { background:#34251da6; }
body:has(dialog[open]) { overflow:hidden; }
.modal-layout { display:grid; grid-template-columns:1fr 1fr; gap:28px; position:relative; padding:30px; }
.close { position:absolute; z-index:1; top:10px; right:10px; width:40px; height:40px; border:1px solid var(--line); background:var(--light); font:2rem/.8 var(--serif); color:var(--ink); }
.modal-image img { padding:5%; }
.thumbnails { display:flex; gap:7px; flex-wrap:wrap; margin-top:9px; }
.thumbnails button { border:1px solid var(--line); background:var(--linen); width:55px; height:55px; padding:3px; }
.thumbnails button[aria-pressed=true] { border:2px solid var(--accent); }
.thumbnails img { width:100%; height:100%; object-fit:contain; }
.modal-info { padding-top:19px; min-width:0; }
.modal-info h2 { font-size:clamp(2.3rem,5vw,3.5rem); overflow-wrap:anywhere; }
.modal-price { margin:9px 0; color:var(--accent); font-size:1.08rem; }
.description { white-space:pre-wrap; overflow-wrap:anywhere; }
.item-facts { display:flex; flex-wrap:wrap; gap:0 18px; margin:18px 0 14px; padding:11px 0; border-block:1px solid var(--line); }
.item-fact { display:grid; flex:1 1 70px; gap:3px; padding-block:3px; }
.item-fact dt { color:var(--muted); font-size:.69rem; font-weight:600; text-transform:uppercase; letter-spacing:.10em; }
.item-fact dd { margin:0; color:var(--ink); font-weight:500; font-size:1.14rem; line-height:1.2; overflow-wrap:anywhere; }
.product-write { margin-top:5px; min-width:155px; }
.button { display:inline-flex; justify-content:center; align-items:center; padding:9px 15px; min-height:43px; border:1px solid var(--accent); background:var(--accent); color:var(--light); text-decoration:none; font-size:.9rem; }
.button:hover { background:#502728; color:white; }
.button.secondary { color:var(--ink); border-color:var(--line); background:transparent; }
.button.secondary:hover { background:var(--linen); }
.form-status { margin:5px 0 0; font-size:.86rem; min-height:1.3em; color:var(--accent); }
.contact-layout { position:relative; padding:30px clamp(16px,4vw,33px) 22px; }
.contact-layout .eyebrow { margin:0 36px 9px 0; color:var(--muted); }
.contact-layout h2 { font-size:clamp(2.3rem,7vw,3.2rem); margin-right:22px; }
.contact-product { margin:12px 0 0; color:var(--accent); overflow-wrap:anywhere; }
.contact-channels { display:grid; gap:7px; margin:17px 0; }
.contact-channel { display:flex; align-items:center; gap:11px; min-height:57px; padding:7px 10px; border:1px solid var(--line); background:var(--light); text-decoration:none; }
a.contact-channel:hover { border-color:var(--accent); background:var(--linen); }
.contact-channel-text { display:grid; gap:0; }
.contact-channel-text strong { font-weight:500; }
.contact-channel-text small { color:var(--muted); font-size:.78rem; }
.channel-badge { display:grid; flex:0 0 34px; height:34px; place-items:center; border-radius:50%; background:#e6d1cc; color:#693839; font-weight:600; font-size:.7rem; letter-spacing:.05em; }
.telegram .channel-badge { background:#dce8eb; color:#2d5669; }
.whatsapp .channel-badge { background:#dfe9df; color:#315741; }
.contact-draft { display:block; margin-bottom:4px; color:var(--muted); font-size:.78rem; }
.contact-layout textarea { display:block; width:100%; resize:vertical; min-height:80px; margin-bottom:9px; padding:9px; border:1px solid var(--line); border-radius:0; background:var(--light); color:var(--ink); font-size:.87rem; }

.admin { padding:38px 0 65px; }
.admin h1 { font-size:clamp(3rem,6vw,4.5rem); }
.admin-intro { display:flex; align-items:end; justify-content:space-between; gap:14px; margin-bottom:23px; }
.admin-intro p { margin:9px 0 0; color:var(--muted); }
.admin-ops { display:flex; gap:7px; flex-wrap:wrap; }
.login-panel { width:min(440px,calc(100% - 32px)); margin:clamp(25px,12vh,110px) auto; padding:clamp(18px,5vw,33px); }
.login-panel h1 { font-size:clamp(2.6rem,9vw,3.6rem); margin:25px 0 18px; text-align:center; }
.login-panel form { display:grid; gap:12px; margin-bottom:15px; }
.admin-layout { display:grid; grid-template-columns: minmax(210px,1fr) minmax(0,2.3fr); gap:20px; align-items:start; }
.admin-panel { border:1px solid var(--line); background:var(--light); padding:clamp(15px,2vw,25px); }
.admin-panel h2 { font-size:2.35rem; margin:0 0 16px; }
.admin-list { display:grid; gap:7px; }
.admin-list button { width:100%; border:1px solid var(--line); text-align:left; background:var(--paper); padding:7px; display:grid; grid-template-columns:45px minmax(0,1fr); align-items:center; gap:9px; color:var(--ink); }
.admin-list button[aria-pressed=true] { border-color:var(--accent); }
.admin-list img { width:45px; height:45px; object-fit:contain; background:var(--linen); }
.admin-list span { overflow-wrap:anywhere; }
.admin-set-status { display:block; color:var(--muted); }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.field { display:grid; gap:3px; min-width:0; }
.field.wide,.admin-gallery { grid-column:1/-1; }
.field input:not([type=checkbox]),.field select,.field textarea { min-width:0; width:100%; padding:9px; color:var(--ink); border:1px solid var(--line); background:var(--paper); border-radius:0; }
.field textarea { resize:vertical; }
.field small,.admin-note { color:var(--muted); }
.admin-gallery { margin:4px 0 0; }
.admin-gallery h3 { font-size:1.65rem; }
.admin-gallery input { max-width:100%; margin-top:9px; }
.admin-gallery-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(72px,1fr)); gap:8px; margin-top:9px; }
.admin-gallery-list img { width:100%; aspect-ratio:1; object-fit:contain; background:var(--linen); }
.admin-gallery-list button { width:100%; padding:4px 2px; font-size:.75rem; border:1px solid var(--line); background:var(--paper); color:var(--ink); }
.admin-gallery-list .cover { display:block; text-align:center; font-size:.75rem; padding:4px; color:var(--muted); }
.form-actions { display:flex; flex-wrap:wrap; gap:9px; margin-top:16px; }

@media(max-width:820px) {
  .frame { width:calc(100% - 42px); }
  .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 14px; }
  .hero-photo img { aspect-ratio:2; }
  .catalog-count { display:none; }
}
@media(max-width:600px) {
  .frame { width:calc(100% - 28px); }
  .masthead { min-height:92px; grid-template-columns:1fr; padding:9px 0; }
  .mast-link { display:none; }
  .brand img { width:32px; height:27px; }
  .masthead .mast-wordmark { width:clamp(174px,59vw,226px); }
  .wordmark { font-size:2.08rem; }
  .brand-caption { margin-top:4px; }
  .intro { padding-top:18px; }
  h1 { font-size:clamp(2.35rem,11vw,3.7rem); }
  .intro .eyebrow { margin:8px 0 15px; }
  .hero-photo img { aspect-ratio:1.75; }
  .intro-copy { padding:22px 0 13px; }
  .intro-copy h2 { font-size:clamp(2rem,9vw,3.12rem); }
  .intro-copy p { margin-top:11px; font-size:.91rem; }
  .filters { gap:2px; }
  .filters button { padding-inline:8px; font-size:.8rem; }
  .catalog-toolbar { margin-bottom:14px; }
  .product-grid { column-gap:10px; }
  .product h3 { font-size:clamp(1.23rem,5.2vw,1.6rem); margin-top:8px; }
  .product p { font-size:.74rem; }
  .product-actions { right:5px; bottom:5px; width:25px; height:25px; }
  .detail { margin-top:39px; }
  .detail img { aspect-ratio:1.8; }
  .editorial { grid-template-columns:1fr; margin-top:32px; }
  .editorial-copy { text-align:center; padding:16px 16px 28px; }
  .editorial img { aspect-ratio:1.75; }
  .order { padding:40px 0; }
  .modal-layout { grid-template-columns:1fr; padding:13px; gap:9px; }
  .modal-image { aspect-ratio:1.24; }
  .modal-info { padding:4px 3px 8px; }
  .product-write { width:100%; }
  .admin { padding-top:28px; }
  .admin-layout { grid-template-columns:1fr; }
  .admin-intro { align-items:start; flex-direction:column; }
  .admin-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important; scroll-behavior:auto!important; } }
