/* Headswap landing — extends grayscale.css (amber/teal duotone, dark) */

/* Own backdrop: the car dashboard instead of the skater, same duotone */
.hs-page .bg-photo {
  background-image: url('../headswap/img/in-car.jpg');
  background-position: center 60%;
  filter: blur(10px) saturate(0.8);
  transform: scale(1.08);
}
.hs-page .bg-overlay {
  background: linear-gradient(
    180deg,
    oklch(0.1 0.03 90 / 0.8) 0%,
    oklch(0.14 0.05 50 / 0.74) 45%,
    oklch(0.2 0.09 210 / 0.86) 100%
  );
}

.hs-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.hs-by {
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #cdc3ae;
}
.hs-by span { color: #f2e9d8; }

.hero .hs-eyebrow {
  display: inline-block;
  margin-bottom: 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: oklch(0.85 0.13 85);
  color: #2a2118;
  font-size: 14px;
  font-weight: 700;
}

.hero h1.hs-h1 { font-size: 56px; }

.hs-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}
.hero .hs-cta .btn {
  box-sizing: border-box;
  min-width: 230px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid transparent;
  text-decoration: none;
  height: 52px;
  padding-top: 0;
  padding-bottom: 0;
}
.hero .hs-cta .btn svg { display: block; flex-shrink: 0; }
.hero .hs-cta .btn-primary { border-color: oklch(0.85 0.13 85); }
.hero .hs-cta .btn-secondary { border-color: oklch(0.8 0.1 180); }
.hero .hs-cta .hs-btn-tg { border-color: #2aabee; color: #5cc0f5; }
a.btn.hs-btn-tg { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid #2aabee; color: #5cc0f5; text-decoration: none; }
a.btn.hs-btn-tg svg { display: block; flex-shrink: 0; }
@media (max-width: 520px) {
  .hero .hs-cta { flex-direction: column; align-items: center; }
  .hero .hs-cta .btn { width: 100%; max-width: 300px; }
}

.hs-shot { margin: 0 64px 40px 64px; }
.hs-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid rgba(255, 235, 200, 0.25);
}
.hs-shot figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 15px;
  color: #cdc3ae;
}

.panel h2.hs-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.25;
  color: #fbf3e4;
  margin: 0 0 18px 0;
}
.panel p + p { margin-top: 14px; }

.hs-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.hs-card {
  padding: 22px;
  border-radius: 18px;
  background: rgba(18, 14, 9, 0.55);
  border: 1px solid rgba(255, 235, 200, 0.2);
}
.hs-card.is-ours {
  position: relative;
  background: linear-gradient(160deg, oklch(0.88 0.13 85), oklch(0.78 0.14 70));
  border: 2px solid oklch(0.92 0.12 88);
  box-shadow: 0 0 0 4px oklch(0.85 0.13 85 / 0.18), 0 20px 50px -12px oklch(0.85 0.13 85 / 0.55);
  transform: translateY(-6px);
}
.hs-card.is-ours h3 { color: #2a2118; font-size: 17px; }
.panel .hs-card.is-ours p { color: #3a2e1f; font-weight: 500; }
.hs-card.is-ours .hs-kicker { color: #2a2118; font-weight: 700; }
.hs-card.is-ours::after {
  content: "Мой вариант";
  position: absolute;
  top: -12px;
  right: 16px;
  padding: 3px 10px;
  border-radius: 999px;
  background: oklch(0.8 0.1 180);
  color: #10201f;
  font-size: 12px;
  font-weight: 700;
}
.hs-card h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #fbf3e4;
}
.panel .hs-card p { font-size: 15px; line-height: 1.55; color: #e6dcc7; }
.hs-card .hs-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cdc3ae;
  margin-bottom: 8px;
}

.hs-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}
.hs-node {
  padding: 18px;
  border-radius: 18px;
  text-align: center;
  background: rgba(18, 14, 9, 0.55);
  border: 1px solid rgba(255, 235, 200, 0.2);
}
.hs-node.is-ours {
  background: oklch(0.85 0.13 85 / 0.16);
  border-color: oklch(0.85 0.13 85 / 0.7);
}
.hs-node b { display: block; font-family: 'Unbounded', sans-serif; font-size: 15px; }
.hs-node span { font-size: 14px; color: #e6dcc7; }
.hs-arrow { text-align: center; font-size: 13px; line-height: 1.3; color: #cdc3ae; }
.hs-arrow::before {
  content: "\27F7";
  display: block;
  font-size: 26px;
  color: oklch(0.85 0.1 180);
}

.hs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 32px;
}
.hs-list li {
  position: relative;
  padding: 8px 0 8px 34px;
  font-size: 17px;
  line-height: 1.5;
  color: #f6ecda;
}
.hs-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: oklch(0.8 0.1 180 / 0.2);
  color: oklch(0.85 0.1 180);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.hs-list.is-warn li::before {
  content: "!";
  background: oklch(0.85 0.13 85 / 0.2);
  color: oklch(0.85 0.13 85);
}

.hs-setup {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: center;
}
.hs-phone {
  width: 100%;
  border-radius: 30px;
  overflow: hidden;
  border: 6px solid #0a0806;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7);
}
.hs-phone img { display: block; width: 100%; height: auto; }
.hs-steps { margin: 0 0 18px 0; padding-left: 22px; }
.hs-steps li { padding: 4px 0; font-size: 17px; color: #f6ecda; }
.hs-note { font-size: 15px; color: #cdc3ae; }

.hs-faq details {
  border-top: 1px solid rgba(255, 235, 200, 0.18);
  padding: 16px 0;
}
.hs-faq details:last-child { border-bottom: 1px solid rgba(255, 235, 200, 0.18); }
.hs-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  color: #fbf3e4;
  list-style: none;
  padding-right: 28px;
  position: relative;
}
.hs-faq summary::-webkit-details-marker { display: none; }
.hs-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 22px;
  color: oklch(0.85 0.13 85);
}
.hs-faq details[open] summary::after { content: "\2212"; }
.panel .hs-faq p { margin-top: 10px; font-size: 16px; color: #e6dcc7; }

.hs-disclaimer { font-size: 13px; color: #a89e8a; }

@media (max-width: 900px) {
  .hs-shot { margin-left: 24px; margin-right: 24px; }
  .hero h1.hs-h1 { font-size: 36px; }
  .hs-cards, .hs-list { grid-template-columns: 1fr; }
  .hs-flow { grid-template-columns: 1fr; }
  .hs-arrow::before { transform: rotate(90deg); }
  .hs-setup { grid-template-columns: 1fr; }
  .hs-phone { max-width: 240px; margin: 0 auto; }
  .panel h2.hs-title { font-size: 22px; }
}

@media (max-width: 480px) {
  .hero h1.hs-h1 { font-size: 28px; }
  .hs-shot { margin-left: 16px; margin-right: 16px; }
  .panel { padding: 24px; }
}

.hs-accent { color: oklch(0.85 0.13 85); font-weight: 700; }

/* Download */
.hs-download {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.hs-meta { list-style: none; margin: 18px 0 0 0; padding: 0; }
.hs-meta li { padding: 6px 0; font-size: 16px; color: #f6ecda; border-top: 1px solid rgba(255, 235, 200, 0.12); }
.hs-meta li span {
  display: inline-block;
  min-width: 96px;
  color: #cdc3ae;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hs-hash { font-size: 12px; word-break: break-all; color: #e6dcc7; }
.hs-download-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hs-btn-big { font-size: 18px; padding: 18px 40px; box-shadow: 0 16px 40px -14px oklch(0.85 0.13 85 / 0.7); }
.hs-alt { font-size: 14px; color: oklch(0.85 0.1 180); text-decoration: underline; text-underline-offset: 2px; }
.panel h3.hs-sub {
  font-family: 'Unbounded', sans-serif;
  font-size: 16px;
  color: #fbf3e4;
  margin: 32px 0 12px 0;
}
@media (max-width: 900px) {
  .hs-download { grid-template-columns: 1fr; }
  .hs-download-cta { align-items: stretch; text-align: center; }
}

.panel a.btn { text-decoration: none; }
.panel a.btn-primary { color: #2a2118; }

.hs-by:hover span { color: oklch(0.85 0.13 85); text-decoration: underline; }

/* Disclaimer */
.hs-warning {
  margin-top: 32px;
  padding: 22px 24px;
  border-radius: 18px;
  background: oklch(0.6 0.15 40 / 0.16);
  border: 1px solid oklch(0.75 0.15 50 / 0.6);
}
.panel .hs-warning h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 16px;
  color: oklch(0.85 0.13 70);
  margin: 0 0 10px 0;
}
.panel .hs-warning p { font-size: 15px; line-height: 1.6; color: #f6ecda; }
.hs-warning ul { margin: 10px 0 12px 0; padding-left: 20px; }
.hs-warning li { font-size: 15px; line-height: 1.55; color: #f6ecda; padding: 2px 0; }

/* Mobile nav: wrap instead of overflowing the screen */
@media (max-width: 600px) {
  .hs-page .nav { flex-wrap: wrap; justify-content: center; gap: 10px 18px; font-size: 13px; }
  .hs-page .nav a { white-space: nowrap; }
}

/* Supported cars table */
.hs-table-wrap { overflow-x: auto; margin-top: 8px; }
.hs-table { width: 100%; border-collapse: collapse; font-size: 16px; color: #f6ecda; }
.hs-table th {
  text-align: left; padding: 10px 12px; font-size: 13px; font-weight: 600; color: #cdc3ae;
  text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid rgba(255, 235, 200, 0.25);
}
.hs-table td { padding: 12px; border-bottom: 1px solid rgba(255, 235, 200, 0.12); }
.hs-table td:last-child { font-weight: 700; color: oklch(0.85 0.13 85); white-space: nowrap; }
@media (max-width: 480px) { .hs-table { font-size: 14px; } .hs-table th, .hs-table td { padding: 10px 6px; } }
.hs-tnote { display: block; margin-top: 2px; font-size: 13px; color: #cdc3ae; }

/* Video (YouTube facade) */
.hs-video {
  position: relative;
  display: block;
  margin-top: 22px;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 235, 200, 0.25);
  background: #0a0806;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7);
}
.hs-video img, .hs-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.hs-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: oklch(0.68 0.2 38);
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease;
}
.hs-play::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 26px;
  border-style: solid;
  border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent #fff;
}
.hs-video:hover .hs-play { transform: scale(1.08); }
@media (max-width: 768px) {
  .hs-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .hs-play::after { left: 26px; top: 20px; border-width: 12px 0 12px 20px; }
}

/* Floating donate bar (ru page): hidden until scrolled past the first screen */
.hs-dbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 44px;
  padding: 0 16px;
  box-sizing: border-box;
  background: rgba(18, 14, 9, 0.92);
  border-bottom: 1px solid oklch(0.85 0.13 85 / 0.45);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s linear 0.25s;
}
.hs-dbar.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s;
}
.hs-dbar__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  color: #f6ecda;
}
.hs-dbar__short { display: none; }
.hs-dbar__btn {
  flex: 0 0 auto;
  padding: 6px 18px;
  border: 0;
  border-radius: 999px;
  background: oklch(0.85 0.13 85);
  color: #2a2118;
  cursor: pointer;
  font: inherit;
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.hs-dbar__btn:hover { opacity: 0.85; color: #2a2118; text-decoration: none; }
.hs-dbar__btn:focus-visible { outline: 2px solid oklch(0.85 0.13 85); outline-offset: 3px; }
@media (max-width: 479px) {
  .hs-dbar { height: 40px; gap: 10px; padding: 0 12px; }
  .hs-dbar__long { display: none; }
  .hs-dbar__short { display: inline; }
  .hs-dbar__text { font-size: 14px; }
  .hs-dbar__btn { padding: 5px 14px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-dbar, .hs-dbar.is-visible { transition: none; }
}
html { scroll-padding-top: 52px; }

/* Thank-you modal (donate bar button) */
.hs-thanks {
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
  padding: 0;
  border: 1px solid rgba(255, 235, 200, 0.25);
  border-radius: 24px;
  background: rgba(20, 16, 10, 0.96);
  color: #f6ecda;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.hs-thanks::backdrop {
  background: rgba(8, 6, 4, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hs-thanks__box { position: relative; padding: 28px; }
.hs-thanks__title {
  margin: 0 36px 16px 0;
  font-family: 'Unbounded', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #fbf3e4;
}
.hs-thanks p { margin: 0; font-size: 15px; line-height: 1.55; color: #e6dcc7; }
.hs-thanks p + p { margin-top: 10px; }
.hs-thanks__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}
.hs-thanks__num {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: oklch(0.85 0.13 85);
  white-space: nowrap;
}
.hs-thanks__copy {
  padding: 8px 18px;
  border: 0;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  min-width: 128px;
}
.hs-thanks .hs-thanks__fine { margin-top: 16px; font-size: 13px; color: #a89d88; }
.hs-thanks__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #cdc3ae;
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.hs-thanks__close:hover { color: #fbf3e4; background: rgba(255, 235, 200, 0.1); }
.hs-thanks__close:focus-visible,
.hs-thanks__copy:focus-visible { outline: 2px solid oklch(0.85 0.13 85); outline-offset: 3px; }
@media (max-width: 479px) {
  .hs-thanks { width: calc(100% - 32px); }
  .hs-thanks__box { padding: 24px 20px; }
  .hs-thanks__num { font-size: 20px; }
}

/* Changelog: last 2 versions, rest collapsed (JS adds .is-collapsed) */
.hs-changelog.is-collapsed li:nth-child(n+3) { display: none; }
.hs-more {
  display: flex; width: fit-content; align-items: center; gap: 10px;
  margin: 16px auto 0; padding: 10px 20px;
  background: rgba(255, 235, 200, 0.06);
  border: 1px solid rgba(255, 235, 200, 0.22);
  border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 600; color: #fbf3e4;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.hs-more::after {
  content: ""; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.hs-more[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.hs-more:hover { border-color: oklch(0.85 0.13 85); background: rgba(255, 235, 200, 0.1); color: oklch(0.85 0.13 85); }
.hs-more:focus-visible { outline: 2px solid oklch(0.85 0.13 85); outline-offset: 3px; }

/* Support page (/headswap/support/) */
.hs-sup-btn {
  height: 60px;
  min-width: 280px;
  padding: 0 36px;
  border: 0;
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 40px -14px oklch(0.85 0.13 85 / 0.8);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hs-sup-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 46px -12px oklch(0.85 0.13 85 / 0.9); }
.hs-sup-btn:focus-visible { outline: 2px solid oklch(0.85 0.13 85); outline-offset: 4px; }
.hs-sup-pay {
  box-sizing: border-box;
  max-width: 640px;
  margin: 32px auto 0;
  padding: 26px 28px;
  border-radius: 24px;
  text-align: left;
  background: rgba(20, 16, 10, 0.88);
  border: 1px solid oklch(0.85 0.13 85 / 0.55);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.8);
}
.hs-sup-pay__head { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #e6dcc7; }
.hs-sup-pay__head b { color: #fbf3e4; }
.hs-sup-pay__tag {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: oklch(0.8 0.1 180);
  color: #10201f;
  font-size: 12px;
  font-weight: 700;
}
.hs-sup-pay__row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 18px 0; }
.hs-sup-pay__num {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: oklch(0.85 0.13 85);
  white-space: nowrap;
}
.hs-sup-pay__copy {
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; width: 160px; height: 36px; padding: 0 14px;
  border: 0; font-family: inherit; font-size: 13px; line-height: 1; white-space: nowrap; cursor: pointer;
}
.hs-sup-pay__copy:focus-visible { outline: 2px solid oklch(0.85 0.13 85); outline-offset: 3px; }
.hs-sup-pay__note { margin: 0; font-size: 15px; line-height: 1.5; color: #e6dcc7; }
.hs-sup-tg { justify-content: flex-start; margin-top: 24px; }
.hs-sup-tg .btn { height: 48px; padding: 0 24px; }
.hs-sup-fine { text-align: center; margin: 0 24px 24px; font-size: 14px; }
@media (max-width: 520px) {
  .hs-sup-btn { width: 100%; max-width: 320px; min-width: 0; font-size: 16px; }
  .hs-sup-pay { max-width: none; margin-left: -24px; margin-right: -24px; padding: 22px 20px; }
  .hs-sup-pay__num { font-size: 22px; }
  .hs-sup-tg { justify-content: center; }
}
