/* Digital 500 — тёмный премиум-стиль.
   Референсы владельца: Club 500 (Казань), тёмные лендинги «русского Behance».
   База — почти чёрный графит, акцент — шампанское золото, один красный акцент. */

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

:root {
  --bg: #07070a;
  --bg2: #0c0c11;
  --bg3: #12121a;
  --card: rgba(255, 255, 255, 0.045);
  --card-hi: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.1);
  --line-hi: rgba(230, 194, 122, 0.35);
  --ink: #f5f2ec;
  --muted: #9b968d;
  --muted2: #6f6b64;
  --gold: #e6c27a;
  --gold-hi: #f7e4b8;
  --red: #e5383b;
  --violet: #7a5cff;
  --radius: 20px;
  --wrap: 1240px;
  --serif: 'Prata', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* зерно поверх фона, как на референсах */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.wrap--narrow { max-width: 820px; }

h1, h2, h3 { margin: 0 0 18px; font-weight: 400; line-height: 1.08; }
h1, h2 { font-family: var(--serif); letter-spacing: 0.01em; }
h1 { font-size: clamp(32px, 5.4vw, 68px); letter-spacing: -0.005em; text-transform: uppercase; }
h2 { font-size: clamp(26px, 3.6vw, 46px); text-transform: uppercase; }
h3 { font-family: var(--sans); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }

.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 62ch; }
.note { color: var(--muted2); font-size: 15px; }
.kicker {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 18px; font-weight: 600;
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 34px; border-radius: 6px; font: 600 15px/1 var(--sans);
  letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn--gold {
  background: linear-gradient(180deg, #f6e5bd 0%, #e2c486 55%, #d4b06a 100%);
  color: #1a1206; box-shadow: 0 10px 40px rgba(230, 194, 122, .28);
}
.btn--gold:hover { color: #1a1206; transform: translateY(-2px); box-shadow: 0 14px 50px rgba(230, 194, 122, .42); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { color: var(--ink); border-color: var(--line-hi); background: rgba(255, 255, 255, .07); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { color: #fff; filter: brightness(1.08); }
.btn--sm { padding: 12px 22px; font-size: 13px; }
.btn--wide { width: 100%; }

/* ---------- шапка ---------- */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 7, 10, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.logo { display: inline-flex; flex-direction: column; line-height: 1; }
.logo__d { font: 600 10px/1 var(--sans); letter-spacing: 0.42em; color: var(--muted); }
.logo__n { font: 400 30px/1 var(--serif); color: var(--ink); letter-spacing: 0.02em; }
.nav { display: flex; gap: 26px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0.03em;
  text-transform: uppercase; transition: color .2s;
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.navtoggle, .burger { display: none; }
.hdr__contacts { display: flex; align-items: center; gap: 12px; }
.icon-link {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink); transition: border-color .2s, background .2s;
}
.icon-link:hover { border-color: var(--line-hi); background: rgba(230, 194, 122, .1); }
.icon-link svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- герой ---------- */
.hero { position: relative; padding: 46px 0 64px; overflow: hidden; }
.hero::after {
  content: ''; position: absolute; left: 50%; top: -10%; width: 980px; height: 980px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(circle, rgba(230, 194, 122, .13) 0%, rgba(122, 92, 255, .07) 38%, transparent 66%);
}
.hero__grid {
  display: grid; grid-template-columns: 250px minmax(0, 1fr) 250px; gap: 34px; align-items: center;
}
.hero__center { text-align: center; position: relative; }
.hero__pills { display: flex; gap: 10px; justify-content: center; margin-bottom: 22px; }
.pill {
  padding: 9px 20px; border-radius: 999px; font: 600 13px/1 var(--sans);
  background: rgba(255, 255, 255, .08); color: var(--ink); border: 1px solid var(--line);
}
.pill--red { background: var(--red); border-color: var(--red); color: #fff; }
.pill--gold { background: rgba(230, 194, 122, .14); border-color: var(--line-hi); color: var(--gold-hi); }
.hero__photo { position: relative; margin: 0 auto 6px; max-width: 720px; }
.hero__photo img {
  width: 100%; border-radius: 16px;
  mask-image: radial-gradient(ellipse 88% 78% at 50% 42%, #000 62%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 88% 78% at 50% 42%, #000 62%, transparent 100%);
}
.hero__title { margin: -84px 0 10px; position: relative; z-index: 3; text-shadow: 0 8px 40px rgba(0, 0, 0, .85); }
.hero__sub { color: var(--muted); max-width: 46ch; margin: 0 auto 26px; }
.hero__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--muted2); }
.hero__quote {
  font-family: var(--serif); font-size: 18px; line-height: 1.5; color: var(--ink);
  border-left: 2px solid var(--gold); padding-left: 16px; margin-bottom: 26px;
}

.hero__side { display: grid; gap: 30px; }
.hero__num { display: block; font: 400 46px/1 var(--serif); color: rgba(255, 255, 255, .13); margin-bottom: 8px; }
.hero__item p { margin: 0; font-size: 15px; color: var(--muted); }
.hero__item b { color: var(--ink); font-weight: 600; }
.hero__stat { border-left: 1px solid var(--line); padding-left: 16px; }
.hero__stat b { display: block; font: 400 30px/1 var(--serif); color: var(--gold); margin-bottom: 6px; }
.hero__stat span { font-size: 14px; color: var(--muted); }

/* ---------- секции ---------- */
.sec { padding: 84px 0; position: relative; }
.sec--soft { background: linear-gradient(180deg, transparent, var(--bg2) 12%, var(--bg2) 88%, transparent); }
.sec--top { padding: 52px 0 12px; }
.sec__head { max-width: 760px; margin-bottom: 44px; }
.sec--center .sec__head { margin-left: auto; margin-right: auto; text-align: center; }

.ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 78ch; }
.ul li { position: relative; padding-left: 28px; color: var(--muted); }
.ul li b { color: var(--ink); font-weight: 600; }
.ul li::before {
  content: ''; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px;
  background: var(--gold); transform: rotate(45deg);
}
.ul--src li::before { background: var(--muted2); }

/* карточки-бенефиты с картинками — блок «что ты получишь» */
.bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.bento__it {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center; transition: border-color .25s, background .25s, transform .25s;
}
.bento__it:hover { border-color: var(--line-hi); background: var(--card-hi); transform: translateY(-3px); }
.bento__it img {
  width: 132px; height: 132px; object-fit: cover; margin: 0 auto 16px; border-radius: 16px;
  filter: drop-shadow(0 12px 30px rgba(230, 194, 122, .18));
}
.bento__it h3 { margin-bottom: 8px; }
.bento__it p { margin: 0; color: var(--muted); font-size: 15px; }
.bento__it .tag { display: inline-block; margin-top: 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; color: inherit; transition: border-color .25s, background .25s, transform .25s;
}
a.card:hover { border-color: var(--line-hi); background: var(--card-hi); transform: translateY(-3px); color: inherit; }
.card__h { margin-bottom: 10px; }
.card__t { margin: 0; color: var(--muted); font-size: 15px; }
.card__more { display: inline-block; margin-top: 16px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.card__more::after { content: ' →'; }

.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li {
  counter-increment: s; position: relative; padding: 24px 26px 24px 84px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: '0' counter(s); position: absolute; left: 26px; top: 22px;
  font: 400 26px/1 var(--serif); color: var(--gold);
}
.steps b { display: block; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 15px; }

.links { display: flex; flex-wrap: wrap; gap: 12px; }
.pill-link {
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink); font-size: 14px; font-weight: 500; transition: border-color .2s, background .2s;
}
.pill-link:hover { border-color: var(--line-hi); background: rgba(230, 194, 122, .08); color: var(--ink); }

.status { border-radius: 14px; padding: 16px 20px; font-size: 15px; margin: 0 0 26px; border: 1px solid; background: var(--card); }
.status b { color: var(--ink); }
.status--beta { border-color: rgba(120, 220, 150, .4); }
.status--dev { border-color: rgba(230, 194, 122, .45); }
.status--plan { border-color: var(--line); }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); gap: 20px; }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column;
}
.plan--best { border-color: var(--line-hi); background: linear-gradient(180deg, rgba(230, 194, 122, .1), rgba(255, 255, 255, .03)); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.plan__h { font-family: var(--serif); font-weight: 400; font-size: 22px; text-transform: uppercase; margin-bottom: 10px; }
.plan__price { font: 400 34px/1 var(--serif); color: var(--gold); margin: 0 0 10px; }
.plan__t { color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; margin: 16px 0 26px; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--muted); }
.plan ul li { position: relative; padding-left: 26px; }
.plan ul li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); }
.plan .btn { margin-top: auto; }

/* отзывы: рамки под реальные скрины и видео */
.revs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.rev {
  border: 1px dashed var(--line); border-radius: var(--radius); min-height: 260px;
  display: grid; place-items: center; text-align: center; padding: 24px; background: var(--card);
}
.rev span { color: var(--muted2); font-size: 14px; }
.rev--video { min-height: 300px; position: relative; }
.rev--video::before {
  content: ''; width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line-hi);
  display: block; margin: 0 auto 14px;
  background: radial-gradient(circle, rgba(230, 194, 122, .18), transparent 70%);
}

/* таблицы */
.tablewrap { overflow-x: auto; margin: 26px 0; border: 1px solid var(--line); border-radius: var(--radius); }
.tbl { border-collapse: collapse; width: 100%; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.tbl th { background: rgba(255, 255, 255, .04); color: var(--ink); font-weight: 600; }
.tbl tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; }
.faq details[open] { border-color: var(--line-hi); }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--gold); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding-bottom: 18px; color: var(--muted); }

/* CTA */
.cta { position: relative; padding: 96px 0; overflow: hidden; background: var(--bg2); border-top: 1px solid var(--line); }
.cta::after {
  content: ''; position: absolute; left: 50%; bottom: -55%; width: 900px; height: 900px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(230, 194, 122, .16), transparent 62%); pointer-events: none;
}
.cta__in { text-align: center; max-width: 720px; margin: 0 auto; }
.cta__h { font-family: var(--serif); font-size: clamp(28px, 4vw, 46px); text-transform: uppercase; margin-bottom: 14px; }
.cta__t { color: var(--muted); margin-bottom: 30px; }
.cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* статья и блог */
.art { padding: 44px 0 20px; }
.art__meta { color: var(--muted2); font-size: 14px; }
.art__cover { margin: 26px 0 34px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.prose { max-width: 74ch; color: #ddd8d0; }
.prose h2 { margin-top: 46px; font-size: clamp(24px, 2.6vw, 32px); }
.prose h3 { margin-top: 30px; }
.prose ul, .prose ol { padding-left: 24px; display: grid; gap: 9px; margin: 0 0 20px; }
.prose blockquote {
  margin: 26px 0; padding: 20px 26px; background: var(--card);
  border-left: 2px solid var(--gold); border-radius: 0 14px 14px 0; font-family: var(--serif);
}
.prose blockquote p { margin: 0; }
.prose code { background: rgba(255, 255, 255, .07); padding: 2px 7px; border-radius: 5px; font-size: 15px; }
.prose a { border-bottom: 1px solid rgba(230, 194, 122, .4); }

.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.post {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card);
  display: flex; flex-direction: column; transition: border-color .25s, transform .25s;
}
.post:hover { border-color: var(--line-hi); transform: translateY(-3px); color: inherit; }
.post img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.post__b { padding: 24px; }
.post__h { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.2; margin-bottom: 10px; color: var(--ink); }
.post__t { margin: 0; color: var(--muted); font-size: 15px; }
.post__d { margin-top: 14px; font-size: 13px; color: var(--muted2); }

/* хлебные крошки */
.crumbs { margin: 0 0 22px; font-size: 13px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; }
.crumbs li + li::before { content: '/'; margin-right: 9px; color: var(--muted2); }
.crumbs a { color: var(--muted); }
.crumbs span { color: var(--muted2); }

/* подвал */
.ftr { background: var(--bg); border-top: 1px solid var(--line); padding: 64px 0 40px; }
.ftr__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.ftr__note { color: var(--muted); font-size: 15px; margin-top: 16px; max-width: 42ch; }
.ftr__nav { display: grid; gap: 12px; align-content: start; }
.ftr__nav a { color: var(--muted); font-size: 15px; }
.ftr__nav a:hover { color: var(--ink); }
.ftr__soc { display: flex; gap: 10px; margin-bottom: 18px; }
.ftr__link { display: block; color: var(--ink); font-size: 15px; margin-bottom: 10px; }
.ftr__small { color: var(--muted2); font-size: 13px; margin-top: 22px; }
.ftr__legal { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.ftr__legal a { color: var(--muted2); font-size: 13px; }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__side { grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
  .hero__title { margin-top: -54px; }
  .hero__quote { display: none; }
  .ftr__in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hdr__in { min-height: 64px; gap: 12px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--bg2);
    border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px 24px 18px; display: none;
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .navtoggle:checked ~ .nav { display: flex; }
  .burger { display: block; margin-left: auto; width: 42px; height: 42px; position: relative; cursor: pointer; }
  .burger span, .burger::before, .burger::after {
    content: ''; position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--ink); border-radius: 2px;
  }
  .burger::before { top: 14px; }
  .burger span { top: 20px; }
  .burger::after { top: 26px; }
  .hdr__contacts .icon-link:nth-child(n+2) { display: none; }
  .hero { padding: 26px 0 44px; }
  .hero__side { grid-template-columns: 1fr; gap: 22px; }
  .hero__title { margin-top: -30px; }
  .sec { padding: 56px 0; }
  .cta { padding: 66px 0; }
  .ftr__in { grid-template-columns: 1fr; }
  .bento__it img { width: 104px; height: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
