/* Intelvia landing. One stylesheet.
   The look is the app's own: white paper, the journal's grey for closed hours,
   the graphite of its frame, one blue for what is pressed. Inter, left-aligned.
   Rounded corners only where the app has them: 10 a control, 14 a window. */

/* FONTS-START (tools/subset-fonts.py rewrites this block) */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-cyrillic-sub.woff2) format('woff2-variations');
  unicode-range: U+0020, U+0041, U+0410, U+0411, U+0412, U+0413, U+0414, U+0415, U+0416, U+0417, U+0418, U+041A, U+041B, U+041C, U+041D, U+041E, U+041F, U+0420, U+0421, U+0422, U+0423, U+0424, U+0427, U+042D, U+0430, U+0431, U+0432, U+0433, U+0434, U+0435, U+0436, U+0437, U+0438, U+0439, U+043A, U+043B, U+043C, U+043D, U+043E, U+043F, U+0440, U+0441, U+0442, U+0443, U+0444, U+0445, U+0446, U+0447, U+0448, U+0449, U+044A, U+044B, U+044C, U+044D, U+044E, U+044F, U+0451;
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-latin-sub.woff2) format('woff2-variations');
  unicode-range: U+0020, U+0025, U+002B, U+002C, U+002D, U+002E, U+0030, U+0031, U+0032, U+0033, U+0034, U+0035, U+0036, U+0037, U+0038, U+0039, U+003A, U+003F, U+0040, U+0041, U+0043, U+0049, U+004D, U+0050, U+0052, U+0057, U+0061, U+0062, U+0063, U+0064, U+0065, U+0066, U+0068, U+0069, U+006B, U+006C, U+006E, U+006F, U+0070, U+0072, U+0073, U+0074, U+0076, U+0078, U+0079, U+007A, U+007C, U+00A9, U+00AB, U+00BB, U+2212;
}
/* FONTS-END */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-cyrillic-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --paper: #ffffff;
  --sheet: #f3f3f1;
  --ink: #1a1a18;
  --muted: #5c5c57;
  --line: #e2e2de;
  --graphite: #353533;
  --blue: #4169e1;
  --blue-ink: #3052c4;
  --amber-ink: #8a4b06;
  --amber-wash: #fbefd9;
  --tint: #edf1fb;
  --rule: #dae2f5;
  --wash: rgb(65 105 225 / 0.12);
  --visit: 0.16;
  --font: 'Inter Variable', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Dark: the system's choice until the reader makes one (the button in the
   header writes data-theme on <html> and keeps it), then the reader's. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --paper: #1e1f22;
    --sheet: #26272b;
    --ink: #eeeeec;
    --muted: #b4b4ae;
    --line: #3b3c41;
    --blue-ink: #a9bdff;
    --amber-ink: #f6c177;
    --amber-wash: #40321b;
    --tint: #27292e;
    --rule: #383b43;
    --wash: rgb(130 160 255 / 0.18);
    --visit: 0.26;
  }
  :root:not([data-theme='light']) .g-all { --tone-ink: #a9bdff; }
  :root:not([data-theme='light']) .g-salon { --tone-ink: #ff9cc8; }
  :root:not([data-theme='light']) .g-clinic { --tone-ink: #6fdcd0; }
  :root:not([data-theme='light']) .g-studio { --tone-ink: #c9adff; }
  :root:not([data-theme='light']) .theme::before { transform: translateX(28px); }
  :root:not([data-theme='light']) .theme .sun { color: #b4b4ae; }
  :root:not([data-theme='light']) .theme .moon { color: #1a1a18; }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #1e1f22;
  --sheet: #26272b;
  --ink: #eeeeec;
  --muted: #b4b4ae;
  --line: #3b3c41;
  --blue-ink: #a9bdff;
  --amber-ink: #f6c177;
  --amber-wash: #40321b;
  --tint: #27292e;
  --rule: #383b43;
  --wash: rgb(130 160 255 / 0.18);
  --visit: 0.26;
}
:root[data-theme='dark'] .g-all { --tone-ink: #a9bdff; }
:root[data-theme='dark'] .g-salon { --tone-ink: #ff9cc8; }
:root[data-theme='dark'] .g-clinic { --tone-ink: #6fdcd0; }
:root[data-theme='dark'] .g-studio { --tone-ink: #c9adff; }
:root[data-theme='dark'] .theme::before { transform: translateX(28px); }
:root[data-theme='dark'] .theme .sun { color: #b4b4ae; }
:root[data-theme='dark'] .theme .moon { color: #1a1a18; }

:root[data-theme='light'] {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
fieldset {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

fieldset {
  min-width: 0;
  border: 0;
}

a {
  color: var(--blue-ink);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
}

.ic {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The column: 1200 wide, its left edge on a whole pixel at any window width
   (a centred column lands on a half at an odd one, and text there is drawn
   differently while the page moves and when it stops). */
.wrap {
  padding-inline: max(16px, calc((100% - 1200px) / 2));
  padding-inline: max(16px, round(down, (100% - 1200px) / 2, 1px));
}

/* ── The header: the app's frame, solid, its edge in the accent ──────────
   Whole pixels all the way: 64 high, the brand's line the icon's 32, so it
   stands at 16; a layer of its own, not drawn again as the page scrolls. */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 66px;
  background: var(--graphite);
  border-bottom: 2px solid #5a73c4;
  color: #f6f6f4;
  transform: translateZ(0);
}

.top .wrap {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  height: 64px;
  padding-top: 16px;
  line-height: 32px;
}

.brand {
  display: flex;
  gap: 8px;
  height: 32px;
  color: inherit;
  font-size: 19px;
  font-weight: 650;
  line-height: 32px;
  letter-spacing: 0;
  text-decoration: none;
}

/* 32 px of a 48 box: its strokes come to whole pixels, 2 and 1. */
.brand svg {
  flex: none;
  width: 32px;
  height: 32px;
}

.nav {
  display: flex;
  gap: 24px;
  margin-right: auto;
  font-size: 15px;
}

.top a {
  color: #d4d4d0;
  text-decoration: none;
}

.top a:hover {
  color: #fff;
}

.top .brand,
.top .btn {
  color: #fff;
}

.top-actions {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

.top .btn {
  height: 36px;
  margin-top: -2px;
  line-height: 34px;
}

/* Light or dark: a switch of two places, the sun's and the moon's, the knob
   under the one that is on. There only when the script that works it has run. */
.theme {
  position: relative;
  display: none;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  width: 64px;
  height: 32px;
  padding: 0 3px;
  border: 1px solid #6b6b66;
  border-radius: 16px;
  background: #262624;
  color: #b4b4ae;
  cursor: pointer;
}

.js .theme {
  display: grid;
}

.theme::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 30px;
  height: 26px;
  border-radius: 13px;
  background: #f6f6f4;
  transition: transform 180ms ease;
}

.theme .ic {
  position: relative;
  width: 16px;
  height: 16px;
}

.theme .sun {
  color: #1a1a18;
}

/* ── Buttons: the app's, 10 px corners ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--blue);
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background: #3559cf;
  border-color: #3559cf;
}

.btn-big {
  height: 52px;
  padding: 0 28px;
  font-size: 17px;
}

/* The second button: the accent washed, its words in the accent. */
.btn-soft {
  border-color: transparent;
  background: var(--wash);
  color: var(--blue-ink);
}

.btn-soft:hover {
  border-color: var(--blue);
  background: var(--wash);
}

/* ── Type ─────────────────────────────────────────────────────────────── */
h1 {
  font-size: clamp(31px, 4.6vw, 60px);
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

h2 {
  max-width: 20em;
  font-size: clamp(28px, 3.1vw, 42px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.028em;
}

h3 {
  font-size: 21px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.lead {
  max-width: 36em;
  margin-top: 20px;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.45;
  color: var(--muted);
}

.block {
  padding: 96px 0;
}

.head {
  margin-bottom: 48px;
}

/* White after white: one line between, and the room above it once. */
.start {
  padding-bottom: 0;
}

/* ── Hero: words, then the program itself ─────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 0;
  /* The tint to where the screen's middle is, the paper under it. */
  background: linear-gradient(var(--paper), var(--paper)) 0 100% / 100% 240px no-repeat, var(--tint);
}

.hero .wrap {
  position: relative;
  text-align: center;
}

.h-line {
  display: block;
}

.hero .lead {
  margin-inline: auto;
}

.hero-actions {
  justify-content: center;
}

/* The word that changes: a module's name on its own tone, its icon before it.
   The script sets the pill's width from one word to the next, so the words
   beside it slide rather than jump; with no script or no motion it stays
   «журнал». */
/* The word inside sits on the line's baseline, as the words beside it; the
   box is even above the small letters and below them (Inter: x-height 0.55em,
   capitals 0.73em, so a hair higher for «API»), the icon on their middle. */
.pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  padding: 0.02em 0.28em 0.17em 0.22em;
  overflow: hidden;
  border-radius: 0.22em;
  background: rgb(var(--t));
  color: #fff;
  line-height: 0.96;
  white-space: nowrap;
  vertical-align: baseline;
  transition: width 420ms cubic-bezier(0.3, 0.7, 0.2, 1), background-color 320ms ease;
}

.pill .ic {
  position: relative;
  top: 0.05em;
  align-self: baseline;
  flex: none;
  width: 0.66em;
  height: 0.66em;
  stroke-width: 2;
}

.pill .ic,
.pill-word {
  transition: transform 240ms ease, opacity 200ms ease;
}

.pill.out .ic,
.pill.out .pill-word {
  opacity: 0;
  transform: translateY(-45%);
  transition-duration: 160ms;
}

/* Two strips of the appointment book beside the screen, where the window is
   wide enough to have margins: rows, two masters' columns, visits in the
   app's colours. */
.book {
  position: absolute;
  bottom: 250px;
  width: 288px;
  height: 440px;
  pointer-events: none;
}

.book-l {
  right: calc(50% + 624px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}

.book-r {
  left: calc(50% + 624px);
  -webkit-mask-image: linear-gradient(270deg, transparent, #000 70%);
  mask-image: linear-gradient(270deg, transparent, #000 70%);
}

.book line {
  stroke: var(--rule);
}

.book .shut {
  fill: var(--rule);
  opacity: 0.45;
}

.book .v {
  fill: rgb(var(--t) / var(--visit));
}

.book .e {
  fill: rgb(var(--t));
}

.book .w {
  fill: rgb(var(--t) / 0.42);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 32px;
}

.shot {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #efeeea;
}

.shot img {
  width: 100%;
}

.hero .shot {
  margin-top: 56px;
  border-color: #cfcfca;
}

/* ── The base: a row a part, its words and its screen ─────────────────── */
.parts > li {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 48px;
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

/* A part's sign, as the app draws one: the icon on a wash of the accent. */
.pic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--wash);
  color: var(--blue-ink);
}

.pic .ic {
  width: 22px;
  height: 22px;
}

.also .pic {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 10px;
}

.also .pic .ic {
  width: 20px;
  height: 20px;
}

.parts h3 {
  font-size: 26px;
  letter-spacing: -0.02em;
}

.parts p {
  margin-top: 12px;
  color: var(--muted);
}

.also {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.also h3 {
  font-size: 18px;
}

.also p {
  margin-top: 6px;
  font-size: 16px;
  color: var(--muted);
}

/* ── Modules: the menu at the left, the switches at the right ─────────── */
.modules {
  background: var(--sheet);
}

.presets {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 16px;
}

.js .presets {
  display: flex;
}

.presets span {
  margin-right: 8px;
  font-weight: 550;
}

.presets button {
  height: 38px;
  padding: 0 14px;
  border: 1px solid #c9c9c4;
  border-radius: 10px;
  background: #fff;
  color: #1a1a18;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.presets button:hover {
  border-color: var(--blue);
}

.presets button[aria-pressed='true'] {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.board {
  display: grid;
  grid-template-columns: 264px 1fr;
  overflow: hidden;
  border: 1px solid #cfcfca;
  border-radius: 14px;
  background: #efeeea;
}

/* The app's rail, drawn: what the switches change. */
.rail {
  padding: 16px 8px;
  background: var(--graphite);
  color: #f6f6f4;
  font-size: 15px;
  font-weight: 500;
}

.rail li {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
}

.rail .ic {
  width: 18px;
  height: 18px;
  color: #c4c4c0;
}

.rail .sub {
  padding-left: 40px;
  color: #c4c4c0;
  font-weight: 450;
}

/* A line a switch has put there. */
.rail .mod {
  color: #fff;
  background: rgb(65 105 225 / 0.34);
}

.rail .mod .ic {
  color: #fff;
}

.rail .mod + .mod {
  margin-top: 2px;
}

.switches {
  padding: 20px;
  color: #1a1a18;
}

.switches legend {
  float: left;
  width: 100%;
  margin-bottom: 14px;
  padding: 0;
  font-size: 16px;
  font-weight: 550;
}

.switches ul {
  clear: both;
  border: 1px solid #e2e2de;
  border-radius: 14px;
  background: #fff;
}

.switches li + li {
  border-top: 1px solid #e8e8e6;
}

.switches label {
  display: grid;
  grid-template-columns: 36px 1fr 40px;
  gap: 2px 14px;
  align-items: center;
  padding: 13px 18px 13px 16px;
  cursor: pointer;
}

.switches .ic {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 10px;
  background: rgb(65 105 225 / 0.12);
  color: #3052c4;
}

.switches b {
  align-self: end;
  font-size: 16px;
  font-weight: 650;
}

.switches small {
  grid-column: 2;
  align-self: start;
  font-size: 14px;
  line-height: 1.4;
  color: #5c5c57;
}

.switches input {
  grid-column: 3;
  grid-row: 1 / span 2;
  appearance: none;
  -webkit-appearance: none;
  width: 40px;
  height: 22px;
  margin: 0;
  border-radius: 11px;
  background: radial-gradient(circle at 11px 11px, #fff 8px, transparent 8.5px), #c9c9c4;
  cursor: pointer;
}

.switches input:checked {
  background: radial-gradient(circle at 29px 11px, #fff 8px, transparent 8.5px), #4169e1;
}

/* A switch off takes its line out of the menu. */
.board:has(#m-stock:not(:checked)) .r-stock,
.board:has(#m-passes:not(:checked)) .r-passes,
.board:has(#m-rooms:not(:checked)) .r-rooms,
.board:has(#m-resources:not(:checked)) .r-resources,
.board:has(#m-groups:not(:checked)) .r-groups,
.board:has(#m-med:not(:checked)) .r-med,
.board:has(#m-ai:not(:checked)) .r-ai,
.board:has(#m-api:not(:checked)) .r-api {
  display: none;
}

/* ── In development ───────────────────────────────────────────────────── */
.soon {
  margin-top: 72px;
}

.soon > h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.badge {
  padding: 0 10px;
  border-radius: 6px;
  background: var(--amber-wash);
  color: var(--amber-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: 0;
}

.soon > p {
  max-width: 38em;
  margin-top: 12px;
  color: var(--muted);
}

/* Four columns on one set of rows: the titles on one line, each item's rule
   on its neighbours' line, whatever the words' length. */
.soon-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, auto);
  column-gap: 32px;
  margin-top: 32px;
}

.soon-cols section {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
}

.soon-cols h4 {
  padding: 12px 0;
  border-top: 3px solid rgb(var(--tone));
  border-bottom: 1px dashed #a9a9a3;
  font-size: 16px;
  font-weight: 650;
}

.soon-cols p {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 2px 12px;
  align-content: start;
  padding: 14px 0;
  border-bottom: 1px dashed #a9a9a3;
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}

.soon-cols .ic {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 10px;
  background: rgb(var(--tone) / 0.13);
  color: var(--tone-ink);
}

.soon-cols b {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.soon-cols span {
  grid-column: 2;
}

/* The app's own tones, one a kind of business. */
.g-all { --tone: 65 105 225; --tone-ink: #3052c4; }
.g-salon { --tone: 219 39 119; --tone-ink: #b81f63; }
.g-clinic { --tone: 13 148 136; --tone-ink: #0b6f67; }
.g-studio { --tone: 124 58 237; --tone-ink: #6d32d6; }

/* ── The assistant: what it does, and it doing it ─────────────────────── */
.ai {
  background: var(--tint);
}

.ai .wrap {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: start;
}

.ai .shot {
  justify-self: end;
  width: 100%;
  max-width: 418px;
  border-color: #cfcfca;
  border-radius: 16px;
}

.does {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
  margin-top: 40px;
}

.does .pic {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 10px;
}

.does .pic .ic {
  width: 20px;
  height: 20px;
}

.does h3 {
  font-size: 18px;
}

.does p {
  margin-top: 6px;
  font-size: 16px;
  color: var(--muted);
}

/* ── Three steps: a real sequence, so numbered ────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  counter-reset: step;
}

.steps li {
  padding-top: 20px;
  border-top: 2px solid var(--ink);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 12px;
  font-size: 42px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--blue-ink);
}

.steps p {
  margin-top: 8px;
  color: var(--muted);
}

/* ── Pricing: four cards, «Профи» lifted ─────────────────────────────────
   The middle plan is the one to sell: its card on the accent, the only
   filled button, the badge above. A year paid at once shows its month. */
.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
}

.period {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--sheet);
}

.period[hidden] {
  display: none;
}

.period button {
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  cursor: pointer;
}

.period button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
}

.period span {
  margin-left: 4px;
  color: #16a34a;
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.plan h3 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.plan-for {
  min-height: 2.9em;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

.plan-price {
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
}

.plan-price b {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.plan-note {
  min-height: 2.9em;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.plan .btn {
  margin-top: 16px;
}

.plan-limits,
.plan-list {
  list-style: none;
  padding: 0;
}

.plan-limits {
  margin-top: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
}

.plan-limits li + li {
  margin-top: 6px;
}

.plan-plus {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
}

.plan-list {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.45;
}

.plan-limits + .plan-list {
  margin-top: 20px;
}

.plan-list li {
  position: relative;
  padding-left: 26px;
}

.plan-list li + li {
  margin-top: 8px;
}

/* A tick before each line, drawn in the accent. */
.plan-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.4em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--blue-ink);
  border-bottom: 2px solid var(--blue-ink);
  transform: rotate(-45deg);
}

.plan-main {
  border: 2px solid var(--blue);
  background: var(--tint);
  box-shadow: 0 18px 40px -18px rgb(65 105 225 / 0.45);
}

.plan-main .plan-note {
  color: var(--blue-ink);
  font-weight: 600;
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 22px;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.plans-more {
  margin-top: 24px;
  font-size: 15px;
  color: var(--muted);
}

/* ── «Оставить заявку»: the form on the page and in a window ──────────── */
.lead-block {
  background: var(--tint);
}

.lead-block .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 48px 64px;
  align-items: start;
}

.lead-text .lead {
  margin-top: 16px;
}

.lead-points {
  margin-top: 28px;
  padding: 0;
  list-style: none;
  font-size: 17px;
}

.lead-points li {
  position: relative;
  padding-left: 28px;
}

.lead-points li + li {
  margin-top: 12px;
}

.lead-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--blue-ink);
  border-bottom: 2px solid var(--blue-ink);
  transform: rotate(-45deg);
}

.lead-contacts {
  margin-top: 28px;
  font-size: 16px;
}

.lead-contacts a {
  color: var(--blue-ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.lead-form {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 18px 40px -24px rgb(26 26 24 / 0.25);
}

.lead-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 450;
  resize: vertical;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--wash);
}

.lead-form .btn {
  position: relative;
  width: 100%;
  margin-top: 4px;
  cursor: pointer;
  font-family: inherit;
}

/* At work the button keeps its words, a ring turning beside them. */
.lead-form .btn.busy {
  pointer-events: none;
}

.lead-form .btn.busy::after {
  content: "";
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid rgb(255 255 255 / 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.lead-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-error {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgb(220 38 38 / 0.1);
  color: #b91c1c;
  font-size: 15px;
}

.lead-legal {
  font-size: 13px;
  color: var(--muted);
}

.lead-legal a {
  color: inherit;
}

/* Sent: the fields give way to the answer. */
.lead-form.sent > :not(.lead-done) {
  display: none;
}

.lead-done {
  padding: 24px 0;
  text-align: center;
}

.lead-done h3 {
  font-size: 22px;
  font-weight: 650;
}

.lead-done p {
  margin-top: 8px;
  color: var(--muted);
}

.lead-dialog {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 28px 28px 8px;
  border: 0;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
}

.lead-dialog::backdrop {
  background: rgb(20 20 18 / 0.55);
}

.lead-dialog h2 {
  font-size: 26px;
}

.lead-dialog .lead-form {
  margin: 12px -28px 0;
  padding-top: 8px;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.lead-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--sheet);
  color: var(--ink);
  cursor: pointer;
}

/* ── Questions ────────────────────────────────────────────────────────── */
.faq {
  max-width: 820px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

/* The question on its line, a chevron at the right that turns when open;
   a long question wraps under itself, not under a marker. */
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 19px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin: 0.3em 4px 0 0;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.faq details[open] summary::after {
  margin-top: 0.5em;
  transform: rotate(-135deg);
}

.faq details p {
  max-width: 40em;
  padding: 0 0 20px;
  color: var(--muted);
}

/* ── The end: the frame again ─────────────────────────────────────────── */
.end {
  background: var(--graphite);
  color: #f6f6f4;
}

.end a {
  color: #dcdcd8;
}

.end .btn {
  color: #fff;
}

.end-call {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding: 72px 0;
}

.end-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.end-call h2 {
  max-width: 17em;
}

.end-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding: 24px 0;
  border-top: 1px solid #55554f;
  font-size: 15px;
}

/* Whose the program is: the company's details, quiet under the links. */
.end-legal {
  padding: 20px 0 40px;
  border-top: 1px solid #55554f;
  font-size: 14px;
  line-height: 1.6;
  color: #c4c4c0;
}

.end-links address {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-left: auto;
  font-style: normal;
}

/* ── Narrower ─────────────────────────────────────────────────────────── */
@media (max-width: 1420px) {
  .book {
    display: none;
  }
}

@media (max-width: 1000px) {
  .lead-block .wrap {
    grid-template-columns: 1fr;
  }

  .faq summary {
    font-size: 17px;
  }

  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }

  .nav,
  .top .staff {
    display: none;
  }

  .top-actions {
    margin-left: auto;
  }

  .parts > li,
  .ai .wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ai .shot {
    justify-self: start;
  }

  .also,
  .soon-cols {
    grid-template-columns: 1fr 1fr;
  }

  .soon-cols {
    grid-template-rows: repeat(10, auto);
  }

  .soon-cols section:nth-child(n + 3) h4 {
    margin-top: 32px;
  }

  .board {
    grid-template-columns: 200px 1fr;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .block {
    padding: 64px 0;
  }

  .head {
    margin-bottom: 32px;
  }

  .top .wrap {
    gap: 12px;
  }

  .top-actions {
    gap: 10px;
  }

  .top .btn {
    padding: 0 12px;
  }

  .top .btn {
    padding: 0 14px;
  }

  .hero {
    padding-top: 40px;
  }

  /* On a phone the headline is only the switch: «Включите [модуль] в один клик». */
  .h-first {
    display: none;
  }

  .pill-row {
    display: block;
    margin: 0.08em 0;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .does {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 28px;
  }

  .hero .shot {
    margin-top: 36px;
  }

  .parts > li {
    padding: 28px 0;
  }

  .parts h3,
  .soon > h3 {
    font-size: 22px;
  }

  .also,
  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .soon-cols,
  .soon-cols section {
    display: block;
  }

  .soon-cols section + section h4 {
    margin-top: 28px;
  }

  /* The menu narrow at the left, the switches by their names alone. */
  .board {
    grid-template-columns: 132px 1fr;
  }

  .rail {
    padding: 10px 4px;
    font-size: 13px;
  }

  .rail li {
    gap: 6px;
    height: 32px;
    padding: 0 6px;
  }

  .rail .ic {
    width: 16px;
    height: 16px;
  }

  .rail .sub {
    padding-left: 28px;
  }

  .switches {
    padding: 10px;
  }

  .switches label {
    grid-template-columns: 1fr 40px;
    padding: 12px;
  }

  .switches .ic,
  .switches small {
    display: none;
  }

  .switches b {
    align-self: center;
    font-size: 15px;
  }

  .switches input {
    grid-column: 2;
    grid-row: 1;
  }

  .presets button {
    height: 36px;
    padding: 0 12px;
  }

  .soon {
    margin-top: 48px;
  }

  .plans {
    grid-template-columns: 1fr;
  }

  .plan-for,
  .plan-note {
    min-height: 0;
  }

  .period {
    display: flex;
  }

  .period button {
    flex: 1;
  }

  .end-call {
    padding: 48px 0;
  }

  .end-links address {
    margin-left: 0;
  }
}

/* Phones: the sign-in link stays in the footer. */
@media (max-width: 430px) {
  .top-actions a:not(.btn) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pill,
  .pill .ic,
  .pill-word,
  .theme::before {
    transition: none;
  }
}
