@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/case-specimens/inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/case-specimens/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-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: 'Tektur';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/case-specimens/tektur-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Tektur';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/case-specimens/tektur-latin.woff2) format('woff2');
  unicode-range: U+0000-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: 'Golos Text';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/golos-text/golos-text-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/golos-text/golos-text-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/golos-text/golos-text-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/golos-text/golos-text-latin.woff2) format('woff2');
  unicode-range: U+0000-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;
}

.gravity-case {
	--case-ink: #2a2a2a;
	--case-muted: #767676;
	--case-blue: #2868f3;
	--case-border: #e1e1e1;
	--case-gutter: clamp(16px, 2.32vw, 40px);
	--case-gap: clamp(20px, 2.32vw, 40px);
	--case-card-pad: clamp(16px, min(1.65vw, 3.3svh), 28px);
	--case-section-gap: clamp(16px, min(1.6vw, 3.4svh), 28px);
	--case-section-space: clamp(40px, min(4.25vw, 7.5svh), 76px);
	--case-preview-height: clamp(240px, calc(100svh - 250px), 800px);
	background: #fff;
	color: var(--case-ink);
	font-family: 'Golos Text', Arial, sans-serif;
}

.admin-bar .header { top: var(--wp-admin--admin-bar--height, 32px); }

@media (max-width: 600px) {
	.admin-bar .header.scrolled { top: 0; }
}

.case-shell {
	display: block;
	max-width: 100%;
	font-size: clamp(16px, 1.05vw, 18px);
	line-height: 1.56;
	overflow-wrap: anywhere;
}

.case-shell :is(h1,h2,h3,h4,p,ol,ul,dl,dd,figure) { margin: 0; }
.case-shell :is(h1,h2,h3,h4) { color: var(--case-ink); font-family: inherit; font-weight: 600; }
.case-shell a:not(.breadcrumbs_link) { color: var(--case-blue); }
.case-shell a:not(.breadcrumbs_link):hover { text-decoration: underline; }
.case-shell :is(a,[tabindex]):focus-visible { outline: 2px solid var(--case-blue); outline-offset: 4px; }

.case-hero {
	display: flex;
	flex-direction: column;
	gap: clamp(20px, min(2.65vw, 5svh), 44px);
	min-height: 0;
	padding-bottom: 0;
}

.case-hero-bar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 1rem;
	line-height: normal;
	color: var(--case-muted);
}

.case-hero-type { color: var(--case-blue); font-weight: 500; line-height: 24px; }

.case-hero-lead {
	display: grid;
	grid-template-columns: minmax(0, 2.06fr) minmax(0, 1fr);
	align-items: end;
	gap: clamp(16px, 1.85vw, 32px);
}

.case-hero-lead:not(:has(.case-hero-description)) { grid-template-columns: minmax(0, 1fr); }

.case-hero h1 {
	font-size: clamp(34px, 3.48vw, 60px);
	line-height: 1.133;
	letter-spacing: -0.02em;
	white-space: pre-line;
}

.case-hero-description {
	color: var(--case-muted);
	font-size: clamp(16px, 1.16vw, 20px);
	line-height: 1.6;
}

.case-hero-description [data-text]::after { white-space: pre-line; }

.case-hero-media {
	display: grid;
	gap: var(--case-gap);
	align-items: start;
}

.case-hero-media--pair,
.case-responsive-pair {
	grid-template-columns: minmax(0, 4.01fr) minmax(0, 1fr);
}

.case-photo,
.case-photo-preview {
	display: block;
	min-width: 0;
}

.case-photo { cursor: zoom-in; }
.case-photo-preview { overflow: hidden; }

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

.case-hero-media--pair :is(.case-photo, .case-photo-preview) { height: 100%; }

.case-hero-media--pair img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.case-hero-media--pair .case-hero-desktop { aspect-ratio: 1287 / 694; }
.case-hero-media--pair .case-hero-mobile { aspect-ratio: 321 / 694; }
.case-hero-media:not(.case-hero-media--pair) .case-hero-mobile { max-width: 360px; }

.case-hero-meta { display: grid; gap: 8px; color: var(--case-muted); }
.case-hero-meta .case-site-link { font-size: 16px; line-height: 24px; }
.case-site-link { display: inline-block; width: fit-content; font-size: clamp(16px, 1.16vw, 20px); line-height: 1.6; font-weight: 500; }

.case-section {
	padding-top: var(--case-section-space);
	display: flex;
	flex-direction: column;
	gap: var(--case-section-gap);
	scroll-margin-top: 120px;
}

.case-section-heading {
	display: grid;
	gap: 8px;
}

.case-section h2 {
	font-size: clamp(28px, 2.55vw, 44px);
	line-height: 1.182;
	letter-spacing: -0.015em;
}

.case-section h3,
.case-section h4 {
	font-size: clamp(18px, 1.39vw, 24px);
	line-height: 1.333;
}

.case-subsection { display: grid; gap: var(--case-section-gap); }
.case-subsection > .case-subheading {
	font-size: clamp(23px, 2.09vw, 36px);
	line-height: 1.222;
	letter-spacing: -0.015em;
	margin-top: var(--case-section-gap);
}

.case-section-intro, .case-meta, .case-note { color: var(--case-muted); }
.case-note { line-height: 1.556; }
.case-prose p + p, .case-note p + p { margin-top: 0.65em; }

.case-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-grid--border {
	gap: 1px;
	padding: 1px;
}

.case-grid--border > * { box-shadow: 0 0 0 1px var(--case-border); }

.case-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.case-card {
	min-width: 0;
	padding: var(--case-card-pad);
	background: #fff;
}

.case-card > h3 + .case-prose,
.case-card > h4 + .case-prose { margin-top: clamp(10px, 0.8vw, 14px); }
.case-card :is(.case-prose, figcaption) { max-inline-size: 94.3%; }
.case-metric { padding-block: var(--case-card-pad); }
.case-metric dt { font-size: 16px; line-height: 24px; font-weight: 500; }
.case-metric .case-meta { margin-top: clamp(8px, 0.8vw, 14px); font-size: 16px; line-height: 24px; }

.case-metric .case-metric-value {
	margin-top: clamp(8px, 0.75vw, 12px);
	font-size: clamp(32px, 3.02vw, 52px);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.154;
	font-variant-numeric: tabular-nums;
	color: var(--case-blue);
}

.case-counter { display: inline-block; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.case-photo img { transition: transform 280ms ease-out; }
	.case-photo:hover img { transform: scale(1.035); }
}

.case-figure h3 + .case-photo,
.case-figure figcaption { margin-top: clamp(12px, 0.93vw, 16px); }
.case-figure figcaption { color: var(--case-muted); }
.case-figure--phone .case-photo { max-width: 388px; }

.case-prototype-primary { --case-preview-ratio: 1566 / 940; }
.case-grid--prototype { --case-preview-ratio: 759 / 570; }
.case-grid--screens { --case-preview-ratio: 759 / 544; }
.case-grid--features { --case-preview-ratio: 759 / 409; }
.case-grid--device { --case-preview-ratio: 759 / 720; }

:is(.case-grid--prototype, .case-grid--screens, .case-grid--features, .case-grid--device, .case-responsive-pair) .case-photo {
	max-inline-size: calc(var(--case-preview-height) * var(--case-preview-ratio));
}

.case-prototype-primary .case-photo {
	inline-size: 100%;
	padding: clamp(8px, 2.32vw, 40px);
	border: 1px solid var(--case-border);
}

.case-photo-preview { aspect-ratio: var(--case-preview-ratio, auto); }

:is(.case-prototype-primary, .case-grid--prototype, .case-grid--screens, .case-grid--features, .case-grid--device, .case-responsive-pair) .case-photo img {
	height: 100%;
	object-fit: cover;
}

.case-table-scroll {
	max-width: 100%;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	container-type: inline-size;
}

.case-table {
	border-collapse: collapse;
	width: 100%;
	min-width: 560px;
	font-size: clamp(16px, 1.16vw, 20px);
	line-height: 1.6;
	text-align: left;
}

.case-table :is(th,td) {
	padding: clamp(10px, 1.1vw, 18px) clamp(12px, 0.93vw, 16px) clamp(10px, 1.1vw, 18px) 0;
	vertical-align: middle;
	border-bottom: 1px solid var(--case-border);
}

.case-table-cell-label { display: none; }
.case-table th { color: var(--case-ink); font-weight: 600; }
.case-table thead th { padding-block: clamp(12px, 0.93vw, 16px); border-bottom: 0; }
.case-table tbody th { width: 25%; font-weight: 400; }
.case-table tr > :last-child { padding-right: 0; }
#case-research .case-table tr > :nth-child(2) { width: 37%; }
#case-quality > .case-table-scroll .case-table tbody th { width: 52%; }
#case-quality > .case-table-scroll .case-table tr > :nth-child(2) { width: 25.4%; }
#case-quality .case-subsection .case-table tbody th { width: 37%; }
#case-analytics .case-table tr:has(> :nth-child(4):last-child) > :first-child { width: 37.7%; }
#case-analytics .case-table tr:has(> :nth-child(4):last-child) > :nth-child(2) { width: 22.6%; }
#case-analytics .case-table tr:has(> :nth-child(4):last-child) > :nth-child(3) { width: 20.1%; }
#case-analytics .case-table thead th:nth-child(n+2):not(:last-child) span {
	display: block;
	max-inline-size: 19ch;
}
#case-results .case-table tbody th { width: 36.65%; }
.case-accent { color: var(--case-blue); font-weight: 500; }

.case-structure-root {
	padding: 12px 24px;
	background: var(--case-blue) url('../img/svg/case-structure.svg') center / cover no-repeat;
	color: #fff;
	font-size: 20px;
	line-height: 32px;
}

.case-structure-branches, .case-steps, .case-type-scale, .case-swatches { list-style: none; }
.case-structure-root + .case-structure-branches { margin-top: var(--case-section-gap); }
.case-structure-branches .case-card { padding: 0; }
.case-structure-branches h3,
.case-structure-branches li ul li { padding: clamp(12px, 1.15vw, 18px) var(--case-card-pad); }
.case-structure-branches h3 small { font: inherit; color: inherit; }
.case-structure-branches li ul { list-style: none; padding: 0; }
.case-structure-branches li ul li {
	border-top: 1px solid var(--case-border);
}

.case-scenario { display: grid; gap: var(--case-section-gap); }
.case-steps .case-card > h4 + .case-prose { margin-top: 8px; }
.case-steps { padding-left: 1px; }
.case-step-number { display: block; margin-bottom: 8px; color: var(--case-blue); font-weight: 500; }

.case-system-examples { min-width: 0; background: #fff; }
.case-system-examples .case-photo { inline-size: fit-content; max-inline-size: 100%; }
.case-system-examples .case-photo img { inline-size: auto; max-block-size: var(--case-preview-height); }
.case-system { align-items: start; }
.case-style-guide {
	display: flex;
	flex-direction: column;
	gap: var(--case-section-gap);
	margin-top: var(--case-section-gap);
	padding: var(--case-card-pad);
	background: #151515;
	color: #f6f6f6;
}

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

@media (min-width: 921px) {
	.case-system--single .case-style-guide:has(.case-style-spec--fonts):has(.case-style-spec--scale) {
		display: grid;
		grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
		align-items: start;
	}

	.case-system--single .case-style-spec--palette { grid-column: 1 / -1; }
}

.case-system--single .case-swatches li:first-child { grid-column: auto; width: auto; }
.case-system--single .case-swatches li:only-child { max-width: 132px; }

.case-style-spec { display: grid; gap: clamp(10px, 1vw, 14px); }
.case-style-guide h4 { color: #d5d5d5; font-size: 14px; line-height: 20px; font-weight: 400; }
.case-style-guide strong { color: inherit; font-weight: 400; }
.case-fonts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.case-fonts > div {
	padding: clamp(12px, 1.3vw, 22px);
	background: #262626;
}
.case-font-sample { display: block; font-size: clamp(32px, 3.7vw, 64px); line-height: 1.1; }
.case-fonts > div:first-child .case-font-sample { color: var(--case-spec-accent); }
[data-case-font="tektur"] { font-family: 'Tektur', 'Golos Text', Arial, sans-serif; font-weight: 400; font-variation-settings: 'wdth' 100; }
[data-case-font="inter"] { font-family: 'Inter', 'Golos Text', Arial, sans-serif; }
.case-fonts .case-prose { font-size: 12px; color: #d5d5d5; }

.case-type-scale { display: grid; padding: 0; }
.case-type-scale li {
	display: grid;
	grid-template-columns: clamp(50px, 4.17vw, 72px) minmax(0, 1fr);
	gap: clamp(8px, 1.39vw, 24px);
	align-items: center;
	padding-block: clamp(6px, 0.6vw, 10px);
	border-bottom: 1px solid #3b3b3b;
}
.case-type-scale li:not(:has(small)) { grid-template-columns: minmax(0, 1fr); }
.case-type-scale small { color: #d5d5d5; font-size: 12px; }
.case-type-sample--0 { font-size: clamp(24px, 3.24vw, 56px); line-height: 1.214; }
.case-type-sample--1 { font-size: clamp(20px, 2.32vw, 40px); line-height: 1.3; }
.case-type-sample--2 { font-size: clamp(16px, 1.62vw, 28px); color: var(--case-spec-accent); }
.case-type-sample--3 { font-size: 15px; }

.case-swatches {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 66px), 1fr));
	gap: 8px;
	padding: 0;
	font-size: 12px;
}

.case-swatches li:first-child { grid-column: 1 / -1; width: min(132px, 100%); }
.case-swatches :is(small,code) { display: block; color: #eaeaea; }
.case-swatch { display: block; height: clamp(28px, 2.4vw, 42px); background: var(--case-swatch); border: 1px solid #4d4d4d; }

#case-responsive { gap: 0; }
#case-responsive > .case-section-heading { margin-bottom: var(--case-section-gap); }
.case-responsive-pair {
	display: grid;
	grid-template-columns: minmax(0, 1281fr) minmax(0, 367fr);
	gap: 1px;
	padding: 1px;
	background: var(--case-border);
}
.case-responsive-pair .case-figure, .case-pair-description {
	min-width: 0;
	padding: var(--case-card-pad);
	background: #fff;
}
.case-responsive-pair .case-figure:first-child { --case-preview-ratio: 1216 / 656; }
.case-responsive-pair .case-figure:nth-child(2) { --case-preview-ratio: 301 / 651; }
.case-pair-description { grid-column: 1 / -1; }
.case-responsive-pair + .case-grid--device { padding-top: 0; }

.case-chart:not([hidden]) {
	display: grid;
	gap: 12px;
	padding: var(--case-card-pad);
	border: 1px solid var(--case-border);
}

.case-chart figcaption { font-size: 20px; font-weight: 600; }
.case-chart-canvas { position: relative; min-width: 0; height: clamp(220px, min(30vw, 46svh), 420px); }

@media (max-width: 1020px) {
	.case-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
	.case-hero-lead,
	.case-hero-media--pair,
	.case-responsive-pair,
	.case-grid:not(.case-grid--four) { grid-template-columns: minmax(0, 1fr); }
	.case-hero { gap: 16px; }
	.case-hero h1 {
		font-size: clamp(23px, 6.2vw, 34px);
		line-height: 1.18;
		white-space: normal;
	}
	.case-hero h1.case-title--long { font-size: clamp(21.5px, 5.55vw, 31px); }
	.case-hero-description [data-text] { white-space: normal; }
	.case-hero-description { font-size: 15px; line-height: 1.55; }
	.case-hero-type { font-size: 14px; line-height: 1.4; }
	.case-hero-bar { gap: 8px 12px; }
	.case-hero-media { gap: 14px; }
	.case-hero-media--pair > :is(.case-hero-desktop, .case-hero-mobile) { aspect-ratio: auto; }
	.case-hero-media:not(.case-hero-media--pair) .case-hero-mobile { max-inline-size: none; }
	.case-shell .case-photo.case-photo--phone { inline-size: 100%; max-inline-size: none; }
	.case-hero-media--pair :is(.case-photo, .case-photo-preview, img),
	.case-shell .case-photo--phone img,
	.case-shell .case-responsive-pair .case-photo img { height: auto; }
	.case-responsive-pair .case-photo-preview { aspect-ratio: auto; }
	.case-card :is(.case-prose, figcaption) { max-inline-size: none; }
	.case-section { scroll-margin-top: 85px; }
	.case-section > .case-section-heading h2,
	.case-section > h2 { font-size: clamp(21px, 5.6vw, 29px); line-height: 1.24; }
}

@container (max-width: 560px) {
	.case-table {
		min-inline-size: 0;
		font-size: 14px;
		line-height: 1.45;
	}
	.case-table:not(.case-table--wide) { table-layout: fixed; }
	.case-table :is(td, th) { padding-block: 10px; overflow-wrap: anywhere; }
	.case-table--wide { display: block; }
	.case-table--wide thead {
		position: absolute;
		inline-size: 1px;
		block-size: 1px;
		padding: 0;
		margin: -1px;
		clip-path: inset(50%);
		overflow: hidden;
	}
	.case-table--wide tbody { display: grid; }
	.case-table--wide tbody tr {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px 14px;
		padding-block: 13px;
		border-bottom: 1px solid var(--case-border);
	}
	.case-table--wide tbody tr:first-child { padding-block-start: 4px; }
	.case-table--wide tbody tr:last-child { border: 0; }
	.case-shell .case-table--wide tbody tr > :is(td, th) {
		inline-size: auto;
		width: auto;
		min-inline-size: 0;
		padding: 0;
		border: 0;
		white-space: normal;
	}
	.case-table--wide tbody th { grid-column: 1 / -1; font-weight: 600; }
	.case-table--wide tbody td { display: grid; align-content: start; gap: 2px; }
	.case-table--wide tbody td > :last-child { font-weight: 500; }
	.case-table-cell-label { display: inline; color: var(--case-muted); font-size: 13px; }
}

@media (max-width: 380px) {
	.case-grid--four { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
	.gravity-case :is([data-aos="case-reveal"].aos-init:not(.case-card), [data-aos="case-reveal"].aos-init.case-card > *) {
		opacity: 0;
		translate: 0 14px;
		transition: opacity 440ms ease-out, translate 500ms cubic-bezier(0.2, 0.65, 0.3, 1);
		transition-delay: var(--case-reveal-delay, 0ms);
	}

	.gravity-case :is(
		[data-aos="case-reveal"].aos-init:is(.aos-animate, :focus-within):not(.case-card),
		[data-aos="case-reveal"].aos-init:is(.aos-animate, :focus-within).case-card > *
	) {
		opacity: 1;
		translate: 0 0;
	}
}

@media (min-width: 721px) {
	.case-grid > .case-card:nth-child(even) { --case-reveal-delay: 70ms; }
}

.case-cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(28px, 3.47vw, 60px);
	padding: clamp(80px, 11.57vw, 200px) var(--case-gutter) clamp(38px, 2.32vw, 40px);
	text-align: center;
}

.case-cta .cta_title {
	margin: 0;
	font: 500 clamp(30px, 3.47vw, 60px) / 1.133 'Golos Text', Arial, sans-serif;
	letter-spacing: -0.02em;
}

.case-cta-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: clamp(16px, 1.39vw, 24px);
	max-width: 100%;
	padding: clamp(19px, 2.08vw, 36px) clamp(24px, 2.32vw, 40px);
	border: 0;
	border-radius: 100px;
	background: #2e71f0;
	color: #fff;
	font: 400 clamp(22px, 2.32vw, 40px) / 1 'Golos Text', Arial, sans-serif;
	cursor: pointer;
}

.case-cta-button:hover { background: #245ed2; }
.case-cta-button:focus-visible { outline: 2px solid #245ed2; outline-offset: 4px; }
.case-cta-button img { display: block; flex: none; }
.case-cta .cta_text { margin: 0; line-height: 1; }

.footer.footer--case { padding-top: 0; }
.footer--case .footer_container { padding-top: 48px; }

.case-footer-logo-slot {
	overflow: hidden;
	background: #fff;
}

.case-footer-logo-slot .footer_logo_big { position: static; }

@media (max-width: 768px) {
	.footer--case .footer_container { padding-top: 24px; }
}
