/* Platon Group — общая таблица стилей страниц услуг.
   Дизайн-система совпадает с index.html (тёмный + фиолетовый акцент, Space Grotesk / JetBrains Mono). */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:            #050508;
  --bg-2:          #0b0b12;
  --bg-card:       #0f0f1a;
  --purple:        #7c3aed;
  --purple-light:  #a855f7;
  --purple-glow:   rgba(124,58,237,0.12);
  --purple-border: rgba(124,58,237,0.25);
  --white:         #ffffff;
  --w70:           rgba(255,255,255,0.7);
  --w40:           rgba(255,255,255,0.4);
  --w10:           rgba(255,255,255,0.08);
  --green:         #22c55e;
  --mono:          'JetBrains Mono', ui-monospace, monospace;
  --sans:          'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --pad:           clamp(16px, 4vw, 48px);
  --maxw:          1080px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--white);
  font-family: var(--sans); line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(124,58,237,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
}
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 2px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); position: relative; z-index: 1; }

/* ── ШАПКА ── */
header {
  position: sticky; top: 0; z-index: 200;
  padding: 12px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(5,5,8,0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--w10);
}
.logo { font-family: var(--mono); font-size: 16px; font-weight: 700; letter-spacing: 0.1em; text-decoration: none; color: var(--white); }
.logo em { color: var(--purple-light); font-style: normal; }
header nav { display: flex; gap: 22px; }
header nav a { color: var(--w70); text-decoration: none; font-size: 14px; transition: color .2s; }
header nav a:hover { color: var(--white); }
@media (max-width: 860px) { header nav { display: none; } }

/* ── КНОПКИ ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px; border: 1px solid transparent;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover { background: var(--purple-light); transform: translateY(-1px); }
.btn-outline { border-color: var(--purple-border); color: var(--white); background: transparent; }
.btn-outline:hover { border-color: var(--purple-light); background: var(--purple-glow); }
.btn-full { width: 100%; }

/* ── ХЛЕБНЫЕ КРОШКИ ── */
.crumbs { font-size: 13px; color: var(--w40); padding: 22px 0 0; }
.crumbs a { color: var(--w40); text-decoration: none; }
.crumbs a:hover { color: var(--purple-light); }
.crumbs span { margin: 0 7px; }

/* ── HERO СТРАНИЦЫ ── */
.page-hero { padding: 34px 0 52px; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--purple-light);
  border: 1px solid var(--purple-border); border-radius: 100px; padding: 6px 14px; margin-bottom: 20px;
}
h1 { font-size: clamp(30px, 6vw, 52px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 18px; }
h1 .accent { color: var(--purple-light); }
.lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--w70); max-width: 680px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── СЕКЦИИ ── */
section { padding: 52px 0; position: relative; z-index: 1; }
h2 { font-size: clamp(24px, 4vw, 34px); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 14px; }
h3 { font-size: clamp(17px, 2.4vw, 20px); margin-bottom: 8px; }
.section-sub { color: var(--w70); max-width: 720px; margin-bottom: 32px; }
p { color: var(--w70); margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }
strong { color: var(--white); font-weight: 600; }
a { color: var(--purple-light); }
.divider { height: 1px; background: var(--w10); }

/* ── КАРТОЧКИ ── */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--bg-card); border: 1px solid var(--w10); border-radius: 16px;
  padding: 24px; transition: border-color .25s;
}
.card:hover { border-color: var(--purple-border); }
.card ul, .card ol { padding-left: 20px; color: var(--w70); }
.card li { margin-bottom: 7px; }
.card li:last-child { margin-bottom: 0; }

/* ── СПИСОК С ГАЛОЧКАМИ ── */
.checks { list-style: none; padding: 0; }
.checks li {
  position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--w70);
}
.checks li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 700;
}

/* ── ЦЕНЫ ── */
.price-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.price-card {
  background: var(--bg-card); border: 1px solid var(--w10); border-radius: 16px; padding: 26px;
  display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--purple-border); background: linear-gradient(180deg, var(--purple-glow), var(--bg-card) 60%); }
.price-name { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.price-from { font-family: var(--mono); font-size: 30px; font-weight: 700; color: var(--purple-light); margin: 10px 0 14px; }
.price-note { color: var(--w40); font-size: 14px; margin-bottom: 18px; }
.price-card .checks { margin-bottom: 20px; flex-grow: 1; }
.price-card .checks li { font-size: 14px; margin-bottom: 9px; }
.price-disclaimer { color: var(--w40); font-size: 14px; margin-top: 22px; }

/* ── ЭТАПЫ ── */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step {
  position: relative; padding: 20px 24px 20px 62px;
  background: var(--bg-card); border: 1px solid var(--w10); border-radius: 14px;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 22px; top: 20px;
  font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--purple-light);
}
.step h3 { margin-bottom: 5px; }
.step p { font-size: 15px; margin: 0; }

/* ── FAQ ── */
.faq details {
  background: var(--bg-card); border: 1px solid var(--w10); border-radius: 14px;
  padding: 18px 22px; margin-bottom: 12px;
}
.faq details[open] { border-color: var(--purple-border); }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--purple-light); font-size: 22px; font-weight: 400; flex-shrink: 0; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 12px; font-size: 15px; }

/* ── CTA ── */
.cta-box {
  background: linear-gradient(135deg, var(--purple-glow), transparent 70%), var(--bg-card);
  border: 1px solid var(--purple-border); border-radius: 20px;
  padding: clamp(28px, 5vw, 48px); text-align: center;
}
.cta-box h2 { margin-bottom: 12px; }
.cta-box p { max-width: 560px; margin: 0 auto 24px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ── ССЫЛКИ НА ДРУГИЕ УСЛУГИ ── */
.xlinks { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.xlink {
  display: block; padding: 16px 18px; border: 1px solid var(--w10); border-radius: 12px;
  text-decoration: none; color: var(--white); font-size: 15px; font-weight: 500; transition: all .2s;
}
.xlink:hover { border-color: var(--purple-border); background: var(--purple-glow); }
.xlink small { display: block; color: var(--w40); font-size: 13px; font-weight: 400; margin-top: 3px; }

/* ── ПОДВАЛ ── */
footer {
  border-top: 1px solid var(--w10); padding: 32px var(--pad);
  display: flex; flex-wrap: wrap; gap: 16px 26px;
  align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
}
.foot-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-nav a { color: var(--w70); text-decoration: none; font-size: 14px; }
.foot-nav a:hover { color: var(--white); }
.foot-copy { color: var(--w40); font-size: 14px; }

/* ── ПЛАВАЮЩАЯ КНОПКА TELEGRAM ── */
.tg-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 250;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 20px; border-radius: 100px;
  background: var(--purple); color: var(--white); text-decoration: none;
  font-size: 15px; font-weight: 600; box-shadow: 0 8px 28px rgba(124,58,237,0.4);
  transition: transform .2s;
}
.tg-float:hover { transform: translateY(-2px); }
.tg-float svg { width: 20px; height: 20px; }
@media (max-width: 560px) { .tg-float span { display: none; } .tg-float { padding: 14px; } }
