/* ==========================================================
   Главная «Джельмино» — витрина джелатерии
   Синий и коричневый из логотипа + яркие цвета самих вкусов.
   Общие цвета, кнопки и плитки вкусов — в site.css.
   Таблички в витрине: Bad Script (рукописные ценники джелатерий).
   ========================================================== */
/* ---------- Первый экран: витрина ---------- */
.vh { background: var(--h-navy); color: var(--h-milk); padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 88px); overflow: hidden; }
.vh__head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 48px; align-items: end; }
.vh__title {
  font: 800 clamp(42px, 6.4vw, 94px)/.98 var(--h-round); letter-spacing: -.025em;
  margin: 0; color: var(--h-milk); max-width: 14ch;
}
.vh__lead { color: #C9CCE0; font-size: 18px; line-height: 1.55; margin: 0 0 24px; max-width: 40ch; }
.vh__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.counter {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--h-brown); color: var(--h-milk);
  border-top: 12px solid #C9CEDB; border-radius: 0 0 28px 28px;
  padding: 18px 28px;
}
.counter img { filter: brightness(0) invert(1); opacity: .85; flex: none; }
.counter p { margin: 0; flex: 1; min-width: 220px; font-size: 15px; }
.counter a { color: var(--h-milk); font-weight: 700; text-underline-offset: 4px; }

/* ---------- Общие блоки ---------- */
.hs { padding: clamp(64px, 8vw, 112px) 0; }
.hs--tight { padding-top: clamp(24px, 3vw, 40px); }
.hs--paper { background: var(--h-cream); }
.hs__title { font: 800 clamp(32px, 4.4vw, 56px)/1.04 var(--h-round); letter-spacing: -.02em; color: var(--h-navy); margin: 0 0 20px; }
.hs__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.hs__head .hs__title { margin: 0; }

/* ---------- Сравнение с мороженым ---------- */
.cmp { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.cmp__text p { color: var(--h-muted); font-size: 18px; max-width: 44ch; margin-bottom: 20px; }
.bars { margin: 0; display: grid; gap: 28px; }
.bars dt { font: 700 17px var(--h-round); color: var(--h-navy); margin-bottom: 10px; }
.bars dd { margin: 0; display: grid; gap: 8px; }
.bar {
  display: flex; align-items: center; gap: 8px; width: var(--w); min-width: max-content;
  min-height: 46px; padding: 0 18px; border-radius: 12px; font-size: 15px; white-space: nowrap;
}
.bar b { font: 800 20px var(--h-round); }
.bar--g { background: var(--h-pink); color: #fff; }
.bar--p { background: #E4E6F0; color: var(--h-navy); }

/* ---------- Своё производство ---------- */
.made__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 28px; }
.made__head .hs__title { margin: 0; }
.made__head p { margin: 0; color: var(--h-muted); font-size: 18px; max-width: 44ch; }
.made { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.made img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; display: block; border-radius: 24px; background: var(--h-navy); }
.made span { display: block; margin-top: 10px; font: 700 17px var(--h-round); color: var(--h-navy); }

/* ---------- Розница / опт ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo__card { display: flex; flex-direction: column; border-radius: 36px; padding: clamp(28px, 4vw, 48px); }
.duo__card--home { background: var(--h-pink); color: #fff; --dot: var(--h-lemon); }
.duo__card--biz { background: var(--h-navy); color: var(--h-milk); --dot: var(--h-pistachio); }
.duo__title { font: 800 clamp(28px, 3vw, 40px)/1.06 var(--h-round); letter-spacing: -.015em; margin: 0 0 22px; color: inherit; }
.duo ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; font-size: 17px; }
.duo li { position: relative; padding-left: 26px; }
.duo li::before { content: ""; position: absolute; left: 0; top: .55em; width: 11px; height: 11px; border-radius: 50%; background: var(--dot); }
.duo .hbtn { margin-top: auto; align-self: flex-start; }
.tiers-t { border-collapse: collapse; margin: 0 0 28px; }
.tiers-t caption { text-align: left; font-size: 14px; opacity: .75; padding-bottom: 8px; }
.tiers-t td { padding: 8px 32px 8px 0; border-bottom: 1px solid rgba(255, 251, 245, .16); }
.tiers-t td:last-child { font: 800 20px var(--h-round); color: var(--h-pistachio); padding-right: 0; }

/* ---------- Как проходит заказ (последовательность — поэтому номера) ---------- */
.how { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.how li { counter-increment: step; border-top: 3px solid var(--h-navy); padding-top: 18px; }
.how li::before { content: counter(step); display: block; font: 800 44px/1 var(--h-round); color: var(--h-brown); margin-bottom: 14px; }
.how h3 { font: 700 20px/1.2 var(--h-round); color: var(--h-navy); margin: 0 0 8px; }
.how p { margin: 0; color: var(--h-muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.hfaq { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.page-home .faq summary { font: 700 18px/1.35 var(--h-round); color: var(--h-navy); }
.page-home .faq details[open] summary::after { background: var(--h-lemon); }

/* ---------- Журнал ---------- */
.mag { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mag__item { display: block; border-top: 3px solid var(--h-navy); padding-top: 18px; color: var(--h-navy); text-decoration: none; }
.mag__item img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; border-radius: 20px; margin-bottom: 16px; }
.mag__item h3 { font: 700 22px/1.2 var(--h-round); margin: 0 0 10px; }
.mag__item:hover h3 { text-decoration: underline; text-decoration-color: var(--h-pink); text-underline-offset: 4px; }
.mag__item p { margin: 0; color: var(--h-muted); font-size: 15px; }

/* ---------- Финальный призыв ---------- */
.last {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: var(--h-mango); color: var(--h-navy); border-radius: 36px; padding: clamp(32px, 5vw, 64px);
}
.last__title { font: 800 clamp(30px, 4vw, 52px)/1.04 var(--h-round); letter-spacing: -.02em; margin: 0 0 10px; color: inherit; }
.last p { margin: 0; font-size: 18px; max-width: 46ch; }

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .vh__head, .cmp, .hfaq { grid-template-columns: 1fr; }
  .vh__head { gap: 24px; }
  .how { grid-template-columns: 1fr 1fr; }
  .mag { grid-template-columns: 1fr; }
  .made__head { grid-template-columns: 1fr; gap: 12px; }
  .made { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .duo { grid-template-columns: 1fr; }
  .last { flex-direction: column; align-items: flex-start; }
  .counter { margin: 0 -8px; padding: 16px 20px; }
}
@media (max-width: 520px) {
  .how { grid-template-columns: 1fr; }
  .vh__cta .hbtn { flex: 1 1 100%; }
}


/* ---------- Витрина (фото) ---------- */
.vcase { margin-top: clamp(28px, 4vw, 48px); border-radius: 22px 22px 0 0; overflow: hidden; }
.vcase__scene { position: relative; container-type: inline-size; }
.vcase__photo { display: block; width: 100%; height: auto; }
/* Лоток на фото — ссылка на вкус; при наведении подсвечивается и показывает подсказку */
.vspot { position: absolute; border-radius: 1.2cqw; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .2s ease, background-color .2s ease; }
.vspot:hover, .vspot:focus-visible { outline-color: rgba(255, 251, 245, .85); background: rgba(255, 251, 245, .08); }
.vspot__hint {
  position: absolute; left: 50%; bottom: 6%; transform: translate(-50%, 6px);
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  background: var(--h-navy); color: var(--h-milk); font: 700 14px/1.2 var(--h-round);
  opacity: 0; transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
.vspot:hover .vspot__hint, .vspot:focus-visible .vspot__hint { opacity: 1; transform: translate(-50%, 0); }
