/*
 * Israsky homepage, concept 2D "Hybrid": the light page of concept A (the
 * Ribbon) with the violet first screen of concept G (Ink). The Ribbon
 * leaves the violet field through a 45-degree fold and runs on into the
 * light page. Base: concept 2 "Digital department: the whole process". One
 * device carries the page: the Ribbon, an orange strip folded at 45 degrees
 * (geometry of the Israsky mark). Everything else stays quiet: two
 * typefaces, one radius, no shadows, no gradients.
 */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
	font-family: "Bona Nova";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/bona-nova-400-he.woff2) format("woff2");
	unicode-range:
		U+0307-0308,
		U+0590-05FF,
		U+200C-2010,
		U+20AA,
		U+25CC,
		U+FB1D-FB4F;
}

@font-face {
	font-family: "Bona Nova";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/bona-nova-400-lat.woff2) format("woff2");
	unicode-range:
		U+0000-00FF,
		U+0131,
		U+0152-0153,
		U+02BB-02BC,
		U+02C6,
		U+02DA,
		U+02DC,
		U+2000-206F,
		U+20AC,
		U+2122,
		U+2212,
		U+FEFF,
		U+FFFD;
}

@font-face {
	font-family: "Bona Nova";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/bona-nova-400i-he.woff2) format("woff2");
	unicode-range:
		U+0307-0308,
		U+0590-05FF,
		U+200C-2010,
		U+20AA,
		U+25CC,
		U+FB1D-FB4F;
}

@font-face {
	font-family: "Bona Nova";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/bona-nova-400i-lat.woff2) format("woff2");
	unicode-range:
		U+0000-00FF,
		U+0131,
		U+0152-0153,
		U+02BB-02BC,
		U+02C6,
		U+02DA,
		U+02DC,
		U+2000-206F,
		U+20AC,
		U+2122,
		U+2212,
		U+FEFF,
		U+FFFD;
}

@font-face {
	font-family: "Bona Nova";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(../fonts/bona-nova-700-he.woff2) format("woff2");
	unicode-range:
		U+0307-0308,
		U+0590-05FF,
		U+200C-2010,
		U+20AA,
		U+25CC,
		U+FB1D-FB4F;
}

@font-face {
	font-family: "Bona Nova";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(../fonts/bona-nova-700-lat.woff2) format("woff2");
	unicode-range:
		U+0000-00FF,
		U+0131,
		U+0152-0153,
		U+02BB-02BC,
		U+02C6,
		U+02DA,
		U+02DC,
		U+2000-206F,
		U+20AC,
		U+2122,
		U+2212,
		U+FEFF,
		U+FFFD;
}

@font-face {
	font-family: Rubik;
	font-style: normal;
	font-weight: 400 500;
	font-display: swap;
	src: url(../fonts/rubik-var-he.woff2) format("woff2");
	unicode-range:
		U+0307-0308,
		U+0590-05FF,
		U+200C-2010,
		U+20AA,
		U+25CC,
		U+FB1D-FB4F;
}

@font-face {
	font-family: Rubik;
	font-style: normal;
	font-weight: 400 500;
	font-display: swap;
	src: url(../fonts/rubik-var-lat.woff2) format("woff2");
	unicode-range:
		U+0000-00FF,
		U+0131,
		U+0152-0153,
		U+02BB-02BC,
		U+02C6,
		U+02DA,
		U+02DC,
		U+2000-206F,
		U+20AC,
		U+2122,
		U+2212,
		U+FEFF,
		U+FFFD;
}

/*
 * Cyrillic for the Russian page: the same three Bona Nova faces (a true
 * italic, not a slanted roman) and Rubik
 */
@font-face {
	font-family: "Bona Nova";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/bona-nova-400-cyr.woff2) format("woff2");
	unicode-range:
		U+0301,
		U+0400-045F,
		U+0490-0491,
		U+04B0-04B1,
		U+2116;
}

@font-face {
	font-family: "Bona Nova";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/bona-nova-400i-cyr.woff2) format("woff2");
	unicode-range:
		U+0301,
		U+0400-045F,
		U+0490-0491,
		U+04B0-04B1,
		U+2116;
}

@font-face {
	font-family: "Bona Nova";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(../fonts/bona-nova-700-cyr.woff2) format("woff2");
	unicode-range:
		U+0301,
		U+0400-045F,
		U+0490-0491,
		U+04B0-04B1,
		U+2116;
}

@font-face {
	font-family: Rubik;
	font-style: normal;
	font-weight: 400 500;
	font-display: swap;
	src: url(../fonts/rubik-var-cyr.woff2) format("woff2");
	unicode-range:
		U+0301,
		U+0400-045F,
		U+0490-0491,
		U+04B0-04B1,
		U+2116;
}

/* ---------- Tokens ---------- */
:root {
	--white: #fff;
	--paper: #f7f5fa;
	--violet: #2a1a5e;
	--ink: #121212;
	--ink-2: #5a5470;
	--on-violet-2: #d9d3ec;
	--orange: #f45905;      /* graphics only: ribbon and mark, never text */
	--fold: #a83d03;        /* back side of a fold; also button hover */
	--action: #cc4a04;      /* the one button */
	--rule: #dadada;

	/* Ink field (first screen): desaturated brand violet, cream text */
	--night: #180f38;        /* field: cream 15.72:1, lavender 9.16:1 */
	--night-2: #211650;      /* hover inside the console */
	--cream: #f3efe6;        /* 13.00:1 on #2A1A5E */
	--lav: #bdb4d6;          /* second text: 7.57:1 on #2A1A5E */
	--ink-line: #3a2c78;     /* hairlines, decoration only */
	--ink-line-strong: #56469a;
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .05 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

	--serif: "Bona Nova", "Frank Ruhl Libre", georgia, serif;
	--sans: "Rubik", system-ui, sans-serif;

	--radius: 8px;
	--t: 14px;              /* ribbon thickness */
	--wrap: 1240px;
	--gut: 40px;
	--dir: -1;              /* reading direction sign for transforms: RTL moves to the left */

	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
	--ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

	--fs-display: clamp(40px, 6.6vw, 120px);
	--fs-h2: clamp(32px, 3.9vw, 56px);
	--fs-line: clamp(22px, 2.1vw, 32px);
	--fs-lead: clamp(18px, 1.55vw, 22px);
	--fs-meta: 15px;
	color-scheme: light;
}

[dir="ltr"] {
	--dir: 1;
}

@media (max-width: 760px) {

	:root {
		--gut: 20px;
		--t: 10px;
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	overflow-x: clip;
	background: var(--white);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.6;
	text-align: start;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {

	body {
		font-size: 17px;
	}
}

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

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

ul,
ol {
	list-style: none;
}

a {
	color: inherit;
	text-underline-offset: 0.22em;
	text-decoration-thickness: 1px;
}

:focus-visible {
	outline: 3px solid var(--action);
	outline-offset: 4px;
}

.nw {
	white-space: nowrap;
} /* phone numbers break at hyphens otherwise (LTR pages) */
.vh {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + 2 * var(--gut));
	margin-inline: auto;
	padding-inline: var(--gut);
}

.serif {
	font-family: var(--serif);
}

.num {
	font-family: var(--sans);
	font-weight: 500;
	font-style: normal;
	font-variant-numeric: tabular-nums lining-nums;
}

h2 {
	font-family: var(--serif);
	font-weight: 700;
	font-size: var(--fs-h2);
	line-height: 1.04;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.skip {
	position: absolute;
	inset-inline-start: 16px;
	top: -60px;
	background: var(--ink);
	color: #fff;
	padding: 10px 16px;
	border-radius: var(--radius);
	z-index: 10;
	text-decoration: none;
}

.skip:focus {
	top: 12px;
}

/* Buttons: one action per screen */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 14px 30px;
	background: var(--action);
	color: #fff;
	font-family: var(--sans);
	font-weight: 500;
	font-size: 18px;
	text-decoration: none;
	border-radius: var(--radius);
	transition: background-color 160ms ease, transform 160ms var(--ease-out);
}

.btn:active {
	transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {

	.btn:hover {
		background: var(--fold);
	}
}

.quiet {
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: currentcolor;
}

@media (hover: hover) and (pointer: fine) {

	.quiet:hover {
		text-decoration-thickness: 2px;
	}
}

/* ---------- Ribbon primitives ---------- */

/* Mini ribbon: six skewed segments, 120 x 8. States: on / agree / off. */
.mini {
	display: inline-grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 4px;
	width: 132px;
	height: 8px;
	flex-shrink: 0;
}

.mini i {
	display: block;
	transform: skewX(45deg);
	background: var(--orange);
}

[dir="ltr"] .mini i {
	transform: skewX(-45deg);
}

.mini i.agree {
	background: transparent;
	border: 2px solid var(--orange);
}

.mini i.off {
	background: rgba(42, 26, 94, 0.18);
}

.on-violet .mini i.off {
	background: rgba(255, 255, 255, 0.2);
}

/* State key: swatch + words, so state never rests on colour alone */
.state {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: var(--fs-meta);
	font-weight: 500;
	letter-spacing: 0.02em;
}

.state::before {
	content: "";
	width: 22px;
	height: 10px;
	transform: skewX(45deg);
	background: var(--orange);
}

[dir="ltr"] .state::before {
	transform: skewX(-45deg);
}

.state.agree::before {
	background: transparent;
	border: 2px solid var(--orange);
}

.state.off::before {
	background: rgba(42, 26, 94, 0.18);
}

.on-violet .state.off::before {
	background: rgba(255, 255, 255, 0.2);
}

/*
 * ---------- Ink field: header and first screen (from concept G "Ink")
 * ----------
 */

/*
 * Night violet with a white speckle of at most 5 %, cream text. Worst grain
 * pixel on #2A1A5E is #352567: cream 11.35:1, lavender 6.62:1.
 */
.ink {
	background-color: var(--night);
	background-image: var(--grain);
	color: var(--cream);
}

.ink :focus-visible {
	outline-color: var(--cream);
}

.ink a {
	color: inherit;
}

.ink .btn {
	color: #fff;
} /* white on #CC4A04 is 4.62:1; cream would be 4.02:1 (axe, round 3) */
.ink .quiet {
	text-decoration-color: var(--ink-line-strong);
	text-underline-offset: 6px;
}

@media (hover: hover) and (pointer: fine) {

	.ink .quiet:hover {
		text-decoration-color: var(--orange);
		text-decoration-thickness: 1px;
	}
}

/*
 * ---------- Header (on the violet field; not sticky, the rest of the page
 * is as in A) ----------
 */
.top {
	position: relative;
	z-index: 5;
}

.top .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	height: 76px;
}

.logo {
	display: block;
}

.logo img {
	width: 138px;
}

.nav {
	display: flex;
	gap: 32px;
	font-size: 16px;
	font-weight: 500;
}

.nav a {
	text-decoration: none;
	padding-block: 8px;
}

@media (hover: hover) and (pointer: fine) {

	.nav a:hover {
		text-decoration: underline;
		text-decoration-color: var(--orange);
	}
}

.top-end {
	display: flex;
	align-items: center;
	gap: 24px;
	font-size: 16px;
	font-weight: 500;
}

.top-end a {
	text-decoration: none;
}

.top-end .wa {
	display: none;
}

.lang {
	border: 1px solid var(--lav);
	border-radius: var(--radius);
	padding: 4px 10px;
	font-size: 14px;
}

/* Menu below 1100 px: a native disclosure, keyboard and no-JS safe */
.menu {
	display: none;
}

.menu summary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 6px 14px;
	cursor: pointer;
	list-style: none;
	border: 1px solid var(--lav);
	border-radius: var(--radius);
	font-size: 15px;
	font-weight: 500;
}

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

.menu-mark {
	width: 20px;
	height: 8px;
	background: var(--cream);
	clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

[dir="rtl"] .menu-mark {
	clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%);
}

.menu[open] .menu-mark {
	background: var(--orange);
}

.menu-panel {
	position: absolute;
	top: calc(100% - 6px);
	inset-inline: var(--gut);
	z-index: 30;
	padding: 6px 20px 16px;
	background: var(--violet);
	border: 1px solid var(--ink-line-strong);
	border-radius: var(--radius);
}

.menu-panel nav {
	display: flex;
	flex-direction: column;
}

.menu-panel nav a {
	display: flex;
	align-items: center;
	min-height: 52px;
	border-bottom: 1px solid var(--ink-line);
	font-family: var(--serif);
	font-weight: 700;
	font-size: 22px;
	line-height: 1.2;
	text-decoration: none;
}

.menu-end {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 28px;
	padding-top: 10px;
	font-size: 16px;
}

.menu-end a {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	min-height: 44px;
	color: var(--lav);
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

/* ---------- 1. First screen ---------- */

/*
 * --air: clear space between the trust strip and the upper run of the seam,
 * so the ribbon reads as its own gesture (at least one grid step, 40 px, on
 * desktop), not as an underline of the strip.
 */
.hero {
	position: relative;
	--drop: calc(4 * var(--t));
	--g: calc((var(--drop) - var(--t)) / 2);
	--air: 40px;
	padding-bottom: calc(var(--g) + var(--t) + var(--air));
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: clamp(40px, 5vw, 96px);
	align-items: center;
	padding-block: clamp(24px, 4vh, 64px) clamp(28px, 4vh, 56px);
}

.hero h1 {
	font-family: var(--sans);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--lav);
	letter-spacing: 0.01em;
	text-wrap: balance;
}

/*
 * Two voices of one serif: upright 700 in cream, italic 400 in lavender
 * (the page's second voice, as in A)
 */
.claim {
	margin-top: 18px;
	font-family: var(--serif);
	font-size: clamp(44px, 5.4vw, 92px);
	line-height: 1.02;
	letter-spacing: -0.015em;
}

@media (min-width: 761px) {

	.claim b,
	.claim em {
		white-space: nowrap;
	}
}

.claim b {
	display: block;
	font-weight: 700;
	color: var(--cream);
}

.claim em {
	display: block;
	font-weight: 400;
	font-style: italic;
	color: var(--lav);
}

.lead {
	margin-top: 26px;
	font-size: var(--fs-lead);
	line-height: 1.6;
	max-width: 46ch;
	text-wrap: pretty;
}

.actions {
	margin-top: 34px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 28px;
}

/*
 * The console: six steps with honest states. A state is a word plus a
 * skewed swatch, as everywhere on the page.
 */
.lamp {
	display: inline-block;
	flex: none;
	width: 26px;
	height: 10px;
	transform: skewX(45deg);
	background: var(--orange);
}

[dir="ltr"] .lamp {
	transform: skewX(-45deg);
}

.lamp.agree {
	background: transparent;
	border: 2px solid var(--orange);
}

.pult {
	background: var(--violet);
	border: 1px solid var(--ink-line-strong);
	border-radius: var(--radius);
}

.pult-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 16px;
	padding: 18px 22px;
	border-bottom: 1px solid var(--ink-line-strong);
}

.pult-title {
	font-family: var(--serif);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
}

.pult-legend {
	display: flex;
	gap: 18px;
	font-size: 14px;
	color: var(--lav);
}

.pult-legend li {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.pult-legend .lamp {
	width: 20px;
	height: 8px;
}

.pult-row {
	position: relative;
}

.pult-row + .pult-row {
	border-top: 1px solid var(--ink-line);
}

.pult-row a {
	position: relative;
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 16px;
	padding: 12px 22px;
	min-height: 64px;
	text-decoration: none;
	transition: background-color 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {

	.pult-row a:hover {
		background: var(--night-2);
	}

	.pult-row a:hover .ps {
		text-decoration: underline;
		text-decoration-thickness: 1px;
	}
}

.pult-row a:active {
	background: var(--night-2);
}

/*
 * Signal path through the number column: a solid line where we run the
 * step, a hollow channel by agreement
 */
.pult-row::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 35px;
	width: 1px;
	background: var(--orange);
}

.pult-row.agree::before {
	width: 5px;
	inset-inline-start: 33px;
	background: transparent;
	border-inline: 1px solid var(--orange);
}

.pult-row:first-child::before {
	top: 24px;
}

.pult-row:last-child::before {
	bottom: 24px;
}

.pn {
	position: relative;
	z-index: 1;
	justify-self: start;
	width: 30px;
	padding-block: 3px;
	text-align: center;
	background: var(--violet);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.02em;
	font-variant-numeric: tabular-nums lining-nums;
	transition: background-color 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {

	.pult-row a:hover .pn {
		background: var(--night-2);
	}
}

.ps {
	display: block;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.35;
}

.pt {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--lav);
}

.pst {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--lav);
	white-space: nowrap;
}

/* Trust strip under the first screen */
.strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--ink-line);
}

.strip li {
	padding: 20px 0;
	font-size: 15px;
	color: var(--lav);
}

.strip li + li {
	padding-inline-start: 24px;
	border-inline-start: 1px solid var(--ink-line);
}

.strip strong {
	color: var(--cream);
	font-weight: 500;
}

.strip .quiet {
	display: inline-block;
	padding-block: 3px;
	color: var(--cream);
}

/*
 * ---------- The seam: the Ribbon leaves the violet field ---------- Upper
 * run: inside the violet field, a gap --g above its bottom edge, entering
 * from the start edge of the screen. Fold: the back side (#A83D03) at 45
 * degrees, crossing the edge of the field. Lower run: on the light page, a
 * gap --g below the edge, leaving through the end edge into the situations.
 * --fx puts the fold at the start of the console column, so the violet run
 * sits under the text and the light run under the console.
 */
.seam {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 0;
	z-index: 1;
	pointer-events: none;
	--content: calc(min(100%, var(--wrap) + 2 * var(--gut)) - 2 * var(--gut));
	--fx: calc((100% - var(--content)) / 2 + 0.6 * var(--content));
}

.seam i {
	position: absolute;
	display: block;
}

.seam .seg-up {
	bottom: var(--g);
	height: var(--t);
	inset-inline-start: 0;
	width: var(--fx);
	background: var(--orange);
}

.seam .seam-fold {
	top: calc(-1 * (var(--g) + var(--t)));
	height: calc(var(--drop) + var(--t));
	inset-inline-start: var(--fx);
	width: var(--drop);
	background: var(--fold);
	clip-path: polygon(100% 0, 100% var(--t), 0 100%, 0 calc(100% - var(--t)));
}

[dir="ltr"] .seam .seam-fold {
	clip-path: polygon(0 0, 0 var(--t), 100% 100%, 100% calc(100% - var(--t)));
}

.seam .seg-down {
	top: var(--g);
	height: var(--t);
	inset-inline-start: calc(var(--fx) + var(--drop));
	inset-inline-end: 0;
	background: var(--orange);
}

/* ---------- 2. Situations ---------- */
.sect {
	padding-block: clamp(80px, 9vw, 136px);
}

.sect-head {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 24px 64px;
	align-items: end;
}

.sect-head p {
	color: var(--ink-2);
	font-size: var(--fs-lead);
	line-height: 1.5;
	max-width: 40ch;
	text-wrap: pretty;
}

.sits {
	margin-top: 56px;
	border-bottom: 1px solid var(--ink);
}

.sits li {
	border-top: 1px solid var(--ink);
}

.sit {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto;
	gap: 12px 48px;
	align-items: baseline;
	padding-block: 30px;
	text-decoration: none;
}

div.sit {
	cursor: default;
}

.sit .t {
	font-family: var(--serif);
	font-weight: 700;
	font-size: var(--fs-line);
	line-height: 1.15;
}

.sit .c {
	color: var(--ink-2);
	font-size: 18px;
	max-width: 46ch;
	text-wrap: pretty;
}

.sit .go {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	align-self: center;
}

[dir="rtl"] .sit .go {
	align-items: flex-end;
}

.sit .go .lbl {
	font-size: var(--fs-meta);
	font-weight: 500;
	white-space: nowrap;
}

a.sit .go .lbl {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

a.sit .mini i {
	transition: opacity 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {

	a.sit .mini i.off {
		transition: opacity 200ms var(--ease-out);
	}

	a.sit:hover .mini i.off,
	a.sit:focus-visible .mini i.off {
		opacity: 0.35;
	}

	a.sit:hover .t {
		text-decoration: underline;
		text-decoration-thickness: 1px;
	}
}

a.sit:active {
	transform: scale(0.99);
	transition: transform 160ms var(--ease-out);
}

/* ---------- 3. Works on a passe-partout ---------- */
.proof {
	background-color: var(--paper);
	background-image: url(../img/tex-paper.svg);
	background-size: 280px 280px;
}

.works {
	margin-top: 56px;
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
	gap: 40px 56px;
	align-items: start;
}

.stage {
	display: grid;
}

.work {
	grid-area: 1 / 1;
	opacity: 1;
	filter: blur(0);
	visibility: visible;
	transition: opacity 200ms var(--ease-out), filter 200ms var(--ease-out), visibility 0s linear 0s;
}

.js .work[hidden] {
	display: block;
	opacity: 0;
	filter: blur(2px);
	visibility: hidden;
	pointer-events: none;
	transition: opacity 160ms var(--ease-out), filter 160ms var(--ease-out), visibility 0s linear 160ms;
}

html:not(.js) .stage {
	display: block;
}

html:not(.js) .work[hidden] {
	display: block;
	margin-top: 40px;
}

.mat {
	background: var(--white);
	border-radius: var(--radius);
	padding: 48px;
}

.mat img {
	width: 100%;
	aspect-ratio: 1600 / 860;
	object-fit: cover;
	object-position: top;
	border-radius: var(--radius);
	border: 1px solid var(--rule);
}

.work figcaption {
	margin-top: 22px;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 28px;
	align-items: center;
}

.work .who {
	font-family: var(--serif);
	font-weight: 700;
	font-size: 26px;
	line-height: 1.2;
}

.work .kind {
	color: var(--ink-2);
	font-size: 16px;
}

.work .did {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	color: var(--ink-2);
	font-size: 16px;
}

.picker {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-top: 8px;
}

.picker li {
	border-bottom: 1px solid var(--rule);
}

.picker a,
.picker button {
	display: block;
	width: 100%;
	text-align: start;
	background: none;
	border: 0;
	padding: 14px 0;
	min-height: 48px;
	cursor: pointer;
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(24px, 2vw, 30px);
	line-height: 1.2;
	color: var(--ink-2);
	text-decoration: none;
	transition: color 160ms ease, transform 160ms var(--ease-out);
}

.picker [aria-pressed="true"] {
	color: var(--ink);
	font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {

	.picker button:hover {
		color: var(--ink);
	}
}

.picker button:active {
	transform: scale(0.97);
}

.picker-note {
	margin-top: 24px;
	color: var(--ink-2);
	font-size: 16px;
	text-wrap: pretty;
}

.all-link {
	margin-top: 28px;
	display: inline-block;
}

/* ---------- 4. Digital department: the scene ---------- */
.dept {
	background-color: var(--violet);
	background-image: url(../img/tex-night.svg);
	background-size: 280px 280px;
	color: var(--white);
	overflow-x: clip;
}

.dept :focus-visible {
	outline-color: var(--white);
}

.dept .sect-head p {
	color: var(--on-violet-2);
}

.dept a {
	color: var(--white);
}

.scene {
	margin-top: 72px;
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 0 clamp(32px, 4vw, 64px);
}

.rail {
	position: sticky;
	top: 12vh;
	align-self: start;
	height: 76vh;
	display: flex;
	flex-direction: column;
}

.rail li {
	flex: 1;
	position: relative;
}

.rail a {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding-top: 10px;
	text-decoration: none;
}

.rail .seg {
	position: relative;
	width: var(--t);
	height: 100%;
	flex-shrink: 0;
	background: var(--orange);
	transition: opacity 240ms var(--ease-out);
}

.rail .seg.agree {
	background: transparent;
	border: 2px solid var(--orange);
}

.rail .seg::before { /* fold at the top of every segment */
	content: "";
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	width: var(--t);
	height: var(--t);
	background: var(--fold);
	clip-path: polygon(0 0, 100% 0, 100% 100%);
}

[dir="ltr"] .rail .seg::before {
	clip-path: polygon(0 0, 100% 0, 0 100%);
}

.rail li + li {
	margin-top: 4px;
}

.rail .rn {
	font-weight: 500;
	font-size: var(--fs-meta);
	color: var(--on-violet-2);
	transition: opacity 240ms var(--ease-out);
}

.rail [aria-current="step"] .rn {
	color: var(--white);
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

.js-scene .rail .seg {
	opacity: 0.18;
}

.js-scene .rail li.lit .seg {
	opacity: 1;
}

.chapters {
	display: flex;
	flex-direction: column;
}

.ch {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 5fr);
	gap: 32px 56px;
	align-items: start;
	padding-block: 64px;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
	scroll-margin-top: 80px;
}

.ch:first-child {
	border-top: 0;
	padding-top: 8px;
}

.ch-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
}

.ch .n {
	font-weight: 500;
	font-size: var(--fs-meta);
	letter-spacing: 0.02em;
	color: var(--on-violet-2);
}

.ch h3 {
	margin-top: 14px;
	font-family: var(--serif);
	font-weight: 700;
	font-size: clamp(28px, 2.4vw, 36px);
	line-height: 1.12;
	text-wrap: balance;
}

.ch .tools {
	margin-top: 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	color: var(--on-violet-2);
	font-size: 16px;
}

.ch .tools sup {
	font-size: 14px;
	vertical-align: baseline;
	margin-inline-end: 2px;
	font-weight: 500;
}

.ch p.do {
	margin-top: 18px;
	color: var(--on-violet-2);
	max-width: 48ch;
	text-wrap: pretty;
}

.ch p.do a {
	font-weight: 500;
}

.ch .more {
	margin-top: 18px;
	display: inline-block;
	font-weight: 500;
	font-size: 16px;
}

.ch .more + .more {
	margin-inline-start: 28px;
}

.ch.compact {
	grid-template-columns: minmax(0, 1fr);
	padding-block: 48px;
}

.ch.compact p.do {
	max-width: 64ch;
}

.ch.wide .art {
	align-self: center;
}

/* Artifacts */
.art {
	margin: 0;
}

.art figcaption {
	margin-top: 12px;
	color: var(--on-violet-2);
	font-size: var(--fs-meta);
	text-wrap: pretty;
}

.art-frame {
	border-radius: var(--radius);
	overflow: hidden;
	border: 1.5px solid rgba(255, 255, 255, 0.55);
	background: var(--white);
}

.art-frame img {
	width: 100%;
}

/*
 * Paper sheet typeset by the page (chapter 04 route). Typeset artifacts
 * from graphics (05, 06) sit in a plain .art-frame: they carry their own
 * fold mark, so a second orange corner would be one too many.
 */
.sheet {
	position: relative;
	background: var(--white);
	color: var(--ink);
	border-radius: var(--radius);
	padding: 30px 32px 34px;
	overflow: hidden;
}

.sheet::before,
.sheet::after { /* folded corner in ribbon colours: cut-away and the orange back side */
	content: "";
	position: absolute;
	top: 0;
	inset-inline-end: 0;
	width: 44px;
	height: 44px;
}

.sheet::before {
	background: var(--violet);
	clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.sheet::after {
	background: var(--orange);
	clip-path: polygon(0 0, 100% 100%, 0 100%);
}

[dir="rtl"] .sheet::before {
	clip-path: polygon(0 0, 100% 0, 0 100%);
}

[dir="rtl"] .sheet::after {
	clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.sheet .h {
	font-weight: 500;
	font-size: var(--fs-meta);
	color: var(--ink-2);
}

/* Before and after */
.ba {
	margin-top: 24px;
	padding-top: 72px;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 48px 64px;
	align-items: center;
}

.ba h3 {
	font-family: var(--serif);
	font-weight: 700;
	font-size: var(--fs-line);
	line-height: 1.15;
}

.ba p {
	margin-top: 16px;
	color: var(--on-violet-2);
	max-width: 46ch;
	text-wrap: pretty;
}

.ba-visual {
	position: relative;
	display: grid;
	grid-template-rows: auto auto;
	gap: 40px;
}

/*
 * Five loose papers, each with two real lines typeset by the page
 * (copywriter, TASK-1014b): what the owner holds today
 */
.scatter {
	position: relative;
	height: 268px;
}

.slip {
	position: absolute;
	width: 176px;
	background: var(--white);
	color: var(--ink);
	border-radius: var(--radius);
	padding: 14px 16px 16px;
}

.slip b {
	display: block;
	font-weight: 500;
	font-size: 15px;
	line-height: 1.3;
}

.slip span {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--ink-2);
	text-wrap: pretty;
}

.slip b + span {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--rule);
}

.slip:nth-child(1) {
	inset-inline-start: 0;
	top: 22px;
	transform: rotate(-4deg);
}

.slip:nth-child(2) {
	inset-inline-start: 18%;
	top: 118px;
	transform: rotate(3deg);
}

.slip:nth-child(3) {
	inset-inline-start: 37%;
	top: 6px;
	transform: rotate(-2deg);
}

.slip:nth-child(4) {
	inset-inline-start: 55%;
	top: 126px;
	transform: rotate(4deg);
}

.slip:nth-child(5) {
	inset-inline-end: 0;
	top: 30px;
	transform: rotate(-3deg);
}

.one-strip {
	position: relative;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	padding-top: 34px;
}

.one-strip::before {
	content: "";
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	inset-inline-end: -100vw;
	height: var(--t);
	background: var(--orange);
}

.one-strip span {
	position: relative;
	font-weight: 500;
	font-size: var(--fs-meta);
	color: var(--on-violet-2);
	padding-inline-start: calc(var(--t) + 6px);
}

.one-strip span::before {
	content: "";
	position: absolute;
	top: -34px;
	inset-inline-start: 0;
	width: var(--t);
	height: var(--t);
	background: var(--fold);
	clip-path: polygon(100% 0, 0 0, 100% 100%);
}

[dir="ltr"] .one-strip span::before {
	clip-path: polygon(0 0, 100% 0, 0 100%);
}

.one-strip span:first-child::before {
	display: none;
}

/* Tiers */
.tiers {
	margin-top: 96px;
}

.tiers-grid {
	margin-top: 40px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 56px;
	border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.tier {
	padding-top: 32px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.tier h3 {
	font-family: var(--serif);
	font-weight: 700;
	font-size: var(--fs-line);
	line-height: 1.15;
}

.tier h3 em {
	font-weight: 400;
}

.tier p {
	color: var(--on-violet-2);
	max-width: 50ch;
	text-wrap: pretty;
}

.tier .row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 24px;
}

.price {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: var(--radius);
	font-weight: 500;
	font-size: var(--fs-meta);
}

.tier .legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	color: var(--on-violet-2);
}

.tiers .also {
	margin-top: 36px;
	color: var(--on-violet-2);
}

/* ---------- 5. Trust ---------- */
.since {
	font-family: var(--serif);
	font-size: clamp(40px, 5.2vw, 88px);
	line-height: 1.02;
	letter-spacing: -0.01em;
}

.since b {
	font-weight: 700;
}

.since em {
	font-weight: 400;
}

.since .num {
	font-size: 0.86em;
	letter-spacing: 0;
}

.since-row {
	max-width: 60rem;
} /* one heading since the reviews block was removed: no grid */
.products {
	margin-top: 96px;
}

.products-grid {
	margin-top: 40px;
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 40px 56px;
	align-items: start;
}

.products-grid .shot {
	grid-row: span 3;
}

.products-grid .card {
	grid-column: 2;
}

.device img {
	aspect-ratio: 1440 / 800;
	object-fit: cover;
	object-position: top;
}

.device img {
	width: 100%;
}

/*
 * Lidin in products: the top of the statistics board (snapshot, statuses,
 * the period funnel), not the list from chapter 03
 */
.device img.lidin-dash {
	aspect-ratio: 1440 / 1060;
}

.product {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.product figcaption {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 8px;
}

.product .shot-note {
	margin-bottom: 8px;
	font-size: var(--fs-meta);
	color: var(--ink-2);
} /* demo-data note: the frame is a product screen, not client data */
.device {
	border: 1.5px solid var(--ink);
	border-radius: var(--radius);
	background: var(--white);
	overflow: hidden;
}

.device .bar {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding-inline: 14px;
	border-bottom: 1.5px solid var(--ink);
}

.device .bar i {
	width: 7px;
	height: 7px;
	transform: rotate(45deg);
	border: 1.5px solid var(--ink);
}

.product h3 {
	font-family: var(--serif);
	font-weight: 700;
	font-size: clamp(28px, 2.4vw, 36px);
	line-height: 1.1;
}

.product .by {
	font-size: var(--fs-meta);
	font-weight: 500;
	color: var(--ink-2);
}

.product p {
	font-size: 17px;
	max-width: 46ch;
	text-wrap: pretty;
}

.product.card {
	padding-top: 22px;
	border-top: 1px solid var(--ink);
}

.mock-flow {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

.sheet .mock-flow {
	margin-top: 18px;
}

.mock-flow .node {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	font-weight: 500;
	font-size: 15px;
}

.mock-flow .node i {
	width: 56px;
	height: 8px;
	flex-shrink: 0;
	background: var(--orange);
	transform: skewX(45deg);
}

[dir="ltr"] .mock-flow .node i {
	transform: skewX(-45deg);
}

/* ---------- 6. Contact ---------- */
.talk {
	background: var(--ink);
	color: var(--white);
	overflow-x: clip;
	padding-bottom: 0;
}

.talk :focus-visible {
	outline-color: var(--white);
}

.talk h2 b {
	font-weight: 700;
}

.talk h2 em {
	font-weight: 400;
	display: block;
}

.talk p {
	margin-top: 22px;
	color: #d6d3dc;
	font-size: var(--fs-lead);
	line-height: 1.5;
	max-width: 44ch;
	text-wrap: pretty;
}

.talk-row {
	margin-top: 48px;
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 0;
}

.tail {
	position: relative;
	height: var(--t);
	margin-inline-start: 0;
}

.tail::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 22px;
	inset-inline-end: -100vw;
	background: var(--orange);
	clip-path: polygon(0 0, 100% 0, 100% 100%, var(--t) 100%);
}

[dir="rtl"] .tail::before {
	clip-path: polygon(0 0, 100% 0, calc(100% - var(--t)) 100%, 0 100%);
}

.talk-links {
	margin-top: 28px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	font-weight: 500;
}

.talk-links a {
	display: inline-block;
	min-height: 44px;
	min-width: 44px;
	padding-block: 8px;
	color: var(--white);
}

.foot {
	margin-top: 112px;
	padding-block: 28px 36px;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	color: #d6d3dc;
	font-size: 15px;
}

.foot img {
	width: 112px;
}

.foot nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

.foot a {
	color: #d6d3dc;
}

/*
 * ---------- Russian first screen (LTR, 20-35 % longer than Hebrew)
 * ---------- Two equal columns give the console room, so step names stay
 * within two lines and the state label beside its lamp stays on one line;
 * the claim steps down a little so each half still sits on one line. The
 * fold follows the console.
 */
@media (min-width: 1101px) {

	:lang(ru) .hero-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	:lang(ru) .claim {
		font-size: clamp(44px, 4.6vw, 72px);
	}

	:lang(ru) .seam {
		--fx: calc((100% - var(--content)) / 2 + 0.5 * var(--content));
	}
}

/*
 * Russian papers carry longer lines: wider slips and a lower second row, so
 * no paper covers another one's text
 */
@media (min-width: 761px) {

	:lang(ru) .scatter {
		height: 350px;
	}

	:lang(ru) .slip {
		width: 196px;
	}

	:lang(ru) .slip:nth-child(2) {
		top: 184px;
	}

	:lang(ru) .slip:nth-child(4) {
		top: 192px;
	}
}

/* ---------- Medium screens ---------- */
@media (max-width: 1100px) {

	.nav {
		display: none;
	}

	.menu {
		display: block;
	}

	.hero-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.seam {
		--fx: calc((100% - var(--content)) / 2 + 0.5 * var(--content));
	}

	.sit {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.sit .c {
		grid-column: 1;
	}

	.sit .go {
		grid-row: 1 / span 2;
		grid-column: 2;
	}

	.works {
		grid-template-columns: minmax(0, 1fr);
	}

	.picker {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0 28px;
	}

	.picker li {
		border-bottom: 0;
	}

	.ch {
		grid-template-columns: minmax(0, 1fr);
	}

	.ba {
		grid-template-columns: minmax(0, 1fr);
	}

	.sect-head {
		grid-template-columns: minmax(0, 1fr);
	}

	.products-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.products-grid .shot {
		grid-row: auto;
	}

	.products-grid .card {
		grid-column: auto;
	}
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {

	.top .wrap {
		height: 68px;
		gap: 12px;
	}

	.logo img {
		width: 112px;
	}

	.top-end {
		gap: 12px;
	}

	.top-end .tel,
	.top-end .lang {
		display: none;
	}

	.top-end .wa {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding-inline: 4px;
		font-size: 15px;
		text-decoration: underline;
		text-decoration-color: var(--ink-line-strong);
		text-underline-offset: 6px;
	}

	.hero-grid {
		padding-block: 22px 32px;
		gap: 32px;
	}

	.hero h1 {
		font-size: 14px;
	}

	.claim {
		margin-top: 12px;
		font-size: 42px;
		line-height: 1.06;
	}

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

	.actions {
		margin-top: 22px;
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.actions .btn {
		width: 100%;
	}

	.actions .quiet {
		align-self: flex-start;
		padding-block: 6px;
	}

	.pult-head {
		padding: 14px 16px;
	}

	.pult-row a {
		grid-template-columns: 34px minmax(0, 1fr);
		padding: 12px 16px;
		min-height: 56px;
	}

	.pult-row::before {
		inset-inline-start: 29px;
	}

	.pult-row.agree::before {
		inset-inline-start: 27px;
	}

	.pst {
		grid-column: 2;
		margin-top: 6px;
	}

	.strip {
		grid-template-columns: minmax(0, 1fr);
	}

	.strip li {
		padding: 12px 0;
	}

	.strip li + li {
		padding-inline-start: 0;
		border-inline-start: 0;
		border-top: 1px solid var(--ink-line);
	}

	/*
 * The seam folds in the middle of the screen: a 40 px drop, so the fold is
 * seen on a phone
 */
	.seam {
		--fx: 46%;
	}

	.hero {
		--air: 28px;
	}

	.sect {
		padding-block: 72px;
	}

	.sits {
		margin-top: 36px;
	}

	.sit {
		grid-template-columns: minmax(0, 1fr);
		padding-block: 24px;
		gap: 10px;
	}

	.sit .go {
		grid-row: 1;
		grid-column: 1;
		align-items: flex-start;
		gap: 0;
	}

	[dir="rtl"] .sit .go {
		align-items: flex-start;
	}

	.sit .go .lbl {
		display: none;
	}

	.mat {
		padding: 16px;
	}

	.mat img {
		aspect-ratio: 780 / 975;
	}

	.work figcaption {
		grid-template-columns: minmax(0, 1fr);
	}

	/*
 * The picker right below names the active work in bold: on a phone the
 * caption does not repeat the name (kept for screen readers)
 */
	.work .who {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.picker {
		flex-direction: column;
	}

	.picker li {
		border-bottom: 1px solid var(--rule);
	}

	.scene {
		margin-top: 40px;
		grid-template-columns: var(--t) minmax(0, 1fr);
		gap: 0 18px;
	}

	.rail .rn {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	} /* hidden on screen, still the link name */
	.rail a {
		gap: 0;
		padding-top: 0;
	}

	.ch {
		padding-block: 44px;
		gap: 24px;
	}

	.ba {
		padding-top: 48px;
	}

	/*
 * Phone: the papers keep their tilt but stop overlapping, so every line can
 * be read
 */
	.scatter {
		height: auto;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px 12px;
		align-items: start;
	}

	.slip,
	.slip:nth-child(n) {
		position: relative;
		inset: auto;
		width: auto;
	}

	.slip:nth-child(even) {
		margin-top: 22px;
	}

	.slip:nth-child(5) {
		grid-column: 1 / -1;
		justify-self: center;
		width: 62%;
		margin-top: 4px;
	}

	.one-strip span {
		padding-inline-start: calc(var(--t) + 4px);
	}

	.tiers {
		margin-top: 72px;
	}

	.tiers-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.products-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}

	.talk-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.talk-row .btn {
		width: 100%;
	}

	.tail {
		order: -1;
		margin-bottom: 28px;
	}

	.tail::before {
		inset-inline-start: 40%;
	}

	.foot {
		margin-top: 72px;
	}

	.device img,
	.device img.lidin-dash {
		aspect-ratio: 450 / 600;
	}

	.products-grid .shot {
		grid-row: auto;
	}

	.products-grid .card {
		grid-column: auto;
	}
}


/*
 * ---------- Phone: the scene ribbon zigzags, so every fold is seen (art
 * director, fix 4) ---------- Every second chapter's segment steps sideways
 * by one thickness; the fold is a 45-degree band of the back side joining
 * the two, one thickness high.
 */
@media (max-width: 760px) {

	.scene {
		grid-template-columns: calc(2 * var(--t)) minmax(0, 1fr);
	}

	.rail li + li {
		margin-top: 0;
	}

	.rail .seg {
		position: absolute;
		top: var(--t);
		bottom: 0;
		inset-inline-start: 0;
		width: var(--t);
		height: auto;
	}

	.rail li:first-child .seg {
		top: 0;
	}

	.rail li:nth-child(even) .seg {
		inset-inline-start: var(--t);
	}

	.rail .seg::before {
		top: calc(-1 * var(--t));
		width: calc(2 * var(--t));
		height: var(--t);
		inset-inline-start: 0;
	}

	.rail .seg.agree::before {
		margin-top: -2px;
		margin-inline-start: -2px;
	}

	.rail li:first-child .seg::before {
		display: none;
	}

	.rail li:nth-child(even) .seg::before {
		inset-inline-start: calc(-1 * var(--t));
	}

	[dir="rtl"] .rail li:nth-child(even) .seg::before {
		clip-path: polygon(100% 0, 50% 0, 0 100%, 50% 100%);
	}

	[dir="rtl"] .rail li:nth-child(odd) .seg::before {
		clip-path: polygon(50% 0, 0 0, 50% 100%, 100% 100%);
	}

	[dir="ltr"] .rail li:nth-child(even) .seg::before {
		clip-path: polygon(0 0, 50% 0, 100% 100%, 50% 100%);
	}

	[dir="ltr"] .rail li:nth-child(odd) .seg::before {
		clip-path: polygon(50% 0, 100% 0, 50% 100%, 0 100%);
	}
}

/* ---------- Reduced motion: less movement, not zero ---------- */
@media (prefers-reduced-motion: reduce) {

	.btn,
	.picker a,
	.picker button,
	a.sit,
	.pult-row a,
	.pn {
		transition: none;
	}

	.btn:active,
	a.sit:active,
	.picker button:active {
		transform: none;
	}

	.work,
	.js .work[hidden] {
		filter: none;
		transition: opacity 120ms var(--ease-out), visibility 0s linear 120ms;
	}

	.js-scene .rail .seg {
		opacity: 1;
	}
}

/* The footer is outside main and continues the contact field. */
.site-footer {
	display: flow-root;
	background: var(--ink);
	color: var(--white);
}

.site-footer :focus-visible {
	outline-color: var(--white);
}

/* Keep reference controls at the specification's 44 px minimum target size. */
.logo,
.nav a,
.top-end > a,
.actions .quiet,
.foot nav a,
.all-link,
.product .quiet,
.ch .more,
.who a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	min-width: 44px;
}

.rail a {
	min-height: 44px;
	min-width: 44px;
}

/* The standalone footer retains the contact field's original lower spacing. */
.talk {
	padding-block-end: 0;
}

.talk-note {
	margin-top: 20px;
	color: var(--lav);
	font-size: var(--fs-meta);
}

main > .products {
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: var(--pad);
	padding-block: var(--sect-y);
	border-top: 1px solid var(--rule);
}

/* ---------- Page header & breadcrumbs (page-head, single.php) ---------- */
.page-head {
	padding-block: clamp(32px, 5vw, 68px) clamp(48px, 6vw, 84px);
	border-top: 1px solid var(--ink-line);
}

.crumbs {
	margin-bottom: clamp(18px, 2.5vw, 28px);
	font-size: var(--fs-meta);
	color: var(--lav);
}

.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 0;
}

.crumbs li {
	display: inline-flex;
	align-items: center;
}

.crumbs li + li::before {
	content: "›";
	margin-inline: 10px;
	color: var(--lav);
}

.crumbs a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--cream);
	text-decoration: underline;
	text-decoration-color: var(--ink-line-strong);
	text-underline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {

	.crumbs a:hover {
		text-decoration-color: var(--orange);
	}
}

.crumbs [aria-current="page"] {
	color: var(--lav);
}

.page-head h1 {
	font-family: var(--serif);
	font-weight: 700;
	font-size: clamp(36px, 4.6vw, 68px);
	line-height: 1.06;
	letter-spacing: -0.015em;
	color: var(--cream);
	max-width: 24ch;
	text-wrap: balance;
}

.page-head .lead {
	margin-top: 22px;
	color: var(--cream);
	max-width: 58ch;
}

.page-head .actions {
	margin-top: 32px;
}

.page-head .post-date {
	display: block;
	margin-top: 14px;
	font-size: var(--fs-meta);
	color: var(--lav);
}

/* ---------- Editorial text section (israsky/text, single.php) ---------- */
.sect + .sect:not(.proof):not(.dept):not(.talk) {
	border-top: 1px solid var(--rule);
}

.text-sec h2 {
	max-width: 26ch;
}

.prose {
	margin-top: 32px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.prose > :not(.table-wrap):not(figure):not(table) {
	max-width: 65ch;
}

.prose h3 {
	margin-top: 16px;
	font-family: var(--serif);
	font-weight: 700;
	font-size: var(--fs-line);
	line-height: 1.18;
	text-wrap: balance;
}

.prose h4 {
	margin-top: 12px;
	font-family: var(--sans);
	font-weight: 500;
	font-size: 20px;
	line-height: 1.35;
}

.prose p {
	text-wrap: pretty;
}

.prose ul,
.prose ol {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-inline-start: 22px;
}

.prose ul {
	list-style: disc;
}

.prose ol {
	list-style: decimal;
}

.prose li {
	padding-inline-start: 4px;
	text-wrap: pretty;
}

.prose li::marker {
	color: var(--action);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.prose a {
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 0.22em;
}

.prose a + a {
	margin-inline-start: 24px;
}

.text-media-grid {
	margin-top: 32px;
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 36px 56px;
	align-items: start;
}

.text-figure {
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	background: var(--paper);
	padding: 20px;
}

/* ---------- Tables (core/table inside text) ---------- */
.prose figure.wp-block-table,
.prose .table-wrap {
	margin-block: 12px;
	width: 100%;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 17px;
	line-height: 1.5;
	border-top: 2px solid var(--ink);
}

.prose th,
.prose td {
	padding: 14px 16px;
	text-align: start;
	vertical-align: top;
	border-bottom: 1px solid var(--rule);
}

.prose thead th {
	font-weight: 500;
	color: var(--ink);
	background: rgba(24, 15, 56, 0.035);
	border-bottom: 1px solid var(--ink);
}

/* ---------- Child service ledger (israsky/cards + israsky/card) ---------- */
.cards-grid {
	margin-top: 48px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 56px;
	border-top: 1px solid var(--ink);
}

.service-card {
	padding-block: 32px;
	border-bottom: 1px solid var(--rule);
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.service-card:first-child {
	grid-column: 1 / -1;
	padding-inline: 24px;
	border-inline-start: 1px solid var(--ink);
	background: var(--paper);
}

.service-card h3 {
	font-family: var(--serif);
	font-weight: 700;
	font-size: var(--fs-line);
	line-height: 1.15;
	text-wrap: balance;
}

.service-card p {
	max-width: 58ch;
	text-wrap: pretty;
}

.service-card .card-label {
	font-weight: 500;
	color: var(--ink-2);
}

.service-card .card-price {
	margin-top: 4px;
	font-weight: 500;
	color: var(--ink);
}

.service-card .card-links {
	margin-top: auto;
	padding-top: 6px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

.service-card .more {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 500;
}

/* ---------- Works grid variant (israsky/works variant="grid") ---------- */
.works-grid {
	margin-top: 48px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 36px 40px;
	align-items: start;
}

.works-grid .work {
	grid-area: auto;
	display: flex;
	flex-direction: column;
	opacity: 1;
	visibility: visible;
	filter: none;
}

.works-grid .mat {
	padding: 24px;
}

.works-grid .work figcaption {
	grid-template-columns: minmax(0, 1fr);
	gap: 6px;
}

.works-grid .work .who {
	position: static;
	width: auto;
	height: auto;
	overflow: visible;
	clip-path: none;
	white-space: normal;
}

/* ---------- FAQ (israsky/faq + israsky/faq-item, always visible) ---------- */
.faq-list {
	margin-top: 48px;
	border-top: 1px solid var(--ink);
}

.faq-item {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 16px 56px;
	align-items: baseline;
	padding-block: 32px;
	border-bottom: 1px solid var(--rule);
}

.faq-item h3 {
	font-family: var(--serif);
	font-weight: 700;
	font-size: clamp(21px, 1.8vw, 27px);
	line-height: 1.22;
	text-wrap: balance;
}

.faq-item .faq-a {
	max-width: 62ch;
	color: var(--ink);
	text-wrap: pretty;
}

.faq-item .faq-a a {
	font-weight: 500;
}

/* ---------- Case study screenshots (israsky/case-shots) ---------- */
.case-shots {
	margin: 0;
}

.case-stage {
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(220px, 4fr);
	gap: 32px 40px;
	align-items: end;
}

.case-stage:has(> :only-child) {
	grid-template-columns: minmax(0, 1fr);
}

.case-frame {
	background: var(--white);
	border-radius: var(--radius);
	padding: 28px;
	border: 1px solid var(--rule);
}

.case-frame img {
	width: 100%;
	height: auto;
	border-radius: calc(var(--radius) - 2px);
	border: 1px solid var(--rule);
}

.case-frame--mob {
	max-width: 340px;
	justify-self: center;
	width: 100%;
}

.case-shots figcaption {
	margin-top: 20px;
	color: var(--ink-2);
	font-size: var(--fs-meta);
}

/* ---------- Contact channels (israsky/contact-channels) ---------- */
.channels-list {
	margin-top: 32px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 0 40px;
	border-top: 1px solid var(--ink);
}

.channels-list div {
	padding-block: 22px;
	border-bottom: 1px solid var(--rule);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.channels-list dt {
	font-size: var(--fs-meta);
	font-weight: 500;
	color: var(--ink-2);
}

.channels-list dd {
	margin: 0;
	font-size: 22px;
	font-weight: 500;
}

.channels-list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.channels-note {
	margin-top: 20px;
	color: var(--ink-2);
}

/* ---------- Post list & archive (israsky/post-list, archive.php) ---------- */
.post-items {
	margin-top: 40px;
	border-top: 1px solid var(--ink);
}

.post-item {
	padding-block: 28px;
	border-bottom: 1px solid var(--rule);
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px 32px;
	align-items: baseline;
}

.post-item h2,
.post-item h3 {
	font-family: var(--serif);
	font-weight: 700;
	font-size: var(--fs-line);
	line-height: 1.18;
}

.post-item p {
	grid-column: 1;
	max-width: 62ch;
	color: var(--ink-2);
	text-wrap: pretty;
}

.post-item time {
	font-size: var(--fs-meta);
	color: var(--ink-2);
	white-space: nowrap;
}

/* ---------- 404 Not Found (404.php) & Standalone Footer ---------- */
html:has(.not-found),
body:has(.not-found) {
	overflow-x: clip;
}

body:has(.not-found) {
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	background: var(--ink);
}

body:has(.not-found) main {
	flex: 1;
	display: flex;
	flex-direction: column;
}

main:not(:has(> .talk:last-child)) + .site-footer .foot {
	margin-top: 0;
}

.not-found {
	flex: 1;
	min-height: 58vh;
	display: flex;
	align-items: center;
}

.not-found-links {
	margin-top: 32px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
}

.not-found-links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 500;
	font-size: 18px;
	color: var(--cream);
	text-decoration: underline;
	text-decoration-color: var(--orange);
	text-underline-offset: 6px;
}

/* ---------- Stage C Contact Form (israsky/contact-form) ---------- */
.israsky-form-wrap {
	margin-top: 32px;
	max-width: 65ch;
	color: var(--ink);
	background: var(--paper);
	border: 1.5px solid var(--ink);
	border-radius: var(--radius);
	padding: clamp(20px, 3vw, 32px);
}

.israsky-form-wrap :focus-visible {
	outline-color: var(--ink);
}

.israsky-form {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.form-legend {
	margin: 0;
	font-size: var(--fs-meta);
	color: var(--ink-2);
}

.form-selection {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	background: var(--white);
	border: 1px solid var(--ink);
	border-radius: var(--radius);
}

.form-selection-remove {
	min-height: 44px;
	padding: 6px 14px;
	background: transparent;
	border: 1px solid var(--ink);
	border-radius: var(--radius);
	font: inherit;
	font-size: var(--fs-meta);
	font-weight: 500;
	color: var(--ink);
	cursor: pointer;
}

.form-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	border: 0;
}

.form-label {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	font-size: 17px;
	color: var(--ink);
}

.form-optional {
	font-weight: 400;
	font-size: var(--fs-meta);
	color: var(--ink-2);
}

.form-tip {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border: 1px solid var(--ink-2);
	border-radius: 50%;
	font-size: 13px;
	font-weight: 500;
	color: var(--ink-2);
	cursor: help;
}

.form-tip[data-tip]:hover::after,
.form-tip[data-tip]:focus-visible::after {
	content: attr(data-tip);
	position: absolute;
	bottom: calc(100% + 8px);
	inset-inline-start: 0;
	z-index: 20;
	width: max-content;
	max-width: min(280px, 78vw);
	padding: 8px 12px;
	background: var(--ink);
	color: var(--white);
	border-radius: var(--radius);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
}

.form-input,
.form-select,
.form-textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	background: var(--white);
	color: var(--ink);
	border: 1.5px solid var(--ink);
	border-radius: var(--radius);
	font: inherit;
	font-size: 16px;
	line-height: 1.45;
}

.form-textarea {
	min-height: 120px;
	resize: vertical;
}

.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
	border-color: #a32500;
}

.form-input[readonly],
.form-textarea[readonly],
.form-select:disabled {
	background: #ebe6de;
	color: var(--ink-2);
}

.form-contact-row {
	display: grid;
	grid-template-columns: minmax(140px, 210px) minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}

.form-country-col,
.form-contact-col {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.form-radios {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin-top: 4px;
}

.form-radio-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 6px 12px;
	background: var(--white);
	border: 1px solid var(--ink);
	border-radius: var(--radius);
	font-size: 16px;
	cursor: pointer;
}

.form-radio-label input {
	width: 18px;
	height: 18px;
	accent-color: var(--ink);
	margin: 0;
}

.form-hint,
.form-counter {
	font-size: var(--fs-meta);
	color: var(--ink-2);
}

.form-meta-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
}

.form-error {
	font-size: var(--fs-meta);
	font-weight: 500;
	color: #a32500;
}

.form-error-summary {
	padding: 16px 18px;
	background: #fff5f2;
	border: 1.5px solid #a32500;
	border-radius: var(--radius);
	color: var(--ink);
}

.form-error-title {
	margin: 0;
	font-weight: 500;
	color: #a32500;
}

.form-error-list {
	margin: 8px 0 0;
	padding-inline-start: 20px;
}

.form-error-list a {
	color: #a32500;
	font-weight: 500;
}

.form-s11 {
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid var(--rule);
	font-size: var(--fs-meta);
	line-height: 1.5;
	color: var(--ink-2);
}

.form-s11 a {
	color: var(--ink);
	font-weight: 500;
}

.form-submit[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
}

.form-state-box {
	padding: 16px 18px;
	background: var(--white);
	border: 1.5px solid var(--ink);
	border-radius: var(--radius);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.form-state-title {
	margin: 0;
	font-weight: 500;
	color: var(--ink);
}

.form-state-body {
	margin: 0;
	font-size: 16px;
	color: var(--ink-2);
}

.form-state-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.form-state-actions a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--ink);
	font-weight: 500;
}

/* ---------- Responsive (<= 1100px & <= 760px) ---------- */
@media (max-width: 1100px) {

	.cards-grid,
	.faq-item,
	.text-media-grid,
	.case-stage {
		grid-template-columns: minmax(0, 1fr);
	}

	.case-frame--mob {
		justify-self: start;
	}
}

@media (max-width: 760px) {

	.site-footer {
		padding-block-end: 72px;
	}

	.page-head {
		padding-block: 24px 40px;
	}

	.page-head h1 {
		font-size: 34px;
		line-height: 1.1;
	}

	.service-card:first-child {
		padding-inline: 16px;
	}

	.case-frame {
		padding: 16px;
	}

	.post-item,
	.form-contact-row {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Stacked comparison & pricing tables on phone (<= 760px) */
	.prose table:has(td[data-label]),
	.prose table:has(td[data-label]) tbody,
	.prose table:has(td[data-label]) tr,
	.prose table:has(td[data-label]) td {
		display: block;
		width: 100%;
	}

	.prose table:has(td[data-label]) thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.prose table:has(td[data-label]) tbody tr {
		padding-block: 12px;
		border-bottom: 1px solid var(--ink);
	}

	.prose table:has(td[data-label]) td {
		display: block;
		padding: 8px 0;
		border-bottom: 1px solid var(--rule);
	}

	.prose table:has(td[data-label]) td:last-child {
		border-bottom: 0;
	}

	.prose table:has(td[data-label]) td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 2px;
		font-size: var(--fs-meta);
		font-weight: 500;
		color: var(--ink-2);
	}
}
