/* ==========================================================================
   Triumph Auto — React homepage. A spacious, tile-driven landing layout.
   Theme-adaptive: all colours come from main.css tokens (light + dark).
   ========================================================================== */

.home-boot {
  padding: 6rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}

.hp {
  width: min(1340px, calc(100% - 3rem));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.hp-section { padding-top: clamp(3rem, 7vw, 6.5rem); }

/* ---- shared heading block ---- */
.hp-head { max-width: 820px; margin-bottom: clamp(1.7rem, 3vw, 2.8rem); }
.hp-kicker {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.hp-h2 {
  margin: 0;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.hp-lead {
  margin: 1rem 0 0;
  max-width: 760px;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.55;
  color: var(--muted);
}

/* ---- buttons ---- */
.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  padding: 0 1.7rem;
  border: 0;
  border-radius: 15px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.hp-btn--primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 16px 32px -14px rgba(216, 31, 38, 0.7);
}
.hp-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -14px rgba(216, 31, 38, 0.8); }
.hp-btn--ghost {
  background: var(--card);
  color: var(--text);
  border: 1.5px solid var(--line);
}
.hp-btn--ghost:hover { transform: translateY(-2px); border-color: var(--red); }
.hp-btn--light {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.34);
}
.hp-btn--light:hover { background: rgba(255, 255, 255, 0.26); }
.hp-btn--white {
  background: #fff;
  color: var(--red-dark);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.55);
}
.hp-btn--white:hover { transform: translateY(-2px); }

/* ---- generic photo placeholder ---- */
.hp-ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(216, 31, 38, 0.22), transparent 55%),
    linear-gradient(150deg, var(--card), var(--bg));
  color: var(--muted);
}
.hp-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-ph__label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.hp-ph__icon { width: 16px; height: 16px; color: var(--red); }

/* ============================ hero — one wide cinematic composition ====== */
.hp-herobox {
  position: relative;
  padding-top: 0;
  margin-top: clamp(1rem, 2.4vw, 2.2rem);
}
/* ambient glow around the card so it doesn't sit alone */
.hp-herobox::before,
.hp-herobox::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(92px);
  pointer-events: none;
}
.hp-herobox::before {
  left: -7%;
  top: 6%;
  width: 44%;
  height: 74%;
  background: radial-gradient(circle, rgba(239, 28, 37, 0.34), transparent 70%);
}
.hp-herobox::after {
  right: -7%;
  bottom: 1%;
  width: 46%;
  height: 72%;
  background: radial-gradient(circle, rgba(86, 112, 156, 0.3), transparent 70%);
}
.hp-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: clamp(540px, 50vw, 640px);
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 50px 100px -50px rgba(8, 10, 16, 0.6);
}
/* layer 1 — colour-graded photo slider (cross-fade), kept readable */
.hp-hero__photos {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hp-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  filter: saturate(0.92) brightness(0.9) contrast(1.03);
  opacity: 0;
  transform: scale(1.055);
  transition: opacity 1s ease, transform 1.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.hp-hero__photo.is-active { opacity: 1; transform: scale(1); }
/* layer 2 — left-dense gradient + soft red glow + light vignette */
.hp-hero__grade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 52% 48% at 84% 104%, rgba(239, 28, 37, 0.32), transparent 66%),
    radial-gradient(ellipse 134% 124% at 50% 42%, transparent 56%, rgba(6, 9, 14, 0.48) 100%),
    linear-gradient(90deg, rgba(8, 12, 18, 0.96) 0%, rgba(8, 12, 18, 0.86) 32%,
      rgba(8, 12, 18, 0.5) 58%, rgba(8, 12, 18, 0.2) 100%);
}
/* layer 3 — text in a calm controlled zone */
.hp-hero__inner {
  position: relative;
  z-index: 2;
  width: clamp(430px, 47%, 620px);
  padding: clamp(2rem, 4vw, 4rem);
}
.hp-btn--glass {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hp-btn--glass:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-2px); }
.hp-hero__ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  transition: color 0.16s ease, gap 0.16s ease;
}
.hp-hero__ghost:hover { color: #ffffff; gap: 10px; }
.hp-hero__logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  margin-bottom: 1.3rem;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hp-hero__logo b { color: #ffffff; font-weight: 800; }
.hp-hero__logo i { color: #ff5a4e; font-style: normal; }
.hp-hero__title {
  margin: 0;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(2.2rem, 4.8vw, 3.5rem);
  line-height: 1.07;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #ffffff;
}
.hp-hero__title em {
  font-style: normal;
  background: linear-gradient(116deg, #ff7a52, #ff3b3b 55%, #ff5a4e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hp-hero__sub {
  margin: 1.15rem 0 0;
  max-width: 480px;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}
.hp-hero__list {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.hp-hero__list li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}
.hp-hero__list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.18em;
  width: 7px;
  height: 12px;
  border-right: 2.6px solid #ff5a4e;
  border-bottom: 2.6px solid #ff5a4e;
  transform: rotate(45deg);
}
.hp-hero__actions {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.hp-hero__stats {
  margin-top: 1.85rem;
  padding-top: 1.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 1.9rem;
}
.hp-hero__stat b {
  display: block;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
}
.hp-hero__stat span { font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); }

/* hero photo switcher — glassy iOS-style pill (like the stats lot slider), vertical */
.hp-hero__switch {
  position: absolute;
  z-index: 3;
  right: clamp(0.9rem, 1.7vw, 1.8rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 7px;
  border-radius: 999px;
  background: rgba(20, 22, 28, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.55);
}
.hp-hero__dot {
  position: relative;
  overflow: hidden;
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.36s cubic-bezier(0.22, 0.61, 0.36, 1),
    height 0.36s cubic-bezier(0.22, 0.61, 0.36, 1), background 0.3s ease;
}
.hp-hero__dot span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hp-hero__dot:hover { background: rgba(255, 255, 255, 0.8); }
.hp-hero__dot.is-active {
  height: 22px;
  background: rgba(255, 255, 255, 0.34);
}
/* timer fill — the active dot fills top-to-bottom before the slide switches.
   Uses transform (GPU-composited) so the fill is perfectly smooth. */
.hp-hero__dot.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  transform: scaleY(0);
  transform-origin: top center;
  animation: hp-dot-fill-v 5500ms linear forwards;
}
@keyframes hp-dot-fill-v {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@keyframes hp-dot-fill-h {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* hero trust badge — 2GIS logo + rating (restored design) */
.hp-hero__trust {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.3rem;
  padding: 0.6rem 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hp-hero__trust-logo {
  display: block;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
}
.hp-hero__trust-logo svg { display: block; width: 100%; height: 100%; }
.hp-hero__trust-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hp-hero__trust-badge {
  display: inline-flex;
  align-items: center;
  width: -moz-fit-content;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: #000000;
  line-height: 0;
}
.hp-hero__trust-badge svg { display: block; width: 58px; height: 13px; }
.hp-hero__trust-rate {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.hp-hero__trust-rate b {
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}
.hp-hero__trust-stars {
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: #ffc53d;
}
.hp-hero__trust-count {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.62);
}

/* ============================== feature tiles (with custom 3D icons) ===== */
.hp-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}
.hp-feature {
  display: flex;
  flex-direction: column;
  padding: 2.2rem 2rem;
  border-radius: 24px;
  background: color-mix(in srgb, var(--card) 70%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.hp-feature:hover {
  transform: translateY(-6px);
  border-color: rgba(216, 31, 38, 0.34);
  box-shadow: 0 28px 50px -26px rgba(17, 24, 39, 0.42);
}
.hp-feature__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.7rem;
}
.hp-feature__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(216, 31, 38, 0.16), rgba(216, 31, 38, 0.03));
  border: 1px solid var(--line);
  color: var(--red);
}
.hp-feature__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.hp-feature__go:hover {
  background: var(--red);
  color: #fff;
  transform: translate(2px, -2px);
}
.hp-feature__go svg { width: 22px; height: 22px; }
.hp-feature__ic svg { width: 40px; height: 40px; }
/* user-supplied 3D icons are self-contained — drop the flat tile around them */
.hp-feature__ic:has(.hp-feature__img) {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: none;
}
.hp-feature__img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 14px 20px rgba(17, 24, 39, 0.22));
}
.hp-feature h3 {
  margin: 0 0 0.62rem;
  font-size: 1.34rem;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}
.hp-feature p {
  margin: 0;
  flex: 1;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
}
.hp-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 19px;
  background: linear-gradient(140deg, rgba(216, 31, 38, 0.18), rgba(216, 31, 38, 0.05));
  color: var(--red);
}
.hp-tile-icon svg { width: 32px; height: 32px; }

/* ============================================ guide tile =============== */
.hp-guide {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 4vw, 3rem);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.hp-guide:hover { transform: translateY(-6px); border-color: rgba(216, 31, 38, 0.32); }
.hp-guide__art {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(96px, 14vw, 150px);
  height: clamp(96px, 14vw, 150px);
  border-radius: 28px;
  background: linear-gradient(150deg, rgba(216, 31, 38, 0.14), rgba(216, 31, 38, 0.04));
}
.hp-guide__badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--red);
  color: #fff;
}
.hp-guide__badge svg { width: 32px; height: 32px; }
.hp-guide__body { flex: 1 1 auto; }
.hp-guide__title {
  display: block;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hp-guide__list {
  margin: 1rem 0 1.4rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.hp-guide__list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--muted);
}
.hp-guide__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}
.hp-guide__cta { pointer-events: none; }

/* ============================================ process steps ============ */
.hp-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; }
.hp-step {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.7rem 1.4rem;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hp-step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--red), var(--red-dark));
  color: #fff;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 12px 24px -10px rgba(216, 31, 38, 0.7);
}
.hp-step h3 { margin: 0; font-size: 1.06rem; font-weight: 700; color: var(--text); }
.hp-step p { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--muted); }

/* ============================================ why-us =================== */
.hp-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.hp-why__card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.8rem 1.6rem;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.hp-why__card:hover { transform: translateY(-6px); border-color: rgba(216, 31, 38, 0.32); }
.hp-why__card h3 { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.hp-why__card p { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--muted); }

/* ============================================ faq accordion ============ */
.hp-faq { display: grid; gap: 0.8rem; }
.hp-faq__item {
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 0 1.7rem;
  transition: border-color 0.18s ease;
}
.hp-faq__item.is-open { border-color: rgba(216, 31, 38, 0.34); }
.hp-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  width: 100%;
  padding: 1.45rem 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.hp-faq__sign {
  flex: 0 0 auto;
  width: 11px; height: 11px;
  border-right: 2.6px solid var(--red);
  border-bottom: 2.6px solid var(--red);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s ease;
}
.hp-faq__item.is-open .hp-faq__sign { transform: translateY(2px) rotate(-135deg); }
.hp-faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.hp-faq__item.is-open .hp-faq__a { max-height: 320px; }
.hp-faq__a p {
  margin: 0;
  padding: 0 0 1.45rem;
  max-width: 880px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ============================================ lead CTA ================= */
.hp-cta {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.2rem;
  align-items: center;
  padding: clamp(1.7rem, 4vw, 3.2rem);
  border-radius: 32px;
  background:
    radial-gradient(circle at 86% 6%, rgba(255, 255, 255, 0.2), transparent 48%),
    linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 40px 70px -34px rgba(216, 31, 38, 0.62);
}
.hp-cta h2 {
  margin: 0;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hp-cta p { margin: 0.8rem 0 1.4rem; max-width: 460px; font-size: 1.04rem; line-height: 1.55; color: rgba(255, 255, 255, 0.9); }
.hp-cta__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hp-cta__methods { display: grid; gap: 0.7rem; }
.hp-method {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.95rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease;
}
.hp-method:hover { transform: translateX(4px); background: rgba(255, 255, 255, 0.2); }
.hp-method__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.hp-method__ic svg { width: 22px; height: 22px; }
.hp-method b { display: block; font-size: 1rem; color: #fff; }
.hp-method span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.72); }

/* ============================================ footer =================== */
.hp-foot {
  margin-top: clamp(3rem, 6vw, 5.5rem);
  background: #14161c;
  color: rgba(255, 255, 255, 0.7);
}
.hp-foot__in {
  width: min(1340px, calc(100% - 3rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 2.4rem;
  padding: 3rem 0 2.4rem;
}
.hp-foot__logo {
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.hp-foot__brand p { margin: 0.8rem 0 0; max-width: 380px; font-size: 0.93rem; line-height: 1.6; }
.hp-foot__brand .hp-foot__legal { margin-top: 1rem; font-size: 0.82rem; opacity: 0.66; }
.hp-foot__col { display: flex; flex-direction: column; gap: 0.6rem; }
.hp-foot__col b {
  margin-bottom: 0.25rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.hp-foot a { font-size: 0.94rem; color: rgba(255, 255, 255, 0.72); text-decoration: none; transition: color 0.15s ease; }
.hp-foot a:hover { color: #fff; }
.hp-foot__bottom {
  width: min(1340px, calc(100% - 3rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ============================================ animation =============== */
.hp-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.hp-reveal.is-in { opacity: 1; transform: translateY(0); }

/* ============================================ responsive ============== */
@media (max-width: 1080px) {
  .hp-features, .hp-why { grid-template-columns: repeat(2, 1fr); }
  .hp-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .hp-cta { grid-template-columns: 1fr; }
  .hp-guide { flex-direction: column; align-items: flex-start; text-align: left; }
  .hp-hero__inner { width: clamp(360px, 64%, 560px); }
  .hp-foot__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  /* the text zone now covers the full card — darken the overlay evenly */
  .hp-hero { min-height: clamp(480px, 118vw, 600px); }
  .hp-hero__inner { width: 100%; }
  .hp-hero__photo { object-position: 64% center; }
  .hp-hero__grade {
    background:
      radial-gradient(ellipse 60% 44% at 84% 104%, rgba(239, 28, 37, 0.3), transparent 66%),
      linear-gradient(180deg, rgba(8, 12, 18, 0.62) 0%, rgba(8, 12, 18, 0.82) 58%,
        rgba(8, 12, 18, 0.95) 100%);
  }
  .hp-hero__stats { flex-wrap: wrap; gap: 1.1rem 1.6rem; }
  /* photo switcher moves to a horizontal row at the bottom */
  .hp-hero__switch {
    right: auto;
    left: 50%;
    top: auto;
    bottom: 0.9rem;
    transform: translateX(-50%);
    flex-direction: row;
    padding: 7px 10px;
  }
  .hp-hero__dot { width: 7px; height: 7px; }
  .hp-hero__dot.is-active { width: 22px; height: 7px; }
  .hp-hero__dot.is-active::after {
    transform: scaleX(0);
    transform-origin: left center;
    animation-name: hp-dot-fill-h;
  }
  .hp-hero__trust { margin-top: 1.1rem; }
}
@media (max-width: 600px) {
  .hp { width: calc(100% - 2rem); }
  .hp-features, .hp-why, .hp-steps { grid-template-columns: 1fr; }
  .hp-foot__in { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* ======================================================================
   Bento grid — 3D objects on coloured cards (Yandex-360 style)
   Art at TOP, text at BOTTOM (t1/t3/t4/t6/t7).
   Text at TOP, art at BOTTOM-RIGHT (t2).
   ====================================================================== */
.bento {
  display: grid;
  grid-template-columns: 444fr 215fr 214fr 445fr;
  grid-template-rows: repeat(3, 350px);
  grid-auto-rows: 350px;
  gap: 16px;
  grid-template-areas:
    "t1 t3 t3 t4"
    "t1 t6 t6 t7"
    "t2 t2 t2 t2";
}
.bento-tile--t1 { grid-area: t1; }
.bento-tile--t2 { grid-area: t2; }
.bento-tile--t3 { grid-area: t3; }
.bento-tile--t4 { grid-area: t4; }
.bento-tile--t6 { grid-area: t6; }
.bento-tile--t7 { grid-area: t7; }

/* ---- base tile: flex-column, art on top, body at bottom ---- */
.bento-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s ease;
}
.bento-tile:hover { transform: translateY(-5px); box-shadow: 0 26px 46px -26px rgba(17, 24, 39, 0.4); }
.bento-tile:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

#tools {
  width: min(1366px, calc(100vw - 3rem));
  align-self: center;
}

/* ---- tone palettes ---- */
.bento-tile--dark {
  background: radial-gradient(110% 110% at 80% 115%, rgba(216, 31, 38, 0.45), transparent 55%), #252830;
  color: #fff;
}
.bento-tile--peach { background: #ffe9e1; }
.bento-tile--grey  { background: #eef0f3; }
.bento-tile--light { background: linear-gradient(150deg, #ffffff, #f4f6f9); border: 1px solid var(--line); }
[data-theme="dark"] .bento-tile--peach { background: #3a2522; }
[data-theme="dark"] .bento-tile--grey  { background: #222428; }
[data-theme="dark"] .bento-tile--light { background: #1c1e23; border-color: var(--card-border); }
.bento-tile:not(.bento-tile--t1) {
  background: linear-gradient(180deg, #ffffff 0%, #f6f7fa 100%);
  border: 1px solid var(--line);
}
[data-theme="dark"] .bento-tile:not(.bento-tile--t1) {
  background: linear-gradient(180deg, rgba(34, 35, 40, 0.96) 0%, rgba(26, 28, 33, 0.96) 100%);
  border-color: var(--card-border);
}
[data-theme="dark"] .bento-tile:not(.bento-tile--t1) .bento-tile__title { color: var(--text); }
[data-theme="dark"] .bento-tile:not(.bento-tile--t1) .bento-tile__desc { color: var(--muted); }

/* ---- art area: flex:1 — takes all remaining height (sits at TOP) ---- */
.bento-tile__art {
  order: 1;
  flex: 1;
  min-height: 0;            /* critical so flex child can shrink */
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 48px 40px 0;
}

/* ---- image: fully visible, contained, no clipping ---- */
.bento-tile__img {
  display: block;
  width: min(var(--bento-img-w, 160px), 100%);
  max-width: 100%;
  max-height: var(--bento-img-h, 145px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(17, 24, 39, 0.2));
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.bento-tile:hover .bento-tile__img { transform: scale(1.05) rotate(-1.2deg); }

/* ---- text block: fixed height at BOTTOM ---- */
.bento-tile__body {
  order: 2;
  flex-shrink: 0;
  margin-top: auto;
  padding: 0 40px 36px;
}
.bento-tile__title {
  display: block;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(1.4rem, 1.9vw, 1.85rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--text);
}
.bento-tile--dark .bento-tile__title { color: #fff; }
.bento-tile__desc {
  display: block;
  margin-top: 0.55rem;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--muted);
}
.bento-tile--dark .bento-tile__desc { color: rgba(255, 255, 255, 0.7); }

/* ---- T1 hero: keep the source file's full-height left composition ---- */
.bento-tile--t1 .bento-tile__art {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  padding: 0;
  pointer-events: none;
}
.bento-tile--t1 .bento-tile__img {
  position: absolute;
  left: -6px;
  top: 3%;
  width: auto;
  height: 88%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: left top;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.44));
}
.bento-tile--t1 .bento-tile__body  {
  position: relative;
  z-index: 2;
  padding: 0 40px 40px;
}
.bento-tile--t1 .bento-tile__title { font-size: clamp(1.65rem, 2.25vw, 2rem); }

.bento-tile--t3 .bento-tile__img,
.bento-tile--t4 .bento-tile__img,
.bento-tile--t6 .bento-tile__img {
  width: auto;
  height: 188px;
  max-width: 88%;
  max-height: 188px;
}
.bento-tile--t7 .bento-tile__img {
  width: auto;
  height: 188px;
  max-width: 88%;
  max-height: 188px;
}
.bento-tile--t3 .bento-tile__art,
.bento-tile--t4 .bento-tile__art,
.bento-tile--t6 .bento-tile__art,
.bento-tile--t7 .bento-tile__art {
  align-items: center;
  justify-content: center;
  padding: 32px 24px 12px;
}

/* ---- Wide tile T2: text TOP, image BOTTOM-RIGHT ----
   CSS order flips body to the top without changing DOM.         */
.bento-tile--t2 .bento-tile__body {
  order: 1;
  margin-top: 0;
  padding: 38px 40px 0;
}
.bento-tile--t2 .bento-tile__art {
  order: 2;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 28px 0 40px;
  padding-right: 16px;
}
.bento-tile--t2 .bento-tile__img {
  transform-origin: bottom right;
  --bento-img-w: 520px;
  --bento-img-h: 245px;
}
.bento-tile--t2 .bento-tile__title { font-size: clamp(1.45rem, 2vw, 1.85rem); }

/* ---- corner arrow ---- */
.bento-tile__go {
  position: absolute;
  z-index: 4;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(127, 127, 127, 0.14);
  color: currentColor;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.24s ease, transform 0.24s ease, background 0.24s ease;
}
.bento-tile--dark .bento-tile__go { background: rgba(255, 255, 255, 0.14); color: #fff; }
.bento-tile__go svg { width: 17px; height: 17px; }
.bento-tile:hover .bento-tile__go {
  opacity: 1;
  transform: none;
  background: var(--red);
  color: #fff;
}
/* ======================================================================
   Showcase carousel — Edge-style coverflow in the brand red
   ====================================================================== */
.hp-show { display: flex; flex-direction: column; align-items: center; }

.hp-show__stage {
  position: relative;
  width: 100%;
  min-height: clamp(260px, 38vw, 520px);
  overflow: hidden;
  perspective: 1500px;
  touch-action: pan-y;
  transition: height 0.4s ease;
}

.hp-show__card {
  position: absolute;
  top: 18px;
  left: 50%;
  width: min(540px, 86vw);
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -32px rgba(15, 17, 21, 0.45);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
  will-change: transform, opacity;
  cursor: pointer;
}
.hp-show__card--banner {
  top: 0;
  width: min(860px, 88vw);
  border-radius: 18px;
}
.hp-show__card.is-active { cursor: default; }
.hp-show__card.is-active {
  box-shadow: 0 38px 90px -34px rgba(216, 31, 38, 0.55);
  border-color: rgba(216, 31, 38, 0.35);
}

.hp-show__media {
  position: relative;
  height: 248px;
  margin: 14px 14px 0;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  overflow: hidden;
}
.hp-show__media--banner {
  height: auto;
  margin: 0;
  aspect-ratio: 1672 / 941;
  border-radius: inherit;
  background: #eef4fb;
}
.hp-show__media--panel {
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 120% at 80% 10%, rgba(216, 31, 38, 0.24), transparent 60%),
    linear-gradient(135deg, #1c1e24, #111316);
}
.hp-show__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  display: block;
}
.hp-show__media--panel .hp-show__img {
  width: auto;
  height: 118%;
  object-fit: contain;
  transform: translateY(2%);
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.45));
}
.hp-show__media--banner .hp-show__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
  filter: none;
}
.hp-show__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 17, 21, 0.6);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.02em;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hp-show__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.85);
}
.hp-show__ph .hp-ph__icon svg { width: 46px; height: 46px; }

.hp-show__body {
  padding: 22px 30px 30px;
  text-align: center;
  opacity: 1;
  transition: opacity 0.4s ease 0.05s;
}
.hp-show__card--banner .hp-show__body {
  padding: 14px 18px 18px;
}
.hp-show__card--banner .hp-show__title,
.hp-show__card--banner .hp-show__text,
.hp-show__card--banner .hp-show__chips {
  display: none;
}
.hp-show__card--banner .hp-show__cta { margin-top: 0; }
.hp-show__card.is-active .hp-show__body { opacity: 1; }

.hp-show__title {
  margin: 0;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.62rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text);
}
.hp-show__title-main { color: var(--text); }
.hp-show__title-sub {
  color: var(--muted);
  font-weight: 600;
}
.hp-show__text {
  margin: 12px auto 0;
  max-width: 40ch;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--muted);
}
.hp-show__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.hp-show__chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 86%, transparent);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
}
.hp-show__cta { margin-top: 20px; }

/* nav under the tile: dots, then arrows */
.hp-show__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
}
.hp-show__dots { display: flex; gap: 10px; }
.hp-show__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.hp-show__dot span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.hp-show__dot.is-active {
  width: 26px;
  border-radius: 6px;
  background: var(--red);
}

.hp-show__arrows { display: flex; gap: 0.9rem; }
.hp-show__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 16px 32px -16px rgba(216, 31, 38, 0.75);
  transition: transform 0.15s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.hp-show__arrow svg { width: 22px; height: 22px; }
.hp-show__arrow:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -16px rgba(216, 31, 38, 0.85); }
.hp-show__arrow:active { transform: translateY(0); }

@media (max-width: 560px) {
  .hp-show__stage { min-height: 260px; }
  .hp-show__card { width: 92%; border-radius: 20px; }
  .hp-show__card--banner { width: 96%; border-radius: 14px; }
  .hp-show__media { height: 218px; border-radius: 16px; }
  .hp-show__media--banner { height: auto; border-radius: inherit; }
  .hp-show__body { padding: 20px 22px 26px; }
  .hp-show__arrow { width: 52px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-show__card { transition: opacity 0.3s ease; }
}

/* ======================================================================
   Bento / scene responsiveness + reduced motion
   ====================================================================== */
@media (max-width: 900px) {
  #tools { width: calc(100vw - 3rem); }
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-auto-rows: 300px;
    grid-template-areas:
      "t1 t1"
      "t1 t1"
      "t3 t4"
      "t6 t7"
      "t2 t2";
  }
  .bento-tile__body { padding-inline: 32px; }
  .bento-tile__art { padding-inline: 32px; }
}
@media (max-width: 560px) {
  #tools { width: calc(100vw - 2rem); }
  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: auto;
    grid-template-areas: "t1" "t3" "t4" "t6" "t7" "t2";
  }
  .bento-tile { min-height: 315px; }
  .bento-tile--t1 { min-height: 560px; }
  .bento-tile--t2 { min-height: 340px; }
  .bento-tile__body { padding: 0 28px 30px; }
  .bento-tile__art { padding: 38px 28px 0; }
  .bento-tile--t2 .bento-tile__body { padding: 32px 28px 0; }
  .bento-tile--t2 .bento-tile__art { padding: 0 20px 0 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .bento-tile, .bento-tile__img, .bento-tile__go {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ======================================================================
   User guide page (/guide) — reuses homepage tokens & layout
   ====================================================================== */
.guide { padding-bottom: clamp(3rem, 8vw, 6rem); }
.guide-hero { max-width: 820px; }
.guide-hero .hp-h2 { margin-top: 0.7rem; }
.guide-hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

.guide-card { position: relative; text-decoration: none; }
.guide-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.4rem;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 800;
}
.guide-card__go {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--red);
}

.guide-prose { max-width: 820px; }
.guide-prose h3 {
  margin: 2rem 0 0.6rem;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}
.guide-prose h3:first-child { margin-top: 0; }
.guide-prose p { margin: 0.6rem 0; font-size: 1rem; line-height: 1.65; color: var(--muted); }
.guide-prose ul { margin: 0.6rem 0; padding-left: 1.3rem; }
.guide-prose li { margin: 0.45rem 0; font-size: 1rem; line-height: 1.6; color: var(--muted); }
.guide-prose b { color: var(--text); }
.guide-note {
  margin-top: 1.6rem !important;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(216, 31, 38, 0.28);
  background: rgba(216, 31, 38, 0.07);
  color: var(--text) !important;
}

.guide-grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.guide-grade {
  padding: 1.3rem 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
.guide-grade b {
  display: block;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--red);
}
.guide-grade span { display: block; margin-top: 0.4rem; font-size: 0.92rem; line-height: 1.45; color: var(--muted); }

.guide-faq { display: grid; gap: 0.8rem; max-width: 880px; }
.guide-faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
}
.guide-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after {
  content: "+";
  color: var(--red);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
}
.guide-faq details[open] summary::after { content: "\2013"; }
.guide-faq details[open] { border-color: rgba(216, 31, 38, 0.34); }
.guide-faq details p { margin: 0; padding: 0 1.3rem 1.2rem; font-size: 0.98rem; line-height: 1.6; color: var(--muted); }

.guide-final { text-align: center; }
.guide-final .hp-lead { margin-left: auto; margin-right: auto; }
.guide-final .guide-hero__actions { justify-content: center; }

@media (max-width: 880px) {
  .guide-grades { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .guide-grades { grid-template-columns: 1fr; }
}
