/* ===== Главная «Душа Веты» (build/templates/home.html), префикс .hm- =====
   Система: elaya.css + editorial.css — заголовки Source Serif 4 (300), текст Manrope, капс-подписи, чёрные кнопки,
   плоские фоны (--paper, белый, --accent-soft у цитат), радиус фото 4px, отступы из шкалы 8/12/16/24/32/48/64/96. */
.hm-sec { padding: 96px 0; background: var(--bg); }
.hm-sec--paper { background: var(--paper); }
.hm-sec h2, .hm-hero h1, .hm-final h2 { font-family: var(--serif); font-weight: 300; color: var(--ink); text-wrap: balance; }
.hm-sec h2, .hm-final h2 { margin: 0 0 24px; }
.hm-p { margin: 0 0 24px; font: 400 16px/24px var(--font); color: var(--stone); max-width: 600px; text-wrap: pretty; }
.hm-p--lg { font-size: 18px; line-height: 28px; }
.hm-sec .eyebrow, .hm-hero .eyebrow, .hm-final .eyebrow { margin-bottom: 16px; }
.hm-sec img, .hm-hero img, .hm-final img { display: block; max-width: 100%; }

/* первый экран */
.hm-hero { background: var(--paper); padding: 96px 0; }
.hm-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hm-hero h1 { margin: 0 0 24px; font-size: 96px !important; line-height: 1 !important; letter-spacing: -.035em; }
.hm-hero__thought { margin: 0 0 24px; max-width: 600px; font: 300 30px/36px var(--serif); letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.hm-hero__lead { margin: 0; max-width: 560px; font: 400 18px/28px var(--font); color: var(--stone); text-wrap: pretty; }
.hm-hero__btns { margin-top: 32px; display: flex; flex-wrap: wrap; }
.hm-hero__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; box-shadow: 0 40px 80px rgba(68, 64, 60, .18); }
.hm-facts { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 24px; border-top: 1px solid var(--ink); max-width: 600px; }
.hm-facts b { display: block; font: 300 48px/1 var(--serif); letter-spacing: -.03em; color: var(--ink); }
.hm-facts span { display: block; margin-top: 8px; font: 400 14px/20px var(--font); color: var(--stone); }
.hm-facts--line { margin: 32px 0; }

/* заголовок секции в две колонки */
.hm-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.hm-head h2 { margin: 0; }
.hm-head .hm-p { margin: 0; }
.hm-head__side { display: flex; gap: 24px; align-items: center; }
.hm-head__ph { width: 112px; height: 140px; flex: 0 0 112px; object-fit: cover; border-radius: 4px; }

/* философия */
.hm-phil { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.hm-phil__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.hm-phil__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 48px 32px; counter-reset: ph; }
.hm-phil__list li { counter-increment: ph; border-top: 1px solid var(--ink); padding-top: 16px; }
.hm-phil__list li::before { content: counter(ph, decimal-leading-zero); font: 600 12px/16px var(--font); letter-spacing: .14em; color: var(--accent); }
.hm-phil__list h3 { margin: 8px 0; font: 300 24px/32px var(--serif) !important; letter-spacing: -.01em; color: var(--ink); }
.hm-phil__list p { margin: 0; font: 400 14px/20px var(--font); color: var(--stone); }
.hm-phil__list small { display: block; margin-top: 12px; font: 500 14px/20px var(--font); color: var(--accent); }

/* 12 женщин */
.hm-women { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; }
.hm-w { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.hm-w__img { position: relative; display: block; overflow: hidden; border-radius: 4px; background: var(--surface-2); }
.hm-w__img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s var(--ease); }
.hm-w:hover .hm-w__img img { transform: scale(1.03); }
.hm-w:active { transform: scale(.98); }
.hm-w__badge { position: absolute; left: 12px; top: 12px; padding: 4px 8px; border-radius: 4px; background: var(--ink); color: #fff; font: 600 12px/16px var(--font); letter-spacing: .08em; text-transform: uppercase; }
.hm-w__date { margin-top: 16px; font: 600 12px/16px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hm-w__t { margin-top: 8px; font: 300 24px/32px var(--serif); letter-spacing: -.01em; }
.hm-w__s { margin-top: 4px; font: 400 14px/20px var(--font); color: var(--stone); }
.hm-w--next .hm-w__img { outline: 2px solid var(--accent); outline-offset: 4px; }
.hm-more { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.hm-link { font: 500 16px/24px var(--font); color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.hm-link:hover { color: var(--accent); }

/* фото + текст */
.hm-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hm-split--rev .hm-split__img { order: 2; }
.hm-split__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.hm-split__img--wide img { aspect-ratio: 4 / 3; }
.hm-split .lv-acc { font-style: italic; color: var(--accent); }
.hm-ticks { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 0; max-width: 600px; }
.hm-ticks li { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--surface-2); }
.hm-ticks b { font: 600 14px/20px var(--font); color: var(--ink); }
.hm-ticks span { font: 400 14px/20px var(--font); color: var(--stone); }

/* приложение */
.hm-app { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hm-price { margin: 0 0 24px; font: 400 16px/24px var(--font); color: var(--stone); }
.hm-price b { font: 300 30px/36px var(--serif); color: var(--ink); margin-right: 8px; }
.hm-app__vis { position: relative; min-height: 560px; }
.hm-app__photo { position: absolute; right: 0; top: 0; width: 64%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.hm-phone { position: absolute; left: 0; bottom: 0; width: 300px; padding: 24px; border-radius: 32px; background: var(--bg); border: 8px solid var(--ink); box-shadow: 0 40px 80px rgba(68, 64, 60, .22); }
.hm-phone__top { display: flex; justify-content: space-between; gap: 8px; font: 500 12px/16px var(--font); color: var(--ash); margin-bottom: 24px; }
.hm-phone__ey { display: block; font: 600 12px/16px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hm-phone__aff { margin: 8px 0 16px; font: 300 30px/36px var(--serif); letter-spacing: -.01em; color: var(--ink); }
.hm-phone__th { margin: 0 0 16px; font: 400 14px/20px var(--font); color: var(--stone); }
.hm-phone__pr { padding: 12px; border-radius: 12px; background: var(--accent-soft); }
.hm-phone__pr p { margin: 4px 0 0; font: 400 14px/20px var(--font); color: var(--ink); }
.hm-phone__btn { display: block; margin-top: 16px; padding: 12px; border-radius: 8px; background: var(--ink); color: #fff; text-align: center; font: 600 12px/16px var(--font); letter-spacing: .14em; text-transform: uppercase; }

/* работа с Ветой */
.hm-work { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.hm-work__img img { width: 100%; max-width: 360px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.hm-work__cols { display: grid; gap: 48px; }
.hm-work__gh { margin: 0 0 8px; font: 600 12px/16px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.hm-row { display: grid; grid-template-columns: 220px 1fr 24px; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--surface-2); color: var(--ink); text-decoration: none; transition: color .3s var(--ease); }
.hm-row b { font: 300 24px/32px var(--serif); letter-spacing: -.01em; }
.hm-row span { font: 400 14px/20px var(--font); color: var(--stone); }
.hm-row i { font-style: normal; color: var(--accent); transition: transform .5s var(--ease); }
.hm-row:hover b { color: var(--accent); }
.hm-row:hover i { transform: translateX(4px); }

/* бесплатно */
.hm-free { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hm-f { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 4px; background: var(--bg); color: var(--ink); text-decoration: none; transition: transform .5s var(--ease), box-shadow .3s var(--ease); }
.hm-f:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(68, 64, 60, .10); }
.hm-f:active { transform: scale(.98); }
.hm-f--main { grid-row: span 2; background: var(--ink); color: #fff; }
.hm-f--main span { color: #d6d3d1; }
.hm-f--main .hm-f__i, .hm-f--main .hm-f__n { color: #d9a3ac; }
.hm-f__i { color: var(--accent); }
.hm-f__n { font: 600 12px/16px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hm-f b { font: 300 24px/32px var(--serif); letter-spacing: -.01em; }
.hm-f > span:last-child, .hm-f > span:nth-child(4) { font: 400 14px/20px var(--font); color: var(--stone); }
.hm-f--main > span:nth-child(4) { color: #d6d3d1; }
.hm-f__list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; }
.hm-f__list li { padding: 8px 0; border-top: 1px solid #44403c; font: 500 14px/20px var(--font); color: #fff; }
.hm-top { margin-top: 48px; }
.hm-top__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 24px; }
.hm-top__list a { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--ink); color: var(--ink); text-decoration: none; }
.hm-top__list b { font: 600 14px/20px var(--font); }
.hm-top__list small { font: 400 12px/16px var(--font); color: var(--ash); }
.hm-top__list a:hover b { color: var(--accent); }

/* живые встречи */
.hm-events { margin: 0 0 32px; display: grid; max-width: 600px; }
.hm-events div { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--surface-2); }
.hm-events b { font: 600 14px/20px var(--font); color: var(--ink); }
.hm-events span { font: 400 14px/20px var(--font); color: var(--stone); }

/* о Вете */
.hm-about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.hm-about__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.hm-bio { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.hm-bio li { position: relative; padding-left: 24px; font: 400 14px/20px var(--font); color: var(--stone); }
.hm-bio li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* отзывы */
.hm-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.hm-case { margin: 0; padding-top: 16px; border-top: 1px solid var(--ink); }
.hm-case p { margin: 0 0 16px; font: 300 20px/28px var(--serif); color: var(--ink); }
.hm-case footer { display: grid; gap: 4px; font: 400 14px/20px var(--font); color: var(--stone); }
.hm-case footer b { font: 600 12px/16px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.hm-case footer a { color: var(--accent); font-weight: 500; }

/* финал */
.hm-final { padding: 96px 0; background: var(--bg); }
.hm-final__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
.hm-final__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.hm-final .btns, .hm-split .btns, .hm-about .btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* планшет */
@media (max-width: 1000px) {
  .hm-women { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-free { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-f--main { grid-row: auto; grid-column: span 2; }
  .hm-top__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-phil, .hm-work { grid-template-columns: 1fr; gap: 48px; }
  .hm-row { grid-template-columns: 1fr 24px; }
  .hm-row span { grid-column: 1; }
  .hm-row i { grid-row: 1; grid-column: 2; }
}
/* телефон */
@media (max-width: 760px) {
  .hm-sec, .hm-hero, .hm-final { padding: 64px 0; }
  .hm-hero__grid, .hm-split, .hm-app, .hm-about, .hm-final__grid, .hm-head { grid-template-columns: 1fr; gap: 32px; }
  .hm-hero__img { order: -1; }
  .hm-hero__img img { aspect-ratio: 4 / 3; }
  .hm-hero h1 { font-size: 60px !important; }
  .hm-hero__thought { font-size: 24px; line-height: 32px; }
  .hm-hero__lead { font-size: 16px; line-height: 24px; }
  .hm-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
  .hm-facts b { font-size: 30px; }
  .hm-facts span { font-size: 12px; line-height: 16px; }
  .hm-split--rev .hm-split__img { order: 0; }
  .hm-split__img img { aspect-ratio: 4 / 3; }
  .hm-phil__list { grid-template-columns: 1fr; gap: 32px; }
  .hm-women { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .hm-w__t { font-size: 20px; line-height: 28px; }
  .hm-w__date { font-size: 12px; letter-spacing: .08em; }
  .hm-ticks li { grid-template-columns: 1fr; gap: 4px; }
  .hm-app__vis { min-height: 0; display: grid; gap: 16px; }
  .hm-app__photo { position: static; width: 100%; aspect-ratio: 4 / 3; }
  .hm-phone { position: relative; width: auto; margin: -96px 16px 0; }
  .hm-free { grid-template-columns: 1fr; }
  .hm-f--main { grid-column: auto; }
  .hm-top__list { grid-template-columns: 1fr; }
  .hm-cases { grid-template-columns: 1fr; gap: 32px; }
  .hm-head__ph { width: 80px; height: 100px; flex-basis: 80px; }
  .hm-about__img img, .hm-final__img img { aspect-ratio: 4 / 3; }
  .hm-final__img { order: -1; }
  .hm-final .btns .btn, .hm-hero__btns .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .hm-w__img img, .hm-f, .hm-row i { transition: none; } }
