@charset "UTF-8";
:root {
  --paper: #faf5ec;
  --surface: #fffaf2;
  --accent: #601820;
  --ink: #352420;
  --muted: #715f57;
  --line: #decec0;
  --gold: #e6cba9;
  --tone: #f1e3d6;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, "Helvetica Neue", sans-serif;
  color-scheme: light;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 22px;
}
body.locked {
  overflow: hidden;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  background: none;
  border: 0;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #a8752a;
  outline-offset: 3px;
}
button,
a {
  touch-action: manipulation;
}
button,
a,
input {
  transition:
    background-color 0.16s,
    color 0.16s,
    border-color 0.16s;
}
button:active:not(:disabled) {
  filter: brightness(0.95);
}
img {
  display: block;
  max-width: 100%;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
p {
  line-height: 1.55;
}
small {
  font-size: 0.875rem;
}
i[data-icon] {
  display: inline-flex;
}
.wrap {
  width: calc(100% - clamp(32px, 8vw, 136px));
  max-width: 1440px;
  margin-inline: auto;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  background: white;
  padding: 12px;
  z-index: 10;
}
.loading {
  padding: 55px 0;
}
.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.mast,
.head-actions,
.main-nav,
.brand,
.cart-opener,
.primary,
.secondary,
.add-btn,
.back,
.panel-actions,
.actions,
.status,
.check,
.filter,
.weight,
.stepper,
.icon-btn,
.menu-opener {
  display: flex;
  align-items: center;
}
.mast {
  min-height: 84px;
  gap: clamp(18px, 3vw, 50px);
  justify-content: space-between;
}
.brand {
  gap: 12px;
  color: var(--accent);
  flex-shrink: 0;
}
.brand img {
  width: 45px;
  height: 45px;
}
.brand span {
  font: bold 1.62rem/0.98 var(--serif);
  letter-spacing: -0.055em;
}
.brand small {
  display: block;
  font: 600 0.62rem/1 var(--sans);
  letter-spacing: 0.23em;
  margin-top: 7px;
}
.main-nav {
  gap: clamp(16px, 2.4vw, 42px);
  font-size: 0.92rem;
}
.main-nav a,
.main-nav button,
.foot a,
.foot button,
.phone {
  padding: 12px 0;
}
.main-nav a:hover,
.main-nav button:hover,
.foot a:hover,
.foot button:hover,
.phone:hover,
.text-action:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.head-actions {
  gap: clamp(12px, 1.8vw, 32px);
}
.phone {
  font-size: 0.89rem;
  white-space: nowrap;
}
.cart-opener {
  background: var(--accent);
  border-radius: 5px;
  color: white;
  gap: 9px;
  padding: 0 13px;
  height: 43px;
  font-size: 0.91rem;
}
.cart-opener b {
  background: #82454b;
  border-radius: 3px;
  font-size: 0.78rem;
  min-width: 21px;
  line-height: 21px;
}
.menu-opener {
  display: none !important;
}
.cart-opener:hover,
.primary:hover {
  background: #7b252d;
}
#catalog {
  padding-top: clamp(35px, 3.2vw, 56px);
  scroll-margin-top: 10px;
}
.catalog-head,
.panel-head,
.manager-heading,
.page-title,
.order-line,
.total,
.product-bottom,
.dialog-head,
.cart-end,
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.catalog-head h2,
.manager h1,
.order-page h1,
.dialog-head h2,
.panel-head h2 {
  font: 400 clamp(2.25rem, 3.25vw, 3.6rem)/1.05 var(--serif);
  letter-spacing: -0.048em;
  color: var(--accent);
}
.search {
  display: flex;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 12px;
  height: 42px;
  background: var(--surface);
  color: var(--muted);
  min-width: 0;
}
.search:focus-within {
  outline: 2px solid #a27659;
  outline-offset: 1px;
}
.search input {
  width: 165px;
  min-width: 0;
  padding: 0;
  background: none;
  border: 0;
  font-size: 0.91rem;
  outline: none !important;
  color: var(--ink);
}
.search svg {
  width: 17px;
}
.filters {
  display: flex;
  gap: 8px;
  margin: 22px 0;
}
.filter {
  border: 1px solid var(--line);
  border-radius: 30px;
  min-height: 38px;
  padding: 0 14px;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.88rem;
  background: var(--surface);
}
.filter small {
  font-size: 0.69rem;
  opacity: 0.8;
}
.filter.selected,
.mgr-tabs .active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.filter:not(.selected):hover,
.secondary:hover,
.icon-btn:hover,
.add-btn:hover,
.stepper button:hover {
  background: var(--tone);
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 20px;
}
.product {
  min-width: 0;
}
.product-photo {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 1.45;
  background: var(--tone);
}
.product-photo img,
.detail-photo img,
.cart-photo img,
.table-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-photo img {
  transition: transform 0.3s ease;
}
.product-photo:hover img {
  transform: scale(1.035);
}
.weight {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 3px;
  background: #fff9eae6;
  color: #26382b;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
}
.prod-category,
.kicker,
.meta {
  font-size: 0.71rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
}
.prod-category {
  margin: 15px 0 5px;
}
.product h3 {
  font: 400 clamp(1.45rem, 2vw, 2.05rem)/1.12 var(--serif);
  letter-spacing: -0.04em;
  color: var(--accent);
  min-height: 1.12em;
}
.product h3 button {
  padding: 0;
  text-align: left;
  font: inherit;
}
.product-bottom {
  margin-top: 12px;
  gap: 4px;
}
.product-bottom strong {
  font-size: 1.08rem;
}
.product-bottom small,
.total small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
}
.add-btn,
.stepper {
  border-radius: 4px;
  border: 1px solid #cdb6a5;
  background: transparent;
  color: var(--accent);
  font-size: 0.82rem;
}
.add-btn {
  gap: 4px;
  padding: 0 9px;
  min-height: 39px;
}
.add-btn svg {
  width: 16px;
}
.stepper {
  display: inline-flex;
  overflow: hidden;
  justify-content: space-between;
}
.stepper button {
  display: grid;
  place-items: center;
  width: 33px;
  min-height: 37px;
  padding: 0;
}
.stepper svg {
  width: 15px;
}
.stepper span {
  min-width: 18px;
  text-align: center;
  font-size: 0.91rem;
}
.no-photo {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  background: #eadbd0;
  color: #725d4e;
  font-size: 0.82rem;
}
.no-photo svg {
  width: 30px;
  height: 30px;
}
.foot {
  border-top: 1px solid var(--line);
  padding-block: 22px;
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.88rem;
}
.foot-brand {
  font: 1.35rem var(--serif);
  color: var(--accent);
}
.foot > div {
  display: flex;
  gap: 20px;
}
.foot button {
  font-size: inherit;
}
.primary,
.secondary,
.icon-btn,
.back {
  justify-content: center;
  gap: 7px;
  border-radius: 5px;
  font-weight: 600;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.92rem;
}
.primary {
  background: var(--accent);
  color: white;
}
.secondary,
.icon-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent);
}
.icon-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  flex-shrink: 0;
}
.wide {
  width: 100%;
}
.back {
  justify-content: flex-start;
  display: inline-flex;
  color: var(--muted);
  padding-left: 0;
  font-weight: 500;
}
.back:hover {
  text-decoration: underline;
}
.back svg {
  width: 15px;
}
.empty {
  text-align: center;
  padding: 48px 20px;
  grid-column: 1/-1;
}
.empty > svg {
  width: 35px;
  height: 35px;
  color: var(--muted);
  margin-bottom: 15px;
}
.empty h3,
.info h3 {
  font: 1.6rem var(--serif);
  color: var(--accent);
}
.empty p {
  margin: 10px 0;
}
.empty .primary,
.empty .secondary,
.letter-body + .primary {
  display: inline-flex;
  margin-top: 10px;
}
.muted,
.note,
.panel-note {
  color: var(--muted);
}
.note,
.panel-note {
  font-size: 0.86rem;
  line-height: 1.5;
}
.note {
  padding: 13px 16px;
  background: #f4eadf;
  border-radius: 5px;
}
.error {
  color: #8d2821;
  background: #ffefeb;
  padding: 10px;
  border-radius: 4px;
}
.error[hidden] {
  display: none;
}
dialog {
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  width: min(535px, calc(100vw - 24px));
  max-width: 100vw;
  max-height: 90dvh;
  box-shadow: 0 16px 72px #10231830;
}
dialog::backdrop {
  background: #1f0509bb;
}
#dialog-body {
  padding: 25px;
  max-height: 88dvh;
  overflow: auto;
}
.dialog-head {
  align-items: flex-start;
  margin-bottom: 20px;
}
.dialog-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.55rem);
}
.dialog-head .icon-btn {
  min-height: 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.drawer {
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 10px 0 0 10px;
}
.drawer #dialog-body {
  max-height: 100dvh;
  padding: 28px;
}
.detail-photo {
  height: 210px;
  overflow: hidden;
  border-radius: 5px;
  margin-bottom: 16px;
}
.meta {
  margin-bottom: 8px;
}
.info p,
.order-address p {
  margin: 6px 0 16px;
}
.info a {
  text-decoration: underline;
}
.info h3 {
  margin-top: 16px;
}
.menu-list {
  display: grid;
  gap: 5px;
}
.menu-list > * {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.cart-row {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-photo {
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 5px;
  flex-shrink: 0;
}
.cart-photo .no-photo span,
.table-thumb .no-photo span {
  display: none;
}
.cart-item {
  flex: 1;
}
.cart-item strong,
.cart-item small,
.table-product small,
td > small,
.order-line small,
.review-item > small,
.mail-list small {
  display: block;
}
.cart-item small,
.order-line small,
.table-product small,
td > small,
.review-item > small,
.mail-list small {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 4px 0;
}
.cart-item .stepper {
  margin-top: 4px;
}
.cart-end {
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.cart-end .icon-btn {
  border: 0;
}
.total {
  margin: 19px 0;
  font-size: 1.06rem;
}
.total strong {
  font-size: 1.28rem;
  color: var(--accent);
}
.drawer .wide {
  margin-top: 12px;
}
.form,
.field {
  display: grid;
  gap: 6px;
}
.form {
  gap: 15px;
}
.field > span {
  font-weight: 600;
  font-size: 0.88rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #cbb7a8;
  background: #fff;
  border-radius: 4px;
  padding: 9px 11px;
  color: var(--ink);
}
.field input[type="file"] {
  font-size: 0.83rem;
}
.field textarea {
  resize: vertical;
}
.check {
  gap: 8px;
  min-height: 40px;
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form .total {
  margin: 0;
}
.actions {
  flex-wrap: wrap;
  gap: 10px;
}
.order-page {
  max-width: 690px;
  margin: 35px auto;
  padding: 30px;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--line);
}
.page-title {
  margin: 12px 0;
  flex-wrap: wrap;
}
.order-lines {
  margin: 18px 0;
}
.order-line {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.order-line b {
  white-space: nowrap;
}
.status,
.local-badge {
  display: inline-flex;
  min-height: 29px;
  padding: 5px 10px;
  border-radius: 4px;
  background: #e6ecdf;
  color: #324633;
  font-size: 0.78rem;
  font-weight: 600;
}
.status-invoiced {
  background: #f8e9c8;
  color: #745016;
}
.status-cancelled {
  background: #eee7e4;
  color: #775147;
}
.order-address {
  margin-bottom: 18px;
}
.order-page .note {
  margin-top: 18px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 8px);
  background: var(--accent);
  border: 1px solid #af9080;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s,
    transform 0.18s;
  z-index: 15;
  max-width: 90vw;
  width: max-content;
  font-size: 0.93rem;
}
#toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.manager {
  padding: 24px 0 12px;
}
.manager-heading {
  margin: 18px 0 26px;
}
.manager-heading .kicker {
  margin-bottom: 7px;
}
.mgr-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 22px;
  padding-bottom: 15px;
}
.mgr-tabs button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 5px;
  padding: 7px 13px;
  font-size: 0.92rem;
}
.mgr-tabs button small {
  font-size: 0.76rem;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.panel-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  font-size: 2rem;
}
.panel-actions {
  gap: 10px;
}
.manager .note {
  margin-top: 20px;
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--muted);
  background: #f5ede2;
}
th,
td {
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
td {
  font-size: 0.93rem;
}
.table-product {
  display: flex;
  align-items: center;
  gap: 12px;
}
.table-thumb {
  height: 44px;
  width: 54px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.table-thumb .no-photo svg {
  width: 20px;
}
.text-action {
  padding: 5px 0;
  font-weight: 600;
  text-align: left;
}
.customer {
  padding: 14px;
  background: var(--paper);
  border-radius: 5px;
  margin-bottom: 16px;
}
.customer p {
  margin: 4px 0 8px;
}
.review-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.review-item .two {
  margin-top: 8px;
}
.manager .panel-note {
  padding: 13px 23px;
}
.mail-list > button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  border-top: 1px solid var(--line);
  padding: 15px 22px;
}
.mail-list > button:hover {
  background: var(--tone);
}
.mail-list > button span {
  flex: 1;
}
.mail-list time {
  font-size: 0.82rem;
  color: var(--muted);
}
.letter-body {
  white-space: pre-wrap;
  border-block: 1px solid var(--line);
  margin: 16px 0;
  padding: 16px 0;
  line-height: 1.55;
}
@media (min-width: 1500px) {
  .mast {
    min-height: 92px;
  }
  .product-photo {
    aspect-ratio: 1.55;
  }
}
@media (max-width: 1100px) {
  .phone {
    display: none;
  }
  .grid {
    gap: 26px 15px;
  }
  .product-bottom {
    flex-wrap: wrap;
  }
  .filters {
    gap: 6px;
  }
  .filter {
    padding: 0 11px;
  }
}
@media (max-width: 820px) {
  .main-nav {
    display: none;
  }
  .menu-opener {
    display: grid !important;
  }
  .mast {
    min-height: 70px;
  }
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .filters {
    overflow-x: auto;
    padding: 4px 2px 8px;
    margin: 15px -2px;
  }
  .panel-head {
    flex-wrap: wrap;
  }
  .manager-heading {
    align-items: flex-start;
  }
  .table-scroll table {
    min-width: 620px;
  }
}
@media (max-width: 620px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .mast {
    min-height: 65px;
    gap: 4px;
  }
  .brand {
    gap: 8px;
  }
  .brand img {
    width: 37px;
    height: 37px;
  }
  .brand span {
    font-size: 1.27rem;
  }
  .brand small {
    font-size: 0.51rem;
    margin-top: 4px;
  }
  .head-actions {
    gap: 6px;
  }
  .cart-opener {
    height: 40px;
    padding: 0 10px;
    gap: 6px;
  }
  .cart-opener > span {
    display: none;
  }
  .menu-opener.icon-btn {
    width: 37px;
    padding: 5px;
    border: 0;
    background: transparent;
  }
  .shop {
    padding-top: 13px;
  }
  .catalog-head {
    flex-wrap: wrap;
    gap: 15px;
  }
  .catalog-head h2 {
    font-size: 2.35rem;
  }
  .search {
    width: 100%;
    height: 42px;
  }
  .search input {
    width: 100%;
  }
  #catalog {
    padding-top: 28px;
  }
  .filters {
    margin: 11px -1px 13px;
  }
  .filter {
    min-height: 40px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }
  .product-photo {
    aspect-ratio: 1.08;
  }
  .prod-category {
    margin: 10px 0 4px;
    letter-spacing: 0.05em;
    font-size: 0.64rem;
  }
  .product h3 {
    font-size: 1.45rem;
  }
  .product-bottom {
    gap: 7px;
    margin-top: 8px;
  }
  .product-bottom > div:first-child {
    flex-basis: 100%;
  }
  .add-btn {
    min-height: 42px;
    padding: 0 12px;
  }
  .stepper button {
    min-height: 40px;
    width: 36px;
  }
  .weight {
    bottom: 7px;
    left: 7px;
    padding: 4px 7px;
  }
  .foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-top: 26px;
  }
  .foot div {
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.82rem;
  }
  .foot button,
  .foot a {
    min-height: 42px;
  }
  .foot-brand {
    line-height: 1.2;
  }
  .drawer #dialog-body,
  #dialog-body {
    padding: 19px;
  }
  .drawer {
    width: 100%;
    border-radius: 0;
  }
  .order-page {
    margin: 20px 0;
    padding: 17px;
  }
  .manager-heading {
    display: block;
  }
  .local-badge {
    margin-top: 10px;
  }
  .mgr-tabs {
    gap: 3px;
  }
  .mgr-tabs button {
    padding: 6px 9px;
    gap: 4px;
    font-size: 0.84rem;
  }
  .mgr-tabs svg {
    width: 17px;
  }
  .panel-head {
    padding: 15px;
  }
  .panel-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .panel-actions .search {
    flex: 1;
    min-width: 135px;
  }
  .panel-actions .primary {
    font-size: 0.82rem;
  }
  .manager {
    padding-top: 12px;
  }
  .two {
    gap: 8px;
  }
  .table-product small {
    white-space: nowrap;
  }
  .mail-list > button {
    gap: 8px;
    padding: 12px;
  }
  .mail-list time {
    display: none;
  }
}
@media (max-width: 350px) {
  .brand span {
    font-size: 1.1rem;
  }
  .grid {
    column-gap: 9px;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .mgr-tabs svg {
    display: none;
  }
}
@media (max-width: 620px) {
  .table-scroll table {
    min-width: 0;
    display: block;
  }
  .table-scroll thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .table-scroll tbody {
    display: block;
  }
  .table-scroll tr {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 5px 14px;
    padding: 13px 15px;
    border-bottom: 1px solid var(--line);
  }
  .table-scroll td {
    border: 0;
    padding: 0;
  }
  .table-scroll tr:last-child {
    border: 0;
  }
  .table-scroll td:first-child {
    grid-area: 1/1/2/2;
  }
  .table-scroll td:last-child {
    grid-area: 1/2/2/3;
    justify-self: end;
  }
  .table-scroll td:nth-child(2),
  .table-scroll td:nth-child(3),
  .table-scroll td:nth-child(4) {
    grid-column: 1/-1;
    font-size: 0.84rem;
  }
  .table-scroll td:nth-child(2) > small {
    display: inline;
    margin-left: 2px;
  }
  .table-scroll td:nth-child(4) {
    color: var(--muted);
  }
  .table-scroll:has(.table-product) td:nth-child(3)::before {
    content: "Доступно: ";
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
