:root {
  color-scheme: light;
  --milano: #b3121f;
  --milano-deep: #8e0d17;
  --ink: #1a1c20;
  --ink-2: #4a4f58;
  --steel: #8a9099;
  --paper: #f4f5f7;
  --line: #dcdfe4;
  --white: #ffffff;
  --ok: #1c8c4e;
  --down: #c77700;
  --blocked: #b3121f;
  --fixed: #2462c7;
  --wide: "Unbounded", "Arial Black", sans-serif;
  --text: "Golos Text", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--fixed); outline-offset: 2px; }
img { max-width: 100%; display: block; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.wrap.wide, .hero > .wrap { max-width: 1080px; }
h1, h2, h3 { font-family: var(--wide); font-weight: 600; line-height: 1.15; margin: 0; }
h2 { font-size: 22px; margin: 56px 0 18px; }
p { margin: 0 0 14px; max-width: 64ch; }

.btn {
  display: inline-block;
  font: 600 15px/1 var(--text);
  padding: 13px 18px;
  border-radius: 10px;
  border: 0;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.small { padding: 9px 12px; font-size: 14px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); text-decoration: underline; cursor: pointer; }

/* ---------- лендинг ---------- */

.hero {
  background: var(--milano);
  color: var(--white);
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 0 44px;
}
.hero > .wrap { flex: 1; width: 100%; display: flex; flex-direction: column; }
.hero .model { font: 500 15px/1 var(--wide); margin-bottom: auto; letter-spacing: .02em; }
.hero h1 {
  font-size: clamp(64px, 13vw, 170px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.02em;
  margin: 40px 0 18px;
}
.hero .lead { font-size: 19px; max-width: 34ch; opacity: .92; margin: 0; }

.hero-row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px; }
.hero-text h1 { margin-top: 0; }
.tach {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
  width: 300px;
  justify-self: end;
  -webkit-tap-highlight-color: transparent;
}
.tach svg { width: 100%; display: block; overflow: visible; }
.tach-hint { display: block; font-size: 13px; opacity: .7; margin-top: 4px; text-align: center; }
.tach-face { fill: rgba(0, 0, 0, .2); }
.tach-red { fill: none; stroke: #ffd400; stroke-width: 8; }
.tach-major { stroke: #fff; stroke-width: 3.5; stroke-linecap: round; }
.tach-minor { stroke: rgba(255, 255, 255, .6); stroke-width: 2; stroke-linecap: round; }
.tach-num { fill: #fff; font: 600 19px var(--wide); text-anchor: middle; dominant-baseline: central; }
.tach-num.hot { fill: #ffd400; }
.tach-needle { stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.tach-hub { fill: #fff; }
.tach-rpm { fill: #fff; font: 700 30px var(--wide); text-anchor: middle; font-variant-numeric: tabular-nums; }
.tach-unit { fill: rgba(255, 255, 255, .75); font: 400 13px var(--text); text-anchor: middle; }
.tach-vtec { fill: rgba(255, 255, 255, .22); font: 700 15px var(--wide); text-anchor: middle; letter-spacing: .04em; }
.tach-vtec.on { fill: #ffd400; }

.specs { margin: 0; max-width: 720px; }
.specs div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.specs dt { color: var(--ink-2); }
.specs dd { margin: 0; font-weight: 600; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.muted-note { color: var(--ink-2); font-size: 15px; margin-top: -8px; }
.photos figure { margin: 0; }
.photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; background: var(--line); }
.photos .ph { display: block; cursor: zoom-in; }
.lb {
  border: 0;
  padding: 0;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100dvh;
  background: #0c0d0f;
  inset: 0;
  margin: 0;
  color: #fff;
}
.lb[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lb::backdrop { background: #0c0d0f; }
.lb img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 110px); object-fit: contain; border-radius: 4px; }
.lb-cap { margin: 12px 16px 0; min-height: 1.5em; text-align: center; opacity: .85; }
.lb button {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font: 400 30px/1 var(--text);
  cursor: pointer;
}
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 520px) {
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
}
.photos figcaption { font-size: 14px; color: var(--ink-2); margin-top: 6px; }

.foot { color: var(--steel); font-size: 14px; padding-top: 64px; padding-bottom: 40px; }

/* ---------- страница VPN ---------- */

.top { display: flex; justify-content: space-between; align-items: baseline; padding: 22px 0 18px; gap: 12px; }
.top .hi { font: 600 17px/1.2 var(--wide); }
.top form { margin: 0; font-size: 14px; }

.status { color: var(--white); border-radius: 18px; padding: 26px 24px 24px; }
.status.ok { background: var(--ok); }
.status.down { background: var(--down); }
.status.blocked { background: var(--blocked); }
.status.fixed { background: var(--fixed); }
.status h1 { font-size: clamp(30px, 8vw, 46px); font-weight: 700; margin-bottom: 12px; }
.status p { margin: 0 0 6px; opacity: .95; }
.status .note { font-weight: 600; opacity: 1; margin-top: 12px; }
.status .since { font-size: 14px; opacity: .8; margin-top: 12px; }

.love { margin-top: 36px; font-size: 18px; }

.file { background: var(--white); border-radius: 14px; padding: 20px; margin-bottom: 12px; }
.file h3 { font-size: 18px; margin-bottom: 4px; }
.file .for { color: var(--ink-2); margin: 0 0 14px; }
.file .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.file .plain {
  font: 600 17px/1.3 var(--text);
  word-break: break-all;
  background: var(--paper);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 14px;
}
.file details { margin-top: 12px; }
.file summary { cursor: pointer; color: var(--ink-2); font-size: 15px; }
.file .qr { margin-top: 12px; width: 180px; }
.file .meta { color: var(--steel); font-size: 13px; margin-top: 12px; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tabs button {
  font: 600 15px/1 var(--text);
  padding: 11px 15px;
  border-radius: 999px;
  border: 0;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.panel { background: var(--white); border-radius: 14px; padding: 22px 22px 8px; }
.panel[hidden] { display: none; }
.panel .apps { list-style: none; padding: 0; margin: 0 0 18px; }
.panel .apps li { margin-bottom: 8px; }
.panel .apps a { font-weight: 600; }
.panel ol { padding-left: 22px; margin: 0 0 14px; }
.panel ol li { margin-bottom: 12px; padding-left: 4px; }
.contact { margin-top: 18px; color: var(--ink-2); }

.join { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.join h1 { font-size: clamp(28px, 7vw, 40px); margin-bottom: 12px; }
.join form { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.join input {
  flex: 1 1 220px;
  font: 400 18px/1 var(--text);
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--white);
}

@media (max-width: 760px) {
  .hero-row { grid-template-columns: 1fr; }
  .tach { width: min(280px, 80vw); justify-self: start; margin-top: 8px; }
}
@media (max-width: 520px) {
  .specs div { grid-template-columns: 110px 1fr; }
  .status { padding: 22px 18px 20px; }
}
