/* ============================================================
   Главная — редизайн v0 (Playfair Display + DM Sans).
   Префикс v- — блоки главной; старые классы (product-card,
   note-card, plant-slider, notes-slider, fav-btn, rise)
   переиспользуются как есть — их анимации сохранены.
   ============================================================ */

.v-home {
  overflow: hidden;
}

/* ---------- Общие элементы v0 ---------- */
.v-eyebrow {
  align-items: center;
  color: var(--clay);
  display: flex;
  font-size: 11px;
  font-weight: 700;
  gap: 9px;
  letter-spacing: 0.14em;
  margin: 0 0 24px;
  text-transform: uppercase;
}
.v-eyebrow span {
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
  height: 6px;
  width: 6px;
}
.v-eyebrow--light {
  color: #d9e5cd;
}

.v-home h1,
.v-home h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.055em;
}
.v-home h1 {
  font-size: clamp(52px, 7vw, 88px);
  line-height: 0.98;
  margin-bottom: 27px;
}
.v-home h2 {
  font-size: clamp(40px, 4.6vw, 62px);
  line-height: 0.95;
  margin: 0;
}
.v-home h1 em,
.v-home h2 em {
  color: var(--clay);
  font-style: italic;
}

.v-button {
  align-items: center;
  /* Без варианта фон не задан — гасим серую заливку <button> по умолчанию */
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: inherit;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 11px;
  justify-content: center;
  letter-spacing: 0.04em;
  padding: 15px 20px;
  transition: 0.2s;
}
.v-button--light {
  background: var(--cream);
  color: var(--forest);
}
.v-button--light:hover {
  background: #fff;
  transform: translateY(-2px);
}
.v-button--dark {
  background: var(--forest);
  color: #fff;
}
.v-button--dark:hover {
  background: var(--forest-2);
  transform: translateY(-2px);
}
.v-button--outline {
  border-color: #a9b8a2;
  color: #fff;
}
.v-button--outline:hover {
  background: rgba(255, 255, 255, 0.09);
}

.v-text-link {
  align-items: center;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 10px;
  transition: color 0.2s;
}
.v-text-link:hover {
  color: var(--clay);
}
.v-text-link--light {
  color: #fff;
}

.v-section {
  margin: auto;
  max-width: 1240px;
  padding: 105px 32px;
}
.v-section__head {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 45px;
}
.v-section__head--compact {
  margin-bottom: 27px;
}
.v-section__intro {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 310px;
}

/* ---------- Hero ---------- */
.v-hero {
  color: #fff;
  min-height: 610px;
  position: relative;
}
.v-hero__image,
.v-hero__overlay {
  inset: 0;
  position: absolute;
}
.v-hero__image {
  background-position: center;
  background-size: cover;
}
.v-hero__overlay {
  background: linear-gradient(
    90deg,
    rgba(24, 39, 28, 0.84) 0%,
    rgba(24, 39, 28, 0.42) 45%,
    rgba(24, 39, 28, 0.1) 100%
  );
}
.v-hero__content {
  margin: auto;
  max-width: 1240px;
  padding: 105px 32px;
  position: relative;
  z-index: 1;
}
.v-hero__copy {
  color: #dce4d8;
  font-size: 15px;
  line-height: 1.7;
  max-width: 405px;
}
.v-hero__actions {
  align-items: center;
  display: flex;
  gap: 28px;
  margin-top: 34px;
}
.v-hero__note {
  align-items: center;
  background: rgba(24, 39, 28, 0.32);
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
  bottom: 38px;
  display: flex;
  gap: 14px;
  padding: 12px 18px;
  position: absolute;
  right: 7%;
  z-index: 1;
}
.v-hero__note strong {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 500;
}
.v-hero__note span {
  border-left: 1px solid rgba(255, 255, 255, 0.53);
  color: #e1e7dc;
  font-size: 12px;
  line-height: 1.45;
  padding-left: 14px;
}

/* ---------- Полоса доверия ---------- */
.v-trust {
  align-items: center;
  background: #e9eee5;
  display: flex;
  justify-content: space-around;
  padding: 22px 6%;
}
.v-trust div {
  align-items: center;
  color: var(--forest);
  display: flex;
  font-size: 12px;
  gap: 10px;
}

/* ---------- Категории (с картинками) ---------- */
.v-cat-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(4, 1fr);
}
/* Полосы фона во всю ширину — секции не сливаются */
.v-band {
  width: 100%;
}
.v-band--light {
  background: #faf7f1;
}

/* ---------- Категории-слайдер ---------- */
.v-cat-track {
  display: flex;
  gap: 17px;
  overflow-x: auto;
  padding: 0.5rem 0 1.15rem;
  scrollbar-width: none;
}
.v-cat-track::-webkit-scrollbar {
  display: none;
}
.v-cat-track > * {
  flex: 0 0 calc((100% - 3 * 17px) / 4);
  min-width: 0;
}
.v-cat-card {
  border-radius: var(--radius);
  display: block;
  height: 220px;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.v-cat-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-6px);
}
.v-cat-card__img {
  background-position: center;
  background-size: cover;
  inset: 0;
  position: absolute;
  transition: transform 0.5s;
}
.v-cat-card:hover .v-cat-card__img {
  transform: scale(1.05);
}
.v-cat-card__shade {
  background: linear-gradient(180deg, rgba(24, 39, 28, 0) 35%, rgba(24, 39, 28, 0.72) 100%);
  inset: 0;
  position: absolute;
}
.v-cat-card__shade--empty {
  background: linear-gradient(160deg, var(--sage), var(--forest));
}
.v-cat-card__label {
  bottom: 18px;
  left: 20px;
  position: absolute;
  right: 20px;
  z-index: 1;
}
.v-cat-card__label strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* ---------- Растения: фильтры и карточки ---------- */
.v-plants {
  padding-top: 25px;
}
.v-filter-row {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 26px;
  margin-bottom: 30px;
  overflow-x: auto;
}
.v-filter {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  padding: 0 0 13px;
  transition: color 0.2s;
  white-space: nowrap;
}
/* При наведении неактивная вкладка подсвечивается цветом акцента —
   как ссылка «Весь каталог» (.v-text-link:hover), чтобы вкладки реагировали */
.v-filter:hover {
  color: var(--clay);
}
.v-filter.is-active {
  border-bottom: 2px solid var(--clay);
  color: var(--ink);
  font-weight: 700;
}
/* Активная вкладка при наведении не меняет цвет — остаётся тёмной с подчёркиванием */
.v-filter.is-active:hover {
  color: var(--ink);
}
.v-plant-grid {
  display: grid;
  gap: 17px;
  grid-template-columns: repeat(4, 1fr);
}

/* Карточка с обводкой — как product-card, чтобы не терялась на фоне */
.v-plant-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.v-plant-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}
.v-plant-card__photo {
  aspect-ratio: 0.85;
  overflow: hidden;
  position: relative;
}
.v-plant-card__photo img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  width: 100%;
}
.v-plant-card:hover img {
  transform: scale(1.04);
}
.v-plant-card__placeholder {
  align-items: center;
  background: var(--sage);
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}
/* Сердечко — круглое, как fav-btn, полупрозрачный фон */
.v-plant-card .fav-btn {
  background: rgba(255, 253, 249, 0.85);
}
.v-plant-card__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 16px 16px;
}
.v-plant-card__info h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 15px;
  min-height: 2.6em;
}
.v-plant-card__bottom {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: auto;
}
.v-plant-card__price {
  align-items: baseline;
  display: flex;
  font-size: 15px;
  font-weight: 700;
  gap: 6px;
}
.v-plant-card__price s {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.v-plant-card__add {
  background: var(--forest);
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  flex: 0 0 38px;
  font-size: 21px;
  height: 38px;
  line-height: 20px;
  transition: background 0.15s ease, transform 0.15s ease;
  width: 38px;
}
.v-plant-card__add:hover {
  background: var(--forest-2);
  transform: scale(1.08);
}

/* ---------- История (тёмная секция, фото слева, текст справа) ---------- */
.v-story {
  background: var(--forest);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}
.v-story__image {
  background-position: center;
  background-size: cover;
  min-height: 310px;
}
.v-story__content {
  align-self: center;
  max-width: 500px;
  padding: 75px 8%;
}
.v-story__content h2 {
  color: #fff;
  margin-bottom: 28px;
}
.v-story__content > p:not(.v-eyebrow) {
  color: #c7d2c5;
  font-size: 14px;
  line-height: 1.75;
  max-width: 400px;
}
.v-story__facts {
  display: flex;
  gap: 34px;
  margin: 30px 0;
}
.v-story__facts b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
}
.v-story__facts span {
  color: #c7d2c5;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.v-story__content .v-button {
  margin-top: 17px;
}

/* ---------- Галерея-слайдер (авто, без клика) ---------- */
.v-gallery__slider {
  border-radius: var(--radius);
  height: 610px;
  overflow: hidden;
  position: relative;
}
/* Карточки слайдеров — той же ширины, что в сетке растений (4 в ряду) */
.v-home .plant-slider__track,
.v-home .notes-slider__track {
  gap: 17px;
  /* Ноль по бокам: тогда ширина карточки = как в сетке растений,
     без вычета padding трека (1176 - 3*17) / 4 */
  padding-left: 0;
  padding-right: 0;
}
.v-home .plant-slider__track > *,
.v-home .notes-slider__track > * {
  flex: 0 0 calc((100% - 3 * 17px) / 4);
  /* Без min-width:0 карточка заметки не сжимается ниже минимальной
     ширины по контенту (~210px) и ломает одинаковую ширину карточек */
  min-width: 0;
}
/* Заметки — той же ширины, но выше: фото крупнее */
.v-home .note-card__media {
  aspect-ratio: 0.85;
  height: auto;
}
.v-gallery__slide {
  background-position: center;
  background-size: cover;
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.9s ease;
}
.v-gallery__slide.is-active {
  opacity: 1;
}
.v-gallery__dots {
  bottom: 18px;
  display: flex;
  gap: 8px;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 2;
}
.v-gallery__dot {
  background: rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  height: 8px;
  transition: background 0.3s, width 0.3s;
  width: 8px;
}
.v-gallery__dot.is-active {
  background: #fff;
  width: 22px;
  border-radius: var(--radius);
}

/* ---------- Визит / контакты ---------- */
.v-visit {
  display: grid;
  gap: 60px;
  grid-template-columns: 1fr 1fr 330px;
  margin: auto;
  max-width: 1240px;
  padding: 105px 32px;
}
.v-visit__details {
  max-width: none;
}
.v-visit__details > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.v-detail-row {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  display: flex;
  font-size: 13px;
  gap: 14px;
  line-height: 1.55;
  padding: 15px 0;
}
.v-detail-row svg {
  color: var(--clay);
}
.v-detail-row a {
  text-decoration: underline;
}
.v-visit__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* Кнопка маршрута — того же семейства и размера, что и кнопки каналов,
   но в фирменном цвете Яндекс.Карт */
.v-visit__buttons .btn-msg {
  width: 100%;
}
/* Надписи в кнопках-мессенджерах на главной — в типографике .v-button
   (12px/700/0.04em), чтобы не отличаться от остальных кнопок v0 */
.v-home .btn-msg {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
/* Фирменный красный Яндекс.Карт (#FF4433 — цвет пина из их favicon) */
.btn-route {
  background: #ff4433;
}
.btn-route:hover {
  background: #e13d2a;
}

/* ---------- Шапка (стиль ГарденМарт, наша палитра) ---------- */
.v-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.v-header__inner {
  align-items: center;
  display: flex;
  gap: 16px;
  margin: auto;
  max-width: 1240px;
  padding: 10px 32px;
}
.v-header .brand {
  display: inline-flex;
  flex: 0 0 auto;
}
.v-header__catalog {
  align-items: center;
  background: var(--forest);
  border-radius: var(--radius);
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  transition: background 0.2s;
}
.v-header__catalog:hover {
  background: var(--forest-2);
}
.v-header__search {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex: 1 1 auto;
  height: 46px;
  min-width: 0;
  overflow: visible;
  position: relative;
}
.v-header__search .header-search__input {
  background: transparent;
  border: 0;
  box-shadow: none;
  flex: 1;
  font-size: 15px;
  height: 100%;
  min-width: 0;
  outline: none;
  padding: 0 16px 0 22px;
}
.v-header__search .header-search__input:focus {
  border: 0;
  box-shadow: none;
}
.v-header__search:focus-within {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(52, 77, 58, 0.12);
}
.v-header__search .header-search__input::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}
.v-header__search-btn {
  align-items: center;
  align-self: stretch;
  background: var(--forest);
  border: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex: 0 0 54px;
  justify-content: center;
  transition: background 0.2s;
}
.v-header__search-btn:hover {
  background: var(--forest-2);
}
.v-header__search .header-search__drop {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  left: 0;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
}
.v-header__icons {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}
.v-header .nav {
  background: none;
  box-shadow: none;
  display: flex;
  flex-direction: row;
  gap: 6px;
  left: auto;
  margin: 0;
  padding: 0;
  position: static;
  top: auto;
}
.v-header__icon {
  align-items: center;
  border-radius: 12px;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  font-size: 10px;
  gap: 3px;
  min-width: 58px;
  padding: 7px 8px;
  position: relative;
  transition: color 0.15s, background 0.15s;
}
.v-header__icon:hover,
.v-header__icon.is-active {
  background: rgba(52, 77, 58, 0.07);
  color: var(--forest);
}
.v-header__count {
  background: var(--clay);
  border-radius: var(--radius);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 5px;
  position: absolute;
  right: 4px;
  top: 2px;
}
.v-header__count[data-empty="true"] {
  display: none;
}
.v-header__burger {
  display: none;
}
/* Ссылка «Каталог» внутри бургер-меню: на десктопе дублирует зелёную
   кнопку в шапке, поэтому показываем её только на телефоне (≤760px),
   когда сама кнопка в шапке скрыта. */
.v-header__nav-catalog {
  display: none;
}

@media (max-width: 980px) {
  /* Планшет: описание с контактами уходит под заголовок,
     кнопки каналов и маршрута — на всю ширину под ними */
  .v-visit {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .v-visit__buttons {
    grid-column: 1 / -1;
    max-width: 480px;
  }
  .v-header__inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 20px;
  }
  .v-header__search {
    flex: 1 1 100%;
    order: 3;
  }
  /* Селектор с тем же приоритетом, что и `.v-header .nav { display: flex }`
     выше, но позже в файле — иначе правило «показать рядом» перебивает
     скрытие и строка иконок вылезала за экран. */
  .v-header .nav {
    display: none;
    background: var(--cream);
    box-shadow: 0 15px 25px rgba(36, 51, 35, 0.12);
    flex-direction: column;
    gap: 4px;
    left: 0;
    margin: 0;
    padding: 16px 20px;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 40;
  }
  .v-header .nav.is-open {
    display: flex;
  }
  .v-header__icon {
    flex-direction: row;
    font-size: 13px;
    gap: 10px;
    padding: 10px 8px;
    width: 100%;
  }
  .v-header__count {
    position: static;
    margin-left: auto;
  }
  .v-header__burger {
    display: block;
    margin-left: auto;
  }
}

/* ---------- Мобильная версия ---------- */
@media (max-width: 760px) {
  /* Телефон: во всех четырёх секциях по 2 карточки в ряд — как в сетке
     растений. Раньше слайдеры показывали 4 узких карточки (75px),
     а заметки из-за минимальной ширины контента — 210px. */
  .v-home .v-cat-track,
  .v-home .plant-slider__track,
  .v-home .notes-slider__track {
    gap: 10px;
    padding-left: 0;
    padding-right: 0;
  }
  .v-home .v-cat-track > *,
  .v-home .plant-slider__track > *,
  .v-home .notes-slider__track > * {
    flex: 0 0 calc((100% - 10px) / 2);
    min-width: 0;
  }
  /* Телефон: в шапке только логотип, строка поиска и кнопка-бургер.
     Зелёная кнопка «Каталог» и иконки разделов спрятаны в меню —
     дублирующие ссылки вылезали за экран вправо. */
  .v-header__catalog {
    display: none;
  }
  .v-header__nav-catalog {
    display: flex;
  }
  .v-hero {
    min-height: 620px;
  }
  .v-hero__content {
    padding: 82px 20px;
  }
  .v-hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .v-hero__note {
    bottom: 25px;
    right: 20px;
  }
  .v-hero__note strong {
    font-size: 42px;
  }
  .v-trust {
    align-items: flex-start;
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 1fr;
    padding: 20px;
  }
  .v-section {
    padding: 72px 20px;
  }
  .v-section__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }
  .v-cat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .v-cat-card {
    height: 180px;
  }
  .v-cat-card__label strong {
    font-size: 18px;
  }
  .v-plant-grid {
    gap: 15px 10px;
    grid-template-columns: 1fr 1fr;
  }
  .v-plant-card__info h3 {
    font-size: 15px;
    min-height: 2.6em;
  }
  .v-story {
    grid-template-columns: 1fr;
  }
  .v-story__content {
    padding: 62px 20px;
  }
  .v-story__facts {
    flex-wrap: wrap;
    gap: 20px;
  }
  .v-gallery__slider {
    height: 280px;
  }
  .v-visit {
    gap: 40px;
    grid-template-columns: 1fr;
    padding: 78px 20px;
  }
}
