/* OnlineProTech: сборка и обслуживание компьютеров */
:root {
  --paper: #f4f5f7;
  --surface: #ffffff;
  --ink: #171c26;
  --muted: #586273;
  --rule: #d5dae2;
  --cobalt: #2442c4;
  --cobalt-deep: #1a3199;
  --amber: #e2a324;
  --panel: #1b2130;
  --panel-rule: #2e3647;
  --panel-text: #e6e9f0;
  --panel-muted: #9aa3b4;
  --cpu: #7f97ff;
  --font: "Onest", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-deep); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -10000px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 14px; }
.skip:focus { left: 12px; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.logo svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover { color: var(--cobalt); text-decoration: underline; }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
h1 { max-width: 15ch; margin-bottom: 22px; font-size: clamp(34px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.035em; }
h2 { margin-bottom: 12px; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }

.hero { padding: 72px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.lead { max-width: 33em; margin: 0 0 32px; font-size: 19px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.button { display: inline-block; padding: 14px 26px; border-radius: 6px; background: var(--cobalt); color: #fff; font-weight: 700; text-decoration: none; }
.button:hover { background: var(--cobalt-deep); color: #fff; }

.test { margin: 0; padding: 26px 26px 22px; border-radius: 12px; background: var(--panel); color: var(--panel-text); }
.test h2 { margin: 0; font-size: 17px; line-height: 1.4; letter-spacing: 0; }
.test .meta { margin: 2px 0 18px; font-size: 14px; color: var(--panel-muted); }
.chart { display: block; width: 100%; height: auto; }
.chart .grid line { stroke: var(--panel-rule); stroke-width: 1; }
.chart .axis text { fill: var(--panel-muted); font-family: var(--font); font-size: 12px; }
.chart .line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 2.4s ease-out 0.3s forwards; }
.chart .cpu { stroke: var(--cpu); }
.chart .gpu { stroke: var(--amber); animation-delay: 0.6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 14px; height: 3px; border-radius: 2px; }
.swatch.cpu { background: var(--cpu); }
.swatch.gpu { background: var(--amber); }
.test .caption { margin: 10px 0 0; font-size: 14px; color: var(--panel-muted); }

section[id] { padding: 72px 0; border-top: 1px solid var(--rule); scroll-margin-top: 16px; }
.intro { max-width: 40em; margin: 0 0 36px; color: var(--muted); }

.price-list { max-width: 900px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.price-list .name { font-weight: 600; }
.price-list small { display: block; margin-top: 2px; font-size: 15px; font-weight: 400; color: var(--muted); }
.price-list .price { font-weight: 700; white-space: nowrap; text-align: right; }

.builds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.build p { margin: 6px 0 16px; font-size: 15px; color: var(--muted); }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec th, .spec td { padding: 9px 0; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 1px solid var(--rule); }
.spec th { width: 36%; padding-right: 14px; font-weight: 500; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 14px; border: 2px solid var(--cobalt); border-radius: 50%; color: var(--cobalt); font-weight: 700; }
.steps p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }

.contact-mail { display: inline-block; font-size: clamp(26px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; text-decoration: none; overflow-wrap: anywhere; }
.contact-mail:hover { text-decoration: underline; }
.hours { margin: 12px 0 0; color: var(--muted); }

.site-footer { padding: 28px 0 44px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }

.notfound { padding: 96px 0 120px; }
.notfound h1 { max-width: none; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .builds { grid-template-columns: minmax(0, 1fr); gap: 44px; max-width: 640px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .hero { padding: 44px 0 56px; }
  .lead { font-size: 17px; }
  section[id] { padding: 52px 0; }
  .price-list li { flex-direction: column; gap: 2px; }
  .price-list .price { text-align: left; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .test { padding: 20px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chart .line { animation: none; stroke-dashoffset: 0; }
}
