/* page CSS: only what sits inside a visual and the kit lacks */
:root {
  --p-bg: #e8e8e3; --p-surface: #dcdcd6; --p-ink: #181715; --p-muted: #5c5b56;
  --p-accent: #bfb21a; --p-accent-ink: #181715; --p-action: #181715; --p-action-ink: #e8e8e3;
  --p-inv-bg: #181715; --p-inv-surface: #242321; --p-inv-ink: #e8e8e3; --p-inv-muted: #91908d;
  --p-inv-accent: #bfb21a; --p-inv-accent-ink: #181715; --p-inv-action: #bfb21a; --p-inv-action-ink: #181715;
  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-text: "Schibsted Grotesk", system-ui, sans-serif;
  /* 500 on headings: the client asked for a firmer, more corporate voice than the kit's 400 */
  --display-weight: 500;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.042em;
  --ly-scale: 0.98;
}

/* the hero's picture is a UI window on the surface ground, cut by the frame's foot */
.hero__media--ui .stage { position: absolute; inset: 0; }

/* service rows: the name and the price on one line, the line under them across the row */
#services .rows > li > p { grid-column: 1 / -1; margin: 0; }
@media (min-width: 640px) { #services .rows .rows__value { white-space: nowrap; } }
@media (max-width: 639px) { #services .rows .rows__value { text-align: right; max-width: 9em; } }

/* the tools diagram fills its split frame on the surface ground */
.frame--tools { background: var(--surface); border-radius: var(--r-lg); display: grid; place-items: center; padding: var(--s-6); min-height: 600px; }
@media (max-width: 1023px) { .frame--tools { min-height: 420px; margin-top: var(--s-7); } }
.frame--tools .dg { width: 100%; }

/* pinned-chapters: each step's visual is a UI window on a surface panel */
.mo-pc__visual--ui { margin: 0; position: relative; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; color: var(--p-ink); }
.mo-pc__visual--ui .stage { position: absolute; inset: 0; }
.ui-note__ico img { display: block; width: 16px; height: 16px; }

/* the booking form on the alternate ground */
.book__panel { background: var(--surface); border-radius: var(--r-lg); padding: var(--s-7); }
@media (max-width: 639px) { .book__panel { padding: var(--s-5); } }

/* selection and caret in the palette */
::selection { background: color-mix(in oklab, var(--p-accent) 45%, transparent); }
input { caret-color: var(--p-accent); }

.mo-pc__visuals.ground-base { background: var(--surface); }
.services__more { margin-top: var(--s-5); }
/* on a phone the chat alone carries the hero's picture */
@media (max-width: 639px) { .hero__media--ui .ly-float { display: none; } }

/* plans: the real tools each plan sets up, in their own colours */
.plan__tools { display: flex; gap: var(--s-3); list-style: none; margin: 0; padding: 0; }
.plan__tools img { display: block; width: 20px; height: 20px; object-fit: contain; }
.plan__who .badge { margin-right: var(--s-2); }
@media (max-width: 639px) { .card--plan .plan__who { display: none; } .card--plan.is-featured .plan__who { display: block; } }

/* the FAQ's picture: the hand-over to a person, on the surface ground */
.faq__visual { position: relative; height: 260px; margin-top: var(--s-6); background: var(--surface); border-radius: var(--r-lg); overflow: hidden; }
.faq__visual .stage { position: absolute; inset: 0; }

.book__tools { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-5); }
.book__tools img { width: 24px; height: 24px; }

/* the logo: mark and wordmark as one SVG */
.nav__logo img { display: block; height: 28px; width: auto; }
@media (max-width: 639px) { .nav__logo img { height: 24px; } }
.closing__links .nav__logo img { height: 32px; }

/* Schibsted Grotesk's tabular figures also widen the comma and colon ($1 ,900, 23 : 14): proportional figures here */
.t-stat, .ui, .ui *, .rows__value { font-variant-numeric: proportional-nums; font-feature-settings: "tnum" 0; }

/* /ru: Schibsted Grotesk has no Cyrillic; Golos Text carries the Russian page, Schibsted stays as the Latin fallback */
html[lang="ru"] { --font-display: "Golos Text", "Schibsted Grotesk", system-ui, sans-serif; --font-text: "Golos Text", "Schibsted Grotesk", system-ui, sans-serif; --display-tracking: -0.025em; --display-tracking-xl: -0.03em; }
html[lang="ru"] h1, html[lang="ru"] h2, html[lang="ru"] h3 { hyphens: manual; }

/* the language switch: a quiet link beside the main action, and again in the footer's legal row */
.nav__lang { margin-right: var(--s-4); }
.footer__lang { color: inherit; }
@media (max-width: 1023px) { .nav__actions .nav__lang { display: none; } }

/* the form's honeypot: off screen for people, still in the DOM for bots */
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* sections hold at least their screens on wide desktops too, and grow when the words need more room
   (the Russian rows overflowed a 900px-high screen and the next section covered the last link) */
@media (min-width: 1280px) {
  main > :is(section, .section):not(.hero, .section--hero, #how), footer.closing {
    height: auto; min-height: calc(var(--h, 1) * 100vh); min-height: calc(var(--h, 1) * 100svh);
  }
}

/* the WhatsApp button beside the form's submit */
.btn--wa { gap: var(--s-2); }
.btn--wa img { display: block; width: 18px; height: 18px; flex: none; }

/* work: three live sites, the screenshot on the surface ground, the whole card one link */
.works { row-gap: var(--s-8, 48px); }
.work { display: flex; flex-direction: column; gap: var(--s-5); color: inherit; text-decoration: none; }
.work__shot { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.work__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 500ms cubic-bezier(0.23, 1, 0.32, 1); }
@media (hover: hover) and (pointer: fine) { .work:hover .work__shot img { transform: scale(1.025); } }
@media (prefers-reduced-motion: reduce) { .work__shot img { transition: none; } }
.work__text { display: flex; flex-direction: column; gap: var(--s-2); flex: 1 1 auto; }
.work__text h3, .work__text p { margin: 0; }
.work__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: var(--s-2) 0 0; padding: 0; }
.work__tags li { font-size: var(--t-small); line-height: 1; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm, 2px); }
.work__go { align-self: flex-start; margin-top: auto; padding-top: var(--s-3); }
.work:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 6px; }
