/* Главная опта по макету 2026-10. Цвета и шрифт берутся из udacha.css */
.uh {
  --uh-green: var(--uda-green-dark, #008641);
  --uh-green-hover: #0b6b36;
  --uh-soft: #eef6ea;
  --uh-line: var(--uda-line, #d7e5d6);
  --uh-muted: var(--uda-muted, #5d6d61);
  --uh-ink: var(--uda-ink, #1a2e1c);
  color: var(--uh-ink);
  padding-bottom: 24px;
}

.uh h1,
.uh h2,
.uh h3 {
  color: var(--uh-ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.uh h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
  margin: 0 0 8px;
}

.uh h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 6px;
}

.uh-sub {
  color: var(--uh-muted);
  margin: 0;
}

/* Кнопки и ссылки */
.uh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}

.uh-btn-primary {
  background: var(--uh-green);
  color: #fff;
}

.uh-btn-primary:hover,
.uh-btn-primary:focus-visible {
  background: var(--uh-green-hover);
  color: #fff;
}

.uh-btn-outline,
.uh-btn-download {
  background: #fff;
  color: var(--uh-ink);
  border-color: var(--uh-green);
}

.uh-btn-outline:hover,
.uh-btn-download:hover {
  background: var(--uh-soft);
  color: var(--uh-ink);
}

.uh-btn-download i {
  color: var(--uh-green);
  font-size: 20px;
}

.uh-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--uh-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.uh-link:hover {
  color: var(--uh-green-hover);
}

.uh-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--uh-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.uh-more i {
  font-size: 14px;
}

/* Первый экран: фото справа на всю высоту, текст поверх светлой части */
.uh-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(105deg, #f5f8f0 0%, #eef5e8 45%, #e4eedc 100%);
  border-bottom: 1px solid var(--uh-line);
}

.uh-hero-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
}

.uh-hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 45%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .55) 22%, #000 45%);
}

.uh-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 460px;
}

.uh-hero-copy {
  max-width: 600px;
  padding: 56px 0;
}

.uh-kicker {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  background: #dbeed3;
  color: var(--uh-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.uh-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
  margin: 18px 0 14px;
}

.uh-lead {
  font-size: clamp(17px, 1.6vw, 21px);
  color: #34483a;
  margin: 0 0 28px;
  max-width: 520px;
}

.uh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.uh-noaccess {
  margin: 16px 0 0;
  color: #34483a;
}

/* Карточка прайсов */
.uh-card {
  background: #fff;
  border: 1px solid var(--uh-line);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(18, 50, 28, .06);
}

.uh-prices {
  margin-top: 32px;
  padding: 28px 32px;
}

.uh-prices-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.uh-prices-icon {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #fff4dc;
  color: var(--uda-gold, #e2b133);
  font-size: 36px;
}

.uh-prices-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 16px;
}

.uh-prices-actions .uh-btn {
  justify-content: center;
  text-align: center;
}

/* Больше, чем поставщик */
.uh-value {
  margin-top: 40px;
  padding: 36px 32px;
  border-radius: 18px;
  background: var(--uh-soft);
  text-align: center;
}

.uh-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.uh-benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 20px;
  border-right: 1px solid #cfe0c9;
}

.uh-benefit:last-child {
  border-right: 0;
}

.uh-benefit-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--uh-green);
  font-size: 28px;
  margin-bottom: 10px;
  box-shadow: 0 8px 20px rgba(18, 50, 28, .06);
}

.uh-benefit:first-child .uh-benefit-icon {
  color: var(--uda-gold, #e2b133);
}

.uh-benefit strong {
  font-size: 22px;
  line-height: 1.2;
}

.uh-benefit span:last-child {
  color: var(--uh-muted);
}

/* Разделы */
.uh-section {
  margin-top: 48px;
}

.uh-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}

.uh-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.uh-group {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--uh-line);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}

.uh-group:hover {
  box-shadow: 0 14px 30px rgba(18, 50, 28, .1);
  transform: translateY(-2px);
}

.uh-group-img {
  display: block;
  aspect-ratio: 4 / 3;
  background: #f7faf5;
}

.uh-group-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.uh-group-body {
  padding: 16px 18px 18px;
}

.uh-group h3 a {
  color: var(--uh-ink);
  text-decoration: none;
}

.uh-group ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.uh-group li a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--uh-soft);
  color: #2f4a35;
  font-size: 13px;
  text-decoration: none;
}

.uh-group li a:hover {
  background: #dbeed3;
  color: var(--uh-ink);
}

/* Поможем с закупкой */
.uh-help {
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 36px 40px;
  border-radius: 18px;
  background: linear-gradient(110deg, #eef6ea, #e2efdb);
}

.uh-help p {
  color: var(--uh-muted);
  margin: 0 0 20px;
  max-width: 520px;
}

.uh-help-art {
  display: flex;
  gap: 18px;
  font-size: 72px;
  color: #9cc48f;
}

.uh-help-art .fa-leaf {
  color: var(--uh-green);
  transform: rotate(-20deg);
}

/* Как сделать заказ */
.uh-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.uh-step {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 22px 22px 22px 18px;
  background: #fff;
  border: 1px solid var(--uh-line);
  border-radius: 16px;
}

.uh-step-no {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--uh-green);
  color: #fff;
  font-weight: 700;
}

.uh-step-body {
  flex: 1;
  min-width: 0;
  padding-right: 36px;
}

.uh-step p {
  color: var(--uh-muted);
  margin: 0 0 8px;
}

.uh-step-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.uh-step-links a {
  font-weight: 600;
  color: var(--uh-green);
  text-underline-offset: 3px;
}

.uh-step-icon {
  position: absolute;
  top: 22px;
  right: 20px;
  font-size: 26px;
  color: var(--uh-green);
}

/* Окно контактов */
.uh-modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(16, 35, 24, .55);
}

.uh-modal-box {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 28px 24px 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
}

.uh-modal-box h2 {
  font-size: 24px;
  padding-right: 32px;
}

.uh-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: none;
  font-size: 22px;
  color: var(--uh-ink);
  cursor: pointer;
}

.uh-modal-close:hover {
  background: var(--uh-soft);
}

.uh-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--uh-line);
  border-radius: 12px;
  color: var(--uh-ink);
  text-decoration: none;
}

.uh-contact:hover {
  background: #f7faf5;
  color: var(--uh-ink);
}

.uh-contact > span:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
  color: var(--uh-green);
}

.uh-contact b {
  color: var(--uh-ink);
}

.uh-contact-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--uh-green);
  color: #fff;
  font-size: 18px;
}

.uh-modal-note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--uh-muted);
}

body.uh-lock {
  overflow: hidden;
}

/* Планшет */
@media (max-width: 1023.98px) {
  .uh-groups {
    gap: 10px;
  }

  .uh-group-body {
    padding: 12px;
  }

  .uh-steps {
    grid-template-columns: 1fr;
  }

  .uh-hero-art {
    width: 62%;
  }

  .uh-hero-copy {
    max-width: 58%;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .uh-new .col:nth-child(n+7) {
    display: none;
  }
}

/* Телефон */
@media (max-width: 767.98px) {
  .uh-hero-inner {
    min-height: 0;
  }

  .uh-hero-copy {
    max-width: none;
    padding: 28px 0 32px;
  }

  /* На телефоне фото уходит в фон справа, слева его прикрывает светлая вуаль */
  .uh-hero-art {
    width: 100%;
  }

  .uh-hero-art img {
    object-position: 72% 50%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .uh-hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(245, 248, 240, .97) 0%, rgba(245, 248, 240, .9) 48%, rgba(245, 248, 240, .45) 78%, rgba(245, 248, 240, .2) 100%);
  }

  .uh-hero-actions .uh-btn {
    width: 100%;
  }

  .uh-prices {
    padding: 22px 18px;
  }

  .uh-prices-icon {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }

  .uh-prices-actions {
    grid-template-columns: 1fr;
  }

  .uh-prices-actions .uh-btn {
    justify-content: flex-start;
    text-align: left;
  }

  .uh-value {
    padding: 26px 14px;
  }

  .uh-benefits {
    gap: 8px;
  }

  .uh-benefit {
    padding: 0 6px;
  }

  .uh-benefit-icon {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .uh-benefit strong {
    font-size: 15px;
    hyphens: auto;
    overflow-wrap: break-word;
  }

  .uh-new .col:nth-child(n+5) {
    display: none;
  }

  .uh-new .row {
    --bs-gutter-x: 10px;
  }

  .uh-new .product-thumb .content {
    padding: 10px;
  }

  .uh-new .product-thumb .description {
    padding: 0;
  }

  .uh-new .product-thumb h4 {
    font-size: 14px;
    min-height: 0;
  }

  .uh-new .uda-lock {
    padding: 8px;
    font-size: 12px;
  }

  .uh-benefit span:last-child {
    font-size: 13px;
  }

  .uh-section,
  .uh-help {
    margin-top: 32px;
  }

  .uh-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .uh-group h3 {
    font-size: 16px;
  }

  .uh-help {
    padding: 26px 20px;
  }

  .uh-help-art {
    display: none;
  }

  .uh-help .uh-btn {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .uh-section-head {
    flex-wrap: wrap;
  }
}

/* 2026-10-30: заголовок-ссылка, сезонная подсказка, страница «Каталог» */
.uh-h-link {
  color: inherit;
  text-decoration: none;
}

.uh-h-link:hover {
  color: var(--uh-green);
}

.uh-group-note,
.uh-season-note {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff8e1;
  color: #5b4a12;
  font-size: 14px;
  line-height: 1.4;
}

.uh-season-note {
  margin: 0 0 20px;
  padding: 16px 18px;
  font-size: 16px;
}

.uh-season-note i {
  color: #00a650;
  margin-right: 6px;
}

.uh-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 8px 0 40px;
}

.uh-cat {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e0e9df;
  border-radius: 16px;
  overflow: hidden;
  color: #142b23;
  text-decoration: none;
  transition: box-shadow .15s, transform .15s;
}

.uh-cat:hover {
  box-shadow: 0 14px 30px rgba(18, 50, 28, .1);
  transform: translateY(-2px);
  color: #142b23;
}

.uh-cat-img {
  aspect-ratio: 4 / 3;
  background: #f7faf5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8ab482;
  font-size: 48px;
}

.uh-cat-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.uh-cat-body {
  padding: 12px 14px 14px;
}

.uh-cat-body strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}

.uh-cat-body small {
  display: block;
  margin-top: 4px;
  color: #66756c;
}

@media (max-width: 575.98px) {
  .uh-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* 2026-10-30: мобильная главная ближе к макету */
.uh-prices-icon {
  width: 96px;
  height: 96px;
  background: none;
}

.uh-prices-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.uh-br-m {
  display: none;
}

@media (max-width: 767.98px) {
  .uh-br-m {
    display: inline;
  }
}

.uh-step-links a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
  /* Баннер: вуаль легче, картинка видна */
  .uh-hero-art::after {
    background: linear-gradient(100deg, rgba(245, 248, 240, .94) 0%, rgba(245, 248, 240, .78) 45%, rgba(245, 248, 240, .25) 80%, rgba(245, 248, 240, 0) 100%);
  }

  /* Прайсы: две кнопки в ряд */
  .uh-prices-icon {
    width: 72px;
    height: 72px;
  }

  .uh-prices-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .uh-prices-actions .uh-btn {
    min-height: 60px;
    padding: 10px 12px;
    gap: 8px;
    font-size: 14px;
    line-height: 1.25;
  }

  .uh-prices-actions .uh-btn i {
    font-size: 18px;
  }

  /* Больше, чем поставщик: третьей колонке больше места */
  .uh-benefits {
    grid-template-columns: 1fr 1fr 1.35fr;
    gap: 0;
  }

  .uh-benefit {
    padding: 0 4px;
  }

  .uh-benefit strong {
    font-size: 14px;
    hyphens: none;
    overflow-wrap: normal;
  }

  /* Ассортимент: плитки «фото слева, название справа» */
  .uh-groups {
    gap: 10px;
  }

  .uh-group {
    flex-direction: row;
    align-items: center;
  }

  .uh-group-img {
    flex: 0 0 38%;
    aspect-ratio: 1;
  }

  .uh-group-body {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
  }

  .uh-group h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
  }

  .uh-group ul {
    display: none;
  }

  .uh-group-note {
    margin-top: 6px;
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1.3;
  }

  /* Новинки: лента, листается пальцем */
  .uh-new .row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-right: -12px;
    padding-right: 7px;
  }

  .uh-new .row::-webkit-scrollbar {
    display: none;
  }

  .uh-new .row > .col {
    flex: 0 0 46%;
    max-width: 46%;
    scroll-snap-align: start;
  }

  .uh-new .col:nth-child(n+5) {
    display: block;
  }

  /* Как сделать заказ: почта отдельной строкой без обрезки */
  .uh-step-body {
    padding-right: 0;
  }

  .uh-step h3 {
    padding-right: 34px;
  }
}

/* Ассортимент: фото на всю плитку */
.uh-group-img {
  overflow: hidden;
}

.uh-group-img img {
  object-fit: cover;
  padding: 0;
  transition: transform .3s;
}

.uh-group:hover .uh-group-img img {
  transform: scale(1.04);
}
