/* Главная: только то, чего нет в site.css. */

.hd-head { max-width: 860px; margin-bottom: 56px; }
.hd-head h2 { margin: 0; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.hd-page .sec { padding: 96px 0; }
.hd-head p { margin: 20px 0 0; font-size: 19px; color: var(--muted); }
.sec-cream .hd-head p { color: var(--cream-text); }

/* ---------- Первый экран ---------- */
.hd-hero { padding: 88px 0 112px; background: var(--black); overflow: hidden; }
.hd-hero-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: 56px; align-items: center; }
.hd-hero h1 { margin: 0; font-size: clamp(40px, 5.2vw, 66px); line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
.hd-hero .lead { max-width: 540px; }
.hd-note { margin: 18px 0 0; font-size: 15px; color: var(--dim); }

.hd-scene { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.hd-wire { position: absolute; left: 100%; top: 50%; width: 48px; height: 2px; margin-top: -1px; background: #38383e; transition: background .3s; }
.hd-wire.go { background: var(--gold); }
.hd-pos { background: #f6f5f2; color: #17171a; border-radius: 14px; font-size: 14px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.hd-bar { display: flex; justify-content: space-between; gap: 8px; padding: 9px 14px; border-radius: 14px 14px 0 0; background: #0f0f10; color: #a6a6ab; font-size: 12px; font-weight: 600; }
.hd-pos-body { display: grid; gap: 12px; padding: 16px 14px 14px; }
.hd-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 11px 12px; border: 1px solid #e3e0d8; border-radius: 10px; background: #fff; }
.hd-row b { font-size: 14px; }
.hd-row small { grid-column: 1; color: #8b887f; font-size: 12px; }
.hd-row span { grid-row: 1 / 3; grid-column: 2; align-self: center; font-weight: 800; white-space: nowrap; }
.hd-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: #6d6a62; }
.hd-total b { font-size: 21px; letter-spacing: -.02em; color: #17171a; white-space: nowrap; }
.hd-pay { display: block; width: 100%; min-height: 44px; border: 0; border-radius: 10px; background: #17171a; color: #fff; font: inherit; font-weight: 800; cursor: pointer; transition: background .2s; }
.hd-pay:hover { background: #33333a; }
.hd-pay[disabled] { background: #e4f3ea; color: #1f7a4d; cursor: default; }
.hd-pay:focus-visible, .hd-hint:focus-visible, .hd-again:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.hd-stock { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; border: 1px solid #e3e0d8; border-radius: 10px; background: #fff; font-size: 13px; color: #55524b; transition: border-color .3s, background .3s; }
.hd-stock b { font-size: 20px; color: #17171a; font-variant-numeric: tabular-nums; }
.hd-stock.hit { border-color: var(--gold); background: #fdf1dc; }

.hd-chat { display: flex; flex-direction: column; min-height: 318px; margin-top: 46px; border: 1px solid #38383e; border-radius: 14px; overflow: hidden; background: #1d1d21; font-size: 14px; }
.hd-chat-top { display: flex; align-items: center; gap: 9px; padding: 10px 13px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.hd-chat-top i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font-style: normal; font-weight: 800; font-size: 12px; }
.hd-chat-top small { display: block; font-size: 11px; font-weight: 500; color: var(--dim); }
.hd-msgs { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; flex: 1; padding: 13px; }
.hd-time { align-self: center; font-size: 11px; color: var(--dim); }
.hd-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; line-height: 1.38; opacity: 0; translate: 0 6px; transition: opacity .3s, translate .3s; }
.hd-msg.in { opacity: 1; translate: 0 0; }
.hd-msg.you { align-self: flex-end; background: var(--panel-2); border-bottom-right-radius: 4px; }
.hd-msg.bot { align-self: flex-start; background: #f7e8cc; color: #1a1205; border-bottom-left-radius: 4px; }
.hd-dots { display: inline-flex; gap: 4px; padding: 12px 14px; }
.hd-dots[hidden] { display: none; }
.hd-dots i { width: 6px; height: 6px; border-radius: 50%; background: #8a7a5c; animation: hd-dot 1s infinite; }
.hd-dots i:nth-child(2) { animation-delay: .15s; }
.hd-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes hd-dot { 50% { translate: 0 -3px; opacity: .45; } }
.hd-again { position: absolute; left: 0; bottom: -34px; padding: 4px 0; border: 0; background: none; color: var(--dim); font: inherit; font-size: 14px; cursor: pointer; visibility: hidden; }
.hd-again:hover { color: var(--light); }
.hd-again.in { visibility: visible; }

/* ---------- Что теряет магазин ---------- */
.hd-loss { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--cream-line); }
.hd-loss li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding: 26px 0; border-bottom: 1px solid var(--cream-line); }
.hd-loss b { display: block; font-size: 21px; line-height: 1.25; letter-spacing: -.015em; color: var(--black); }
.hd-loss span { display: block; margin-top: 6px; font-size: 16px; color: var(--cream-text); }
.hd-loss p { margin: 0; font-size: 18px; line-height: 1.45; color: var(--black); }
.hd-loss-label { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding-bottom: 12px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }

/* ---------- Одни товары на всё ---------- */
.hd-day { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.hd-day::before { content: ""; position: absolute; left: 6px; right: 0; top: 5px; height: 1px; background: var(--line); }
.hd-day li { position: relative; display: flex; flex-direction: column; padding-top: 30px; }
.hd-day li::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); }
.hd-day h3 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.hd-day p { margin: 8px 0 18px; font-size: 16px; color: var(--muted); }
.hd-mini { margin-top: auto; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: 13.5px; line-height: 1.4; }
.hd-mini small { display: block; color: var(--dim); font-size: 12px; }
.hd-mini b { display: block; }
.hd-mini em { display: block; margin-top: 4px; font-style: normal; font-weight: 700; color: var(--gold); }
.hd-more { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.hd-more a { display: inline-flex; align-items: center; gap: 8px; color: var(--light); font-weight: 700; }
.hd-more a:hover { color: var(--gold); }

/* ---------- Спросите бота ---------- */
.hd-bot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); grid-template-areas: "ask chat" "facts chat"; gap: 0 72px; align-items: center; }
.hd-bot-ask { grid-area: ask; align-self: end; }
.hd-botwin { grid-area: chat; }
.hd-facts { grid-area: facts; align-self: start; }
.hd-bot .hd-head { margin-bottom: 28px; }
.hd-hints { display: flex; flex-wrap: wrap; gap: 8px; }
.hd-hint { min-height: 42px; padding: 0 16px; border: 1px solid var(--cream-line); border-radius: 999px; background: #fff; color: var(--black); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s; }
.hd-hint:hover { border-color: var(--gold-deep); }
.hd-hint[aria-pressed="true"] { border-color: var(--black); background: var(--black); color: var(--light); }
.hd-facts { display: grid; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.hd-facts li { display: flex; gap: 10px; font-size: 16px; color: var(--black); }
.hd-facts li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 10px; border-radius: 50%; background: var(--gold-deep); }
.hd-botwin { border-radius: 18px; overflow: hidden; background: var(--ink); color: var(--light); font-size: 15px; box-shadow: 0 30px 60px -34px rgba(15,15,16,.6); }
.hd-botwin .hd-msgs { justify-content: flex-start; height: 340px; padding: 18px; overflow-y: auto; }
.hd-botwin .hd-msgs::before { content: ""; margin-top: auto; }
.hd-botwin .hd-msg { white-space: pre-wrap; overflow-wrap: anywhere; }
.hd-botwin .hd-msg a { color: inherit; text-decoration: underline; }
.hd-botwin .hd-chat-top { padding: 14px 18px; }
.hd-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 10px; align-self: flex-start; max-width: 88%; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--light); font-size: 13.5px; line-height: 1.3; }
.hd-card img { grid-row: 1 / 3; width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.hd-card b { align-self: end; }
.hd-card span { color: var(--muted); }
.hd-end { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.hd-end button { flex: none; min-height: 38px; padding: 0 14px; border: 1px solid #3d3d44; border-radius: 10px; background: none; color: var(--light); font: inherit; font-weight: 700; cursor: pointer; }
.hd-end button:hover { border-color: var(--light); }
.hd-end[hidden], .hd-err[hidden], .hd-form[hidden], .hd-hints[hidden] { display: none; }
.hd-err { margin: 0; padding: 8px 18px; color: #ff9d8a; font-size: 13.5px; }
.hd-form { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 10px 10px 18px; border-top: 1px solid var(--line); }
.hd-form input { flex: 1; min-width: 0; min-height: 40px; border: 0; outline: 0; background: none; color: var(--light); font: inherit; font-size: 16px; }
.hd-form input::placeholder { color: var(--dim); }
.hd-form button { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--light); color: var(--black); cursor: pointer; }
.hd-form button[disabled] { opacity: .4; cursor: default; }
.hd-hint[disabled] { opacity: .55; cursor: default; }

/* ---------- Что важно знать ---------- */
.hd-know { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: 0 0 88px; }
.hd-know div { padding: 22px 0; border-top: 1px solid var(--cream-line); }
.hd-know div:last-child { grid-column: 1 / -1; }
.hd-know dt { font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--black); }
.hd-know dd { margin: 6px 0 0; font-size: 16.5px; color: var(--cream-text); }
.hd-faq h3 { margin: 0 0 12px; font-size: 26px; letter-spacing: -.02em; color: var(--black); }
.hd-faq-more { margin: 22px 0 0; font-weight: 700; }

.hd-know a { font-weight: 700; color: var(--black); text-decoration: underline; }

/* ---------- Тарифы ---------- */
.hd-price-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 44px; }
.hd-price-head h2 { margin: 0; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -.035em; }
.hd-price-head p { margin: 14px 0 0; font-size: 18px; color: var(--muted); }
.hd-period { display: inline-flex; flex: none; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--black); }
.hd-period button { padding: 10px 20px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer; }
.hd-period button small { margin-left: 8px; color: var(--gold); font-size: 12px; font-weight: 800; }
.hd-period .on { background: var(--light); color: var(--black); }
.hd-period .on small { color: var(--gold-deep); }
.hd-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.hd-plan { padding: 28px 22px 24px; border-radius: 20px; }
.hd-plan h3 { font-size: 21px; }
.hd-plan .plan-for { min-height: 64px; font-size: 14px; }
.hd-plan .plan-price b { font-size: 46px; }
.hd-plan ul { margin: 20px 0 24px; padding-top: 18px; gap: 9px; }
.hd-plan li { font-size: 14px; }
.hd-plan .btn { width: 100%; justify-content: center; min-height: 46px; font-size: 15px; }
.hd-plan .plan-badge { left: 22px; }
.hd-plans .plan-hit { translate: none; }
.hd-plans-note { margin: 20px 0 0; font-size: 15px; color: var(--muted); }
.hd-plans-note a { color: var(--gold); }

/* ---------- Телефон и планшет ---------- */
@media (max-width: 1100px) {
  .hd-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hd-scene { max-width: 680px; }
  .hd-day { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .hd-day::before { display: none; }
  .hd-bot { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ask" "chat" "facts"; gap: 24px; }
  .hd-facts { margin-top: 8px; }
  .hd-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hd-hero { padding: 48px 0 84px; }
  .hd-head { margin-bottom: 36px; }
  .hd-loss-label { display: none; }
  .hd-loss li { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 20px 0; }
  .hd-loss p { padding-left: 14px; border-left: 2px solid var(--gold-deep); font-size: 16.5px; }
  .hd-know { grid-template-columns: minmax(0, 1fr); margin-bottom: 56px; }
  .hd-plans { grid-template-columns: minmax(0, 1fr); }
  .hd-price-head { display: block; }
  .hd-period { margin-top: 24px; }
  .hd-end { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .hd-scene { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hd-wire { display: none; }
  .hd-chat { margin-top: 0; min-height: 250px; }
  .hd-day { grid-template-columns: minmax(0, 1fr); }
  .hd-loss b { font-size: 19px; }
  .hd-plans .plan-for { min-height: 0; }
  .hd-plans .plan-price { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hd-msg, .hd-stock { transition: none; }
  .hd-dots i { animation: none; }
}
