/* ЭиК Групп — главная страница */

/* ── Первый экран ── */
.hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(60% 80% at 85% 30%, rgba(196, 60, 209, .35), transparent 70%),
		radial-gradient(50% 70% at 60% 100%, rgba(93, 83, 193, .45), transparent 70%),
		var(--night);
	color: #e6e1f7;
	padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px);
}
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.2px);
	background-size: 22px 22px;
	mask-image: linear-gradient(90deg, #000, transparent 70%);
	-webkit-mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero__title { color: #fff; font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; max-width: 11em; margin-bottom: 22px; }
.hero__title--list { display: flex; flex-direction: column; gap: 10px; max-width: 24em; font-size: clamp(1.375rem, .95rem + 1.25vw, 2.125rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 24px; }
.hero__item { position: relative; padding-left: 1.15em; }
.hero__item::before { content: ""; position: absolute; left: 0; top: .32em; width: .62em; height: .62em; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(196, 60, 209, .18); }
.hero__text--for { font-weight: 600; color: #fff; }
.hero__text { font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem); color: #cfc8ea; max-width: 30em; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 14px clamp(24px, 3vw, 44px); margin: 44px 0 0; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero__stats dt { white-space: nowrap; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: #fff; }
.hero__stats dd { margin: 6px 0 0; font-size: var(--fs-sm); color: #b7b0d6; }
.hero__stats .hero__stat--word dt { font-size: clamp(1.125rem, .95rem + .55vw, 1.375rem); line-height: 1.55; }

.hero__visual { position: relative; min-height: 460px; }
.hero__docs { position: absolute; inset: 0; }
.hero__doc { position: absolute; width: 46%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.hero__doc .doc-svg { display: block; width: 100%; height: auto; border-radius: 4px; }
.hero__doc--1 { left: 4%; top: 12%; transform: rotate(-11deg); }
.hero__doc--2 { left: 27%; top: 2%; transform: rotate(-2deg); z-index: 1; }
.hero__doc--3 { right: 2%; top: 14%; transform: rotate(9deg); z-index: 2; }

.hero__visual--photo { min-height: 0; }
.hero__visual--pic { min-height: 0; display: flex; align-items: center; justify-content: center; }
.hero__pic { display: block; position: relative; width: 112%; margin-right: -6%; }
.hero__pic::before { content: ""; position: absolute; inset: 6% 10%; background: radial-gradient(closest-side, rgba(143, 78, 219, .45), transparent 75%); filter: blur(24px); z-index: 0; }
.hero__pic img { position: relative; z-index: 1; display: block; width: 100%; height: auto; filter: drop-shadow(0 26px 36px rgba(0, 0, 0, .45)); }
.hero__photo { position: relative; margin-left: auto; width: min(100%, 460px); aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.hero__photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.hero__photo-img { width: 100%; height: 100%; object-fit: cover; }
.hero__doc--float { left: -2%; bottom: 6%; width: 34%; transform: rotate(-8deg); z-index: 2; }

.badge {
	position: absolute; z-index: 3; margin: 0;
	display: inline-flex; align-items: center; gap: 10px;
	background: rgba(255, 255, 255, .96); color: var(--ink);
	padding: 10px 16px 10px 10px; border-radius: 999px;
	font-size: var(--fs-sm); font-weight: 600; white-space: nowrap;
	box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .55);
}
.badge__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; }
.badge--a { left: 0; bottom: 8%; }
.badge--b { right: 0; top: 2%; }
.hero__visual--photo .badge--a { left: auto; right: 6%; bottom: 10%; }
.hero__visual--photo .badge--b { right: auto; left: 8%; top: 8%; }

/* ── Плюсы ── */
.perks { background: var(--sheet); border-bottom: 1px solid var(--line); }
.perks__list { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 28px; }
.perks__list li { display: flex; gap: 14px; align-items: center; }
.perks__list strong { display: block; font-weight: 700; font-size: var(--fs-base); line-height: 1.25; }
.perks__list li > span:last-child { font-size: var(--fs-sm); color: var(--muted); line-height: 1.35; }
.perks__ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--stamp-tint); color: var(--stamp); }

/* ── Заголовки секций ── */
.section__head--row { align-items: flex-end; }
.section__head--row h2 { margin-bottom: 0; }
.section__aside { margin: 0; color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--stamp); text-decoration: none; white-space: nowrap; }
.link-arrow .ico { transition: transform .2s; }
.link-arrow:hover { color: var(--stamp-2); }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ── Карточки услуг ── */
.svc-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.svc-card a {
	display: flex; flex-direction: column; height: 100%;
	background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r-lg);
	text-decoration: none; color: var(--ink); overflow: hidden;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}
.svc-card a:hover { border-color: #cfc6f3; box-shadow: var(--shadow); transform: translateY(-3px); }
.svc-card__img { flex: none; display: flex; justify-content: center; align-items: flex-end; min-height: 0; aspect-ratio: 4 / 3; padding: 22px 0 0; background: linear-gradient(180deg, var(--tint), #f8f7fd); overflow: hidden; }
.svc-card__img .doc-svg { flex: none; width: 52%; height: auto; border-radius: 3px 3px 0 0; box-shadow: 0 -4px 24px -6px rgba(42, 29, 92, .25); transition: transform .3s; }
.svc-card a:hover .doc-svg { transform: translateY(-6px) rotate(-1.5deg); }
.svc-card__img .doc-photo { width: 100%; height: 100%; object-fit: cover; margin-top: -22px; }
.svc-card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.svc-card__group { font-size: var(--fs-xs); color: var(--muted); }
.svc-card__title { font-weight: 700; font-size: 1.125rem; line-height: 1.25; }
.svc-card__meta { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.svc-card__price { font-weight: 800; font-size: 1.125rem; color: var(--petrol); white-space: nowrap; }
.svc-card__price.is-tbd { font-weight: 600; font-size: var(--fs-sm); color: var(--muted); }
.svc-card__term { font-size: var(--fs-xs); color: var(--muted); }

.svc-card--more a { background: var(--grad); border: 0; color: #fff; padding: 26px 24px; justify-content: space-between; gap: 12px; }
.svc-card--more a:hover { box-shadow: 0 20px 40px -18px rgba(143, 78, 219, .8); }
.svc-card__more-num { font-size: 4rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.svc-card--more .svc-card__title { font-weight: 600; font-size: 1.0625rem; opacity: .95; }
.svc-card__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }

/* ── Подбор документа ── */
.section--pick { background: var(--sheet); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pick { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pick__lead { color: var(--muted); font-size: var(--fs-lead); margin-bottom: 26px; }
.pick__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pick-tile {
	display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
	min-height: 120px; padding: 18px; text-align: left;
	background: var(--paper); border: 1.5px solid transparent; border-radius: 16px;
	font: 600 var(--fs-sm)/1.3 var(--font); color: var(--ink); cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.pick-tile .ico { color: var(--stamp); }
.pick-tile:hover { background: var(--stamp-tint); transform: translateY(-2px); }
.pick-tile[aria-checked="true"] { background: var(--sheet); border-color: var(--stamp); box-shadow: 0 0 0 4px var(--stamp-tint); }

.pick__card {
	position: relative; overflow: hidden;
	background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
	padding: clamp(22px, 3vw, 32px);
	box-shadow: var(--shadow);
	position: sticky; top: calc(var(--header-h) + 20px);
}
.pick__card-h { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.015em; margin: 0 0 6px; }
.pick__card-sub { color: var(--muted); margin: 0 0 18px; font-size: var(--fs-sm); }
.pick__empty[hidden], .pick__result[hidden] { display: none; }
.pick__result { margin: 0 0 18px; padding: 16px 18px; background: var(--sheet); border-radius: 14px; border-left: 4px solid var(--stamp); font-size: var(--fs-sm); }
.pick__result-h { font-weight: 800; font-size: 1.125rem; margin: 0 0 6px; }
.pick__answer { margin: 0 0 8px; color: var(--ink-2); }
.pick__regs { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pick__regs a { font-family: var(--mono); font-size: var(--fs-xs); color: var(--stamp-2); background: var(--stamp-tint); padding: 3px 8px; border-radius: 6px; text-decoration: none; }
.pick__regs a:hover { background: var(--stamp); color: #fff; }
.pick__card .lead-form { gap: 14px; }
.pick__card .field--line input[type="text"], .pick__card .field--line textarea { font-size: var(--fs-base); }
.pick__card .lead-form--hero .form-actions .btn { min-height: 54px; }

.stamp {
	position: absolute; right: 24px; bottom: 92px; width: 140px; height: 140px;
	color: var(--stamp); opacity: 0; pointer-events: none;
	transform: rotate(-24deg) scale(1.7); mix-blend-mode: multiply;
}
.is-stamped .stamp { animation: stamp .42s cubic-bezier(.2, .9, .3, 1.3) forwards; }
@keyframes stamp {
	0% { opacity: 0; transform: rotate(-24deg) scale(1.7); }
	70% { opacity: .92; transform: rotate(-11deg) scale(.96); }
	100% { opacity: .85; transform: rotate(-12deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .is-stamped .stamp { animation: none; opacity: .85; transform: rotate(-12deg); } }

/* ── Маркетплейсы ── */
.mp { padding: clamp(28px, 4vw, 48px) 0; background: var(--paper); }
.mp__grid {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center;
	background: var(--night) radial-gradient(70% 120% at 100% 0%, rgba(196, 60, 209, .35), transparent 60%);
	border-radius: 28px; padding: clamp(28px, 4vw, 56px);
	color: #d9d4ee;
}
.mp h2 { color: #fff; }
.mp__text p { font-size: var(--fs-lead); margin-bottom: 24px; max-width: 28em; }
.mp__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mp__list li {
	display: grid; place-items: center; min-height: 84px; padding: 12px;
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px;
	color: #fff; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; text-align: center;
}

/* ── О компании ── */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.about__photo { border-radius: 28px; overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
.about__photo-img { width: 100%; height: 100%; object-fit: cover; }
.about__art { position: relative; aspect-ratio: 5 / 4; border-radius: 28px; background: linear-gradient(140deg, var(--tint), #fff); display: grid; place-items: center; overflow: hidden; }
.about__art > .brand__mark { position: absolute; left: -40px; bottom: -50px; width: 62%; height: auto; opacity: .9; }
.about__art-doc { position: relative; width: 38%; transform: rotate(6deg) translateX(18%); filter: drop-shadow(0 30px 40px rgba(42, 29, 92, .3)); }
.about__art-doc .doc-svg { width: 100%; height: auto; display: block; border-radius: 3px; }
.about__lead { font-size: var(--fs-lead); color: var(--ink-2); }
.ticks { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ico { flex: none; color: #fff; background: var(--grad); border-radius: 50%; padding: 3px; width: 26px; height: 26px; margin-top: -1px; }

/* ── Шаги ── */
.section--steps { background: var(--sheet); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 24px 20px 22px; background: var(--paper); border-radius: var(--r-lg); }
.steps li::after { content: counter(st, decimal-leading-zero); position: absolute; right: 18px; top: 18px; font-weight: 800; font-size: 1.5rem; color: var(--line); letter-spacing: -0.02em; }
.steps__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--grad); color: #fff; margin-bottom: 18px; }
.steps h3 { font-size: 1.125rem; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.45; }

/* ── Команда на главной: тёмный фон, лента ── */
.section--team { background: var(--night); color: #d9d4ee; }
.section--team .team { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 4 * 18px) / 5); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.section--team .team::-webkit-scrollbar { display: none; }
.section--team .team__item { scroll-snap-align: start; }
.scroll-nav { display: flex; gap: 8px; }
.scroll-nav button { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; cursor: pointer; }
.scroll-nav button:hover { background: rgba(255,255,255,.1); }
.scroll-nav button[disabled] { opacity: .3; cursor: default; }
.scroll-nav button:first-child .ico { transform: rotate(180deg); }
.section--team h2 { color: #fff; }
.section--team .section__aside { color: #b7b0d6; }

/* ── Отзывы ── */
.section--reviews { background: var(--paper); border-top: 0; }

/* ── Финальный блок ── */
.cta-band { padding: 0 0 clamp(56px, 7vw, 96px); background: var(--paper); }
.cta-band__box {
	position: relative; overflow: hidden;
	display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: stretch;
	background: var(--grad); border-radius: 28px; color: #fff;
}
.cta-band__text { padding: clamp(28px, 5vw, 64px); }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band__text > p { font-size: var(--fs-lead); color: rgba(255, 255, 255, .88); margin-bottom: 24px; max-width: 26em; }
.cta-band .lead-form { gap: 12px; max-width: 520px; }
.cta-band .lead-form--call { grid-template-columns: 1fr auto; align-items: start; }
.cta-band .lead-form--call .field--inline { grid-column: 1; }
.cta-band .lead-form--call .form-actions { grid-column: 2; grid-row: 1; }
.cta-band .lead-form--call .consent { grid-column: 1 / -1; }
.cta-band .field input[type="tel"] { border: 0; min-height: 54px; font-size: 1.0625rem; }
.cta-band .form-actions .btn { min-width: 0; min-height: 54px; background: var(--night); box-shadow: none; }
.cta-band .form-actions .btn:hover { background: #000; }
.cta-band .consent { color: rgba(255, 255, 255, .8); }
.cta-band .form-msg.is-ok { color: #fff; }
.cta-band .form-msg.is-err { color: #ffe2e4; }
.cta-band__visual { position: relative; display: flex; align-items: flex-end; justify-content: flex-end; min-height: 280px; }
.cta-band__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band__visual > .brand__mark { position: absolute; right: -40px; bottom: -60px; width: 340px; height: 340px; opacity: .35; filter: saturate(.6) brightness(1.6); }
.cta-band__phone { position: relative; z-index: 1; margin: 0 clamp(24px, 4vw, 56px) clamp(28px, 4vw, 56px) 0; font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -0.02em; }

/* ── Адаптив главной ── */
@media (max-width: 1100px) {
	.svc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.perks__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.section--team .team { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
}
@media (max-width: 1023px) {
	.hero__grid, .pick, .mp__grid, .about, .cta-band__box { grid-template-columns: 1fr; }
	.hero__visual { min-height: 0; aspect-ratio: 5 / 3.4; max-width: 560px; width: 100%; margin: 0 auto; }
	.hero__visual--photo, .hero__visual--pic { aspect-ratio: auto; }
	.hero__pic { width: 100%; margin-right: 0; }
	.hero__photo { margin: 0 auto; }
	.pick__card { position: relative; top: 0; }
	.cta-band__visual { min-height: 200px; }
}
@media (max-width: 720px) {
	.hero__title { font-size: 2.375rem; }
	.hero__title--list { font-size: 1.375rem; gap: 10px; }
	.hero__actions .btn { flex: 1 1 100%; }
	.hero__stats { gap: 14px 24px; }
	.hero__stats > div { flex: 1 1 40%; }
	.badge { font-size: var(--fs-xs); padding: 7px 12px 7px 7px; }
	.badge__ico { width: 28px; height: 28px; }
	.perks__list { grid-template-columns: 1fr; gap: 16px; padding: 22px 0; }
	.svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.svc-card__body { padding: 12px 12px 14px; }
	.svc-card__img { padding-top: 14px; }
	.svc-card__img .doc-svg { width: 62%; }
	.svc-card__meta { flex-direction: column; gap: 2px; padding-top: 10px; }
	.svc-card__group { display: none; }
	.section__head--row { align-items: flex-start; }
	.hero__visual--photo .hero__photo { width: 82%; }
	.svc-card__title { font-size: 1rem; }
	.svc-card__price { font-size: 1rem; }
	.svc-card__more-num { font-size: 3rem; }
	.pick__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.pick-tile { min-height: 96px; padding: 14px; }
	.mp__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mp__list li { min-height: 64px; font-size: 1rem; }
	.section--team .team { grid-auto-columns: 72%; }
	.steps { grid-template-columns: 1fr; }
	.steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding: 18px; }
	.steps__ico { grid-row: 1 / span 2; margin: 0; }
	.cta-band .lead-form--call { grid-template-columns: 1fr; }
	.cta-band .lead-form--call .form-actions { grid-column: 1; grid-row: auto; }
	.cta-band__visual { display: none; }
}
@media (max-width: 340px) {
	.svc-cards { grid-template-columns: 1fr; }
}
