/* ============================================================
   21 BEK — SMM Marketing
   Стиль образца xspace.uz (плоский чёрно-белый бруталистский)
   с фирменным фиолетовым акцентом 21 BEK.
   ============================================================ */

:root {
  /* === БРЕНД-АКЦЕНТ (поменять тут — обновится весь сайт) === */
  --accent:        #7E5BB5;          /* фиолетовый из логотипа 21 BEK */
  --accent-dark:   #5E3F94;
  --accent-soft:   #9b7bd0;
  --accent-glow:   rgba(126, 91, 181, 0.45);

  /* Backgrounds */
  --bg-black:  #08080a;
  --bg-dark:   #121116;
  --bg-card:   #17161b;
  --bg-white:  #ffffff;
  --bg-light:  #f4f4f6;

  /* Text */
  --text-on-dark:   #ffffff;
  --text-dark-2:    rgba(255, 255, 255, 0.78);
  --text-dark-3:    rgba(255, 255, 255, 0.55);
  --text-on-light:  #0d0d10;
  --text-light-2:   #4a4a52;

  --line-dark:  rgba(255, 255, 255, 0.10);
  --line-light: rgba(0, 0, 0, 0.10);

  --font-head: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --radius: 6px;
  --header-h: 72px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-black);
  color: var(--text-on-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;          /* защита от Android font-boosting */
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  padding-bottom: 10px;
  margin-bottom: 14px;
  position: relative;
}
.eyebrow::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 34px; height: 2px; background: var(--accent);
}
.eyebrow--center { display: block; text-align: center; }
.eyebrow--center::after { left: 50%; transform: translateX(-50%); }

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 49px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.section-title--center { text-align: center; }
.section-sub {
  color: var(--text-dark-3);
  max-width: 620px;
  margin: 0 auto 44px;
  text-align: center;
}

section { padding: 92px 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 8px 30px var(--accent-glow);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-soft); }
.btn--tg {
  background: #2aabee; color: #fff; border-color: #2aabee;
  margin-top: 8px;
}
.btn--tg:hover { background: #1d96d6; border-color: #1d96d6; transform: translateY(-1px); }

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(8,8,10,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
  z-index: 100;
  transition: background .3s ease;
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: inline-flex; flex-direction: column; line-height: 1; gap: 3px; }
.logo__box {
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
  letter-spacing: .04em;
  background: var(--accent); color: #fff;
  padding: 4px 9px; border-radius: 3px;
  align-self: flex-start;
}
.logo__sub {
  font-family: var(--font-head); font-weight: 600; font-size: 10.5px;
  letter-spacing: .22em; color: var(--accent-soft);
}

.nav { display: flex; gap: 30px; }
.nav a {
  font-size: 15px; color: var(--text-dark-2);
  font-weight: 500; transition: color .2s ease;
}
.nav a:hover { color: var(--accent-soft); }

.header__actions { display: flex; align-items: center; gap: 16px; }
.lang { display: inline-flex; border: 1px solid var(--line-dark); border-radius: 6px; overflow: hidden; }
.lang__btn {
  background: transparent; border: 0; color: var(--text-dark-3);
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  padding: 7px 11px; cursor: pointer; transition: all .2s ease;
}
.lang__btn.is-active { background: var(--accent); color: #fff; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: #fff; transition: .25s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 96px;
  background: var(--bg-black);
  overflow: hidden;
}
.hero__glow {
  position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 62%);
  filter: blur(20px); opacity: .55; pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
}
.hero__content { min-width: 0; }
.hero__title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(36px, 7vw, 66px);
  line-height: 1.04; letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.hero__sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-dark-2);
  max-width: 640px; margin: 0 0 34px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats {
  display: flex; gap: 48px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 34px;
  border-top: 1px solid var(--line-dark);
}
.hstat b {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(26px, 4vw, 38px); color: #fff;
}
.hstat span { font-size: 14px; color: var(--text-dark-3); }

/* ---------- hero showcase (floating reels) ---------- */
.hero__showcase {
  position: relative;
  display: flex; gap: 16px; justify-content: center; align-items: center;
}
.scard {
  position: relative; flex: 1 1 0; max-width: 188px; margin: 0;
  aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  animation: floaty 5.5s ease-in-out infinite;
}
.scard img { width: 100%; height: 100%; object-fit: cover; }
.scard--1 { transform: translateY(16px); animation-delay: 0s; }
.scard--2 { transform: translateY(-18px); animation-delay: .7s; z-index: 2;
  box-shadow: 0 28px 70px var(--accent-glow); border-color: rgba(126,91,181,0.5); }
.scard--3 { transform: translateY(16px); animation-delay: 1.4s; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* play button overlay */
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(126,91,181,0.88);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px var(--accent-glow);
  backdrop-filter: blur(2px);
}
.play::after {
  content: ""; width: 0; height: 0; margin-left: 4px;
  border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff;
}
.play--sm { width: 40px; height: 40px; }
.play--sm::after { border-width: 7px 0 7px 11px; }

/* ---------- marquees (clients + content) ---------- */
.marquee {
  overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: scrollx 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* clients */
.clients { padding: 52px 0; background: var(--bg-dark); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.clients .container { margin-bottom: 26px; }
.mg { display: flex; align-items: center; }
.brand {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(20px, 3vw, 30px);
  color: rgba(255,255,255,0.20); white-space: nowrap; padding: 0 26px;
  transition: color .25s ease;
}
.marquee:hover .brand { color: rgba(255,255,255,0.34); }
.mg i { color: var(--accent); font-style: normal; font-size: 20px; }

/* content band */
.contentband { background: var(--bg-black); padding-bottom: 96px; }
.contentband .container { margin-bottom: 30px; }
.contentband__sub { color: var(--text-dark-3); max-width: 560px; margin: 0; }
.marquee--cards .marquee__track { animation-duration: 50s; }
.mg--cards { display: flex; gap: 0; }
.ccard {
  position: relative; flex: 0 0 auto;
  width: 232px; aspect-ratio: 3 / 4; margin: 0 9px;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-dark); background: var(--bg-card);
}
.ccard img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.ccard:hover img { transform: scale(1.06); }

/* ---------- scroll reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- results ---------- */
.results { background: var(--bg-dark); }
.results__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-top: 18px;
}
.rstat {
  text-align: center; padding: 38px 18px;
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color .25s ease, transform .25s ease;
}
.rstat:hover { border-color: var(--accent); transform: translateY(-3px); }
.rstat b {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(30px, 4.5vw, 46px); color: var(--accent-soft);
  line-height: 1; margin-bottom: 10px;
}
.rstat span { font-size: 14px; color: var(--text-dark-3); }
.results__note {
  text-align: center; color: var(--text-dark-3);
  font-size: 13.5px; margin-top: 30px;
}

/* ---------- what we do (cards) ---------- */
.services { background: var(--bg-black); }
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px; margin-top: 34px;
}
.card {
  padding: 32px 26px;
  background: var(--bg-card);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(126,91,181,0.14); color: var(--accent-soft);
  margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-family: var(--font-head); font-weight: 600; font-size: 19px; margin: 0 0 10px; }
.card p { color: var(--text-dark-3); font-size: 14.5px; margin: 0; }

/* ---------- why us ---------- */
.why { background: var(--bg-dark); }
.why__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; margin-top: 34px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius); overflow: hidden;
}
.why__item { background: var(--bg-black); padding: 34px 28px; }
.why__num {
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  color: var(--accent); letter-spacing: .1em;
}
.why__item h4 { font-family: var(--font-head); font-weight: 600; font-size: 18px; margin: 14px 0 8px; }
.why__item p { color: var(--text-dark-3); font-size: 14.5px; margin: 0; }

/* ---------- prices (a la carte) ---------- */
.prices { background: var(--bg-black); }
.pricecards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 12px;
}
.pricecard {
  background: var(--bg-card);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.pricecard h3 {
  font-family: var(--font-head); font-weight: 600; font-size: 21px;
  margin: 0 0 20px; padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
}
.pricecard h3 small { display: block; font-size: 13px; font-weight: 400; color: var(--text-dark-3); margin-top: 4px; }
.pricecard ul li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 11px 0; border-bottom: 1px dashed var(--line-dark);
  font-size: 15px; color: var(--text-dark-2);
}
.pricecard ul li:last-child { border-bottom: 0; }
.pricecard ul li b { font-family: var(--font-head); color: var(--accent-soft); white-space: nowrap; }

.actor {
  display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 22px; padding: 20px 28px;
  background: rgba(126,91,181,0.10);
  border: 1px solid rgba(126,91,181,0.30);
  border-radius: var(--radius); text-align: center;
}
.actor span { color: var(--text-dark-2); }
.actor b { font-family: var(--font-head); color: var(--accent-soft); font-size: 18px; }

/* ---------- packages ---------- */
.packages { background: var(--bg-dark); }
.pkg__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 18px; align-items: stretch;
}
.pkg {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform .25s ease, border-color .25s ease;
}
.pkg:hover { transform: translateY(-4px); border-color: var(--accent); }
.pkg--featured {
  border-color: var(--accent);
  box-shadow: 0 18px 60px rgba(126,91,181,0.22);
  background: linear-gradient(180deg, rgba(126,91,181,0.10), var(--bg-card) 40%);
}
.pkg__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 20px; white-space: nowrap;
}
.pkg__name { font-family: var(--font-head); font-weight: 600; font-size: 20px; margin: 0 0 16px; min-height: 52px; }
.pkg__price { display: flex; align-items: baseline; gap: 7px; margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line-dark); }
.pkg__price b { font-family: var(--font-head); font-weight: 700; font-size: 32px; color: #fff; }
.pkg__price span { color: var(--text-dark-3); font-size: 14px; }
.pkg__list { flex: 1; margin-bottom: 26px; }
.pkg__list li {
  position: relative; padding: 9px 0 9px 26px;
  font-size: 14.5px; color: var(--text-dark-2);
}
.pkg__list li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- portfolio ---------- */
.portfolio { background: var(--bg-black); }
.portfolio__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 34px;
}
.work {
  position: relative; margin: 0; aspect-ratio: 1 / 1;
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--line-dark);
}
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work:hover img { transform: scale(1.05); }
.work figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: 36px 18px 16px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.82), transparent);
}
.work figcaption small { font-family: var(--font-body); font-weight: 400; font-size: 12.5px; color: var(--accent-soft); }
/* placeholder, если картинка не загрузилась */
.work--empty {
  display: flex; align-items: flex-end;
  background:
    radial-gradient(circle at 30% 20%, rgba(126,91,181,0.35), transparent 55%),
    linear-gradient(135deg, #1c1a22, #0e0d12);
}
.work--empty img { display: none; }

/* ---------- contact ---------- */
.contact { background: var(--bg-dark); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__sub { color: var(--text-dark-3); margin: 0 0 28px; }
.contact__direct { display: flex; flex-direction: column; gap: 10px; }
.contact__direct > span { color: var(--text-dark-3); font-size: 14px; }
.contact__link {
  font-family: var(--font-head); font-weight: 600; font-size: 22px; color: #fff;
  transition: color .2s ease;
}
.contact__link:hover { color: var(--accent-soft); }

.contact__form {
  background: var(--bg-card); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 32px;
}
.field { display: block; margin-bottom: 18px; }
.field span { display: block; font-size: 13.5px; color: var(--text-dark-3); margin-bottom: 7px; }
.field input, .field select {
  width: 100%; padding: 13px 15px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: #fff; font-family: var(--font-body); font-size: 15px;
  transition: border-color .2s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field input.is-invalid { border-color: #e3506a; }
.field select option { background: #17161b; color: #fff; }
.form__msg { font-size: 14px; margin: 14px 0 0; min-height: 20px; text-align: center; }
.form__msg.is-ok { color: #5fd08a; }
.form__msg.is-err { color: #e3506a; }

/* ---------- footer ---------- */
.footer { background: var(--bg-black); padding: 64px 0 24px; border-top: 1px solid var(--line-dark); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer__brand p { color: var(--text-dark-3); font-size: 14px; max-width: 280px; margin: 18px 0 0; }
.footer__col h5 { font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dark-3); margin: 0 0 16px; }
.footer__col a { display: block; color: var(--text-dark-2); font-size: 15px; padding: 5px 0; transition: color .2s ease; }
.footer__col a:hover { color: var(--accent-soft); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  color: var(--text-dark-3); font-size: 13px;
}

/* ---------- mobile nav backdrop ---------- */
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  opacity: 0; visibility: hidden; transition: .25s; z-index: 90;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .results__grid, .cards { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .pricecards, .pkg__grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .pkg--featured { order: -1; }
  .contact__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  section { padding: 64px 0; }
  .header__cta { display: none; }
  .burger { display: flex; }
  .hero__glow { width: 100%; max-width: 560px; }
  .btn--tg { align-self: flex-start; }
  .hero__inner { grid-template-columns: 1fr; gap: 30px; }
  .hero__showcase { max-width: 400px; margin: 4px auto 0; }

  .nav {
    position: fixed; top: var(--header-h); right: 0;
    width: min(78vw, 320px); height: calc(100vh - var(--header-h));
    flex-direction: column; gap: 0;
    background: var(--bg-dark);
    border-left: 1px solid var(--line-dark);
    padding: 14px 0;
    transform: translateX(100%); transition: transform .28s ease;
    z-index: 95;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { padding: 15px 26px; border-bottom: 1px solid var(--line-dark); font-size: 16px; }

  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { gap: 28px; }
}

@media (max-width: 460px) {
  .container { padding: 0 18px; }
  .results__grid, .cards, .why__grid, .portfolio__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__actions .btn { flex: 1; }
  .why__grid { max-width: 420px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  .scard { transform: none !important; }
}
