/* Shared styles for inner pages. Tokens mirror the Figma design system (see CLAUDE.md). */
:root {
  --bg: #111214; --surface: #18191C; --surface-2: #202226;
  --ring: rgb(255 255 255 / .08); --ring-hover: rgb(255 255 255 / .13); --divider: rgb(255 255 255 / .1); --img-outline: rgb(255 255 255 / .1);
  --text: #EDEDED; --text-2: #A1A4A9; --text-3: #8A8D92;
  --inv-bg: #EDEDED; --inv-text: #111214; --inv-text-2: #55585C;
  --display: "Unbounded", system-ui, sans-serif; --body: "Manrope", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --m: 32px; --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wrap { padding-inline: var(--m); }
.mono { font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.muted { color: var(--text-2); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 28px; border-radius: 999px;
  font-family: var(--display); font-size: 13px; letter-spacing: .02em; text-transform: uppercase; border: 1px solid rgb(237 237 237 / .4);
  transition-property: scale, background-color, color, border-color; transition-duration: .15s; transition-timing-function: ease-out; white-space: nowrap; }
.btn:hover { border-color: var(--text); }
.btn:active { scale: .96; }
.btn--fill { background: var(--inv-bg); color: var(--inv-text); border-color: transparent; }
.btn--dark { background: var(--inv-text); color: var(--inv-bg); border-color: transparent; }
.btn--on-light { border-color: rgb(17 18 20 / .3); color: var(--inv-text); }
.arrow-link { display: inline-flex; align-items: center; gap: 16px; font-family: var(--display); font-size: 16px; letter-spacing: -.01em; }
.arrow { width: 56px; height: 56px; flex: none; border-radius: 999px; border: 1px solid rgb(237 237 237 / .4); display: grid; place-items: center; font-family: var(--display); font-size: 20px;
  transition-property: background-color, color, translate, border-color; transition-duration: .2s; transition-timing-function: ease-out; }
a:hover > .arrow, .arrow-link:hover .arrow { background: var(--inv-bg); color: var(--inv-text); border-color: transparent; translate: 4px 0; }
.link-row { display: flex; justify-content: flex-end; margin-top: 48px; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; height: 96px; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding-inline: var(--m); }
.header::before { content: ""; position: absolute; inset: 0; background: rgb(17 18 20 / .72); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); border-bottom: 1px solid var(--ring); }
.logo { position: relative; font-family: var(--display); font-size: 20px; letter-spacing: -.02em; }
.nav { position: absolute; left: 50%; translate: -50% 0; display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: rgb(255 255 255 / .06); border: 1px solid var(--ring); }
.nav a { padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: color .15s ease-out, background-color .15s ease-out; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
/* Home button: only on inner pages, styled like the logo mark */
.nav .nav__home { font-family: var(--display); font-weight: 400; letter-spacing: -.02em; color: var(--text); }
@media (max-width: 1280px) { .nav { gap: 2px; } .nav a { padding-inline: 12px; } }
/* Logo is PLOTNIKOV; [GP] lives in the menu — and returns to the logo where the menu is hidden */
.logo__gp { display: none; }
@media (max-width: 1100px) { .logo__gp { display: inline; } }
.header .btn { position: relative; }
.progress { position: fixed; top: 95px; left: 0; height: 2px; width: 100%; background: var(--text); transform-origin: 0 50%; scale: 0 1; z-index: 51; }
main { padding-top: 96px; }

/* ---------- Page hero ---------- */
.page-hero { padding-top: 64px; }
.crumbs { font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }
.big { font-family: var(--display); font-weight: 300; letter-spacing: -.04em; line-height: 1; white-space: nowrap; margin-top: 40px; font-size: 14vw; }
.big span { display: inline-block; }
.lead { font-size: 22px; line-height: 1.5; max-width: 760px; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin-top: 64px; }

/* ---------- Sections ---------- */
.section { padding-top: 160px; }
.section--line { border-top: 1px solid var(--divider); margin-top: 160px; padding-top: 48px; }
.section-title { font-family: var(--display); font-weight: 300; font-size: clamp(40px, 4.45vw, 64px); letter-spacing: -.03em; line-height: 1.1; }
.split { display: grid; grid-template-columns: 528px 1fr; }
.split > .section-title { position: sticky; top: 140px; align-self: start; }
.rows > * { border-top: 1px solid var(--divider); }
.rows { border-bottom: 1px solid var(--divider); }

/* Services list (hover spotlight) */
.srv-list { margin-top: 64px; }
.srv { position: relative; display: grid; grid-template-columns: 168px 1fr 260px 56px; gap: 24px; align-items: start; padding-block: 40px; border-top: 1px solid var(--divider); transition: opacity .3s ease-out; }
.srv:last-child { border-bottom: 1px solid var(--divider); }
.srv__n { font-family: var(--display); font-weight: 300; font-size: 32px; color: var(--text-2); }
.srv__t { font-family: var(--display); font-size: 40px; letter-spacing: -.02em; line-height: 1.15; }
.srv__d { color: var(--text-2); font-size: 17px; line-height: 1.6; max-width: 520px; margin-top: 16px; }
.srv__price { font-family: var(--display); font-size: 22px; }
.srv__term { margin-top: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { padding: 6px 12px; border-radius: 999px; box-shadow: 0 0 0 1px var(--ring); font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.draft { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 11px; color: var(--text-3); }
@media (hover: hover) and (pointer: fine) {
  .spot:hover > * { opacity: .3; }
  .spot:hover > *:hover { opacity: 1; }
}
.spot:focus-within > * { opacity: .3; }
.spot > *:focus-within { opacity: 1; }
.srv > a.cover { position: absolute; inset: 0; z-index: 1; }
.srv:hover .arrow, .others a:hover .arrow, .card:hover .arrow, .next:hover .arrow, .featured:hover .arrow { background: var(--inv-bg); color: var(--inv-text); border-color: transparent; translate: 4px 0; }

/* Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 64px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }
.card { background: var(--surface); border-radius: 20px; padding: 8px; box-shadow: 0 0 0 1px var(--ring); transition: box-shadow .15s ease-out; display: flex; flex-direction: column; }
a.card:hover { box-shadow: 0 0 0 1px var(--ring-hover); }
.card__body { padding: 28px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin: 12px 0 20px; font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: -.02em; line-height: 1.25; }
.card__foot { margin-top: auto; display: flex; align-items: center; gap: 16px; font-family: var(--display); font-size: 16px; }
.ph { border-radius: 12px; background: var(--surface-2); outline: 1px solid var(--img-outline); outline-offset: -1px; display: grid; place-items: center; text-align: center; padding: 16px; font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.ph--r20 { border-radius: 20px; }
.tile { background: var(--surface); border-radius: 20px; padding: 32px; box-shadow: 0 0 0 1px var(--ring); }
.tile .n { font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.tile h3 { margin: 40px 0 12px; font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: -.02em; line-height: 1.25; }
.tile p { color: var(--text-2); line-height: 1.6; }

/* Numbered steps (right column) */
.step { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 24px; padding-block: 24px 28px; }
.step h3 { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: -.01em; line-height: 1.3; }
.step p { color: var(--text-2); line-height: 1.6; }
.inc { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.inc > div { padding-block: 28px; border-top: 1px solid var(--divider); }
.inc h3 { margin: 12px 0 8px; font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: -.01em; }
.inc p { color: var(--text-2); line-height: 1.6; }

/* Metrics */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 80px; }
.metrics > div { border-top: 1px solid var(--divider); padding-top: 24px; }
.metrics b { display: block; font-family: var(--display); font-weight: 300; font-size: clamp(36px, 3.9vw, 56px); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.metrics span { font-family: var(--mono); font-size: 13px; color: var(--text-2); }

/* Pricing */
.plan { background: var(--surface); border-radius: 24px; padding: 40px; box-shadow: 0 0 0 1px var(--ring); display: flex; flex-direction: column; }
.plan h3 { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: -.02em; }
.plan .price { margin-top: 24px; font-family: var(--display); font-weight: 300; font-size: 48px; letter-spacing: -.03em; }
.plan ul { list-style: none; margin: 32px 0; }
.plan li { padding-block: 16px; border-top: 1px solid var(--divider); }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* FAQ */
.faq details { border-top: 1px solid var(--divider); }
.faq details:last-child { border-bottom: 1px solid var(--divider); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 28px; cursor: pointer; font-family: var(--display); font-size: 22px; letter-spacing: -.01em; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 32px; transition: rotate .3s var(--ease-out); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding-bottom: 28px; max-width: 640px; color: var(--text-2); font-size: 17px; line-height: 1.6; }

/* Light CTA block */
.cta { margin-top: 160px; background: var(--inv-bg); color: var(--inv-text); border-radius: 24px; padding: 56px; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.cta h2 { font-family: var(--display); font-weight: 300; font-size: clamp(36px, 3.9vw, 56px); letter-spacing: -.03em; line-height: 1.1; max-width: 820px; }
.cta p { margin-top: 24px; max-width: 640px; font-size: 18px; line-height: 1.6; color: var(--inv-text-2); }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Trust strip */
.strip { margin-top: 160px; background: var(--surface); border-radius: 24px; padding: 40px; box-shadow: 0 0 0 1px var(--ring); display: flex; gap: 40px; align-items: center; }
.strip img, .strip .ph { width: 156px; aspect-ratio: 1 / 1.414; border-radius: 4px; outline: 1px solid var(--img-outline); outline-offset: -1px; object-fit: cover; flex: none; }
.strip h3 { margin: 12px 0 16px; font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: -.02em; line-height: 1.25; max-width: 720px; }
.strip .btn { margin-left: auto; align-self: flex-end; }

/* Chips (filters, toggles) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 64px; }
.chip { display: inline-flex; gap: 8px; align-items: center; padding: 12px 20px; border-radius: 999px; box-shadow: 0 0 0 1px var(--ring); font-weight: 500; font-size: 15px; color: var(--text-2); transition: background-color .15s ease-out, color .15s ease-out; }
.chip small { font-family: var(--mono); font-size: 12px; }
.chip[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: 0 0 0 1px rgb(237 237 237 / .4); }

/* Form */
.form { background: var(--surface); border-radius: 24px; padding: 40px; box-shadow: 0 0 0 1px var(--ring); display: grid; gap: 24px; }
.form h2 { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: -.02em; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.form input:not([type=checkbox]), .form textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--text); background: var(--surface-2); border: 0; border-radius: 12px; padding: 17px 20px; box-shadow: 0 0 0 1px var(--ring); }
.form input::placeholder, .form textarea::placeholder { color: var(--text-3); }
.form textarea { min-height: 128px; resize: vertical; }
.form .toggle { display: inline-flex; padding: 10px 16px; border-radius: 999px; box-shadow: 0 0 0 1px var(--ring); font-size: 14px; font-weight: 500; color: var(--text-2); }
.form .toggle[aria-pressed="true"] { background: var(--inv-bg); color: var(--inv-text); box-shadow: none; }
.check { display: flex !important; gap: 12px !important; align-items: flex-start; font-weight: 400 !important; line-height: 1.5; }
.check input { width: 20px; height: 20px; flex: none; accent-color: var(--inv-bg); }
.check a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Prose (privacy) */
.prose { max-width: 820px; margin-top: 64px; }
.prose h2 { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: -.01em; margin: 48px 0 16px; }
.prose p, .prose li { color: var(--text-2); line-height: 1.7; margin-bottom: 12px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.prose td { border-top: 1px solid var(--divider); padding: 12px 8px; vertical-align: top; color: var(--text-2); line-height: 1.6; }
.prose td:first-child { color: var(--text); width: 34%; }

/* ---------- Footer ---------- */
.footer { margin-top: 160px; border-top: 1px solid var(--divider); padding-top: 64px; }
.foot { display: grid; grid-template-columns: 1fr 340px 308px; }
.foot__logo { font-family: var(--display); font-size: 24px; letter-spacing: -.02em; }
.foot ul { list-style: none; display: grid; gap: 12px; margin-top: 20px; }
.foot a:hover { color: var(--text-2); }
.foot__bottom { display: grid; grid-template-columns: 1fr 340px 308px; margin-top: 64px; padding-block: 24px 48px; border-top: 1px solid var(--divider); color: var(--text-2); font-size: 14px; }

/* Floating Telegram */
.fab { position: fixed; right: var(--m); bottom: var(--m); z-index: 40; display: flex; align-items: center; gap: 12px; opacity: 0; translate: 0 16px; pointer-events: none; transition: opacity .3s ease-out, translate .3s var(--ease-out); }
.fab.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
.fab__av { width: 64px; height: 64px; border-radius: 999px; background: url(../assets/avatar.jpg) center / cover; outline: 1px solid var(--img-outline); outline-offset: -1px; }
.fab__label { background: var(--inv-bg); color: var(--inv-text); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; }

/* Reveal (hidden only when JS runs) */
.js [data-reveal] { opacity: 0; translate: 0 24px; }
.proto-note { position: fixed; left: 50%; bottom: 16px; translate: -50% 0; z-index: 70; padding: 8px 14px; border-radius: 999px; background: rgb(0 0 0 / .6); font: 12px var(--mono); color: var(--text-2); pointer-events: none; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .split, .foot, .foot__bottom { grid-template-columns: 1fr; }
  .split > .section-title { position: static; margin-bottom: 32px; }
  .srv { grid-template-columns: 64px 1fr; }
  .srv__meta, .srv .arrow { grid-column: 2; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .cta, .strip { flex-direction: column; align-items: flex-start; }
  .strip .btn { margin-left: 0; }
}
/* Grid tracks must be allowed to shrink below their content's min width */
.grid-2, .grid-3, .inc, .metrics, .split, .srv { grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); }
.grid-2 { --cols: 2; } .grid-3 { --cols: 3; } .inc { --cols: 2; } .metrics { --cols: 4; }
.split { grid-template-columns: minmax(0, 528px) minmax(0, 1fr); }
.srv { grid-template-columns: 168px minmax(0, 1fr) 260px 56px; }
@media (max-width: 1100px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .srv { grid-template-columns: 64px minmax(0, 1fr); }
  .grid-3 { --cols: 2; } .metrics { --cols: 2; }
}
@media (max-width: 700px) {
  :root { --m: 16px; }
  .grid-2, .grid-3, .inc, .metrics { --cols: 1; }
  .btn { white-space: normal; text-align: center; padding-block: 12px; }
  .plan { padding: 24px; } .plan h3 { font-size: 22px; } .plan .price { font-size: 36px; }
  .strip, .form { padding: 24px; }
  .lead { font-size: 18px; }
  .hero-row { flex-direction: column; }
  .step { grid-template-columns: 48px minmax(0, 1fr); }
  h1, h2, h3 { overflow-wrap: anywhere; }
  .step p { grid-column: 2; }
  .srv__t { font-size: 28px; }
  .header .btn { display: none; }
  .cta { padding: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; translate: none; }
}
