/* =========================================================
   KEYSHOP — главная (упрощённая)
   ========================================================= */
.section-sm { padding-top: 56px; }
@media (max-width: 760px) { .section-sm { padding-top: 40px; } }
.block-title { margin-bottom: 20px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 28px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; }
.hero__title { font-size: clamp(32px, 5vw, 64px); line-height: 1.02; letter-spacing: -.045em; font-weight: 750; text-wrap: balance; }
.hero__title .mark { padding: 0 .1em; }
.hero__lead { margin-top: 14px; font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); max-width: 560px; }

.hero-search { position: relative; margin-top: 24px; max-width: 620px; }
.hero-search input {
  width: 100%; height: 60px; padding: 0 52px 0 54px; border-radius: 18px;
  background: var(--bg-elev); border: 1.5px solid var(--line-strong); outline: 0; font-size: 17px;
  box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s;
}
.hero-search input::placeholder { color: var(--muted); }
.hero-search input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent); }
.hero-search input::-webkit-search-cancel-button { display: none; }
.hero-search__ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; display: flex; }
.hero-search__ico svg { width: 22px; height: 22px; }
.hero-search__clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.hero-search__clear:hover { background: var(--bg-sunk); color: var(--ink); }
.hero-search__clear svg { width: 18px; height: 18px; }

.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-chip { height: 40px; }
.hero-chip:hover { border-color: var(--ink); }
.hero-chip__dot { width: 14px; height: 14px; border-radius: 5px; background: linear-gradient(135deg, var(--c1), var(--c2)); flex: none; }

.hero__art { position: relative; height: 320px; }
.hero-card { position: absolute; width: 72%; }
.hero-card .vis { box-shadow: var(--shadow-lg); }
.hero-card--1 { top: 0; left: 0; transform: rotate(-7deg); }
.hero-card--2 { top: 26%; right: 0; transform: rotate(5deg); }
.hero-card--3 { bottom: 0; left: 10%; transform: rotate(-2deg); }

@media (max-width: 900px) {
  .hero { padding: 24px 0 16px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__art { display: none; }
}
@media (max-width: 560px) {
  .hero-search input { height: 56px; font-size: 16px; border-radius: 16px; }
  .hero__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .hero__chips::-webkit-scrollbar { display: none; }
}

/* ---------- магазин: вкладки + сетка ---------- */
.shop { padding-top: 20px; scroll-margin-top: calc(var(--header-h) + 8px); }
.shop__tabs {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 20px;
  position: sticky; top: var(--header-h); z-index: 5; background: var(--bg); padding-top: 10px;
}
.shop__tabs::-webkit-scrollbar { display: none; }
.shop__tabs .chip { height: 42px; padding: 0 18px; font-size: 15px; }
.shop__status { margin: -6px 0 18px; color: var(--ink-2); font-size: 15px; }
.shop__status a { text-decoration: underline; text-underline-offset: 3px; }
.shop__more { display: flex; justify-content: center; margin-top: 28px; }
@media (max-width: 560px) {
  .shop__tabs { margin-inline: -16px; padding-inline: 16px; }
  .shop__more .btn { width: 100%; }
}

/* ---------- доверие ---------- */
.trust {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 56px;
  padding: 18px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line);
}
.trust li { display: flex; align-items: center; gap: 12px; }
.trust__ico { width: 42px; height: 42px; border-radius: 13px; flex: none; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.trust__ico svg { width: 20px; height: 20px; }
.trust b { display: block; font-size: 15px; font-weight: 650; }
.trust div span { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 400px) { .trust { grid-template-columns: minmax(0, 1fr); margin-top: 40px; } }

/* ---------- как купить ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); }
.steps__n { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-weight: 700; }
.steps b { font-size: 17px; font-weight: 650; }
.steps p { color: var(--muted); font-size: 15px; margin-top: 2px; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 8px; } .steps li { padding: 16px; } }

/* ---------- отзывы ---------- */
.rating { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.rating svg { width: 18px; height: 18px; color: #f5b301; }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rv { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); }
.rv__top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.rv blockquote { font-size: 15px; line-height: 1.5; flex: 1; }
.rv figcaption { display: flex; align-items: center; gap: 10px; line-height: 1.25; }
.rv figcaption b { display: block; font-size: 14px; }
.rv figcaption small { font-size: 13px; color: var(--muted); }
.rv__ava { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--bg-sunk); font-weight: 700; font-size: 13px; }
.demo-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .reviews { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; }
.faq__item { border-radius: 18px; background: var(--bg-elev); border: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 18px 18px 20px; font-size: 16.5px; font-weight: 600; line-height: 1.35;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-sunk); flex: none; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); }
.faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__plus { background: var(--accent); color: var(--accent-ink); }
.faq__item[open] .faq__plus::after { display: none; }
.faq__item p { padding: 0 20px 18px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.faq__help { margin-top: 16px; color: var(--muted); font-size: 15px; }
.faq__help a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
