:root {
  --green: #304D43;
  --cream: #F3F1E9;
  --sand: #B49B79;
  --sage: #A5B5A4;
  --ink: #29352F;
  --muted: #526359;
  --line: #CED8CF;
  --orange: #F56032;
  --rust: #A9502E;
  --display: Georgia, serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 15px/1.5 Arial, sans-serif; }
a, button, input { color: inherit; font: inherit; }
a { text-decoration: none; }
button { cursor: pointer; border: 0; background: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
.mast :focus-visible { outline-color: var(--sand); }
.frame { width: min(100%, 1280px); margin-inline: auto; padding-inline: 32px; }

.utility-inner, .contacts, .mast-inner, .actions, .nav-inner, .quick-links {
  display: flex;
  align-items: center;
}
.utility-inner { min-height: 36px; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.contacts { gap: 24px; }
.contacts a { color: var(--ink); padding-block: 8px; white-space: nowrap; }
.contacts a:hover { color: var(--rust); }

.mast { background: var(--green); color: var(--cream); }
.mast-inner { min-height: 120px; gap: clamp(24px, 5vw, 80px); }
.brand { display: inline-flex; align-items: center; min-height: 60px; margin-right: auto; }
.brand span { width: 154px; aspect-ratio: 2.13; background: var(--cream); mask: url("/media/bathstudio/catalog-20261123/headers/logo.png") center / contain no-repeat; }
.magazine { display: flex; align-items: center; gap: 16px; }
.magazine img { display: block; object-fit: cover; }
.magazine small { display: block; color: var(--cream); font-size: 11px; letter-spacing: .08em; }
.magazine-title { display: block; font: 26px/1.18 var(--display); white-space: nowrap; margin-top: 2px; }
.magazine:hover .magazine-title { text-decoration: underline; text-decoration-color: var(--sand); text-underline-offset: 5px; }
.actions { gap: 12px; }
.project { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 46px; padding: 0 16px; border: 1px solid var(--sage); white-space: nowrap; }
.project:hover { background: var(--cream); color: var(--green); border-color: var(--cream); }
.arrow { display: inline-block; width: .65em; height: .65em; border-top: 1px solid currentColor; border-right: 1px solid currentColor; position: relative; flex: none; }
.arrow::after { content: ""; position: absolute; width: 125%; height: 1px; right: 0; top: 0; background: currentColor; transform-origin: right; transform: rotate(-45deg); }
.icon-button { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding-inline: 8px; }
.mast .icon-button:hover { color: var(--sand); }
.search-icon { position: relative; width: 15px; height: 15px; border: 1.5px solid currentColor; border-radius: 50%; margin-right: 4px; }
.search-icon::after { content: ""; position: absolute; width: 7px; height: 1.5px; background: currentColor; right: -5px; bottom: -3px; transform: rotate(47deg); }
.bag-icon { position: relative; width: 15px; height: 14px; border: 1.5px solid currentColor; margin-top: 4px; }
.bag-icon::before { content: ""; position: absolute; width: 6px; height: 6px; top: -6px; left: 2.8px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 8px 8px 0 0; }
.cart-count { font-size: 11px; }

.navigation { border-bottom: 1px solid var(--line); }
.nav-inner { min-height: 60px; gap: clamp(18px, 4vw, 56px); }
.catalog-toggle { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; padding: 0 18px 0 0; border-bottom: 2px solid var(--orange); font-weight: 700; color: var(--green); }
.chevron { width: 7px; height: 7px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg) translateY(-2px); }
[aria-expanded="true"] .chevron { transform: rotate(225deg); }
.quick-links { gap: clamp(16px, 3vw, 44px); }
.navigation a, .menu-layout a { display: inline-flex; align-items: center; min-height: 44px; }
.navigation a:hover, .menu-layout a:hover { color: var(--rust); text-decoration: underline; text-underline-offset: 4px; }
.brands { margin-left: auto; }
.nav-inner .mobile-magazine { display: none; }

.catalog-menu { border-bottom: 1px solid var(--line); }
.menu-layout { display: grid; grid-template-columns: 3fr 1fr; gap: 32px; padding-block: 28px; }
.menu-categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
.menu-links { display: grid; align-content: start; border-left: 1px solid var(--line); padding-left: 24px; }
.menu-links a { justify-content: space-between; gap: 10px; }
.preview { padding-block: 28px; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.preview p { margin: 0; }
.preview a { text-decoration: underline; text-underline-offset: 3px; }

dialog { width: min(516px, calc(100% - 32px)); padding: 28px; background: var(--cream); color: var(--ink); border: 1px solid var(--line); }
dialog::backdrop { background: rgb(41 53 47 / .6); }
dialog h1 { font: 28px/1.2 var(--display); margin-top: 0; }
dialog .close { float: right; margin: -8px -8px 0 8px; }
.close span { display: grid; place-items: center; width: 18px; height: 18px; }
.close span::before, .close span::after { content: ""; grid-area: 1 / 1; width: 17px; height: 1px; background: currentColor; transform: rotate(45deg); }
.close span::after { transform: rotate(-45deg); }
.query-row { display: flex; gap: 8px; margin-top: 8px; }
.query-row input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--sage); background: transparent; padding: 8px; }
.query-row button { background: var(--green); color: var(--cream); padding: 8px 16px; }
.search-status { color: var(--muted); overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .frame { padding-inline: 24px; }
  .mast-inner { gap: 24px; }
  .magazine img { display: none; }
  .nav-inner { gap: 24px; }
  .quick-links { gap: 20px; }
}
@media (max-width: 720px) {
  .frame { padding-inline: 16px; }
  .descriptor, .contacts .email, .magazine, .project, .quick-links, .nav-inner .brands { display: none; }
  .contacts { width: 100%; justify-content: space-between; }
  .contacts a { display: flex; align-items: center; min-height: 44px; }
  .mast-inner { min-height: 88px; gap: 8px; }
  .brand span { width: 120px; }
  .actions { gap: 6px; }
  .nav-inner { min-height: 52px; justify-content: space-between; gap: 12px; }
  .catalog-toggle { min-height: 52px; }
  .nav-inner .mobile-magazine { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 18px; }
  .menu-layout { grid-template-columns: 1fr; gap: 16px; padding-block: 16px; }
  .menu-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .menu-links { border-left: 0; border-top: 1px solid var(--line); padding: 8px 0 0; }
}

.preview[hidden] { display: none; }
