/* Homepage redesign: hero pair, stats, Russian-services routing, roles, trust, FAQ.
   Loaded after storefront-refresh.css. Scoped to .site-shell / .hr-* so older rules stay untouched. */

.site-shell {
  --hr-amber: #f1a21d;
  --hr-teal: #5ee0c8;
  --hr-violet: #a99eff;
  --hr-line: rgba(255, 255, 255, .1);
  --hr-card: rgba(255, 255, 255, .035);
  --hr-muted: #9aa3b5;
}

/* ---------- Hero ---------- */
.site-shell .hero h1 {
  font-size: clamp(34px, 4.3vw, 56px);
  line-height: 1.08;
}

.site-shell .hero h1 em {
  font-style: normal;
  color: var(--hr-amber);
}

.site-shell .hero-trust {
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-shell .hero-product-pair {
  width: min(100%, 620px);
  height: 420px;
}

.site-shell .hero-product-photo-white,
.site-shell .hero-product-photo-black {
  top: auto;
  width: 57%;
  height: 86%;
  color: inherit;
  transition: transform .35s ease, box-shadow .35s ease;
}

.site-shell .hero-product-photo-white {
  z-index: 2;
  left: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 46%, rgba(135, 116, 255, .3), transparent 62%), linear-gradient(160deg, #161c2e, #0e1220);
}

.site-shell .hero-product-photo-black {
  z-index: 1;
  right: 0;
  top: 0;
  bottom: auto;
  background: radial-gradient(circle at 50% 46%, rgba(255, 255, 255, .2), transparent 60%), linear-gradient(160deg, #323c4f, #1a2130);
}

.site-shell .hero-product-photo-white img,
.site-shell .hero-product-photo-black img {
  width: 90%;
  height: 90%;
}

.site-shell .hero-product-photo-white:hover,
.site-shell .hero-product-photo-black:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgb(0 0 0 / 42%);
  z-index: 3;
}

.site-shell .hero-product-photo-white span,
.site-shell .hero-product-photo-black span {
  color: #b5bdd0;
}

.site-shell .hero-product-photo-white span b,
.site-shell .hero-product-photo-black span b {
  color: #fff;
}

/* ---------- Stats strip (replaces the promise row) ---------- */
.hr-stats {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--hr-line);
}

.hr-stats > div {
  display: grid;
  gap: 4px;
  padding: 30px 24px 30px 0;
  border-right: 1px solid var(--hr-line);
}

.hr-stats > div + div { padding-left: 26px; }
.hr-stats > div:last-child { border-right: 0; }

.hr-stats strong {
  color: var(--hr-amber);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
}

.hr-stats b { margin-top: 8px; font-size: 14px; }
.hr-stats small { color: var(--hr-muted); font-size: 12px; line-height: 1.5; }

/* ---------- Shared section frame ---------- */
.hr-direct,
.hr-roles,
.hr-trust,
.hr-faq {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0;
  border-top: 1px solid var(--hr-line);
}

.hr-direct h2,
.hr-roles h2,
.hr-trust h2,
.hr-faq h2 {
  margin: 15px 0 0;
  font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1.04;
  letter-spacing: -.06em;
}

.hr-direct h2 em,
.hr-roles h2 em,
.hr-trust h2 em { color: var(--hr-amber); font-style: normal; }

/* ---------- Russian services: routing diagram ---------- */
.hr-direct {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.hr-direct-copy p {
  max-width: 44ch;
  margin: 22px 0 0;
  color: var(--hr-muted);
  font-size: 15px;
  line-height: 1.75;
}

.hr-route {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 16px 34px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--hr-line);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
}

.hr-route-source {
  grid-row: 1 / 3;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px 12px;
  border: 1px solid rgba(241, 162, 29, .4);
  border-radius: 18px;
  text-align: center;
  color: var(--hr-amber);
  background: rgba(241, 162, 29, .08);
  box-shadow: 0 0 40px rgba(241, 162, 29, .1);
}

.hr-route-source b { color: #fff; font-size: 14px; }
.hr-route-source small { color: var(--hr-muted); font-size: 11px; }

.hr-lane {
  position: relative;
  padding: 18px 20px;
  border: 1px solid var(--hr-line);
  border-radius: 16px;
  background: rgba(8, 11, 16, .55);
}

.hr-lane::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 50%;
  width: 34px;
  border-top: 2px dashed currentColor;
  opacity: .7;
}

.hr-lane-direct { color: var(--hr-teal); border-color: rgba(94, 224, 200, .35); }
.hr-lane-vpn { color: var(--hr-violet); border-color: rgba(169, 158, 255, .35); }

.hr-lane-title {
  display: block;
  margin-bottom: 12px;
  font: 500 10px/1.4 'DM Mono', monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hr-lane ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hr-lane li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: #eef1f6;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, .05);
}

.hr-lane li svg { flex: 0 0 auto; color: currentColor; }
.hr-lane-direct li svg { color: var(--hr-teal); }
.hr-lane-vpn li svg { color: var(--hr-violet); }

/* ---------- Your part / our part ---------- */
.hr-roles-head { margin-bottom: 40px; }

.hr-roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.hr-role {
  padding: 32px;
  border: 1px solid var(--hr-line);
  border-radius: 20px;
  background: var(--hr-card);
}

.hr-role h3 {
  margin: 0 0 22px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: 'DM Mono', monospace;
  font-weight: 500;
}

.hr-role-you h3 { color: var(--hr-amber); }
.hr-role-we h3 { color: var(--hr-teal); }
.hr-role-we { border-color: rgba(94, 224, 200, .22); }
.hr-role-you { border-color: rgba(241, 162, 29, .25); }

.hr-role ol,
.hr-role ul { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }

.hr-role li { display: flex; align-items: flex-start; gap: 14px; font-size: 15px; line-height: 1.5; }

.hr-role-you li span {
  flex: 0 0 auto;
  font: 500 12px/1.9 'DM Mono', monospace;
  color: var(--hr-amber);
}

.hr-role-we li svg { flex: 0 0 auto; margin-top: 3px; color: var(--hr-teal); }

/* ---------- Trust ---------- */
.hr-trust-head { margin-bottom: 40px; }

.hr-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hr-trust-grid article {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--hr-line);
  border-radius: 18px;
  background: var(--hr-card);
  transition: border-color .25s ease, transform .25s ease;
}

.hr-trust-grid article:hover { border-color: rgba(241, 162, 29, .45); transform: translateY(-3px); }

.hr-trust-grid article > svg {
  box-sizing: content-box;
  padding: 11px;
  border-radius: 12px;
  color: var(--hr-amber);
  background: rgba(241, 162, 29, .1);
  align-self: flex-start;
}

.hr-trust-grid b { margin-top: 6px; font-size: 16px; }
.hr-trust-grid p { margin: 0; color: var(--hr-muted); font-size: 13px; line-height: 1.65; }
.hr-trust-grid a { margin-top: auto; padding-top: 6px; color: var(--hr-amber); font-size: 13px; font-weight: 700; }

/* ---------- FAQ ---------- */
.hr-faq {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 56px;
  align-items: start;
}

.hr-faq-head { position: sticky; top: 100px; }
.hr-faq-head p { margin: 20px 0 14px; color: var(--hr-muted); font-size: 14px; line-height: 1.7; }

.hr-faq-list { border-top: 1px solid var(--hr-line); }

.hr-faq-list details { border-bottom: 1px solid var(--hr-line); }

.hr-faq-list summary {
  position: relative;
  padding: 22px 44px 22px 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.hr-faq-list summary::-webkit-details-marker { display: none; }

.hr-faq-list summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hr-amber);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.hr-faq-list details[open] summary::after { content: '–'; }

.hr-faq-list p {
  margin: 0;
  padding: 0 44px 24px 0;
  color: var(--hr-muted);
  font-size: 15px;
  line-height: 1.75;
}

.hr-faq-list p a { color: var(--hr-amber); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Product cards ---------- */
.product-price-market strong { font-size: 17px; }
.product-price-market small { max-width: 14ch; }

/* ---------- Final block with several buttons ---------- */
.site-shell .final-actions { flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 960px) {
  .hr-stats { grid-template-columns: 1fr 1fr; }
  .hr-stats > div:nth-child(2) { border-right: 0; }
  .hr-stats > div:nth-child(n + 3) { border-top: 1px solid var(--hr-line); }
  .hr-stats > div:nth-child(3) { padding-left: 0; }

  .hr-direct,
  .hr-faq { grid-template-columns: 1fr; gap: 36px; }
  .hr-faq-head { position: static; }
  .hr-roles-grid { grid-template-columns: 1fr; }
  .hr-trust-grid { grid-template-columns: 1fr 1fr; }
  .hr-direct,
  .hr-roles,
  .hr-trust,
  .hr-faq { padding-block: 64px; }
}

@media (max-width: 640px) {
  .site-shell .hero-product-pair { height: 300px; }
  .hr-route { grid-template-columns: 1fr; padding: 20px; }
  .hr-route-source { grid-row: auto; grid-template-columns: auto 1fr; justify-items: start; text-align: left; padding: 16px; }
  .hr-lane::before { display: none; }
  .hr-lane ul { grid-template-columns: 1fr; }
  .hr-trust-grid { grid-template-columns: 1fr; }
  .hr-role { padding: 24px; }
  .hr-faq-list summary { font-size: 16px; }
  .site-shell .final-actions { justify-content: flex-start; }
}

/* ---------- Polish ---------- */
.hr-stats > div { align-content: start; }
.hr-lane ul { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
.hr-lane li { overflow-wrap: anywhere; }
.product-price-market small { max-width: none; white-space: nowrap; }

/* ---------- Legal disclaimer in footer ---------- */
.site-shell .site-footer { flex-wrap: wrap; }
.site-shell .hr-disclaimer {
  flex: 0 0 100%;
  order: 10;
  max-width: 96ch;
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--hr-line);
  color: #8a93a6;
  font-size: 12px;
  line-height: 1.65;
}

/* ---------- Final CTA: tidy button grid ---------- */
.site-shell .final-section { align-items: center; }

.site-shell .final-section .final-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: min(100%, 460px);
  flex: 0 0 auto;
  margin: 0;
}

.site-shell .final-section .final-actions > * {
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  justify-content: center;
  text-align: center;
}

.site-shell .final-section .final-actions .yandex-temporary { grid-column: 1 / -1; }
.site-shell .final-section .final-actions .button-secondary { min-height: 52px; }

/* ---------- "Before you buy" FAQ in the same style as the main FAQ ---------- */
.site-shell .purchase-faq-list summary {
  position: relative;
  padding: 20px 40px 20px 0;
  font-size: 16px;
  list-style: none;
}

.site-shell .purchase-faq-list summary::-webkit-details-marker { display: none; }
.site-shell .purchase-faq-list summary::marker { content: ''; }

.site-shell .purchase-faq-list summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hr-amber);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.site-shell .purchase-faq-list details[open] summary::after { content: '–'; }
.site-shell .purchase-faq-list details p { font-size: 14px; line-height: 1.75; color: var(--hr-muted); }

/* ---------- Legal note at the very bottom of the page (static footer) ---------- */
.legal-hub-footer { flex-wrap: wrap; }

.legal-hub-footer .legal-hub-disclaimer {
  grid-column: 1 / -1;
  width: 100%;
  font-family: 'Manrope', sans-serif;
  flex: 0 0 100%;
  max-width: 96ch;
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #8a93a6;
  font-size: 12px;
  line-height: 1.65;
}

@media (max-width: 960px) {
  .site-shell .final-section .final-actions { width: 100%; }
}

@media (max-width: 520px) {
  .site-shell .final-section .final-actions { grid-template-columns: 1fr; }
}
