/* ==========================================================================
   MeshSignal / Mesh Party — style.css
   Mobile first. Під кожним базовим (мобільним) правилом одразу йде
   @media для планшета (min-width: 640px) та десктопу (min-width: 1024px).
   Контейнер — 1440px, центрується на будь-якій ширині екрана.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ЗМІННІ
   -------------------------------------------------------------------------- */
:root {
  --bg:           #0d0b16;
  --bg-soft:      #131020;
  --bg-alt:       #1a1729;
  --surface:      #201c33;
  --surface-2:    #262138;
  --line:         #322c4d;

  --text:         #f3f1fa;
  --muted:        #a49ec0;
  --dim:          #7d769c;

  --violet:       #8b5cf6;
  --violet-light: #a78bfa;
  --magenta:      #e879f9;
  --green:        #34d399;
  --cyan:         #38bdf8;
  --red:          #f87171;
  --amber:        #fbbf24;

  --ink:          #17121f;

  --font-display: "Orbitron", "Inter", sans-serif;
  --font-body:    "Inter", "Segoe UI", Arial, sans-serif;

  --container: 1440px;
  --gutter: 20px;
  --radius: 14px;
  --radius-sm: 10px;

  --ease: cubic-bezier(.22, .68, .36, 1);
}

/* --------------------------------------------------------------------------
   2. RESET / БАЗА
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1024px) {
  body { font-size: 15px; }
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}

:focus-visible {
  outline: 2px solid var(--violet-light);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 18px;
  background-color: var(--violet);
  color: #fff;
}
.skip-link:focus { left: 0; }

body.is-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   3. КОНТЕЙНЕР
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
@media (min-width: 1024px) {
  .container {
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* --------------------------------------------------------------------------
   4. ХЕДЕР
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(50, 44, 77, .6);
}
@media (min-width: 1024px) {
  .header { border-bottom: 1px solid rgba(50, 44, 77, .6); }
}

/* Фон і блюр винесені в псевдоелемент навмисно:
   backdrop-filter на самому .header зробив би його containing block
   для position: fixed, і мобільне меню обмежилось би висотою хедера. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(13, 11, 22, .88);
  backdrop-filter: blur(12px);
}
@media (min-width: 1024px) {
  .header::before { background-color: rgba(13, 11, 22, .82); }
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
@media (min-width: 1024px) {
  .header__inner {
    gap: 32px;
    min-height: 72px;
  }
}

.header__cta {
  display: none;
}
@media (min-width: 1024px) {
  .header__cta {
    display: inline-flex;
    flex-shrink: 0;
  }
}

/* --- логотип --- */
.logo {
  display: inline-flex;
  align-items: center;
  transition: transform .3s var(--ease);
}
.logo:hover { transform: scale(1.06); }
@media (min-width: 1024px) {
  .logo:hover { transform: scale(1.08); }
}

.logo__text {
  background-image: linear-gradient(90deg, var(--violet-light), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
}
@media (min-width: 1024px) {
  .logo__text { font-size: 18px; }
}

/* --- бургер: лінії розлітаються в різні боки --- */
.burger {
  position: relative;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: rgba(32, 28, 51, .6);
  cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.burger:hover {
  transform: scale(1.08);
  border-color: var(--violet);
}
@media (min-width: 1024px) {
  .burger { display: none; }
}

.burger__box {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}

.burger__line {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: var(--text);
  transition: transform .45s var(--ease), opacity .3s var(--ease), width .45s var(--ease);
}
.burger__line:nth-child(1) { top: 0; }
.burger__line:nth-child(2) { top: 7px; width: 70%; }
.burger__line:nth-child(3) { top: 14px; }

.burger.is-open .burger__line:nth-child(1) { transform: translateY(7px) rotate(135deg); }
.burger.is-open .burger__line:nth-child(2) { width: 0; opacity: 0; transform: translateX(24px); }
.burger.is-open .burger__line:nth-child(3) { transform: translateY(-7px) rotate(-135deg); }

/* --- навігація: розкривається колом з правого верхнього кута --- */
.nav {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 80px 24px 40px;
  background: #121216F2;
  clip-path: circle(0% at calc(100% - 42px) 42px);
  visibility: hidden;
  transition: clip-path .55s var(--ease), visibility 0s linear .55s;
}
.nav.is-open {
  clip-path: circle(150% at calc(100% - 42px) 42px);
  visibility: visible;
  transition: clip-path .55s var(--ease), visibility 0s;
}
@media (min-width: 1024px) {
  .nav {
    position: static;
    flex-direction: row;
    gap: 34px;
    padding: 0;
    margin-left: auto;
    background: none;
    clip-path: none;
    visibility: visible;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
@media (min-width: 1024px) {
  .nav__list {
    flex-direction: row;
    gap: 30px;
  }
}

.nav__item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.nav.is-open .nav__item { opacity: 1; transform: none; }
.nav.is-open .nav__item:nth-child(1) { transition-delay: .18s; }
.nav.is-open .nav__item:nth-child(2) { transition-delay: .24s; }
.nav.is-open .nav__item:nth-child(3) { transition-delay: .30s; }
.nav.is-open .nav__item:nth-child(4) { transition-delay: .36s; }
.nav.is-open .nav__item:nth-child(5) { transition-delay: .42s; }
@media (min-width: 1024px) {
  .nav__item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.nav__link {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.nav__link:hover,
.nav__link:focus-visible {
  color: var(--violet-light);
  transform: scale(1.08);
}
@media (min-width: 1024px) {
  .nav__link {
    padding: 4px 0;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 500;
  }
}

.nav__cta {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .4s var(--ease) .48s, transform .4s var(--ease) .48s, background-color .25s var(--ease);
}
.nav.is-open .nav__cta { opacity: 1; transform: none; }
@media (min-width: 1024px) {
  .nav__cta { display: none; }
}

/* --------------------------------------------------------------------------
   5. КНОПКИ
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease),
              background-color .28s var(--ease), border-color .28s var(--ease), color .28s var(--ease);
}
.btn:hover,
.btn:focus-visible { transform: translateY(-2px) scale(1.04); }
.btn:active { transform: translateY(0) scale(.99); }
@media (min-width: 1024px) {
  .btn {
    min-height: 46px;
    padding: 13px 26px;
    font-size: 13.5px;
  }
}

.btn--lg {
  min-height: 50px;
  padding: 15px 34px;
  font-size: 14px;
}
@media (min-width: 1024px) {
  .btn--lg {
    min-height: 54px;
    padding: 17px 44px;
    font-size: 15px;
  }
}

.btn--solid {
  background-image: linear-gradient(135deg, var(--violet), #7c3aed);
  color: #fff;
  box-shadow: 0 6px 20px rgba(139, 92, 246, .28);
}
.btn--solid:hover,
.btn--solid:focus-visible {
  box-shadow: 0 12px 30px rgba(139, 92, 246, .45);
}

.btn--outline {
  border-color: var(--violet);
  background-color: rgba(139, 92, 246, .08);
  color: var(--violet-light);
}
.btn--outline:hover,
.btn--outline:focus-visible {
  background-color: var(--violet);
  color: #fff;
  box-shadow: 0 12px 30px rgba(139, 92, 246, .4);
}

.btn__icon {
  display: inline-block;
  transition: transform .3s var(--ease);
}
.btn:hover .btn__icon { transform: translateY(3px); }

/* --------------------------------------------------------------------------
   6. ГЕРОЙ
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: 48px;
  padding-bottom: 56px;
  overflow: hidden;
  background-image:
    radial-gradient(120% 90% at 50% 0%, rgba(124, 58, 237, .55) 0%, rgba(76, 29, 149, .35) 45%, transparent 75%),
    linear-gradient(160deg, #2b1263 0%, #251152 40%, #140f2b 100%);
}
@media (min-width: 1024px) {
  .hero {
    padding-top: 76px;
    padding-bottom: 96px;
  }
}

.hero__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    repeating-radial-gradient(circle at 18% 42%, rgba(167, 139, 250, .16) 0 1px, transparent 1px 22px),
    repeating-radial-gradient(circle at 84% 30%, rgba(232, 121, 249, .13) 0 1px, transparent 1px 26px);
}
@media (min-width: 1024px) {
  .hero__pattern { opacity: .65; }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
@media (min-width: 1024px) {
  .hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
@media (min-width: 1024px) {
  .hero__content {
    flex: 0 1 640px;
    gap: 20px;
  }
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 32px;
  font-weight: 800;
  text-transform: none;
}
@media (min-width: 640px) {
  .hero__title {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    font-size: 44px;
  }
}
@media (min-width: 1024px) {
  .hero__title { font-size: 60px; }
}

.hero__title-line--accent {
  background-image: linear-gradient(100deg, var(--violet-light), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  color: #ded7f5;
  font-size: 14px;
  font-weight: 500;
}
@media (min-width: 1024px) {
  .hero__subtitle { font-size: 17px; }
}

.hero__text {
  max-width: 58ch;
  color: #b8b0d6;
  font-size: 13px;
  line-height: 1.75;
}
@media (min-width: 1024px) {
  .hero__text { font-size: 14.5px; }
}

.hero__btn {
  margin-top: 6px;
}
@media (min-width: 1024px) {
  .hero__btn { margin-top: 12px; }
}

.hero__phone {
  display: none;
  margin: 0;
}
@media (min-width: 1024px) {
  .hero__phone {
    display: block;
    flex: 0 0 210px;
    transition: transform .6s var(--ease);
  }
}

.hero__phone--left {
  transform: rotate(-8deg) translateY(10px);
}
@media (min-width: 1024px) {
  .hero__phone--left:hover { transform: rotate(-4deg) translateY(-6px) scale(1.04); }
}

.hero__phone--right {
  transform: rotate(8deg) translateY(10px);
}
@media (min-width: 1024px) {
  .hero__phone--right:hover { transform: rotate(4deg) translateY(-6px) scale(1.04); }
}

/* --------------------------------------------------------------------------
   7. БІГУЧИЙ РЯДОК
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 10px 0;
  border-top: 1px solid rgba(167, 139, 250, .22);
  border-bottom: 1px solid rgba(167, 139, 250, .22);
  background-color: rgba(139, 92, 246, .14);
}
@media (min-width: 1024px) {
  .marquee { padding: 13px 0; }
}

.marquee--header {
  margin-top: 40px;
  margin-bottom: -56px;
}
@media (min-width: 1024px) {
  .marquee--header {
    margin-top: 64px;
    margin-bottom: -96px;
  }
}

.marquee--footer {
  margin-top: 44px;
  margin-bottom: 0;
}
@media (min-width: 1024px) {
  .marquee--footer {
    margin-top: 72px;
    margin-bottom: 0;
  }
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll var(--marquee-duration, 22s) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@media (min-width: 1024px) {
  .marquee__track { animation-duration: var(--marquee-duration, 30s); }
}

.marquee__list {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee__item {
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: #d9d1f7;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.marquee__item::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 18px;
  border-radius: 50%;
  background-color: var(--violet-light);
}
@media (min-width: 1024px) {
  .marquee__item {
    padding: 0 24px;
    font-size: 13px;
  }
  .marquee__item::after { margin-left: 24px; }
}

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-1 * var(--marquee-distance, 50%)), 0, 0); }
}

/* --------------------------------------------------------------------------
   8. СЕКЦІЯ — спільні елементи
   -------------------------------------------------------------------------- */
.section {
  padding: 56px 0;
}
@media (min-width: 1024px) {
  .section { padding: 100px 0; }
}

.section__head {
  margin-bottom: 28px;
}
@media (min-width: 1024px) {
  .section__head { margin-bottom: 48px; }
}

.section__head--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (min-width: 1024px) {
  .section__head--center { align-items: center; }
}

.section__title {
  margin-bottom: 12px;
  font-size: 26px;
  font-weight: 700;
}
@media (min-width: 1024px) {
  .section__title {
    margin-bottom: 16px;
    font-size: 40px;
  }
}

.section__subtitle {
  margin-bottom: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
}
@media (min-width: 1024px) {
  .section__subtitle {
    margin-bottom: 12px;
    font-size: 17px;
  }
}

.section__lead {
  max-width: 78ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
@media (min-width: 1024px) {
  .section__lead { font-size: 14px; }
}

/* --------------------------------------------------------------------------
   9. HOW IT WORKS
   -------------------------------------------------------------------------- */
.steps {
  background-color: var(--bg);
}
@media (min-width: 1024px) {
  .steps { background-color: var(--bg); }
}

.steps__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
@media (min-width: 1024px) {
  .steps__inner {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }
}

.steps__media {
  margin: 0;
  transition: transform .6s var(--ease);
}
.steps__media:hover { transform: scale(1.03) rotate(-1deg); }
@media (min-width: 1024px) {
  .steps__media { flex: 0 1 46%; }
}

.steps__body {
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) {
  .steps__body { flex: 1 1 auto; }
}

.steps__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}
@media (min-width: 1024px) {
  .steps__list {
    gap: 14px;
    margin-top: 30px;
  }
}

.step {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--violet);
  border-radius: var(--radius-sm);
  background-color: var(--bg-soft);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.step:hover {
  transform: translateX(6px) scale(1.01);
  border-color: var(--violet-light);
  background-color: var(--surface);
}
@media (min-width: 1024px) {
  .step { padding: 18px 22px; }
}

.step__title {
  margin-bottom: 6px;
  color: var(--violet-light);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
}
@media (min-width: 1024px) {
  .step__title { font-size: 15px; }
}

.step__text {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}
@media (min-width: 1024px) {
  .step__text { font-size: 13.5px; }
}

/* --------------------------------------------------------------------------
   10. GAMES
   -------------------------------------------------------------------------- */
.games {
  background-color: var(--bg-soft);
}
@media (min-width: 1024px) {
  .games { background-color: var(--bg-soft); }
}

.games__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}
@media (min-width: 1024px) {
  .games__head {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 46px;
  }
}

.games__head-right {
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) {
  .games__head-right {
    flex: 0 1 640px;
    text-align: right;
    align-items: flex-end;
  }
}

.games__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@media (min-width: 1024px) {
  .games__body {
    flex-direction: row;
    align-items: stretch;
    gap: 34px;
  }
}

.games__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 1024px) {
  .games__list {
    flex: 1 1 auto;
    gap: 16px;
  }
}

.game {
  padding: 16px 18px;
  border-radius: var(--radius);
  color: #fff;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.game:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
@media (min-width: 1024px) {
  .game { padding: 20px 26px; }
}

.game--red    { background-image: linear-gradient(100deg, #ef4444, #fb7185 78%, rgba(251, 113, 133, .25)); }
.game--violet { background-image: linear-gradient(100deg, #7c3aed, #a78bfa 78%, rgba(167, 139, 250, .25)); }
.game--amber  { background-image: linear-gradient(100deg, #f59e0b, #fcd34d 78%, rgba(252, 211, 77, .25)); }
.game--green  { background-image: linear-gradient(100deg, #16a34a, #4ade80 78%, rgba(74, 222, 128, .25)); }

.game__title {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
}
@media (min-width: 1024px) {
  .game__title { font-size: 18px; }
}

.game__text {
  max-width: 72ch;
  font-size: 12px;
  line-height: 1.65;
  opacity: .92;
}
@media (min-width: 1024px) {
  .game__text { font-size: 13px; }
}

.game__best {
  margin-top: 6px;
  font-size: 11.5px;
  opacity: .85;
}
@media (min-width: 1024px) {
  .game__best { font-size: 12.5px; }
}

.game__best-label {
  font-weight: 700;
}

/* --- бічна панель з телефоном --- */
.showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 22px 18px 0;
  overflow: hidden;
  border-radius: var(--radius);
  text-align: center;
  transition: transform .4s var(--ease);
}
.showcase:hover { transform: translateY(-5px); }
@media (min-width: 1024px) {
  .showcase {
    flex: 0 0 330px;
    padding: 30px 24px 0;
  }
}

.showcase--amber { background-image: linear-gradient(170deg, #fbbf24, #f59e0b); color: var(--ink); }
.showcase--sky   { background-image: linear-gradient(170deg, #7dd3fc, #38bdf8); color: var(--ink); }

.showcase__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
}
@media (min-width: 1024px) {
  .showcase__title { font-size: 24px; }
}

.showcase__title strong {
  font-weight: 800;
}

.showcase__media {
  width: 78%;
  max-width: 280px;
  margin: 0;
  transition: transform .5s var(--ease);
}
.showcase:hover .showcase__media { transform: translateY(-8px) scale(1.03); }
@media (min-width: 1024px) {
  .showcase__media { width: 84%; }
}

/* --------------------------------------------------------------------------
   11. WHY MESH
   -------------------------------------------------------------------------- */
.why {
  background-color: var(--bg-alt);
}
@media (min-width: 1024px) {
  .why { background-color: var(--bg-alt); }
}

.features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 640px) {
  .features {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
}
@media (min-width: 1024px) {
  .features { gap: 20px; }
}

.feature {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: rgba(32, 28, 51, .55);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.feature:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .4);
}
@media (min-width: 640px) {
  .feature { flex: 1 1 calc(50% - 8px); }
}
@media (min-width: 1024px) {
  .feature {
    flex: 1 1 calc(33.333% - 14px);
    padding: 26px 24px 28px;
  }
}

.feature--violet:hover  { border-color: var(--violet-light); }
.feature--magenta:hover { border-color: var(--magenta); }
.feature--green:hover   { border-color: var(--green); }
.feature--cyan:hover    { border-color: var(--cyan); }
.feature--red:hover     { border-color: var(--red); }
.feature--amber:hover   { border-color: var(--amber); }

.feature__title {
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
}
@media (min-width: 1024px) {
  .feature__title { font-size: 16px; }
}

.feature__text {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}
@media (min-width: 1024px) {
  .feature__text { font-size: 13.5px; }
}

/* --------------------------------------------------------------------------
   12. PERFECT FOR
   -------------------------------------------------------------------------- */
.places {
  background-color: var(--bg);
}
@media (min-width: 1024px) {
  .places { background-color: var(--bg); }
}

.places__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
@media (min-width: 1024px) {
  .places__inner {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }
}

.places__body {
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) {
  .places__body { flex: 1 1 auto; }
}

.places__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}
@media (min-width: 1024px) {
  .places__list {
    gap: 14px;
    margin-top: 30px;
  }
}

.place {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--bg-soft);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.place:hover {
  transform: translateX(6px) scale(1.01);
  border-color: var(--cyan);
  background-color: var(--surface);
}
@media (min-width: 1024px) {
  .place { padding: 18px 22px; }
}

.place__title {
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
}
@media (min-width: 1024px) {
  .place__title { font-size: 15px; }
}

.place__text {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}
@media (min-width: 1024px) {
  .place__text { font-size: 13.5px; }
}

/* --------------------------------------------------------------------------
   13. СЛАЙДЕР
   -------------------------------------------------------------------------- */
.competition {
  background-color: var(--bg-alt);
}
@media (min-width: 1024px) {
  .competition { background-color: var(--bg-alt); }
}

.slider {
  --per-view: 1;
  --slider-gap: 14px;
}
@media (min-width: 640px) {
  .slider {
    --per-view: 2;
    --slider-gap: 18px;
  }
}
@media (min-width: 1024px) {
  .slider {
    --per-view: 3;
    --slider-gap: 22px;
  }
}

.slider__viewport {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}
.slider__viewport.is-dragging { cursor: grabbing; }
@media (min-width: 1024px) {
  .slider__viewport { overflow: hidden; }
}

.slider__track {
  display: flex;
  gap: var(--slider-gap);
  transition: transform .5s var(--ease);
  will-change: transform;
}
.slider__track.is-dragging { transition: none; }

.slide {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--slider-gap)) / var(--per-view));
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--violet);
  border-radius: var(--radius);
  background-color: var(--surface);
  user-select: none;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.slide:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--violet-light);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .45);
}
@media (min-width: 1024px) {
  .slide { padding: 26px 26px 28px; }
}

.slide__title {
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
}
@media (min-width: 1024px) {
  .slide__title { font-size: 17px; }
}

.slide__text {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}
@media (min-width: 1024px) {
  .slide__text { font-size: 13.5px; }
}

.slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}
@media (min-width: 1024px) {
  .slider__controls {
    gap: 20px;
    margin-top: 34px;
  }
}

.slider__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background-color: var(--surface);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  transition: transform .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), opacity .3s var(--ease);
}
.slider__arrow:hover:not(:disabled) {
  transform: scale(1.12);
  border-color: var(--violet);
  background-color: var(--violet);
  color: #fff;
}
.slider__arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
}
@media (min-width: 1024px) {
  .slider__arrow {
    width: 46px;
    height: 46px;
  }
}

.slider__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (min-width: 1024px) {
  .slider__dots { gap: 10px; }
}

.slider__dot {
  width: 22px;
  height: 5px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background-color: var(--line);
  cursor: pointer;
  transition: width .35s var(--ease), background-color .35s var(--ease), transform .3s var(--ease);
}
.slider__dot:hover { transform: scaleY(1.6); }
.slider__dot.is-active {
  width: 40px;
  background-image: linear-gradient(90deg, var(--violet), var(--magenta));
}
@media (min-width: 1024px) {
  .slider__dot { width: 26px; height: 6px; }
  .slider__dot.is-active { width: 48px; }
}

/* --------------------------------------------------------------------------
   14. CTA / READY TO PLAY
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  padding-bottom: 0;
  background-image:
    radial-gradient(90% 70% at 50% 100%, rgba(124, 58, 237, .28) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
@media (min-width: 1024px) {
  .cta { padding-bottom: 0; }
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
@media (min-width: 1024px) {
  .cta__inner { gap: 16px; }
}

.cta__title {
  font-size: 30px;
  font-weight: 800;
  background-image: linear-gradient(100deg, var(--violet-light), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (min-width: 1024px) {
  .cta__title { font-size: 46px; }
}

.cta__subtitle {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
}
@media (min-width: 1024px) {
  .cta__subtitle { font-size: 18px; }
}

.cta__text {
  max-width: 70ch;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}
@media (min-width: 1024px) {
  .cta__text { font-size: 14px; }
}

/* --------------------------------------------------------------------------
   15. ФУТЕР
   -------------------------------------------------------------------------- */
.footer {
  padding: 60px 0 28px;
  border-top: 1px solid var(--line);
  background-color: var(--bg);
}
@media (min-width: 1024px) {
  .footer { padding: 100px 0 34px; }
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
@media (min-width: 1024px) {
  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    text-align: left;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
@media (min-width: 1024px) {
  .footer__brand { align-items: flex-start; }
}

.footer__tagline {
  color: var(--dim);
  font-size: 12px;
}
@media (min-width: 1024px) {
  .footer__tagline { font-size: 12.5px; }
}

.footer__copy {
  color: var(--dim);
  font-size: 12px;
}
@media (min-width: 1024px) {
  .footer__copy { font-size: 12.5px; }
}

.footer__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
}
@media (min-width: 1024px) {
  .footer__list { gap: 28px; }
}

.footer__link {
  color: var(--muted);
  font-size: 12px;
  transition: color .25s var(--ease), transform .25s var(--ease);
  display: inline-block;
}
.footer__link:hover,
.footer__link:focus-visible {
  color: var(--violet-light);
  transform: scale(1.06);
}
@media (min-width: 1024px) {
  .footer__link { font-size: 12.5px; }
}

/* --------------------------------------------------------------------------
   16. СТОРІНКИ PRIVACY / TERMS
   -------------------------------------------------------------------------- */
.page {
  padding: 44px 0 64px;
  min-height: 55vh;
}
@media (min-width: 1024px) {
  .page { padding: 76px 0 110px; }
}

.page__title {
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 26px;
  font-weight: 700;
}
@media (min-width: 1024px) {
  .page__title {
    margin-bottom: 34px;
    font-size: 40px;
  }
}

.page__content {
  /* max-width: 80ch; */
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}
@media (min-width: 1024px) {
  .page__content { font-size: 14px; }
}

.page__content h2 {
  margin: 28px 0 10px;
  color: var(--text);
  font-size: 18px;
}
@media (min-width: 1024px) {
  .page__content h2 {
    margin: 40px 0 12px;
    font-size: 22px;
  }
}

.page__content h3 {
  margin: 20px 0 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
}
@media (min-width: 1024px) {
  .page__content h3 {
    margin: 26px 0 10px;
    font-size: 16px;
  }
}

.page__content p { margin-bottom: 14px; }
@media (min-width: 1024px) {
  .page__content p { margin-bottom: 16px; }
}

.page__content ul,
.page__content ol {
  margin: 0 0 16px 20px;
  list-style: disc;
}
@media (min-width: 1024px) {
  .page__content ul,
  .page__content ol { margin-bottom: 20px; }
}

.page__content li { margin-bottom: 6px; }

.page__content a {
  color: var(--violet-light);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   17. ПОЯВА ПРИ СКРОЛІ (клас додає JS)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}
