@font-face {
  font-family: "Golos Text";
  src: url("assets/golos-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Golos Text";
  src: url("assets/golos-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Golos Text";
  src: url("assets/golos-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+20BD;
}

:root {
  color-scheme: light;
  --bg: #fff;
  --surface: #f4f6f5;
  --ink: #1c2521;
  --muted: #52605a;
  --line: #dde5e0;
  --line-control: #738178;
  --accent: #17624d;
  --accent-hover: #104c3b;
  --focus: #1d5fa7;
  --page-gutter: 32px;
  --page-max: 1440px;
  --sticky-header: 78px;
  font-family: "Golos Text", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--sticky-header) + 20px); }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.container {
  width: min(calc(100% - 2 * var(--page-gutter)), var(--page-max));
  margin-inline: auto;
}

.icon,
.button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  pointer-events: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  text-align: center;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.button--primary { background: var(--accent); color: #fff; }
.button--primary:hover { background: var(--accent-hover); }
.button--outline { border-color: var(--line-control); background: #fff; color: var(--ink); }
.button--outline:hover { background: var(--surface); }

.skip-link {
  position: fixed;
  inset: 8px auto auto 12px;
  z-index: 20;
  padding: 8px 12px;
  transform: translateY(-150%);
  background: var(--ink);
  color: #fff;
}

.skip-link:focus { transform: none; }

[data-site-header] {
  position: sticky;
  top: -38px;
  z-index: 5;
}

.site-header {
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--line);
}

.utility {
  background: #f4f6f2;
  color: #43524a;
  font-size: .8125rem;
}

.utility__inner { min-height: 38px; display: flex; align-items: center; gap: 24px; }
.utility__place { display: inline-flex; gap: 6px; align-items: center; }
.utility__place .icon { width: 15px; height: 15px; }
.utility__inner a { text-underline-offset: 3px; text-decoration-color: transparent; }
.utility__inner a:hover { text-decoration-color: currentColor; }
.utility__nav { display: flex; gap: 24px; margin-left: auto; }

.header-row { display: flex; min-height: var(--sticky-header); align-items: center; gap: clamp(16px, 2.1vw, 30px); }
.wordmark {
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
  color: #183c30;
  font-size: 2.1875rem;
  font-weight: 700;
  letter-spacing: -.095em;
  line-height: 1;
  text-decoration: none;
  padding: 3px 3px 8px 0;
}
.wordmark span { color: #75937e; margin-left: 2px; }

.catalog-trigger { flex: 0 0 auto; padding-inline: 16px; }

.site-search {
  display: flex;
  flex: 1 1 420px;
  align-items: center;
  min-width: 0;
  height: 44px;
  border: 1px solid #d8e0d9;
  border-radius: 8px;
  background: #f7f8f5;
  color: #415149;
  overflow: hidden;
}

.site-search:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.site-search input {
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0 2px 0 13px;
  background: transparent;
  outline: none;
  font-size: .9rem;
}
.site-search input::placeholder { color: #53615a; opacity: 1; }
.site-search button {
  display: grid;
  place-items: center;
  height: 100%;
  width: 46px;
  padding: 0;
  flex: 0 0 46px;
  border: 0;
  background: transparent;
}
.site-search button:hover { background: #e9efe8; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-action {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-width: 50px;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: .75rem;
  line-height: 1.1;
}
.header-action:hover { color: var(--accent); }
.header-action .icon { width: 23px; height: 23px; }
.header-action--mobile { display: none; }
.header-action__count {
  position: absolute;
  top: 0;
  left: calc(50% + 5px);
  min-width: 16px;
  padding: 2px 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .625rem;
  line-height: 1.2;
}

.site-footer {
  margin-top: 64px;
  color: #e8efea;
  background: #1f342b;
}
.site-footer__main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-block: 40px;
}
.site-footer .wordmark { color: #fff; width: max-content; }
.site-footer .wordmark span { color: #b2d0b9; }
.site-footer h2 { margin: 0 0 10px; color: #fff; font-size: 1rem; line-height: 1.4; }
.site-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer li a { color: #d7e4db; font-size: .875rem; text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__fine { padding-block: 15px; border-top: 1px solid #55675d; color: #d6e0da; font-size: .8125rem; }

.site-sheet {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 432px);
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100%;
  margin: 0;
  border: 0;
  border-left: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 28px #1c252125;
  padding: 24px;
}
.site-sheet::backdrop { background: #17271f78; }
.site-sheet__header { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 18px; }
.site-sheet__title { margin: 0; font-size: 1.5rem; font-weight: 650; line-height: 1.2; }
.site-sheet__close {
  display: grid;
  place-items: center;
  height: 44px;
  width: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.site-sheet__close:hover { background: var(--surface); }
.site-sheet p { margin: 8px 0 16px; }
.site-sheet__links { list-style: none; padding: 0; margin: 0; }
.site-sheet__links li a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.site-sheet__links li a:hover { color: var(--accent); }
.site-sheet .site-search { width: 100%; }
.site-sheet__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.site-sheet__item img { border-radius: 8px; background: var(--surface); }
.site-sheet__item a { font-weight: 600; text-underline-offset: 3px; }
.site-sheet__item p { margin: 4px 0 0; font-size: .875rem; color: var(--muted); }
.site-sheet__quantity { display: flex; align-items: center; gap: 5px; margin-top: 8px; }
.site-sheet__quantity button { display: grid; place-items: center; background: #fff; border: 1px solid var(--line-control); border-radius: 6px; width: 44px; height: 44px; padding: 0; }
.site-sheet__quantity button:hover { background: var(--surface); }
.site-sheet__quantity span { min-width: 19px; text-align: center; }
.site-sheet__remove { margin-left: auto; }
.site-sheet__total { display: flex; justify-content: space-between; font-weight: 700; padding-block: 16px; }
[data-favorite][aria-pressed="true"] { color: var(--accent); }
[data-favorite][aria-pressed="true"] svg { fill: #afcbb6; }

@media (max-width: 1023px) {
  :root { --page-gutter: 24px; --sticky-header: 70px; }
  .header-row { gap: 16px; }
}

@media (max-width: 767px) {
  :root { --page-gutter: 16px; --sticky-header: 60px; }
  [data-site-header] { top: 0; }
  .utility, .header-row > .site-search, .catalog-trigger, .header-action__label { display: none; }
  .header-row { gap: 4px; }
  .wordmark { font-size: 1.9375rem; }
  .header-actions { margin-left: auto; gap: 0; }
  .header-action { min-width: 44px; min-height: 44px; }
  .header-action--mobile { display: grid; }
  .header-action .icon { width: 21px; height: 21px; }
  .header-action__count { top: 2px; }
  .site-footer { margin-top: 48px; }
  .site-footer__main { grid-template-columns: 1fr 1fr; gap: 22px 12px; padding-block: 32px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-sheet { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
