@font-face {
  font-family: Onest;
  src: url("/static/fonts/onest-variable-latin.woff2") format("woff2");
  font-weight: 400 800;
  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: Onest;
  src: url("/static/fonts/onest-variable-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

.horodok-editorial {
  --reading-paper: #faf8fa;
  --reading-ink: #281e2a;
  --reading-olive: #38283d;
  --reading-muted: #615665;
  --reading-sand: #eae2ef;
  --reading-line: #ded5e1;
  --reading-serif: Onest, system-ui, sans-serif;
  --reading-width: min(100% - clamp(32px, 7vw, 104px), 1320px);
  --reading-space: clamp(24px, 4.2vw, 64px);
  background: var(--reading-paper);
  color: var(--reading-ink);
  font-family: var(--reading-serif);
  line-height: 1.55;
}

.horodok-editorial a:not(.horodok-button):focus-visible,
.horodok-editorial :is(button, input, textarea):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.horodok-editorial :is(h1, h2, h3) {
  color: inherit;
  font-family: var(--reading-serif);
  font-weight: 650;
  line-height: 1.08;
  text-wrap: balance;
}

.horodok-editorial h2 {
  margin-block: 0 .6em;
  font-size: clamp(24px, 3vw, 39px);
  letter-spacing: -.045em;
}

.horodok-editorial :is(h1, .home-info-title, .pguide-hero h1, .pwiki-hero h1) {
  margin: 0;
  color: inherit;
  font: 650 clamp(34px, 5.3vw, 70px)/1.02 var(--reading-serif);
  letter-spacing: -.057em;
  overflow-wrap: anywhere;
}

.horodok-editorial :is(.pwiki-hero h1, .pguide-hero h1) {
  font-size: clamp(30px, 4.15vw, 58px);
}

.horodok-editorial .home-info-title {
  border-radius: 12px;
  background: var(--reading-sand);
}

.horodok-editorial .home-info-prose {
  max-width: min(100%, 72ch);
}

.horodok-editorial .home-info-prose h2 {
  margin: 1.25em 0 .55em;
}

.horodok-editorial .home-info-prose h2:first-child {
  margin-top: 0;
}

.horodok-editorial .home-info-prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.horodok-delivery-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(15rem, 1fr);
  align-items: start;
  gap: clamp(16px, 5vw, 80px);
  margin-top: var(--reading-space);
}

.horodok-delivery-layout .home-info-prose {
  width: 100%;
  margin: 0;
}

.horodok-delivery-links {
  background: var(--reading-sand);
}

.horodok-delivery-links a {
  display: block;
  min-height: 44px;
  padding-block: 10px;
  border-top: 1px solid var(--reading-line);
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.horodok-editorial .home-info-contact {
  align-items: start;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}

.horodok-editorial :is(.home-info-panel, .home-info-option, .home-info-field input, .home-info-field textarea) {
  border-radius: 7px;
}

.horodok-editorial .home-info-panel h2 {
  font-size: clamp(23px, 2.6vw, 35px);
}

.horodok-editorial .home-info-contact .home-info-prose {
  margin: 16px 0 0;
}

.horodok-editorial :is(.home-info-field input, .home-info-field textarea) {
  box-sizing: border-box;
  font-size: 16px;
}

.horodok-editorial :is(.home-info-button, .home-reference__button, .pguide-article__footer a, .pwiki-close a),
.horodok-editorial .horodok-button {
  min-height: 46px;
  border-radius: 6px;
  font: 650 14px/1.25 var(--reading-serif);
}

.horodok-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  background: var(--reading-olive);
  color: #fff;
  text-decoration: none;
}

.horodok-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.horodok-button:hover {
  background: var(--reading-ink);
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.horodok-editorial .horodok-button--light,
.horodok-editorial .home-reference__button {
  background: var(--reading-sand);
  color: var(--reading-olive);
  border: 0;
}

.horodok-editorial .horodok-button--light:focus-visible,
.horodok-editorial .home-reference__button:focus-visible {
  outline-color: var(--reading-paper);
}

.horodok-editorial .horodok-button--light:hover,
.horodok-editorial .home-reference__button:hover {
  background: #fff;
  color: var(--reading-ink);
}

.horodok-info-hero,
.horodok-editorial .home-reference__hero {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--reading-olive);
  color: var(--reading-paper);
}

.horodok-info-hero--with-photo {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: clamp(300px, 32vw, 460px);
}

.horodok-info-hero__copy {
  align-self: center;
  padding: var(--reading-space);
}

.horodok-info-hero .home-info-title {
  padding: 0;
  background: transparent;
}

.horodok-info-hero__copy p {
  max-width: 54ch;
  margin-block: 16px 0;
}

.horodok-info-hero__copy > .horodok-button {
  margin-top: 22px;
}

.horodok-info-hero > img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
}

.horodok-offers-categories {
  margin-top: var(--reading-space);
}

.horodok-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 20px);
}

.horodok-category-grid a {
  color: inherit;
  font-weight: 650;
  text-decoration: none;
}

.horodok-category-grid a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.horodok-category-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.6;
  object-fit: cover;
  border-radius: 7px;
}

.horodok-category-grid span {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.horodok-editorial .home-reference__hero {
  min-height: clamp(300px, 32vw, 475px);
}

.horodok-editorial .home-reference__intro p {
  max-width: 36ch;
  color: inherit;
}

.horodok-editorial .home-reference__feature {
  min-height: clamp(230px, 25vw, 370px);
}

.horodok-editorial .home-reference__topics {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  padding-bottom: 0;
}

.horodok-editorial .home-reference__topic {
  padding: 10px 14px;
  border: 1px solid var(--reading-line);
  border-radius: 7px;
  color: inherit;
}

.horodok-editorial .home-reference__library-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 18px;
  padding-bottom: 14px;
}

.horodok-editorial .home-reference__library-heading h2 {
  margin-bottom: 0;
}

.horodok-editorial .home-reference__article {
  border: 0;
  border-top: 1px solid var(--reading-line);
  color: inherit;
}

.horodok-editorial .home-reference__article h3 {
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.2;
  text-wrap: pretty;
}

.horodok-editorial .home-reference__article-copy {
  padding: 14px 0;
}

.horodok-editorial .home-reference__empty {
  margin: var(--reading-space) 0;
}

.horodok-editorial :is(.pguide-hero__frame, .pwiki-hero, .pguide-article__footer, .pwiki-close, .pguide-more__grid > a) {
  overflow: hidden;
  border-radius: 12px;
}

.horodok-editorial .pguide-hero__frame:not(:has(.pguide-hero__media)) {
  grid-template-columns: minmax(0, 1fr);
}

.horodok-editorial :is(.pwiki-hero__content, .pguide-hero__copy) {
  min-width: 0;
}

.horodok-editorial :is(.pguide-kicker, .pwiki-kicker, .pwiki-side-block__label) {
  margin-block: 0 8px;
  font-size: 14px;
  font-weight: 650;
}

.horodok-editorial .pguide-index__inner {
  padding-block: 15px;
}

.horodok-editorial :is(.pwiki-article-content, .pguide-content) h2 {
  margin: 1.3em 0 .65em;
  font-size: clamp(24px, 2.8vw, 36px);
  text-wrap: pretty;
}

.horodok-editorial :is(.pwiki-article-content, .pguide-content) h2:first-child {
  margin-top: 0;
}

.horodok-editorial :is(.pwiki-body, .pguide-layout) {
  grid-template-columns: minmax(0, 2.15fr) minmax(15rem, 1fr);
}

.horodok-editorial .pwiki-body {
  grid-template-areas: "article contents" "article related";
  grid-template-rows: auto 1fr;
  row-gap: 20px;
}

.horodok-editorial .pwiki-article { grid-area: article; min-width: 0; }
.horodok-editorial #wikiTocBlock { grid-area: contents; }
.horodok-editorial .pwiki-sidebar { grid-area: related; min-width: 0; }

.horodok-editorial :is(#wikiTocBlock, .pwiki-sidebar, .pguide-shop) {
  padding: clamp(14px, 2vw, 26px);
  border: 1px solid var(--reading-line);
  border-radius: 9px;
}

.horodok-editorial #wikiTocBlock {
  margin-bottom: 0;
  background: var(--reading-sand);
}

.horodok-editorial .pwiki-sidebar .pwiki-side-block:last-child {
  margin-bottom: 0;
}

.horodok-editorial :is(.pwiki-toc a, .pwiki-side-block > a):last-child {
  border-bottom: 0;
}

.horodok-editorial .pwiki-toc a.is-active {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.horodok-editorial .pguide-shop h2 {
  font-size: clamp(20px, 2.2vw, 29px);
}

.horodok-editorial .pguide-product img {
  border-radius: 5px;
}

.horodok-editorial :is(.pwiki-article-content, .pguide-content, .home-info-prose) img {
  max-width: 100%;
  height: auto;
}

.horodok-editorial .pguide-more__media {
  display: block;
}

.horodok-editorial .pguide-more__copy {
  color: var(--reading-ink);
}

.horodok-editorial-wrap,
.horodok-editorial.paction-page {
  width: var(--reading-width);
  margin-inline: auto;
}

.horodok-promotions {
  min-height: 55vh;
  padding-block: var(--reading-space);
}

.horodok-promotions.paction-page {
  padding-top: 15px;
}

.paction-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 15px;
  font-size: .875rem;
}

.paction-hero__actions,
.paction-sort,
.paction-products__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.paction-hero__guide { color: inherit; text-decoration: underline; }
.paction-hero__actions,
.paction-sort { margin: 18px 0; }
.paction-saving { font-size: clamp(19px, 2.5vw, 28px); font-weight: 650; }
.paction-lede small { display: block; margin-top: .45em; }
.paction-products__head { justify-content: space-between; }

.paction-sort__btn {
  min-height: 44px;
  padding-inline: 12px;
  border: 1px solid var(--reading-line);
  border-radius: 6px;
  color: var(--reading-ink);
  background: var(--reading-paper);
  cursor: pointer;
}

.paction-sort__btn.is-active {
  background: var(--reading-sand);
  border-color: var(--reading-olive);
  font-weight: 650;
}

.paction-grid,
.horodok-promo-grid {
  display: grid;
  gap: clamp(10px, 1.5vw, 20px);
}

.paction-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.paction-grid .home-card-alternate { display: none; }
.horodok-promo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.paction-products,
.paction-fit,
.horodok-promo-grid {
  margin-top: var(--reading-space);
}

.paction-fit,
.paction-empty,
.horodok-promo-card {
  padding: clamp(15px, 3vw, 30px);
  border: 1px solid var(--reading-line);
  border-radius: 9px;
}

.horodok-promo-card {
  display: block;
  overflow: hidden;
  padding: 0;
  color: inherit;
  text-decoration: none;
}

.horodok-promo-card:hover h2 { text-decoration: underline; }
.horodok-promo-card img { display: block; width: 100%; height: auto; }
.horodok-promo-card__copy { padding: 18px; }
.horodok-promo-card h2 { margin-top: .3em; font-size: clamp(23px, 2.3vw, 32px); }

.horodok-missing {
  width: var(--reading-width);
  margin: var(--reading-space) auto;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(16px, 4vw, 55px);
}

.horodok-missing-intro {
  padding: var(--reading-space);
  border-radius: 12px;
  background: var(--reading-olive);
  color: var(--reading-paper);
}

.horodok-missing-intro > p:not(.horodok-missing-code) {
  margin-block: 18px 20px;
  max-width: 45ch;
}

.horodok-missing-code {
  margin: 0 0 8px;
  color: var(--reading-sand);
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 650;
}

.horodok-missing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.horodok-missing-actions a:not(.horodok-button) {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.horodok-missing-links a {
  display: block;
  min-height: 44px;
  padding-block: 9px;
  border-top: 1px solid var(--reading-line);
  color: inherit;
}

.horodok-missing-links a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .horodok-delivery-layout,
  .horodok-editorial .pguide-layout { grid-template-columns: minmax(0, 1fr); }
  .horodok-editorial .pwiki-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "contents" "article" "related";
    grid-template-rows: auto;
  }
}

@media (max-width: 690px) {
  .horodok-info-hero--with-photo,
  .horodok-editorial .home-info-contact,
  .horodok-missing {
    grid-template-columns: minmax(0, 1fr);
  }

  .horodok-info-hero > img { aspect-ratio: 4 / 3; height: auto; }
  .horodok-category-grid, .horodok-promo-grid { grid-template-columns: minmax(0, 1fr); }
  .horodok-category-grid a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: center;
    gap: 14px;
  }
  .paction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
