/* размеры текста */
:root {
  --serif: "Manrope", serif;
  --sans: "Manrope", sans-serif;
  --h1: 40px;             /* заголовок страницы */
  --h2: 36px;             /* заголовок блока */
  --h3: 24px;             /* заголовок карточки, цена */
  --text-big: 18px;       /* вводный текст, описание */
  --text-normal: 17px;    /* основной текст */
  --text-button: 16px;    /* кнопки, ссылки, поля */
  --text-small: 14px;     /* подписи, метки */
}
@media (max-width: 700px) {
  :root {
    --h1: 32px;
    --h2: 30px;
    --h3: 22px;
    --text-big: 17px;
    --text-normal: 16px;
  }
}
@media (max-width: 560px) {
  :root {
    --h2: 28px;
  }
}

.page-content .catalog-layout:has(.home),
.page-content .catalog-layout:has(.catalog-page),
.page-content .catalog-layout:has(.detail),
.page-content .catalog-layout:has(.reading) {
  display: block;
}
.page-content:has(.home) {
  padding-block: 32px 64px;
}
.home {
  display: grid;
  gap: 64px;
}
.home *,
.product *,
.catalog-page *,
.detail *,
.reading * {
  box-sizing: border-box;
}
.categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.category {
  display: block;
  min-width: 0;
  border: 1px solid var(--chrome-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  color: var(--brand-forest);
  text-decoration: none;
}
.category-image {
  overflow: hidden;
  background: #efe6d7;
}
.category-image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}
.category:hover .category-image img {
  transform: scale(1.025);
}
.category-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
}
.category h2 {
  margin: 0 0 6px;
  font: 700 var(--h3)/1.2 var(--serif);
  color: var(--brand-forest);
}
.category p {
  margin: 0;
  color: var(--text-muted);
  font: 400 var(--text-normal)/1.5 var(--sans);
}
.round-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--chrome-border);
  border-radius: 50%;
  color: var(--brand-forest);
  background: var(--page-bg);
  font-size: 18px;
}
.builder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 48px;
  background: var(--brand-forest);
  color: #fff;
  border-radius: 14px;
}
.eyebrow {
  display: block;
  font: 700 var(--text-small)/1.5 var(--sans);
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.builder .eyebrow {
  color: #e7d5b8;
}
.builder h2 {
  font: 700 var(--h2)/1.2 var(--serif);
  color: #fff;
  margin: 10px 0 14px;
}
.builder p {
  margin: 0;
  font: 400 var(--text-normal)/1.6 var(--sans);
  color: #e2e9e4;
  max-width: 620px;
}
.builder-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-shrink: 0;
  min-height: 52px;
  padding: 14px 24px;
  background: #fff;
  color: var(--brand-forest) !important;
  border: 1px solid #fff;
  border-radius: 8px;
  font: 700 var(--text-button)/1.4 var(--sans);
  cursor: pointer;
}
.builder-button:hover {
  background: #f7f0e6;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-heading h2 {
  font: 700 var(--h2)/1.2 var(--serif);
  color: var(--brand-forest);
  margin: 0;
}
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-forest);
  font: 700 var(--text-button)/1.5 var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--chrome-border);
  border-radius: 12px;
  overflow: hidden;
}
.product-photo {
  display: block;
  overflow: hidden;
  background: #efe6d7;
}
.product-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 700/380;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.product-photo:hover img {
  transform: scale(1.025);
}
.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}
.product-category {
  color: var(--text-muted);
  font: 400 var(--text-small)/1.5 var(--sans);
  margin-bottom: 8px;
}
.product h3 {
  font: 700 var(--h3)/1.3 var(--serif);
  color: var(--brand-forest);
  margin: 0 0 12px;
}
.product h3 a {
  color: inherit;
  text-decoration: none;
}
.product h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.product-body > p {
  margin: 0 0 24px;
  color: var(--text-muted);
  font: 400 var(--text-normal)/1.55 var(--sans);
}
.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
}
.product-price {
  font: 700 var(--h3)/1.3 var(--serif);
  color: var(--brand-forest);
  white-space: nowrap;
}
.add-to-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--button-bg);
  color: #fff;
  font: 700 var(--text-button)/1.4 var(--sans);
  cursor: pointer;
}
.add-to-cart:hover {
  background: var(--button-hover);
}
.add-to-cart:disabled {
  opacity: 0.7;
  cursor: default;
}
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  padding: 40px 0;
  border-top: 1px solid var(--chrome-border);
  border-bottom: 1px solid var(--chrome-border);
}
.about h2 {
  max-width: 440px;
  font: 700 var(--h2)/1.25 var(--serif);
  color: var(--brand-forest);
  margin: 12px 0 0;
}
.about-copy > p {
  font: 400 var(--text-normal)/1.7 var(--sans);
  color: var(--text-muted);
  margin: 0 0 20px;
}
.section-note {
  font: 400 var(--text-normal)/1.5 var(--sans);
  color: var(--text-muted);
}
.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.article {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--chrome-border);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
}
.article h3 {
  font: 700 var(--h3)/1.3 var(--serif);
  color: var(--brand-forest);
  margin: 14px 0;
}
.article p {
  font: 400 var(--text-normal)/1.6 var(--sans);
  color: var(--text-muted);
  margin: 0 0 20px;
  max-width: 500px;
}
.article .text-link {
  margin-top: auto;
}
.article:hover {
  border-color: #b9c8bb;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font: 400 var(--text-small)/1.5 var(--sans);
  color: var(--text-muted);
  margin-bottom: 28px;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.breadcrumb a:hover {
  color: var(--brand-forest);
}
.catalog-page h1,
.detail h1,
.reading h1 {
  font: 700 var(--h1)/1.2 var(--serif);
  color: var(--brand-forest);
  margin: 0 0 18px;
}
.catalog-description {
  font: 400 var(--text-big)/1.6 var(--sans);
  color: var(--text-muted);
  margin: 0 0 28px;
}
.category-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 32px;
}
.category-tabs a {
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--chrome-border);
  border-radius: 8px;
  font: 400 var(--text-button)/1.5 var(--sans);
  text-decoration: none;
  color: var(--brand-forest);
  background: var(--surface);
}
.category-tabs a[aria-current="page"] {
  background: var(--brand-forest);
  border-color: var(--brand-forest);
  color: white;
}
.catalog-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.empty {
  padding: 40px 0;
  font: 400 var(--text-big)/1.6 var(--sans);
  color: var(--text-muted);
}
.detail {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: start;
  gap: 56px;
  padding: 12px 0 32px;
}
.detail-photo {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #efe6d7;
  border: 1px solid var(--chrome-border);
}
.detail-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.detail h1 {
  font-size: var(--h1);
  margin-top: 12px;
}
.detail-description {
  font: 400 var(--text-big)/1.6 var(--sans);
  color: var(--text-muted);
  margin: 0 0 24px;
}
.detail-price {
  display: block;
  font: 700 var(--h2)/1.3 var(--serif);
  color: var(--brand-forest);
  margin-bottom: 24px;
}
.detail-buy {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.detail-buy .main-button {
  gap: 24px;
  min-width: 180px;
}
.quantity {
  display: flex;
  align-items: center;
  border: 1px solid var(--chrome-border);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}
.quantity button {
  width: 44px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  font:
    400 22px/1 "Manrope",
    sans-serif;
  color: var(--brand-forest);
  cursor: pointer;
}
.quantity input {
  width: 44px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font: 400 var(--text-button)/1 var(--sans);
  color: var(--color-text);
  appearance: textfield;
  -moz-appearance: textfield;
}
.quantity input::-webkit-inner-spin-button {
  display: none;
}
.detail-info {
  padding-top: 24px;
  border-top: 1px solid var(--chrome-border);
  margin-bottom: 24px;
}
.detail-info h2 {
  font: 700 var(--h3)/1.3 var(--serif);
  color: var(--brand-forest);
  margin: 0 0 12px;
}
.detail-info p {
  font: 400 var(--text-normal)/1.7 var(--sans);
  color: var(--text-muted);
  margin: 0;
}
.reading {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 32px;
}
.reading-lead {
  font: 400 var(--text-big)/1.6 var(--sans);
  color: var(--text-muted);
  margin: 24px 0 32px;
}
.reading-body {
  font: 400 var(--text-big)/1.8 var(--sans);
  color: var(--color-text);
  margin-bottom: 32px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 500;
  max-width: calc(100% - 32px);
  padding: 14px 22px;
  background: var(--brand-forest);
  color: #fff;
  border-radius: 8px;
  font: 400 var(--text-button)/1.5 var(--sans);
  box-shadow: 0 4px 20px #142b2320;
}
.toast[hidden] {
  display: none;
}
.home a:focus-visible,
.home button:focus-visible,
.catalog-page a:focus-visible,
.catalog-page button:focus-visible,
.detail button:focus-visible,
.detail a:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 4px;
}
.modal-window[open] {
  animation: dialog-in 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.modal-window[open]::backdrop {
  animation: backdrop-in 0.24s ease-out both;
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }}
@keyframes backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }}
@media (max-width: 1000px) {
  .builder {
    padding: 32px;
    gap: 24px;
  }
  .about {
    gap: 32px;
  }
  .product-grid,
  .catalog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail {
    gap: 32px;
  }}
@media (max-width: 700px) {
  .page-content:has(.home) {
    padding-block: 24px 40px;
  }
  .home {
    gap: 40px;
  }
  .categories {
    gap: 16px;
  }
  .category-copy {
    padding: 18px;
    gap: 12px;
  }
  .round-arrow {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
  .builder {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px;
    gap: 24px;
  }
  .builder-button {
    width: 100%;
    justify-content: space-between;
  }
  .section-heading {
    margin-bottom: 20px;
    align-items: baseline;
    gap: 16px;
  }
  .section-note {
    display: none;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
  }
  .article-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .article {
    padding: 24px;
  }
  .detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .breadcrumb {
    margin-bottom: 20px;
  }}
@media (max-width: 560px) {
  .categories,
  .product-grid,
  .catalog-list {
    grid-template-columns: 1fr;
  }
  .category-copy {
    padding: 20px;
  }
  .product-body {
    padding: 22px;
  }
  .product-actions {
    gap: 16px;
  }
  .section-heading .text-link {
    font-size: var(--text-small);
    white-space: nowrap;
    gap: 8px;
  }
  .builder {
    padding: 26px 24px;
  }
  .detail-buy .main-button {
    flex: 1;
    min-width: 140px;
    gap: 12px;
  }
  .category-tabs {
    gap: 8px;
  }
  .category-tabs a {
    padding: 10px 14px;
  }
  .toast {
    bottom: 16px;
    width: max-content;
  }}
@media (prefers-reduced-motion: reduce) {
  .modal-window[open],
  .modal-window[open]::backdrop {
    animation: none;
  }
  .category-image img,
  .product-photo img {
    transition: none;
  }}

.add-to-cart.is-added,
.detail-buy .main-button.is-added {
  background: #173e2d;
  border-color: #173e2d;
  color: #fff;
}
.add-to-cart.is-added:hover,
.detail-buy .main-button.is-added:hover {
  background: #24523d;
  border-color: #24523d;
}
.detail-buy .main-button {
  min-width: 180px;
  justify-content: center;
}
.add-to-cart {
  min-width: 130px;
  justify-content: center;
}

.form-field > span {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.form-field > span > small {
  display: inline;
  margin: 0;
  font-size: var(--text-small);
  font-weight: 400;
  line-height: inherit;
  color: #777067;
  white-space: nowrap;
  letter-spacing: 0;
  text-transform: none;
}

/* о нас */
.about {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  padding: 48px 0;
}
.about-media {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--page-bg);
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-copy h2 {
  margin: 10px 0 18px;
}
.about-copy > p {
  font-size: var(--text-normal);
  margin: 0 0 12px;
}
.about-points {
  list-style: none;
  margin: 22px 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.about-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 400 var(--text-normal)/1.4 var(--sans);
  color: var(--brand-forest);
}
.about-icon {
  flex: 0 0 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f6efe4;
  color: var(--brand-gold);
  font-size: 16px;
}
.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--button-bg);
  background: var(--button-bg);
  color: #fff;
  font: 700 var(--text-button)/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.pill-button:hover {
  background: var(--button-hover);
  border-color: var(--button-hover);
  color: #fff;
}
.pill-button-outline {
  background: transparent;
  color: var(--button-bg);
}
.pill-button-outline:hover {
  background: var(--button-bg);
}
@media (max-width: 1000px) {
  .about {
    gap: 32px;
  }}
@media (max-width: 700px) {
  .about {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
  }
  .about-media {
    aspect-ratio: 16 / 10;
  }}
@media (max-width: 560px) {
  .about-actions {
    flex-direction: column;
  }
  .pill-button {
    width: 100%;
  }}
.about .pill-button:not(.pill-button-outline),
.about .pill-button:hover {
  color: #fff;
}

/* вопрос-ответ */
.faq-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  padding: 48px 0;
  border-bottom: 1px solid var(--chrome-border);
}
.faq-head h2 {
  font: 700 var(--h2)/1.25 var(--serif);
  color: var(--brand-forest);
  margin: 10px 0 14px;
}
.faq-head p {
  font: 400 var(--text-normal)/1.6 var(--sans);
  color: var(--text-muted);
  margin: 0 0 22px;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--chrome-border);
  border-radius: 16px;
  transition: border-color 0.2s;
}
.faq-item[open] {
  border-color: var(--brand-gold);
}
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font: 700 var(--text-normal)/1.35 var(--sans);
  color: var(--brand-forest);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-icon {
  position: relative;
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: #f6efe4;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  background: var(--brand-gold);
  transition: transform 0.2s;
}
.faq-icon::after {
  transform: rotate(90deg);
}
.faq-item[open] .faq-icon::after {
  transform: rotate(0);
}
.faq-answer {
  padding: 0 22px 20px;
  font: 400 var(--text-normal)/1.65 var(--sans);
  color: var(--text-muted);
}
@media (max-width: 1000px) {
  .faq-section {
    gap: 32px;
  }}
@media (max-width: 700px) {
  .faq-section {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 0;
  }
  .faq-item summary {
    padding: 16px 18px;
  }
  .faq-answer {
    padding: 0 18px 18px;
  }}
.faq-head {
  display: flex;
  flex-direction: column;
}
.faq-photo {
  flex: 1;
  min-height: 220px;
  margin-top: 32px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--page-bg);
}
.faq-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 700px) {
  .faq-photo {
    display: none;
  }}
/* вопрос-ответ, фото */
.faq-section {
  align-items: start;
}
.faq-photo {
  flex: none;
  min-height: 0;
  aspect-ratio: 16 / 10;
}
.faq-answer {
  padding: 0;
  overflow: hidden;
}
.faq-answer > div {
  padding: 0 22px 20px;
}
.faq-item summary:focus {
  outline: none;
}
.faq-item summary:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: -2px;
  border-radius: 16px;
}
@media (max-width: 700px) {
  .faq-answer > div {
    padding: 0 18px 18px;
  }}
/* новости */
.page-content .catalog-layout:has(.news-page) {
  display: block;
}
.news-page,
.news-page * {
  box-sizing: border-box;
}
.news-page {
  padding-bottom: 64px;
}
.news-page h1 {
  font: 700 var(--h1)/1.2 var(--serif);
  color: var(--brand-forest);
  margin: 0 0 16px;
}
.news-lead {
  max-width: 900px;
  margin: 0 0 36px;
  font: 400 var(--text-big)/1.6 var(--sans);
  color: var(--text-muted);
}
.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font: 400 var(--text-small)/1.5 var(--sans);
  color: var(--text-muted);
}
.news-meta time {
  color: var(--brand-gold);
  font-weight: 700;
}
.news-list {
  display: grid;
  gap: 24px;
}
.news-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border: 1px solid var(--chrome-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  transition: box-shadow 0.25s, transform 0.25s;
}
.news-card:hover {
  box-shadow: 0 14px 36px #142b2314;
  transform: translateY(-2px);
}
.news-card-image {
  display: block;
  min-height: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--page-bg);
}
.news-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.news-card:hover .news-card-image img {
  transform: scale(1.03);
}
.news-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  padding: 32px 40px;
}
.news-card-title {
  margin: 0;
  font: 700 var(--h3)/1.3 var(--serif);
  color: var(--brand-forest);
}
.news-card-title a {
  color: inherit;
  text-decoration: none;
}
.news-card-title a:hover {
  color: var(--button-bg);
}
.news-card-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font: 400 var(--text-normal)/1.6 var(--sans);
  color: var(--text-muted);
}
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  font: 400 var(--text-button)/1.5 var(--sans);
  color: var(--text-muted);
}
.news-pagination a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--chrome-border);
  border-radius: 999px;
  color: var(--brand-forest);
  text-decoration: none;
}
.news-pagination a:hover {
  border-color: var(--brand-forest);
}
.news-empty {
  padding: 48px 24px;
  border: 1px dashed var(--chrome-border);
  border-radius: 16px;
  text-align: center;
}
.news-empty h2 {
  margin: 0 0 8px;
  font: 700 var(--h3)/1.3 var(--serif);
  color: var(--brand-forest);
}
.news-empty p {
  margin: 0 0 24px;
  font: 400 var(--text-normal)/1.6 var(--sans);
  color: var(--text-muted);
}
.news-article-head .news-meta {
  margin-bottom: 14px;
}
.news-article-head .news-lead {
  margin-bottom: 0;
}
.news-cover {
  margin: 36px 0 44px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--page-bg);
}
.news-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.news-article-body {
  font: 400 var(--text-big)/1.8 var(--sans);
  color: var(--color-text);
}
.news-article-body > :first-child {
  margin-top: 0;
}
.news-article-body p {
  margin: 0 0 20px;
}
.news-article-body h2 {
  margin: 48px 0 16px;
  font: 700 calc(var(--h2) * 0.8)/1.25 var(--serif);
  color: var(--brand-forest);
}
.news-article-body h3,
.news-article-body h4 {
  margin: 32px 0 12px;
  font: 700 var(--h3)/1.3 var(--serif);
  color: var(--brand-forest);
}
.news-article-body ul,
.news-article-body ol {
  margin: 0 0 24px;
  padding-left: 26px;
  list-style: disc;
}
.news-article-body ol {
  list-style: decimal;
}
.news-article-body li {
  list-style: inherit;
  margin-bottom: 10px;
  padding-left: 4px;
}
.news-article-body li::marker {
  color: var(--brand-gold);
  font-weight: 700;
}
.news-article-body strong,
.news-article-body b {
  color: var(--brand-forest);
}
.news-article-body a {
  color: var(--button-bg);
  text-underline-offset: 4px;
}
.news-article-body blockquote {
  margin: 32px 0;
  padding: 22px 28px;
  border-left: 4px solid var(--brand-gold);
  border-radius: 0 14px 14px 0;
  background: var(--page-bg);
  font: italic 400 var(--text-big)/1.7 var(--serif);
  color: var(--brand-forest);
}
.news-article-body blockquote p:last-child {
  margin-bottom: 0;
}
.news-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}
.news-article-body table {
  width: 100%;
  margin: 0 0 24px;
  border-collapse: collapse;
  font-size: var(--text-normal);
}
.news-article-body th,
.news-article-body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--chrome-border);
  text-align: left;
}
.news-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px 32px;
  margin-top: 48px;
  padding: 32px 36px;
  border-radius: 18px;
  background: var(--brand-forest);
  color: #fff;
}
.news-cta h2 {
  margin: 0 0 8px;
  font: 700 var(--h3)/1.3 var(--serif);
  color: #fff;
}
.news-cta p {
  margin: 0;
  font: 400 var(--text-normal)/1.6 var(--sans);
  color: #ffffffcc;
}
.news-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}
.news-cta .pill-button-outline {
  border-color: #ffffff80;
  color: #fff;
}
.news-cta .pill-button-outline:hover {
  border-color: #fff;
  background: #fff;
  color: var(--brand-forest);
}
.news-more {
  margin-top: 72px;
}
.news-home .news-list {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.news-home .news-card {
  grid-template-columns: 1fr;
}
.news-home .news-card {
  align-content: start;
}
.news-home .news-card-image {
  min-height: 0;
  aspect-ratio: 16 / 9;
}
.news-home .news-card-body {
  justify-content: flex-start;
  padding: 24px 28px 28px;
}
.news-more-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.news-more-head h2 {
  margin: 0;
  font: 700 var(--h2)/1.2 var(--serif);
  color: var(--brand-forest);
}
@media (max-width: 900px) {
  .news-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 760px) {
  .news-card {
    grid-template-columns: 1fr;
  }
  .news-card-image {
    min-height: 0;
  }
  .news-card-body {
    padding: 20px 20px 24px;
  }
  .news-cover {
    margin: 24px -16px 32px;
    border-radius: 0;
  }
  .news-cta {
    padding: 24px 20px;
  }
  .news-cta-actions,
  .news-cta-actions .pill-button {
    width: 100%;
  }
  .news-more {
    margin-top: 48px;
  }
  .news-more-head .text-link {
    display: none;
  }
}

/* дополнительные фото */
.detail-gallery {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
}
.detail-thumbs a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--chrome-border);
  border-radius: 10px;
  background: #efe6d7;
  transition: border-color 0.15s;
}
.detail-thumbs a:hover {
  border-color: var(--brand-forest);
}
.detail-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-hidden {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff4dc;
  color: #7a5b13;
  font: 500 var(--text-normal)/1.5 var(--sans);
}

/* страница 404 */
main:has(.not-found-page) {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

body:has(.not-found-page) .catalog-sidebar {
  display: none;
}

body:has(.not-found-page) .catalog-layout {
  display: block;
}
