/*
 * Malevin — main stylesheet (front-end + block editor).
 *
 * Content is built from core blocks with these classes (set in "Additional CSS class"):
 *
 *   Layout     m-section, m-section--wide, m-section--narrow, m-grid m-grid--2/3/4/5, m-stack
 *   Type       m-h1, m-h2, m-h3, m-lead, m-small, m-center, <em> in headings = blue italic accent
 *   Surfaces   m-card (white, radius 24), m-card--blue, m-badge, m-tag, m-pill
 *   Buttons    core/button styles: is-style-m-blue, is-style-m-dark, is-style-m-outline, is-style-m-light
 *   Lists      core/list styles: is-style-m-checks, is-style-m-dots, is-style-m-chevrons; m-list--cols-2/3
 *   Sections   m-hero, m-expert, m-stage, m-benefit, m-cta-banner, m-feature(s), m-slider, m-review,
 *              m-cert, m-faq (+ core/details is-style-m-faq), m-contact, m-tariff, m-logos
 *   Modals     m-modal > m-modal__dialog (hidden on the front-end, see front.css)
 */

:root {
	--m-accent: #345ced;
	--m-accent-2: #2545eb;
	--m-accent-light: #4676f0;
	--m-ink: #333;
	--m-dark: #1e1c1d;
	--m-muted: #5f5f5f;
	--m-bg: #f3f2f9;
	--m-field: #f0f0fa;
	--m-white: #fff;
	--m-grad: linear-gradient(130deg, #4676f0 0%, #2545eb 100%);
	--m-grad-dark: linear-gradient(102deg, #5f5f5f 0%, #3a3a3a 100%);
	--m-radius: 24px;
	--m-radius-s: 12px;
	--m-container: 1160px;
	--m-gutter: 20px;
	--m-section-gap: clamp(48px, 5.5vw, 84px);
	--m-check: url("../img/check.svg");
	--m-chevron: url("../img/chevron.svg");
	--m-arrow-ne: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M3 13 13 3M5 3h8v8'/%3E%3C/svg%3E");
	--m-arrow-se: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='none' stroke='%23333' stroke-width='1.5'%3E%3Cpath d='M2 2l26 26M28 6v22H6'/%3E%3C/svg%3E");
}

/* Wider container on large screens. */
@media (min-width: 1440px) {
	:root {
		--m-container: 1240px;
	}
}

/* ---------- Base ---------- */

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

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

body {
	margin: 0;
	background: var(--m-bg);
	color: var(--m-ink);
	font-family: Manrope, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a {
	color: var(--m-accent);
}

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

strong,
b {
	font-weight: 700;
}

.wp-block-image {
	margin: 0;
}

.wp-block-image img {
	display: block;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed !important;
	z-index: 1000;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 10px 16px;
	clip: auto;
	background: #fff;
}

/* ---------- Layout ---------- */

.m-main {
	display: flow-root;
}

.m-canvas .m-main {
	padding-bottom: var(--m-section-gap);
}

.m-section {
	width: 100%;
	max-width: calc(var(--m-container) + 2 * var(--m-gutter));
	margin: var(--m-section-gap) auto 0;
	padding: 0 var(--m-gutter);
}

.m-section--wide {
	max-width: calc(1240px + 2 * var(--m-gutter));
}

.m-section--narrow {
	max-width: calc(920px + 2 * var(--m-gutter));
}

.m-section--first {
	margin-top: clamp(32px, 6vw, 90px);
}

.m-stack > * + * {
	margin-top: 16px;
}

.m-grid {
	display: grid;
	gap: 20px;
}

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

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

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

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

.m-grid--tight {
	gap: 16px;
}

/* core/columns: keep our own spacing */
.wp-block-columns {
	margin: 0;
	gap: 40px;
}

.wp-block-columns.is-not-stacked-on-mobile > .wp-block-column,
.wp-block-column {
	min-width: 0;
}

/* ---------- Typography ---------- */

.m-h1,
.m-hero__title {
	font-size: clamp(30px, 3.6vw, 46px);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--m-ink);
}

.m-h2 {
	font-size: clamp(26px, 2.6vw, 34px);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--m-ink);
}

.m-h3 {
	font-size: clamp(18px, 1.5vw, 20px);
	font-weight: 500;
	line-height: 1.25;
	color: var(--m-ink);
}

.m-h1 em,
.m-h2 em,
.m-h3 em,
.m-hero__title em,
.m-accent {
	color: var(--m-accent);
	font-style: italic;
}

.m-lead {
	max-width: 760px;
	margin-top: 16px;
	font-size: clamp(16px, 1.4vw, 20px);
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.m-small {
	font-size: 16px;
	line-height: 1.35;
}

.m-xs {
	font-size: 13px;
	line-height: 1.35;
}

.m-center {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

.m-upper {
	text-transform: uppercase;
}

.m-head {
	margin-bottom: clamp(28px, 3vw, 44px);
}

/* ---------- Buttons ---------- */

.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 24px;
}

.wp-block-button__link,
.m-btn,
.m-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 12px 28px;
	border: 0;
	border-radius: 51px;
	background: var(--m-grad);
	color: #fff;
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.1;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.wp-block-button__link:hover,
.m-btn:hover,
.m-form__submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(52, 92, 237, 0.25);
	color: #fff;
}

.is-style-m-blue .wp-block-button__link::after,
.is-style-m-dark .wp-block-button__link::after,
.is-style-m-light .wp-block-button__link::after {
	content: "";
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: var(--m-arrow-ne) center / contain no-repeat;
	mask: var(--m-arrow-ne) center / contain no-repeat;
}

.m-noarrow .wp-block-button__link::after {
	display: none;
}

.is-style-m-dark .wp-block-button__link,
.m-btn--dark {
	background: var(--m-grad-dark);
}

.is-style-m-dark .wp-block-button__link:hover,
.m-btn--dark:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.is-style-m-outline .wp-block-button__link {
	min-height: 36px;
	padding: 6px 20px;
	border: 1px solid var(--m-accent);
	background: transparent;
	color: var(--m-ink);
	font-size: 15px;
	font-weight: 400;
	text-transform: none;
}

.is-style-m-outline .wp-block-button__link:hover {
	background: var(--m-accent);
	color: #fff;
}

.is-style-m-light .wp-block-button__link {
	background: #fff;
	color: var(--m-accent);
}

.m-btn--small .wp-block-button__link {
	min-height: 40px;
	padding: 8px 22px;
	font-size: 15px;
}

/* ---------- Surfaces ---------- */

.m-card,
.is-style-m-card {
	position: relative;
	padding: clamp(20px, 2.2vw, 30px);
	border-radius: var(--m-radius);
	background: var(--m-white);
}

.m-card--blue {
	background: var(--m-grad);
	color: #fff;
}

.m-card--blue :is(h2, h3, p, li, .m-h3) {
	color: #fff;
}

.m-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 8px;
	background: var(--m-grad);
	color: #fff;
	font-size: clamp(18px, 1.7vw, 24px);
	font-weight: 600;
	line-height: 1.25;
	text-transform: uppercase;
}

.m-tag {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 10px;
	background: var(--m-dark);
	color: #fff;
	font-size: 13px;
	line-height: 1.2;
}

.m-pill {
	display: inline-block;
	padding: 8px 20px;
	border-radius: 6px;
	background: var(--m-accent-light);
	color: #fff;
	font-size: 18px;
}

/* ---------- Lists ---------- */

.wp-block-list {
	padding: 0;
}

.is-style-m-checks,
.is-style-m-dots,
.is-style-m-chevrons {
	list-style: none;
	padding: 0;
}

.is-style-m-checks > li,
.is-style-m-dots > li,
.is-style-m-chevrons > li {
	position: relative;
	padding-left: 1.45em;
}

.is-style-m-checks > li + li,
.is-style-m-dots > li + li,
.is-style-m-chevrons > li + li {
	margin-top: 0.6em;
}

.is-style-m-checks > li::before {
	content: "";
	position: absolute;
	top: 0.12em;
	left: 0;
	width: 1.15em;
	height: 1.15em;
	background: var(--m-check) center / contain no-repeat;
}

.is-style-m-dots > li {
	padding-left: 0.8em;
}

.is-style-m-dots > li::before {
	content: "";
	position: absolute;
	top: 0.6em;
	left: 0;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--m-accent);
}

.is-style-m-chevrons > li {
	padding-left: 2em;
}

.is-style-m-chevrons > li::before {
	content: "";
	position: absolute;
	top: 0.05em;
	left: 0;
	width: 1.3em;
	height: 1.3em;
	background: var(--m-chevron) center / contain no-repeat;
}

.m-list--cols-2,
.m-list--cols-3 {
	display: grid;
	gap: 0.6em 24px;
}

.m-list--cols-2 {
	grid-template-columns: repeat(2, max-content);
}

.m-list--cols-3 {
	grid-template-columns: repeat(3, max-content);
}

.m-list--cols-2 > li + li,
.m-list--cols-3 > li + li {
	margin-top: 0;
}

/* ---------- Hero ---------- */

.m-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	align-items: center;
	gap: 30px;
}

.m-hero__title {
	max-width: 620px;
}

.m-hero__subtitle {
	margin-top: 22px;
	font-size: clamp(18px, 1.7vw, 24px);
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.m-hero__text {
	max-width: 420px;
	margin-top: 18px;
	font-size: clamp(16px, 1.4vw, 20px);
	line-height: 1.22;
	letter-spacing: -0.01em;
}

.m-hero__media img {
	width: 100%;
}

.m-hero__media--bleed {
	margin-right: calc(-1 * var(--m-gutter) - 40px);
}

/* The CRM laptop PNG has wide transparent margins (the device is ~75% of its width):
   enlarge it and pull it right past the grid like on the original Tilda page. */
@media (min-width: 961px) {
	.m-hero__media--bleed {
		margin-right: 0;
	}

	.m-hero__media--bleed img {
		width: 142%;
		max-width: none;
		margin: -16% 0 -16% -24%;
	}
}

/* ---------- Expert card ---------- */

.m-expert {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 20px;
	overflow: hidden;
	padding: 0;
	border-radius: var(--m-radius);
	background: var(--m-white);
}

/* The photo fills the card height and sits on its bottom edge. */
.m-expert__photo {
	position: relative;
	min-height: 360px;
}

.m-expert__photo img {
	position: absolute;
	inset: 40px 0 0;
	width: 100%;
	height: calc(100% - 40px);
	object-fit: contain;
	object-position: center bottom;
}

.m-expert__body {
	padding: 20px 40px 40px 0;
}

.m-expert__name {
	font-size: clamp(26px, 2.6vw, 34px);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.m-expert__role {
	margin-top: 8px;
	color: var(--m-accent);
	font-size: clamp(18px, 1.7vw, 24px);
	font-style: italic;
}

.m-expert__body .is-style-m-checks {
	margin-top: 22px;
	font-size: 16px;
}

.m-expert__body .is-style-m-checks > li + li {
	margin-top: 0.75em;
}

.m-expert__text {
	margin-top: 22px;
	font-size: 16px;
	line-height: 1.45;
}

.m-expert__text + .m-expert__text {
	margin-top: 22px;
}

.m-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 24px;
	margin-top: 28px;
}

/* Explicit height: several partner SVGs have only a viewBox and would collapse to 0 width. */
.m-logos .wp-block-image img {
	width: auto;
	height: 28px;
}

/* ---------- Stages ---------- */

.m-stages {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 50px 44px;
}

.m-stages--single {
	grid-template-columns: minmax(0, 1fr);
	gap: 50px;
}

/* Room for the badges that overhang the first row (margins on cards would be
   zeroed for the first child by core flow-layout rules). */
.m-stages {
	padding-top: 20px;
}

.m-stage {
	position: relative;
	padding: 44px 28px 28px;
	border-radius: var(--m-radius);
	background: var(--m-white);
}

.m-stage > .m-badge {
	position: absolute;
	top: -20px;
	left: 24px;
}

.m-stage > .m-tag {
	position: absolute;
	top: 14px;
	right: 14px;
}

.m-stage__title {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
}

.m-stage__label {
	margin-top: 10px;
	font-size: 16px;
}

.m-stage .wp-block-list {
	margin-top: 12px;
	font-size: 16px;
	line-height: 1.3;
}

.m-stage__note {
	margin-top: 12px;
	font-size: 16px;
}

/* Stage card with 3 columns separated by lines (BP stages, school modules). */
.m-stage--cols {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 0;
}

.m-stage--cols > .wp-block-group:not(.m-badge) {
	padding: 0 30px;
}

.m-stage--cols > .wp-block-group:first-of-type {
	padding-left: 0;
}

.m-stage--cols > .wp-block-group:last-child {
	padding-right: 0;
}

.m-stage--cols > .wp-block-group + .wp-block-group {
	border-left: 1px solid #e0e0e0;
}

.m-stage__result {
	color: var(--m-accent);
	font-size: clamp(20px, 1.8vw, 24px);
	font-weight: 600;
	line-height: 1.2;
}

/* ---------- Benefits (cards with text on top and a title + arrow at the bottom) ---------- */

.m-benefit {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 260px;
	padding: 24px 20px 14px;
	border-radius: var(--m-radius);
	background: var(--m-white);
	font-size: 16px;
	line-height: 1.3;
}

.m-benefit__title {
	position: relative;
	margin-top: 24px;
	padding-right: 40px;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.12;
}

.m-benefit__title::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 28px;
	height: 28px;
	background: var(--m-arrow-se) center / contain no-repeat;
}

/* ---------- CTA banner ---------- */

.m-cta-banner {
	position: relative;
	overflow: hidden;
	margin-top: 24px;
	padding: clamp(24px, 3vw, 40px) 26px;
	border-radius: var(--m-radius);
	background: var(--m-white);
}

.m-cta-banner > *:not(.m-cta-banner__img) {
	position: relative;
	z-index: 2;
	max-width: 560px;
}

.m-cta-banner__img {
	position: absolute !important;
	inset: 0 0 0 auto;
	z-index: 0;
	width: 66%;
	height: 100%;
}

.m-cta-banner__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.m-cta-banner__img::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.85) 25%, rgba(255, 255, 255, 0) 70%);
}

.m-cta-banner__title {
	font-size: clamp(20px, 2vw, 24px);
	font-weight: 500;
	line-height: 1.1;
}

.m-cta-banner__text {
	margin-top: 14px;
	font-size: clamp(16px, 1.4vw, 18px);
	line-height: 1.3;
}

/* ---------- Features ("5 элементов") ---------- */

.m-features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 60px 40px;
}

.m-feature .wp-block-image img {
	width: auto;
	height: 80px;
}

.m-feature__title {
	margin-top: 22px;
	font-size: 20px;
	font-weight: 500;
}

.m-feature__text {
	margin-top: 14px;
	max-width: 320px;
	font-size: 16px;
	line-height: 1.3;
}

.m-features__head {
	font-size: clamp(26px, 2.6vw, 34px);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.m-features__head em {
	color: var(--m-accent);
	font-style: italic;
}

/* ---------- Slider (reviews) ---------- */

.m-slider {
	display: flex;
	gap: 40px;
	overflow-x: auto;
	margin-right: calc(-1 * var(--m-gutter));
	padding-bottom: 12px;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: #c9cdea transparent;
	cursor: grab;
}

.m-slider.is-dragging {
	scroll-snap-type: none;
	cursor: grabbing;
	user-select: none;
}

.m-slider > * {
	flex: 0 0 auto;
	scroll-snap-align: start;
}

.m-slider__hint {
	display: none;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
	font-size: 15px;
}

.m-review {
	display: flex;
	flex-direction: column;
	width: 332px;
}

.m-review__video {
	overflow: hidden;
	aspect-ratio: 332 / 586;
	border-radius: var(--m-radius);
	background: #000;
}

.m-review__video iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.m-review__name {
	margin-top: 14px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
}

.m-review__excerpt {
	margin-top: 12px;
	font-size: 16px;
	line-height: 1.3;
}

.m-review .wp-block-buttons {
	margin-top: auto;
	padding-top: 16px;
}

/* ---------- Certificates ---------- */

.m-cert {
	padding: 30px 0 0 36px;
	overflow: hidden;
	border-radius: var(--m-radius);
	background: var(--m-white);
}

.m-cert__title {
	margin-bottom: 24px;
	font-size: 18px;
}

.m-cert .wp-block-image img {
	width: 100%;
	border-radius: var(--m-radius) 0 0 0;
}

/* ---------- FAQ ---------- */

.m-faq {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	gap: 32px 40px;
}

.wp-block-details.is-style-m-faq {
	border-radius: var(--m-radius);
	background: var(--m-white);
}

.is-style-m-faq > summary {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 74px;
	padding: 18px 76px 18px 24px;
	font-size: clamp(17px, 1.5vw, 20px);
	font-weight: 500;
	line-height: 1.3;
	list-style: none;
	cursor: pointer;
}

.is-style-m-faq > summary::-webkit-details-marker {
	display: none;
}

.is-style-m-faq > summary::before,
.is-style-m-faq > summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 32px;
	width: 24px;
	height: 1.5px;
	background: var(--m-ink);
	transition: transform 0.25s ease;
}

.is-style-m-faq > summary::after {
	transform: rotate(90deg);
}

.is-style-m-faq[open] > summary::after {
	transform: rotate(0);
}

.is-style-m-faq > :not(summary) {
	padding: 0 24px;
	font-size: 16px;
	line-height: 1.5;
}

.is-style-m-faq > :not(summary) + :not(summary) {
	padding-top: 12px;
}

.is-style-m-faq > :last-child:not(summary) {
	padding-bottom: 24px;
}

/* ---------- Contact section (checklist + form card) ---------- */

.m-contact {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
	align-items: center;
	gap: 40px;
	max-width: 1000px;
	margin: 36px auto 0;
}

.m-contact .is-style-m-checks {
	font-size: clamp(16px, 1.4vw, 18px);
}

.m-contact .is-style-m-checks > li + li {
	margin-top: 1.1em;
}

/* ---------- Forms ---------- */

.m-form {
	display: grid;
	gap: 22px;
}

.m-form--card {
	padding: 30px;
	border-radius: var(--m-radius);
	background: var(--m-white);
}

.m-form__title {
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.m-form__text {
	margin-top: -12px;
	font-size: 16px;
}

.m-form__field input {
	width: 100%;
	height: 52px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: var(--m-radius-s);
	background: var(--m-field);
	color: var(--m-ink);
	font: inherit;
	font-size: 16px;
	outline: none;
	transition: border-color 0.2s ease;
}

.m-form__field input:focus {
	border-color: var(--m-accent);
}

.m-form.is-error input:invalid {
	border-color: #e5484d;
}

.m-form__submit {
	justify-self: start;
	min-width: 200px;
	font-size: 16px;
	text-transform: none;
}

.m-form__submit:disabled {
	opacity: 0.6;
	cursor: wait;
}

.m-form__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	line-height: 1.3;
}

.m-form__consent input {
	margin: 2px 0 0;
	accent-color: var(--m-accent);
}

.m-form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.m-form__status:empty {
	display: none;
}

.m-form__status {
	font-size: 15px;
}

.m-form.is-error .m-form__status {
	color: #d4373c;
}

.m-form.is-sent .m-form__status {
	color: #1d8a4a;
}

.m-form--round .m-form__field input {
	height: 54px;
	border: 1px solid var(--m-ink);
	border-radius: 30px;
	background: transparent;
	font-size: 18px;
}

.m-form--round .m-form__submit {
	justify-self: stretch;
	font-size: 20px;
}

/* ---------- Tariffs ---------- */

.m-tariff {
	display: flex;
	flex-direction: column;
	padding: 34px 22px 26px;
	border-radius: var(--m-radius);
	background: var(--m-white);
	font-size: 16px;
	line-height: 1.3;
}

.m-tariff__head {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	color: var(--m-accent);
	font-size: clamp(22px, 2vw, 28px);
	font-weight: 600;
	line-height: 1.1;
}

.m-tariff__num {
	opacity: 0.45;
	font-weight: 500;
}

.m-tariff__price {
	margin-top: auto;
	padding-top: 30px;
	font-size: clamp(20px, 1.9vw, 26px);
}

/* Button sits at the bottom of the card whether or not a price is shown. */
.m-tariff > .wp-block-buttons {
	margin-top: auto;
	padding-top: 30px;
}

.m-tariff__price + .wp-block-buttons {
	padding-top: 0;
}

.m-tariff--featured {
	background: var(--m-grad);
	color: #fff;
}

.m-tariff--featured .m-tariff__head {
	color: #fff;
}

.m-tariff--featured .is-style-m-checks > li::before {
	filter: brightness(0) invert(1);
}

/* ---------- Modal content (look; visibility is in front.css) ---------- */

.m-modal__dialog {
	position: relative;
	width: min(760px, 100%);
	margin: auto;
	padding: clamp(28px, 4vw, 48px);
	border-radius: var(--m-radius);
	background: var(--m-white);
}

.m-modal__title {
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 500;
	line-height: 1.15;
}

.m-modal__text {
	margin-top: 10px;
	margin-bottom: 24px;
	font-size: 16px;
}

.m-story__name {
	padding-right: 30px;
	font-size: clamp(22px, 2.2vw, 30px);
	font-weight: 600;
	line-height: 1.2;
}

.m-story__label {
	margin-top: 6px;
	color: var(--m-accent);
	font-size: 18px;
	font-style: italic;
}

.m-story__text {
	margin-top: 16px;
	font-size: 16px;
	line-height: 1.5;
}

/* ---------- Header ---------- */

.m-header {
	position: relative;
	z-index: 50;
}

.m-header__inner {
	display: flex;
	align-items: center;
	gap: 18px;
	max-width: calc(var(--m-container) + 2 * var(--m-gutter));
	min-height: 100px;
	margin: 0 auto;
	padding: 0 var(--m-gutter);
}

.m-header__brand {
	flex: none;
	line-height: 0;
}

.m-header__tagline {
	flex: none;
	max-width: 120px;
	padding-left: 14px;
	border-left: 1px solid #c8c8d0;
	color: var(--m-muted);
	font-size: 12px;
	line-height: 1.2;
}

.m-nav {
	flex: 1;
}

.m-nav__list {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	gap: 10px clamp(12px, 1.3vw, 28px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.m-nav__list a {
	white-space: nowrap;
	color: var(--m-ink);
	font-size: 16px;
	text-decoration: none;
	transition: color 0.2s ease;
}

.m-nav__list a:hover {
	color: var(--m-accent);
}

.m-nav__list--header .m-drawer-only {
	display: none;
}

.m-header__cta {
	flex: none;
	padding: 10px 22px;
	border-radius: 30px;
	background: var(--m-grad-dark);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.m-header__cta:hover {
	color: #fff;
	opacity: 0.9;
}

.m-burger {
	display: none;
	margin-left: auto;
	padding: 0;
	border: 0;
	background: none;
	line-height: 0;
	cursor: pointer;
}

/* ---------- Sections bar (CRM / БП / Школа) ---------- */

.m-sections {
	border-bottom: 1px solid #e3e2ee;
	background: var(--m-white);
}

.m-sections__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	max-width: calc(var(--m-container) + 2 * var(--m-gutter));
	min-height: 44px;
	margin: 0 auto;
	padding: 0 var(--m-gutter);
}

.m-sections__nav {
	flex: 1;
	min-width: 0;
}

.m-sections__list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.m-sections__list a {
	display: block;
	padding: 6px 14px;
	border-radius: 20px;
	color: var(--m-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease;
}

.m-sections__list a:hover {
	background: var(--m-field);
	color: var(--m-accent);
}

.m-sections__list .current-menu-item > a,
.m-sections__list .current_page_item > a {
	background: var(--m-grad);
	color: #fff;
}

.m-sections__phone {
	flex: none;
	color: var(--m-ink);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.m-sections__phone:hover {
	color: var(--m-accent);
}

/* ---------- Form legal block ---------- */

.m-form__legal {
	display: grid;
	gap: 10px;
}

.m-form__policy {
	color: var(--m-muted);
	font-size: 13px;
	line-height: 1.35;
}

.m-form__legal a {
	color: var(--m-accent);
}

.m-form--card .m-form__legal,
.m-form--plain .m-form__legal {
	margin-top: -6px;
}

.m-legal > * + * {
	margin-top: 16px;
}

.m-legal > .m-h3 {
	margin-top: 36px;
}

.m-legal .wp-block-list:not([class*="is-style"]) {
	padding-left: 1.3em;
}

.m-legal .wp-block-list:not([class*="is-style"]) > li + li {
	margin-top: 8px;
}

.m-legal-dates {
	margin-top: 24px;
	color: var(--m-muted);
	font-size: 14px;
}

/* ---------- Footer ---------- */

.m-footer {
	margin: var(--m-section-gap) var(--m-gutter) 0;
	padding: 40px 0 26px;
	border-radius: 48px 48px 0 0;
	background: #333;
	color: #fff;
}

.m-footer__inner {
	max-width: calc(var(--m-container) + 2 * var(--m-gutter));
	margin: 0 auto;
	padding: 0 var(--m-gutter);
}

.m-footer a {
	color: #fff;
	text-decoration: none;
}

.m-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
}

.m-footer__brand {
	display: grid;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
}

.m-footer__brand img {
	width: 184px;
}

.m-footer__company {
	margin-right: auto;
	font-size: 14px;
	line-height: 1.45;
}

.m-footer__contact {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	letter-spacing: -0.01em;
}

.m-footer__contact::before {
	content: "";
	width: 22px;
	height: 22px;
	background: center / contain no-repeat;
}

.m-footer__contact--phone::before {
	background-image: url("../img/phone.svg");
}

.m-footer__contact--mail::before {
	background-image: url("../img/mail.svg");
}

.m-footer__contact + .m-footer__contact {
	margin-left: 16px;
}

.m-footer__tg {
	margin-left: 16px;
	line-height: 0;
}

.m-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	margin-top: 44px;
}

.m-footer__legal {
	width: 100%;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 12px;
	line-height: 1.4;
}

.m-footer__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 10px 24px;
}

.m-footer__legal .m-footer__copy {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.m-footer__legal .m-footer__disclaimer {
	max-width: 900px;
	margin-top: 14px;
	opacity: 0.6;
}

.m-legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.m-legal-links a,
.m-legal-links__btn {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.m-legal-links a:hover,
.m-legal-links__btn:hover {
	text-decoration: underline;
}

.m-canvas-footer {
	padding: 30px var(--m-gutter);
	background: #333;
	color: #fff;
	font-size: 13px;
	line-height: 1.45;
}

.m-canvas-footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px;
	max-width: var(--m-container);
	margin: 0 auto;
}


/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
	.m-header__tagline {
		display: none;
	}

	.m-grid--5 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.m-footer__contact + .m-footer__contact,
	.m-footer__tg {
		margin-left: 0;
	}
}

@media (max-width: 960px) {
	.m-nav,
	.m-header__cta,
	.m-sections {
		display: none;
	}

	.m-burger {
		display: block;
	}

	.m-header__inner {
		min-height: 76px;
	}

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

	.m-expert__body {
		order: -1;
		padding: 28px 22px 0;
	}

	.m-expert__photo img {
		max-width: 380px;
	}

	.m-stages {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
	}

	.m-grid--4,
	.m-grid--3,
	.m-features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

	.m-stage--cols {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.m-stage--cols > .wp-block-group:not(.m-badge) {
		padding: 0;
	}

	.m-stage--cols > .wp-block-group + .wp-block-group {
		padding-top: 20px;
		border-top: 1px solid #e0e0e0;
		border-left: 0;
	}

	.m-cta-banner__img {
		width: 100%;
		opacity: 0.35;
	}

	.m-slider__hint {
		display: flex;
	}

	.m-hero__media--bleed {
		margin-right: 0;
	}
}

@media (max-width: 640px) {
	:root {
		--m-gutter: 16px;
	}

	.m-grid--4,
	.m-grid--3,
	.m-grid--5,
	.m-features {
		grid-template-columns: minmax(0, 1fr);
	}

	.m-features {
		gap: 36px;
	}

	.m-list--cols-2,
	.m-list--cols-3 {
		grid-template-columns: minmax(0, 1fr);
	}

	.m-benefit {
		min-height: 200px;
	}

	.m-slider {
		gap: 16px;
	}

	.m-review {
		width: 78vw;
	}

	.m-stage {
		padding: 40px 20px 22px;
	}

	.m-stage > .m-tag {
		position: static;
		margin-bottom: 10px;
	}

	.wp-block-button__link,
	.m-btn {
		min-height: 46px;
		padding: 10px 22px;
		font-size: 16px;
	}

	.m-form--card {
		padding: 22px;
	}

	.m-footer {
		margin: var(--m-section-gap) 0 0;
		border-radius: 32px 32px 0 0;
	}

	.m-footer__top,
	.m-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ---------- Service pages (content/pages built by tools/build-services.mjs) ---------- */

.m-crumbs {
	margin-bottom: 14px;
	color: var(--m-muted);
	font-size: 15px;
}

.m-crumbs a {
	color: var(--m-accent);
	text-decoration: none;
}

.m-hero__content > .m-pill + .m-hero__title,
.m-hero__content > .m-crumbs + .m-hero__title {
	margin-top: 18px;
}

.m-hero__text--wide {
	max-width: 560px;
}

.m-hero__content > .wp-block-buttons {
	margin-top: 28px;
}

.m-hero__aside {
	align-self: center;
	box-shadow: 0 12px 34px rgba(20, 30, 80, 0.08);
}

.m-hero__aside-title {
	margin-bottom: 14px;
	font-size: 20px;
	font-weight: 600;
}

.m-hero__aside .is-style-m-checks > li + li {
	margin-top: 0.7em;
}

.m-hero__aside a {
	color: var(--m-accent);
}

.m-hero__media--rounded {
	overflow: hidden;
	border-radius: var(--m-radius);
}

.m-hero__media--rounded img {
	aspect-ratio: 570 / 520;
	object-fit: cover;
}

.m-pain p {
	margin-top: 10px;
	color: var(--m-muted);
	font-size: 16px;
	line-height: 1.4;
}

.m-card p + p {
	margin-top: 12px;
}

.m-card .wp-block-buttons {
	margin-top: 18px;
}

.m-includes .is-style-m-checks > li {
	font-size: 16px;
}

.m-includes__note {
	max-width: 760px;
	margin-top: 16px;
	color: var(--m-muted);
	font-size: 15px;
}

.m-includes a,
.m-pain a {
	color: var(--m-accent);
}

/* Whole card is a link (the heading link stretches over it). */
.m-link-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 22px 56px 22px 22px;
	border-radius: 20px;
	background: var(--m-white);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.m-link-card::after {
	content: "";
	position: absolute;
	top: 24px;
	right: 22px;
	width: 20px;
	height: 20px;
	background: var(--m-accent);
	-webkit-mask: var(--m-arrow-ne) center / contain no-repeat;
	mask: var(--m-arrow-ne) center / contain no-repeat;
}

.m-link-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(52, 92, 237, 0.14);
}

.m-link-card__title {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.25;
}

.m-link-card__title a {
	color: var(--m-ink);
	text-decoration: none;
}

.m-link-card__title a::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.m-link-card:focus-within {
	outline: 2px solid var(--m-accent);
	outline-offset: 2px;
}

.m-link-card__text {
	margin-top: 8px;
	color: var(--m-muted);
	font-size: 15px;
	line-height: 1.4;
}

.m-quote {
	max-width: 760px;
	margin: 36px auto 0;
	text-align: center;
}

.m-quote__text {
	font-size: clamp(22px, 2.2vw, 30px);
	font-style: italic;
	line-height: 1.25;
	color: var(--m-accent);
}

.m-quote__author {
	margin-top: 10px;
	color: var(--m-muted);
	font-size: 14px;
}

/* ---------- Logo (mark + name, see malevin_logo()) ---------- */

.m-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	line-height: 1;
	white-space: nowrap;
}

.m-logo__mark,
.m-footer__brand .m-logo__mark {
	width: 40px;
	height: 40px;
	flex: none;
}

.m-logo__name {
	color: var(--m-ink);
	font-size: 21px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.m-logo--light .m-logo__name {
	color: #fff;
}

.m-footer__brand .m-logo__mark {
	width: 44px;
	height: 44px;
}

.m-footer__brand .m-logo__name {
	font-size: 23px;
}

.m-drawer__logo.m-logo {
	width: auto;
}

@media (max-width: 640px) {
	.m-logo__mark {
		width: 36px;
		height: 36px;
	}

	.m-logo__name {
		font-size: 19px;
	}
}

/* Top sections bar on narrow desktops (961–1439px): keep all 8 items on one line. */
@media (min-width: 961px) and (max-width: 1439px) {
	.m-sections__inner {
		gap: 12px;
	}

	.m-sections__list {
		gap: 2px;
	}

	.m-sections__list a {
		padding: 6px 9px;
		font-size: 13px;
	}

	.m-sections__phone {
		font-size: 14px;
	}
}

@media (min-width: 961px) and (max-width: 1100px) {
	.m-sections__list a {
		padding: 5px 6px;
		font-size: 12px;
	}

	.m-sections__phone {
		font-size: 13px;
	}
}

/* ---------- Accent layer (generated pages: services, hub, about, talks, contacts) ---------- */

.m-num {
	position: absolute;
	top: clamp(16px, 2vw, 24px);
	right: clamp(20px, 2.2vw, 30px);
	background: var(--m-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: clamp(30px, 2.8vw, 40px);
	font-weight: 600;
	line-height: 1;
}

.m-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: clamp(32px, 4vw, 56px);
}

.m-stat {
	padding: clamp(18px, 2vw, 26px);
	border-radius: var(--m-radius);
	background: var(--m-white);
}

.m-stat__num {
	background: var(--m-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: clamp(34px, 3.8vw, 54px);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.05;
}

.m-stat__text {
	margin-top: 10px;
	color: var(--m-ink);
	font-size: 16px;
	line-height: 1.35;
}

.m-card--dark {
	background: var(--m-dark);
	color: #fff;
}

.m-card--dark :is(h2, h3, p, li, .m-h3, .m-hero__aside-title) {
	color: #fff;
}

.m-card--dark a:not(.wp-block-button__link),
.m-includes.m-card--dark a,
.m-hero__aside.m-card--dark a {
	color: #8fb0ff;
}

.m-card--dark .m-h2 em,
.m-card--dark .m-h3 em {
	color: #8fb0ff;
}

.m-chip {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 20px;
	background: var(--m-field);
	color: var(--m-accent);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
}

.m-chip--dark {
	background: var(--m-dark);
	color: #fff;
}

/* Intro text next to a dark facts card. */

.m-about {
	align-items: center;
}

.m-about__text p {
	color: var(--m-ink);
	font-size: 18px;
	line-height: 1.5;
}

.m-about__text p + p {
	margin-top: 16px;
}

.m-about__text .m-about__lead {
	font-size: clamp(20px, 1.9vw, 24px);
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.m-card--dark .is-style-m-checks > li {
	font-size: 17px;
	line-height: 1.4;
}

.m-card--dark .is-style-m-checks:not(.m-list--cols-2) > li + li {
	margin-top: 0.75em;
}

/* Hero side card. */
.m-hero__aside.m-card--dark {
	box-shadow: 0 18px 44px rgba(20, 20, 40, 0.22);
}

.m-hero__aside .is-style-m-checks > li {
	font-size: 17px;
	line-height: 1.4;
}

/* Problem / principle cards. */
.m-pain {
	border: 1px solid transparent;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.m-pain:hover {
	transform: translateY(-3px);
	border-color: rgba(52, 92, 237, 0.25);
	box-shadow: 0 16px 40px rgba(37, 69, 235, 0.12);
}

.m-pain .m-h3 {
	font-size: clamp(20px, 1.8vw, 23px);
	font-weight: 600;
	line-height: 1.22;
	letter-spacing: -0.01em;
}

.m-pain p {
	color: var(--m-ink);
	font-size: 17px;
	line-height: 1.45;
}

.m-pain .m-num {
	position: static;
	color: transparent;
	display: inline-block;
	margin: 0 0 12px;
	font-size: clamp(30px, 2.6vw, 38px);
}

.m-card--blue.m-pain .is-style-m-dots > li::before {
	background: #fff;
}

/* "What's included" as a dark band. */
.m-includes.m-card--dark {
	padding: clamp(26px, 3.5vw, 48px);
}

.m-includes .m-list--cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 40px;
}

.m-includes.m-card--dark .is-style-m-checks > li {
	font-size: 17px;
	line-height: 1.4;
}

.m-includes__note {
	color: var(--m-ink);
	font-size: 16px;
}

/* Steps on generated pages. */
.m-stages--plain .m-stage__title {
	font-size: clamp(19px, 1.7vw, 22px);
	font-weight: 600;
}

.m-stages--plain .m-stage__note {
	color: var(--m-ink);
	font-size: 17px;
	line-height: 1.45;
}

/* Link cards. */
.m-link-card__title {
	font-size: clamp(18px, 1.6vw, 21px);
}

.m-link-card__text {
	color: var(--m-ink);
	font-size: 16px;
}

.m-link-card:hover {
	box-shadow: 0 16px 40px rgba(37, 69, 235, 0.14);
}

.m-quote__text {
	font-weight: 500;
}

@media (max-width: 960px) {
	.m-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.m-includes .m-list--cols-2 {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 600px) {
	.m-stat__text {
		font-size: 14px;
	}
}

/* ---------- Service tiles (/uslugi/) and contacts block (/o-nas/) ---------- */

.m-hero--simple {
	display: block;
}

.m-hero--simple .m-hero__content {
	max-width: 820px;
}

.m-head--row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
}

.m-head__link a {
	color: var(--m-accent);
	font-size: 17px;
	font-weight: 600;
	text-decoration: none;
}

.m-head__link a:hover {
	text-decoration: underline;
}

.m-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 230px;
	padding: clamp(22px, 2.4vw, 32px);
	border: 1px solid transparent;
	border-radius: var(--m-radius);
	background: var(--m-white);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.m-tile:hover {
	transform: translateY(-4px);
	border-color: rgba(52, 92, 237, 0.3);
	box-shadow: 0 18px 44px rgba(37, 69, 235, 0.16);
}

.m-tile__tag {
	align-self: flex-start;
	padding: 5px 12px;
	border-radius: 20px;
	background: var(--m-field);
	color: var(--m-accent);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
}

.m-tile__title {
	font-size: clamp(22px, 2vw, 27px);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -0.015em;
}

.m-tile__title a {
	color: var(--m-ink);
	text-decoration: none;
}

/* The heading link covers the whole tile. */
.m-tile__title a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.m-tile:focus-within {
	outline: 2px solid var(--m-accent);
	outline-offset: 2px;
}

.m-tile__text {
	color: var(--m-ink);
	font-size: 17px;
	line-height: 1.45;
}

.m-tile__more {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	margin-top: auto;
	padding: 10px 18px;
	border-radius: 30px;
	background: var(--m-grad);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	transition: gap 0.2s ease;
}

.m-tile__more::after {
	content: "→";
}

.m-tile:hover .m-tile__more {
	gap: 14px;
}

.m-tile--wide {
	min-height: 260px;
}

.m-tile.m-card--blue {
	background: var(--m-grad);
}

.m-tile.m-card--dark {
	background: var(--m-dark);
}

.m-tile.m-card--blue .m-tile__tag,
.m-tile.m-card--dark .m-tile__tag {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.m-tile.m-card--blue :is(.m-tile__title a, .m-tile__text),
.m-tile.m-card--dark :is(.m-tile__title a, .m-tile__text) {
	color: #fff;
}

.m-tile.m-card--blue .m-tile__more {
	background: #fff;
	color: var(--m-accent);
}

.m-tile.m-card--dark .m-tile__more {
	background: var(--m-grad);
}

/* Contacts block on the About page. */
.m-contacts {
	align-items: stretch;
}

.m-card--dark .m-contacts__phone a {
	color: #fff;
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 600;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.m-contacts__main .wp-block-list {
	margin-top: 18px;
}

.m-contacts__main li {
	font-size: 17px;
	line-height: 1.4;
}

.m-contacts__main .wp-block-buttons {
	margin-top: 24px;
}

.m-contacts__req p {
	color: var(--m-ink);
	font-size: 17px;
	line-height: 1.5;
}

.m-contacts__req .m-h3 {
	margin-bottom: 14px;
	font-size: clamp(20px, 1.8vw, 24px);
	font-weight: 600;
}

@media (max-width: 960px) {
	.m-tile {
		min-height: 0;
	}
}

/* ---------- Cases (/kejsy/): list tiles, screenshots, review, free-form content ---------- */

.m-tile--case {
	overflow: hidden;
	padding-top: 0;
}

.m-tile--case .m-tile__img {
	margin: 0 calc(-1 * clamp(22px, 2.4vw, 32px)) 8px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--m-field);
}

.m-tile--case .m-tile__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.m-tile--case:hover .m-tile__img img {
	transform: scale(1.03);
}

.m-shots {
	align-items: start;
}

.m-shot .m-shot__img {
	margin: 0;
	overflow: hidden;
	border: 1px solid #e3e2ee;
	border-radius: var(--m-radius-s);
	background: var(--m-white);
	box-shadow: 0 12px 30px rgba(20, 30, 80, 0.08);
}

.m-shot .m-shot__img img {
	display: block;
	width: 100%;
	height: auto;
}

.m-shot__caption {
	margin-top: 12px;
	color: var(--m-ink);
	font-size: 16px;
	line-height: 1.45;
}

.m-case-review {
	display: grid;
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.m-case-review .m-case-review__photo {
	margin: 0;
	overflow: hidden;
	border-radius: var(--m-radius);
}

.m-case-review .m-case-review__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.m-case-review__text {
	color: var(--m-ink);
	font-size: clamp(18px, 1.6vw, 21px);
	line-height: 1.5;
}

.m-case-review__author {
	margin-top: 14px !important;
	color: var(--m-accent);
	font-size: 16px;
	font-weight: 600;
}

.m-case-review .m-case-review__shot {
	margin: 22px 0 0;
	overflow: hidden;
	border: 1px solid #e3e2ee;
	border-radius: var(--m-radius-s);
}

.m-case-review .m-case-review__shot img {
	display: block;
	width: 100%;
	height: auto;
}

/* Content typed in the editor without theme sections: keep it inside the page column. */
.m-case__content > :not(.m-section):not(.alignfull) {
	max-width: calc(820px + 2 * var(--m-gutter));
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--m-gutter);
	padding-right: var(--m-gutter);
}

.m-case__content > :not(.m-section) + :not(.m-section) {
	margin-top: 18px;
}

.m-case__content > p,
.m-case__content > ul,
.m-case__content > ol,
.m-case__content .m-section > p:not([class]),
.m-case__content .m-section > ul:not(.is-style-m-checks) {
	color: var(--m-ink);
	font-size: 18px;
	line-height: 1.55;
}

.m-case__content > h2,
.m-case__content > .wp-block-heading {
	margin-top: 40px !important;
	font-size: clamp(26px, 2.6vw, 34px);
	font-weight: 500;
	line-height: 1.15;
}

.m-case__content .m-section > .wp-block-heading + * {
	margin-top: 22px;
}

.m-case__content .wp-block-image img {
	border-radius: var(--m-radius-s);
}

.m-case__content .wp-block-quote {
	padding: 24px 28px;
	border: 0;
	border-radius: var(--m-radius);
	background: var(--m-white);
	font-size: 19px;
	line-height: 1.5;
}

.m-case__back a {
	color: var(--m-accent);
	font-size: 17px;
	font-weight: 600;
	text-decoration: none;
}

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

	.m-case-review .m-case-review__photo {
		max-width: 260px;
	}
}

/* ---------- Accent layer for the pages moved from Tilda (/crm/, /bp/, /school/) ---------- */

/* Card hover shared with the new pages. */
.m-main :is(.m-benefit, .m-stage, .m-result, .m-get, .m-whom) {
	border: 1px solid transparent;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.m-main :is(.m-benefit, .m-result, .m-get):hover {
	transform: translateY(-3px);
	border-color: rgba(52, 92, 237, 0.25);
	box-shadow: 0 16px 40px rgba(37, 69, 235, 0.12);
}

/* Hero. */
.m-main .m-hero__subtitle {
	font-weight: 600;
}

/* "Who we are" card. */
.m-main .m-expert__name {
	font-weight: 600;
}

.m-main .m-expert__text,
.m-main .m-expert .is-style-m-checks > li {
	color: var(--m-ink);
	font-size: 17px;
	line-height: 1.5;
}

/* Stages and modules. */
.m-main .m-stage__title {
	font-size: clamp(19px, 1.7vw, 22px);
	font-weight: 600;
	line-height: 1.25;
}

.m-main .m-stage__label {
	font-weight: 600;
}

.m-main .m-stage .wp-block-list,
.m-main .m-stage__note {
	color: var(--m-ink);
	font-size: 17px;
	line-height: 1.45;
}

.m-main .m-stage__result {
	font-size: clamp(21px, 1.9vw, 25px);
}

/* Benefit cards ("Ваш бизнес будет управляем", "Ваша жизнь изменится"). */
.m-main .m-benefit {
	padding: 26px 24px 18px;
	color: var(--m-ink);
	font-size: 17px;
	line-height: 1.45;
}

.m-main .m-benefit__title {
	color: var(--m-accent);
	font-size: clamp(20px, 1.8vw, 23px);
	font-weight: 600;
	line-height: 1.2;
}

/* Icon features ("5 элементов", "5 поводов"). */
.m-main .m-feature__title {
	font-size: clamp(20px, 1.8vw, 23px);
	font-weight: 600;
}

.m-main .m-feature__text {
	color: var(--m-ink);
	font-size: 17px;
	line-height: 1.45;
}

/* CTA banner. */
.m-main .m-cta-banner__title {
	font-size: clamp(22px, 2.3vw, 30px);
	font-weight: 600;
	line-height: 1.15;
}

.m-main .m-cta-banner__text {
	color: var(--m-ink);
	line-height: 1.45;
}

/* Reviews. */
.m-main .m-review__excerpt,
.m-main .m-story__text {
	color: var(--m-ink);
	font-size: 17px;
	line-height: 1.45;
}

/* School: who it is for, results, bonuses, modules, tariffs. */
.m-main .m-whom__title {
	font-size: clamp(18px, 1.6vw, 21px);
	font-weight: 600;
	line-height: 1.2;
}

.m-main .m-result__num {
	width: auto;
	height: auto;
	border: 0;
	background: var(--m-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: clamp(32px, 3vw, 42px);
	line-height: 1;
}

.m-main .m-result__text {
	margin-top: 14px;
	color: var(--m-ink);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
}

.m-main .m-get__text {
	color: var(--m-ink);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
}

.m-main .m-module__text {
	color: var(--m-ink);
	font-size: 17px;
}

.m-main .m-tariff__format {
	font-weight: 600;
}

.m-main .m-tariff .is-style-m-checks > li {
	font-size: 17px;
	line-height: 1.4;
}

/* Short benefit cards: title first, one line of text under it. */
.m-main .m-benefit--short {
	flex-direction: column-reverse;
	justify-content: flex-end;
	gap: 10px;
	min-height: 0;
	padding-bottom: 24px;
}

.m-main .m-benefit--short .m-benefit__title {
	margin-top: 0;
}

/* ---------- Conversion helpers ---------- */

/* Why the submit button is inactive: shown until the consent box is ticked. */
.m-form__submit:disabled ~ .m-form__status:empty {
	display: block;
}

.m-form__submit:disabled ~ .m-form__status:empty::before {
	content: "Отметьте согласие выше, чтобы отправить заявку";
	color: var(--m-muted);
}

.m-footer__social {
	display: flex;
	gap: 10px;
	margin-left: 16px;
}

.m-footer__social .m-footer__tg {
	margin-left: 0;
}

@media (max-width: 1100px) {
	.m-footer__social {
		margin-left: 0;
	}
}

/* Sticky call / Telegram / request bar on phones and tablets. */
.m-mobilebar {
	display: none;
}

@media (max-width: 960px) {
	.m-mobilebar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 900;
		display: grid;
		grid-template-columns: 1fr 1fr 1.2fr;
		gap: 8px;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, 0.96);
		box-shadow: 0 -6px 20px rgba(20, 30, 80, 0.12);
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
	}

	.m-mobilebar__btn {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 44px;
		border-radius: 12px;
		background: var(--m-field);
		color: var(--m-ink);
		font-size: 15px;
		font-weight: 600;
		text-decoration: none;
	}

	.m-mobilebar__btn--main {
		background: var(--m-grad);
		color: #fff;
	}

	body {
		padding-bottom: calc(64px + env(safe-area-inset-bottom));
	}

	.m-locked .m-mobilebar {
		display: none;
	}
}

/* Footer top as a grid: brand | company | phone over e-mail | social icons. */
@media (min-width: 1101px) {
	.m-footer__top {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto auto;
		grid-template-areas:
			"brand company phone social"
			"brand company mail social";
		column-gap: 40px;
		row-gap: 10px;
	}

	.m-footer__brand { grid-area: brand; }
	.m-footer__company { grid-area: company; margin-right: 0; }
	.m-footer__contact--phone { grid-area: phone; }
	.m-footer__contact--mail { grid-area: mail; margin-left: 0 !important; }
	.m-footer__social { grid-area: social; margin-left: 0; }
}

/* ---------- Blog (/blog/): topic filter, article tiles, reading column ---------- */

.m-topics {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 28px;
}

.m-topics a {
	padding: 9px 18px;
	border: 1px solid rgba(52, 92, 237, 0.25);
	border-radius: 30px;
	background: var(--m-white);
	color: var(--m-ink);
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.m-topics a:hover {
	border-color: var(--m-accent);
	color: var(--m-accent);
}

.m-topics a[aria-current] {
	border-color: transparent;
	background: var(--m-grad);
	color: #fff;
}

.m-tile--post {
	min-height: 0;
}

.m-tile--post .m-tile__img {
	margin: calc(-1 * clamp(22px, 2.4vw, 32px)) calc(-1 * clamp(22px, 2.4vw, 32px)) 8px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--m-radius) var(--m-radius) 0 0;
	background: var(--m-field);
}

.m-tile--post .m-tile__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.m-tile--post .m-tile__title {
	font-size: clamp(20px, 1.7vw, 23px);
}

.m-tile--post .m-tile__text {
	font-size: 16px;
}

.m-tile__meta {
	margin-top: auto !important;
	color: var(--m-muted);
	font-size: 14px;
}

.m-pager .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}

.m-pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border-radius: 22px;
	background: var(--m-white);
	color: var(--m-ink);
	font-weight: 600;
	text-decoration: none;
}

.m-pager .page-numbers.current {
	background: var(--m-grad);
	color: #fff;
}

/* One article: everything sits in a 760px reading column. */
.m-post__head,
.m-post__body,
.m-post__foot {
	max-width: calc(760px + 2 * var(--m-gutter));
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--m-gutter);
	padding-right: var(--m-gutter);
}

.m-post__head .m-crumbs {
	margin-bottom: 18px;
}

.m-post__title {
	font-size: clamp(30px, 3.6vw, 46px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.m-post__meta {
	margin-top: 16px !important;
	color: var(--m-muted);
	font-size: 15px;
}

.m-post__lead {
	margin-top: 22px !important;
	color: var(--m-dark);
	font-size: clamp(19px, 1.7vw, 22px);
	line-height: 1.5;
}

.m-post__cover {
	margin: 32px 0 0;
	overflow: hidden;
	border-radius: var(--m-radius);
}

.m-post__cover img {
	display: block;
	width: 100%;
	height: auto;
}

.m-post__body {
	margin-top: 36px;
	color: var(--m-ink);
	font-size: 18px;
	line-height: 1.65;
}

.m-post__body > * + * {
	margin-top: 1em;
}

.m-post__body h2 {
	margin-top: 1.9em !important;
	color: var(--m-dark);
	font-size: clamp(25px, 2.4vw, 32px);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

.m-post__body h3 {
	margin-top: 1.5em !important;
	color: var(--m-dark);
	font-size: clamp(20px, 1.8vw, 23px);
	font-weight: 600;
	line-height: 1.3;
}

.m-post__body h2 + *,
.m-post__body h3 + * {
	margin-top: 0.6em;
}

.m-post__body :is(ul, ol):not(.is-style-m-checks) {
	padding-left: 1.3em;
}

.m-post__body li + li {
	margin-top: 0.4em;
}

.m-post__body a {
	color: var(--m-accent);
	text-underline-offset: 3px;
}

.m-post__body strong {
	color: var(--m-dark);
	font-weight: 600;
}

.m-post__body .wp-block-quote {
	margin-left: 0;
	margin-right: 0;
	padding: 22px 26px;
	border: 0;
	border-left: 4px solid var(--m-accent);
	border-radius: 0 var(--m-radius-s) var(--m-radius-s) 0;
	background: var(--m-white);
	font-size: 19px;
}

/* Key idea / tip box: a group with the "m-note" class. */
.m-post__body .m-note {
	padding: 22px 26px;
	border-radius: var(--m-radius-s);
	background: var(--m-field);
}

.m-post__body .m-note > * + * {
	margin-top: 0.6em;
}

.m-post__body .wp-block-table {
	overflow-x: auto;
}

.m-post__body .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	background: var(--m-white);
	font-size: 16px;
	line-height: 1.45;
}

.m-post__body .wp-block-table :is(th, td) {
	padding: 12px 14px;
	border: 1px solid #e3e2ee;
	text-align: left;
	vertical-align: top;
}

.m-post__body .wp-block-table th {
	background: var(--m-field);
	color: var(--m-dark);
	font-weight: 600;
}

.m-post__body .wp-block-image img {
	border-radius: var(--m-radius-s);
}

.m-post__body .wp-block-details.is-style-m-faq {
	font-size: 17px;
}

.m-post__body .wp-block-details.is-style-m-faq + .wp-block-details {
	margin-top: 12px;
}

.m-post__body .is-style-m-faq > :not(summary):last-child {
	padding-bottom: 22px;
}

.m-post__foot {
	display: grid;
	gap: 24px;
}

.m-post__author {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	padding: 22px 24px;
	border-radius: var(--m-radius);
	background: var(--m-white);
}

.m-post__author img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
}

.m-post__author-name a {
	color: var(--m-dark);
	font-size: 19px;
	font-weight: 600;
	text-decoration: none;
}

.m-post__author-role {
	margin-top: 4px !important;
	color: var(--m-muted);
	font-size: 15px;
	line-height: 1.4;
}

.m-post__author-tg {
	padding: 10px 18px;
	border-radius: 30px;
	background: var(--m-field);
	color: var(--m-accent);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.m-post__cta {
	padding: clamp(26px, 3vw, 40px);
}

.m-post__cta-title {
	color: #fff;
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 500;
	line-height: 1.2;
}

.m-post__cta-text {
	margin-top: 10px !important;
	color: #fff;
	font-size: 17px;
}

.m-post__cta .wp-block-buttons {
	margin-top: 22px;
}

@media (max-width: 960px) {
	.m-tiles.m-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.m-tiles.m-grid--3 {
		grid-template-columns: minmax(0, 1fr);
	}

	.m-post__body {
		font-size: 17px;
	}

	.m-post__author {
		grid-template-columns: 56px minmax(0, 1fr);
	}

	.m-post__author img {
		width: 56px;
		height: 56px;
	}

	.m-post__author-tg {
		grid-column: 1 / -1;
		justify-self: start;
	}
}

/* Talks page: recent events. */
.m-event {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.m-event .m-tile__tag {
	align-self: flex-start;
}

.m-event p:not(.m-tile__tag) {
	color: var(--m-ink);
	font-size: 17px;
	line-height: 1.5;
}

/* ---------- Визуальные концепции: рисунки-модели (скилл visual-concepts) ---------- */

/* Фон картинки совпадает с фоном сайта (--m-bg), поэтому без карточки: схема «нарисована на странице». */
.m-concept {
	margin: 0;
	padding: 0;
}

.m-concept picture,
.m-concept img {
	display: block;
	width: 100%;
	height: auto;
}

.m-concept img {
	max-width: 1160px;
	margin: 0 auto;
}

/* Пирамида и формулы на всю ширину выглядят слишком крупно. */
.m-concept--narrow img {
	max-width: 1040px;
}

/* Ссылка на форму заявки под схемой. */
.m-concept__cta {
	margin: 24px 0 0;
	text-align: center;
	font-size: 18px;
	font-weight: 600;
}

.m-concept__cta a {
	color: var(--m-accent);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

.m-concept__cta a:hover {
	color: var(--m-accent-2);
}
