/* Apogee Media — общий стиль сайта */
:root {
  --bg: #0b0b14;
  --bg-2: #12121f;
  --card: #171728;
  --line: #26263d;
  --text: #ecebf5;
  --muted: #a09fb8;
  --accent: #8b5cf6;
  --accent-2: #f472b6;
  --grad: linear-gradient(120deg, #8b5cf6 0%, #d946ef 55%, #f472b6 100%);
  --radius: 18px;
  --max: 1160px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; } /* длинные слова не вылезают за край на узких экранах */
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 11, 20, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.logo svg { flex: none; }
.nav ul { display: flex; gap: 28px; list-style: none; font-size: 15px; color: var(--muted); }
.nav ul a:hover, .nav ul a.active { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 28px -10px rgba(217, 70, 239, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -10px rgba(217, 70, 239, .85); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-white { background: #fff; color: #1a1033; }
.btn-white:hover { transform: translateY(-2px); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 110px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(139, 92, 246, .35), transparent 62%); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -200px; bottom: -300px; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(244, 114, 182, .18), transparent 62%); pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero.hero-sm { padding: 64px 0 80px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: 13px; font-weight: 600;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }
h1 { font-size: clamp(38px, 6.4vw, 72px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin: 22px 0 22px; max-width: 880px; }
.hero-sm h1 { font-size: clamp(34px, 5.4vw, 60px); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 680px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 56px; }
.hero-tags span { padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumbs a:hover { color: var(--text); }
.crumbs span { opacity: .5; }

/* ---------- sections ---------- */
section { padding: 96px 0; scroll-margin-top: 68px; } /* чтобы шапка не закрывала начало раздела */
.sec-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 680px; margin-bottom: 52px; }
.sec-head .kicker { color: var(--accent-2); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -.03em; margin: 10px 0 14px; font-weight: 800; }
.sec-head p { color: var(--muted); font-size: 18px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: rgba(139, 92, 246, .55); transform: translateY(-3px); }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px;
  background: linear-gradient(135deg, rgba(139,92,246,.22), rgba(244,114,182,.16)); border: 1px solid var(--line); margin-bottom: 20px;
}
.card h3 { font-size: 20px; letter-spacing: -.01em; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card ul { list-style: none; margin-top: 16px; display: grid; gap: 6px; font-size: 14.5px; color: var(--muted); }
.card li::before { content: "→ "; color: var(--accent); }
.card.featured { background: linear-gradient(160deg, rgba(139,92,246,.18), rgba(244,114,182,.08) 70%), var(--card); border-color: rgba(139,92,246,.5); }
a.card { display: flex; flex-direction: column; }
.card .more { margin-top: auto; padding-top: 20px; font-weight: 700; font-size: 15px; color: var(--accent-2); }
a.card:hover .more { text-decoration: underline; }

.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature .ico { margin: 0; flex: none; }
.feature h3 { font-size: 18px; }

.step { position: relative; }
.step .num { font-size: 44px; font-weight: 800; line-height: 1; margin-bottom: 18px; }

.checklist { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.checklist li { display: flex; gap: 12px; font-size: 17px; }
.checklist li::before {
  content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 14px; font-weight: 800; margin-top: 1px;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; }
.faq details[open] { border-color: rgba(139, 92, 246, .5); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 22px; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 12px; }

/* ---------- price & CTA ---------- */
.price-note {
  margin-top: 28px; padding: 20px 24px; border-radius: var(--radius);
  border: 1px dashed rgba(139, 92, 246, .5); color: var(--muted); font-size: 16px;
}
.price-note b { color: var(--text); }
.price-note a { color: var(--accent-2); font-weight: 700; }
.cta-box {
  position: relative; overflow: hidden; border-radius: 28px; padding: 64px 56px;
  background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-box h2 { margin: 0 0 10px; color: #fff; }
.cta-box p { color: rgba(255,255,255,.88); font-size: 18px; max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-outline-white { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.12); }

/* ---------- contacts ---------- */
.contacts { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; }
.contact-item .ico { margin: 0; flex: none; width: 46px; height: 46px; font-size: 20px; }
.contact-item small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.contact-item b { font-size: 17px; font-weight: 700; word-break: break-word; }
a.contact-item:hover b { color: var(--accent-2); }

/* ---------- «Почему мы» — отдельное облако ---------- */
.why-cloud {
  position: relative; overflow: hidden; border-radius: 40px; padding: 64px 56px;
  background:
    radial-gradient(600px 320px at 12% 0%, rgba(139, 92, 246, .30), transparent 70%),
    radial-gradient(520px 300px at 95% 100%, rgba(244, 114, 182, .22), transparent 70%),
    linear-gradient(180deg, #1a1830, #13121f);
  border: 1px solid rgba(139, 92, 246, .45);
  box-shadow: 0 30px 80px -30px rgba(139, 92, 246, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.why-cloud-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.why-cloud-head .kicker { color: var(--accent-2); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.why-cloud-head p { color: var(--muted); font-size: 18px; }
.why-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-item {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 22px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); backdrop-filter: blur(6px);
}
.why-item .ico {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 21px;
  background: var(--grad); box-shadow: 0 8px 22px -8px rgba(217, 70, 239, .8);
}
.why-item h3 { font-size: 17px; margin-bottom: 6px; }
.why-item p { color: var(--muted); font-size: 15px; }

/* ---------- страница контактов ---------- */
.contact-card { display: flex; flex-direction: column; gap: 4px; }
.contact-card small { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.contact-card b { font-size: 22px; letter-spacing: -.01em; word-break: break-word; }
.contact-card p { margin-top: 10px; }
a.contact-card:hover b { color: var(--accent-2); }

/* ---------- footer ---------- */
footer { padding: 56px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { color: var(--text); font-size: 15px; margin-bottom: 14px; }
.foot-grid ul { list-style: none; display: grid; gap: 8px; }
.foot-grid a:hover { color: var(--text); }
.foot-grid .logo { color: var(--text); margin-bottom: 12px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contacts { grid-template-columns: 1fr; }
  .nav ul { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .why-items { grid-template-columns: repeat(2, 1fr); }
  .why-cloud { padding: 48px 32px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .hero { padding: 72px 0 64px; }
  .hero.hero-sm { padding: 40px 0 56px; }
  .cta-box { padding: 40px 24px; }
  .cta-actions .btn { flex: 1 1 100%; }
  .card { padding: 24px; }
  .feature { flex-direction: column; gap: 14px; }
  .nav .btn { padding: 10px 16px; font-size: 14px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .why-items { grid-template-columns: 1fr; }
  .why-cloud { padding: 36px 18px; border-radius: 28px; }
  .why-item { padding: 18px; }
}
@media (max-width: 400px) {
  .nav { gap: 10px; }
  .logo { font-size: 16px; gap: 8px; }
  .logo svg { width: 24px; height: 24px; }
  .nav .btn { padding: 9px 13px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
