/* Тёмная тема в духе инженерных сайтов: почти чёрный фон, мягкое свечение, фиолетовый акцент. */
:root {
  --bg: #06050f;
  --fg: #ecebf5;
  --muted: #9b99b0;
  --dim: #6f6d85;
  --line: #1e1c31;
  --card: #0d0b1d;
  --card-2: #121027;
  --accent: #8b5cf6;
  --accent-2: #6d3fe0;
  --accent-text: #b9a2ff;
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 600px at 8% -8%, rgba(139, 92, 246, .14), transparent 60%),
    radial-gradient(700px 500px at 100% 30%, rgba(109, 63, 224, .08), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--fg);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-text); text-underline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; }

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

/* --- шапка --- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top .wrap { display: flex; align-items: center; height: 64px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--fg); text-decoration: none; white-space: nowrap; }
.logo svg { width: 26px; height: 26px; }
.top nav { display: flex; gap: 22px; flex: 1; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.top nav a:hover { color: var(--fg); }

/* --- кнопки --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15.5px;
  text-decoration: none; color: #fff; white-space: nowrap;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 1px rgba(185, 162, 255, .25) inset, 0 8px 24px rgba(109, 63, 224, .35);
}
.btn:hover { filter: brightness(1.1); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 10px; font-weight: 500; font-size: 14px;
  color: var(--fg); text-decoration: none; white-space: nowrap;
  background: var(--card-2); border: 1px solid rgba(139, 92, 246, .45);
}
.btn-outline:hover { border-color: var(--accent); }
.link { color: var(--accent-text); font-weight: 500; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* --- первый экран --- */
.hero {
  min-height: min(calc(100vh - 64px), 820px); display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding-top: 48px; padding-bottom: 80px; position: relative;
}
.hero::before {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%;
  left: -260px; top: -200px; border: 1px solid rgba(139, 92, 246, .12);
}
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px;
  padding: 5px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--accent-text);
  background: rgba(139, 92, 246, .08); border: 1px solid rgba(139, 92, 246, .25);
}
.badge svg { width: 15px; height: 15px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 22px; max-width: 1020px; }
.fade {
  display: block;
  background: linear-gradient(90deg, #ecebf5 10%, #8f8da6 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 19px; max-width: 690px; margin: 0 auto 32px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: center; }
.note { margin: 18px 0 0; font-size: 14px; color: var(--dim); }

/* --- разделы --- */
section { padding: 88px 0; border-top: 1px solid var(--line); }
.head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.head h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 12px; }
.head p { color: var(--muted); margin: 0; }
.eyebrow { display: block; color: var(--accent-text); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }

.cards { display: grid; gap: 16px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: 16px; padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* --- цены --- */
.card .amount { font-size: 28px; font-weight: 700; color: var(--fg); margin: 6px 0 16px; line-height: 1.2; letter-spacing: -.01em; }
.card .amount span { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.price ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.price li { margin: 8px 0; padding-left: 24px; position: relative; }
.price li::before, .checks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(139, 92, 246, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23b9a2ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.care { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.care .amount { margin: 0; white-space: nowrap; }

/* --- проекты --- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.project img { border-bottom: 1px solid var(--line); aspect-ratio: 4 / 3; object-fit: cover; background: #f8fafc; opacity: .94; }
.project .body { padding: 20px 22px 22px; }
.project h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; }
.project p { margin: 0 0 10px; color: var(--muted); font-size: 15.5px; }
.project .num { font-size: 24px; font-weight: 700; color: var(--accent-text); margin: 0 0 6px; }
.project .num span { font-size: 14px; font-weight: 400; color: var(--muted); }

/* --- шаги --- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.steps li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 999px; color: var(--accent-text); font-weight: 700; margin-bottom: 14px;
  background: rgba(139, 92, 246, .12); border: 1px solid rgba(139, 92, 246, .35);
}
.steps h3 { margin: 0 0 6px; font-size: 17px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* --- команда --- */
.about { display: grid; grid-template-columns: 3fr 2fr; gap: 40px; align-items: start; }
.about h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 16px; }
.about p { margin: 0 0 14px; color: var(--muted); }
.about p b { color: var(--fg); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.facts li { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.facts b { display: block; color: var(--accent-text); }
.facts span { color: var(--muted); font-size: 15px; }

/* --- вопросы --- */
.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.faq details[open] { border-color: rgba(139, 92, 246, .35); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 2px; color: var(--muted); }

/* --- призыв в конце --- */
.final { text-align: center; }
.final h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 14px; }
.final p { color: var(--muted); margin: 0 auto 30px; max-width: 620px; }

/* --- страница «Discuss your project» --- */
.discuss { padding-top: 72px; padding-bottom: 96px; }
.discuss h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 40px; }
.discuss h1 .fade { display: inline; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; color: var(--muted); }
.checks li { position: relative; padding-left: 26px; margin: 0 0 12px; }
.small { color: var(--dim); font-size: 14.5px; margin: 0 0 6px; }
.panel { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.panel h2 { font-size: 21px; margin: 0 0 6px; }
.panel p { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.panel .btn { width: 100%; justify-content: center; }
.option + .option { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.option .btn-outline { width: 100%; justify-content: center; padding: 11px 16px; font-size: 15px; }
.fine { text-align: center; margin: 64px auto 0; max-width: 820px; }
.fine p { color: var(--muted); margin: 0 0 8px; font-size: 18px; }
.fine p + p { color: var(--dim); font-size: 15.5px; }

footer { padding: 32px 0 44px; color: var(--dim); font-size: 14px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }

@media (max-width: 960px) {
  .cards.four, .steps { grid-template-columns: repeat(2, 1fr); }
  .cards.three, .projects { grid-template-columns: 1fr; }
  .about, .split { grid-template-columns: 1fr; }
  .top nav { display: none; }
  .top .wrap { justify-content: space-between; }
}

@media (max-width: 600px) {
  .cards.four, .steps { grid-template-columns: 1fr; }
  .care { flex-direction: column; align-items: flex-start; }
  .hero { min-height: auto; padding-top: 64px; padding-bottom: 72px; }
  section { padding: 64px 0; }
  .top .btn-outline { padding: 7px 12px; font-size: 13px; }
}
