/* ==========================================================================
   Home v2 (preview): process, compact academy, useful articles
   ========================================================================== */

/* Process: one compact block */
.shodrop-home-process__note {
	margin: 20px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--shod-mut);
}

.shodrop-home-process .shodrop-redesign__step .shodrop-redesign__h3 {
	text-wrap: balance;
}

/* Compact academy */
.shodrop-home-academy-compact__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 40px;
	align-items: center;
}

.shodrop-home-academy-compact__text {
	min-width: 0;
}

.shodrop-home-academy-compact__text .shodrop-redesign__h2 {
	margin-bottom: 12px;
}

.shodrop-home-academy-compact__text .shodrop-redesign__section-desc {
	margin: 0 0 24px;
	max-width: 440px;
}

.shodrop-home-academy-compact__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.shodrop-home-academy-compact__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border-radius: 16px;
	background: var(--shod-card, #fff);
	border: 1px solid var(--shod-card-line);
	color: var(--shod-ink);
	text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.shodrop-home-academy-compact__item:hover,
.shodrop-home-academy-compact__item:focus-visible {
	border-color: color-mix(in srgb, var(--shod-accent) 40%, var(--shod-card-line) 60%);
	transform: translateY(-2px);
}

.shodrop-home-academy-compact__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
}

.shodrop-home-academy-compact__icon img {
	width: 26px;
	height: 26px;
	object-fit: contain;
}

.shodrop-home-academy-compact__name {
	flex: 1 1 auto;
	min-width: 0;
	font-family: var(--shod-font-head);
	font-weight: var(--shod-fw-head, 500);
	font-size: 16px;
	line-height: 1.2;
}

.shodrop-home-academy-compact__arrow {
	color: var(--shod-accent);
}

/* Useful articles */
.shodrop-home-useful__head {
	align-items: flex-end;
}

.shodrop-home-useful__grid {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-left: 0;
	padding-bottom: 14px;
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--shod-accent) 45%, transparent) transparent;
	-webkit-overflow-scrolling: touch;
}

.shodrop-home-useful__grid::-webkit-scrollbar {
	height: 6px;
}

.shodrop-home-useful__grid::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: color-mix(in srgb, var(--shod-accent) 45%, transparent);
}

.shodrop-home-useful__grid:focus-visible {
	outline: 2px solid var(--shod-accent);
	outline-offset: 4px;
}

/* three cards visible plus the edge of the next one, so it is clear the row scrolls */
.shodrop-home-useful__card {
	flex: 0 0 calc((100% - 40px) / 3.2);
	scroll-snap-align: start;
}

.shodrop-home-useful__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	color: var(--shod-ink);
	text-decoration: none;
}

.shodrop-home-useful__cover {
	display: block;
	aspect-ratio: 16 / 10;
	border-radius: 16px;
	overflow: hidden;
	background: var(--shod-bg2, #f5efe3);
}

.shodrop-home-useful__cover img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.shodrop-home-useful__card:hover .shodrop-home-useful__cover img {
	transform: scale(1.03);
}

.shodrop-home-useful__date {
	font-size: 13px;
	color: var(--shod-mut);
}

.shodrop-home-useful__title {
	font-family: var(--shod-font-head);
	font-weight: var(--shod-fw-head, 500);
	font-size: 17px;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.shodrop-home-useful__card:hover .shodrop-home-useful__title,
.shodrop-home-useful__card:focus-visible .shodrop-home-useful__title {
	color: var(--shod-accent);
}

@media (max-width: 1023px) {
	.shodrop-home-academy-compact__inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

@media (max-width: 767px) {
	.shodrop-home-process__note {
		font-size: 13px;
	}

	.shodrop-home-academy-compact__list {
		gap: 8px;
	}

	.shodrop-home-academy-compact__item {
		padding: 12px;
		gap: 10px;
		border-radius: 14px;
	}

	.shodrop-home-academy-compact__icon {
		width: 36px;
		height: 36px;
		border-radius: 10px;
	}

	.shodrop-home-academy-compact__icon img {
		width: 22px;
		height: 22px;
	}

	.shodrop-home-academy-compact__name {
		font-size: 14px;
	}

	.shodrop-home-academy-compact__cta {
		width: 100%;
		justify-content: center;
	}

	.shodrop-home-useful__grid {
		gap: 14px;
	}

	.shodrop-home-useful__card {
		flex-basis: 78%;
	}

	.shodrop-home-useful__head {
		flex-wrap: wrap;
	}

	.shodrop-home-useful__title {
		font-size: 16px;
	}
}


/* Hero description: smaller (overrides the inline !important size from functions.php) */
html body.shodrop-home-redesign .shodrop-redesign__hero .shodrop-redesign__lead {
	font-size: 12.5px !important;
	max-width: 46ch;
}

@media (max-width: 767px) {
	html body.shodrop-home-redesign .shodrop-redesign__hero .shodrop-redesign__lead {
		font-size: 10.5px !important;
		max-width: none;
	}
}

/* Services on desktop: a calm grid — three main services in a row, extras below. Phones keep the stack. */
@media (min-width: 768px) {
	.shodrop-svc[data-svc-grid] {
		height: auto !important;
	}

	.shodrop-svc[data-svc-grid] .shodrop-svc__pin {
		position: static;
	}

	.shodrop-svc[data-svc-grid] .shodrop-svc__viewport {
		margin-left: 0;
		margin-right: 0;
		padding-left: 0;
		overflow: visible;
	}

	.shodrop-svc[data-svc-grid] .shodrop-svc__track {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--shod-card-gap, 22px);
		width: auto;
		transform: none !important;
		transition: none;
	}

	.shodrop-svc-section .shodrop-svc[data-svc-grid] .shodrop-svc__card {
		width: auto;
		min-height: 0;
		opacity: 1;
		transform: none;
	}

	.shodrop-svc[data-svc-grid] .shodrop-svc__extra {
		grid-column: 1 / -1;
		display: block;
		margin-top: 8px;
	}

	.shodrop-svc[data-svc-grid] .shodrop-svc__extra-label {
		margin-bottom: 12px;
	}

	.shodrop-svc[data-svc-grid] .shodrop-svc__extra-row {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--shod-card-gap, 22px);
	}

	.shodrop-svc-section .shodrop-svc[data-svc-grid] .shodrop-svc__card--extra {
		width: auto;
	}

	.shodrop-svc[data-svc-grid] .shodrop-svc__progress {
		display: none;
	}
}

/* «Международная инфраструктура под ключ» in two lines on desktop */
@media (min-width: 768px) {
	#services .shodrop-redesign__section-head .shodrop-redesign__h2 {
		max-width: 24ch;
	}
}

/* ==========================================================================
   «Как мы работаем»: timeline that fills while scrolling (2026-11-30)
   ========================================================================== */
.shodrop-home-process .shodrop-process__head {
	margin-bottom: 40px;
}

.shodrop-home-process {
	--p: 0;
}

.shodrop-process {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.shodrop-process__line {
	position: absolute;
	left: 22px;
	right: calc(25% - 2px);
	top: 21px;
	height: 2px;
	border-radius: 2px;
	background: color-mix(in srgb, var(--shod-ink) 12%, transparent);
	overflow: hidden;
}

.shodrop-process__line-fill {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--shod-accent);
	transform-origin: left center;
	transform: scaleX(var(--p));
}

.shodrop-process__step {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

.shodrop-process__dot {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--shod-bg2, #f5efe3);
	border: 2px solid color-mix(in srgb, var(--shod-ink) 14%, transparent);
	font-family: var(--shod-font-head);
	font-weight: var(--shod-fw-head, 500);
	font-size: 14px;
	color: var(--shod-mut);
	transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, transform 0.4s ease;
}

.shodrop-process__text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.shodrop-process__title {
	font-family: var(--shod-font-head);
	font-weight: var(--shod-fw-head, 500);
	font-size: 20px;
	line-height: 1.2;
	color: var(--shod-ink);
}

.shodrop-process__desc {
	font-size: 14px;
	line-height: 1.45;
	color: var(--shod-mut);
}

.shodrop-process__step.is-on .shodrop-process__dot,
.shodrop-home-process:not(.is-animated) .shodrop-process__dot {
	background: var(--shod-accent);
	border-color: var(--shod-accent);
	color: #fff;
}

.shodrop-home-process.is-animated .shodrop-process__step:not(.is-on) .shodrop-process__text {
	opacity: 0.35;
	transform: translateY(6px);
}

.shodrop-process__step.is-on .shodrop-process__dot {
	transform: scale(1.06);
}

/* Phones: vertical timeline on the left */
@media (max-width: 767px) {
	.shodrop-home-process .shodrop-process__head {
		margin-bottom: 24px;
	}

	.shodrop-process {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.shodrop-process__line {
		left: 19px;
		right: auto;
		top: 20px;
		bottom: 20px;
		width: 2px;
		height: auto;
	}

	.shodrop-process__line-fill {
		transform-origin: center top;
		transform: scaleY(var(--p));
	}

	.shodrop-process__step {
		flex-direction: row;
		align-items: center;
		gap: 16px;
	}

	.shodrop-process__dot {
		flex: none;
		width: 40px;
		height: 40px;
		font-size: 13px;
	}

	.shodrop-process__title {
		font-size: 17px;
	}

	.shodrop-process__desc {
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.shodrop-process__dot,
	.shodrop-process__text {
		transition: none;
	}
}

/* ==========================================================================
   «Дополнительно по запросу»: compact horizontal tiles, about half the height
   ========================================================================== */
@media (min-width: 768px) {
	.shodrop-svc-section .shodrop-svc[data-svc-grid] .shodrop-svc__card--extra {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 16px;
		min-height: 0;
		padding: 18px 22px;
	}

	.shodrop-svc[data-svc-grid] .shodrop-svc__card--extra .shodrop-redesign__secondary-card-body {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-rows: auto auto;
		column-gap: 14px;
		row-gap: 2px;
		align-items: center;
		margin: 0;
	}

	.shodrop-svc[data-svc-grid] .shodrop-svc__card--extra .shodrop-redesign__secondary-card-icon {
		grid-row: 1 / span 2;
		margin: 0;
	}

	.shodrop-svc[data-svc-grid] .shodrop-svc__card--extra .shodrop-redesign__secondary-card-title {
		margin: 0;
		font-size: 17px;
		line-height: 1.2;
	}

	.shodrop-svc[data-svc-grid] .shodrop-svc__card--extra .shodrop-redesign__secondary-card-desc {
		margin: 0;
		font-size: 13px;
		line-height: 1.35;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.shodrop-svc[data-svc-grid] .shodrop-svc__card--extra .shodrop-redesign__secondary-card-actions {
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		gap: 6px;
		margin: 0;
		padding: 0;
	}
}


/* «Как мы работаем» v2: centred steps, the line runs exactly from dot 01 to dot 04 */
@media (min-width: 768px) {
	.shodrop-process {
		gap: 0;
		max-width: 1080px;
		margin: 0 auto;
	}

	.shodrop-process__step {
		align-items: center;
		text-align: center;
		gap: 16px;
		padding: 0 12px;
	}

	.shodrop-process__line {
		left: 12.5%;
		right: 12.5%;
		top: 25px;
	}

	.shodrop-process__dot {
		width: 52px;
		height: 52px;
		font-size: 15px;
		box-shadow: 0 0 0 6px var(--shod-bg2, #f5efe3);
	}

	.shodrop-process__text {
		align-items: center;
	}
}

.shodrop-home-process.is-animated .shodrop-process__step:not(.is-on) .shodrop-process__text {
	opacity: 0.55;
	transform: none;
}

@media (min-width: 768px) {
	.shodrop-process__title {
		font-size: 18px;
		white-space: nowrap;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.shodrop-process__title {
		font-size: 15px;
		white-space: normal;
	}

	.shodrop-process__desc {
		font-size: 13px;
	}
}

/* Hero metrics (33K+ / 530+ / 5+): smaller numbers and labels. */
html body.shodrop-home-redesign .shodrop-redesign__hero .shodrop-redesign__metrics { gap: 20px; }
html body.shodrop-home-redesign .shodrop-redesign__hero .shodrop-redesign__metric-value { font-size: 18px; }
html body.shodrop-home-redesign .shodrop-redesign__hero .shodrop-redesign__metric-label { font-size: 10px; margin-top: 3px; }
html body.shodrop-home-redesign .shodrop-redesign__hero .shodrop-redesign__metric-divider { min-height: 30px; }
@media (max-width: 767px) {
	html body.shodrop-home-redesign .shodrop-redesign__hero .shodrop-redesign__metrics { gap: 8px 12px; }
	html body.shodrop-home-redesign .shodrop-redesign__hero .shodrop-redesign__metric-value { font-size: 15px; }
	html body.shodrop-home-redesign .shodrop-redesign__hero .shodrop-redesign__metric-label { font-size: 8.5px; margin-top: 3px; }
	html body.shodrop-home-redesign .shodrop-redesign__hero .shodrop-redesign__metric-divider { min-height: 26px; }
}

/* «SHODROP помогает предпринимателям…» lead: slightly smaller. */
html body.shodrop-home-redesign .shodrop-redesign__lead.shodrop-redesign__lead--who { font-size: 16px; }
@media (max-width: 767px) {
	html body.shodrop-home-redesign .shodrop-redesign__lead.shodrop-redesign__lead--who { font-size: 14.5px; }
}
