@import url("type.css?v=rubik1");
/* Печная Артель — витрина */
:root{color-scheme:light;--paper:#faf8f3;--ink:#221f19;--muted:#625e55;--line:#ded9ce;--gold:#ffd13e;--dark:#191815}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:20px}
body{margin:0;background:var(--paper);color:var(--ink);font:var(--type-body)/1.5 var(--type-family)}
a{color:inherit;text-underline-offset:.24em}
button,input,textarea,select,summary{font:inherit}
button,summary{cursor:pointer}button{color:inherit}
button:disabled{cursor:default}
[hidden]{display:none!important}
:focus-visible{outline:3px solid #8b5c00;outline-offset:3px}
.wrap{width:min(1344px,calc(100% - clamp(32px,7vw,104px)));margin-inline:auto}
h1,h2,h3,p{margin:0}
h1,h2{font-family:var(--type-family);line-height:1.12;letter-spacing:-.028em;font-weight:600}
h2{font-size:var(--type-section)}
.icon{width:20px;height:20px;flex:none}
.top,footer{background:var(--dark);color:#fffaf0}
.topline{display:flex;align-items:center;gap:clamp(16px,2.2vw,34px);min-height:78px}
.brand{display:flex;gap:10px;align-items:center;color:white;text-decoration:none;font:700 1.32rem/.98 var(--type-family);letter-spacing:-.025em}
.crest{width:70px;height:49px;overflow:hidden;display:block;mix-blend-mode:screen}
.crest img{width:100%;display:block;margin-top:-2px}
.city,.phone,.header-cart,.hero-cta,.basket-heading,.mobile-cart>span,.search,.quantity{display:inline-flex;align-items:center}
.city{color:#e4dfd3;font-size:var(--type-small);gap:5px}.city .icon{width:15px;color:var(--gold)}
.primary{display:flex;align-items:center;gap:24px;margin:auto}
.primary a,.phone,.footer-inner a{text-decoration:none}
.primary a{font-weight:500;font-size:var(--type-body)}.primary a:hover,.footer-inner a:hover,.phone:hover{color:var(--gold)}
.phone{font-weight:600;gap:8px;white-space:nowrap}.phone .icon{width:16px}
.yellow,.header-cart{background:var(--gold);color:#19170d;border:0;border-radius:10px;font-weight:600}
.yellow:hover:not(:disabled),.header-cart:hover,.add:hover{background:#f3bf1d}
.header-cart{gap:9px;min-height:44px;padding:8px 15px}
.cart-count{font:600 var(--type-small)/1.2 var(--type-family);background:#191815;color:var(--gold);border-radius:12px;padding:3px 7px}
.mobile-menu,.mobile-cart{display:none}
.hero{isolation:isolate;position:relative;display:flex;align-items:center;overflow:hidden;background:var(--dark);color:#fffaf0;min-height:clamp(300px,25vw,365px);border-radius:18px;margin:22px 0 36px}
.hero picture,.hero picture img,.hero:after{position:absolute;inset:0;width:100%;height:100%;z-index:-2}
.hero picture img{object-fit:cover;object-position:50% 53%}
.hero:after{content:"";z-index:-1;background:linear-gradient(90deg,rgba(15,13,10,.68),rgba(15,13,10,.26) 41%,transparent 66%)}
.hero-copy{width:min(65%,820px);padding:clamp(27px,3.2vw,56px);overflow-wrap:anywhere}
.hero h1{font-size:var(--type-display);line-height:1.02;letter-spacing:-.035em;font-weight:700}
.hero h1 em{color:var(--gold);font-style:normal;white-space:pre-line}
.hero p{max-width:37ch;line-height:1.45;margin:15px 0 18px;color:#fffaf2}
.hero-cta{min-height:44px;text-decoration:none;padding:10px 22px}
.section-head{display:flex;align-items:center;gap:12px}
.counter{align-self:center;font-weight:600;font-size:var(--type-small);background:#eee9df;border-radius:20px;padding:3px 10px;color:#554d40}
.search{margin-left:auto;border:1px solid var(--line);background:white;border-radius:10px;gap:10px;padding:0 14px}
.search:focus-within{outline:2px solid #9b7000}.search input{height:44px;border:0;outline:0;min-width:0;background:none;color:var(--ink);width:230px}
.filters{display:flex;gap:8px;overflow:auto;padding:4px 3px 8px;margin:13px -3px 11px;scrollbar-width:thin}
.filter,#reset-search{border:1px solid var(--line);border-radius:24px;background:#fffdf8;min-height:42px;padding:6px 18px;font-weight:500;white-space:nowrap}
.filter[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:white}.filter:hover:not([aria-pressed=true]){border-color:#a69b87}
.catalog-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(240px,21%,292px);gap:18px;align-items:start}
.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.product,.basket,.delivery-grid article,#empty-search{background:#fffefa;border:1px solid var(--line);border-radius:16px}
.product{display:grid;grid-template-columns:minmax(78px,40%) minmax(0,1fr);grid-template-rows:1fr auto;gap:12px;align-items:center;min-height:181px;padding:15px}
.product>img{width:100%;max-width:132px;height:auto;aspect-ratio:1;object-fit:contain;border-radius:50%}
.weight{color:var(--muted);font-size:var(--type-small);display:block}
.product h3{font-size:var(--type-card);font-weight:600;line-height:1.22;letter-spacing:-.012em;margin:3px 0 6px;overflow-wrap:anywhere}
.product p{font-size:var(--type-small);color:#514c43;line-height:1.45;overflow-wrap:anywhere}
.product-buy{grid-column:1/-1;align-self:end;display:flex;align-items:center;justify-content:space-between;gap:6px}
.product-buy strong{white-space:nowrap;font-weight:600;font-size:var(--type-price);letter-spacing:-.015em}
.add,.quantity{border:0;border-radius:9px;min-height:42px;font-weight:600}
.add{background:var(--gold);padding:8px 15px}
.quantity{background:#f0ede5;gap:2px;justify-content:space-between;white-space:nowrap}
.quantity button{width:38px;min-height:42px;background:transparent;border:0;border-radius:8px;font-size:1.2rem}
.quantity button:hover{background:#e5e0d4}.quantity button:disabled{opacity:.42}.quantity span{min-width:1.3em;text-align:center}
.basket{padding:20px;position:sticky;top:14px;max-height:calc(100dvh - 28px);overflow:auto}
.basket-heading{gap:10px}.basket-heading h2,.dialog-head h2{font-size:var(--type-panel)}
.basket-heading .icon{color:#685019}
.empty-cart,.muted,.basket small{color:var(--muted);font-size:var(--type-small)}
.empty-cart{padding:16px 0}.basket-summary{display:flex;justify-content:space-between;align-items:center;padding:15px 0;border-top:1px solid var(--line);font-weight:bold}
.cart-total{font-variant-numeric:tabular-nums}.basket-summary strong{font-size:var(--type-price);font-weight:600}.checkout-btn,form button[type=submit]{width:100%;min-height:46px}
.checkout-btn:disabled{background:#e9e5db;color:#655f54}
.basket small{display:block;text-align:center;margin-top:8px}
.basket-row{display:grid;grid-template-columns:40px 1fr;gap:3px 9px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.basket-row img{width:40px;height:40px;object-fit:contain;border-radius:50%;grid-row:span 2}
.basket-row strong{font-size:var(--type-body);line-height:1.3;font-weight:600}.row-bottom{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap}
.row-bottom .quantity{min-height:35px;font-size:.875rem}.row-bottom .quantity button{width:32px;min-height:35px}
#empty-search{padding:24px}#empty-search p{margin:6px 0 14px}
.about{margin:38px 0;padding:clamp(25px,3.3vw,50px);border-radius:16px;color:white;background:#242019 linear-gradient(90deg,#161412e8 3%,#161412b3 42%,transparent 83%);position:relative;isolation:isolate;overflow:hidden}
.about:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#171410e8,#171410a6 42%,transparent 85%),url('dough.webp') center 52%/cover;z-index:-1}
.about h2{font-size:var(--type-section)}.about p{margin-top:10px;max-width:40ch;color:#fffaf2}
#delivery h2,#contacts h2{font-size:var(--type-section);max-width:28ch}
.delivery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0 28px}
.delivery-grid article{padding:clamp(18px,2vw,28px)}.delivery-grid h3{font-size:var(--type-card);font-weight:600;line-height:1.3}
.delivery-grid p,#contacts>p{color:var(--muted);margin-top:8px}.contact-links{display:flex;flex-wrap:wrap;gap:18px;padding-bottom:32px}
.footer-inner{display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding-block:26px;font-size:.875rem;color:#e6e1d8}
.footer-inner strong{font:600 1.25rem/1.2 var(--type-family);color:#fff;margin-right:auto}.footer-inner span{color:#c6bfae}
dialog{border:1px solid var(--line);padding:0 24px 24px;width:min(520px,calc(100% - 24px));max-height:90dvh;background:var(--paper);color:var(--ink);border-radius:18px;overscroll-behavior:contain}
dialog::backdrop{background:#15120fb8}body:has(dialog[open]){overflow:hidden}
.dialog-head{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:var(--paper);padding:15px 0;border-bottom:1px solid var(--line);z-index:1}
.dialog-head button{border:1px solid var(--line);border-radius:50%;width:44px;height:44px;line-height:1;background:#fffdf9;font-size:1.5rem}
#order-message:not(:empty){padding:12px 14px;background:#fbefc8;border-radius:8px;margin:8px 0}
form label{display:block;font-size:var(--type-body);font-weight:500;margin:12px 0}
form input:not([type=radio]):not([type=checkbox]),form select,form textarea{display:block;width:100%;border:1px solid #bfb7a8;background:#fffefa;color:inherit;font-size:1rem;padding:10px 12px;margin-top:4px;border-radius:8px}
form textarea{min-height:68px;resize:vertical}form p{color:var(--muted);font-size:var(--type-small);margin:8px 0}
form .check{font-weight:normal;line-height:1.4}.check input{accent-color:var(--ink)}
.modes{border:0;margin:0;padding:0;display:flex;gap:6px}.modes legend{font-weight:bold;padding:0;margin-bottom:6px}
.modes label{flex:1;margin:0;position:relative}.modes input{position:absolute;opacity:0}
.modes span{display:block;text-align:center;padding:10px;border:1px solid var(--line);border-radius:8px;cursor:pointer}
.modes input:checked+span{background:var(--ink);color:white;border-color:var(--ink)}.modes input:focus-visible+span{outline:3px solid #8b5c00}
.legal{padding:42px 0;max-width:800px;min-height:65vh}.legal h1{margin:20px 0}.legal p{margin:15px 0}
@media(max-width:1200px){.products{grid-template-columns:repeat(2,minmax(0,1fr))}.primary{gap:14px}.product{min-height:160px}.phone .icon{display:none}}
@media(max-width:980px){.city{display:none}.topline{gap:14px}.catalog-layout{grid-template-columns:1fr 228px}.basket{padding:15px}.wrap{width:calc(100% - 40px)}}
@media(max-width:800px){.catalog-layout{display:block}.basket{display:none}.primary{display:none}.brand{margin-right:auto}.header-cart{display:none}.mobile-menu{display:block;position:relative}.mobile-menu summary{display:grid;place-items:center;list-style:none;width:44px;height:44px;border:1px solid #575348;border-radius:10px}.mobile-menu summary::-webkit-details-marker{display:none}.mobile-menu nav{position:absolute;right:0;top:52px;z-index:5;background:var(--dark);padding:8px;border-radius:12px;width:200px;box-shadow:0 7px 26px #0003}.mobile-menu a{display:block;padding:9px 12px;text-decoration:none}.mobile-cart:not([hidden]){display:flex;align-items:center;justify-content:space-between;position:fixed;z-index:4;bottom:max(12px,env(safe-area-inset-bottom));left:16px;right:16px;width:calc(100% - 32px);max-width:520px;margin:auto;min-height:52px;padding:11px 20px;box-shadow:0 4px 18px #15100936}.mobile-cart>span{gap:9px}body:has(.mobile-cart:not([hidden])) footer{padding-bottom:72px}}
@media(max-width:640px){.wrap{width:calc(100% - 28px)}.topline{min-height:63px;gap:9px}.brand{font-size:1.13rem;gap:6px}.crest{width:52px;height:36px}.city{display:flex;font-size:.82rem}.phone{width:40px;height:44px;justify-content:center}.phone .icon{display:block;width:20px}.phone span{position:absolute;clip-path:inset(100%);width:1px;height:1px;overflow:hidden}.hero{border-radius:14px;margin:14px 0 26px;min-height:250px}.hero-copy{width:100%;padding:23px}.hero h1{font-size:clamp(1.65rem,8vw,3rem)}.hero p{max-width:25ch;font-size:var(--type-body);margin:12px 0 16px}.hero:after{background:linear-gradient(90deg,#100e0be8 0%,#100e0bba 35%,#100e0b17 100%)}.hero picture img{object-position:58% center}.section-head{flex-wrap:wrap;gap:8px}.search{width:100%;margin:4px 0 0}.search input{width:100%}.filters{margin-block:7px 6px}.filter{padding-inline:14px}.products{grid-template-columns:1fr;gap:8px}.product{grid-template-columns:minmax(83px,30%) minmax(0,1fr);padding:12px;min-height:130px;gap:6px 13px}.product>img{grid-row:span 2}.product-buy{grid-column:2}.product h3{font-size:var(--type-card);margin:1px 0 4px}.product p{line-height:1.45}.add{padding-inline:12px}.about{margin:26px 0}.about p{max-width:28ch}.delivery-grid{grid-template-columns:1fr;gap:8px}.footer-inner{gap:12px 18px}.footer-inner strong{width:100%}dialog{padding:0 16px 20px;max-height:94dvh}.section-head h2{font-size:var(--type-section)}}
@media(max-width:360px){.city{display:none}.product{grid-template-columns:24% 1fr}.product-buy strong{font-size:1.1rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.product-buy strong, .quantity, .cart-count, .basket-summary, .phone { font-variant-numeric: tabular-nums; }
.legal h1 { font-size: var(--type-section); overflow-wrap: anywhere; }
