@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
:root{--ink:#20241e;--muted:#5c6357;--line:#dedfd7;--bg:#f7f7f2;--accent:#e8f368}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px Inter,Arial,sans-serif}h1,h2,h3,p{margin:0}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #718022;outline-offset:3px}.wrap{width:min(1200px,calc(100% - 56px));margin:auto}.bar{min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:16px}header,footer{background:#fff;border-bottom:1px solid var(--line)}.logo{display:flex;align-items:center;gap:9px;font-weight:800;font-size:20px}.logo img{display:block;flex:none;width:56px;height:56px;border-radius:8px}.logo{line-height:1.12}@media(max-width:360px){.logo{font-size:16px;gap:7px}.logo img{width:45px;height:45px}}nav{display:flex;gap:28px;color:var(--muted)}.dark,.primary{border:0;border-radius:8px;font-weight:700;padding:12px 16px;display:inline-flex;align-items:center;gap:12px;justify-content:center}.dark{background:var(--ink);color:white}.dark span{color:var(--accent)}.primary{background:var(--accent);color:var(--ink)}.primary:hover{background:#d9e650}.hero{margin:30px 0 48px;min-height:364px;border-radius:19px;overflow:hidden;background:#282f24;color:white;display:grid;grid-template-columns:1.22fr 1fr}.hero-copy{padding:42px 45px}.location{font-size:11px;font-weight:800;letter-spacing:.16em;color:var(--accent)}h1{font-size:clamp(34px,5vw,61px);letter-spacing:-.055em;line-height:1.03;margin:17px 0}.hero-copy>p:not(.location){color:#dce0d6;line-height:1.6;margin-bottom:23px}.hero-art{background:#e9e5dd url('materials.png') 50% 0 / 200% 200% no-repeat}.section-head{display:flex;justify-content:space-between;align-items:end;gap:15px}h2{font-size:34px;letter-spacing:-.04em}.section-head p,.delivery p,.summary p{color:var(--muted);margin-top:6px;line-height:1.5}.search{display:flex;align-items:center;gap:8px;background:white;border:1px solid var(--line);border-radius:8px;padding:10px 13px}.search span{font-size:20px}.search input{border:0;background:transparent;width:min(240px,50vw)}.filters{display:flex;flex-wrap:wrap;gap:7px;margin:20px 0 12px}.filters button{border:1px solid var(--line);border-radius:20px;padding:8px 12px;background:#fff;color:var(--ink)}.filters button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:white}#results{font-size:13px;color:var(--muted);margin-bottom:14px}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.card{border:1px solid var(--line);background:white;border-radius:12px;overflow:hidden;display:flex;flex-direction:column}.photo{aspect-ratio:1.2;background:#e9e5dd url('materials.png') var(--x) var(--y) / 400% 200% no-repeat}.card-body{padding:15px;display:flex;flex-direction:column;gap:8px;flex:1}.card h3{font-size:17px}.card p{font-size:13px;color:var(--muted)}.price-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:10px}.price-row strong{font-size:20px}.price-row small{color:var(--muted)}.add{background:var(--accent);border:0;border-radius:8px;width:38px;height:38px;font-size:25px}.delivery{margin:48px 0}.delivery>div{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:15px}.delivery article{background:#edf0e5;border-radius:12px;padding:22px}footer{border-top:1px solid var(--line);color:var(--muted)}dialog{border:0;border-radius:14px;width:min(490px,calc(100% - 26px));padding:22px;color:var(--ink);max-height:85vh}dialog::backdrop{background:#20241e88}.dialog-head,.line{display:flex;justify-content:space-between;align-items:center;gap:12px}.close,.line button{background:#eee;border:0;border-radius:6px;padding:7px 10px}.close{font-size:23px}.line{padding:13px 0;border-bottom:1px solid var(--line)}.qty{display:flex;align-items:center;gap:8px;flex-shrink:0}.summary:not([hidden]){display:grid;gap:13px;margin-top:16px}.summary select{margin-left:7px;padding:5px}.summary p{font-size:13px}html{scroll-behavior:smooth}@media(max-width:950px){.grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:690px){.wrap{width:calc(100% - 26px)}nav{display:none}.hero{grid-template-columns:1fr;margin-top:14px}.hero-copy{padding:26px 20px}.hero-art{min-height:160px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.card-body{padding:10px}.card h3{font-size:15px}.price-row strong{font-size:17px}.section-head{align-items:start;flex-direction:column}.delivery>div{grid-template-columns:1fr}footer .bar{flex-wrap:wrap;padding:15px 0}}

/* Store navigation */
header{border-bottom:1px solid var(--line)}
.topline{background:#262b23;color:#fff;font-size:13px}
.topline .wrap{min-height:36px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.topline nav{color:inherit;gap:20px}
.topline a:hover,.catalog-menu a:hover{text-decoration:underline}
.shopbar{min-height:84px;display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;gap:16px;align-items:center}
.catalog-menu{position:relative;z-index:2}
.catalog-menu summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;background:var(--accent);border-radius:8px;padding:12px 15px;font-weight:800}
.catalog-menu summary::-webkit-details-marker{display:none}
#menuGroups{position:absolute;top:calc(100% + 8px);left:0;min-width:235px;padding:7px;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 32px #20241e25}
#menuGroups a{display:block;padding:10px 12px;border-radius:6px}
#menuGroups a:hover,#menuGroups a:focus-visible{background:#f1f3e9}
.shopbar .search{min-width:0;padding:0;overflow:hidden}
.shopbar .search input{width:100%;min-width:0;padding:11px 12px}
.shopbar .search button{align-self:stretch;border:0;background:#eef0e8;padding:0 14px;font-weight:700}
.category-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:15px 0 27px}
.category-tile{display:grid;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;font-weight:700}
.category-tile .photo{aspect-ratio:1.6}
.category-tile span{padding:10px 12px}
.category-tile:hover{border-color:#778244}
#categories h2{font-size:27px}
@media(max-width:890px){.shopbar{gap:10px}.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:690px){.shopbar{grid-template-columns:1fr auto auto;padding:10px 0}.shopbar .search{grid-column:1/-1;grid-row:2}.topline nav{display:none}.shopbar .logo{font-size:16px}.shopbar .logo img{width:39px;height:39px}.catalog-menu summary,.shopbar .dark{padding:9px 8px;font-size:13px}#menuGroups{left:auto;right:0}.category-tile span{padding:8px;font-size:13px}}
@media(max-width:370px){.shopbar .logo img{width:32px;height:32px}.shopbar{gap:5px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.warehouse-hero{width:100%;height:100%;min-height:190px;max-height:390px;object-fit:cover;object-position:center 44%;background:none}
.warehouse{margin:0 0 48px}.warehouse-photos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:15px}
.warehouse-photos figure{margin:0;border:1px solid var(--line);background:#fff;border-radius:12px;overflow:hidden}
.warehouse-photos img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.warehouse-photos figcaption{padding:11px 12px;font-size:13px}
@media(max-width:690px){.warehouse-photos{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-hero{height:220px}}
.warehouse-photos{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:690px){.warehouse-photos{grid-template-columns:repeat(2,minmax(0,1fr))}}
.warehouse-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.warehouse-heading a{color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.warehouse-photos{grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:clamp(125px,15vw,188px);gap:10px}
.warehouse-photos figure{border:0;background:#262b23}
.warehouse-photos figure:first-child{grid-column:span 2;grid-row:span 2}
.warehouse-photos a{display:block;position:relative;height:100%;color:#fff}
.warehouse-photos a:focus-visible{outline-offset:-4px;outline-color:#e8f368}
.warehouse-photos img{width:100%;height:100%;aspect-ratio:auto;object-fit:cover;transition:transform .25s}
.warehouse-photos figure:first-child img{object-position:center 43%}
.warehouse-photos a:hover img{transform:scale(1.04)}
.photo-caption{position:absolute;inset:auto 0 0;padding:27px 12px 12px;background:linear-gradient(transparent,#151713f2);font-size:14px;font-weight:700;line-height:1.25}
.warehouse-photos figure:first-child .photo-caption{font-size:22px;padding:48px 18px 17px}
@media(max-width:690px){.warehouse-photos{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:clamp(110px,28vw,170px)}.warehouse-photos figure:first-child{grid-row:span 2}.photo-caption{font-size:13px}}
@media(prefers-reduced-motion:reduce){.warehouse-photos img{transition:none}}
.product-photo{display:block;width:100%;aspect-ratio:1.2;object-fit:contain;background:#fff}.photo-pending{display:grid;place-items:center;background:#eef0e8;color:var(--muted);font-size:13px}
.card .product-description{line-height:1.45;color:var(--muted)}
.page-links{display:flex;justify-content:flex-start;gap:22px;width:min(1200px,calc(100% - 56px));margin:auto;padding:0 0 12px;flex-wrap:wrap}
.page-links a{font-weight:600}.page-links [aria-current=page]{text-decoration:underline;text-underline-offset:5px}
#catalog{margin:34px 0 48px}.delivery h1,#catalog h1{font-size:clamp(32px,5vw,48px);margin-top:0}.text-link{text-decoration:underline}
@media(max-width:690px){.page-links{width:calc(100% - 26px);gap:9px 15px;font-size:13px}}
.account{max-width:550px;margin-inline:auto}.account form:not([hidden]){display:grid;gap:16px}.account label{display:grid;gap:7px;font-weight:600}.account input{width:100%;padding:12px;border:1px solid var(--line);border-radius:8px}.account article{margin-top:14px}.account article button{margin-top:12px}
#account-forms details{margin-top:14px;padding:14px;background:#fff;border-radius:10px}#account-forms summary{cursor:pointer;font-weight:600}#account-forms details form{margin-top:14px}

/* Alfa-Stroy brand */
:root {
  color-scheme: dark;
  --ink: #f7f7f7;
  --muted: #c0c0c0;
  --line: #414141;
  --bg: #080808;
  --accent: #ffcf32;
  --surface: #141414;
  --gold-line: #826a2d;
}
body { min-width: 280px; }
.wrap, .page-links { width: min(1480px, calc(100% - 64px)); }
header, footer, .topline { background: var(--bg); }
header { border-bottom-color: var(--gold-line); }
.topline { color: var(--muted); border-bottom: 1px solid #242424; }
.shopbar { min-height: 76px; gap: clamp(10px, 2vw, 28px); }
.shopbar .logo { color: var(--accent); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.shopbar .logo img { width: 49px; height: 49px; object-fit: cover; object-view-box: inset(13% 28% 33% 20%); border-radius: 0; }
.catalog-menu summary, .dark { background: transparent; color: var(--ink); border: 1px solid var(--gold-line); }
.catalog-menu summary span, .dark span { color: var(--accent); }
.search, #menuGroups, .card, .category-tile, .delivery article, #account-forms details, dialog { background: var(--surface); }
.shopbar .search { border-color: var(--gold-line); }
.shopbar .search input { color: var(--ink); }
.shopbar .search button, .primary, .add { background: var(--accent); color: #0b0b0b; }
.primary:hover, .add:hover, .shopbar .search button:hover { background: #ffdf62; }
#menuGroups a:hover, #menuGroups a:focus-visible, .close, .line button { background: #292929; }
.page-links [aria-current=page], .page-links a:hover, .price-row strong { color: var(--accent); }
.filters button { background: var(--surface); color: var(--ink); }
.filters button[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: #080808; }
.product-photo { background: #fff; }
.photo-pending { background: #242424; }
dialog { border: 1px solid var(--gold-line); }
dialog::backdrop { background: #000b; }
:focus-visible { outline-color: var(--accent) !important; }
.home .hero {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr);
  min-height: 470px;
  margin: 0 calc((100% - 100vw) / 2) 30px;
  background: #080808;
  border: 0;
  border-bottom: 1px solid var(--gold-line);
  border-radius: 0;
}
.home .hero-copy { position: relative; z-index: 1; width: min(1480px, calc(100% - 64px)); margin-inline: auto; padding: 30px 0 34px; }
.hero-logo { display: block; width: min(230px, 56vw); height: auto; aspect-ratio: 1.16; object-fit: contain; object-view-box: inset(12% 9% 12% 9%); mix-blend-mode: screen; }
.home .hero h1 { max-width: 680px; font-size: clamp(37px, 4.35vw, 69px); margin: 10px 0 24px; }
.home .hero .primary { padding: 16px 23px; font-size: 17px; }
.hero-address { display: block; width: fit-content; margin-top: 20px; font-weight: 600; }
.hero-address:hover { text-decoration: underline; }
.hero-address span { color: var(--accent); margin-right: 8px; }
.home .hero-art { position: absolute; inset: 0 0 0 auto; z-index: -1; width: 72%; height: 100%; min-height: 0; overflow: hidden; background: #080808 url('site-design-photo.png') no-repeat; background-size:154.545% 194.872%;background-position:100.000% 17.375%; }
.home .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#080808 24%,#080808ef 32%,#08080860 55%,transparent 74%); }
.home #categories { padding-bottom: 30px; }
.home #categories h2 { display: flex; align-items: center; gap: 22px; font-size: clamp(24px, 3vw, 40px); }
.home #categories h2::after { content: ""; flex: 1; border-top: 1px solid var(--gold-line); }
.home .category-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-top: 21px; }
.category-tile { border-color: var(--gold-line); }
.category-tile:hover { border-color: var(--accent); }
.category-tile span { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; }
.category-tile span::after { content: '→'; color: var(--accent); }
.category-tile .category-image { display: block; width: 100%; aspect-ratio: 1.65; object-fit: cover; background: #f5f5f5; }
.category-tile .category-sheets { background: #161616 url('site-design-photo.png') no-repeat; background-size:452.128% 475.000%;background-position:4.230% 88.571%; }
.category-tile .category-mixes { background: #161616 url('site-design-photo.png') no-repeat; background-size:452.128% 475.000%;background-position:34.743% 88.571%; }
.category-tile .category-insulation { background: #161616 url('site-design-photo.png') no-repeat; background-size:447.368% 475.000%;background-position:65.303% 88.571%; }
.category-tile .category-fasteners { background: #161616 url('site-design-photo.png') no-repeat; background-size:452.128% 475.000%;background-position:95.770% 88.571%; }
.category-tile .category-extra { object-fit: contain; }
@media (max-width: 850px) {
  .wrap, .page-links, .home .hero-copy { width: calc(100% - 32px); }
  .home .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
}
@media (max-width: 690px) {
  .home .hero { min-height: 0; }
  .home .hero-copy { padding: 216px 0 28px; }
  .home .hero-art { width: 100%; height: 255px; }
  .home .hero::after { background: linear-gradient(180deg,transparent 0,#08080844 115px,#080808 255px); }
  .hero-logo { width: 112px; }
  .home .hero h1 { font-size: clamp(27px, 8.3vw, 45px); margin-bottom: 17px; }
  .home .hero .primary { padding: 13px 16px; font-size: 15px; }
  .shopbar .logo { letter-spacing: .04em; }
  .shopbar .logo img { width: 35px; height: 35px; }
  .shopbar .search input { font-size: 16px; }
  .price-row { flex-wrap: wrap; }
  .category-tile span { padding: 9px; }
}

@media (max-width: 370px) {
  .shopbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .shopbar .logo { grid-column: 1 / -1; }
  .shopbar .search { grid-row: 3; }
  .shopbar .dark { justify-self: end; }
  #menuGroups { left: 0; right: auto; }
  .category-tile span { overflow-wrap: anywhere; }
}


/* Product pages share the catalog's colors and purchase controls. */
.catalog-card { position: relative; }
.catalog-card:hover { border-color: var(--gold-line); }
.product-link::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.product-link:focus-visible::after { outline: 3px solid var(--accent); outline-offset: -3px; }
.catalog-card .add { position: relative; z-index: 1; }
.card-more, .product-back { color: var(--accent); font-weight: 700; }
.card-more { font-size: 13px; }
#product { margin-block: 30px 48px; }
.product-back { display: inline-block; margin-bottom: 20px; }
.product-back:hover { text-decoration: underline; }
.product-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 5vw, 72px); align-items: start; }
.product-visual .product-photo { aspect-ratio: 1.1; border-radius: 12px; }
.product-info h1 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 56px); overflow-wrap: anywhere; }
.product-info h2 { margin-bottom: 12px; font-size: clamp(22px, 3vw, 30px); }
.product-info section { margin-top: 24px; }
.product-info p { line-height: 1.5; }
.product-subtitle, .photo-note { color: var(--muted); }
.photo-note { font-size: 13px; margin-top: 9px; }
.product-prices { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; margin-top: 22px; }
.product-prices .price-row { padding-block: 12px; }
.product-prices .price-row + .price-row { border-top: 1px solid var(--line); }
.product-prices .price-row strong { font-size: 25px; }
.product-feedback:not(:empty) { color: var(--accent); margin-top: 10px; }
.product-facts { margin: 0; }
.product-facts > div { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.product-facts dt { color: var(--muted); }
.product-facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 690px) {
  .product-layout { grid-template-columns: 1fr; }
  .product-visual .product-photo { max-height: 320px; }
}

#order-form { display:grid; gap:10px; border-top:1px solid var(--line); padding-top:12px; }
#order-form label { display:grid; gap:5px; }
#order-form input { width:100%; min-width:0; padding:9px; border:1px solid var(--line); border-radius:6px; }
#order-result:not(:empty) { margin-top:12px; color:var(--accent); }
.account:has(#admin-panel:not([hidden])) { max-width:850px; }
.admin-order { padding:14px; border:1px solid var(--line); border-radius:10px; }
.admin-order p { overflow-wrap:anywhere; }
.admin-order ul { padding-left:24px; line-height:1.5; }
.account [hidden] { display:none; }

.product-stock{display:block;margin-top:.25rem;color:var(--ink,#333)}
.catalog-admin{display:grid;gap:1rem}
.catalog-admin[hidden],.catalog-admin form[hidden],.catalog-admin img[hidden]{display:none}
.catalog-admin-toolbar,.catalog-admin-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem}
.catalog-admin-toolbar{align-items:end}
.catalog-admin-fields{border:0;padding:0;margin:0;min-width:0}
.catalog-admin-fields label,.catalog-admin-toolbar label,.catalog-admin>label{display:grid;gap:.35rem;min-width:0}
.catalog-admin-fields :is(input,textarea),.catalog-admin-toolbar input,.catalog-admin select{box-sizing:border-box;width:100%;padding:.65rem;border:1px solid #aeb8bf;border-radius:.375rem;font:inherit;background:#fff;color:#15232b}
.catalog-admin-fields input[type=file]{padding:.4rem}
.catalog-admin-wide{grid-column:1/-1}
.catalog-admin-fields .catalog-admin-check{display:flex;align-items:center;gap:.5rem}
.catalog-admin-fields .catalog-admin-check input{width:auto}
.catalog-admin-preview{width:7rem;height:7rem;object-fit:contain}
.catalog-admin form h3{margin:0 0 .75rem}
#catalog-admin-status:empty{display:none}
#admin-email-form{margin-top:1.25rem}
@media (max-width:570px){.catalog-admin-toolbar,.catalog-admin-fields{grid-template-columns:1fr}}
@supports (width: 1cqh) {
  .home .hero-art { container-type: size; background: #080808; }
  .home .hero-art::before {
    content: ""; position: absolute; top: 50%; right: 0;
    width: max(100%, 201.465cqh); aspect-ratio: 550 / 273;
    transform: translateY(-50%);
    background: url('site-design-photo.png') no-repeat; background-size:154.545% 194.872%;background-position:100.000% 17.375%;
  }
  @media (max-width: 690px) {
    .home .hero-art::before { right: 50%; transform: translate(50%, -50%); }
  }
}
