:root {
  --bg: #000;
  --fg: #fff;
  --muted: #9a9a9a;
  --dim: #5c5c5c;
  --line: #262626;
  --card: #0b0b0b;
  --px: "Handjet", "JetBrains Mono", monospace;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Manrope", system-ui, sans-serif;
  --pad: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* faint pixel dot grid */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(#ffffff14 1px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: -1;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--px); font-weight: 800; line-height: .95; letter-spacing: .01em; }
[hidden] { display: none !important; }
::selection { background: #fff; color: #000; }

/* ---------- pixel art helpers ---------- */
[data-pixel] svg, .ico svg { display: block; width: 100%; height: 100%; shape-rendering: crispEdges; }

/* ---------- corner webs ---------- */
.web {
  position: absolute;
  width: min(560px, 80vw);
  aspect-ratio: 1;
  image-rendering: pixelated;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
}
.web--tl { top: 0; left: 0; }
.web--br { top: min(820px, 160vw); right: 0; opacity: .3; }

/* ---------- descending spider ---------- */
.dangler {
  position: fixed;
  top: 63px; right: clamp(10px, 3vw, 40px);
  z-index: 15;
  pointer-events: none;
  display: flex; flex-direction: column; align-items: center;
}
.dangler__thread { width: 2px; height: 0; background: #fff; }
.dangler__spider { width: 34px; height: 30px; margin-top: -2px; animation: sway 3s ease-in-out infinite; transform-origin: 50% -40px; }
@keyframes sway { 50% { transform: rotate(6deg); } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--pad);
  background: #000000d9;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 26px/1 var(--px); text-decoration: none; letter-spacing: .05em; }
.logo__spider { width: 26px; height: 23px; }
.nav__links { display: flex; gap: 28px; font: 400 14px var(--mono); }
.nav__links a { text-decoration: none; color: var(--muted); transition: color .15s; }
.nav__links a:hover { color: var(--fg); }

/* ---------- buttons ---------- */
.btn {
  --s: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px;
  font: 600 15px/1 var(--mono);
  text-decoration: none;
  color: #000; background: #fff;
  border: 2px solid #fff;
  cursor: pointer;
  /* stepped pixel corners */
  clip-path: polygon(0 var(--s), var(--s) var(--s), var(--s) 0, calc(100% - var(--s)) 0, calc(100% - var(--s)) var(--s), 100% var(--s), 100% calc(100% - var(--s)), calc(100% - var(--s)) calc(100% - var(--s)), calc(100% - var(--s)) 100%, var(--s) 100%, var(--s) calc(100% - var(--s)), 0 calc(100% - var(--s)));
  transition: transform .12s, background .15s, color .15s;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn:active { transform: translate(0, 0); }
.btn--ghost { background: transparent; color: #fff; }
.btn--ghost:hover { background: #fff; color: #000; }
.btn--sm { padding: 10px 16px; font-size: 13px; }
.btn--invert { background: #000; color: #fff; border-color: #000; }
.btn--wide { width: 100%; }
.btn:focus-visible, .tab:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px dashed #fff; outline-offset: 4px; }

.link { font: 600 14px var(--mono); text-decoration: none; border-bottom: 1px dashed var(--dim); padding-bottom: 2px; }
.link:hover { border-color: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center;
  min-height: calc(100svh - 64px);
  padding: 72px var(--pad) 56px;
  max-width: 1280px; margin: 0 auto;
}
.hero__text { text-shadow: 0 0 14px #000, 0 0 4px #000, 0 0 2px #000; }
.prompt { display: inline-block; font: 600 14px/1.2 var(--mono); color: #fff; background: #000; border: 1px solid #fff; padding: 5px 10px; text-shadow: none; margin-bottom: 22px; }
.prompt__sign { color: #fff; }
.cursor { animation: blink 1s steps(1) infinite; color: #fff; }
@keyframes blink { 50% { opacity: 0; } }
.hero h1 { font-size: clamp(54px, 8.4vw, 116px); max-width: 12ch; }
.hero__sub { max-width: 52ch; color: #cfcfcf; font-size: clamp(16px, 1.6vw, 19px); margin: 24px 0 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.speed { list-style: none; display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 48px; padding-top: 28px; border-top: 1px dashed var(--line); }
.speed li { display: flex; align-items: center; gap: 10px; }
.speed b { font: 800 clamp(48px, 5.6vw, 68px)/1 var(--px); }
.speed span { font: 400 12px/1.3 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.hero__art { position: relative; height: min(620px, 72svh); display: flex; justify-content: center; }
.hang { position: relative; display: flex; flex-direction: column; align-items: center; animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(14px); } }
.hang__thread { width: 2px; height: 90px; background: #fff; margin-top: -72px; }
.hang__spider { width: 64px; height: 56px; margin-top: -4px; }
.plate {
  margin-top: 6px;
  border: 2px solid #fff;
  padding: 22px 14px;
  position: relative;
}
.plate::before, .plate::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid #fff; }
.plate::before { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.plate::after { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }
.plate span { writing-mode: vertical-rl; font: 800 clamp(64px, 6.4vw, 92px)/1 var(--px); letter-spacing: .06em; }
.tag { font: 400 20px var(--mono); margin-top: 22px; }
.icons { position: absolute; right: 0; top: 4%; height: 92%; display: flex; flex-direction: column; justify-content: space-between; }
.icons .ico { width: 54px; height: 54px; opacity: .9; }
.icons .ico:nth-child(even) { transform: translateX(-26px); }

/* ---------- ticker ---------- */
.ticker { border-block: 2px solid #fff; overflow: hidden; background: #fff; color: #000; position: relative; z-index: 1; }
.ticker__row { display: flex; gap: 28px; width: max-content; padding: 12px 0; font: 800 30px/1 var(--px); letter-spacing: .04em; animation: run 30s linear infinite; }
.ticker__row i { font-style: normal; }
@keyframes run { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: clamp(72px, 10vw, 128px) var(--pad) 0; }
.kicker { font: 400 14px var(--mono); color: var(--muted); margin-bottom: 14px; }
.section h2 { font-size: clamp(52px, 7vw, 92px); margin-bottom: 40px; }
.note { font: 400 14px var(--mono); color: var(--muted); margin-top: 24px; }

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative;
  border: 1px solid var(--line); background: var(--card);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: #fff; transform: translateY(-3px); }
.card .ico { width: 44px; height: 44px; margin-bottom: 8px; }
.card h3 { font-size: 34px; }
.card p { color: #bdbdbd; flex: 1; }
.card__time { font: 600 13px var(--mono); border: 1px dashed var(--dim); align-self: flex-start; padding: 4px 10px; }
.card--accent { background: #fff; color: #000; border-color: #fff; }
.card--accent p { color: #333; }
.card--accent .btn { align-self: flex-start; }

/* tabs */
.tabs { display: inline-flex; border: 2px solid #fff; margin-bottom: 32px; }
.tab { background: none; border: 0; color: #fff; font: 600 14px var(--mono); padding: 12px 20px; cursor: pointer; }
.tab.is-active { background: #fff; color: #000; }

/* bot cases */
.cases { display: grid; gap: 20px; }
.case {
  display: grid; grid-template-columns: 240px 1fr; gap: clamp(20px, 4vw, 48px); align-items: center;
  border: 1px solid var(--line); background: var(--card); padding: clamp(18px, 3vw, 32px);
}
.case__shot--phone {
  border: 2px solid #fff; border-radius: 26px; padding: 7px; background: #000;
  max-height: 440px; overflow: hidden;
}
.case__shot--phone img { border-radius: 19px; }
.case__type { font: 400 13px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.case h3 { font-size: clamp(40px, 4.4vw, 56px); margin-bottom: 14px; }
.case p { color: #c9c9c9; max-width: 60ch; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.chips li { font: 400 12px var(--mono); border: 1px solid var(--dim); padding: 4px 10px; }

/* site cases */
.cases--sites { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
.site__shot { display: block; border: 2px solid #fff; overflow: hidden; position: relative; aspect-ratio: 16 / 10; }
.site__shot::before { /* browser bar */
  content: "● ● ●"; position: absolute; inset: 0 0 auto 0; z-index: 1;
  font: 400 8px/22px var(--mono); padding-left: 10px; letter-spacing: 2px;
  background: #fff; color: #000; height: 22px;
}
.site__shot img { margin-top: 22px; width: 100%; transition: transform .5s; }
.site__shot:hover img { transform: scale(1.03); }
.site h3 { font-size: 32px; margin: 16px 0 6px; }
.site p { color: #bdbdbd; font-size: 15px; }

/* steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { border-top: 2px solid #fff; padding-top: 18px; }
.steps b { font: 800 52px/1 var(--px); color: var(--dim); }
.steps h3 { font-size: 32px; margin: 14px 0 8px; }
.steps p { color: #bdbdbd; font-size: 15px; }

/* prices */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.price { position: relative; border: 1px solid var(--line); background: var(--card); padding: 30px 24px; display: flex; flex-direction: column; }
.price__name { font: 600 13px var(--mono); color: var(--muted); letter-spacing: .08em; }
.price h3 { font-size: 34px; margin: 14px 0 18px; }
/* titles wrap to 1 or 2 lines; reserve 2 so prices line up across cards (not needed in the 1-column phone layout) */
@media (min-width: 561px) { .price h3 { min-height: 1.9em; } }
.price__sum { font: 800 clamp(42px, 4.4vw, 56px)/1 var(--sans); letter-spacing: -.03em; }
.price__time { font: 400 13px var(--mono); color: var(--muted); margin: 8px 0 24px; }
.price ul { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; flex: 1; }
.price li { padding-left: 22px; position: relative; color: #d0d0d0; font-size: 15px; }
.price li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: currentColor; }
.price--top { background: #fff; color: #000; border-color: #fff; }
.price--top .price__name, .price--top .price__time { color: #555; }
.price--top li { color: #222; }
.price--top .btn { background: #000; color: #fff; border-color: #000; }
.price__badge { position: absolute; top: -13px; right: 20px; background: #000; color: #fff; border: 2px solid #fff; font: 600 12px var(--mono); padding: 3px 10px; text-transform: uppercase; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); background: var(--card); }
.faq details[open] { border-color: #fff; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font: 600 17px var(--sans); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 800 32px var(--px); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 22px; color: #c2c2c2; }

/* lead */
.lead { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; padding-bottom: 40px; }
.lead__intro p { color: #c9c9c9; max-width: 44ch; }
.lead__alt { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 28px; }
.form { border: 2px solid #fff; padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; background: #050505; }
.form label, .form legend { display: grid; gap: 8px; font: 600 13px var(--mono); color: #ddd; }
.form fieldset { border: 0; }
.opt { color: var(--dim); font-weight: 400; }
.form input:not([type=radio]), .form textarea {
  width: 100%; background: #000; color: #fff;
  border: 1px solid var(--dim); padding: 13px 14px;
  font: 400 16px var(--sans); border-radius: 0; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-color: #fff; }
.form input.is-bad { border-color: #ff5b5b; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: block; border: 1px solid var(--dim); padding: 9px 14px; font: 400 14px var(--mono); color: #ccc; }
.pick input:checked + span { background: #fff; color: #000; border-color: #fff; }
.pick input:focus-visible + span { outline: 2px dashed #fff; outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form__msg { font: 400 14px var(--mono); min-height: 1.4em; }
.form__msg.ok { color: #fff; }
.form__msg.err { color: #ff8a8a; }
.form__msg a { color: #fff; }

/* footer */
.footer {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 80px; padding: 28px var(--pad);
  border-top: 1px solid var(--line);
}
.footer nav { display: flex; gap: 24px; font: 400 14px var(--mono); }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: #fff; }
.footer small { font: 400 12px var(--mono); color: var(--dim); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .services, .prices { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
}
@media (max-width: 820px) {
  .nav__links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; }
  .web--tl { opacity: .32; }
  .hero__art { position: absolute; right: 0; top: 0; height: 100%; width: 120px; opacity: .35; pointer-events: none; z-index: -1; }
  .hero__art .icons, .hero__art .tag { display: none; }
  .hang__thread { margin-top: 0; height: 40px; }
  .hang__spider { width: 40px; height: 35px; }
  .plate span { font-size: 54px; }
  .case { grid-template-columns: 1fr; }
  .case__shot--phone { max-width: 260px; max-height: 360px; }
  .cases--sites { grid-template-columns: 1fr; }
  .lead { grid-template-columns: 1fr; }
  .dangler { display: none; }
}
@media (max-width: 560px) {
  .services, .prices, .steps { grid-template-columns: 1fr; }
  .speed { gap: 18px; justify-content: space-between; }
  .speed li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .tabs { display: flex; }
  .tab { flex: 1; padding: 12px 8px; }
  .hero__cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- clickable service cards ---------- */
.section__lead { color: var(--muted); font: 400 15px var(--mono); margin: -24px 0 32px; max-width: 60ch; }
.card--btn { font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; }
.card--btn:focus-visible { outline: 2px dashed #fff; outline-offset: 4px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.card__go { font: 600 13px var(--mono); opacity: .55; transition: opacity .2s, transform .2s; }
.card--btn:hover .card__go { opacity: 1; transform: translateX(3px); }
.prices__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 24px; }
.prices__more .note { margin: 0; max-width: 72ch; }
.price .btn { font: inherit; font: 600 15px/1 var(--mono); }

/* ---------- calculator dialog ---------- */
html.calc-open { overflow: hidden; }
.calc {
  margin: auto; padding: 0; border: 2px solid #fff; background: #050505; color: #fff;
  width: min(760px, calc(100vw - 32px)); max-height: min(860px, calc(100svh - 32px));
}
.calc::backdrop { background: #000c; backdrop-filter: blur(3px); }
.calc[open] { display: flex; flex-direction: column; overflow: hidden; animation: pop .18s ease-out; }
@keyframes pop { from { transform: translateY(12px); opacity: 0; } }
.calc__inner { display: flex; flex-direction: column; width: 100%; flex: 1; min-height: 0; }
.calc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.calc__steps { list-style: none; display: flex; gap: 18px; font: 400 13px var(--mono); color: var(--dim); }
.calc__steps li { display: flex; align-items: center; gap: 7px; }
.calc__steps b { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid currentColor; font-weight: 600; }
.calc__steps .is-on { color: #fff; }
.calc__steps .is-on b { background: #fff; color: #000; border-color: #fff; }
.calc__steps .is-done { color: var(--muted); }
.calc__x { background: none; border: 0; color: #fff; font: 400 20px var(--mono); cursor: pointer; padding: 4px 8px; }
.calc__title { font-size: clamp(38px, 5vw, 52px); padding: 22px 24px 6px; }
.calc__body { padding: 12px 24px 24px; overflow-y: auto; flex: 1; min-height: 0; display: grid; gap: 16px; align-content: start; }
.calc__svc { margin-top: 4px; }
.calc__field { display: grid; gap: 8px; font: 600 13px var(--mono); color: #ddd; }
.calc__field textarea, .calc__field input {
  width: 100%; background: #000; color: #fff; border: 1px solid var(--dim); padding: 13px 14px;
  font: 400 16px var(--sans); border-radius: 0; resize: vertical;
}
.calc__field textarea:focus, .calc__field input:focus { outline: none; border-color: #fff; }
.calc__field .is-bad, .calc__field input.is-bad { border-color: #ff5b5b; }
.calc__hint { font: 400 13px var(--mono); color: var(--muted); }
.calc__label { font: 600 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }

.calc__bases { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.base { cursor: pointer; display: block; }
.base input { position: absolute; opacity: 0; pointer-events: none; }
.base span { display: grid; gap: 3px; height: 100%; border: 1px solid var(--dim); padding: 12px; transition: border-color .15s; }
.base b { font: 800 24px/1 var(--px); }
.base small { font: 400 12px/1.3 var(--sans); color: var(--muted); }
.base i { font: 600 14px var(--mono); font-style: normal; margin-top: 6px; }
.base:hover span { border-color: #aaa; }
.base input:checked + span { background: #fff; color: #000; border-color: #fff; }
.base input:checked + span small { color: #444; }
.base input:focus-visible + span { outline: 2px dashed #fff; outline-offset: 2px; }

.calc__addons { display: grid; gap: 6px; }
.addon { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: start; border: 1px solid var(--line); padding: 12px 14px; cursor: pointer; transition: border-color .15s; }
.addon:hover { border-color: var(--dim); }
.addon input { position: absolute; opacity: 0; pointer-events: none; }
.addon__box { width: 18px; height: 18px; border: 2px solid #fff; margin-top: 2px; position: relative; }
.addon input:checked ~ .addon__box { background: #fff; }
.addon input:checked ~ .addon__box::after { content: ""; position: absolute; left: 4px; top: 4px; width: 6px; height: 6px; background: #000; }
.addon input:focus-visible ~ .addon__box { outline: 2px dashed #fff; outline-offset: 3px; }
.addon:has(input:checked) { border-color: #fff; }
.addon__text { display: grid; gap: 3px; }
.addon__text b { font: 600 15px/1.3 var(--sans); }
.addon__text small { font: 400 13px/1.4 var(--sans); color: var(--muted); }
.addon__price { font: 600 14px var(--mono); white-space: nowrap; }
.addon.is-inc { cursor: default; opacity: .6; }
.addon.is-inc .addon__price { color: var(--muted); }

.calc__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 24px; border-top: 1px solid var(--line); background: #000; }
.calc__total { display: grid; justify-items: center; text-align: center; line-height: 1.15; }
.calc__total b { font: 800 30px/1.1 var(--sans); letter-spacing: -.02em; }
.calc__total small { font: 400 12px var(--mono); color: var(--muted); }
.calc__recap { font: 400 13px/1.6 var(--mono); white-space: pre-wrap; border: 1px dashed var(--dim); padding: 14px 16px; color: #ddd; }
.calc__msg { font: 400 14px var(--mono); min-height: 1.4em; }
.calc__msg.err { color: #ff8a8a; }
.calc__msg a { color: #fff; }
.calc__done p { font-size: 17px; }
.calc__done .btn { justify-self: start; }

@media (max-width: 1100px) {
  .prices { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .calc { width: 100vw; max-width: 100vw; height: 100svh; max-height: 100svh; border: 0; }
  .calc__head, .calc__body, .calc__foot { padding-left: 16px; padding-right: 16px; }
  .calc__title { padding: 18px 16px 4px; }
  .calc__steps { gap: 10px; font-size: 12px; }
  .calc__bases { grid-template-columns: 1fr 1fr; }
  .prices { grid-template-columns: 1fr; }
  .addon { grid-template-columns: 20px 1fr; }
  .addon__price { grid-column: 2; }
  .calc__total b { font-size: 24px; }
}

/* keep visually hidden inputs inside their option, so focusing one never scrolls the dialog */
.pick label, .addon, .base { position: relative; }

/* server rental cycle (inside the calculator) */
.plans { border: 1px solid #fff; border-top: 0; margin: -6px 0 0; padding: 12px 14px 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.plans legend { float: left; width: 100%; grid-column: 1 / -1; font: 600 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.plan { position: relative; cursor: pointer; display: block; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan span { display: grid; gap: 2px; height: 100%; border: 1px solid var(--dim); padding: 10px; }
.plan b { font: 800 22px/1 var(--sans); }
.plan small { font: 400 12px var(--sans); color: var(--muted); }
.plan i { font: 400 11px var(--mono); font-style: normal; color: #cfcfcf; margin-top: 4px; }
.plan:hover span { border-color: #aaa; }
.plan input:checked + span { background: #fff; color: #000; border-color: #fff; }
.plan input:checked + span small, .plan input:checked + span i { color: #444; }
.plan input:focus-visible + span { outline: 2px dashed #fff; outline-offset: 2px; }
.calc__rent { color: #fff !important; }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr 1fr; } }

/* Telegram contacts in the header */
.nav__tg { display: flex; align-items: center; gap: 8px; }
.tg { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--dim); text-decoration: none; font: 600 13px/1 var(--mono); color: #fff; transition: border-color .15s, background .15s, color .15s; white-space: nowrap; }
.tg .ico { width: 20px; height: 20px; }
.tg:hover { background: #fff; color: #000; border-color: #fff; }
.tg:hover svg * { stroke: #000; }
.nav { gap: 12px; }
.nav__side > .btn { flex-shrink: 0; }
@media (max-width: 1240px) {
  .tg { width: 40px; padding: 0; justify-content: center; }
  .tg__text { display: none; }
}
@media (max-width: 560px) {
  .nav__tg { gap: 6px; }
  .tg { width: 36px; height: 36px; }
  .nav__side > .btn--sm { padding: 10px 12px; }
}

/* header: links in the exact middle, logo left, contacts + button right */
.nav__side { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nav__side--end { justify-content: flex-end; }
@media (min-width: 821px) {
  .nav { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); }
}

/* entry package: one wide card above the four regular ones */
.price--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(220px, 1fr) 2fr auto; gap: 16px 40px; align-items: center; }
.price--wide .price__head h3 { min-height: 0; margin: 10px 0 14px; }
.price--wide .price__time { margin-bottom: 0; }
.price--wide ul { grid-template-columns: 1fr 1fr; gap: 10px 28px; margin: 0; }
.price--wide .btn { align-self: center; }
@media (max-width: 1000px) {
  .price--wide { grid-template-columns: 1fr; }
  .price--wide .btn { justify-self: start; }
}
@media (max-width: 560px) { .price--wide ul { grid-template-columns: 1fr; } }
