/* Local typography and catalog presentation. Product data and behavior are unchanged. */
@font-face {
  font-family: "Agro Inter";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-ui: "Agro Inter", Inter, Arial, Helvetica, sans-serif;
}

body {
  font-family: var(--font-ui);
  font-variant-numeric: lining-nums;
}

/* Inter uses lining figures by default; tnum is an actual OpenType substitution. */
.price,
.article,
.detail dd,
.detail > .gear + div > h2,
.crumb,
.toolbar,
.pages,
.footer-details,
a[href^="tel:"],
input[inputmode="numeric"],
#invoice-form input,
#invoice-form textarea {
  font-family: var(--font-ui);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0;
}

body:not(.harvest-home) h1,
body:not(.harvest-home) h2,
body:not(.harvest-home) h3,
dialog h2 {
  font-family: var(--font-ui);
  letter-spacing: -.025em;
}

body:not(.harvest-home) .wrap {
  max-width: 1440px;
  padding-top: 32px;
  padding-bottom: 56px;
}

body:not(.harvest-home) .wrap > h1 {
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.2;
  font-weight: 700;
  margin: 12px 0;
}

body:not(.harvest-home) .wrap > .subtle {
  font-size: 14px;
  line-height: 1.6;
  color: #637068;
  margin-bottom: 28px;
}

.crumb {
  font-size: 13px;
  line-height: 1.6;
  color: #69766e;
  overflow-wrap: anywhere;
}

.crumb a {
  color: #1b543d;
  text-underline-offset: 3px;
}

.crumb a:hover {
  text-decoration: underline;
}

.catalog-layout {
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 28px;
}

.catalog-layout > div {
  min-width: 0;
}

.filters {
  padding: 22px;
  border: 1px solid #dce4dd;
  background: #f6f8f5;
  border-radius: 8px;
}

.filters h3 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 650;
  margin: 0 0 22px;
}

.filters label {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  color: #34493c;
  margin-bottom: 18px;
}

.filters input,
.filters select {
  min-height: 44px;
  margin-top: 7px;
  padding: 10px 11px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  border-color: #cbd6ce;
  border-radius: 5px;
}

.filters button,
.mobile-filter {
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 12px;
}

.filters #reset {
  color: #53655a;
  font-size: 13px;
  font-weight: 400;
  margin-top: 5px;
}

.filters p {
  margin: 18px 0 0;
  color: #68776d;
  font-size: 12px;
  line-height: 1.65;
}

.toolbar {
  min-height: 46px;
  margin-bottom: 18px;
  gap: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #53645a;
}

.toolbar #count {
  font-weight: 500;
}

.toolbar select {
  min-height: 44px;
  width: 230px;
  max-width: 230px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  border-color: #d4ded6;
}

.products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.product {
  padding: 18px;
  border: 1px solid #dfe6df;
  border-radius: 8px;
  box-shadow: 0 2px 4px #0d302004;
}

.product:hover {
  border-color: #9faf9f;
}

/* Neutral picture placeholder; no unverified product photograph is implied. */
.product .gear,
.detail > .gear {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #f4f6f3;
  color: #657367;
  font-size: 0;
  border: 1px solid #e7ece6;
  border-radius: 5px;
}

.product .gear {
  height: 140px;
}

.product .gear::before,
.detail > .gear::before {
  content: "";
  display: block;
  width: 38px;
  height: 29px;
  border: 2px solid #b3bfb4;
  border-radius: 4px;
  background:
    radial-gradient(circle at 73% 26%, #b3bfb4 0 3px, transparent 3.5px),
    linear-gradient(140deg, transparent 48%, #b3bfb4 49% 53%, transparent 54%) 0 8px / 70% 25px no-repeat,
    linear-gradient(45deg, transparent 46%, #b3bfb4 47% 52%, transparent 53%) 0 8px / 70% 25px no-repeat;
}

.product .gear::after,
.detail > .gear::after {
  content: "Фотография отсутствует";
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.product .article {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.5;
  color: #657569;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.product h3 {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 550;
  line-height: 1.5;
  letter-spacing: 0;
  margin: 8px 0 20px;
  overflow-wrap: anywhere;
  color: #1d3427;
}

.product h3 a {
  text-underline-offset: 3px;
}

body:not(.harvest-home) .product h3 {
  letter-spacing: 0;
}

.product .price {
  font-family: var(--font-ui);
  font-size: 21px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: 0;
  color: #123f2c;
  overflow-wrap: anywhere;
}

.product small {
  font-size: 12px;
  line-height: 1.5;
  color: #6c796f;
  margin: 7px 0 18px;
}

.product button {
  min-height: 46px;
  padding: 12px 9px;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5;
  background: #103e2c;
  border-radius: 5px;
}

.pages {
  margin-top: 30px;
  font-size: 14px;
  gap: 14px;
  flex-wrap: wrap;
}

.pages button {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
}

.detail {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr);
  align-items: start;
  gap: 42px;
}

.detail > div {
  min-width: 0;
}

.detail > .gear {
  height: 360px;
}

.detail h1 {
  font-family: var(--font-ui);
  margin: 12px 0 24px;
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.detail .eyebrow {
  margin: 0 0 12px;
  color: #6b765e;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .06em;
}

body:not(.harvest-home) .detail h1 {
  letter-spacing: -.02em;
}

.detail dl {
  display: grid;
  grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr);
  column-gap: 22px;
  row-gap: 14px;
  border-color: #dce5dc;
  padding: 22px 0;
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.6;
}

.detail dt {
  color: #69766c;
}

.detail dd {
  margin: 0;
  font-weight: 500;
  color: #243e2d;
  overflow-wrap: anywhere;
}

.detail > .gear + div > h2 {
  font-family: var(--font-ui);
  font-size: 30px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0;
  color: #143f2b;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

.detail > .gear + div > p:not(.eyebrow) {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.65;
  color: #627168;
}

.detail button {
  min-height: 48px;
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 550;
  padding: 13px 22px;
  background: #103e2c;
}

.empty {
  padding: 32px;
  border-color: #cbd7cb;
}

.empty h3 {
  font-size: 24px;
  line-height: 1.3;
}

.empty p {
  font-size: 15px;
  line-height: 1.65;
}

@media (max-width: 1150px) {
  .catalog-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
  }
  .filters { padding: 18px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product { padding: 16px; }
}

@media (max-width: 800px) and (min-width: 701px) {
  .catalog-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 16px; }
  .filters { padding: 14px; }
  .filters h3 { font-size: 18px; }
  .products { gap: 12px; }
  .product { padding: 12px; }
  .product h3 { font-size: 14px; }
  .product .gear::after { font-size: 11px; }
  .product button { padding-inline: 6px; }
  .toolbar { flex-wrap: wrap; gap: 10px; }
  .toolbar select { max-width: 100%; width: 100%; }
}

@media (max-width: 700px) {
  body:not(.harvest-home) .wrap { padding: 24px 5% 38px; }
  .catalog-layout { display: block; }
  .mobile-filter { margin: 0 0 18px; padding-inline: 18px; background: #e9efe7; }
  .filters { position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(90vw, 360px); padding: 24px; max-height: 100dvh; border-radius: 0; }
  .filters .filter-close { width: 44px; height: 44px; min-height: 44px; padding: 0; margin: -8px -10px 8px 10px; font-size: 30px; }
  .filters h3 { margin: 0 0 26px; padding-top: 2px; font-size: 22px; }
  .filters label { font-size: 14px; }
  .filters input, .filters select, .toolbar select { font-size: 16px; }
  .filters button { font-size: 14px; }
  .filters #reset { font-size: 14px; }
  .toolbar { font-size: 14px; flex-wrap: wrap; gap: 10px; }
  .toolbar select { width: 100%; max-width: 100%; }
  .products { gap: 16px; }
  .product h3 { font-size: 15px; }
  .product .article { font-size: 12px; }
  .product button { font-size: 13px; }
  .detail { grid-template-columns: 1fr; gap: 26px; }
  .detail > .gear { height: 220px; }
  .detail > .gear::after { font-size: 13px; }
  .detail h1 { margin: 10px 0 22px; font-size: 27px; line-height: 1.3; }
  .detail dl { grid-template-columns: minmax(0, 1fr); gap: 3px; margin-bottom: 24px; padding-block: 20px; }
  .detail dd:not(:last-child) { margin-bottom: 13px; }
  .detail > .gear + div > h2 { font-size: 28px; }
  .detail button { width: 100%; }
  .pages { font-size: 13px; gap: 9px; }
  .pages button { font-size: 13px; padding: 10px 13px; }
  .empty { padding: 25px 22px; }
}

@media (max-width: 600px) {
  .products { grid-template-columns: 1fr; }
  .product { padding: 18px; }
  .product .gear { height: 132px; }
  .product h3 { font-size: 16px; line-height: 1.5; }
  .product .article { font-size: 13px; }
  .product .price { font-size: 23px; }
  .product button { font-size: 14px; }
}

.seed-catalog .products {
  grid-auto-rows: 1fr;
}

.seed-catalog .product {
  --seed-card-padding: 12px;
  padding: var(--seed-card-padding);
}

.seed-catalog .product > a:first-child {
  margin: calc(-1 * var(--seed-card-padding)) calc(-1 * var(--seed-card-padding)) 0;
  border-radius: 7px 7px 0 0;
}

.seed-catalog .product > a:first-child:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #103e2c;
  outline-offset: -3px;
}

.seed-catalog .product .gear,
.seed-catalog .catalog-illustration {
  aspect-ratio: 1;
  height: auto;
  border-radius: inherit;
}

.seed-catalog .catalog-illustration {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
}

.seed-catalog .catalog-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.seed-catalog .catalog-illustration small {
  position: absolute;
  inset: auto 8px 8px auto;
  margin: 0;
  padding: 2px 6px;
  border-radius: 3px;
  background: #153527b8;
  color: #fff;
  font-size: 10px;
}

.seed-catalog .product h3 {
  margin: 8px 0 3px;
}

.seed-harvest {
  margin: 4px 0 10px;
  color: #53645a;
  font-size: 14px;
  line-height: 1.5;
}

.other-offers { margin-top: 28px; max-width: 980px; }
.other-offers h2 { font-size: 23px; margin: 0 0 14px; }
.other-offers ul { list-style: none; padding: 0; margin: 0; }
.other-offers li { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid #dce4dd; }
.other-offers li > div { min-width: 0; overflow-wrap: anywhere; }
.other-offers a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.other-offers p { margin: 5px 0 0; }
.other-offers .price { flex-shrink: 0; font-size: 21px; white-space: nowrap; }
@media (max-width: 600px) {
  .other-offers li { align-items: flex-start; flex-direction: column; gap: 10px; }
}

.seed-catalog .product .price {
  font-size: 21px;
  font-variant-numeric: lining-nums tabular-nums;
}

.seed-catalog .product > small {
  margin: 4px 0 10px;
}

/* Existing catalog controls also work as native links and GET forms. */
.pages .button {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  text-align: center;
}
.pages .page-disabled { opacity: .4; cursor: default; }
.catalog-sort { display: flex; gap: 8px; align-items: center; }
.filters #reset { display: block; width: 100%; text-align: center; }
.category-links { margin-top: 18px; font-size: 13px; line-height: 1.6; }
.category-links summary { cursor: pointer; color: #1b543d; }
.category-links ul { padding-left: 18px; margin-bottom: 0; }
.category-links li { margin-top: 8px; }
.category-links a { text-underline-offset: 3px; }
.category-links a:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .catalog-sort { width: 100%; }
  .catalog-sort select { min-width: 0; }
  .pages .button { font-size: 13px; padding: 10px 13px; }
  main[data-catalog-rendered]:not(.catalog-enhanced) .filters {
    display: block;
    position: static;
    width: auto;
    max-height: none;
    box-shadow: none;
    overflow: visible;
    margin-bottom: 20px;
    border-radius: 8px;
  }
  main[data-catalog-rendered]:not(.catalog-enhanced) .mobile-filter,
  main[data-catalog-rendered]:not(.catalog-enhanced) .filter-close { display: none; }
}

/* Privacy information: scoped additions, using the existing site palette. */
.footer-privacy { display: inline-block; margin-inline-start: 12px; overflow-wrap: anywhere; }
.ac-footer-bottom .ac-wide { flex-wrap: wrap; gap: 10px 18px; }
#contact .contact-privacy { font-size: 12px; line-height: 1.6; margin: 18px 0 0; color: #4d6055; }
#contact .contact-privacy a { color: #16452f; text-decoration: underline; }
#contact { max-height: calc(100dvh - 32px); overflow-y: auto; }
.privacy-policy { max-width: 1000px; margin-inline: auto; line-height: 1.7; overflow-wrap: anywhere; }
.privacy-policy h1 { max-width: 900px; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.15; }
.privacy-policy h2 { font-size: clamp(21px, 2vw, 27px); line-height: 1.3; margin: 0 0 14px; }
.privacy-policy section { margin-top: 32px; }
.privacy-policy p, .privacy-policy li { font-size: 16px; line-height: 1.7; }
.privacy-policy li + li { margin-top: 10px; }
.privacy-policy .eyebrow { font-size: 11px; }
.privacy-policy a { color: #16452f; text-underline-offset: 3px; }
.privacy-draft, .privacy-approval { padding: 20px 24px; border: 1px solid #ded9bc; background: #fbf8ed; border-radius: 10px; }
.privacy-draft p:last-child, .privacy-approval p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .footer-privacy { margin: 8px 0 0; }
  .privacy-policy { padding-inline: 5%; }
  .privacy-draft, .privacy-approval { padding: 16px; }
  .privacy-policy ul { padding-left: 20px; }
}
