/* ==========================================================================
   Merezhyvo — landing styles
   Breakpoints: mobile < 768 · tablet 768–1199 · desktop ≥ 1200 (design 1440)
   ========================================================================== */

:root {
	--bg: #f5fcfb;
	--ink: #1f2423;
	--ink-2: #272727;
	--teal-dark: #0b4f4d;
	--teal: #0abab5;
	--teal-light: #81d8d0;
	--ecru: #f9f9f0;
	--light: #f5fcfb;
	--black: #040404;
	--font-head: "Ysabeau Infant", "Ysabeau", Georgia, serif;
	--font-body: "Ysabeau", "Ysabeau Infant", Arial, sans-serif;
	--ease: cubic-bezier(.22, .61, .36, 1);
	--ease-out: cubic-bezier(.16, 1, .3, 1);
	--admin: var(--wp-admin--admin-bar--height, 0px);
	/* desktop grid anchors (design 1440) */
	--edge: max(40px, calc(50% - 664px)); /* x = 56 */
	--col: max(40px, calc(50% - 328px)); /* x = 392 */
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.mrz {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.25;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}
:where(.mrz) :where(p, h1, h2, h3, ul) { margin: 0; padding: 0; }
:where(.mrz) :where(ul) { list-style: none; }
:where(.mrz) :where(img, video) { display: block; max-width: none; }
:where(.mrz) :where(a) { color: inherit; text-decoration: none; }
:where(.mrz) :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.mrz-main { overflow-x: clip; }

/* --------------------------------------------------------------------------
   Button (pill + dot that becomes an arrow circle on hover)
   -------------------------------------------------------------------------- */
.mrz-btn {
	--btn-c: var(--teal);
	--btn-text: var(--light);
	--btn-hover-text: var(--ink);
	--btn-hover-border: var(--ink);
	display: inline-flex;
	align-items: center;
	gap: 4px;
	width: 320px;
	max-width: 100%;
	cursor: pointer;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}
.mrz-btn--dark { --btn-hover-text: rgba(245, 252, 251, .8); --btn-hover-border: rgba(245, 252, 251, .6); }
.mrz-btn--full { width: 100%; }
.mrz-btn__pill {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	height: 62px;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--btn-c);
	border-radius: 200px;
	overflow: hidden;
	isolation: isolate;
	transition: border-color .5s var(--ease);
}
.mrz-btn__fill {
	position: absolute;
	z-index: -1;
	left: 50%;
	top: calc(50% - 1px);
	width: max(344px, calc(100% + 80px));
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--btn-c);
	transform: translate(-50%, -50%);
	transition: transform .6s var(--ease-out);
}
.mrz-btn__label {
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 24px;
	line-height: 28px;
	white-space: nowrap;
	color: var(--btn-text);
	transition: color .4s var(--ease);
}
.mrz-btn__dot {
	flex: 0 0 auto;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--btn-c);
	color: #e6f6f5;
	display: grid;
	place-items: center;
	overflow: hidden;
	transition: width .5s var(--ease-out), height .5s var(--ease-out);
}
.mrz-btn__dot svg { opacity: 0; transform: translateX(-12px); transition: opacity .3s, transform .5s var(--ease-out); }
@media (hover: hover) {
	.mrz-btn:hover .mrz-btn__pill,
	.mrz-btn:focus-visible .mrz-btn__pill { border-color: var(--btn-hover-border); }
	.mrz-btn:hover .mrz-btn__fill,
	.mrz-btn:focus-visible .mrz-btn__fill { transform: translate(-155%, -50%) scale(.67); }
	.mrz-btn:hover .mrz-btn__label,
	.mrz-btn:focus-visible .mrz-btn__label { color: var(--btn-hover-text); }
	.mrz-btn:hover .mrz-btn__dot,
	.mrz-btn:focus-visible .mrz-btn__dot { width: 62px; height: 62px; }
	.mrz-btn:hover .mrz-btn__dot svg,
	.mrz-btn:focus-visible .mrz-btn__dot svg { opacity: 1; transform: none; transition-delay: .1s; }
}
.mrz-btn:active .mrz-btn__pill { transform: scale(.98); }
.mrz-btn:focus { outline: none; }
.mrz-btn:focus-visible .mrz-btn__pill { outline: 2px solid var(--teal); outline-offset: 3px; }
.mrz-btn[disabled] { opacity: .6; pointer-events: none; }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 1s var(--ease), transform 1.1s var(--ease-out);
	transition-delay: calc(var(--d, 0) * 120ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */
.hero {
	position: relative;
	height: 700px;
	overflow: hidden;
	background: var(--bg);
	isolation: isolate;
}
.hero__media {
	position: absolute;
	inset: 1px 0 0 0;
	z-index: -1;
}
.hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right center;
}
.hero__media.has-video {
	-webkit-mask: url(../img/hero-mask.svg) 0 0 / 100% 100% no-repeat;
	mask: url(../img/hero-mask.svg) 0 0 / 100% 100% no-repeat;
}
.hero__video {
	position: absolute;
	left: 0;
	top: 0;
	width: 112.64%;
	height: 113.43%;
	object-fit: cover;
}
.hero__logo {
	position: absolute;
	left: 50%;
	top: 65px;
	transform: translateX(-50%);
	color: #fff;
	line-height: 0;
}
.hero__logo svg { width: 262px; height: auto; }
.hero__title {
	font-family: var(--font-head);
	font-weight: 300;
	font-size: 200px;
	line-height: 1;
	text-transform: uppercase;
	color: var(--teal-dark);
	letter-spacing: 0;
}
.hero__word { position: absolute; white-space: nowrap; display: block; }
.hero__word--1 { left: max(24px, calc(50% - 666px)); top: 133px; }
.hero__word--2 { left: max(380px, calc(50% - 297px)); top: 271px; }
.hero__badge {
	position: absolute;
	left: max(560px, calc(50% - 87px));
	top: 164px;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 6px 16px 6px 6px;
	border-radius: 200px;
	background: rgba(249, 249, 240, .25);
	border: .5px solid rgba(27, 51, 10, .25);
	-webkit-backdrop-filter: blur(12.5px);
	backdrop-filter: blur(12.5px);
}
.hero__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.hero__badge-text { font-size: 18px; line-height: 22px; color: var(--ink-2); white-space: nowrap; }
.hero__badge-text span { text-transform: uppercase; }
.hero__text {
	position: absolute;
	left: var(--edge);
	top: 377px;
	width: 320px;
	font-size: 18px;
	line-height: 22px;
	color: var(--ink-2);
}
.hero__cta { position: absolute; left: var(--edge); top: 568px; width: 320px; }

/* Hero intro animation (replicates the Figma prototype “Variant 2 → Default”) */
.js .hero__word,
.js .hero__badge,
.js .hero__text,
.js .hero__cta,
.js .hero__logo svg,
.js .hero__media {
	transition-property: opacity, transform, color;
	transition-timing-function: var(--ease-out);
}
.js .hero:not(.is-in) .hero__word { opacity: 0; color: var(--ink-2); }
.js .hero:not(.is-in) .hero__word--1 { transform: translateY(110px); }
.js .hero:not(.is-in) .hero__word--2 { transform: translateY(190px); }
.js .hero:not(.is-in) .hero__badge { opacity: 0; transform: translateX(-72px); }
.js .hero:not(.is-in) .hero__text { opacity: 0; transform: translateY(-14px); }
.js .hero:not(.is-in) .hero__cta { opacity: 0; transform: translateY(100px); }
.js .hero:not(.is-in) .hero__logo svg { opacity: 0; transform: translateY(-10px); }
.js .hero:not(.is-in) .hero__media { opacity: .6; transform: scale(1.04); }
.js .hero.is-in .hero__media { transition-duration: 2.4s; }
.js .hero.is-in .hero__word--1 { transition-duration: 1.4s; transition-delay: .15s; }
.js .hero.is-in .hero__word--2 { transition-duration: 1.4s; transition-delay: .3s; }
.js .hero.is-in .hero__badge { transition-duration: 1.2s; transition-delay: .55s; }
.js .hero.is-in .hero__text { transition-duration: 1.2s; transition-delay: .65s; }
.js .hero.is-in .hero__cta { transition-duration: 1.2s; transition-delay: .75s; }
.js .hero.is-in .hero__logo svg { transition-duration: 1s; transition-delay: .1s; }

/* --------------------------------------------------------------------------
   2. Tagline
   -------------------------------------------------------------------------- */
.tagline { background: var(--bg); padding: 150px 0 144px; }
.tagline__inner { margin-left: var(--col); width: 802px; max-width: calc(100% - var(--col) - 40px); color: var(--ink); }
.tagline__small {
	font-family: var(--font-head);
	font-style: italic;
	font-weight: 300;
	font-size: 32px;
	line-height: 32px;
	letter-spacing: .02em;
	margin-left: 1px !important;
}
.tagline__small--right { text-align: right; margin-top: 4px !important; }
.tagline__big {
	margin-top: 18px !important;
	font-family: var(--font-head);
	font-weight: 400;
	font-size: 72px;
	line-height: 64px;
	letter-spacing: -.04em;
	text-transform: uppercase;
}
.tagline__line { display: block; white-space: nowrap; }
.tagline__line--indent { padding-left: 121px; text-align: left; }

/* --------------------------------------------------------------------------
   3–4. About + Philosophy (one figure spans both sections)
   -------------------------------------------------------------------------- */
.duo { position: relative; isolation: isolate; }
.duo__figure {
	position: absolute;
	z-index: 2;
	left: calc(50% - 3px);
	top: 52px;
	width: 558px;
	height: auto;
	pointer-events: none;
	filter: drop-shadow(-28px 24px 26px rgba(4, 30, 28, .32));
}
.about {
	position: relative;
	min-height: 743px;
	padding-bottom: 80px;
	overflow: hidden;
	background: linear-gradient(175.78deg, #81d8d0 6.21%, #087a76 93.74%);
	color: var(--ecru);
}
.about__signature {
	position: absolute;
	left: calc(50% - 720px + 241px);
	top: 404px;
	width: 556px;
	height: 611px;
	transform: translate(-50%, -50%) rotate(13.35deg);
	opacity: .05;
	pointer-events: none;
}
.about__inner { position: relative; z-index: 3; margin-left: var(--col); padding-top: 150px; width: 320px; }
.about__text { font-size: 20px; line-height: 1.2; }
.about__text p + p { margin-top: .6em !important; }
.about__sign { margin-top: 56px; }
.about__name { font-family: var(--font-head); font-size: 32px; line-height: 1.2; text-transform: uppercase; }
.about__role { font-size: 16px; line-height: 1.2; color: rgba(249, 249, 240, .75); }
.about__photo-m { display: none; }

.phil { position: relative; height: 872px; background: var(--bg); overflow: hidden; }
.phil__title {
	font-family: var(--font-head);
	font-weight: 300;
	font-size: 100px;
	line-height: 100px;
	letter-spacing: -.04em;
	text-transform: uppercase;
	color: var(--ink);
}
.phil__title span {
	position: absolute;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	white-space: nowrap;
}
.phil__title span:first-child { left: max(0px, calc(50% - 678px)); bottom: 307px; }
.phil__title span:last-child { left: max(88px, calc(50% - 590px)); bottom: 150px; }
.phil__items { position: absolute; left: calc(var(--col) - 1px); top: 161px; width: 320px; display: flex; flex-direction: column; gap: 48px; }
.phil__item-title { font-family: var(--font-body); font-weight: 400; font-size: 32px; line-height: 32px; color: var(--teal-dark); }
.phil__first { display: block; text-transform: uppercase; }
.phil__item-text { margin-top: 18px !important; font-size: 16px; line-height: 22px; color: var(--ink); }

/* --------------------------------------------------------------------------
   5. What's inside
   -------------------------------------------------------------------------- */
.inside { position: relative; background: var(--black); color: var(--light); }
.inside__sticky { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.inside__title {
	font-family: var(--font-head);
	font-weight: 300;
	font-size: 100px;
	line-height: 100px;
	letter-spacing: -.04em;
	text-transform: uppercase;
	color: var(--light);
}
.inside__sticky .inside__title {
	position: sticky;
	top: var(--admin);
	padding: 188px 0 0 var(--edge);
	height: 400px;
}
.inside__title--m { display: none; }
.inside__slide { position: relative; height: max(700px, 67.15vw); overflow: hidden; }
.inside__bg {
	position: absolute;
	inset: 0;
	background-image: var(--bg-d);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	transform: scale(1.06);
	transition: transform 2.4s var(--ease-out);
}
.inside__slide.is-visible .inside__bg { transform: none; }
.inside__shade { position: absolute; inset: 0; display: none; }
.inside__slide--1 .inside__shade { background: linear-gradient(269.98deg, #040404 2.94%, rgba(4, 4, 4, .698) 25.88%, rgba(4, 4, 4, .013) 54.68%, rgba(4, 4, 4, .01) 81.66%, #040404 107.9%); }
.inside__slide--2 .inside__shade { background: linear-gradient(269.97deg, #040404 2.93%, rgba(15, 14, 14, .698) 24.41%, rgba(39, 39, 39, 0) 62.39%); }
.inside__slide--3 .inside__shade,
.inside__slide--4 .inside__shade { background: linear-gradient(270deg, #040404 2.95%, rgba(15, 14, 14, .698) 22.19%, rgba(39, 39, 39, 0) 57.12%); }
.inside__list {
	position: absolute;
	z-index: 2;
	left: calc(50% + 231px);
	right: max(40px, calc(50% - 666px));
	top: 31.1%;
	display: flex;
	flex-direction: column;
	gap: 64px;
}
.inside__slide--3 .inside__list { top: 16.4%; }
.inside__item { display: flex; justify-content: space-between; gap: 24px; }
.inside__num { order: 2; flex: 0 0 auto; margin-top: -9px; font-family: var(--font-body); font-weight: 300; font-size: 32px; line-height: 1.2; color: var(--teal-light); }
.inside__body { width: 320px; display: flex; flex-direction: column; gap: 8px; }
.inside__item-title { font-family: var(--font-head); font-weight: 600; font-size: 24px; line-height: 1.33; text-transform: uppercase; }
.inside__item-text { display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.3; }
.inside__item-text p:not(.is-bold) + p:not(.is-bold) { margin-top: -8px !important; }
.inside__item-text .is-bold { font-weight: 700; }

/* --------------------------------------------------------------------------
   6. Pricing
   -------------------------------------------------------------------------- */
.pricing { position: relative; background: var(--bg); padding: 150px 0 150px; overflow: clip; }
.pricing__bg { position: absolute; inset: 0; pointer-events: none; }
.pricing__bg-sticky { position: sticky; top: var(--admin); height: min(1033px, 100vh); }
.pricing__lace {
	position: absolute;
	left: calc(50% - 701px);
	top: 43px;
	width: 1447px;
	height: 948px;
	background: linear-gradient(120deg, #81d8d0, #4fc3bb 60%, #81d8d0);
	-webkit-mask: url(../img/lace.webp) center / 100% 100% no-repeat;
	mask: url(../img/lace.webp) center / 100% 100% no-repeat;
	opacity: .55;
}
.pricing__veil {
	position: absolute;
	left: calc(50% - 686px);
	top: 8px;
	width: 1418px;
	height: 1017px;
	background: linear-gradient(102.31deg, rgba(249, 249, 240, 0) 6.2%, rgba(249, 249, 240, .635) 29.1%, rgba(249, 249, 240, .8) 46.57%, rgba(249, 249, 240, .71) 66.03%, rgba(249, 249, 240, 0) 90.15%);
}
.pricing__title {
	position: relative;
	margin: 0 0 84px calc(50% - 312px) !important;
	font-family: var(--font-head);
	font-weight: 300;
	font-size: 100px;
	line-height: 79px;
	letter-spacing: -.04em;
	text-transform: uppercase;
	color: var(--ink);
}
.pricing__title span { display: block; white-space: nowrap; }
.pricing__title-2 { padding-left: 8px; }
.pricing__slider { position: relative; }
.pricing__track { display: flex; justify-content: center; align-items: flex-start; gap: 16px; padding: 0 24px; }
.pricing__nav { display: none; }

.tariff {
	flex: 0 1 406px;
	min-width: 0;
	padding: 8px;
	background: #fbfbf5;
	border: 1px solid var(--teal-light);
	border-radius: 10px;
	box-shadow: 0 40px 40px -40px rgba(0, 0, 0, .25);
	color: var(--ink);
}
.tariff__head {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-height: 356px;
	padding: 32px;
	background: #f4f2f1;
	border: .5px solid rgba(39, 39, 39, .05);
	border-radius: 4px;
}
.tariff__name { padding-bottom: 8px !important; border-bottom: .5px solid rgba(39, 39, 39, .2); font-weight: 700; font-size: 20px; line-height: 24px; }
.tariff__name b { letter-spacing: -.06em; margin-right: 4px; }
.tariff__cost { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; }
.tariff__price { font-weight: 600; font-variant-numeric: lining-nums proportional-nums; height: 64px; display: flex; align-items: baseline; gap: 12px; }
.tariff__num { font-size: 56px; line-height: 64px; }
.tariff__unit { font-size: 20px; }
.tariff__desc { font-size: 14px; line-height: 18px; }
.tariff__body { position: relative; }
.tariff__body-inner { padding: 16px 32px; }
.tariff__includes { text-align: center; font-weight: 700; font-size: 20px; line-height: 24px; color: var(--teal-dark); }
.tariff__feat { display: flex; gap: 10px; align-items: flex-start; padding-top: 16px; }
.tariff__feat svg { flex: 0 0 20px; }
.tariff__feat > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tariff__feat-title { font-weight: 600; font-size: 16px; line-height: 16px; }
.tariff__feat.is-accent .tariff__feat-title { color: var(--teal-dark); }
.tariff__feat-text { font-size: 14px; line-height: 18px; }
.tariff__feat-text + .tariff__feat-text { margin-top: -8px !important; }
.tariff__total { text-align: right; padding-top: 16px !important; font-weight: 600; font-size: 20px; color: var(--teal-dark); font-variant-numeric: lining-nums proportional-nums; }
.tariff__total span { font-size: 24px; }
.tariff__more { display: none; }

/* --------------------------------------------------------------------------
   7. Why / contacts
   -------------------------------------------------------------------------- */
.why { position: relative; overflow: hidden; color: var(--light); background: #15261d; }
.why__bg {
	position: absolute;
	inset: 0;
	background-image: var(--bg-d);
	background-size: cover;
	background-position: 50% 50%;
	background-repeat: no-repeat;
}
.why__shade {
	display: none;
	position: absolute;
	inset: 0;
	background:
		linear-gradient(269.98deg, rgba(4, 4, 4, .75) 2.94%, rgba(4, 4, 4, .523) 13.69%, rgba(4, 4, 4, 0) 54.68%, rgba(4, 4, 4, .563) 107.9%),
		linear-gradient(0deg, rgba(4, 4, 4, .5) 0%, rgba(4, 4, 4, 0) 74.25%);
}
.why__inner { position: relative; z-index: 2; height: max(765px, 53.125vw); }
.why__title {
	position: absolute;
	left: var(--edge);
	top: 167px;
	font-family: var(--font-head);
	font-weight: 300;
	font-size: 72px;
	line-height: 76px;
	letter-spacing: -.04em;
	text-transform: uppercase;
}
.why__title span { display: block; white-space: nowrap; }
.why__items { position: absolute; left: calc(50% + 317px); right: max(40px, calc(50% - 666px)); top: 205px; display: flex; flex-direction: column; gap: 62px; }
.why__item { display: flex; justify-content: space-between; gap: 24px; }
.why__item > div { width: 252px; display: flex; flex-direction: column; gap: 8px; }
.why__num { order: 2; margin-top: -6px; font-weight: 300; font-size: 32px; color: var(--teal-light); }
.why__item-title { font-family: var(--font-body); font-weight: 400; font-size: 32px; line-height: 32px; }
.why__item-text { font-size: 16px; line-height: 1.2; }
.why__contacts { position: absolute; left: var(--edge); top: 597px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 16px; font-variant-numeric: lining-nums proportional-nums; }
.why__social { display: flex; gap: 16px; margin-bottom: 0; }
.why__social a { display: block; line-height: 0; transition: transform .3s var(--ease-out), opacity .3s; }
.why__social a:hover { transform: translateY(-2px); opacity: .8; }
.why__link { transition: color .3s; }
.why__link:hover { color: var(--teal-light); }
.why__cta { position: absolute; left: calc(50% + 317px); top: 625px; width: 240px; }
.why__cta .mrz-btn__label,
.inside .mrz-btn__label { font-size: 24px; }

/* --------------------------------------------------------------------------
   8. Popup
   -------------------------------------------------------------------------- */
.popup {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	padding: 16px;
	overflow-y: auto;
}
.popup[hidden] { display: none; }
.popup__overlay {
	position: fixed;
	inset: 0;
	background: rgba(4, 4, 4, .55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity .5s var(--ease);
}
.popup__box {
	position: relative;
	width: 1000px;
	max-width: 100%;
	min-height: 717px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--black);
	color: var(--light);
	opacity: 0;
	transform: translateY(40px) scale(.97);
	transition: opacity .5s var(--ease), transform .7s var(--ease-out);
}
.popup.is-open .popup__overlay { opacity: 1; }
.popup.is-open .popup__box { opacity: 1; transform: none; }
.popup__bg {
	position: absolute;
	inset: 0;
	background-image: var(--bg-d);
	background-size: 148.2% auto;
	background-position: 0 -121px;
	background-repeat: no-repeat;
}
.popup__shade { position: absolute; inset: 0; display: none; }
.popup__close { position: absolute; z-index: 3; right: 32px; top: 32px; width: 48px; height: 48px; color: var(--light); border-radius: 50%; transition: transform .4s var(--ease-out), background .3s; }
.popup__close:hover { transform: rotate(90deg); background: rgba(245, 252, 251, .08); }
.popup__step { position: relative; z-index: 2; }
.popup__step--form { padding: 92px 64px 92px; width: 598px; max-width: 100%; }
.popup__pre { font-family: var(--font-head); font-style: italic; font-weight: 300; font-size: 20px; line-height: 32px; letter-spacing: .02em; }
.popup__title { font-family: var(--font-head); font-weight: 400; font-size: 48px; line-height: 50px; letter-spacing: -.04em; text-transform: uppercase; }
.popup__text { margin-top: 32px !important; font-size: 16px; line-height: 1.2; }
.popup__form { margin-top: 45px; width: 397px; max-width: 100%; display: flex; flex-direction: column; gap: 32px; }
.popup__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { position: relative; display: block; }
.field input {
	display: block;
	width: 100%;
	padding: 0 24px 16px;
	border: 0;
	border-bottom: 1px solid rgba(245, 252, 251, .85);
	border-radius: 0;
	background: transparent;
	color: var(--light);
	font: 400 16px/1.2 var(--font-body);
	outline: none;
	transition: border-color .3s;
}
.field input::placeholder { color: rgba(245, 252, 251, .5); }
.field input:focus { border-bottom-color: var(--teal); }
.field.is-invalid input { border-bottom-color: #ff8f8f; }
.field__err { position: absolute; left: 24px; top: calc(100% + 4px); font-style: normal; font-size: 12px; color: #ff9d9d; }
.popup__error { min-height: 0; font-size: 14px; color: #ff9d9d; margin: -16px 0 -8px !important; }
.popup__error:empty { display: none; }
.popup__submit { width: 294px; margin-top: 16px; }
.popup__step--thanks {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	width: 546px;
	max-width: 100%;
	padding: 0 32px;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s var(--ease), visibility 0s .6s;
}
.popup.is-done .popup__step--form { opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.popup.is-done .popup__step--thanks { opacity: 1; visibility: visible; transition-delay: .2s, 0s; }
.popup__check svg { width: 92px; height: 92px; }
.mrz-checkmark-path { stroke-dasharray: 80; stroke-dashoffset: 80; }
.popup.is-done .mrz-checkmark-path { stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--ease-out) .4s; }
.popup__thanks-title { font-family: var(--font-head); font-size: 64px; line-height: 50px; letter-spacing: -.04em; text-transform: uppercase; }
.popup__thanks-text { font-size: 16px; }
html.mrz-lock, html.mrz-lock body { overflow: hidden; }

/* ==========================================================================
   Desktop small (1200–1360): keep the composition inside the viewport
   ========================================================================== */
@media (min-width: 1200px) and (max-width: 1360px) {
	.hero__title { font-size: 180px; }
	.hero__word--1 { top: 140px; }
	.hero__word--2 { left: max(380px, calc(50% - 297px)); top: 264px; }
	.hero__badge { left: auto; right: 40px; }
	.inside__title { font-size: 88px; line-height: 90px; }
}

/* ==========================================================================
   Tablet 768–1199 (design 768)
   ========================================================================== */
@media (max-width: 1199px) {
	:root { --edge: 40px; --col: 40px; }

	.hero { height: 620px; }
	.hero__logo { top: 64px; }
	.hero__title { font-size: 120px; }
	.hero__word--1 { left: 84px; top: 182px; }
	.hero__word--2 { left: 294px; top: 279px; }
	.hero__badge { left: auto; right: 40px; top: 206px; }
	.hero__text { top: 293px; width: 266px; }
	.hero__cta { top: 485px; width: 288px; }
	.hero__cta .mrz-btn { width: 288px; }
	.hero__video { width: 151.9%; height: 100%; left: -25.9%; }

	.tagline { padding: 100px 40px; }
	.tagline__inner { width: auto; max-width: 688px; margin: 0 auto; }
	.tagline__small { font-size: 24px; line-height: 24px; }
	.tagline__small--right { padding-right: 58px; margin-top: 0 !important; }
	.tagline__big { margin-top: 0 !important; font-size: 56px; line-height: 56px; }
	.tagline__line--indent { padding-left: 64px; }

	.about__signature { left: 244px; top: 470px; width: 392px; height: 431px; }
	.about__inner { margin-left: 40px; }
	.phil { height: 719px; }
	.phil__title { font-size: 64px; line-height: 64px; letter-spacing: -.04em; }
	.phil__title span:first-child { left: 31px; bottom: 308px; }
	.phil__title span:last-child { left: 91px; bottom: 240px; }
	.phil__items { left: 195px; top: 61px; gap: 40px; }
	.phil__item-text { margin-top: 16px !important; }

	.inside__sticky { display: none; }
	.inside__title--m { display: block; position: absolute; z-index: 3; left: 40px; top: 172px; font-size: 64px; line-height: 56px; }
	.inside__slide { height: 700px; }
	.inside__bg { background-image: var(--bg-m); }
	.inside__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 4, 4, 0) 45%, rgba(4, 4, 4, .55) 100%); }
	.inside__list { top: auto; bottom: 64px; left: 40px; right: 40px; gap: 32px; max-width: 390px; }
	.inside__slide--1 .inside__list,
	.inside__slide--3 .inside__list { top: auto; }
	.inside__item { justify-content: flex-start; gap: 16px; }
	.inside__num { order: 0; margin-top: 0; font-size: 24px; line-height: 30px; }
	.inside__body { width: auto; flex: 1 1 auto; }
	.inside__item-title { line-height: 30px; }
	.inside__item-text { line-height: 22px; }

	.pricing { padding: 100px 40px; }
	.pricing__title { margin: 0 0 56px !important; font-size: 64px; line-height: 56px; }
	.pricing__title-2 { padding-left: 0; }
	.pricing__track { flex-direction: column; align-items: center; gap: 24px; padding: 0; }
	.tariff { flex: none; width: 100%; max-width: 688px; }
	.pricing__veil, .pricing__lace { left: -300px; }

	.why__inner { height: auto; display: flex; flex-direction: column; gap: 64px; padding: 64px 40px; }
	.why__title, .why__items, .why__contacts, .why__cta { position: static; }
	.why__title { font-size: 64px; line-height: 52px; }
	.why__items { width: 328px; gap: 32px; }
	.why__item { justify-content: flex-start; gap: 16px; }
	.why__num { order: 0; margin-top: 0; font-size: 24px; }
	.why__item > div { width: auto; }
	.why__item-title { font-size: 28px; }
	.why__item-text { line-height: 22px; }
	.why__bottom-row { display: flex; }
	.why__contacts { align-self: flex-start; }
	.why__cta { position: absolute; right: 40px; bottom: 64px; left: auto; top: auto; }
	.why__bg { background-image: var(--bg-m); background-position: 50% 50%; }

	.popup__box { width: 730px; }
	.popup__step--form { padding: 92px 40px; width: 510px; }
	.popup__thanks-title { font-size: 56px; }
	.popup__step--thanks { width: 436px; }
}

/* ==========================================================================
   Mobile < 768 (design 390)
   ========================================================================== */
@media (max-width: 767px) {
	:root { --edge: 16px; --col: 16px; }

	/* Hero */
	.hero { height: 640px; background: #e0d9cc; }
	.hero__media { inset: auto; left: -425px; top: 145px; width: 1013px; height: 495px; }
	.hero__media.has-video { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
	.hero__video { width: 100%; height: 100%; left: 0; }
	.hero__logo { top: 56px; }
	.hero__logo svg { width: 239px; }
	.hero__badge { left: 50%; right: auto; top: 126px; translate: -50% 0; }
	.hero__title { font-size: 80px; }
	.hero__word--1 { left: 16px; top: 222px; }
	.hero__word--2 { left: 116px; top: 283px; }
	.hero__text { left: 16px; right: 16px; top: 380px; width: auto; }
	.hero__cta { left: 50%; top: 514px; width: 288px; translate: -50% 0; }
	.js .hero:not(.is-in) .hero__word--1 { transform: translateY(50px); }
	.js .hero:not(.is-in) .hero__word--2 { transform: translateY(80px); }
	.js .hero:not(.is-in) .hero__badge { transform: translateY(-20px); }
	.js .hero:not(.is-in) .hero__cta { transform: translateY(40px); }

	/* Tagline */
	.tagline { padding: 64px 16px; }
	.tagline__small { font-size: 20px; line-height: 20px; }
	.tagline__small--right { padding-right: 10px; }
	.tagline__big { font-size: 34px; line-height: 34px; letter-spacing: 0; }
	.tagline__line { white-space: normal; }
	.tagline__line--indent { padding-left: 0; }

	/* About / philosophy */
	.duo__figure { display: none; }
	.about { height: auto; padding: 64px 16px 0; background: linear-gradient(164.11deg, #81d8d0 6.21%, #087a76 93.74%); }
	.about__signature { left: 62px; top: 92px; width: 304px; height: 334px; transform: rotate(13.35deg); }
	.about__inner { margin: 0; width: auto; padding: 0; display: flex; flex-direction: column; gap: 24px; }
	.about__text { font-size: 18px; line-height: 20px; }
	.about__sign { margin: 0; }
	.about__photo-m { display: block; position: relative; aspect-ratio: 358 / 440; overflow: hidden; }
	.about__photo-m img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(-16px 16px 18px rgba(4, 30, 28, .3)); }

	.phil { height: auto; padding: 64px 16px; display: flex; flex-direction: column; gap: 40px; }
	.phil__title { font-size: 38px; line-height: 40px; letter-spacing: 0; }
	.phil__title span { position: static; display: block; writing-mode: horizontal-tb; transform: none; }
	.phil__items { position: static; width: auto; gap: 28px; }
	.phil__item-title { font-size: 26px; line-height: 30px; }
	.phil__first { display: inline; }
	.phil__item-text { margin-top: 12px !important; line-height: 20px; }

	/* Inside */
	.inside__title--m { position: relative; left: auto; top: auto; height: 130px; padding: 32px 16px 0; background: #030303; font-size: 38px; line-height: 44px; letter-spacing: 0; }
	.inside__slide { height: 640px; }
	.inside__slide--1 { height: 770px; }
	.inside__slide--1 .inside__bg,
	.inside__slide--1 .inside__shade,
	.inside__slide--1::after { top: 130px; }
	.inside__slide::after { background: linear-gradient(180deg, rgba(4, 4, 4, 0) 0%, rgba(4, 4, 4, 0) 40%, rgba(4, 4, 4, .85) 100%); }
	.inside__slide--1::after { background: linear-gradient(180deg, rgba(4, 4, 4, 0) 0%, rgba(4, 4, 4, 0) 19.8%, rgba(4, 4, 4, .85) 71.9%); }
	.inside__slide--3::after { background: linear-gradient(216.54deg, rgba(4, 4, 4, 0) 16.95%, rgba(4, 4, 4, 0) 38.17%, rgba(4, 4, 4, .85) 97.41%); }
	.inside__slide--1 .inside__bg { background-position: 62% 50%; }
	.inside__slide--2 .inside__bg { background-position: 55% 50%; }
	.inside__slide--3 .inside__bg { background-position: 72% 50%; }
	.inside__slide--4 .inside__bg { background-position: 40% 50%; }
	.inside__list { left: 16px; right: 16px; bottom: 40px; gap: 24px; max-width: none; }
	.inside__slide--3 { height: 760px; }
	.inside__slide--3 .inside__bg { background-size: auto 520px; background-position: 70% 0; }
	.inside__num { font-size: 20px; line-height: 26px; }
	.inside__item-title { font-size: 20px; line-height: 26px; }
	.inside__item-text { line-height: 20px; }

	/* Pricing: slider */
	.pricing { padding: 64px 0; }
	.pricing__title { margin: 0 16px 32px !important; font-size: 38px; line-height: 40px; letter-spacing: 0; }
	.pricing__title span { white-space: normal; }
	.pricing__bg-sticky { height: 280px; }
	.pricing__lace { left: 5px; top: 12px; width: 392px; height: 257px; }
	.pricing__veil { left: 9px; top: 2px; width: 384px; height: 275px; }
	.pricing__track {
		flex-direction: row;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 24px;
		padding: 0 16px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding: 0 16px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.pricing__track::-webkit-scrollbar { display: none; }
	.tariff { flex: 0 0 100%; max-width: none; scroll-snap-align: start; }
	.js .pricing .tariff[data-reveal] { transform: none; }
	.tariff__head { min-height: 0; padding: 32px 24px; }
	.tariff__name { display: flex; gap: 10px; }
	.tariff__body-inner { padding: 16px 24px; }
	.tariff__body:not(.is-open) .tariff__body-inner { max-height: 330px; overflow: hidden; }
	.tariff__body:not(.is-open)::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: 16px;
		height: 314px;
		background: linear-gradient(180deg, rgba(251, 251, 245, 0) 41%, #fbfbf5 76.6%);
		pointer-events: none;
	}
	.tariff__more {
		position: relative;
		z-index: 2;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 16px;
		width: 100%;
		height: 62px;
		margin: -40px 0 8px;
		color: var(--teal);
		font-weight: 500;
		font-size: 24px;
	}
	.tariff__body.is-open .tariff__more { margin-top: 0; }
	.tariff__more svg { transition: transform .4s var(--ease-out); }
	.tariff__body.is-open .tariff__more svg { transform: rotate(180deg); }
	.pricing__nav { display: flex; align-items: center; gap: 24px; padding: 32px 16px 8px; }
	.pricing__arrow { flex: 0 0 32px; height: 32px; display: grid; place-items: center; transition: opacity .3s; }
	.pricing__arrow[disabled] { opacity: .45; }
	.pricing__dots { flex: 1 1 auto; display: flex; gap: 24px; align-items: center; }
	.pricing__dots i { display: block; flex: 1 1 0; height: 1px; background: #81d8d0; opacity: .55; transition: background .4s, opacity .4s; }
	.pricing__dots i.is-active { background: #0b4f4d; opacity: .8; }
	.pricing__arrow svg { display: block; }

	/* Why */
	.why__inner { gap: 0; padding: 56px 16px 48px; }
	.why__title { font-size: 38px; line-height: 42px; letter-spacing: 0; }
	.why__title span { display: inline; white-space: normal; }
	.why__title span::after { content: " "; }
	.why__items { width: 260px; margin-top: 64px; gap: 24px; }
	.why__num { font-size: 20px; }
	.why__item-title { font-size: 24px; line-height: 28px; }
	.why__item-text { line-height: 20px; }
	.why__contacts { margin-top: 48px; }
	.why__cta { position: static; width: 100%; margin-top: 24px; }
	.why__bg { background-position: 62% 50%; }
	.why__shade {
		display: block;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background:
			linear-gradient(180deg, rgba(4, 4, 4, 0) 0%, rgba(4, 4, 4, 0) 43.5%, rgba(4, 4, 4, .85) 100%),
			linear-gradient(90deg, rgba(4, 4, 4, .7) 0%, rgba(4, 4, 4, .1) 45%, rgba(4, 4, 4, .1) 70%, rgba(4, 4, 4, .7) 100%);
	}

	/* Popup */
	.popup { padding: 12px; align-items: start; }
	.popup__box { width: 358px; min-height: 0; }
	.popup__bg { inset: 0 0 auto 0; height: 312px; background-image: var(--bg-m); background-size: 534px auto; background-position: -76px -49px; }
	.popup__shade { display: block; background: linear-gradient(180deg, rgba(4, 4, 4, 0) 0%, rgba(4, 4, 4, 0) 23.8%, #040404 40.9%); bottom: 0; }
	.popup__close { right: 16px; top: 16px; width: 40px; height: 40px; }
	.popup__close svg { width: 40px; height: 40px; }
	.popup__step--form { width: auto; padding: 220px 16px 32px; }
	.popup__pre { font-size: 15px; }
	.popup__title { font-size: 32px; line-height: 34px; }
	.popup__text { margin-top: 24px !important; font-size: 13px; }
	.popup__form { width: auto; margin-top: 32px; gap: 24px; }
	.popup__submit { width: 100%; margin-top: 8px; }
	.popup__step--thanks { width: 100%; padding: 220px 24px 40px; justify-content: flex-start; }
	.popup__thanks-title { font-size: 48px; line-height: 44px; }
	.mrz-btn { width: 100%; }
	.hero__cta .mrz-btn { width: 288px; }
}

@media (max-width: 380px) {
	.hero__title { font-size: 72px; }
	.hero__word--2 { left: 96px; }
	.hero__badge-text { font-size: 16px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
	html { scroll-behavior: auto; }
	.js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Offer link + consent
   ========================================================================== */
.why__offer { margin-top: 4px; opacity: .7; text-decoration: underline !important; text-underline-offset: 3px; }
.why__offer:hover { opacity: 1; }
.popup__consent { margin-top: -12px !important; max-width: 340px; font-size: 13px; line-height: 1.35; color: rgba(245, 252, 251, .6); }
.popup__consent a { color: var(--teal-light); text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Document page (Публічна оферта)
   ========================================================================== */
.doc { min-height: 100vh; background: var(--bg); color: var(--ink); padding: 0 16px 96px; }
.doc__top { max-width: 820px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 32px 0 40px; }
.doc__logo { color: var(--teal-dark); line-height: 0; }
.doc__logo svg { width: 180px; height: auto; }
.doc__back { font-size: 16px; color: var(--teal-dark); transition: opacity .3s; }
.doc__back:hover { opacity: .7; }
.doc__body { max-width: 820px; margin: 0 auto; font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; }
.doc__body p { margin: 0 0 1em; }
.doc__body > p:first-child { margin-bottom: .2em; font-family: var(--font-head); font-size: 40px; line-height: 1.1; letter-spacing: -.02em; text-transform: uppercase; color: var(--teal-dark); }
.doc__body > p:first-child strong { font-weight: 400; }
.doc__body > p:nth-child(2) { font-size: 20px; margin-bottom: 1.4em; }
.doc__body strong { font-weight: 600; }
.doc__body ul { margin: 0 0 1em; padding-left: 1.3em; list-style: disc; }
.doc__body li { margin-bottom: .4em; }
.doc__body blockquote { margin: 0 0 1em; padding-left: 16px; border-left: 2px solid var(--teal-light); }
.doc__body a { color: var(--teal-dark); text-decoration: underline; }
.doc__table { overflow-x: auto; margin: 0 0 1.4em; }
.doc__table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.doc__table th, .doc__table td { border: 1px solid rgba(11, 79, 77, .2); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc__table th { background: rgba(129, 216, 208, .18); font-weight: 600; }
@media (max-width: 767px) {
	.doc__top { padding: 24px 0 28px; }
	.doc__logo svg { width: 140px; }
	.doc__back { font-size: 14px; }
	.doc__body { font-size: 15px; }
	.doc__body > p:first-child { font-size: 28px; }
	.doc__body > p:nth-child(2) { font-size: 17px; }
}
