/* ================================================================
   ГЛАВНАЯ СТРАНИЦА — стили поверх дизайн-системы landings.css
   Scope: main.template-landing-ppu.tp-home
   ================================================================ */

/* ---- 1. HERO ---- */
.tp-hero {
	position: relative;
	background: #070a13;
}

.tp-hero .tp-hero-media {
	position: relative;
	width: 100%;
	height: auto;
	min-height: clamp(560px, 78vh, 760px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

/* Затемнение слева под текст + мягкий синий акцент */
.tp-hero .tp-hero-media::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		radial-gradient(circle at 78% 28%, rgba(14, 165, 233, 0.16) 0%, transparent 52%),
		linear-gradient(90deg, rgba(7, 10, 19, 0.96) 0%, rgba(7, 10, 19, 0.84) 44%, rgba(7, 10, 19, 0.42) 72%, rgba(7, 10, 19, 0.55) 100%);
	pointer-events: none;
}

/* Затемнение сверху под прозрачный хедер + градиент снизу */
.tp-hero .tp-hero-media::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(7, 10, 19, 0.92) 0%, rgba(7, 10, 19, 0.62) 9%, rgba(7, 10, 19, 0) 24%),
		linear-gradient(180deg, rgba(7, 10, 19, 0) 40%, rgba(7, 10, 19, 0.82) 100%);
	pointer-events: none;
}

.tp-hero-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: calc(var(--header-h, 82px) + 28px) 0 72px;
}

.tp-hero .badge,
.tp-home .lp-section .badge {
	background: var(--secondary-glow);
	border-color: rgba(14, 165, 233, 0.3);
	color: var(--secondary);
}

.tp-home .btn-secondary:hover {
	border-color: var(--secondary);
	color: var(--secondary);
}

.tp-hero h1 {
	font-size: clamp(28px, 4.2vw, 52px);
	line-height: 1.15;
	margin-bottom: 22px;
	max-width: 900px;
	background: linear-gradient(135deg, #ffffff 40%, #cbd5e1 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.tp-hero h1 span {
	color: var(--primary);
	-webkit-text-fill-color: initial;
}

.tp-hero .hero-description {
	max-width: 780px;
	color: #cbd5e1;
}

.tp-hero .hero-bullets {
	max-width: 720px;
	margin-bottom: 34px;
}

.tp-hero .hero-bullets li {
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.hero-bullet-emoji {
	flex-shrink: 0;
	font-size: 17px;
	line-height: 1;
}

/* ---- 2. О ПРЕДПРИЯТИИ ---- */
.tp-why-list {
	margin-top: 8px;
}

.tp-why-text p {
	font-size: 14px;
	color: var(--text-secondary);
	line-height: 1.6;
	margin-bottom: 0;
}

.tp-why-text > *:first-child {
	margin-top: 0;
}

.tp-why-text > *:last-child {
	margin-bottom: 0;
}

.tp-why-text strong {
	color: var(--text-primary);
	font-weight: 600;
}

.tp-about .why-layout {
	align-items: stretch;
}

.tp-about .tp-about-text {
	display: flex;
	flex-direction: column;
}

.tp-about .why-stats-grid {
	grid-template-rows: 1fr 1fr;
}

.tp-about .why-stat-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.tp-about .why-stat-card:hover {
	border-color: rgba(14, 165, 233, 0.35);
}

.tp-about .why-stat-number {
	color: var(--secondary);
}

.tp-about-actions {
	margin-top: auto;
	padding-top: 34px;
}

.why-stat-card .why-stat-number {
	font-size: clamp(30px, 3vw, 40px);
	word-break: break-word;
}

/* ---- 3. ПРОДУКЦИЯ ---- */
#products {
	scroll-margin-top: calc(var(--header-h, 82px) + 20px);
}

.tp-products .lp-section-header {
	max-width: 820px;
}

.prod-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
}

.prod-card {
	background-color: var(--bg-surface-elevated);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: var(--transition);
}

.prod-card:hover {
	transform: translateY(-6px);
	border-color: rgba(14, 165, 233, 0.45);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(14, 165, 233, 0.08);
}

.prod-media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #05070d;
}

.prod-media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(7, 10, 19, 0) 55%, rgba(7, 10, 19, 0.55) 100%);
	pointer-events: none;
}

.prod-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.prod-card:hover .prod-media img {
	transform: scale(1.06);
}

.prod-body {
	padding: 22px 24px 26px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.prod-body h3 {
	font-size: 17px;
	margin-bottom: 0;
	line-height: 1.35;
}

.prod-body h3 a {
	color: var(--text-primary);
	transition: var(--transition);
}

.prod-card:hover .prod-body h3 a {
	color: var(--secondary);
}

.prod-body p {
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-secondary);
	margin-bottom: 0;
}

.tp-notes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 20px;
	margin-top: 34px;
}

.tp-notes p {
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--border);
	border-left: 3px solid var(--secondary);
	border-radius: var(--radius-sm);
	padding: 18px 22px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-secondary);
	margin-bottom: 0;
}

.tp-notes strong {
	color: var(--text-primary);
	font-weight: 600;
}

/* ---- 4. КАРТОЧКИ ПРЕИМУЩЕСТВ ---- */
.tp-home .adv-grid {
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.tp-home .adv-grid--3 {
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.tp-home .adv-icon-num {
	font-family: var(--font);
	font-size: 17px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.tp-home .adv-icon img {
	width: 26px;
	height: 26px;
	display: block;
}

.tp-home .adv-card:hover {
	border-color: rgba(14, 165, 233, 0.35);
}

.tp-home .adv-icon {
	color: var(--secondary);
	background: rgba(14, 165, 233, 0.08);
	border: 1px solid rgba(14, 165, 233, 0.16);
}

.tp-home .adv-card:hover .adv-icon {
	background: var(--secondary);
	border-color: var(--secondary);
	color: #fff;
}

.tp-home .adv-card h4 {
	font-size: 17px;
	margin-bottom: 10px;
	color: var(--text-primary);
}

.tp-home .adv-card:hover h4 {
	color: var(--secondary);
}

/* ---- 5. ПРОИЗВОДСТВО / ЭТАПЫ ---- */
.tp-home .stages-flow--3 {
	grid-template-columns: repeat(3, 1fr);
}

.tp-home .stage-card {
	padding: 26px 22px;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tp-home .stage-card:hover {
	border-color: var(--secondary);
}

.tp-home .stage-card .stage-num {
	margin: 0 0 8px;
	background: var(--secondary-glow);
	color: var(--secondary);
	border-color: rgba(14, 165, 233, 0.35);
}

.tp-home .stage-card h3 {
	font-size: 15px;
	margin-bottom: 0;
	line-height: 1.4;
}

.tp-subblock {
	margin-top: 60px;
}

.tp-subtitle {
	font-size: clamp(20px, 2vw, 24px);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.3;
	color: var(--text-primary);
	margin-bottom: 26px;
}

/* ---- 8. ОБЛАСТИ ПРИМЕНЕНИЯ ---- */
.tp-areas .lp-section-header {
	max-width: 820px;
}

.tp-home .area-icon-container img {
	width: 24px;
	height: 24px;
	display: block;
}

/* ---- 9. ЦИФРЫ И ФАКТЫ ---- */
.facts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 20px;
}

.fact-card {
	background-color: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 28px 24px;
	text-align: center;
	transition: var(--transition);
}

.fact-card:hover {
	transform: translateY(-4px);
	border-color: rgba(14, 165, 233, 0.35);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.fact-icon {
	font-size: 26px;
	line-height: 1;
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	background: rgba(14, 165, 233, 0.08);
	border: 1px solid rgba(14, 165, 233, 0.22);
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fact-icon img {
	width: 30px;
	height: 30px;
	display: block;
}

.fact-card h3 {
	font-size: 20px;
	font-weight: 700;
	color: var(--secondary);
	margin-bottom: 6px;
	line-height: 1.25;
}

.fact-card h3 sup {
	font-size: 12px;
	top: -0.5em;
	position: relative;
}

.fact-card p {
	font-size: 13px;
	color: var(--text-secondary);
	line-height: 1.5;
	margin-bottom: 0;
}

/* ---- 10. CTA ---- */
.tp-home .cta-wrapper {
	background: linear-gradient(135deg, rgba(14, 165, 233, 0.14) 0%, rgba(249, 115, 22, 0.06) 100%);
	border-color: rgba(14, 165, 233, 0.22);
}

.tp-home .cta-wrapper h2 {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

/* ---- 11. FAQ ---- */
.tp-home .faq-item.active {
	border-color: var(--secondary);
}

.tp-home .faq-question-icon {
	color: var(--secondary);
}

/* ---- ЗАГОЛОВКИ ---- */
.tp-home .lp-section-header {
	max-width: 800px;
}

.tp-home .section-title--long {
	font-size: clamp(20px, 2.2vw, 26px);
	line-height: 1.4;
	-webkit-text-fill-color: transparent;
}

.tp-home .section-subtitle {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

/* ---- 10. ДОСТАВКА И ГЕОГРАФИЯ ПОСТАВОК ---- */
.tp-delivery {
	position: relative;
}

.delivery-hub-banner {
	background: linear-gradient(135deg, rgba(24, 34, 56, 0.95) 0%, rgba(15, 22, 38, 0.98) 100%);
	border: 1px solid rgba(14, 165, 233, 0.25);
	border-radius: var(--radius-lg);
	padding: clamp(30px, 4vw, 48px);
	margin-bottom: 60px;
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 36px;
	align-items: center;
	position: relative;
	overflow: hidden;
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

/* Animated Logistics Road Trails Layer */
.delivery-roads-layer {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

.delivery-roads-svg {
	width: 100%;
	height: 100%;
	display: block;
}

.road-track {
	stroke: rgba(255, 255, 255, 0.08);
	stroke-width: 1.5;
	stroke-dasharray: 4 6;
}

.road-beam {
	stroke: var(--secondary);
	stroke-width: 2.5;
	stroke-linecap: round;
	filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.85));
	will-change: stroke-dashoffset;
}

.road-beam-1 {
	stroke-dasharray: 60 500;
	animation: roadFlow1 5s linear infinite;
}

.road-beam-2 {
	stroke-dasharray: 50 450;
	animation: roadFlow2 6.5s linear infinite 1.2s;
}

.road-beam-3 {
	stroke-dasharray: 70 550;
	animation: roadFlow3 5.5s linear infinite 0.6s;
}

.road-beam-4 {
	stroke-dasharray: 55 480;
	animation: roadFlow4 7s linear infinite 2s;
}

@keyframes roadFlow1 {
	0% { stroke-dashoffset: 560; }
	100% { stroke-dashoffset: 0; }
}

@keyframes roadFlow2 {
	0% { stroke-dashoffset: 500; }
	100% { stroke-dashoffset: 0; }
}

@keyframes roadFlow3 {
	0% { stroke-dashoffset: 620; }
	100% { stroke-dashoffset: 0; }
}

@keyframes roadFlow4 {
	0% { stroke-dashoffset: 535; }
	100% { stroke-dashoffset: 0; }
}

.delivery-hub-content {
	position: relative;
	z-index: 1;
}

.delivery-hub-content .badge {
	background: rgba(14, 165, 233, 0.12);
	border: 1px solid rgba(14, 165, 233, 0.3);
	color: var(--secondary);
	margin-bottom: 14px;
}

.delivery-hub-content h3 {
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 700;
	line-height: 1.25;
	color: var(--text-primary);
	margin-bottom: 14px;
}

.delivery-hub-content p {
	color: var(--text-secondary);
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 0;
}

.delivery-hub-content p strong {
	color: var(--text-primary);
}

.delivery-hub-perks {
	display: flex;
	flex-direction: column;
	gap: 14px;
	position: relative;
	z-index: 1;
}

.delivery-perk-item {
	display: flex;
	align-items: center;
	gap: 14px;
	background: rgba(255, 255, 255, 0.04);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	padding: 14px 18px;
	border-radius: var(--radius-md);
	border: 1px solid var(--border);
	font-size: 14px;
	font-weight: 500;
	color: var(--text-primary);
	transition: var(--transition);
}

.delivery-perk-item:hover {
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(14, 165, 233, 0.4);
	transform: translateX(4px);
}

.delivery-perk-icon {
	font-size: 20px;
	line-height: 1;
	flex-shrink: 0;
}

/* SEO Cities Grid */
.delivery-cities-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 22px;
}

.city-seo-card {
	background-color: var(--bg-surface-elevated);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 26px 24px 22px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: var(--transition);
	position: relative;
	overflow: hidden;
	text-decoration: none;
}

.city-seo-card:hover {
	transform: translateY(-5px);
	border-color: rgba(14, 165, 233, 0.4);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
	text-decoration: none;
}

.city-seo-card.is-hq {
	border-color: rgba(14, 165, 233, 0.35);
	background: linear-gradient(180deg, rgba(14, 165, 233, 0.08) 0%, var(--bg-surface-elevated) 100%);
}

.city-seo-card.is-hq:hover {
	border-color: var(--secondary);
}

.city-seo-top {
	display: flex;
	flex-direction: column;
}

.city-seo-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.city-seo-name {
	font-size: 19px;
	font-weight: 700;
	color: var(--text-primary);
	line-height: 1.3;
}

.city-seo-badge {
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	background: rgba(249, 115, 22, 0.12);
	border: 1px solid rgba(249, 115, 22, 0.3);
	color: var(--primary);
	border-radius: 6px;
	text-transform: uppercase;
	white-space: nowrap;
	letter-spacing: 0.03em;
}

.city-seo-badge.hq-badge {
	background: var(--secondary);
	color: #070a13;
	border-color: var(--secondary);
}

.city-seo-timing {
	font-size: 13px;
	font-weight: 600;
	color: var(--secondary);
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.city-seo-desc {
	font-size: 14px;
	color: var(--text-secondary);
	line-height: 1.55;
	margin-bottom: 20px;
}

.city-seo-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--secondary);
	transition: var(--transition);
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.city-seo-card.is-hq .city-seo-link {
	color: var(--secondary);
}

.city-seo-link svg {
	transition: transform 0.25s ease;
	flex-shrink: 0;
}

.city-seo-card:hover .city-seo-link {
	color: #38bdf8;
}

.city-seo-card.is-hq:hover .city-seo-link {
	color: #38bdf8;
}

.city-seo-card:hover .city-seo-link svg {
	transform: translateX(4px);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
	.tp-hero-inner {
		padding: calc(var(--header-h, 82px) + 24px) 0 60px;
	}

	.tp-home .stages-flow--3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.delivery-hub-banner {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 32px 28px;
	}
}

@media (max-width: 767.98px) {
	.tp-hero .tp-hero-media {
		min-height: 480px;
	}

	.tp-hero-inner {
		padding: calc(var(--header-h, 82px) + 20px) 0 48px;
	}

	.tp-hero .hero-bullets {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.tp-home .stages-flow--3 {
		grid-template-columns: 1fr;
	}

	.tp-subblock {
		margin-top: 44px;
	}

	.tp-notes {
		grid-template-columns: 1fr;
	}

	.delivery-cities-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

@media (max-width: 575.98px) {
	.tp-hero .tp-hero-media {
		min-height: 440px;
	}

	.tp-hero h1 {
		word-break: break-word;
	}

	.tp-hero .btn-group {
		flex-wrap: wrap;
	}

	.tp-home .btn {
		width: 100%;
	}

	.prod-grid {
		grid-template-columns: 1fr;
	}

	.facts-grid {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
		gap: 14px;
	}

	.fact-card {
		padding: 22px 16px;
	}

	.fact-card h3 {
		font-size: 17px;
	}

	.delivery-hub-banner {
		padding: 24px 18px;
		margin-bottom: 40px;
	}

	.delivery-hub-content h3 {
		font-size: 20px;
	}

	.delivery-perk-item {
		font-size: 13px;
		padding: 12px 14px;
	}
}
