/* ─────────────────────────────────────────────
   xs/_shared.css
   Shared tokens + header/footer styles.
   Loaded by every page in xs/.
   DO NOT add page-specific rules here.
───────────────────────────────────────────── */



/* ── FONTS ── */
/* swap: text always visible, font swaps in when ready — no invisible text on cold load */
@font-face {
  font-family: 'PP Right Grotesk';
  src: url('./assets/PPRightGrotesk-Medium-DaB_x3th.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ── DESIGN TOKENS ── */
:root {
  /* Typography weights */
  --font-weight-extrabold: 800;
  --font-weight-bold:      700;
  --font-weight-semibold:  600;
  --font-weight-medium:    500;

  /* Brand colours */
  --red:    #FD4239;
  --red-dk: #e03020;
  --navy:   #062f46;

  /* Neutral palette */
  --white:  #ffffff;
  --off:    #f7f8fa;
  --ink:    #030213;
  --body:   #3a4f66;
  --muted:  #6b7e96;
  --rule:   #e0e6ed;

  /* Type stacks */
  --sans-g: 'PP Right Grotesk', -apple-system, sans-serif; /* display / labels */
  --sans:   'Inter', Helvetica, -apple-system, sans-serif;  /* body text */

  --max: 1280px; /* page max-width */
}
/* ── BASE RESET (static pages only via html.xs-static) ──
   React pages don't get this — Tailwind handles their reset.
   Add class="xs-static" to <html> on every static page. */
html.xs-static { scroll-behavior: smooth; }
/* :where → специфичность 0: reset не перебивает классовые паддинги хедера/футера/страниц */
:where(html.xs-static *) { box-sizing: border-box; margin: 0; padding: 0; }
html.xs-static ::before, html.xs-static ::after { box-sizing: border-box; }
html.xs-static body { font-family: var(--sans); background: var(--white); color: var(--body); -webkit-font-smoothing: antialiased; line-height: 1.6; }
/* :where(:not(...)) — не красить ссылки хедера/футера (у них свои цвета), специфичность не растёт */
html.xs-static a:where(:not(.hdr-wrap *, footer *)) { color: var(--red); text-decoration: none; transition: color .15s; }
html.xs-static a:where(:not(.hdr-wrap *, footer *)):hover { color: var(--red-dk); text-decoration: underline; }
html.xs-static :where(.hdr-wrap, footer) a { text-decoration: none; }

/* language */
[data-lang="en"] [lang="de"],
[data-lang="de"] [lang="en"] { display: none !important; }

.lang-toggle { display: flex; align-items: center; gap: 0; }
.lang-sep { color: rgba(255,255,255,.25); font-size: 16px; line-height: 20px; padding: 0 2px; user-select: none; font-family: Helvetica, sans-serif; }
.lang-btn { font-family: var(--sans-g); font-size: 18px; font-weight: 500; text-transform: uppercase; background: none; border: none; color: rgba(255,255,255,.55); cursor: pointer; padding: 4px 5px; transition: color .15s; line-height: 22px; text-decoration: none; display: inline-block; }
.lang-btn.active { color: var(--white); }

/* ── HEADER ── */
.hdr-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .5s, border-color .4s;
}
.hdr-wrap.hdr-scrolled {
  background: linear-gradient(to bottom, rgba(253,66,57,0.92) 0%, rgba(253,66,57,0.88) 100%);
  border-bottom-color: rgba(255,255,255,.15);
}
.hdr { max-width: var(--max); margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
@media (min-width: 1024px) { .hdr { height: 100px; padding: 0 32px; } }

.logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo svg { width: 110px; height: 50px; display: block; }
@media (min-width: 1024px) { .logo svg { width: 148px; height: 68px; } }

.nav { display: none; }
@media (min-width: 1024px) { .nav { display: flex; align-items: center; gap: 16px; } }
.nav-dd { position: relative; }
.nav-item { display: flex; align-items: center; gap: 2px; font-family: Helvetica, sans-serif; font-size: 16px; font-weight: var(--font-weight-extrabold); color: var(--white); padding: 4px 6px; border-radius: 8px; cursor: pointer; transition: background .15s; line-height: 20px; border: none; background: transparent; }
.nav-item:hover, .nav-dd:hover .nav-item { background: rgba(255,255,255,.10); }
.nav-chevron { width: 10px; height: 6px; flex-shrink: 0; }
.nav-sub { display: none; position: absolute; top: calc(100% + 8px); left: 0; background: #fff; border-radius: 8px; box-shadow: 0 4px 24px rgba(0,0,0,.16); min-width: 200px; padding: 6px 0; z-index: 100; }
.nav-dd:hover .nav-sub { display: block; }
.nav-sub a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 16px; font-size: 14px; font-weight: 600; color: #525252; text-decoration: none; transition: background .12s, color .12s; }
.nav-sub a:hover { background: var(--red); color: #fff; }
.nav-badge { background: #fff; border: 1px solid #d4d4d4; border-radius: 6px; padding: 1px 6px; font-size: 12px; font-weight: 500; color: #404040; transition: inherit; }
.nav-sub a:hover .nav-badge { background: var(--red); border-color: #fff; color: #fff; }

.hdr-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.btn-login { display: none; position: relative; height: 50px; border-radius: 36px; background: transparent; border: none; cursor: pointer; padding: 0 24px; transition: background .15s; }
@media (min-width: 1024px) { .btn-login { display: flex; align-items: center; } }
.btn-login:hover { background: rgba(255,255,255,.15); }
.btn-login-ring { position: absolute; inset: -4px; border: 4px solid #fff; border-radius: 40px; pointer-events: none; }
.btn-login span { font-family: var(--sans-g); font-size: 18px; font-weight: 500; color: var(--white); text-transform: uppercase; line-height: 22px; -webkit-font-smoothing: antialiased; }

.btn-open { position: relative; display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 36px; border: none; cursor: pointer; padding: 0 20px; overflow: visible; background: transparent; transition: filter .15s; }
.btn-open:hover { filter: brightness(1.1); }
@media (min-width: 1024px) { .btn-open { height: 52px; padding: 0 24px; } }
.btn-open-bg { position: absolute; inset: 0; border-radius: 36px; background: #ecebeb; }
.btn-open-label { position: relative; z-index: 1; font-family: var(--sans-g); font-size: 13px; font-weight: 500; color: #d73434; text-transform: uppercase; white-space: nowrap; line-height: 22px; -webkit-font-smoothing: antialiased; }
@media (min-width: 1024px) { .btn-open-label { font-size: 18px; } }
.btn-open-shadow { position: absolute; inset: -5px; border-radius: 41px; box-shadow: inset 0px -8px 0.8px 0px rgba(168,20,20,0.09), inset 0px 8px 1.1px 0px white; pointer-events: none; }
.btn-open-ring { position: absolute; inset: -5px; border: 5px solid #d73434; border-radius: 41px; pointer-events: none; }

/* ── FOOTER ── */
footer { background: #062f46; position: relative; z-index: 10; }
.ftr { max-width: 1280px; margin: 0 auto; padding: 48px 24px; }
@media (min-width: 1024px) { .ftr { padding: 64px 32px 48px; } }
.ftr-main { display: flex; flex-direction: column; gap: 40px; align-items: flex-start; margin-bottom: 40px; }
@media (min-width: 1024px) { .ftr-main { flex-direction: row; gap: 0; margin-bottom: 64px; } }
.ftr-brand { display: flex; flex-direction: column; gap: 24px; width: 100%; padding-bottom: 8px; }
@media (min-width: 1024px) { .ftr-brand { max-width: 320px; min-width: 320px; gap: 120px; padding-bottom: 0; } }
.ftr-vqf-label { font-family: Helvetica, sans-serif; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.75); line-height: 18px; margin-bottom: 0; }
@media (min-width: 1024px) { .ftr-vqf-label { font-size: 16px; } }
.vqf-img { height: auto; display: block; width: 240px; max-width: 100%; margin-top: 16px; }
.ftr-links { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; flex: 1; width: 100%; }
@media (min-width: 1024px) { .ftr-links { display: flex; gap: 48px; } }
.fc { display: flex; flex-direction: column; gap: 16px; flex: 1; min-width: 96px; }
@media (min-width: 1024px) { .fc-app { flex: 0 0 220px; min-width: 220px; } }
.fc h4 { font-family: Helvetica, sans-serif; font-size: 14px; font-weight: 600; color: #fff; line-height: 20px; }
.fc ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.fc ul li a { font-family: Helvetica, sans-serif; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.75); transition: color .15s; line-height: 20px; }
.fc ul li a:hover { color: #fff; text-decoration: none; }
.fc-new { display: inline-flex; align-items: center; gap: 6px; }
.fc-badge { background: #fff; border-radius: 6px; padding: 1px 6px; font-family: Helvetica, sans-serif; font-size: 12px; font-weight: 500; color: #062f46; line-height: 18px; }
.fstore-col { display: flex; flex-direction: column; gap: 16px; }
.fstore { display: flex; align-items: center; height: 40px; border: 1px solid #fff; border-radius: 7px; padding: 0 12px; gap: 8px; text-decoration: none; transition: background .15s; cursor: pointer; }
.fstore:hover { background: rgba(255,255,255,.10); text-decoration: none; }
.fstore-text { display: flex; flex-direction: column; }
.fstore-pre { font-family: Helvetica, sans-serif; font-size: 10px; color: rgba(255,255,255,.7); line-height: 1.3; }
.fstore-name { font-family: Helvetica, sans-serif; font-size: 14px; font-weight: 700; color: #fff; line-height: 1.3; }
.ftr-bot { display: flex; flex-direction: column; gap: 16px; padding-top: 32px; border-top: 1px solid #e5e5e5; }
@media (min-width: 1024px) { .ftr-bot { flex-direction: row; align-items: center; justify-content: space-between; } }
.ftr-bot-left { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1024px) { .ftr-bot-left { flex-direction: row; align-items: center; gap: 32px; } }
.ftr-copy { font-family: Helvetica, sans-serif; font-size: 12px; color: rgba(255,255,255,.75); line-height: 20px; }
@media (min-width: 1024px) { .ftr-copy { font-size: 14px; } }
.ftr-socials { display: flex; gap: 16px; align-items: center; margin-top: 32px; }
@media (min-width: 1024px) { .ftr-socials { margin-top: 0; } }
.ftr-socials a { width: 20px; height: 20px; opacity: .8; transition: opacity .15s; display: block; }
.ftr-socials a:hover { opacity: 1; }
@media (max-width: 480px) { .ftr-links { grid-template-columns: 1fr; } }
/* footer nav primary (prominent) */
.ftr-nav-primary ul li a { font-size: 15px; font-weight: 700; color: rgba(255,255,255,.9); }
.ftr-nav-primary ul li a:hover { color: #fff; }
/* footer nav legal (subdued) */
.ftr-nav-legal ul li a { font-size: 13px; font-weight: 400; color: rgba(255,255,255,.45); }
.ftr-nav-legal ul li a:hover { color: rgba(255,255,255,.75); }

/* ── HEADER desktop/mobile split ── */
.hdr-lang { display: none; }
@media (min-width: 1024px) { .hdr-lang { display: flex; } }

.btn-open-desk { display: none; }
@media (min-width: 1024px) { .btn-open-desk { display: flex; } }

.btn-open-mob { display: flex; align-items: center; height: 36px; padding: 0 14px; }
.btn-open-mob .btn-open-label { font-size: 13px; }
.btn-open-mob::before { inset: -4px; border-width: 4px; border-radius: 40px; }
@media (min-width: 1024px) { .btn-open-mob { display: none; } }

/* Burger */
.burger { background: none; border: none; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
@media (min-width: 1024px) { .burger { display: none; } }
.burger-close { display: none; }
.burger.is-open .burger-open { display: none; }
.burger.is-open .burger-close { display: block; }

/* Mobile menu */
.mob-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #FD4239; border-top: 1px solid rgba(255,255,255,.10); z-index: 50; padding: 16px 24px; flex-direction: column; gap: 2px; }
.mob-menu.is-open { display: flex; }
@media (min-width: 1024px) { .mob-menu { display: none !important; } }
.mob-section { border-bottom: 1px solid rgba(255,255,255,.10); padding-bottom: 4px; margin-bottom: 2px; }
.mob-label { font-family: var(--sans-g); font-size: 16px; font-weight: 500; color: var(--white); text-transform: uppercase; padding: 10px 8px 6px; line-height: 20px; }
.mob-sub { display: flex; flex-direction: column; padding-left: 16px; }
.mob-sub a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.75); padding: 7px 0; text-decoration: none; transition: color .12s; }
.mob-sub a:hover { color: var(--white); }
.mob-login { background: none; border: none; cursor: pointer; text-align: left; font-family: var(--sans-g); font-size: 16px; font-weight: 500; color: var(--white); text-transform: uppercase; padding: 10px 8px; margin-top: 8px; }
.mob-lang { padding: 10px 8px 4px; }
.mob-lang .lang-btn { color: rgba(255,255,255,.45); }
.mob-lang .lang-btn.active { color: var(--white); }
.mob-lang .lang-sep { color: rgba(255,255,255,.25); }
