/* =========================================================
   Главная — повторяет Zero-блоки copyspace.online (Tilda).
   Размеры взяты из макета при ширине 1440px: сетка 1440, поля 20px,
   рабочая ширина 1400px. Для «сцен» с абсолютной раскладкой
   используется единица --u = 1px при 1440 и меньше на узких экранах.
   ========================================================= */

:root { --u: min(1px, calc((100vw - 40px) / 1400)); }

.tl {
	position: relative;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 20px;
}

.h-title {
	position: relative; z-index: 1;
	margin: 0;
	font-size: 44px; line-height: 48px; font-weight: 500; letter-spacing: 0;
	color: #121212;
}
.h-title--center { text-align: center; }

.blob { position: absolute; border-radius: 50%; filter: blur(28px); pointer-events: none; z-index: 0; }

.h-card {
	background: #fff; border-radius: 24px;
	box-shadow: 4px 4px 10px rgba(41, 31, 71, .1);
}

.h-arrow { width: 34px; height: 34px; flex: none; }

/* Простые кнопки */
.h-btn {
	display: inline-flex; align-items: center; justify-content: center;
	height: 55px; padding: 0 20px; border-radius: 30px;
	border: 1px solid transparent; background: transparent;
	font: 400 14px/1.55 var(--font); white-space: nowrap;
	transition: background-color .2s ease-in-out, color .2s ease-in-out, border-color .2s ease-in-out;
}
.h-btn--pink { width: 200px; background: #ff5cce; color: #fff; }
.h-btn--pink:hover { background: #da8ce7; color: #fff; }
.h-btn--outline { width: 249px; border-color: #ff5cce; color: #ff5cce; }
.h-btn--outline:hover { background: #ff5cce; color: #fff; }
.h-btn--white { width: 249px; background: #fff; color: #020014; }
.h-btn--white:hover { background: #da8ce7; color: #fff; }

/* Анимации появления (как у Tilda: zoomin .9 → 1, fadeinup 100px, 1 с) */
.anim-zoomin,
.anim-fadeinup { transition: opacity 1s ease, transform 1s ease; }
.js .anim-zoomin:not(.is-in) { opacity: 0; transform: scale(.9); }
.js .anim-fadeinup:not(.is-in) { opacity: 0; transform: translateY(100px); }

/* Горизонтальная прокрутка (команда, партнёры) */
.h-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.h-scroll > .tl > * { scroll-snap-align: start; }
.h-scroll > .tl {
	display: flex; width: max-content; max-width: none; margin: 0;
	padding-left: max(20px, calc((100vw - 1400px) / 2));
	padding-right: 20px;
}

/* 1. Первый экран ------------------------------------------ */
.h-hero { position: relative; overflow: hidden; background: var(--bg); }
.h-hero__bg {
	position: absolute; top: 0; left: 50%;
	width: calc(1640 * var(--u)); height: calc(900 * var(--u));
	transform: translateX(-50%);
	border-radius: 50px;
	background: #7a3a9a url("../img/home/hero-bg.webp") center / cover no-repeat;
}
.h-hero__stage { height: calc(901 * var(--u)); }
.h-hero__stage > * { position: absolute; margin: 0; }
.h-hero__cat { left: calc(271 * var(--u) + 20px); top: calc(37 * var(--u)); width: calc(859 * var(--u)); height: auto; }
.h-hero__lead {
	left: calc(20 * var(--u) + 20px); top: calc(436 * var(--u)); width: 384px;
	font-size: 20px; line-height: 31px; font-weight: 500; letter-spacing: -.7px; color: #fff;
}
.h-hero__eyebrow {
	left: calc(1164 * var(--u) + 20px); top: calc(360 * var(--u));
	font-size: 15px; line-height: 17px; font-weight: 500; letter-spacing: .3px; text-transform: uppercase; color: #fff;
}
.h-hero__photo { left: calc(1164 * var(--u) + 20px); top: calc(390 * var(--u)); width: calc(220 * var(--u)); height: auto; }
.h-hero__title {
	left: calc(455 * var(--u) + 20px); top: calc(569 * var(--u)); width: calc(490 * var(--u));
	font-size: 20px; line-height: 30px; font-weight: 500; letter-spacing: -.7px; text-align: center; color: #fff;
	white-space: nowrap;
}
.h-hero__title { display: flex; justify-content: center; }
.h-hero__wordmark { left: calc(250 * var(--u) + 20px); top: calc(592 * var(--u)); width: calc(900 * var(--u)); height: auto; }
.h-hero__cta { left: calc(560 * var(--u) + 20px); top: calc(760 * var(--u)); }
.h-hero__planet { left: calc(1410 * var(--u) + 20px); top: calc(808 * var(--u)); width: 87px; height: 86px; }

/* 2. Почему стоит выбрать ---------------------------------- */
.h-adv { position: relative; padding-top: 150px; }
.h-adv__title { position: relative; width: 530px; margin-bottom: 4px; }
.h-adv__underline { position: absolute; left: 0; top: 69px; z-index: -1; width: 261px; height: 31px; pointer-events: none; }
.h-adv__body { padding-top: 60px; }
.h-adv__blob { left: -40px; top: -50px; width: 573px; height: 575px; background: rgba(247, 230, 250, .5); }
.h-adv__planet { position: absolute; left: 1340px; top: 398px; width: 714px; max-width: none; height: auto; opacity: .6; pointer-events: none; }
.h-adv__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.h-adv__card { display: flex; flex-direction: column; gap: 20px; height: 590px; padding: 30px; overflow: hidden; }
.h-adv__card.is-flip .h-adv__img { order: 3; }
.h-adv__card-title { margin: 0; font-size: 16px; line-height: 20px; font-weight: 500; letter-spacing: 0; color: #2b2626; }
.h-adv__card:nth-child(1) .h-adv__card-title { max-width: 334px; margin-left: 23px; }
.h-adv__card:nth-child(2) .h-adv__card-title { max-width: 285px; }
.h-adv__img { width: 100%; height: 330px; object-fit: cover; border-radius: 25px; }
.h-adv__text { margin: 0; font-size: 16px; line-height: 20px; color: #2b2626; }

/* 3. Кейсы ------------------------------------------------- */

/* 4. Услуги ------------------------------------------------ */
.h-srv { position: relative; }
.h-srv__head { padding-top: 150px; }
.h-srv__planet { position: absolute; left: -378px; top: -156px; width: 658px; max-width: none; height: auto; pointer-events: none; }
.h-srv__head .h-title { position: relative; }
.h-srv__row { display: flex; align-items: center; gap: 40px; margin-top: 60px; height: 370px; }
.h-srv__img { flex: none; width: 560px; height: 370px; object-fit: cover; border-radius: 24px; background: #fff; }
.h-srv__content { width: 681px; }
.h-srv__row.is-reverse { flex-direction: row-reverse; justify-content: flex-end; gap: 1px; height: 430px; }
.h-srv__row.is-reverse .h-srv__img { width: 680px; height: 430px; margin-right: -2px; }
.h-srv__row.is-reverse .h-srv__content { margin-left: 40px; }
.h-srv__title { margin: 0; font-size: 27px; line-height: 35px; font-weight: 500; letter-spacing: -1.2px; color: #121212; }
.h-srv__price { margin: 5px 0 0; font-size: 16px; line-height: 21px; letter-spacing: -.4px; color: #5537b8; }
.h-srv__list { margin: 20px 0 0; padding-left: 24px; font-size: 16px; line-height: 21px; color: #4f4f4f; }
.h-srv__actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 40px; }

/* 5. Дизайн и другие направления --------------------------- */

/* 6. Команда ----------------------------------------------- */
.h-team { position: relative; padding-top: 150px; }
.h-team__blob { left: 118px; top: -80px; width: 531px; height: 406px; background: #fdf5ff; }
.h-team__title { position: relative; max-width: 748px; letter-spacing: -1.8px; font-size: 42px; }
.h-team__lead { position: relative; max-width: 796px; margin: 20px 0 0; font-size: 16px; line-height: 20px; color: #2b2626; }
.h-team .h-scroll { margin-top: 66px; }
.h-team__row { gap: 40px; padding-bottom: 10px; }
.h-member { position: relative; flex: none; display: flex; flex-direction: column; width: 320px; height: 380px; padding: 20px; }
.h-member--boss { justify-content: space-between; }
.h-member__top { display: flex; justify-content: space-between; align-items: flex-start; }
.h-member__boss-photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; object-position: 0 20.7%; }
.h-member__boss-name { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 20px; line-height: 20px; font-weight: 500; letter-spacing: -.6px; color: #121212; }
.h-member__boss-role { width: 197px; margin: 12px 0 0; font-size: 16px; line-height: 18px; letter-spacing: -.5px; color: #da8ce6; }
.h-member__head { display: flex; align-items: center; gap: 12px; }
.h-member__photo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.h-member__name { margin: 0; font-size: 16px; line-height: 16px; font-weight: 500; letter-spacing: -.6px; color: #121212; }
.h-member__role { margin: 4px 0 0; font-size: 16px; line-height: 16px; letter-spacing: -1.5px; color: #5537b8; }
.h-member__text { margin: 12px 0 0; font-size: 14px; line-height: 18px; font-weight: 300; letter-spacing: -.5px; color: #4f4f4f; }
.h-member__head + .h-member__text { margin-top: 40px; }
.h-member__badge { position: absolute; right: 20px; bottom: 20px; width: 34px; height: 34px; border-radius: 50%; background: #fff; }

/* 7. Партнёры ---------------------------------------------- */

/* 8. Слайдер акций ----------------------------------------- */
.h-promo { padding-top: 30px; }
.h-promo__slider { position: relative; height: 700px; border-radius: 24px; overflow: hidden; background: #1c1523; touch-action: pan-y; }
.h-promo__slide {
	position: absolute; inset: 0; padding: 50px;
	background: center / cover no-repeat;
	opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s linear 1s;
	user-select: none;
}
.h-promo__slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.h-promo__content { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; height: 100%; }
.h-promo__slide--video .h-promo__content,
.h-promo__slide--target .h-promo__content { justify-content: flex-end; }
.h-promo__title { margin: 0; font: 500 56px/70px "CodeNext", Arial, sans-serif; letter-spacing: 0; color: #fff; }
.h-promo__text { display: flex; flex-direction: column; gap: 12px; max-width: 673px; font-size: 20px; line-height: 24px; color: #fff; opacity: .8; }
.h-promo__text p,
.h-promo__text ul { margin: 0; }
.h-promo__text ul { padding-left: 30px; }
.h-promo__slide--target .h-promo__title { color: #020014; }
.h-promo__slide--target .h-promo__text { color: #000; }
.h-promo__nav { display: flex; justify-content: space-between; align-items: center; height: 35px; margin-top: 20px; }
.h-promo__dots { display: flex; gap: 10px; }
.h-promo__dot {
	width: 20px; height: 20px; padding: 0; border: 3px solid #cdcdcd; border-radius: 30px; background: transparent;
	transition: width .3s ease, background-color .3s ease, border-color .3s ease;
}
.h-promo__dot.is-active { width: 40px; background: #da8ce7; border-color: #da8ce7; }
.h-promo__arrows { display: flex; gap: 11px; }
.h-promo__arrow { position: relative; width: 35px; height: 35px; padding: 0; border: 0; border-radius: 50%; background: #da8ce7; transition: opacity .2s ease; }
.h-promo__arrow::before {
	content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px;
	border-top: 2px solid #fff; border-right: 2px solid #fff;
	transform: translate(-65%, -50%) rotate(45deg);
}
.h-promo__arrow--prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.h-promo__arrow:disabled { opacity: .4; }

/* 9. Статьи ------------------------------------------------ */
.h-posts { position: relative; padding-top: 150px; }
.h-posts__title { max-width: 502px; }
.h-posts__body { padding-top: 60px; }
.h-posts__blob { border-radius: 100px; }
.h-posts__blob--1 { left: 343px; top: -96px; width: 303px; height: 304px; background: #f2edff; }
.h-posts__blob--2 { left: 983px; top: 85px; width: 531px; height: 406px; background: #f2faff; }
.h-posts__blob--3 { left: -4px; top: 293px; width: 303px; height: 304px; background: #f7e6fa; }
.h-posts__blob--4 { left: 355px; top: 367px; width: 320px; height: 341px; background: #fdf5ff; }
.h-posts__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.h-post { display: flex; flex-direction: column; height: 500px; overflow: hidden; }
.h-post__media { display: block; overflow: hidden; border-radius: 24px 24px 0 0; }
.h-post__title a { color: inherit; }
.h-post__title a:hover { color: #ff5cce; }
.h-post__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.h-post__img { transition: transform .5s ease; }
.h-post:hover .h-post__img { transform: scale(1.04); }
.h-post__img { width: 100%; height: 300px; object-fit: cover; border-radius: 24px 24px 0 0; }
.h-post__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 12px 30px 30px; }
.h-post__title { margin: 0; font-size: 16px; line-height: 20px; font-weight: 600; letter-spacing: 0; color: #2b2626; }
.h-post__text { margin: 12px 0 0; font-size: 16px; line-height: 20px; color: #2b2626; }
.h-post__more {
	display: inline-flex; align-items: center; gap: 4px; margin-top: auto;
	font-size: 16px; line-height: 24.8px; font-weight: 600; color: #5537b8;
}
.h-post__more::after {
	content: ""; width: 20px; height: 20px; background: currentColor;
	-webkit-mask: url("../img/home/arw-upright.svg") center / contain no-repeat;
	mask: url("../img/home/arw-upright.svg") center / contain no-repeat;
}
.h-post__more:hover { color: #ff5cce; }
.h-posts__all { display: flex; justify-content: center; padding-top: 60px; }

/* 10. Отзывы ----------------------------------------------- */

/* 11. Вебинары --------------------------------------------- */
.h-webinars { position: relative; padding-top: 150px; }
.h-webinars__head { display: flex; justify-content: space-between; align-items: flex-start; min-height: 73px; }
.h-webinars__title { position: relative; width: 473px; }
.h-webinars__underline { position: absolute; left: 207px; top: 0; width: 233px; height: 52px; object-fit: contain; pointer-events: none; }
.h-webinars__tags { width: 482px; margin: 10px -2px 0 0; font-size: 16px; line-height: 21px; color: #4f4f4f; }
.h-webinars__body { padding-top: 60px; padding-bottom: 8px; }
.h-webinars__planet { position: absolute; left: -532px; top: -313px; width: 612px; max-width: none; height: auto; pointer-events: none; }
.h-webinars__glow { position: absolute; left: 503px; top: 61px; width: 1011px; max-width: none; height: auto; pointer-events: none; z-index: 0; }
.h-webinars__grid {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: 682fr 317fr 317fr; grid-template-rows: 260px 312px;
	column-gap: 42px; row-gap: 20px;
}
.h-web { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: 24px; overflow: hidden; color: #121212; }
.h-web:hover { color: #121212; }
.h-web--ai { grid-column: 1; grid-row: 1 / span 2; justify-content: flex-end; background: #2a1150 center / cover no-repeat; color: #fff; }
.h-web--ai:hover { color: #fff; }
.h-web__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.h-web__title { display: block; font-size: 24px; line-height: 24px; font-weight: 500; }
.h-web__text { display: block; max-width: 372px; margin-top: 12px; font-size: 14px; line-height: 18px; font-weight: 500; }
.h-web--topics { grid-column: 2; grid-row: 1 / span 2; justify-content: space-between; }
.h-web__topics { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.h-web__topic { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; line-height: 21.7px; font-weight: 500; transition: color .2s ease; }
.h-web__topic img { width: 14px; height: 14px; }
.h-web__topic { color: #121212; }
.h-web__note:hover { color: #ff5cce; }
.h-web__topic:hover { color: #da8ce7; }
.h-web__note { display: block; max-width: 257px; font-size: 16px; line-height: 22px; color: #4f4f4f; }
.h-web--smm { grid-column: 3; grid-row: 1; gap: 4px; }
.h-web__label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 21.7px; font-weight: 500; }
.h-web__arrow { position: absolute; right: 30px; bottom: 30px; }
.h-web--mts { grid-column: 3; grid-row: 2; background: #2a1150 center / cover no-repeat; }
.h-web__chip {
	position: absolute; top: 30px; right: 30px;
	display: inline-flex; align-items: center; justify-content: center; width: 107px; height: 32px;
	border: 1px solid #fff; border-radius: 30px; font-size: 14px; font-weight: 500; color: #fff;
}

/* Первый экран: соцсети рядом с кнопкой есть только на телефоне */
.h-hero__socials { display: none; }

/* =========================================================
   Адаптив. Tilda держит отдельные раскладки на 1200, 960 и 380.
   1200–1439 — десктоп с гибкими колонками; 640–1199 — раскладка 960;
   до 639 — раскладка 380 (версия Tilda на 640 сломана, её не повторяем).
   ========================================================= */

@media (max-width: 1439px) {
	.h-srv__img { flex: 0 1 560px; min-width: 0; }
	.h-srv__content { flex: 1; min-width: 0; width: auto; }
	.h-srv__row.is-reverse .h-srv__img { flex: 0 1 680px; width: auto; }
	
	
	.h-webinars__tags { width: auto; max-width: 482px; }
	.h-promo__title { font-size: clamp(40px, 4vw, 56px); }
}

/* --- 1200–1439: отдельная сетка Tilda 1200 (контент 1160, без масштабирования) --- */
@media (min-width: 1200px) and (max-width: 1439px) {
	:root { --u: 1px; }
	.tl { max-width: 1200px; }
	.h-scroll > .tl { padding-left: calc((100vw - 1160px) / 2); }

	.h-hero__bg { width: 1400px; height: 740px; }
	.h-hero__stage { height: 741px; }
	.h-hero__cat { left: 258px; top: 51px; width: 685px; }
	.h-hero__eyebrow { left: 984px; top: 234px; }
	.h-hero__photo { left: 984px; top: 264px; width: 220px; }
	.h-hero__lead { left: 20px; top: 340px; width: 316px; font-size: 16px; line-height: 25px; }
	.h-hero__title { left: 355px; top: 569px; width: 490px; }
	.h-hero__wordmark { left: 150px; top: 442px; width: 900px; }
	.h-hero__cta { left: 465px; top: 640px; }
	.h-hero__cta .pill { width: 270px; }
	.h-hero__planet { left: 1203px; top: 654px; height: 83px; }

	.h-adv__card { height: 560px; padding: 30px 20px; }
	.h-adv__card:nth-child(1) .h-adv__card-title { max-width: none; margin-left: 0; }
	.h-adv__card:nth-child(2) .h-adv__card-title { max-width: none; }
	.h-adv__card:nth-child(1) .h-adv__img { height: 270px; }
	.h-adv__card:nth-child(3) .h-adv__img { height: 280px; }
	.h-adv__planet { left: 1020px; top: 240px; }

	
	
	

	.h-srv__row.is-reverse { gap: 40px; }
	.h-srv__row.is-reverse .h-srv__content { margin-left: 0; }
	.h-srv__row.is-reverse .h-srv__img { flex: 0 0 560px; width: 560px; margin-right: 0; }

	
	
	
	
	
	
	
	
	

	.h-team__row { gap: 30px; }
	.h-member { width: 300px; }
	

	.h-promo__slider { height: 600px; }
	.h-promo__text { font-size: 16px; line-height: 19px; }
	.h-promo__title { font-size: 56px; }

	.h-post { height: 430px; }
	.h-post__img { height: 240px; }

	
	
	

	.h-webinars__body { padding-bottom: 0; }
	.h-webinars__grid { grid-template-columns: 560fr 260fr 260fr; grid-template-rows: 260px 260px; column-gap: 40px; }
	.h-webinars__planet { left: -356px; top: -164px; width: 436px; }
	.h-webinars__glow { left: 503px; width: 807px; }
	.h-web__title { max-width: 456px; }
	.h-web__note { max-width: 200px; }
}

/* --- Планшет (раскладка Tilda 960) ------------------------ */
@media (max-width: 1199px) {
	.h-adv__grid,
.h-posts__grid { grid-template-columns: repeat(2, 1fr); }
	.h-adv__card:nth-child(3),
.h-post:nth-child(3) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 20px); }
	.h-adv__card { height: auto; }
	.h-adv__card:nth-child(1) .h-adv__card-title { margin-left: 0; }

	
	
	
	
	
	
	

	.h-srv__row { height: auto; }
	.h-srv__row.is-reverse { flex-direction: column; align-items: center; gap: 20px; height: auto; }
	.h-srv__row.is-reverse .h-srv__img { flex: none; width: min(560px, 100%); height: auto; aspect-ratio: 680 / 430; margin: 0; }
	.h-srv__row.is-reverse .h-srv__content { flex: none; width: min(480px, 100%); margin: 0; }

	
	
	
	
	
	
	
	

	.h-webinars__head { flex-direction: column; min-height: 0; }
	.h-webinars__tags { margin: 20px 0 0; }
	.h-webinars__grid { grid-template-columns: minmax(0, 1fr) 1fr; grid-template-rows: 370px 370px; gap: 20px; }
	.h-web--ai { grid-column: 1; grid-row: 1; }
	.h-web--topics { grid-column: 2; grid-row: 1; }
	.h-web--smm { grid-column: 1; grid-row: 2; }
	.h-web--mts { grid-column: 2; grid-row: 2; }

	
}

/* --- 960–1199: сетка Tilda 960 (контент 940, поля 10px) ------------------ */
@media (min-width: 960px) and (max-width: 1199px) {
	:root { --u: 1px; }
	.tl { max-width: 960px; padding-left: 10px; padding-right: 10px; }
	.h-scroll > .tl { padding-left: calc((100vw - 940px) / 2); }

	.h-hero__bg { width: 960px; height: 740px; }
	.h-hero__stage { height: 741px; }
	.h-hero__cat { left: 138px; top: 51px; width: 685px; }
	.h-hero__eyebrow { display: block; left: 724px; top: 204px; }
	.h-hero__photo { display: block; left: 724px; top: 234px; width: 220px; }
	.h-hero__lead { left: 20px; top: 310px; width: 316px; font-size: 16px; line-height: 25px; }
	.h-hero__wordmark { left: 190px; top: 452px; width: 640px; }
	.h-hero__title { left: 235px; top: 549px; width: 490px; }
	.h-hero__cta { left: 345px; top: 620px; }
	.h-hero__cta .pill { width: 270px; font-size: 16px; }
	.h-hero__planet { display: none; }

	.h-adv__grid,
.h-posts__grid { grid-template-columns: repeat(2, 360px); justify-content: center; }
	.h-adv__card:nth-child(3),
.h-post:nth-child(3) { width: 360px; }
	.h-adv__card { height: 560px; padding: 30px 20px; }
	.h-adv__card:nth-child(2) .h-adv__card-title { max-width: none; }
	.h-post { height: 430px; }
	.h-post__img { height: 240px; }

	

	.h-srv__row:not(.is-reverse) { align-items: flex-start; gap: 20px; height: 370px; }
	.h-srv__row:not(.is-reverse) .h-srv__content { padding-top: 3px; }
	.h-srv__actions { flex-wrap: nowrap; }
	.h-promo__title { font-size: 56px; }
	.h-srv__row:not(.is-reverse) .h-srv__img { flex: 0 0 460px; }
	.h-srv__row.is-reverse { gap: 30px; }
	.h-srv__row.is-reverse .h-srv__img { width: 560px; height: 430px; aspect-ratio: auto; }
	.h-srv__row.is-reverse .h-srv__content { width: 470px; }

	
	
	
	
	
	
	
	

	.h-team__row { gap: 20px; }
	.h-member { width: 300px; }

	.h-promo { padding-bottom: 23px; }
	.h-promo__slider { height: 520px; }
	.h-posts__title { max-width: 683px; }
	.h-promo__slide { padding: 40px; }
	.h-promo__text { font-size: 16px; line-height: 19px; }

	.h-webinars__tags { margin-top: 22px; }
	.h-webinars__grid { grid-template-columns: 540fr 380fr; grid-template-rows: 380px 370px; }
	.h-web__title { font-size: 24px; }
	.h-web--smm .h-web__note { max-width: 480px; }
}

@media (max-width: 959px) {
	.h-hero__eyebrow,
.h-hero__photo { display: none; }
	.h-srv__row:not(.is-reverse) { flex-direction: column; align-items: stretch; gap: 20px; }
	.h-srv__row:not(.is-reverse) .h-srv__img { flex: none; width: 100%; height: auto; aspect-ratio: 560 / 370; }
	
	
	
}

/* --- Телефон (раскладка Tilda 380) ------------------------ */
@media (max-width: 639px) {
	:root { --m: min(1px, calc((100vw - 10px) / 380)); }
	.tl { padding: 0 15px; }
	.h-title { font-size: 34px; line-height: 37px; }

	/* Первый экран */
	.h-hero__stage { width: calc(380 * var(--m)); height: calc(687 * var(--m)); padding: 0; }
	.h-hero__bg { width: calc(380 * var(--m)); height: calc(580 * var(--m)); border-radius: 30px; }
	.h-hero__planet { display: none; }
	.h-hero__wordmark { left: calc(15 * var(--m)); top: calc(22 * var(--m)); width: calc(350 * var(--m)); }
	.h-hero__title { left: calc(20 * var(--m)); top: calc(83 * var(--m)); width: calc(340 * var(--m)); font-size: 16px; line-height: 24px; white-space: normal; }
	.h-hero__lead { left: calc(32 * var(--m)); top: calc(177 * var(--m)); width: calc(316 * var(--m)); font-size: 16px; line-height: 25px; text-align: center; }
	.h-hero__cat { left: calc(20 * var(--m)); top: calc(238 * var(--m)); width: calc(340 * var(--m)); }
	.h-hero__cta { left: 0; top: calc(610 * var(--m)); }
	/* Ширина с запасом под ряд иконок справа. */
	.h-hero__cta .pill { width: min(calc(280 * var(--m)), calc(100vw - 118px)); height: calc(76 * var(--m)); border-radius: 100px; font-size: 16px; gap: 10px; padding: 0 8px 0 18px; justify-content: space-between; }
	.h-hero__cta .pill__icon { width: 50px; height: 50px; }
	.h-hero__socials {
		/* Привязаны к правому краю: на узких экранах ряд иконок выходил за пределы. */
		display: grid; grid-template-columns: repeat(2, 34px); gap: 8px;
		left: auto; right: calc(20 * var(--m)); top: calc(610 * var(--m));
	}
	.h-hero__socials a,
.h-hero__socials img { width: 34px; height: 34px; }

	/* Почему стоит выбрать */
	.h-adv { padding-top: 75px; }
	.h-adv__title { width: auto; font-size: 31px; line-height: 34px; letter-spacing: -.5px; margin-bottom: 2px; }
	.h-adv__underline { left: -10px; top: 39px; }
	.h-adv__body { padding-top: 30px; }
	.h-adv__blob { left: -70px; top: -80px; }
	.h-adv__planet { left: 100px; top: 710px; }
	.h-adv__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.h-adv__card,
.h-adv__card:nth-child(3) { width: auto; grid-column: auto; padding: 30px 20px; }
	.h-adv__card:nth-child(1) .h-adv__card-title,
.h-adv__card:nth-child(2) .h-adv__card-title { max-width: none; }
	.h-adv__card:nth-child(1) .h-adv__img { height: 270px; }
	.h-adv__card:nth-child(2) .h-adv__img { height: 329px; }
	.h-adv__card:nth-child(3) .h-adv__img { height: 280px; }

	/* Кейсы */
	
	
	
	
	
	
	
	
	
	
	
	
	

	/* Услуги */
	.h-srv__head { padding-top: 75px; }
	.h-srv__planet { left: -124px; top: -16px; width: 195px; }
	.h-srv__row,
.h-srv__row.is-reverse { flex-direction: column; align-items: stretch; gap: 20px; margin-top: 30px; }
	.h-srv__row .h-srv__img,
.h-srv__row.is-reverse .h-srv__img { width: 100%; height: 230px; aspect-ratio: auto; }
	.h-srv__row.is-reverse .h-srv__img { height: 260px; }
	.h-srv__row.is-reverse .h-srv__content { width: 100%; }
	.h-srv__list { margin-top: 12px; padding-left: 20px; }
	.h-srv__actions { flex-direction: column; gap: 12px; margin-top: 30px; }
	.h-srv__row.is-reverse .h-srv__actions { margin-top: 40px; }
	.h-srv__actions .h-btn { width: 100%; }

	/* Дизайн */
	
	
	
	
	
	
	
	
	.pill { justify-content: space-between; padding: 0 10px 0 33px; }
	.h-hero__cta .pill { justify-content: space-between; padding: 0 13px 0 28px; }
	
	
	
	
	
	
	
	

	/* Команда */
	.h-team { padding-top: 75px; }
	.h-team__title { font-size: 34px; line-height: 39px; }
	.h-team__blob { left: 202px; top: 82px; width: 309px; height: 319px; }
	.h-team .h-scroll { margin-top: 30px; }
	/* Карточка почти во всю ширину, правый край ленты плавно затухает. */
	.h-scroll {
		scroll-snap-type: x mandatory; scroll-padding-left: 15px;
		-webkit-mask-image: linear-gradient(90deg, #000 84%, transparent);
		mask-image: linear-gradient(90deg, #000 84%, transparent);
	}
	.h-scroll > .tl { padding-left: 15px; padding-right: 15px; }
	.h-team__row { gap: 14px; }
	.h-member { width: calc(100vw - 54px); max-width: 320px; }
	.h-member__boss-photo { width: 100px; height: 100px; }

	/* Партнёры */
	
	

	/* Акции */
	.h-promo__slider,
	.h-promo__nav { max-width: none; }
	.h-promo__slider { height: 400px; }
	.h-promo__slide { padding: 20px; }
	.h-promo__content,
.h-promo__slide--video .h-promo__content,
.h-promo__slide--target .h-promo__content { justify-content: flex-start; gap: 12px; }
	.h-promo__title { font-size: 24px; line-height: 30px; }
	.h-promo__text { gap: 8px; font-size: 14px; line-height: 17px; }
	.h-promo__text ul { padding-left: 20px; }
	.h-promo__nav { height: 34px; }
	.h-promo__arrow { width: 34px; height: 34px; }

	/* Статьи */
	.h-posts { padding-top: 75px; }
	.h-posts__body { padding-top: 30px; }
	.h-posts__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.h-post,
.h-post:nth-child(3) { grid-column: auto; width: auto; height: 430px; }
	.h-post__img { height: 240px; }
	.h-posts__blob--1 { left: 353px; top: -126px; }
	.h-posts__blob--2 { left: 160px; top: 875px; }
	.h-posts__blob--3 { left: 6px; top: 263px; }
	.h-posts__blob--4 { left: 365px; top: 337px; }
	.h-posts__all { padding-top: 30px; }
	.h-posts__all .pill { width: 100%; font-size: 16px; }

	/* Отзывы */
	
	
	
	
	
	

	/* Вебинары */
	.h-webinars { padding-top: 75px; }
	.h-webinars__title { width: auto; }
	.h-webinars__underline { left: 117px; }
	.h-webinars__body { padding-top: 30px; padding-bottom: 0; }
	.h-webinars__planet { left: -346px; top: -138px; width: 436px; }
	.h-webinars__glow { left: 77px; top: 318px; width: 807px; }
	.h-webinars__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 20px; }
	.h-web,
.h-web--ai,
.h-web--topics,
.h-web--smm,
.h-web--mts { grid-column: auto; grid-row: auto; padding: 15px; }
	.h-web--ai { order: 1; height: 360px; padding: 20px; }
	.h-web--smm { order: 2; height: 130px; }
	.h-web--mts { order: 3; height: 360px; }
	.h-web--topics { order: 4; height: 280px; }
	.h-web__title { font-size: 20px; line-height: 20px; }
	.h-web__text { max-width: 276px; }
	.h-web__bottom { gap: 10px; }
	.h-web--topics .h-web__note { max-width: none; }
	.h-web--smm .h-web__note { max-width: none; font-size: 14px; line-height: 19px; }
	.h-web__arrow { right: 15px; bottom: 15px; }
	.h-web__chip { top: 15px; right: 15px; }
}

/* =========================================================
   Переработанные блоки (по просьбе: аккуратнее и современнее,
   чем на Tilda): кейсы, дизайн, партнёры, отзывы, читаемость акций.
   ========================================================= */

/* Шапка секции: заголовок и подводка слева, кнопка справа */
.h-head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 40px; }
.h-head__lead { max-width: 560px; margin: 16px 0 0; font-size: 16px; line-height: 22px; color: #4f4f4f; }
.h-head__btn { flex: none; }

/* Обвод слова от руки (в заголовках «Отзывы наших…», «Серия вебинаров») */
.ellipse { position: relative; display: inline-block; white-space: nowrap; }
.ellipse::after {
	content: ""; position: absolute; left: -10%; right: -14%; top: -12%; bottom: -26%;
	background: url("../img/home/underline-2.webp") center / 100% 100% no-repeat;
	pointer-events: none;
}

/* Звёзды рейтинга */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars svg { width: 16px; height: 16px; fill: #e3dfea; }
.stars svg.is-on { fill: #ffb800; }
.stars--lg svg { width: 22px; height: 22px; }

/* Теги */
.h-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.h-tag {
	display: inline-block; height: 26px; padding: 0 12px; border-radius: 30px;
	background: rgba(218, 140, 231, .92); color: #fff; font-size: 13px; line-height: 26px; white-space: nowrap;
}

/* --- Кейсы -------------------------------------------------- */
.h-cases { position: relative; padding-top: 150px; }
.h-cases__body { position: relative; }
.h-cases__blob { left: 60%; top: -300px; width: 900px; height: 900px; background: rgba(85, 55, 184, .07); }
.h-cases__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.h-case {
	position: relative; display: block; height: 460px; overflow: hidden; isolation: isolate;
	border-radius: 24px; background: #2a1a3a; color: #fff;
	box-shadow: 4px 4px 10px rgba(41, 31, 71, .1);
	transition: transform .3s ease, box-shadow .3s ease;
}
.h-case:hover { color: #fff; transform: translateY(-4px); box-shadow: 0 18px 40px rgba(41, 31, 71, .2); }
.h-case__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.h-case:hover .h-case__bg { transform: scale(1.06); }
.h-case::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(20, 10, 34, 0) 25%, rgba(20, 10, 34, .55) 55%, rgba(20, 10, 34, .9) 100%);
}
.h-case__body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.h-case__title { font-size: 24px; line-height: 30px; font-weight: 500; letter-spacing: -.8px; }
.h-case__text {
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
	font-size: 15px; line-height: 20px; color: rgba(255, 255, 255, .88);
}
.h-case__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 6px; }
.h-case .h-arrow { transition: transform .3s ease; }
.h-case:hover .h-arrow { transform: rotate(45deg); }

/* --- Дизайн и другие направления ---------------------------- */
.h-design { position: relative; padding-top: 150px; }
.h-design__planet { position: absolute; right: -240px; top: 40px; width: 718px; max-width: none; height: auto; opacity: .4; pointer-events: none; }
.h-design__word { white-space: nowrap; }
.h-design__heart { display: inline-block; width: 37px; height: 37px; margin-left: 4px; vertical-align: top; }
.h-tiles { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.h-tile { display: block; padding: 12px; color: #121212; transition: transform .3s ease, box-shadow .3s ease; }
.h-tile:hover { color: #121212; transform: translateY(-4px); box-shadow: 0 18px 40px rgba(41, 31, 71, .16); }
.h-tile__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: #f2edff; }
.h-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.h-tile:hover .h-tile__media img { transform: scale(1.05); }
.h-tile__cap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 8px 6px; }
.h-tile__title { font-size: 18px; line-height: 24px; font-weight: 500; letter-spacing: -.4px; }
.h-tile__arrow { border-radius: 50%; box-shadow: 0 2px 10px rgba(41, 31, 71, .18); transition: transform .3s ease; }
.h-tile:hover .h-tile__arrow { transform: rotate(45deg); }

/* --- Партнёры: бесконечная лента ----------------------------- */
.h-partners { padding-top: 150px; }
.marquee {
	position: relative; margin-top: 40px; overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; gap: 20px; margin: 0; padding: 10px 10px 20px; list-style: none; }
.marquee__item {
	display: flex; align-items: center; justify-content: center; flex: none;
	width: 240px; height: 120px; padding: 18px 26px;
	border-radius: 20px; background: #fff; box-shadow: 4px 4px 10px rgba(41, 31, 71, .08);
}
.marquee__item img {
	width: auto; max-width: 100%; max-height: 76px; object-fit: contain;
	transition: transform .3s ease;
}
.marquee__item { transition: box-shadow .3s ease, transform .3s ease; }
.marquee__item:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(41, 31, 71, .14); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* --- Акции: затемнение под текстом, чтобы читалось на любом фото --- */
.h-promo__slide::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(14, 8, 26, .9) 0%, rgba(14, 8, 26, .72) 42%, rgba(14, 8, 26, .2) 75%, rgba(14, 8, 26, 0) 100%);
}
.h-promo__content { position: relative; }
.h-promo__title,
.h-promo__slide--target .h-promo__title { font-family: var(--font); font-weight: 600; letter-spacing: -1px; color: #fff; }
.h-promo__text,
.h-promo__slide--target .h-promo__text { color: rgba(255, 255, 255, .9); opacity: 1; }
.h-promo__text ul { display: grid; gap: 4px; }

/* --- Отзывы ------------------------------------------------- */
.h-reviews { padding-top: 150px; }
.h-reviews__inner { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 60px; align-items: start; }
.h-reviews__lead { max-width: 420px; margin: 20px 0 30px; font-size: 16px; line-height: 22px; color: #4f4f4f; }
.rating { padding: 28px; }
.rating__top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.rating__value { font-size: 64px; line-height: 1; font-weight: 600; letter-spacing: -2px; color: #121212; }
.rating__counts { display: block; margin-top: 6px; font-size: 14px; color: #4f4f4f; }
.rating__counts:hover { color: #ff5cce; }
.rating__source { display: inline-block; margin-top: 16px; padding: 6px 12px; border-radius: 20px; background: #f7f5fb; font-size: 13px; color: #4f4f4f; }
.rating__source::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #fc3f1d; vertical-align: 1px; }
.rating__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.rating__actions .pill { width: auto; height: 56px; padding: 0 8px 0 22px; justify-content: space-between; gap: 10px; font-size: 16px; }
.rating__actions .pill__icon { width: 40px; height: 40px; }
.rating__add { width: auto; height: 56px; padding: 0 16px; font-size: 16px; }
.h-reviews__widget { height: 560px; }
.h-reviews__widget iframe { width: 100%; height: 100%; border: 1px solid #e6e6e6; border-radius: 16px; }

.carousel { position: relative; min-width: 0; }
.carousel__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 20px) / 2); gap: 20px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
	padding: 6px 4px 16px; margin: -6px -4px 0; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.carousel__arrow { position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #da8ce7; transition: background-color .2s ease, opacity .2s ease; }
.carousel__arrow:hover { background: #ff5cce; }
.carousel__arrow::before {
	content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px;
	border-top: 2px solid #fff; border-right: 2px solid #fff; transform: translate(-65%, -50%) rotate(45deg);
}
.carousel__arrow--prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.carousel__arrow:disabled { opacity: .35; cursor: default; }

.review { display: flex; flex-direction: column; gap: 14px; min-height: 360px; padding: 24px; }
.review__head { display: flex; align-items: center; gap: 12px; }
.review__photo { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #f2edff; }
.review__photo--letter { display: flex; align-items: center; justify-content: center; font-weight: 600; color: #5537b8; }
.review__name { margin: 0; font-size: 15px; line-height: 20px; font-weight: 600; color: #121212; }
.review__date { margin: 2px 0 0; font-size: 13px; line-height: 18px; color: #8b8b8b; }
.review__text {
	display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden;
	margin: 0; font-size: 15px; line-height: 22px; color: #2b2626;
}
.review__more { margin-top: auto; font-size: 14px; font-weight: 600; color: #5537b8; }
.review__more:hover { color: #ff5cce; }

/* --- Адаптив новых блоков ----------------------------------- */
@media (min-width: 1200px) and (max-width: 1439px) {
	.h-case { height: 420px; }
	.h-case__title { font-size: 22px; line-height: 28px; }
	.h-reviews__inner { grid-template-columns: 400px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 1199px) {
	.h-cases__grid { grid-template-columns: repeat(2, 1fr); }
	.h-case { height: 360px; }
	.h-reviews__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.h-reviews__lead { max-width: 560px; }
	.rating { max-width: 640px; }
}

@media (max-width: 959px) {
	.h-tiles { grid-template-columns: repeat(2, 1fr); }
	.h-tile:last-child { grid-column: 1 / -1; }
	.h-tile:last-child .h-tile__media { aspect-ratio: 16 / 7; }
}

@media (max-width: 639px) {
	.h-head { flex-direction: column; align-items: stretch; gap: 20px; margin-bottom: 30px; }
	.h-head__lead { margin-top: 12px; }
	.h-head__btn { order: 2; width: 100%; }
	.h-cases, .h-design, .h-partners, .h-reviews { padding-top: 75px; }
	.h-cases__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.h-case { height: 340px; }
	.h-case__body { padding: 20px; }
	.h-case__title { font-size: 21px; line-height: 26px; }
	.h-design__planet { right: -300px; top: 300px; }
	.h-tiles { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.h-tile:last-child { grid-column: auto; }
	.h-tile:last-child .h-tile__media { aspect-ratio: 4 / 3; }
	.h-tile__title { font-size: 17px; }
	.marquee {
		margin-top: 30px;
		-webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
		mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
	}
	.marquee__item { width: 180px; height: 96px; padding: 14px 20px; }
	.marquee__item img { max-height: 60px; }
	.h-promo__slider { height: 470px; }
	.h-promo__content .h-btn { flex: none; height: 48px; margin-top: auto; }
	.h-promo__slide::before { background: linear-gradient(180deg, rgba(14, 8, 26, .88) 0%, rgba(14, 8, 26, .7) 60%, rgba(14, 8, 26, .45) 100%); }
	.rating { padding: 20px; }
	.rating__value { font-size: 52px; }
	.rating__actions { grid-template-columns: minmax(0, 1fr); }
	.carousel__track { grid-auto-columns: 90%; gap: 12px; scroll-padding-left: 4px; }
	.review { min-height: 340px; padding: 20px; }
}

/* Совсем узкие экраны (320px): кнопка первого экрана рядом с иконками соцсетей. */
@media (max-width: 359px) {
	.h-hero__cta .pill { gap: 8px; padding: 0 6px 0 14px; font-size: 15px; }
	.h-hero__cta .pill__icon { width: 44px; height: 44px; }
}
