/* =========================================================
   Raxi Win — Polished Minimal UI
   Colors: White bg · Crimson accent · Warm gray sections
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ── Design Tokens ── */
:root {
  /* Backgrounds */
  --bg:        #ffffff;
  --bg-subtle: #f8f8f9;
  --bg-tint:   #f1f2f4;

  /* Accent */
  --red:       #e63946;
  --red-dark:  #c8303c;
  --red-soft:  rgba(230, 57, 70, 0.08);
  --gold:      #c9870a;

  /* Text */
  --t1: #0f0f10;
  --t2: #42424e;
  --t3: #8e8e9a;

  /* Border & Shadow */
  --line:  rgba(0,0,0,0.07);
  --sh-sm: 0 1px 4px rgba(0,0,0,0.06);
  --sh-md: 0 4px 20px rgba(0,0,0,0.07);

  /* Typography */
  --font: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 80px;

  /* Radii */
  --r1: 4px;
  --r2: 8px;
  --r3: 12px;

  /* Layout */
  --max: 1080px;
  --ease: 0.18s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--t2);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

h1, h2, h3, h4 {
  color: var(--t1);
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 700;
}

/* ── Layout ── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: var(--s7) 0; }
section.tinted  { background: var(--bg-subtle); }
section.tinted2 { background: var(--bg-tint); }

/* ── Header ── */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.logo-link { display: inline-flex; align-items: center; }
.logo-img  { width: 52px; height: 52px; object-fit: contain; }
.logo-text { display: none; }

.nav-links {
  display: flex;
  gap: var(--s4);
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--t2);
  transition: color var(--ease);
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  border-radius: 2px;
  transition: width var(--ease);
}
.nav-link:hover { color: var(--t1); }
.nav-link:hover::after { width: 100%; }

/* hamburger */
.ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.ham span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--t1);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

/* Nav CTA buttons (desktop) */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

/* Small button variant */
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: 6px;
}

/* Mobile-only nav buttons (inside hamburger menu) */
.mob-btn { display: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--r2);
  border: none;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-red  { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); box-shadow: 0 4px 14px rgba(230,57,70,0.35); }

.btn-outline {
  background: transparent;
  color: var(--t1);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--t3); background: var(--bg-subtle); }

.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { filter: brightness(1.1); box-shadow: 0 4px 14px rgba(201,135,10,0.35); }

.btn-telegram { background: #0088cc; color: #fff; }
.btn-telegram:hover { background: #0077b3; box-shadow: 0 4px 14px rgba(0,136,204,0.35); }

/* Uniform Button Sizing Overrides */
.nav-cta .btn {
  min-width: 120px;
  justify-content: center;
}

.hero-primary-btns {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 452px;
}

.hero-primary-btns .btn {
  flex: 1;
  min-width: 140px;
  justify-content: center;
  padding: 14px 16px;
  font-size: 15px;
}

.hero-btns .btn-telegram {
  width: 100%;
  max-width: 452px;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
}

/* ── Section Labels & Headings ── */
.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--s1);
}

.sec-h {
  font-size: 32px;
  margin-bottom: 12px;
}
.sec-h span { color: var(--red); }

.sec-p {
  font-size: 16px;
  color: var(--t3);
  max-width: 540px;
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-center .sec-p { margin: 0 auto; }

/* ── Hero ── */
.hero { padding: var(--s7) 0; border-bottom: 1px solid var(--line); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero-badge::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
}

.hero-h {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-h span { color: var(--red); }

.hero-p {
  font-size: 16px;
  color: var(--t2);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

/* hero stats strip */
.hero-stats {
  display: flex;
  gap: var(--s5);
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
}
.hstat-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--t1);
  line-height: 1;
  margin-bottom: 4px;
}
.hstat-lbl {
  font-size: 12px;
  color: var(--t3);
  font-weight: 500;
}

/* hero graphic */
.hero-visual { display: flex; justify-content: flex-end; align-items: center; }
.phone-mock {
  width: 100%;
  max-width: 300px;
  background: var(--bg-subtle);
  border-radius: 28px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--sh-md);
}
.phone-mock svg { width: 100%; height: auto; display: block; }

/* ── App Info Table ── */
.info-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: var(--s5);
}

.info-intro .sec-p { margin-top: 12px; }
.info-intro .btn  { margin-top: var(--s4); }

.app-table {
  width: 100%;
  border-collapse: collapse;
}
.app-table tr { border-bottom: 1px solid var(--line); }
.app-table tr:last-child { border-bottom: none; }
.app-table td {
  padding: 13px 0;
  font-size: 14px;
  vertical-align: top;
}
.app-table td:first-child {
  color: var(--t3);
  font-weight: 500;
  width: 46%;
}
.app-table td:last-child {
  color: var(--t1);
  font-weight: 600;
}

/* ── Steps ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  margin-top: var(--s5);
}
.step { display: flex; gap: 18px; }
.step-n {
  font-size: 13px;
  font-weight: 800;
  color: var(--red);
  background: var(--red-soft);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-body h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--t1);
}
.step-body p { font-size: 14px; color: var(--t3); line-height: 1.6; }

/* ── Features ── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  margin-top: var(--s5);
}
.feat {  }
.feat-icon-box {
  width: 40px; height: 40px;
  background: var(--red-soft);
  border-radius: var(--r2);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  margin-bottom: 14px;
}
.feat-icon-box svg { width: 20px; height: 20px; fill: currentColor; }
.feat h3 { font-size: 15px; font-weight: 700; margin-bottom: 7px; color: var(--t1); }
.feat p  { font-size: 14px; color: var(--t3); line-height: 1.6; }

/* ── Guide sections (2-col) ── */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: var(--s5);
}
.guide-col h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--t1);
  margin: 24px 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--red);
}
.guide-col h3:first-child { margin-top: 0; }
.guide-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 0;
}
.guide-col li {
  font-size: 14px;
  color: var(--t2);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}
.guide-col li::before {
  content: '→';
  color: var(--red);
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── FAQ ── */
.faq-list {
  max-width: 740px;
  margin: var(--s5) auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--t1);
  transition: color var(--ease);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--red); }

.faq-arr {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg-tint);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease), transform var(--ease);
}
.faq-arr svg { width: 10px; height: 10px; fill: var(--t3); transition: fill var(--ease); }

details[open] .faq-q { color: var(--red); }
details[open] .faq-arr { background: var(--red); transform: rotate(45deg); }
details[open] .faq-arr svg { fill: #fff; }

.faq-a {
  padding: 0 0 20px;
  font-size: 14px;
  color: var(--t3);
  line-height: 1.75;
  max-width: 640px;
}

/* ── CTA band ── */
.cta-band {
  background: var(--t1);
  padding: var(--s7) 0;
  text-align: center;
}
.cta-band h2 {
  font-size: 34px;
  color: #fff;
  margin-bottom: 12px;
}
.cta-band p {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ── Footer ── */
footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--line);
  padding: var(--s6) 0 var(--s4);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 40px;
  padding-bottom: var(--s5);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s4);
}
.ft-logo { width: 44px; height: 44px; object-fit: contain; margin-bottom: 14px; }
.ft-desc { font-size: 13px; color: var(--t3); line-height: 1.65; max-width: 240px; }
.ft-head {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--t1); margin-bottom: 16px;
}
.ft-links { display: flex; flex-direction: column; gap: 10px; }
.ft-link  { font-size: 13px; color: var(--t3); transition: color var(--ease); }
.ft-link:hover { color: var(--t1); }

.footer-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ft-copy { font-size: 12px; color: var(--t3); }
.ft-blinks { display: flex; gap: 20px; }

/* ── Sub-pages ── */
.sub-hero {
  background: var(--bg-subtle);
  padding: var(--s6) 0 var(--s5);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.sub-h { font-size: 36px; margin-bottom: 10px; }
.sub-h span { color: var(--red); }
.sub-sub { font-size: 15px; color: var(--t3); }

.page-body { max-width: 780px; margin: 0 auto; padding: var(--s6) 28px; }
.page-body h2 { font-size: 19px; margin: 32px 0 12px; }
.page-body h2:first-child { margin-top: 0; }
.page-body p  { font-size: 15px; margin-bottom: 14px; color: var(--t2); }
.page-body ul { padding-left: 20px; list-style: disc; margin-bottom: 20px; }
.page-body li { font-size: 14px; color: var(--t3); margin-bottom: 6px; }
.warn-box {
  border-left: 3px solid var(--red);
  background: var(--red-soft);
  padding: 14px 18px;
  border-radius: 0 var(--r2) var(--r2) 0;
  margin: 20px 0;
  font-size: 14px;
  color: var(--t2);
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  margin-top: var(--s5);
}
.ci-list { display: flex; flex-direction: column; gap: var(--s4); }
.ci-item { display: flex; gap: 14px; }
.ci-ico {
  width: 38px; height: 38px;
  background: var(--red-soft);
  border-radius: var(--r2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--red);
}
.ci-ico svg { width: 16px; height: 16px; fill: currentColor; }
.ci-label { font-size: 12px; font-weight: 700; color: var(--t1); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.04em; }
.ci-val   { font-size: 14px; color: var(--t3); }

.form { display: flex; flex-direction: column; gap: 18px; }
.fg   { display: flex; flex-direction: column; gap: 6px; }
.fl   { font-size: 13px; font-weight: 600; color: var(--t1); }
.fc {
  font-family: var(--font);
  font-size: 14px;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r2);
  background: var(--bg);
  color: var(--t1);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.fc:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
textarea.fc { resize: vertical; min-height: 120px; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-grid      { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-p         { max-width: 100%; }
  .hero-btns      { justify-content: center; align-items: center; }
  .hero-primary-btns { justify-content: center; }
  .hero-stats     { justify-content: center; }
  .hero-visual    { display: none; }
  .info-layout    { grid-template-columns: 1fr; gap: 32px; }
  .feat-grid      { grid-template-columns: 1fr 1fr; }
  .guide-grid     { grid-template-columns: 1fr; gap: 32px; }
  .footer-top     { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid   { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  section          { padding: var(--s5) 0; }
  .hero            { padding: var(--s6) 0; }
  .hero-h          { font-size: 36px; }
  .sec-h           { font-size: 26px; }
  .steps-grid      { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .feat-grid       { grid-template-columns: 1fr; }
  .nav-links       { display: none; }
  .nav-cta         { display: none; }
  .ham             { display: flex; }
  .footer-bot      { flex-direction: column; gap: 12px; text-align: center; }
  .cta-band h2     { font-size: 26px; }

  /* Show mobile CTA buttons inside the hamburger overlay */
  .mob-btn {
    display: flex;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
  }
  .mob-btn a {
    flex: 1;
    text-align: center;
    padding: 11px 0;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: background var(--ease);
  }
  .mob-btn .mob-login {
    background: var(--bg-tint);
    color: var(--t1);
    border: 1.5px solid var(--line);
  }
  .mob-btn .mob-login:hover { background: #e8e8ec; }
  .mob-btn .mob-reg {
    background: var(--red);
    color: #fff;
  }
  .mob-btn .mob-reg:hover { background: var(--red-dark); }
}

@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .hero-h     { font-size: 30px; }
}
