/* «Вот это сайт» — studio site. Blog brand: near-black, warm white, one acid-lime used only as the text cursor
   (the before/after divider, the caret in the mark, the main request button). Each «after» example keeps its own
   client palette inside its frame; each «before» is drawn as a generic social profile in the system font. */
:root {
  --bg: #0f0f12;
  --bg-2: #17171c;
  --fg: #f4f2ec;
  --fg-2: #b9b6ae;
  --muted: #8f8c86;
  --rule: #2a2a31;
  --lime: #c6ff3d;
  --gutter: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: "Onest", system-ui, sans-serif; font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
::selection { background: var(--lime); color: #0f0f12; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: #34343c var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* brand mark: «вот это» over «сайт» with the lime text cursor */
.mark { display: inline-grid; justify-items: start; text-decoration: none; line-height: .86; }
.mark-small { font-weight: 800; font-size: 11px; letter-spacing: -.02em; }
.mark-big { display: flex; align-items: flex-end; font-weight: 900; font-size: 22px; letter-spacing: -.04em; }
.caret { display: inline-block; width: 3px; height: .78em; margin: 0 0 .06em 3px; background: var(--lime); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }

.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 var(--gutter); background: rgba(15, 15, 18, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(42, 42, 49, .7);
}
.top-nav { display: flex; align-items: center; gap: 4px; }
.top-link { font-weight: 600; font-size: 15px; text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--fg-2); transition: color .2s var(--ease); }
.top-link:hover { color: var(--fg); }
.top-link-wide { display: none; } /* «Помощь» fits the header from 600 px; on phones it lives in the FAQ and the footer */
@media (min-width: 600px) { .top-link-wide { display: inline; } }
.top-cta { font-weight: 600; font-size: 15px; text-decoration: none; padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px #3a3a42; }
.top-cta:hover { box-shadow: inset 0 0 0 1px var(--fg-2); }

/* hero */
.hero { display: flex; flex-direction: column; padding: 28px var(--gutter) 28px; }
.hero-copy { display: contents; }
.hero h1 { order: 1; } .hero .lead { order: 2; } .hero .hint { order: 3; } .hero .ba { order: 4; margin-top: 18px; } .pair-copy-first { order: 5; margin-top: 18px; }
.hero h1 { margin: 0; max-width: 14ch; font-size: 42px; line-height: .98; font-weight: 900; letter-spacing: -.04em; text-wrap: balance; }
.lead { margin: 12px 0 0; max-width: 36ch; color: var(--fg-2); font-size: 17px; text-wrap: pretty; }
.hint { margin: 18px 0 0; max-width: 40ch; font-size: 14px; line-height: 1.4; color: var(--muted); }
.hint::before { content: ""; display: inline-block; width: 2px; height: 1em; margin-right: 8px; vertical-align: -2px; background: var(--lime); }
@media (prefers-reduced-motion: reduce) { .hint { display: none; } } /* no loop and nothing to press then (app.js) */

/* example pairs */
.pair { display: flex; flex-direction: column; padding: 36px var(--gutter) 28px; }
.pair .ba { order: -1; margin: 0 0 18px; }
.pair + .pair { border-top: 1px solid var(--rule); padding-top: 44px; }
.pair-copy h2 { margin: 0; font-size: 28px; line-height: 1.05; font-weight: 800; letter-spacing: -.035em; }
.pair-copy p { margin: 8px 0 0; max-width: 34ch; color: var(--fg-2); text-wrap: pretty; }

/* before/after frame: the brand's lime text cursor types the site over the page, in a loop */
.ba { margin: 0; }
.ba-stage {
  --pos: 0%;
  position: relative; container-type: inline-size; width: 100%; max-width: 400px; aspect-ratio: 8 / 15;
  border-radius: 22px; overflow: hidden; background: #000; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 0 1px #24242a;
}
.ba-stage:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 22px; }
.mock { position: absolute; inset: 0; overflow: hidden; font-size: calc(100cqw / 32); pointer-events: none; }
.mock img { -webkit-user-drag: none; } /* 1em = 10px when the frame is 320px wide */
.mock.site { clip-path: inset(0 calc(100% - var(--pos)) 0 0); } /* the site is what the cursor has typed so far */
.ba-handle {
  position: absolute; z-index: 3; top: 0; bottom: 0; width: 4px; pointer-events: none;
  left: clamp(0px, calc(var(--pos) - 2px), calc(100% - 4px)); /* stays whole at both edges */
  background: var(--lime); box-shadow: 0 0 0 1px rgba(15, 15, 18, .35);
  transition: opacity .4s var(--ease);
}
.ba-stage:not(.ba-moving) .ba-handle { animation: blink 1.1s steps(1) infinite; }
.ba-stage.ba-done .ba-handle { opacity: 0; animation: none; } /* the site is complete: the cursor steps away */
@media (prefers-reduced-motion: reduce) { .ba-stage .ba-handle { animation: none; } }
/* the loop's state in a corner, never over the whole picture: ‖ while it plays, «▶ Пауза» once a tap stopped it */
.ba-state {
  position: absolute; z-index: 4; top: 10px; right: 10px; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px;
  border-radius: 999px; pointer-events: none; color: #f4f2ec; background: rgba(15, 15, 18, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(255, 255, 255, .12); opacity: .8; transition: opacity .3s var(--ease);
}
.ba-state svg { display: block; width: 16px; height: 16px; fill: currentColor; }
.ba-state b { padding-right: 3px; font-size: 13px; font-weight: 600; line-height: 1; }
.ba-state .i-play, .ba-state b { display: none; }
.ba-paused .ba-state { opacity: 1; padding: 0 10px 0 9px; }
.ba-paused .ba-state .i-pause { display: none; }
.ba-paused .ba-state .i-play, .ba-paused .ba-state b { display: block; }
.ba-state.pop { animation: statepop .35s var(--ease); }
@keyframes statepop { 40% { transform: scale(1.14); } }
.ba figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---- «before»: a generic social profile, system font, light mode ---- */
.prof { background: #fff; color: #111; font-family: -apple-system, "Segoe UI", Roboto, system-ui, sans-serif; letter-spacing: 0; }
.prof-bar { display: flex; align-items: center; justify-content: space-between; height: 4.6em; padding: 0 1.4em; font-size: 1em; }
.prof-bar b { font-size: 1.55em; font-weight: 700; }
.prof-dots { width: 1.8em; height: .4em; background: radial-gradient(circle, #111 .19em, transparent .21em) 0 0 / .6em .4em repeat-x; }
.prof-head { display: flex; align-items: center; gap: 1.6em; padding: .6em 1.4em; }
.prof-ava { flex: none; width: 7.6em; height: 7.6em; border-radius: 50%; background: #ddd center / 150% no-repeat; box-shadow: 0 0 0 .25em #fff, 0 0 0 .45em #d3d3d3; }
.prof-stats { display: flex; flex: 1; justify-content: space-between; margin: 0; text-align: center; }
.prof-stats dt { font-weight: 700; font-size: 1.6em; }
.prof-stats dd { margin: 0; font-size: 1.15em; color: #333; }
.prof-bio { margin: .6em 1.4em 0; font-size: 1.28em; line-height: 1.35; }
.prof-bio b { display: block; font-weight: 600; }
.prof-btns { display: flex; gap: .6em; margin: 1.1em 1.4em 0; }
.prof-btns span { flex: 1; padding: .7em 0; border-radius: .8em; background: #efefef; font-weight: 600; font-size: 1.25em; text-align: center; }
.prof-btns span:first-child { background: #0095f6; color: #fff; }
.prof-hl { display: flex; gap: 1.5em; margin: 1.4em 1.4em 0; }
.prof-hl span { display: grid; justify-items: center; gap: .4em; font-size: 1.05em; }
.prof-hl span::before { content: ""; width: 5.4em; height: 5.4em; border-radius: 50%; background: #f3f3f3 var(--hl, none) var(--hlp, center) / 170% no-repeat; box-shadow: inset 0 0 0 .15em #fff, 0 0 0 .1em #ccc; }
.prof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .2em; margin-top: 1.4em; }
.prof-grid i { aspect-ratio: 1; background: #ccc center / cover no-repeat; filter: saturate(.72) contrast(.9) brightness(1.06); }
.prof-grid .t {
  display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 1.5em; line-height: 1; text-align: center; filter: none;
  font-family: Impact, "Arial Black", sans-serif; letter-spacing: .02em;
}
.prof-grid .t-red { background: #e3262f; color: #fff35a; }
.prof-grid .t-yel { background: #ffe14d; color: #e3262f; }
.prof-grid .t-blu { background: #2f6fe4; color: #fff; }
.prof-grid .t-blk { background: #111; color: #fff; }

/* ---- «after» #1: café, deep green-black, ivory and saffron ---- */
.cafe { background: radial-gradient(120% 60% at 50% 22%, #2b3a31 0%, #141a16 60%); color: #f3ead7; }
.cafe-nav { display: flex; align-items: center; gap: 1.6em; height: 4.6em; padding: 0 1.8em; font-size: 1.15em; color: #cfc6b2; }
.cafe-nav b { flex: 1; color: #f3ead7; font-size: 1.3em; font-weight: 800; letter-spacing: -.02em; }
.cafe-shot { display: block; width: 19em; height: auto; margin: .8em auto 0; filter: drop-shadow(0 1.6em 2em rgba(0, 0, 0, .55)); }
.cafe-title { margin: 1em 1.8em 0; font-family: "Onest", sans-serif; font-size: 3.8em; line-height: .94; font-weight: 800; letter-spacing: -.045em; }
.cafe-meta { margin: .8em 2.4em 0; font-size: 1.25em; color: #b9b19c; }
.cafe-btns { display: flex; gap: .8em; margin: 1.6em 1.8em 0; }
.cafe-btns span { padding: .95em 1.3em; border-radius: 999px; font-family: "Onest", sans-serif; font-weight: 700; font-size: 1.2em; }
.cafe-b1 { background: #e7a83c; color: #1b1308; }
.cafe-b2 { box-shadow: inset 0 0 0 .1em #5d6b61; }
.cafe-menu { list-style: none; margin: 2.2em 1.8em 0; padding: 0; font-family: "Onest", sans-serif; }
.cafe-menu li { display: flex; align-items: baseline; gap: .6em; padding: .7em 0; font-size: 1.3em; border-top: .08em solid #2f3a33; }
.cafe-menu i { flex: 1; border-bottom: .12em dotted #56645a; transform: translateY(-.25em); }
.cafe-menu b { color: #e7a83c; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---- «after» #2: barbershop, black and brass ---- */
.barber { background: #111110; color: #ece6da; font-family: "Onest", sans-serif; }
.barber-nav { position: relative; z-index: 1; background: linear-gradient(rgba(10, 10, 9, .72), rgba(10, 10, 9, 0)); display: flex; align-items: center; justify-content: space-between; height: 4.6em; padding: 0 1.8em; font-size: 1.15em; color: #cbbfa8; }
.barber-hero { position: absolute; left: 0; right: 0; top: 0; height: 29em; background: center 35% / cover no-repeat;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.barber-nav b { color: #c9a45c; font-family: "Oswald", sans-serif; font-size: 1.45em; font-weight: 600; letter-spacing: .16em; }
.barber-title { position: relative; margin: 2.55em .1em 0; /* em of a 5.6em title: ≈14em of the frame unit */ font-family: "Oswald", sans-serif; font-size: 5.6em; line-height: .92; font-weight: 700; letter-spacing: -.01em; text-transform: uppercase; }
.barber-meta { position: relative; margin: .8em 1.2em 0; font-size: 1.2em; color: #9b937f; }
.barber-price { list-style: none; margin: 1.8em 1.8em 0; padding: 0; }
.barber-price li { display: flex; align-items: baseline; gap: .6em; padding: .65em 0; font-size: 1.35em; border-top: .08em solid #2b2925; font-variant-numeric: tabular-nums; }
.barber-price i { flex: 1; border-bottom: .12em dotted #4a463e; transform: translateY(-.25em); }
.barber-price b { color: #c9a45c; }
.barber-today { margin: 1.8em 1.8em 0; font-size: 1.1em; color: #9b937f; }
.barber-slots { display: flex; gap: .6em; margin: .7em 1.8em 0; }
.barber-slots span { padding: .6em .9em; border-radius: .6em; font-size: 1.2em; font-weight: 600; box-shadow: inset 0 0 0 .1em #3a372f; }
.barber-slots .on { background: #c9a45c; color: #111; box-shadow: none; }
.barber-btn { display: block; margin: 1.6em 1.8em 0; padding: 1em; border-radius: .2em; background: #c9a45c; color: #111; text-align: center; font-family: "Oswald", sans-serif; font-weight: 600; font-size: 1.35em; letter-spacing: .06em; text-transform: uppercase; }

/* ---- «after» #3: guesthouse, sea air and navy ---- */
.guest { background: linear-gradient(#bfe2f4 0%, #e9f4f6 34%, #f7f2e8 62%); color: #12324a; font-family: "Nunito", sans-serif; }
.guest-hero { position: absolute; left: 0; right: 0; top: 0; height: 27em; background: center 42% / cover no-repeat;
  -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.guest-nav { position: relative; display: flex; align-items: center; justify-content: space-between; height: 4.6em; padding: 0 1.8em; font-size: 1.15em; }
.guest-nav b { font-size: 1.3em; font-weight: 800; letter-spacing: -.02em; }
.guest-title { position: relative; margin: 4.55em .5em 0; /* em of a 3.6em title: ≈16em of the frame unit */ font-size: 3.6em; line-height: .98; font-weight: 800; letter-spacing: -.025em; }
.guest-book { position: relative; display: flex; margin: 1.6em 1.8em 0; border-radius: 1em; background: #fff; box-shadow: 0 1em 2em -1em rgba(18, 50, 74, .35); }
.guest-book div { flex: 1; padding: .9em 1.2em; }
.guest-book div + div { border-left: .08em solid #e3e9ec; flex: .5; }
.guest-book small { display: block; font-size: 1em; color: #6b8293; }
.guest-book b { font-size: 1.4em; }
.guest-rooms { list-style: none; margin: 1.4em 1.8em 0; padding: 0; }
.guest-rooms li { display: flex; align-items: center; gap: 1em; padding: .7em 0; border-top: .08em solid #dfe4e2; }
.guest-rooms .r { flex: none; width: 4.4em; height: 3.4em; border-radius: .6em; }
.guest-rooms .r { background: #dfe8ec center / cover no-repeat; }
.guest-rooms div { flex: 1; font-size: 1.2em; line-height: 1.2; }
.guest-rooms small { display: block; color: #6b8293; }
.guest-rooms .p { font-size: 1.3em; font-variant-numeric: tabular-nums; }
.guest-btn { position: relative; display: block; margin: 1.4em 1.8em 0; padding: 1em; border-radius: .8em; background: #12324a; color: #fff; text-align: center; font-weight: 700; font-size: 1.25em; }

/* how it works */
.how, .demos, .tiers, .calc, .faq, .req { padding: 64px var(--gutter) 8px; border-top: 1px solid var(--rule); margin-top: 28px; }
.how h2, .demos h2, .tiers h2, .calc h2, .faq h2, .req h2 { margin: 0; font-size: 32px; line-height: 1.02; font-weight: 900; letter-spacing: -.04em; text-wrap: balance; }
.steps { list-style: none; counter-reset: s; margin: 24px 0 0; padding: 0; display: grid; gap: 22px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-content: start; } /* shorter steps keep their titles on one line with the longest */
.steps li::before { content: counter(s); grid-row: span 2; font-weight: 900; font-size: 34px; line-height: .9; letter-spacing: -.05em; color: var(--muted); }
.steps b { font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.steps span { color: var(--fg-2); text-wrap: pretty; }

/* live joke sites */
.demos-lead { margin: 10px 0 0; max-width: 40ch; color: var(--fg-2); }
.demo-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.demo { display: grid; gap: 6px; text-decoration: none; }
.demo img { width: 100%; height: auto; aspect-ratio: 39 / 50; object-fit: cover; object-position: top; border-radius: 14px; box-shadow: 0 0 0 1px #24242a; transition: transform .4s var(--ease); }
.demo:hover img { transform: translateY(-3px); }
.demo b { margin-top: 4px; font-size: 17px; font-weight: 700; }
.demo span { font-size: 14px; line-height: 1.35; color: var(--fg-2); }

/* one example site per tariff */
.tier-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; margin-top: 22px; }
.tier { display: grid; align-content: start; gap: 4px; text-decoration: none; }
.tier img { width: 100%; height: auto; aspect-ratio: 39 / 50; object-fit: cover; object-position: top; border-radius: 14px; box-shadow: 0 0 0 1px #24242a; margin-bottom: 6px; transition: transform .4s var(--ease); }
.tier:hover img { transform: translateY(-3px); }
.tier i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.tier b { font-size: 17px; font-weight: 700; line-height: 1.2; }
.tier span { font-size: 14px; line-height: 1.35; color: var(--fg-2); }
.tiers-note { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

/* questions */
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { margin-top: 18px; border-top: 1px solid var(--rule); }
.faq summary {
  position: relative; list-style: none; padding: 18px 36px 18px 0; cursor: pointer; font-size: 18px; font-weight: 600; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 2px; background: var(--fg-2); transition: transform .3s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { margin: 0 0 20px; max-width: 60ch; color: var(--fg-2); }

/* request */
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; }
.btn-inline { min-height: 58px; padding: 10px 20px; }
.hero-more { font-size: 15px; color: var(--fg-2); text-underline-offset: 3px; text-decoration-color: #4a4a52; }
.hero-more:hover { color: var(--fg); }
.req { padding-bottom: 64px; }
.req > p { margin: 10px 0 0; color: var(--fg-2); }
.req-btns { display: grid; gap: 10px; margin-top: 22px; max-width: 460px; }
.btn {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 18px; border-radius: 16px; text-decoration: none;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px #2c2c33; transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: #1e1e24; }
.btn:active { transform: scale(.985); }
.btn svg { flex: none; width: 26px; height: 26px; }
.btn span { display: grid; line-height: 1.2; }
.btn b { font-size: 17px; font-weight: 700; }
.btn small { font-size: 14px; color: var(--fg-2); }
.btn-main { background: var(--lime); color: #0f0f12; box-shadow: none; }
.btn-main:hover { background: #d4ff6b; }
.btn-main small { color: #2d3a10; }
.btn[aria-disabled="true"] { cursor: default; opacity: .5; background: var(--bg-2); color: var(--fg); box-shadow: inset 0 0 0 1px #2c2c33; }
.btn[aria-disabled="true"] small { color: var(--fg-2); }
.btn[aria-disabled="true"] small::after { content: " · скоро"; }
.req-note { max-width: 46ch; margin: 18px 0 0 !important; font-size: 14px; color: var(--muted) !important; }

.foot { display: flex; align-items: center; gap: 16px; padding: 28px var(--gutter) 40px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
.foot p { margin: 0; max-width: 48ch; }
.mark-sm .mark-small { font-size: 9px; }
.mark-sm .mark-big { font-size: 17px; }

@media (min-width: 900px) {
  :root { --gutter: max(48px, calc(50vw - 560px)); }
  .top { height: 68px; }
  .mark-small { font-size: 13px; }
  .mark-big { font-size: 26px; }
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) 400px; column-gap: 64px; align-items: center; min-height: calc(100svh - 68px); padding-top: 40px; padding-bottom: 40px; }
  .hero-copy { display: block; }
  .hero .ba { margin-top: 0; }
  .pair-copy-first { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule); }
  .pair-copy-first h2 { font-size: 28px; }
  .pair-copy-first p { font-size: 17px; }
  .hero h1 { font-size: 92px; max-width: 12ch; }
  .hero .lead { margin-top: 24px; }
  .lead { font-size: 21px; }
  .pair .ba { order: 0; margin: 0; }
  .hint { font-size: 16px; }
  .pair { display: grid; grid-template-columns: minmax(0, 1fr) 400px; column-gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
  .pair + .pair { padding-top: 72px; }
  .pair:nth-of-type(even) .pair-copy { order: 2; }
  .pair-copy h2 { font-size: 48px; }
  .pair-copy p { font-size: 19px; }
  .ba { margin: 0; }
  .how, .demos, .tiers, .calc, .faq, .req { padding-top: 96px; }
  .how h2, .demos h2, .tiers h2, .calc h2, .faq h2, .req h2 { font-size: 56px; }
  .tier-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; max-width: 980px; }
  .steps li { grid-template-columns: 1fr; }
  .steps li::before { grid-row: auto; font-size: 56px; margin-bottom: 12px; }
  .demo-list { max-width: 760px; gap: 24px; }
  .req-btns { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
}

/* ---------- price calculator (#cena), layout «Чек»: a paper receipt whose lines are the choices ---------- */
/* brand chrome only; lime stays the cursor (the caret after the total), the main request action and focus */
.calc [hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.calc-lead { margin: 10px 0 0; max-width: 40ch; color: var(--fg-2); }
.calc-app { margin-top: 24px; }
.calc-static { list-style: none; margin: 0; padding: 0; max-width: 560px; }
.calc-static li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule); }
.calc-static span { color: var(--fg-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-note { max-width: 60ch; margin: 28px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }

/* the paper */
.cr { max-width: 460px; }
.cr-paper { position: relative; margin: 6px 0; padding: 24px 20px 22px; border-radius: 3px; background: #f4f2ec; color: #16161a; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.cr-paper::before, .cr-paper::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: radial-gradient(circle at 7px 6px, var(--bg) 4.6px, transparent 5px) 0 0 / 14px 12px repeat-x; }
.cr-paper::before { top: -6px; }
.cr-paper::after { bottom: -6px; }
.cr-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; padding-bottom: 14px; border-bottom: 1px dashed #aeaba4; }
.cr-head b { font-size: 19px; font-weight: 900; letter-spacing: -.04em; }
.cr-head span { font-size: 13px; color: #55534d; }
.cr-sec { padding: 14px 0 10px; border-bottom: 1px dashed #c4c1b8; }
.cr-title { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: #55534d; }
.c-hint { margin: 0 0 4px; max-width: 46ch; font-size: 14px; line-height: 1.4; color: #5c5a54; text-wrap: pretty; }
.cr-explain { max-width: none; margin: 6px 0 4px; padding: 10px 12px; border-radius: 6px; background: #e9e6de; color: #3b3a36; font-size: 13.5px; }
.cr-demo { display: inline-block; margin: 6px 0 2px; color: #16161a; font-size: 14px; font-weight: 700; text-decoration: underline; text-decoration-color: #aeaba4; text-underline-offset: 3px; }
.cr-demo:hover { text-decoration-color: #16161a; }
.cr-demo:focus-visible { outline: 2px solid #16161a; outline-offset: 2px; border-radius: 3px; }

/* a line: box, name, dotted leader, price; an unticked line is pale until it is printed */
.cr-line {
  display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 7px 0; border: 0; border-radius: 4px; background: none; cursor: pointer; text-align: left;
  color: rgba(22, 22, 26, .42); font: inherit; font-size: 15px; line-height: 1.3; transition: color .2s var(--ease); -webkit-tap-highlight-color: transparent;
}
.cr-line:hover { color: rgba(22, 22, 26, .72); }
.cr-line[aria-checked="true"] { color: #16161a; }
.cr-line.is-fixed { cursor: default; }
.cr-line:focus-visible, .cr-mini:focus-visible { outline: 2px solid #16161a; outline-offset: 2px; }
.cr-box { flex: none; align-self: center; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px currentColor; }
.cr-radio .cr-box { border-radius: 50%; }
.cr-box svg { width: 12px; height: 12px; color: #f4f2ec; opacity: 0; }
.cr-line[aria-checked="true"] .cr-box { background: #16161a; box-shadow: none; }
.cr-line[aria-checked="true"] .cr-box svg { opacity: 1; }
.cr-name { min-width: 0; }
.cr-dots { flex: 1; min-width: 14px; border-bottom: 1.5px dotted currentColor; opacity: .55; transform: translateY(-4px); }
.cr-price { flex: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cr-line[aria-checked="true"] .cr-price { animation: cr-print .35s var(--ease); }
@keyframes cr-print { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .cr-line[aria-checked="true"] .cr-price { animation: none; } }

/* languages and pages: a counter instead of a box */
.cr-count { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 15px; }
.cr-count-txt { flex: 1; display: grid; gap: 2px; min-width: 0; }
.cr-count-txt small { font-size: 12.5px; color: #5c5a54; }
.cr-val { min-width: 2ch; text-align: center; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cr-mini { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: #e6e3db; color: #16161a; box-shadow: inset 0 0 0 1px #cfcbc2; }
.cr-mini svg { width: 14px; height: 14px; }
.cr-mini:disabled { opacity: .35; cursor: default; }

/* the foot of the receipt: the total typed by the lime cursor, the monthly line, the timeline */
.cr-total { padding-top: 16px; }
.c-sum-label { margin: 0; font-size: 14px; color: #55534d; }
.c-sum { display: flex; align-items: flex-end; min-height: 1em; margin-top: 4px; font-size: min(44px, 11.8vw); /* the longest total («от 393 500 ₽») fits the receipt on a 320px iPhone SE */ line-height: 1; font-weight: 900; letter-spacing: -.045em; color: #16161a; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-caret { width: 4px; height: .74em; margin: 0 0 .1em 5px; box-shadow: 0 0 0 1px rgba(15, 15, 18, .35); }
.c-sum.is-typing .c-caret { animation: none; }
.c-month { margin: 10px 0 0; color: #16161a; font-variant-numeric: tabular-nums; }
.c-days { margin: 4px 0 0; font-size: 15px; color: #45443e; }

/* where to send it */
.c-send { display: grid; gap: 10px; max-width: 460px; margin-top: 26px; }
.c-status { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; color: var(--fg-2); }

/* phones: a running total bar while the lines scroll by, gone once the receipt's own total is on screen */
.c-bar {
  position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(15, 15, 18, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(42, 42, 49, .7); transform: translateY(110%); transition: transform .35s var(--ease); pointer-events: none;
}
.c-bar.on { transform: none; pointer-events: auto; }
.c-bar > span { display: grid; line-height: 1.15; }
.c-bar small { font-size: 13px; color: var(--muted); }
.c-bar-sum { font-size: 22px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-light {
  display: inline-grid; place-items: center; min-height: 46px; padding: 0 18px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--fg); color: #0f0f12; font: 700 16px/1 "Onest", system-ui, sans-serif; letter-spacing: -.01em; transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.c-light:hover { background: #fffdf7; }
.c-light:active { transform: scale(.98); }

@media (min-width: 900px) {
  .calc-lead { font-size: 19px; }
  .c-bar { display: none; }
}
