:root {
  --bg: #0a0f17;
  --bg-2: #0f1622;
  --card: #131c2a;
  --line: #1f2b3d;
  --fg: #e7eef7;
  --muted: #95a3b6;
  --accent: #2ea8ff;
  --accent-2: #00e0ff;
  --ok: #38d996;
  --danger: #ff6b6b;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; color: var(--fg); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; background: rgba(10, 15, 23, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--fg); text-decoration: none; letter-spacing: .3px; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04121f; font: 700 14px/1 Consolas, monospace; box-shadow: 0 0 18px rgba(46, 168, 255, .45); }
nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
nav a { color: var(--fg); text-decoration: none; opacity: .85; }
nav a:hover, nav a.active { opacity: 1; color: var(--accent-2); }
nav .nav-cta { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent-2); opacity: 1; }

/* первый экран */
.hero { position: relative; overflow: hidden; background: radial-gradient(1100px 500px at 75% 40%, rgba(46, 168, 255, .18), transparent 60%), radial-gradient(700px 400px at 10% 90%, rgba(0, 224, 255, .08), transparent 60%), var(--bg); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding-top: 48px; padding-bottom: 32px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font: 600 13px/1 Consolas, monospace; color: var(--accent-2); background: rgba(0, 224, 255, .08); border: 1px solid rgba(0, 224, 255, .25); padding: 7px 12px; border-radius: 999px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.12; margin: 18px 0 16px; }
.hero h1 span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 600px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn { display: inline-block; padding: 13px 26px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #1a7fe0); color: #fff; box-shadow: 0 8px 28px rgba(46, 168, 255, .35); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { color: var(--fg); border: 1px solid var(--line); background: var(--bg-2); }
.hero-badges { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 30px; color: var(--muted); font-size: .95rem; }
.hero-badges span::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.hero-art { position: relative; justify-self: center; max-width: 360px; }
.hero-art img { border-radius: 22px; mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 60%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 60%, transparent 100%); }
.terminal { position: absolute; left: -40px; bottom: 60px; background: rgba(8, 14, 22, .92); border: 1px solid rgba(46, 168, 255, .35); border-radius: 10px; padding: 10px 14px; font: 13px/1.5 Consolas, monospace; color: #b9e6ff; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.terminal b { color: var(--ok); font-weight: 400; }

/* секции */
section { padding: 72px 0; scroll-margin-top: 64px; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 700px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 10px; }
.section-head p { color: var(--muted); margin: 0; }
.kicker { font: 600 13px/1 Consolas, monospace; color: var(--accent-2); text-transform: uppercase; letter-spacing: 1.5px; }

/* услуги */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.service:hover { transform: translateY(-4px); border-color: rgba(46, 168, 255, .5); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.service img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.9); }
.service-body { padding: 18px 20px 22px; }
.service h3 { margin: 0 0 8px; font-size: 1.15rem; }
.service p { margin: 0; color: var(--muted); font-size: .97rem; }
.service ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: .93rem; }

/* полоса с фото */
.band { position: relative; padding: 90px 0; background: linear-gradient(90deg, rgba(10, 15, 23, .96) 35%, rgba(10, 15, 23, .55)), url("/img/racks-dark.webp") center / cover no-repeat; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap { max-width: 1140px; }
.band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 620px; margin: 10px 0 14px; }
.band p { color: var(--muted); max-width: 560px; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); gap: 14px 30px; margin-top: 24px; }
.features div { padding-left: 34px; position: relative; }
.features div::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px; background: rgba(46, 168, 255, .15); border: 1px solid var(--accent); }
.features b { display: block; }
.features span { color: var(--muted); font-size: .93rem; }

/* шаги */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font: 700 2rem/1 Consolas, monospace; color: rgba(46, 168, 255, .35); display: block; margin-bottom: 10px; }
.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .94rem; }

/* технологии */
.tech { display: flex; flex-wrap: wrap; gap: 10px; }
.tech span { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .95rem; }

/* форматы работы */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 18px 50px rgba(46, 168, 255, .15); }
.plan h3 { margin: 0 0 6px; }
.plan .price { color: var(--accent-2); font-weight: 600; margin-bottom: 14px; }
.plan ul { margin: 0 0 20px; padding-left: 18px; color: var(--muted); flex: 1; }
.plan li { margin: 6px 0; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* форма */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: start; }
.contact-info img { border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 20px; }
.contact-info p { color: var(--muted); }
.contact-mail { font-size: 1.25rem; font-weight: 600; }
form.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .92rem; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46, 168, 255, .2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--muted); font-size: .85rem; margin: 12px 0 0; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 10px; display: none; }
.form-status.ok { display: block; background: rgba(56, 217, 150, .1); border: 1px solid rgba(56, 217, 150, .4); color: var(--ok); }
.form-status.err { display: block; background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .4); color: var(--danger); }
button[disabled] { opacity: .6; cursor: progress; }

/* всплывающее окно заявки */
html.modal-open { overflow: hidden; }
dialog.modal { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 30px 30px 26px; border: 1px solid rgba(46, 168, 255, .45); border-radius: 18px; background: var(--bg-2); color: var(--fg); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 40px rgba(46, 168, 255, .15); }
dialog.modal[open] { animation: modal-in .18s ease-out; }
dialog.modal::backdrop { background: rgba(3, 7, 12, .72); backdrop-filter: blur(4px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal h2 { margin: 8px 0 6px; font-size: 1.6rem; }
.modal-lead { color: var(--muted); margin: 0 0 20px; }
.modal form.contact-form { padding: 0; border: 0; background: none; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.modal-close:hover { border-color: var(--accent); color: var(--accent-2); }
@media (max-width: 620px) { dialog.modal { padding: 24px 18px 20px; } }

/* страницы */
.page-hero { padding: 56px 0 36px; background: radial-gradient(800px 300px at 80% 0%, rgba(46, 168, 255, .15), transparent 70%); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 10px 0; }
.page-hero p { color: var(--muted); max-width: 680px; margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose p, .prose li { color: var(--muted); }
.prose h2 { margin-top: 0; }

/* подвал */
.bottom { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: .92rem; }
.bottom .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.bottom a { color: var(--muted); }

@media (max-width: 900px) {
  .hero .wrap, .contact-grid, .split { grid-template-columns: 1fr; }
  .hero-art { max-width: 260px; order: -1; }
  .terminal { left: 0; bottom: 20px; }
  .services, .plans { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 52px 0; }
  .services, .plans, .steps, .features, .row2 { grid-template-columns: 1fr; }
  nav { gap: 14px; font-size: .95rem; }
  nav .nav-cta { display: none; }
  .hero-art { max-width: 210px; }
  .hero .wrap { padding-top: 24px; }
  .terminal { display: none; }
}
