/* ── Reset & variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark: #18142d;
  --bg-mid:  #201b3b;
  --bg-card: #221e40;
  --accent:  #9286ea;
  --t1: #f9f9fb;
  --t2: #e0defb;
  --t3: #4a435c;
  --border: rgba(255,255,255,0.08);
  --fd: 'Onder', sans-serif;
  --fb: 'SF Pro Text', Arial, sans-serif;
  --max: 1320px;
  --px: clamp(20px, 6vw, 300px);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg-dark);
  color: var(--t1);
  font-family: var(--fb);
  line-height: 1.5;
  overflow-x: hidden;
}

/* На мобиле заменяем горизонтальные AOS-анимации на вертикальные */
@media (max-width: 768px) {
  [data-aos="fade-left"],
  [data-aos="fade-right"] {
    transform: translate3d(0, 30px, 0) !important;
  }
  [data-aos="fade-left"].aos-animate,
  [data-aos="fade-right"].aos-animate {
    transform: translate3d(0, 0, 0) !important;
  }
}

/* Typography */
h1 {
  font-family: var(--fd);
  font-size: clamp(16px, 3.8vw, 28px);
  text-transform: uppercase;
  line-height: 2;
  margin-bottom: 4px;
}
h2 {
  font-family: var(--fd);
  font-size: clamp(16px, 2.8vw, 24px);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.9;
  margin-bottom: 16px;
}
.text-center { text-align: center; }
.note { font-size: 13px; color: var(--t2); }

/* Section wrapper */
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
}
.section-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 50%, transparent);
}
.section-sub {
  font-size: 16px;
  color: var(--t2);
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 999px;
  font: 16px/1.5 var(--fb);
  cursor: pointer;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
  text-align: center
}
.btn:hover { opacity: .87; transform: translateY(-1px); }
.btn-lg { font-size: 16px/1.5 var(--fb);; padding: 12px 28px; max-width: 500px; min-width: 200px}

.btn-ghost {
  background: transparent;
  color: #f8f9fa;
  border: 1px solid #f8f9fa;
  border-radius: 8px;
}
.btn-ghost:hover { background: rgba(255,255,255,.07); transform: none; }

/* Bullet list */
.blist { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.blist li {
  position: relative;
  padding-left: 20px;
  font-size: 17px;
  color: var(--t2);
  line-height: 1.55;
}
.blist li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.blist.grad li::before {
  background: linear-gradient(135deg, #fe70f4, var(--accent));
}

/* HEADER */
header {
  position: sticky; top: 0; z-index: 300;
  background: rgba(24,20,45,.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
.logo {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 12px;
  background: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.brand-name {
  font-family: var(--fd);
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #fff; max-width: 90px; line-height: 1.4;
}
.navlinks { display: flex; gap: 2px; }
.navlinks a {
  color: var(--t2); text-decoration: none;
  font-size: 14px; padding: 5px 10px;
  transition: color .2s; white-space: nowrap;
}
.navlinks a:hover { color: #fff; }

/* Burger */
.burger {
  display: none;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.burger span {
  display: block; width: 24px; height: 2px;
  background: var(--t2); margin: 5px 0;
  transition: .25s;
}
/* Burger → X when open */
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mob-nav {
  display: none;
  flex-direction: column;
  background: rgba(20,16,40,.98);
  border-bottom: 1px solid var(--border);
  padding: 12px var(--px);
}
.mob-nav.open { display: flex; }
.mob-nav a {
  color: var(--t2); text-decoration: none;
  font-size: 16px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mob-nav a:hover { color: #fff; }
.mob-nav a:last-child {
  border: none; margin-top: 12px;
  text-align: center;
}

/* HERO */
.hero {
  position: relative;
  min-height: clamp(480px, 55vw, 680px);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: var(--bg-dark);
}
.hero-bg img,
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
/* Dark overlay: opaque left → transparent right */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    90deg,
    var(--bg-dark) 0%,
    var(--bg-dark) 35%,
    rgba(24,20,45,.75) 55%,
    rgba(24,20,45,.15) 100%
  );
}
.hero-content {
  position: relative; z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px var(--px);
}
.hero-text { max-width: 700px; }
.hero-text h1 { margin-bottom: 12px; }
.hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--t1); line-height: 1.7; margin-bottom: 28px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }

/* WHAT'S INSIDE */
.what-section {
  background: var(--bg-dark);
  padding: 48px 0;
  position: relative;
}
.what-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 50%, transparent);
}
.what-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.what-text h1 { margin-bottom: 24px; }

/* Phone column: floats up into hero */
.phone-col {
  margin-top: -130px;
  display: flex; align-items: flex-start; justify-content: center; gap: 12px;
}
.phone-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; align-self: center;
  transition: background .2s;
}
.phone-arrow:hover { background: rgba(255,255,255,.12); }
.phone-wrap {
  width: 210px; height: 440px;
  background: linear-gradient(180deg, #1e1830, #0d0820);
  border-radius: 34px;
  border: 2px solid rgba(210,210,210,.22);
  box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 32px 64px rgba(0,0,0,.6);
  position: relative; overflow: hidden; flex-shrink: 0;
}
.phone-wrap::before {
  display: none;
}
.phone-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .15s;
}
.phone-status {
  position: absolute; top: 14px; left: 0; right: 0; z-index: 4;
  display: flex; justify-content: space-between; padding: 0 14px;
  font-size: 9px; color: rgba(255,255,255,.75); font-weight: 600;
}

/*  HOW IT WORKS */
.how-section {
  background: var(--bg-dark);
  padding: 48px 0;
  position: relative;
}
.how-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 50%, transparent);
}
.how-section h1 { margin-bottom: 8px; }
.how-section .section-sub { margin-bottom: 28px; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.step {
  background: var(--bg-card); border-radius: 20px;
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.step-top { display: flex; align-items: center; gap: 10px; }
.step-n {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.step-t {
  font-family: var(--fd); font-size: 12px;
  text-transform: uppercase; line-height: 2;
}
.step p { font-size: 15px; color: var(--t2); line-height: 1.6; }

/* EVENTS — horizontal slider */
.events-section {
  background: var(--bg-mid);
  padding: 48px 0;
  position: relative;
}
.events-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 50%, transparent);
}
.events-head { padding: 0 var(--px) 24px; }
.events-head h1 { margin-bottom: 8px; }

/* Slider container with navigation buttons */
.slider-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 var(--px);
}

/* Navigation buttons */
.slider-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--t2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.slider-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--t1);
  border-color: var(--accent);
}
.slider-btn:active {
  transform: scale(0.95);
}
.slider-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Slider wrapper */
.slider-wrap {
  position: relative;
  overflow: hidden;
  flex: 1;
}
.slider-wrap::before,
.slider-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.slider-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-mid), transparent);
}
.slider-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-mid), transparent);
}

.slider-track {
  display: flex;
  gap: 16px;
  padding: 0 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track:active { cursor: grabbing; }

.slide {
  flex: 0 0 clamp(320px, 40vw, 500px);

  transition: transform 0.2s ease;
  user-select: none;
}
.slide img,
.slide-title,
.slide-desc {
  pointer-events: none;
}
.slide:hover {
  transform: translateY(-4px);
}

.slide img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  transition: filter 0.2s ease;
}
.slide:hover img {
  filter: brightness(1.05);
}
.slide-title {
  font-family: var(--fd);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 12px 0 4px;
  color: var(--t1);
  line-height: 2;
}
.slide-desc {
  font-size: 12px;
  color: var(--t2);
  line-height: 1.2;
}

/* EARN — purple BG, white card */
.earn-section {
  background: var(--accent);
  padding: 48px var(--px);
  position: relative;
}
.earn-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12) 50%, transparent);
}
.earn-card {
  max-width: var(--max); margin: 0 auto;
  background: #fff; border-radius: 24px;
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
}
.earn-title {
  font-family: var(--fd);
  font-size: clamp(18px, 2.2vw, 20px);
  text-transform: uppercase; color: #18142d;
  line-height: 2; margin-bottom: 16px;
}
.earn-desc { font-size: clamp(14px, 1.2vw, 17px); color: var(--t3); line-height: 1.4; }
.earn-hl {
  background: linear-gradient(120deg, var(--accent), #fe70f4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-weight: 700;
}
.earn-img {
  width: clamp(200px, 24vw, 330px);
  height: clamp(140px, 17vw, 225px);
  border-radius: 16px; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 16px 48px rgba(0,0,0,.18);
}
.earn-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* FOR ORGANIZER / FOR USER */
.for-section {
  background: var(--bg-mid);
  padding: 64px 0;
  position: relative;
}
.for-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 50%, transparent);
}
.for-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.for-inner.flipped { grid-template-columns: 1fr auto; }
.for-inner.flipped .for-text  { order: 1; }
.for-inner.flipped .for-phone { order: 2; }

.for-phone {
  width: auto;
  height: auto;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.for-text h1 {
  margin-bottom: 20px;
}

.for-note { font-size: 17px; color: var(--t1); margin-bottom: 16px; }

/* Eyebrow label */
.for-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(146,134,234,0.8);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.for-eyebrow::before {
  content: '';
  display: block;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: rgba(146,134,234,0.7);
  flex-shrink: 0;
}
.for-eyebrow--pink { color: rgba(254,112,244,0.8); }
.for-eyebrow--pink::before { background: rgba(254,112,244,0.7); }

/* Feature pills */
.for-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.for-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(146,134,234,0.1);
  border: 1px solid rgba(146,134,234,0.28);
  color: rgba(175,155,255,0.9);
  letter-spacing: 0.04em;
}
.for-pill--pink {
  background: rgba(254,112,244,0.08);
  border-color: rgba(254,112,244,0.28);
  color: rgba(254,160,244,0.9);
}

/* Description text */
.for-desc {
  font-size: 15px;
  color: var(--t1);
  line-height: 1.7;
  margin-bottom: 24px;
  text-wrap: pretty;
}

/* Smart text wrap on all headings and paragraphs */
h1, h2, p { text-wrap: pretty; }

/* FAQ */
.faq-section {
  background: var(--bg-dark);
  padding: 48px 0;
  position: relative;
}
.faq-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 50%, transparent);
}
.faq-section h1 { margin-bottom: 28px; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item:hover {
  border-color: rgba(146, 134, 234, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.faq-item.open {
  background: rgba(146, 134, 234, 0.05);
  border-color: rgba(146, 134, 234, 0.4);
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 24px 28px; cursor: pointer; font-size: 17px; color: var(--t1);
  transition: background .2s; user-select: none;
  font-weight: 500;
}
.faq-q:hover { background: rgba(255,255,255,.02); }
.faq-ico {
  width: 24px; height: 24px; flex-shrink: 0;
  color: var(--accent); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(146, 134, 234, 0.1);
  border-radius: 50%;
  padding: 4px;
}
.faq-item.open .faq-ico {
  transform: rotate(180deg);
  background: var(--accent);
  color: #fff;
}
.faq-ans {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.open .faq-ans { max-height: 400px; }
.faq-ai {
  padding: 0 28px 24px;
  font-size: 15px;
  color: var(--t2);
  line-height: 1.7;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s ease;
}
.faq-item.open .faq-ai {
  opacity: 1;
  transform: translateY(0);
}

/* DOWNLOAD */
.dl-section {
  background: var(--bg-mid);
  padding: 48px 0 48px;
  position: relative;
}
.dl-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 50%, transparent);
}
.dl-section h1 { margin-bottom: 12px; }
.dl-btns {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; margin: 24px 0 12px;
}

/* CONTACT FORM */
.contact-section {
  background: var(--bg-dark);
  padding: 48px 0;
  position: relative;
}
.contact-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 50%, transparent);
}
.contact-inner {
  max-width: 900px; margin: 0 auto;
  padding: 0 var(--px);
}
.contact-inner h1 { margin-bottom: 10px; }
.contact-box {
  background: var(--bg-mid); border-radius: 20px;
  box-shadow: 0 18px 40px rgba(4,0,32,.7);
  padding: 28px; margin-top: 28px;
}
.fg { margin-bottom: 16px; }
.fl { display: block; font-size: 14px; color: var(--t2); margin-bottom: 6px; }
.fi {
  width: 100%;
  background: rgba(8,6,28,.9); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px;
  color: var(--t1); font: 15px/1.5 var(--fb);
  outline: none; transition: border-color .2s; resize: none;
}
.fi:focus { border-color: rgba(146,134,234,.5); }
.fi::placeholder { color: rgba(255,255,255,.28); }
.fta { min-height: 110px; }

/* Form status */
.form-status {
  font-size: 14px; line-height: 1.5; margin-bottom: 12px;
  min-height: 0; transition: min-height .2s;
}
.form-status.success { color: #6ee7b7; }
.form-status.error   { color: #fca5a5; }

.fsub {
  width: 100%; background: var(--accent); color: #fff;
  border: none; padding: 13px;
  border-radius: 10px; font: 17px/1.5 var(--fb);
  cursor: pointer; transition: opacity .2s;
}
.fsub:hover { opacity: .87; }
.fsub:disabled { opacity: .55; cursor: not-allowed; }

/* FOOTER */
footer {
  background: rgba(5,4,19,.97);
  backdrop-filter: blur(9px);
  border-top: 1px solid var(--border);
  padding: 28px var(--px);
}
.foot-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.foot-logo {
  width: 64px; height: 64px; border-radius: 9px; flex-shrink: 0;
  background: none;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.foot-bname { font-family: var(--fd); font-size: 12px; color: var(--t1); line-height: 1.7; padding-bottom: 8px}
.foot-bdesc { font-size: 12px; color: var(--t2); max-width: 240px; line-height: 1.2; }

.foot-right { display: flex; align-items: center; gap: 20px; }
.socials { display: flex; gap: 14px; }
.socials a { color: var(--t2); text-decoration: none; font-size: 13px; font-weight: 600; transition: color .2s; }
.socials a:hover { color: #fff; }
.foot-copy { font-size: 12px; color: var(--t2); white-space: nowrap; }

/* RESPONSIVE */

/* ≤ 1024px  */
@media (max-width: 1024px) {
  :root { --px: clamp(20px, 4vw, 48px); }

  /* Nav */
  .navlinks { display: none; }
  .burger { display: block; }
  header .btn { display: none; }

  /* What inside: phone goes below text */
  .what-inner { grid-template-columns: 1fr; }
  .phone-col { margin-top: 32px; justify-content: center; }

  /* Steps 2-col */
  .steps { grid-template-columns: 1fr 1fr; }

  /* Slider on tablet */
  .slider-container { gap: 8px; padding: 0 8px; }
  .slider-btn { width: 36px; height: 36px; }

  /* Earn: stack */
  .earn-card { grid-template-columns: 1fr; }
  .earn-img { width: 100%; height: 220px; }

  /* For sections: stack */
  .for-inner,
  .for-inner.flipped {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .for-inner .for-phone,
  .for-inner.flipped .for-phone { order: -1; margin: 0 auto; }
  .for-inner .for-text,
  .for-inner.flipped .for-text { order: 0; }

  /* Footer */
  .foot-links { display: none; }
}

/* ≤ 768px: show phone mockups on mobile */
@media (max-width: 768px) {
  /* What inside becomes full-width text only */
  .what-inner { grid-template-columns: 1fr; }

  /* For sections: stack, phone visible */
  .for-inner,
  .for-inner.flipped { grid-template-columns: 1fr; }

  /* Show phone mockups on mobile — hide arrows, wrap as swipe slider */
  .desktop-only {
    display: flex !important;
    justify-content: center;
    margin-top: 24px;
  }

  /* Hide prev/next arrows on mobile — swipe instead */
  .phone-arrow { display: none !important; }

  /* Phone wrap becomes a swipe slider */
  .phone-wrap {
    width: min(240px, 64vw);
    height: min(500px, 133vw);
    touch-action: pan-y;
    cursor: grab;
    position: relative;
    overflow: hidden;
  }
  .phone-wrap:active { cursor: grabbing; }

  /* What section phone col on mobile */
  .phone-col {
    margin-top: 24px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  /* For sections: phone below description on mobile */
  .for-inner .for-phone,
  .for-inner.flipped .for-phone {
    order: 2;
    margin: 0 auto;
    flex-direction: column;
    align-items: center;
  }
  .for-inner .for-text,
  .for-inner.flipped .for-text {
    order: 1;
  }
}

/* ≤ 640px  */
@media (max-width: 640px) {
  :root { --px: 16px; }

  /* Hero — bigger image, CTA pushed to bottom */
  .hero { min-height: 90svh; align-items: flex-end; }
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(24,20,45,.1) 0%, rgba(24,20,45,.6) 50%, var(--bg-dark) 85%);
  }
  .hero-content { padding-bottom: 40px; }
  .hero-btns {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  .hero-btns .btn {
    flex: 1;
    min-width: 130px;
    text-align: center;
    font-size: 13px;
    padding: 10px 12px;
  }

  .steps { grid-template-columns: 1fr; }

  /* Slider — weaker fade, hide arrows */
  .slider-btn { display: none; }
  .slider-wrap::before,
  .slider-wrap::after { width: 24px; }
  .slide { flex: 0 0 85vw; }
  .slider-container { gap: 6px; padding: 0 6px; }

  .dl-btns { flex-direction: column; align-items: center; }
  .dl-btns .btn { text-align: center; }

  /* Footer — center everything */
  .foot-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .foot-brand { flex-direction: column; align-items: center; }
  .foot-bdesc { text-align: center; }
  .foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .foot-right { flex-direction: column; align-items: center; gap: 12px; }
  .socials { justify-content: center; }
}

/* ≤ 400px / iPhone SE и меньше */
@media (max-width: 400px) {
  :root { --px: 14px; }
  .brand-name { display: none; }

  .hero-btns .btn {
    min-width: 110px;
    font-size: 12px;
    padding: 9px 10px;
  }

  /* Slide width */
  .slide { flex: 0 0 90vw; }

  /* Phone mockup — чуть меньше на SE */
  .phone-wrap {
    width: min(200px, 56vw) !important;
    height: min(420px, 117vw) !important;
  }

  /* for-pills wrap tighter */
  .for-pill { font-size: 11px; padding: 4px 10px; }

  /* FAQ question text */
  .faq-q { font-size: 14px; padding: 16px 18px; }
  .faq-ai { padding: 0 18px 18px; font-size: 14px; }

  /* Nav */
  .nav { padding: 8px var(--px); }
  .logo { width: 36px; height: 36px; }

  /* Hero btns stacked on very small */
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { min-width: unset; width: 100%; }

  /* Earn card */
  .earn-card { grid-template-columns: 1fr; }
}

/* ── LOCAL ARTISTS ─────────────────────────────── */
.artists-section {
  background: var(--bg-dark);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.artists-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 50%, transparent);
}

.artists-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .artists-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .artists-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .artist-name { font-size: 12px; letter-spacing: 1px; }
  .artist-genre { font-size: 11px; }
}

.artist-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  min-width: 0; /* важно для grid — не даёт карточке растягиваться */
}

.artist-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  transition: transform 0.25s ease;
}
.artist-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.artist-card:hover .artist-photo img {
  transform: scale(1.05);
}

.artist-name {
  font-family: var(--fd);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #f4ecff;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-genre {
  font-size: 13px;
  color: var(--t2);
  margin-top: -6px;
}

/* Smart text wrap on all headings and paragraphs */
h1, h2, p { text-wrap: pretty; }
