/* ============================================================
   # Landing — Скорость и конверсия (page-speed.php)
   ============================================================ */

/* ---- Speed Hero ---- */

.sp-hero {
	position: relative;
	overflow: hidden;
	padding: 4rem 0 3rem;
	background: var(--color-slate-900);
	color: #fff;
	text-align: center;
}

.sp-hero__dots {
	position: absolute;
	inset: 0;
	opacity: 0.1;
	background-image: radial-gradient(#4f46e5 1px, transparent 1px);
	background-size: 20px 20px;
	pointer-events: none;
}

.sp-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 52rem;
	margin-inline: auto;
}

.sp-hero__badge {
	display: inline-block;
	padding: 0.375rem 1rem;
	border-radius: 9999px;
	background: rgba(244, 63, 94, 0.15);
	color: #fda4af;
	font-size: 0.875rem;
	font-weight: 600;
	border: 1px solid rgba(244, 63, 94, 0.3);
	margin-bottom: 1.5rem;
}

.sp-hero__title {
	font-size: clamp(2rem, 7vw, 3.75rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.025em;
	margin-bottom: 1.5rem;
	color: #fff;
}

.sp-hero__title-accent {
	color: #fb7185;
}

.sp-hero__subtitle {
	font-size: 1.125rem;
	line-height: 1.75;
	color: #cbd5e1;
	max-width: 40rem;
	margin-inline: auto;
	margin-bottom: 2.5rem;
}

.sp-hero__cta {
	display: inline-block;
	padding: 1rem 2rem;
	background: var(--color-accent);
	color: #fff;
	font-weight: 700;
	font-size: 1.125rem;
	border-radius: 0.75rem;
	text-decoration: none;
	transition: background 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.3);
}

.sp-hero__cta:visited,
.sp-hero__cta:link {
	color: #fff;
}

.sp-hero__cta:hover,
.sp-hero__cta:focus-visible {
	background: var(--color-accent-hover);
	box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.4);
	color: #fff;
}

/* ---- Tablet ---- */
@media (min-width: 48rem) {
	.sp-hero {
		padding: 6rem 0 5rem;
	}

	.sp-hero__subtitle {
		font-size: 1.25rem;
	}
}

/* ---- Desktop ---- */
@media (min-width: 75rem) {
	.sp-hero {
		padding: 8rem 0 6rem;
	}

	.sp-hero__cta {
		padding: 1.125rem 2.5rem;
		font-size: 1.1875rem;
		border-radius: 1rem;
	}
}

/* ---- Speed Problem (Chart) Section ---- */

.sp-problem {
	padding: 3rem 0;
	background: var(--color-bg);
}

.sp-problem__header {
	text-align: center;
	margin-bottom: 2rem;
}

.sp-problem__title {
	font-size: clamp(1.5rem, 5vw, 1.875rem);
	font-weight: 700;
	color: var(--color-slate-900);
	margin-bottom: 1rem;
}

.sp-problem__subtitle {
	font-size: 1rem;
	color: var(--color-slate-700);
	line-height: 1.6;
	max-width: 42rem;
	margin-inline: auto;
}

.sp-problem__card {
	background: var(--color-surface);
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-slate-100);
	padding: 1.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sp-problem__chart-wrap {
	position: relative;
	width: 100%;
	max-width: 800px;
	margin-inline: auto;
	height: 260px;
}

.sp-problem__note {
	margin-top: 1.25rem;
	text-align: center;
	font-size: 0.8125rem;
	color: var(--color-slate-700);
	opacity: 0.7;
}

/* ---- Tablet ---- */
@media (min-width: 48rem) {
	.sp-problem {
		padding: 4.5rem 0;
	}

	.sp-problem__header {
		margin-bottom: 3rem;
	}

	.sp-problem__card {
		padding: 2.5rem;
	}

	.sp-problem__chart-wrap {
		height: 350px;
	}
}

/* ---- Desktop ---- */
@media (min-width: 75rem) {
	.sp-problem {
		padding: 5rem 0;
	}

	.sp-problem__chart-wrap {
		height: 400px;
	}
}

/* ---- Speed Solution Section ---- */

.sp-solution {
	padding: 3rem 0;
	background: var(--color-surface);
	border-top: 1px solid var(--color-slate-100);
	border-bottom: 1px solid var(--color-slate-100);
}

.sp-solution__header {
	text-align: center;
	margin-bottom: 2.5rem;
}

.sp-solution__title {
	font-size: clamp(1.5rem, 5vw, 1.875rem);
	font-weight: 700;
	color: var(--color-slate-900);
	margin-bottom: 1rem;
}

.sp-solution__subtitle {
	font-size: 1rem;
	color: var(--color-slate-700);
	line-height: 1.6;
	max-width: 42rem;
	margin-inline: auto;
}

.sp-solution__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

/* Tech card */
.sp-tech-card {
	background: var(--color-bg);
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-slate-100);
	padding: 2rem;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.sp-tech-card:hover {
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
	transform: translateY(-2px);
}

.sp-tech-card__icon {
	font-size: 2.5rem;
	margin-bottom: 1rem;
	line-height: 1;
}

.sp-tech-card__title {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--color-slate-900);
	margin-bottom: 0.75rem;
	line-height: 1.3;
}

.sp-tech-card__text {
	font-size: 0.9375rem;
	color: var(--color-slate-700);
	line-height: 1.7;
}

/* ---- Tablet ---- */
@media (min-width: 48rem) {
	.sp-solution {
		padding: 4.5rem 0;
	}

	.sp-solution__header {
		margin-bottom: 3.5rem;
	}

	.sp-solution__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.5rem;
	}
}

/* ---- Desktop ---- */
@media (min-width: 75rem) {
	.sp-solution {
		padding: 5rem 0;
	}

	.sp-solution__grid {
		gap: 2rem;
	}

	.sp-tech-card {
		padding: 2.5rem;
	}

	.sp-tech-card__title {
		font-size: 1.25rem;
	}

	.sp-tech-card__text {
		font-size: 1rem;
	}
}

/* ---- Speed Calculator Section ---- */

.sp-calc {
	padding: 3rem 0;
	background: var(--color-bg);
}

.sp-calc__wrap {
	position: relative;
	overflow: hidden;
	background: #1e1b4b;
	border-radius: var(--radius-lg);
	padding: 2rem 1.5rem;
	color: #fff;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.sp-calc__blob {
	position: absolute;
	top: -6rem;
	right: -6rem;
	width: 16rem;
	height: 16rem;
	background: #4f46e5;
	border-radius: 9999px;
	filter: blur(80px);
	opacity: 0.5;
	pointer-events: none;
}

.sp-calc__content {
	position: relative;
	z-index: 1;
}

.sp-calc__title {
	font-size: clamp(1.5rem, 5vw, 1.875rem);
	font-weight: 700;
	text-align: center;
	margin-bottom: 1rem;
	color: #fff;
}

.sp-calc__subtitle {
	text-align: center;
	font-size: 1rem;
	color: #a5b4fc;
	line-height: 1.6;
	max-width: 40rem;
	margin-inline: auto;
	margin-bottom: 2.5rem;
}

.sp-calc__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

/* Slider controls */
.sp-calc__inputs {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.sp-calc-slider__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.5rem;
}

.sp-calc-slider__label {
	font-weight: 500;
	font-size: 0.9375rem;
	color: #c7d2fe;
}

.sp-calc-slider__value {
	font-weight: 700;
	font-size: 0.9375rem;
	color: var(--color-accent-light);
}

/* Range slider */
.sp-calc-slider__input {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 8px;
	border-radius: 4px;
	background: #475569;
	/* outline: none; removed for accessibility */
	border: none;
	padding: 0;
}

.sp-calc-slider__input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #4f46e5;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
	border: 2px solid #fff;
}

.sp-calc-slider__input::-moz-range-thumb {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #4f46e5;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
	border: 2px solid #fff;
}

/* Output dashboard */
.sp-calc__output {
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--radius-md);
	padding: 2rem;
	text-align: center;
}

.sp-calc__result-label {
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #c7d2fe;
	margin-bottom: 0.5rem;
}

.sp-calc__result-value {
	font-size: clamp(2rem, 8vw, 3rem);
	font-weight: 800;
	color: var(--color-accent-light);
	letter-spacing: -0.02em;
	margin-bottom: 0.5rem;
}

.sp-calc__result-note {
	font-size: 0.875rem;
	color: #c7d2fe;
}

.sp-calc__quote {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-calc__quote p {
	font-size: 0.875rem;
	font-style: italic;
	color: #e0e7ff;
	line-height: 1.6;
	margin: 0;
}

/* ---- Tablet ---- */
@media (min-width: 48rem) {
	.sp-calc {
		padding: 4.5rem 0;
	}

	.sp-calc__wrap {
		padding: 3rem;
	}
}

/* ---- Desktop ---- */
@media (min-width: 64rem) {
	.sp-calc__grid {
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
		align-items: center;
	}
}

@media (min-width: 75rem) {
	.sp-calc {
		padding: 5rem 0;
	}

	.sp-calc__wrap {
		padding: 3.5rem;
		border-radius: var(--radius-lg);
	}
}

/* ---- Speed Form Section ---- */

.sp-form-section {
	padding: 3rem 0;
	background: var(--color-bg);
}

.sp-form-section__header {
	text-align: center;
	margin-bottom: 2rem;
}

.sp-form-section__title {
	font-size: clamp(1.5rem, 5vw, 1.875rem);
	font-weight: 700;
	color: var(--color-slate-900);
	margin-bottom: 1rem;
}

.sp-form-section__subtitle {
	font-size: 1rem;
	color: var(--color-slate-700);
	line-height: 1.6;
	max-width: 42rem;
	margin-inline: auto;
}

.sp-form-section__card {
	max-width: 46rem;
	margin-inline: auto;
	background: var(--color-surface);
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-slate-100);
	padding: 2rem;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

/* ---- Tablet ---- */
@media (min-width: 48rem) {
	.sp-form-section {
		padding: 4.5rem 0;
	}

	.sp-form-section__header {
		margin-bottom: 2.5rem;
	}

	.sp-form-section__card {
		padding: 2.5rem;
	}
}

/* ---- Desktop ---- */
@media (min-width: 75rem) {
	.sp-form-section {
		padding: 5rem 0;
	}

	.sp-form-section__card {
		padding: 3rem;
	}
}
